@chatsystem/client 1.1.22 → 1.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,54 +1,39 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const jsxRuntime=require("react/jsx-runtime"),React=require("react"),ReactDOM=require("react-dom");function _interopNamespaceDefault(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const React__namespace=_interopNamespaceDefault(React);var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},extendStatics(e,t)};function __extends(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");extendStatics(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return __assign=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},__assign.apply(this,arguments)};function __rest(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 a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)t.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n}function __spreadArray(e,t,n){if(n||arguments.length===2)for(var i=0,a=t.length,o;i<a;i++)(o||!(i in t))&&(o||(o=Array.prototype.slice.call(t,0,i)),o[i]=t[i]);return e.concat(o||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var reactIs={exports:{}},reactIs_production_min={};/** @license React v16.13.1
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=require("react/jsx-runtime"),N=require("react"),xl=require("lottie-react"),Cl=require("@lottiefiles/dotlottie-react"),Bn=require("react-dom");function Il(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const Ve=Il(N);var sa=function(e,t){return sa=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(n[a]=r[a])},sa(e,t)};function tt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");sa(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var V=function(){return V=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},V.apply(this,arguments)};function fr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function lt(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function Ba(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fn={exports:{}},Te={};/** @license React v16.13.1
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
8
- */var hasRequiredReactIs_production_min;function requireReactIs_production_min(){if(hasRequiredReactIs_production_min)return reactIs_production_min;hasRequiredReactIs_production_min=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,T=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function _(C){if(typeof C=="object"&&C!==null){var O=C.$$typeof;switch(O){case t:switch(C=C.type,C){case c:case f:case i:case o:case a:case T:return C;default:switch(C=C&&C.$$typeof,C){case l:case d:case S:case y:case u:return C;default:return O}}case n:return O}}}function I(C){return _(C)===f}return reactIs_production_min.AsyncMode=c,reactIs_production_min.ConcurrentMode=f,reactIs_production_min.ContextConsumer=l,reactIs_production_min.ContextProvider=u,reactIs_production_min.Element=t,reactIs_production_min.ForwardRef=d,reactIs_production_min.Fragment=i,reactIs_production_min.Lazy=S,reactIs_production_min.Memo=y,reactIs_production_min.Portal=n,reactIs_production_min.Profiler=o,reactIs_production_min.StrictMode=a,reactIs_production_min.Suspense=T,reactIs_production_min.isAsyncMode=function(C){return I(C)||_(C)===c},reactIs_production_min.isConcurrentMode=I,reactIs_production_min.isContextConsumer=function(C){return _(C)===l},reactIs_production_min.isContextProvider=function(C){return _(C)===u},reactIs_production_min.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},reactIs_production_min.isForwardRef=function(C){return _(C)===d},reactIs_production_min.isFragment=function(C){return _(C)===i},reactIs_production_min.isLazy=function(C){return _(C)===S},reactIs_production_min.isMemo=function(C){return _(C)===y},reactIs_production_min.isPortal=function(C){return _(C)===n},reactIs_production_min.isProfiler=function(C){return _(C)===o},reactIs_production_min.isStrictMode=function(C){return _(C)===a},reactIs_production_min.isSuspense=function(C){return _(C)===T},reactIs_production_min.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===i||C===f||C===o||C===a||C===T||C===m||typeof C=="object"&&C!==null&&(C.$$typeof===S||C.$$typeof===y||C.$$typeof===u||C.$$typeof===l||C.$$typeof===d||C.$$typeof===L||C.$$typeof===v||C.$$typeof===A||C.$$typeof===b)},reactIs_production_min.typeOf=_,reactIs_production_min}var reactIs_development={};/** @license React v16.13.1
8
+ */var di;function Nl(){if(di)return Te;di=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function O(C){if(typeof C=="object"&&C!==null){var I=C.$$typeof;switch(I){case t:switch(C=C.type,C){case l:case c:case r:case i:case a:case d:return C;default:switch(C=C&&C.$$typeof,C){case o:case f:case y:case h:case u:return C;default:return I}}case n:return I}}}function w(C){return O(C)===c}return Te.AsyncMode=l,Te.ConcurrentMode=c,Te.ContextConsumer=o,Te.ContextProvider=u,Te.Element=t,Te.ForwardRef=f,Te.Fragment=r,Te.Lazy=y,Te.Memo=h,Te.Portal=n,Te.Profiler=i,Te.StrictMode=a,Te.Suspense=d,Te.isAsyncMode=function(C){return w(C)||O(C)===l},Te.isConcurrentMode=w,Te.isContextConsumer=function(C){return O(C)===o},Te.isContextProvider=function(C){return O(C)===u},Te.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Te.isForwardRef=function(C){return O(C)===f},Te.isFragment=function(C){return O(C)===r},Te.isLazy=function(C){return O(C)===y},Te.isMemo=function(C){return O(C)===h},Te.isPortal=function(C){return O(C)===n},Te.isProfiler=function(C){return O(C)===i},Te.isStrictMode=function(C){return O(C)===a},Te.isSuspense=function(C){return O(C)===d},Te.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===c||C===i||C===a||C===d||C===m||typeof C=="object"&&C!==null&&(C.$$typeof===y||C.$$typeof===h||C.$$typeof===u||C.$$typeof===o||C.$$typeof===f||C.$$typeof===R||C.$$typeof===S||C.$$typeof===v||C.$$typeof===A)},Te.typeOf=O,Te}var ge={};/** @license React v16.13.1
9
9
  * react-is.development.js
10
10
  *
11
11
  * Copyright (c) Facebook, Inc. and its affiliates.
12
12
  *
13
13
  * This source code is licensed under the MIT license found in the
14
14
  * LICENSE file in the root directory of this source tree.
15
- */var hasRequiredReactIs_development;function requireReactIs_development(){return hasRequiredReactIs_development||(hasRequiredReactIs_development=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,T=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,L=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function _(s1){return typeof s1=="string"||typeof s1=="function"||s1===i||s1===f||s1===o||s1===a||s1===T||s1===m||typeof s1=="object"&&s1!==null&&(s1.$$typeof===S||s1.$$typeof===y||s1.$$typeof===u||s1.$$typeof===l||s1.$$typeof===d||s1.$$typeof===L||s1.$$typeof===v||s1.$$typeof===A||s1.$$typeof===b)}function I(s1){if(typeof s1=="object"&&s1!==null){var E1=s1.$$typeof;switch(E1){case t:var f1=s1.type;switch(f1){case c:case f:case i:case o:case a:case T:return f1;default:var P1=f1&&f1.$$typeof;switch(P1){case l:case d:case S:case y:case u:return P1;default:return E1}}case n:return E1}}}var C=c,O=f,B=l,z=u,q=t,e1=d,X=i,W=S,Z=y,J=n,K=o,k=a,V=T,R=!1;function w(s1){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),D(s1)||I(s1)===c}function D(s1){return I(s1)===f}function G(s1){return I(s1)===l}function Q(s1){return I(s1)===u}function F(s1){return typeof s1=="object"&&s1!==null&&s1.$$typeof===t}function r1(s1){return I(s1)===d}function o1(s1){return I(s1)===i}function i1(s1){return I(s1)===S}function p1(s1){return I(s1)===y}function m1(s1){return I(s1)===n}function v1(s1){return I(s1)===o}function g1(s1){return I(s1)===a}function A1(s1){return I(s1)===T}reactIs_development.AsyncMode=C,reactIs_development.ConcurrentMode=O,reactIs_development.ContextConsumer=B,reactIs_development.ContextProvider=z,reactIs_development.Element=q,reactIs_development.ForwardRef=e1,reactIs_development.Fragment=X,reactIs_development.Lazy=W,reactIs_development.Memo=Z,reactIs_development.Portal=J,reactIs_development.Profiler=K,reactIs_development.StrictMode=k,reactIs_development.Suspense=V,reactIs_development.isAsyncMode=w,reactIs_development.isConcurrentMode=D,reactIs_development.isContextConsumer=G,reactIs_development.isContextProvider=Q,reactIs_development.isElement=F,reactIs_development.isForwardRef=r1,reactIs_development.isFragment=o1,reactIs_development.isLazy=i1,reactIs_development.isMemo=p1,reactIs_development.isPortal=m1,reactIs_development.isProfiler=v1,reactIs_development.isStrictMode=g1,reactIs_development.isSuspense=A1,reactIs_development.isValidElementType=_,reactIs_development.typeOf=I})()),reactIs_development}var hasRequiredReactIs;function requireReactIs(){return hasRequiredReactIs||(hasRequiredReactIs=1,process.env.NODE_ENV==="production"?reactIs.exports=requireReactIs_production_min():reactIs.exports=requireReactIs_development()),reactIs.exports}var hoistNonReactStatics_cjs,hasRequiredHoistNonReactStatics_cjs;function requireHoistNonReactStatics_cjs(){if(hasRequiredHoistNonReactStatics_cjs)return hoistNonReactStatics_cjs;hasRequiredHoistNonReactStatics_cjs=1;var e=requireReactIs(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=i,o[e.Memo]=a;function u(S){return e.isMemo(S)?a:o[S.$$typeof]||t}var l=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,T=Object.getPrototypeOf,m=Object.prototype;function y(S,b,L){if(typeof b!="string"){if(m){var v=T(b);v&&v!==m&&y(S,v,L)}var A=c(b);f&&(A=A.concat(f(b)));for(var _=u(S),I=u(b),C=0;C<A.length;++C){var O=A[C];if(!n[O]&&!(L&&L[O])&&!(I&&I[O])&&!(_&&_[O])){var B=d(b,O);try{l(S,O,B)}catch{}}}}return S}return hoistNonReactStatics_cjs=y,hoistNonReactStatics_cjs}requireHoistNonReactStatics_cjs();function invariant(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var ErrorKind;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(ErrorKind||(ErrorKind={}));var TYPE;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(TYPE||(TYPE={}));var SKELETON_TYPE;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(SKELETON_TYPE||(SKELETON_TYPE={}));function isLiteralElement(e){return e.type===TYPE.literal}function isArgumentElement(e){return e.type===TYPE.argument}function isNumberElement(e){return e.type===TYPE.number}function isDateElement(e){return e.type===TYPE.date}function isTimeElement(e){return e.type===TYPE.time}function isSelectElement(e){return e.type===TYPE.select}function isPluralElement(e){return e.type===TYPE.plural}function isPoundElement(e){return e.type===TYPE.pound}function isTagElement(e){return e.type===TYPE.tag}function isNumberSkeleton(e){return!!(e&&typeof e=="object"&&e.type===SKELETON_TYPE.number)}function isDateTimeSkeleton(e){return!!(e&&typeof e=="object"&&e.type===SKELETON_TYPE.dateTime)}var SPACE_SEPARATOR_REGEX=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,DATE_TIME_REGEX=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function parseDateTimeSkeleton(e){var t={};return e.replace(DATE_TIME_REGEX,function(n){var i=n.length;switch(n[0]){case"G":t.era=i===4?"long":i===5?"narrow":"short";break;case"y":t.year=i===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=i===4?"long":i===5?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][i-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][i-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][i-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][i-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][i-1];break;case"s":t.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var WHITE_SPACE_REGEX=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function parseNumberSkeletonFromString(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(WHITE_SPACE_REGEX).filter(function(m){return m.length>0}),n=[],i=0,a=t;i<a.length;i++){var o=a[i],u=o.split("/");if(u.length===0)throw new Error("Invalid number skeleton");for(var l=u[0],c=u.slice(1),f=0,d=c;f<d.length;f++){var T=d[f];if(T.length===0)throw new Error("Invalid number skeleton")}n.push({stem:l,options:c})}return n}function icuUnitToEcma(e){return e.replace(/^(.*?)-/,"")}var FRACTION_PRECISION_REGEX=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,SIGNIFICANT_PRECISION_REGEX=/^(@+)?(\+|#+)?[rs]?$/g,INTEGER_WIDTH_REGEX=/(\*)(0+)|(#+)(0+)|(0+)/g,CONCISE_INTEGER_WIDTH_REGEX=/^(0+)$/;function parseSignificantPrecision(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(SIGNIFICANT_PRECISION_REGEX,function(n,i,a){return typeof a!="string"?(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length):a==="+"?t.minimumSignificantDigits=i.length:i[0]==="#"?t.maximumSignificantDigits=i.length:(t.minimumSignificantDigits=i.length,t.maximumSignificantDigits=i.length+(typeof a=="string"?a.length:0)),""}),t}function parseSign(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function parseConciseScientificAndEngineeringStem(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!CONCISE_INTEGER_WIDTH_REGEX.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function parseNotationOptions(e){var t={},n=parseSign(e);return n||t}function parseNumberSkeleton(e){for(var t={},n=0,i=e;n<i.length;n++){var a=i[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=icuUnitToEcma(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=__assign(__assign(__assign({},t),{notation:"scientific"}),a.options.reduce(function(c,f){return __assign(__assign({},c),parseNotationOptions(f))},{}));continue;case"engineering":t=__assign(__assign(__assign({},t),{notation:"engineering"}),a.options.reduce(function(c,f){return __assign(__assign({},c),parseNotationOptions(f))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(INTEGER_WIDTH_REGEX,function(c,f,d,T,m,y){if(f)t.minimumIntegerDigits=d.length;else{if(T&&m)throw new Error("We currently do not support maximum integer digits");if(y)throw new Error("We currently do not support exact integer digits")}return""});continue}if(CONCISE_INTEGER_WIDTH_REGEX.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(FRACTION_PRECISION_REGEX.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(FRACTION_PRECISION_REGEX,function(c,f,d,T,m,y){return d==="*"?t.minimumFractionDigits=f.length:T&&T[0]==="#"?t.maximumFractionDigits=T.length:m&&y?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+y.length):(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length),""});var o=a.options[0];o==="w"?t=__assign(__assign({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=__assign(__assign({},t),parseSignificantPrecision(o)));continue}if(SIGNIFICANT_PRECISION_REGEX.test(a.stem)){t=__assign(__assign({},t),parseSignificantPrecision(a.stem));continue}var u=parseSign(a.stem);u&&(t=__assign(__assign({},t),u));var l=parseConciseScientificAndEngineeringStem(a.stem);l&&(t=__assign(__assign({},t),l))}return t}var timeData={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function getBestPattern(e,t){for(var n="",i=0;i<e.length;i++){var a=e.charAt(i);if(a==="j"){for(var o=0;i+1<e.length&&e.charAt(i+1)===a;)o++,i++;var u=1+(o&1),l=o<2?1:3+(o>>1),c="a",f=getDefaultHourSymbolFromLocale(t);for((f=="H"||f=="k")&&(l=0);l-- >0;)n+=c;for(;u-- >0;)n=f+n}else a==="J"?n+="H":n+=a}return n}function getDefaultHourSymbolFromLocale(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,i;n!=="root"&&(i=e.maximize().region);var a=timeData[i||""]||timeData[n||""]||timeData["".concat(n,"-001")]||timeData["001"];return a[0]}var _a$1,SPACE_SEPARATOR_START_REGEX=new RegExp("^".concat(SPACE_SEPARATOR_REGEX.source,"*")),SPACE_SEPARATOR_END_REGEX=new RegExp("".concat(SPACE_SEPARATOR_REGEX.source,"*$"));function createLocation$1(e,t){return{start:e,end:t}}var hasNativeStartsWith=!!String.prototype.startsWith&&"_a".startsWith("a",1),hasNativeFromCodePoint=!!String.fromCodePoint,hasNativeFromEntries=!!Object.fromEntries,hasNativeCodePointAt=!!String.prototype.codePointAt,hasTrimStart=!!String.prototype.trimStart,hasTrimEnd=!!String.prototype.trimEnd,hasNativeIsSafeInteger=!!Number.isSafeInteger,isSafeInteger=hasNativeIsSafeInteger?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},REGEX_SUPPORTS_U_AND_Y=!0;try{var re$1=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");REGEX_SUPPORTS_U_AND_Y=((_a$1=re$1.exec("a"))===null||_a$1===void 0?void 0:_a$1[0])==="a"}catch{REGEX_SUPPORTS_U_AND_Y=!1}var startsWith=hasNativeStartsWith?function(t,n,i){return t.startsWith(n,i)}:function(t,n,i){return t.slice(i,i+n.length)===n},fromCodePoint$1=hasNativeFromCodePoint?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var i="",a=t.length,o=0,u;a>o;){if(u=t[o++],u>1114111)throw RangeError(u+" is not a valid code point");i+=u<65536?String.fromCharCode(u):String.fromCharCode(((u-=65536)>>10)+55296,u%1024+56320)}return i},fromEntries=hasNativeFromEntries?Object.fromEntries:function(t){for(var n={},i=0,a=t;i<a.length;i++){var o=a[i],u=o[0],l=o[1];n[u]=l}return n},codePointAt=hasNativeCodePointAt?function(t,n){return t.codePointAt(n)}:function(t,n){var i=t.length;if(!(n<0||n>=i)){var a=t.charCodeAt(n),o;return a<55296||a>56319||n+1===i||(o=t.charCodeAt(n+1))<56320||o>57343?a:(a-55296<<10)+(o-56320)+65536}},trimStart=hasTrimStart?function(t){return t.trimStart()}:function(t){return t.replace(SPACE_SEPARATOR_START_REGEX,"")},trimEnd=hasTrimEnd?function(t){return t.trimEnd()}:function(t){return t.replace(SPACE_SEPARATOR_END_REGEX,"")};function RE(e,t){return new RegExp(e,t)}var matchIdentifierAtIndex;if(REGEX_SUPPORTS_U_AND_Y){var IDENTIFIER_PREFIX_RE_1=RE("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");matchIdentifierAtIndex=function(t,n){var i;IDENTIFIER_PREFIX_RE_1.lastIndex=n;var a=IDENTIFIER_PREFIX_RE_1.exec(t);return(i=a[1])!==null&&i!==void 0?i:""}}else matchIdentifierAtIndex=function(t,n){for(var i=[];;){var a=codePointAt(t,n);if(a===void 0||_isWhiteSpace(a)||_isPatternSyntax(a))break;i.push(a),n+=a>=65536?2:1}return fromCodePoint$1.apply(void 0,i)};var Parser$1=(function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,i){for(var a=[];!this.isEOF();){var o=this.char();if(o===123){var u=this.parseArgument(t,i);if(u.err)return u;a.push(u.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var l=this.clonePosition();this.bump(),a.push({type:TYPE.pound,location:createLocation$1(l,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(i)break;return this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation$1(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&_isAlpha(this.peek()||0)){var u=this.parseTag(t,n);if(u.err)return u;a.push(u.val)}else{var u=this.parseLiteral(t,n);if(u.err)return u;a.push(u.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var i=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:TYPE.literal,value:"<".concat(a,"/>"),location:createLocation$1(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var u=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!_isAlpha(this.char()))return this.error(ErrorKind.INVALID_TAG,createLocation$1(l,this.clonePosition()));var c=this.clonePosition(),f=this.parseTagName();return a!==f?this.error(ErrorKind.UNMATCHED_CLOSING_TAG,createLocation$1(c,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:TYPE.tag,value:a,children:u,location:createLocation$1(i,this.clonePosition())},err:null}:this.error(ErrorKind.INVALID_TAG,createLocation$1(l,this.clonePosition())))}else return this.error(ErrorKind.UNCLOSED_TAG,createLocation$1(i,this.clonePosition()))}else return this.error(ErrorKind.INVALID_TAG,createLocation$1(i,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&_isPotentialElementNameChar(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var i=this.clonePosition(),a="";;){var o=this.tryParseQuote(n);if(o){a+=o;continue}var u=this.tryParseUnquoted(t,n);if(u){a+=u;continue}var l=this.tryParseLeftAngleBracket();if(l){a+=l;continue}break}var c=createLocation$1(i,this.clonePosition());return{val:{type:TYPE.literal,value:a,location:c},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!_isAlphaOrSlash(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(i===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(i);this.bump()}return fromCodePoint$1.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var i=this.char();return i===60||i===123||i===35&&(n==="plural"||n==="selectordinal")||i===125&&t>0?null:(this.bump(),fromCodePoint$1(i))},e.prototype.parseArgument=function(t,n){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation$1(i,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(ErrorKind.EMPTY_ARGUMENT,createLocation$1(i,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation$1(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation$1(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:TYPE.argument,value:a,location:createLocation$1(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation$1(i,this.clonePosition())):this.parseArgumentOptions(t,n,a,i);default:return this.error(ErrorKind.MALFORMED_ARGUMENT,createLocation$1(i,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),i=matchIdentifierAtIndex(this.message,n),a=n+i.length;this.bumpTo(a);var o=this.clonePosition(),u=createLocation$1(t,o);return{value:i,location:u}},e.prototype.parseArgumentOptions=function(t,n,i,a){var o,u=this.clonePosition(),l=this.parseIdentifierIfPossible().value,c=this.clonePosition();switch(l){case"":return this.error(ErrorKind.EXPECT_ARGUMENT_TYPE,createLocation$1(u,c));case"number":case"date":case"time":{this.bumpSpace();var f=null;if(this.bumpIf(",")){this.bumpSpace();var d=this.clonePosition(),T=this.parseSimpleArgStyleIfPossible();if(T.err)return T;var m=trimEnd(T.val);if(m.length===0)return this.error(ErrorKind.EXPECT_ARGUMENT_STYLE,createLocation$1(this.clonePosition(),this.clonePosition()));var y=createLocation$1(d,this.clonePosition());f={style:m,styleLocation:y}}var S=this.tryParseArgumentClose(a);if(S.err)return S;var b=createLocation$1(a,this.clonePosition());if(f&&startsWith(f?.style,"::",0)){var L=trimStart(f.style.slice(2));if(l==="number"){var T=this.parseNumberSkeletonFromString(L,f.styleLocation);return T.err?T:{val:{type:TYPE.number,value:i,location:b,style:T.val},err:null}}else{if(L.length===0)return this.error(ErrorKind.EXPECT_DATE_TIME_SKELETON,b);var v=L;this.locale&&(v=getBestPattern(L,this.locale));var m={type:SKELETON_TYPE.dateTime,pattern:v,location:f.styleLocation,parsedOptions:this.shouldParseSkeletons?parseDateTimeSkeleton(v):{}},A=l==="date"?TYPE.date:TYPE.time;return{val:{type:A,value:i,location:b,style:m},err:null}}}return{val:{type:l==="number"?TYPE.number:l==="date"?TYPE.date:TYPE.time,value:i,location:b,style:(o=f?.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ErrorKind.EXPECT_SELECT_ARGUMENT_OPTIONS,createLocation$1(_,__assign({},_)));this.bumpSpace();var I=this.parseIdentifierIfPossible(),C=0;if(l!=="select"&&I.value==="offset"){if(!this.bumpIf(":"))return this.error(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,createLocation$1(this.clonePosition(),this.clonePosition()));this.bumpSpace();var T=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ErrorKind.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(T.err)return T;this.bumpSpace(),I=this.parseIdentifierIfPossible(),C=T.val}var O=this.tryParsePluralOrSelectOptions(t,l,n,I);if(O.err)return O;var S=this.tryParseArgumentClose(a);if(S.err)return S;var B=createLocation$1(a,this.clonePosition());return l==="select"?{val:{type:TYPE.select,value:i,options:fromEntries(O.val),location:B},err:null}:{val:{type:TYPE.plural,value:i,options:fromEntries(O.val),offset:C,pluralType:l==="plural"?"cardinal":"ordinal",location:B},err:null}}default:return this.error(ErrorKind.INVALID_ARGUMENT_TYPE,createLocation$1(u,c))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(ErrorKind.EXPECT_ARGUMENT_CLOSING_BRACE,createLocation$1(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var i=this.char();switch(i){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ErrorKind.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,createLocation$1(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var i=[];try{i=parseNumberSkeletonFromString(t)}catch{return this.error(ErrorKind.INVALID_NUMBER_SKELETON,n)}return{val:{type:SKELETON_TYPE.number,tokens:i,location:n,parsedOptions:this.shouldParseSkeletons?parseNumberSkeleton(i):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,i,a){for(var o,u=!1,l=[],c=new Set,f=a.value,d=a.location;;){if(f.length===0){var T=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,ErrorKind.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;d=createLocation$1(T,this.clonePosition()),f=this.message.slice(T.offset,this.offset())}else break}if(c.has(f))return this.error(n==="select"?ErrorKind.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ErrorKind.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,d);f==="other"&&(u=!0),this.bumpSpace();var y=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,createLocation$1(this.clonePosition(),this.clonePosition()));var S=this.parseMessage(t+1,n,i);if(S.err)return S;var b=this.tryParseArgumentClose(y);if(b.err)return b;l.push([f,{value:S.val,location:createLocation$1(y,this.clonePosition())}]),c.add(f),this.bumpSpace(),o=this.parseIdentifierIfPossible(),f=o.value,d=o.location}return l.length===0?this.error(n==="select"?ErrorKind.EXPECT_SELECT_ARGUMENT_SELECTOR:ErrorKind.EXPECT_PLURAL_ARGUMENT_SELECTOR,createLocation$1(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!u?this.error(ErrorKind.MISSING_OTHER_CLAUSE,createLocation$1(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var i=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,u=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,u=u*10+(l-48),this.bump();else break}var c=createLocation$1(a,this.clonePosition());return o?(u*=i,isSafeInteger(u)?{val:u,err:null}:this.error(n,c)):this.error(t,c)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=codePointAt(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(startsWith(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),i=this.message.indexOf(t,n);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&_isWhiteSpace(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),i=this.message.charCodeAt(n+(t>=65536?2:1));return i??null},e})();function _isAlpha(e){return e>=97&&e<=122||e>=65&&e<=90}function _isAlphaOrSlash(e){return _isAlpha(e)||e===47}function _isPotentialElementNameChar(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function _isWhiteSpace(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function _isPatternSyntax(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function pruneLocation(e){e.forEach(function(t){if(delete t.location,isSelectElement(t)||isPluralElement(t))for(var n in t.options)delete t.options[n].location,pruneLocation(t.options[n].value);else isNumberElement(t)&&isNumberSkeleton(t.style)||(isDateElement(t)||isTimeElement(t))&&isDateTimeSkeleton(t.style)?delete t.style.location:isTagElement(t)&&pruneLocation(t.children)})}function parse$3(e,t){t===void 0&&(t={}),t=__assign({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new Parser$1(e,t).parse();if(n.err){var i=SyntaxError(ErrorKind[n.err.kind]);throw i.location=n.err.location,i.originalMessage=n.err.message,i}return t?.captureLocation||pruneLocation(n.val),n.val}function memoize(e,t){var n=t&&t.cache?t.cache:cacheDefault,i=t&&t.serializer?t.serializer:serializerDefault,a=t&&t.strategy?t.strategy:strategyDefault;return a(e,{cache:n,serializer:i})}function isPrimitive(e){return e==null||typeof e=="number"||typeof e=="boolean"}function monadic(e,t,n,i){var a=isPrimitive(i)?i:n(i),o=t.get(a);return typeof o>"u"&&(o=e.call(this,i),t.set(a,o)),o}function variadic(e,t,n){var i=Array.prototype.slice.call(arguments,3),a=n(i),o=t.get(a);return typeof o>"u"&&(o=e.apply(this,i),t.set(a,o)),o}function assemble(e,t,n,i,a){return n.bind(t,e,i,a)}function strategyDefault(e,t){var n=e.length===1?monadic:variadic;return assemble(e,this,n,t.cache.create(),t.serializer)}function strategyVariadic(e,t){return assemble(e,this,variadic,t.cache.create(),t.serializer)}var serializerDefault=function(){return JSON.stringify(arguments)};function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.get=function(e){return this.cache[e]};ObjectWithoutPrototypeCache.prototype.set=function(e,t){this.cache[e]=t};var cacheDefault={create:function(){return new ObjectWithoutPrototypeCache}},strategies={variadic:strategyVariadic},ErrorCode;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(ErrorCode||(ErrorCode={}));var FormatError=(function(e){__extends(t,e);function t(n,i,a){var o=e.call(this,n)||this;return o.code=i,o.originalMessage=a,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),InvalidValueError=(function(e){__extends(t,e);function t(n,i,a,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(i,'". Options are "').concat(Object.keys(a).join('", "'),'"'),ErrorCode.INVALID_VALUE,o)||this}return t})(FormatError),InvalidValueTypeError=(function(e){__extends(t,e);function t(n,i,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(i),ErrorCode.INVALID_VALUE,a)||this}return t})(FormatError),MissingValueError=(function(e){__extends(t,e);function t(n,i){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(i,'"'),ErrorCode.MISSING_VALUE,i)||this}return t})(FormatError),PART_TYPE;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(PART_TYPE||(PART_TYPE={}));function mergeLiteral(e){return e.length<2?e:e.reduce(function(t,n){var i=t[t.length-1];return!i||i.type!==PART_TYPE.literal||n.type!==PART_TYPE.literal?t.push(n):i.value+=n.value,t},[])}function isFormatXMLElementFn(e){return typeof e=="function"}function formatToParts(e,t,n,i,a,o,u){if(e.length===1&&isLiteralElement(e[0]))return[{type:PART_TYPE.literal,value:e[0].value}];for(var l=[],c=0,f=e;c<f.length;c++){var d=f[c];if(isLiteralElement(d)){l.push({type:PART_TYPE.literal,value:d.value});continue}if(isPoundElement(d)){typeof o=="number"&&l.push({type:PART_TYPE.literal,value:n.getNumberFormat(t).format(o)});continue}var T=d.value;if(!(a&&T in a))throw new MissingValueError(T,u);var m=a[T];if(isArgumentElement(d)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),l.push({type:typeof m=="string"?PART_TYPE.literal:PART_TYPE.object,value:m});continue}if(isDateElement(d)){var y=typeof d.style=="string"?i.date[d.style]:isDateTimeSkeleton(d.style)?d.style.parsedOptions:void 0;l.push({type:PART_TYPE.literal,value:n.getDateTimeFormat(t,y).format(m)});continue}if(isTimeElement(d)){var y=typeof d.style=="string"?i.time[d.style]:isDateTimeSkeleton(d.style)?d.style.parsedOptions:i.time.medium;l.push({type:PART_TYPE.literal,value:n.getDateTimeFormat(t,y).format(m)});continue}if(isNumberElement(d)){var y=typeof d.style=="string"?i.number[d.style]:isNumberSkeleton(d.style)?d.style.parsedOptions:void 0;y&&y.scale&&(m=m*(y.scale||1)),l.push({type:PART_TYPE.literal,value:n.getNumberFormat(t,y).format(m)});continue}if(isTagElement(d)){var S=d.children,b=d.value,L=a[b];if(!isFormatXMLElementFn(L))throw new InvalidValueTypeError(b,"function",u);var v=formatToParts(S,t,n,i,a,o),A=L(v.map(function(C){return C.value}));Array.isArray(A)||(A=[A]),l.push.apply(l,A.map(function(C){return{type:typeof C=="string"?PART_TYPE.literal:PART_TYPE.object,value:C}}))}if(isSelectElement(d)){var _=d.options[m]||d.options.other;if(!_)throw new InvalidValueError(d.value,m,Object.keys(d.options),u);l.push.apply(l,formatToParts(_.value,t,n,i,a));continue}if(isPluralElement(d)){var _=d.options["=".concat(m)];if(!_){if(!Intl.PluralRules)throw new FormatError(`Intl.PluralRules is not available in this environment.
15
+ */var hi;function Ol(){return hi||(hi=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,A=e?Symbol.for("react.block"):60121,R=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function O(j){return typeof j=="string"||typeof j=="function"||j===r||j===c||j===i||j===a||j===d||j===m||typeof j=="object"&&j!==null&&(j.$$typeof===y||j.$$typeof===h||j.$$typeof===u||j.$$typeof===o||j.$$typeof===f||j.$$typeof===R||j.$$typeof===S||j.$$typeof===v||j.$$typeof===A)}function w(j){if(typeof j=="object"&&j!==null){var xe=j.$$typeof;switch(xe){case t:var ke=j.type;switch(ke){case l:case c:case r:case i:case a:case d:return ke;default:var Ce=ke&&ke.$$typeof;switch(Ce){case o:case f:case y:case h:case u:return Ce;default:return xe}}case n:return xe}}}var C=l,I=c,W=o,se=u,ne=t,Y=f,F=r,B=y,G=h,$=n,X=i,oe=a,pe=d,ve=!1;function Le(j){return ve||(ve=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),p(j)||w(j)===l}function p(j){return w(j)===c}function H(j){return w(j)===o}function Q(j){return w(j)===u}function T(j){return typeof j=="object"&&j!==null&&j.$$typeof===t}function q(j){return w(j)===f}function Z(j){return w(j)===r}function z(j){return w(j)===y}function K(j){return w(j)===h}function te(j){return w(j)===n}function ie(j){return w(j)===i}function J(j){return w(j)===a}function _e(j){return w(j)===d}ge.AsyncMode=C,ge.ConcurrentMode=I,ge.ContextConsumer=W,ge.ContextProvider=se,ge.Element=ne,ge.ForwardRef=Y,ge.Fragment=F,ge.Lazy=B,ge.Memo=G,ge.Portal=$,ge.Profiler=X,ge.StrictMode=oe,ge.Suspense=pe,ge.isAsyncMode=Le,ge.isConcurrentMode=p,ge.isContextConsumer=H,ge.isContextProvider=Q,ge.isElement=T,ge.isForwardRef=q,ge.isFragment=Z,ge.isLazy=z,ge.isMemo=K,ge.isPortal=te,ge.isProfiler=ie,ge.isStrictMode=J,ge.isSuspense=_e,ge.isValidElementType=O,ge.typeOf=w})()),ge}var mi;function Fa(){return mi||(mi=1,process.env.NODE_ENV==="production"?Fn.exports=Nl():Fn.exports=Ol()),Fn.exports}var Or,pi;function Ll(){if(pi)return Or;pi=1;var e=Fa(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=a;function u(y){return e.isMemo(y)?a:i[y.$$typeof]||t}var o=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;function h(y,A,R){if(typeof A!="string"){if(m){var S=d(A);S&&S!==m&&h(y,S,R)}var v=l(A);c&&(v=v.concat(c(A)));for(var O=u(y),w=u(A),C=0;C<v.length;++C){var I=v[C];if(!n[I]&&!(R&&R[I])&&!(w&&w[I])&&!(O&&O[I])){var W=f(A,I);try{o(y,I,W)}catch{}}}}return y}return Or=h,Or}Ll();function es(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var de;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(de||(de={}));var Oe;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(Oe||(Oe={}));var Kt;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Kt||(Kt={}));function Ei(e){return e.type===Oe.literal}function Rl(e){return e.type===Oe.argument}function ts(e){return e.type===Oe.number}function ns(e){return e.type===Oe.date}function rs(e){return e.type===Oe.time}function as(e){return e.type===Oe.select}function is(e){return e.type===Oe.plural}function vl(e){return e.type===Oe.pound}function us(e){return e.type===Oe.tag}function ss(e){return!!(e&&typeof e=="object"&&e.type===Kt.number)}function oa(e){return!!(e&&typeof e=="object"&&e.type===Kt.dateTime)}var os=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Pl=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Dl(e){var t={};return e.replace(Pl,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var kl=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function wl(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(kl).filter(function(m){return m.length>0}),n=[],r=0,a=t;r<a.length;r++){var i=a[r],u=i.split("/");if(u.length===0)throw new Error("Invalid number skeleton");for(var o=u[0],l=u.slice(1),c=0,f=l;c<f.length;c++){var d=f[c];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:o,options:l})}return n}function Ml(e){return e.replace(/^(.*?)-/,"")}var bi=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ls=/^(@+)?(\+|#+)?[rs]?$/g,Bl=/(\*)(0+)|(#+)(0+)|(0+)/g,cs=/^(0+)$/;function Ti(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ls,function(n,r,a){return typeof a!="string"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):a==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof a=="string"?a.length:0)),""}),t}function fs(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Fl(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!cs.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function gi(e){var t={},n=fs(e);return n||t}function Hl(e){for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];switch(a.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=a.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Ml(a.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=V(V(V({},t),{notation:"scientific"}),a.options.reduce(function(l,c){return V(V({},l),gi(c))},{}));continue;case"engineering":t=V(V(V({},t),{notation:"engineering"}),a.options.reduce(function(l,c){return V(V({},l),gi(c))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(a.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(a.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");a.options[0].replace(Bl,function(l,c,f,d,m,h){if(c)t.minimumIntegerDigits=f.length;else{if(d&&m)throw new Error("We currently do not support maximum integer digits");if(h)throw new Error("We currently do not support exact integer digits")}return""});continue}if(cs.test(a.stem)){t.minimumIntegerDigits=a.stem.length;continue}if(bi.test(a.stem)){if(a.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");a.stem.replace(bi,function(l,c,f,d,m,h){return f==="*"?t.minimumFractionDigits=c.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:m&&h?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+h.length):(t.minimumFractionDigits=c.length,t.maximumFractionDigits=c.length),""});var i=a.options[0];i==="w"?t=V(V({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=V(V({},t),Ti(i)));continue}if(ls.test(a.stem)){t=V(V({},t),Ti(a.stem));continue}var u=fs(a.stem);u&&(t=V(V({},t),u));var o=Fl(a.stem);o&&(t=V(V({},t),o))}return t}var Hn={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Ul(e,t){for(var n="",r=0;r<e.length;r++){var a=e.charAt(r);if(a==="j"){for(var i=0;r+1<e.length&&e.charAt(r+1)===a;)i++,r++;var u=1+(i&1),o=i<2?1:3+(i>>1),l="a",c=jl(t);for((c=="H"||c=="k")&&(o=0);o-- >0;)n+=l;for(;u-- >0;)n=c+n}else a==="J"?n+="H":n+=a}return n}function jl(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var a=Hn[r||""]||Hn[n||""]||Hn["".concat(n,"-001")]||Hn["001"];return a[0]}var Lr,$l=new RegExp("^".concat(os.source,"*")),Yl=new RegExp("".concat(os.source,"*$"));function he(e,t){return{start:e,end:t}}var Gl=!!String.prototype.startsWith&&"_a".startsWith("a",1),zl=!!String.fromCodePoint,Vl=!!Object.fromEntries,ql=!!String.prototype.codePointAt,Wl=!!String.prototype.trimStart,Xl=!!String.prototype.trimEnd,Ql=!!Number.isSafeInteger,Kl=Ql?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},la=!0;try{var Zl=hs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");la=((Lr=Zl.exec("a"))===null||Lr===void 0?void 0:Lr[0])==="a"}catch{la=!1}var Ai=Gl?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},ca=zl?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",a=t.length,i=0,u;a>i;){if(u=t[i++],u>1114111)throw RangeError(u+" is not a valid code point");r+=u<65536?String.fromCharCode(u):String.fromCharCode(((u-=65536)>>10)+55296,u%1024+56320)}return r},_i=Vl?Object.fromEntries:function(t){for(var n={},r=0,a=t;r<a.length;r++){var i=a[r],u=i[0],o=i[1];n[u]=o}return n},ds=ql?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var a=t.charCodeAt(n),i;return a<55296||a>56319||n+1===r||(i=t.charCodeAt(n+1))<56320||i>57343?a:(a-55296<<10)+(i-56320)+65536}},Jl=Wl?function(t){return t.trimStart()}:function(t){return t.replace($l,"")},ec=Xl?function(t){return t.trimEnd()}:function(t){return t.replace(Yl,"")};function hs(e,t){return new RegExp(e,t)}var fa;if(la){var yi=hs("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");fa=function(t,n){var r;yi.lastIndex=n;var a=yi.exec(t);return(r=a[1])!==null&&r!==void 0?r:""}}else fa=function(t,n){for(var r=[];;){var a=ds(t,n);if(a===void 0||ms(a)||ac(a))break;r.push(a),n+=a>=65536?2:1}return ca.apply(void 0,r)};var tc=(function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var a=[];!this.isEOF();){var i=this.char();if(i===123){var u=this.parseArgument(t,r);if(u.err)return u;a.push(u.val)}else{if(i===125&&t>0)break;if(i===35&&(n==="plural"||n==="selectordinal")){var o=this.clonePosition();this.bump(),a.push({type:Oe.pound,location:he(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(de.UNMATCHED_CLOSING_TAG,he(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&da(this.peek()||0)){var u=this.parseTag(t,n);if(u.err)return u;a.push(u.val)}else{var u=this.parseLiteral(t,n);if(u.err)return u;a.push(u.val)}}}return{val:a,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var a=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Oe.literal,value:"<".concat(a,"/>"),location:he(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,n,!0);if(i.err)return i;var u=i.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!da(this.char()))return this.error(de.INVALID_TAG,he(o,this.clonePosition()));var l=this.clonePosition(),c=this.parseTagName();return a!==c?this.error(de.UNMATCHED_CLOSING_TAG,he(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Oe.tag,value:a,children:u,location:he(r,this.clonePosition())},err:null}:this.error(de.INVALID_TAG,he(o,this.clonePosition())))}else return this.error(de.UNCLOSED_TAG,he(r,this.clonePosition()))}else return this.error(de.INVALID_TAG,he(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&rc(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),a="";;){var i=this.tryParseQuote(n);if(i){a+=i;continue}var u=this.tryParseUnquoted(t,n);if(u){a+=u;continue}var o=this.tryParseLeftAngleBracket();if(o){a+=o;continue}break}var l=he(r,this.clonePosition());return{val:{type:Oe.literal,value:a,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!nc(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return ca.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),ca(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(de.EMPTY_ARGUMENT,he(r,this.clonePosition()));var a=this.parseIdentifierIfPossible().value;if(!a)return this.error(de.MALFORMED_ARGUMENT,he(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Oe.argument,value:a,location:he(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,he(r,this.clonePosition())):this.parseArgumentOptions(t,n,a,r);default:return this.error(de.MALFORMED_ARGUMENT,he(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=fa(this.message,n),a=n+r.length;this.bumpTo(a);var i=this.clonePosition(),u=he(t,i);return{value:r,location:u}},e.prototype.parseArgumentOptions=function(t,n,r,a){var i,u=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(de.EXPECT_ARGUMENT_TYPE,he(u,l));case"number":case"date":case"time":{this.bumpSpace();var c=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var m=ec(d.val);if(m.length===0)return this.error(de.EXPECT_ARGUMENT_STYLE,he(this.clonePosition(),this.clonePosition()));var h=he(f,this.clonePosition());c={style:m,styleLocation:h}}var y=this.tryParseArgumentClose(a);if(y.err)return y;var A=he(a,this.clonePosition());if(c&&Ai(c?.style,"::",0)){var R=Jl(c.style.slice(2));if(o==="number"){var d=this.parseNumberSkeletonFromString(R,c.styleLocation);return d.err?d:{val:{type:Oe.number,value:r,location:A,style:d.val},err:null}}else{if(R.length===0)return this.error(de.EXPECT_DATE_TIME_SKELETON,A);var S=R;this.locale&&(S=Ul(R,this.locale));var m={type:Kt.dateTime,pattern:S,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?Dl(S):{}},v=o==="date"?Oe.date:Oe.time;return{val:{type:v,value:r,location:A,style:m},err:null}}}return{val:{type:o==="number"?Oe.number:o==="date"?Oe.date:Oe.time,value:r,location:A,style:(i=c?.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var O=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(de.EXPECT_SELECT_ARGUMENT_OPTIONS,he(O,V({},O)));this.bumpSpace();var w=this.parseIdentifierIfPossible(),C=0;if(o!=="select"&&w.value==="offset"){if(!this.bumpIf(":"))return this.error(de.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,he(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(de.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,de.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),w=this.parseIdentifierIfPossible(),C=d.val}var I=this.tryParsePluralOrSelectOptions(t,o,n,w);if(I.err)return I;var y=this.tryParseArgumentClose(a);if(y.err)return y;var W=he(a,this.clonePosition());return o==="select"?{val:{type:Oe.select,value:r,options:_i(I.val),location:W},err:null}:{val:{type:Oe.plural,value:r,options:_i(I.val),offset:C,pluralType:o==="plural"?"cardinal":"ordinal",location:W},err:null}}default:return this.error(de.INVALID_ARGUMENT_TYPE,he(u,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(de.EXPECT_ARGUMENT_CLOSING_BRACE,he(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var a=this.clonePosition();if(!this.bumpUntil("'"))return this.error(de.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,he(a,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=wl(t)}catch{return this.error(de.INVALID_NUMBER_SKELETON,n)}return{val:{type:Kt.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?Hl(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,a){for(var i,u=!1,o=[],l=new Set,c=a.value,f=a.location;;){if(c.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(de.EXPECT_PLURAL_ARGUMENT_SELECTOR,de.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;f=he(d,this.clonePosition()),c=this.message.slice(d.offset,this.offset())}else break}if(l.has(c))return this.error(n==="select"?de.DUPLICATE_SELECT_ARGUMENT_SELECTOR:de.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);c==="other"&&(u=!0),this.bumpSpace();var h=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?de.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:de.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,he(this.clonePosition(),this.clonePosition()));var y=this.parseMessage(t+1,n,r);if(y.err)return y;var A=this.tryParseArgumentClose(h);if(A.err)return A;o.push([c,{value:y.val,location:he(h,this.clonePosition())}]),l.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,f=i.location}return o.length===0?this.error(n==="select"?de.EXPECT_SELECT_ARGUMENT_SELECTOR:de.EXPECT_PLURAL_ARGUMENT_SELECTOR,he(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!u?this.error(de.MISSING_OTHER_CLAUSE,he(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,a=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,u=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,u=u*10+(o-48),this.bump();else break}var l=he(a,this.clonePosition());return i?(u*=r,Kl(u)?{val:u,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=ds(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Ai(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ms(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e})();function da(e){return e>=97&&e<=122||e>=65&&e<=90}function nc(e){return da(e)||e===47}function rc(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ms(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function ac(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function ha(e){e.forEach(function(t){if(delete t.location,as(t)||is(t))for(var n in t.options)delete t.options[n].location,ha(t.options[n].value);else ts(t)&&ss(t.style)||(ns(t)||rs(t))&&oa(t.style)?delete t.style.location:us(t)&&ha(t.children)})}function ic(e,t){t===void 0&&(t={}),t=V({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new tc(e,t).parse();if(n.err){var r=SyntaxError(de[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t?.captureLocation||ha(n.val),n.val}function st(e,t){var n=t&&t.cache?t.cache:fc,r=t&&t.serializer?t.serializer:cc,a=t&&t.strategy?t.strategy:oc;return a(e,{cache:n,serializer:r})}function uc(e){return e==null||typeof e=="number"||typeof e=="boolean"}function sc(e,t,n,r){var a=uc(r)?r:n(r),i=t.get(a);return typeof i>"u"&&(i=e.call(this,r),t.set(a,i)),i}function ps(e,t,n){var r=Array.prototype.slice.call(arguments,3),a=n(r),i=t.get(a);return typeof i>"u"&&(i=e.apply(this,r),t.set(a,i)),i}function Es(e,t,n,r,a){return n.bind(t,e,r,a)}function oc(e,t){var n=e.length===1?sc:ps;return Es(e,this,n,t.cache.create(),t.serializer)}function lc(e,t){return Es(e,this,ps,t.cache.create(),t.serializer)}var cc=function(){return JSON.stringify(arguments)};function Ha(){this.cache=Object.create(null)}Ha.prototype.get=function(e){return this.cache[e]};Ha.prototype.set=function(e,t){this.cache[e]=t};var fc={create:function(){return new Ha}},ot={variadic:lc},dt;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(dt||(dt={}));var xt=(function(e){tt(t,e);function t(n,r,a){var i=e.call(this,n)||this;return i.code=r,i.originalMessage=a,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t})(Error),Si=(function(e){tt(t,e);function t(n,r,a,i){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(a).join('", "'),'"'),dt.INVALID_VALUE,i)||this}return t})(xt),dc=(function(e){tt(t,e);function t(n,r,a){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),dt.INVALID_VALUE,a)||this}return t})(xt),hc=(function(e){tt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),dt.MISSING_VALUE,r)||this}return t})(xt),je;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(je||(je={}));function mc(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==je.literal||n.type!==je.literal?t.push(n):r.value+=n.value,t},[])}function bs(e){return typeof e=="function"}function Wn(e,t,n,r,a,i,u){if(e.length===1&&Ei(e[0]))return[{type:je.literal,value:e[0].value}];for(var o=[],l=0,c=e;l<c.length;l++){var f=c[l];if(Ei(f)){o.push({type:je.literal,value:f.value});continue}if(vl(f)){typeof i=="number"&&o.push({type:je.literal,value:n.getNumberFormat(t).format(i)});continue}var d=f.value;if(!(a&&d in a))throw new hc(d,u);var m=a[d];if(Rl(f)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),o.push({type:typeof m=="string"?je.literal:je.object,value:m});continue}if(ns(f)){var h=typeof f.style=="string"?r.date[f.style]:oa(f.style)?f.style.parsedOptions:void 0;o.push({type:je.literal,value:n.getDateTimeFormat(t,h).format(m)});continue}if(rs(f)){var h=typeof f.style=="string"?r.time[f.style]:oa(f.style)?f.style.parsedOptions:r.time.medium;o.push({type:je.literal,value:n.getDateTimeFormat(t,h).format(m)});continue}if(ts(f)){var h=typeof f.style=="string"?r.number[f.style]:ss(f.style)?f.style.parsedOptions:void 0;h&&h.scale&&(m=m*(h.scale||1)),o.push({type:je.literal,value:n.getNumberFormat(t,h).format(m)});continue}if(us(f)){var y=f.children,A=f.value,R=a[A];if(!bs(R))throw new dc(A,"function",u);var S=Wn(y,t,n,r,a,i),v=R(S.map(function(C){return C.value}));Array.isArray(v)||(v=[v]),o.push.apply(o,v.map(function(C){return{type:typeof C=="string"?je.literal:je.object,value:C}}))}if(as(f)){var O=f.options[m]||f.options.other;if(!O)throw new Si(f.value,m,Object.keys(f.options),u);o.push.apply(o,Wn(O.value,t,n,r,a));continue}if(is(f)){var O=f.options["=".concat(m)];if(!O){if(!Intl.PluralRules)throw new xt(`Intl.PluralRules is not available in this environment.
16
16
  Try polyfilling it using "@formatjs/intl-pluralrules"
17
- `,ErrorCode.MISSING_INTL_API,u);var I=n.getPluralRules(t,{type:d.pluralType}).select(m-(d.offset||0));_=d.options[I]||d.options.other}if(!_)throw new InvalidValueError(d.value,m,Object.keys(d.options),u);l.push.apply(l,formatToParts(_.value,t,n,i,a,m-(d.offset||0)));continue}}return mergeLiteral(l)}function mergeConfig(e,t){return t?__assign(__assign(__assign({},e||{}),t||{}),Object.keys(e).reduce(function(n,i){return n[i]=__assign(__assign({},e[i]),t[i]||{}),n},{})):e}function mergeConfigs(e,t){return t?Object.keys(e).reduce(function(n,i){return n[i]=mergeConfig(e[i],t[i]),n},__assign({},e)):e}function createFastMemoizeCache$1(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function createDefaultFormatters(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:memoize(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,__spreadArray([void 0],n,!1)))},{cache:createFastMemoizeCache$1(e.number),strategy:strategies.variadic}),getDateTimeFormat:memoize(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,__spreadArray([void 0],n,!1)))},{cache:createFastMemoizeCache$1(e.dateTime),strategy:strategies.variadic}),getPluralRules:memoize(function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,__spreadArray([void 0],n,!1)))},{cache:createFastMemoizeCache$1(e.pluralRules),strategy:strategies.variadic})}}var IntlMessageFormat=(function(){function e(t,n,i,a){var o=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(c){var f=o.formatToParts(c);if(f.length===1)return f[0].value;var d=f.reduce(function(T,m){return!T.length||m.type!==PART_TYPE.literal||typeof T[T.length-1]!="string"?T.push(m.value):T[T.length-1]+=m.value,T},[]);return d.length<=1?d[0]||"":d},this.formatToParts=function(c){return formatToParts(o.ast,o.locales,o.formatters,o.formats,c,void 0,o.message)},this.resolvedOptions=function(){var c;return{locale:((c=o.resolvedLocale)===null||c===void 0?void 0:c.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var u=a||{};u.formatters;var l=__rest(u,["formatters"]);this.ast=e.__parse(t,__assign(__assign({},l),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=mergeConfigs(e.formats,i),this.formatters=a&&a.formatters||createDefaultFormatters(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=parse$3,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})(),IntlErrorCode;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(IntlErrorCode||(IntlErrorCode={}));var IntlError=(function(e){__extends(t,e);function t(n,i,a){var o=this,u=a?a instanceof Error?a:new Error(String(a)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(i,`
17
+ `,dt.MISSING_INTL_API,u);var w=n.getPluralRules(t,{type:f.pluralType}).select(m-(f.offset||0));O=f.options[w]||f.options.other}if(!O)throw new Si(f.value,m,Object.keys(f.options),u);o.push.apply(o,Wn(O.value,t,n,r,a,m-(f.offset||0)));continue}}return mc(o)}function pc(e,t){return t?V(V(V({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=V(V({},e[r]),t[r]||{}),n},{})):e}function Ec(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=pc(e[r],t[r]),n},V({},e)):e}function Rr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function bc(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:st(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,lt([void 0],n,!1)))},{cache:Rr(e.number),strategy:ot.variadic}),getDateTimeFormat:st(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,lt([void 0],n,!1)))},{cache:Rr(e.dateTime),strategy:ot.variadic}),getPluralRules:st(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,lt([void 0],n,!1)))},{cache:Rr(e.pluralRules),strategy:ot.variadic})}}var Ts=(function(){function e(t,n,r,a){var i=this;if(n===void 0&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var c=i.formatToParts(l);if(c.length===1)return c[0].value;var f=c.reduce(function(d,m){return!d.length||m.type!==je.literal||typeof d[d.length-1]!="string"?d.push(m.value):d[d.length-1]+=m.value,d},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return Wn(i.ast,i.locales,i.formatters,i.formats,l,void 0,i.message)},this.resolvedOptions=function(){var l;return{locale:((l=i.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var u=a||{};u.formatters;var o=fr(u,["formatters"]);this.ast=e.__parse(t,V(V({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Ec(e.formats,r),this.formatters=a&&a.formatters||bc(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=ic,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e})(),wt;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(wt||(wt={}));var Ln=(function(e){tt(t,e);function t(n,r,a){var i=this,u=a?a instanceof Error?a:new Error(String(a)):void 0;return i=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,`
18
18
  `).concat(u?`
19
19
  `.concat(u.message,`
20
- `).concat(u.stack):""))||this,o.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t})(Error),UnsupportedFormatterError=(function(e){__extends(t,e);function t(n,i){return e.call(this,IntlErrorCode.UNSUPPORTED_FORMATTER,n,i)||this}return t})(IntlError),InvalidConfigError=(function(e){__extends(t,e);function t(n,i){return e.call(this,IntlErrorCode.INVALID_CONFIG,n,i)||this}return t})(IntlError),MissingDataError=(function(e){__extends(t,e);function t(n,i){return e.call(this,IntlErrorCode.MISSING_DATA,n,i)||this}return t})(IntlError),IntlFormatError=(function(e){__extends(t,e);function t(n,i,a){var o=e.call(this,IntlErrorCode.FORMAT_ERROR,"".concat(n,`
21
- Locale: `).concat(i,`
22
- `),a)||this;return o.locale=i,o}return t})(IntlError),MessageFormatError=(function(e){__extends(t,e);function t(n,i,a,o){var u=e.call(this,"".concat(n,`
20
+ `).concat(u.stack):""))||this,i.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(i,t),i}return t})(Error),Tc=(function(e){tt(t,e);function t(n,r){return e.call(this,wt.UNSUPPORTED_FORMATTER,n,r)||this}return t})(Ln),gc=(function(e){tt(t,e);function t(n,r){return e.call(this,wt.INVALID_CONFIG,n,r)||this}return t})(Ln),xi=(function(e){tt(t,e);function t(n,r){return e.call(this,wt.MISSING_DATA,n,r)||this}return t})(Ln),nt=(function(e){tt(t,e);function t(n,r,a){var i=e.call(this,wt.FORMAT_ERROR,"".concat(n,`
21
+ Locale: `).concat(r,`
22
+ `),a)||this;return i.locale=r,i}return t})(Ln),vr=(function(e){tt(t,e);function t(n,r,a,i){var u=e.call(this,"".concat(n,`
23
23
  MessageID: `).concat(a?.id,`
24
24
  Default Message: `).concat(a?.defaultMessage,`
25
25
  Description: `).concat(a?.description,`
26
- `),i,o)||this;return u.descriptor=a,u.locale=i,u}return t})(IntlFormatError),MissingTranslationError=(function(e){__extends(t,e);function t(n,i){var a=e.call(this,IntlErrorCode.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(i,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(o){var u;return(u=o.value)!==null&&u!==void 0?u:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return a.descriptor=n,a}return t})(IntlError);function filterProps(e,t,n){return n===void 0&&(n={}),t.reduce(function(i,a){return a in e?i[a]=e[a]:a in n&&(i[a]=n[a]),i},{})}var defaultErrorHandler=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},defaultWarnHandler=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},DEFAULT_INTL_CONFIG$1={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:defaultErrorHandler,onWarn:defaultWarnHandler};function createIntlCache(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function createFastMemoizeCache(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function createFormatters(e){e===void 0&&(e=createIntlCache());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,i=Intl.DisplayNames,a=memoize(function(){for(var l,c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return new((l=Intl.DateTimeFormat).bind.apply(l,__spreadArray([void 0],c,!1)))},{cache:createFastMemoizeCache(e.dateTime),strategy:strategies.variadic}),o=memoize(function(){for(var l,c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return new((l=Intl.NumberFormat).bind.apply(l,__spreadArray([void 0],c,!1)))},{cache:createFastMemoizeCache(e.number),strategy:strategies.variadic}),u=memoize(function(){for(var l,c=[],f=0;f<arguments.length;f++)c[f]=arguments[f];return new((l=Intl.PluralRules).bind.apply(l,__spreadArray([void 0],c,!1)))},{cache:createFastMemoizeCache(e.pluralRules),strategy:strategies.variadic});return{getDateTimeFormat:a,getNumberFormat:o,getMessageFormat:memoize(function(l,c,f,d){return new IntlMessageFormat(l,c,f,__assign({formatters:{getNumberFormat:o,getDateTimeFormat:a,getPluralRules:u}},d||{}))},{cache:createFastMemoizeCache(e.message),strategy:strategies.variadic}),getRelativeTimeFormat:memoize(function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new(t.bind.apply(t,__spreadArray([void 0],l,!1)))},{cache:createFastMemoizeCache(e.relativeTime),strategy:strategies.variadic}),getPluralRules:u,getListFormat:memoize(function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new(n.bind.apply(n,__spreadArray([void 0],l,!1)))},{cache:createFastMemoizeCache(e.list),strategy:strategies.variadic}),getDisplayNames:memoize(function(){for(var l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new(i.bind.apply(i,__spreadArray([void 0],l,!1)))},{cache:createFastMemoizeCache(e.displayNames),strategy:strategies.variadic})}}function getNamedFormat(e,t,n,i){var a=e&&e[t],o;if(a&&(o=a[n]),o)return o;i(new UnsupportedFormatterError("No ".concat(t," format named: ").concat(n)))}function setTimeZoneInOptions(e,t){return Object.keys(e).reduce(function(n,i){return n[i]=__assign({timeZone:t},e[i]),n},{})}function deepMergeOptions(e,t){var n=Object.keys(__assign(__assign({},e),t));return n.reduce(function(i,a){return i[a]=__assign(__assign({},e[a]||{}),t[a]||{}),i},{})}function deepMergeFormatsAndSetTimeZone(e,t){if(!t)return e;var n=IntlMessageFormat.formats;return __assign(__assign(__assign({},n),e),{date:deepMergeOptions(setTimeZoneInOptions(n.date,t),setTimeZoneInOptions(e.date||{},t)),time:deepMergeOptions(setTimeZoneInOptions(n.time,t),setTimeZoneInOptions(e.time||{},t))})}var formatMessage$1=function(e,t,n,i,a){var o=e.locale,u=e.formats,l=e.messages,c=e.defaultLocale,f=e.defaultFormats,d=e.fallbackOnEmptyString,T=e.onError,m=e.timeZone,y=e.defaultRichTextElements;n===void 0&&(n={id:""});var S=n.id,b=n.defaultMessage;invariant(!!S,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var L=String(S),v=l&&Object.prototype.hasOwnProperty.call(l,L)&&l[L];if(Array.isArray(v)&&v.length===1&&v[0].type===TYPE.literal)return v[0].value;if(!i&&v&&typeof v=="string"&&!y)return v.replace(/'\{(.*?)\}'/gi,"{$1}");if(i=__assign(__assign({},y),i||{}),u=deepMergeFormatsAndSetTimeZone(u,m),f=deepMergeFormatsAndSetTimeZone(f,m),!v){if(d===!1&&v==="")return v;if((!b||o&&o.toLowerCase()!==c.toLowerCase())&&T(new MissingTranslationError(n,o)),b)try{var A=t.getMessageFormat(b,c,f,a);return A.format(i)}catch(_){return T(new MessageFormatError('Error formatting default message for: "'.concat(L,'", rendering default message verbatim'),o,n,_)),typeof b=="string"?b:L}return L}try{var A=t.getMessageFormat(v,o,u,__assign({formatters:t},a||{}));return A.format(i)}catch(_){T(new MessageFormatError('Error formatting message: "'.concat(L,'", using ').concat(b?"default message":"id"," as fallback."),o,n,_))}if(b)try{var A=t.getMessageFormat(b,c,f,a);return A.format(i)}catch(_){T(new MessageFormatError('Error formatting the default message for: "'.concat(L,'", rendering message verbatim'),o,n,_))}return typeof v=="string"?v:typeof b=="string"?b:L},DATE_TIME_FORMAT_OPTIONS=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function getFormatter$2(e,t,n,i){var a=e.locale,o=e.formats,u=e.onError,l=e.timeZone;i===void 0&&(i={});var c=i.format,f=__assign(__assign({},l&&{timeZone:l}),c&&getNamedFormat(o,t,c,u)),d=filterProps(i,DATE_TIME_FORMAT_OPTIONS,f);return t==="time"&&!d.hour&&!d.minute&&!d.second&&!d.timeStyle&&!d.dateStyle&&(d=__assign(__assign({},d),{hour:"numeric",minute:"numeric"})),n(a,d)}function formatDate(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=n[0],o=n[1],u=o===void 0?{}:o,l=typeof a=="string"?new Date(a||0):a;try{return getFormatter$2(e,"date",t,u).format(l)}catch(c){e.onError(new IntlFormatError("Error formatting date.",e.locale,c))}return String(l)}function formatTime(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=n[0],o=n[1],u=o===void 0?{}:o,l=typeof a=="string"?new Date(a||0):a;try{return getFormatter$2(e,"time",t,u).format(l)}catch(c){e.onError(new IntlFormatError("Error formatting time.",e.locale,c))}return String(l)}function formatDateTimeRange(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=n[0],o=n[1],u=n[2],l=u===void 0?{}:u,c=e.timeZone,f=e.locale,d=e.onError,T=filterProps(l,DATE_TIME_FORMAT_OPTIONS,c?{timeZone:c}:{});try{return t(f,T).formatRange(a,o)}catch(m){d(new IntlFormatError("Error formatting date time range.",e.locale,m))}return String(a)}function formatDateToParts(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=n[0],o=n[1],u=o===void 0?{}:o,l=typeof a=="string"?new Date(a||0):a;try{return getFormatter$2(e,"date",t,u).formatToParts(l)}catch(c){e.onError(new IntlFormatError("Error formatting date.",e.locale,c))}return[]}function formatTimeToParts(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a=n[0],o=n[1],u=o===void 0?{}:o,l=typeof a=="string"?new Date(a||0):a;try{return getFormatter$2(e,"time",t,u).formatToParts(l)}catch(c){e.onError(new IntlFormatError("Error formatting time.",e.locale,c))}return[]}var DISPLAY_NAMES_OPTONS=["style","type","fallback","languageDisplay"];function formatDisplayName(e,t,n,i){var a=e.locale,o=e.onError,u=Intl.DisplayNames;u||o(new FormatError(`Intl.DisplayNames is not available in this environment.
26
+ `),r,i)||this;return u.descriptor=a,u.locale=r,u}return t})(nt),Ac=(function(e){tt(t,e);function t(n,r){var a=e.call(this,wt.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(i){var u;return(u=i.value)!==null&&u!==void 0?u:JSON.stringify(i)}).join(),")"):"id"," as fallback."))||this;return a.descriptor=n,a}return t})(Ln);function Bt(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,a){return a in e?r[a]=e[a]:a in n&&(r[a]=n[a]),r},{})}var _c=function(e){process.env.NODE_ENV!=="production"&&console.error(e)},yc=function(e){process.env.NODE_ENV!=="production"&&console.warn(e)},gs={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:_c,onWarn:yc};function As(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Ot(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function Sc(e){e===void 0&&(e=As());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,a=st(function(){for(var o,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((o=Intl.DateTimeFormat).bind.apply(o,lt([void 0],l,!1)))},{cache:Ot(e.dateTime),strategy:ot.variadic}),i=st(function(){for(var o,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((o=Intl.NumberFormat).bind.apply(o,lt([void 0],l,!1)))},{cache:Ot(e.number),strategy:ot.variadic}),u=st(function(){for(var o,l=[],c=0;c<arguments.length;c++)l[c]=arguments[c];return new((o=Intl.PluralRules).bind.apply(o,lt([void 0],l,!1)))},{cache:Ot(e.pluralRules),strategy:ot.variadic});return{getDateTimeFormat:a,getNumberFormat:i,getMessageFormat:st(function(o,l,c,f){return new Ts(o,l,c,V({formatters:{getNumberFormat:i,getDateTimeFormat:a,getPluralRules:u}},f||{}))},{cache:Ot(e.message),strategy:ot.variadic}),getRelativeTimeFormat:st(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(t.bind.apply(t,lt([void 0],o,!1)))},{cache:Ot(e.relativeTime),strategy:ot.variadic}),getPluralRules:u,getListFormat:st(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(n.bind.apply(n,lt([void 0],o,!1)))},{cache:Ot(e.list),strategy:ot.variadic}),getDisplayNames:st(function(){for(var o=[],l=0;l<arguments.length;l++)o[l]=arguments[l];return new(r.bind.apply(r,lt([void 0],o,!1)))},{cache:Ot(e.displayNames),strategy:ot.variadic})}}function Ua(e,t,n,r){var a=e&&e[t],i;if(a&&(i=a[n]),i)return i;r(new Tc("No ".concat(t," format named: ").concat(n)))}function Un(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=V({timeZone:t},e[r]),n},{})}function Ci(e,t){var n=Object.keys(V(V({},e),t));return n.reduce(function(r,a){return r[a]=V(V({},e[a]||{}),t[a]||{}),r},{})}function Ii(e,t){if(!t)return e;var n=Ts.formats;return V(V(V({},n),e),{date:Ci(Un(n.date,t),Un(e.date||{},t)),time:Ci(Un(n.time,t),Un(e.time||{},t))})}var ma=function(e,t,n,r,a){var i=e.locale,u=e.formats,o=e.messages,l=e.defaultLocale,c=e.defaultFormats,f=e.fallbackOnEmptyString,d=e.onError,m=e.timeZone,h=e.defaultRichTextElements;n===void 0&&(n={id:""});var y=n.id,A=n.defaultMessage;es(!!y,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var R=String(y),S=o&&Object.prototype.hasOwnProperty.call(o,R)&&o[R];if(Array.isArray(S)&&S.length===1&&S[0].type===Oe.literal)return S[0].value;if(!r&&S&&typeof S=="string"&&!h)return S.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=V(V({},h),r||{}),u=Ii(u,m),c=Ii(c,m),!S){if(f===!1&&S==="")return S;if((!A||i&&i.toLowerCase()!==l.toLowerCase())&&d(new Ac(n,i)),A)try{var v=t.getMessageFormat(A,l,c,a);return v.format(r)}catch(O){return d(new vr('Error formatting default message for: "'.concat(R,'", rendering default message verbatim'),i,n,O)),typeof A=="string"?A:R}return R}try{var v=t.getMessageFormat(S,i,u,V({formatters:t},a||{}));return v.format(r)}catch(O){d(new vr('Error formatting message: "'.concat(R,'", using ').concat(A?"default message":"id"," as fallback."),i,n,O))}if(A)try{var v=t.getMessageFormat(A,l,c,a);return v.format(r)}catch(O){d(new vr('Error formatting the default message for: "'.concat(R,'", rendering message verbatim'),i,n,O))}return typeof S=="string"?S:typeof A=="string"?A:R},_s=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function dr(e,t,n,r){var a=e.locale,i=e.formats,u=e.onError,o=e.timeZone;r===void 0&&(r={});var l=r.format,c=V(V({},o&&{timeZone:o}),l&&Ua(i,t,l,u)),f=Bt(r,_s,c);return t==="time"&&!f.hour&&!f.minute&&!f.second&&!f.timeStyle&&!f.dateStyle&&(f=V(V({},f),{hour:"numeric",minute:"numeric"})),n(a,f)}function xc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],u=i===void 0?{}:i,o=typeof a=="string"?new Date(a||0):a;try{return dr(e,"date",t,u).format(o)}catch(l){e.onError(new nt("Error formatting date.",e.locale,l))}return String(o)}function Cc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],u=i===void 0?{}:i,o=typeof a=="string"?new Date(a||0):a;try{return dr(e,"time",t,u).format(o)}catch(l){e.onError(new nt("Error formatting time.",e.locale,l))}return String(o)}function Ic(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],u=n[2],o=u===void 0?{}:u,l=e.timeZone,c=e.locale,f=e.onError,d=Bt(o,_s,l?{timeZone:l}:{});try{return t(c,d).formatRange(a,i)}catch(m){f(new nt("Error formatting date time range.",e.locale,m))}return String(a)}function Nc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],u=i===void 0?{}:i,o=typeof a=="string"?new Date(a||0):a;try{return dr(e,"date",t,u).formatToParts(o)}catch(l){e.onError(new nt("Error formatting date.",e.locale,l))}return[]}function Oc(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var a=n[0],i=n[1],u=i===void 0?{}:i,o=typeof a=="string"?new Date(a||0):a;try{return dr(e,"time",t,u).formatToParts(o)}catch(l){e.onError(new nt("Error formatting time.",e.locale,l))}return[]}var Lc=["style","type","fallback","languageDisplay"];function Rc(e,t,n,r){var a=e.locale,i=e.onError,u=Intl.DisplayNames;u||i(new xt(`Intl.DisplayNames is not available in this environment.
27
27
  Try polyfilling it using "@formatjs/intl-displaynames"
28
- `,ErrorCode.MISSING_INTL_API));var l=filterProps(i,DISPLAY_NAMES_OPTONS);try{return t(a,l).of(n)}catch(c){o(new IntlFormatError("Error formatting display name.",a,c))}}var LIST_FORMAT_OPTIONS=["type","style"],now=Date.now();function generateToken(e){return"".concat(now,"_").concat(e,"_").concat(now)}function formatList(e,t,n,i){i===void 0&&(i={});var a=formatListToParts(e,t,n,i).reduce(function(o,u){var l=u.value;return typeof l!="string"?o.push(l):typeof o[o.length-1]=="string"?o[o.length-1]+=l:o.push(l),o},[]);return a.length===1?a[0]:a.length===0?"":a}function formatListToParts(e,t,n,i){var a=e.locale,o=e.onError;i===void 0&&(i={});var u=Intl.ListFormat;u||o(new FormatError(`Intl.ListFormat is not available in this environment.
28
+ `,dt.MISSING_INTL_API));var o=Bt(r,Lc);try{return t(a,o).of(n)}catch(l){i(new nt("Error formatting display name.",a,l))}}var vc=["type","style"],Ni=Date.now();function Pc(e){return"".concat(Ni,"_").concat(e,"_").concat(Ni)}function Dc(e,t,n,r){r===void 0&&(r={});var a=ys(e,t,n,r).reduce(function(i,u){var o=u.value;return typeof o!="string"?i.push(o):typeof i[i.length-1]=="string"?i[i.length-1]+=o:i.push(o),i},[]);return a.length===1?a[0]:a.length===0?"":a}function ys(e,t,n,r){var a=e.locale,i=e.onError;r===void 0&&(r={});var u=Intl.ListFormat;u||i(new xt(`Intl.ListFormat is not available in this environment.
29
29
  Try polyfilling it using "@formatjs/intl-listformat"
30
- `,ErrorCode.MISSING_INTL_API));var l=filterProps(i,LIST_FORMAT_OPTIONS);try{var c={},f=n.map(function(d,T){if(typeof d=="object"){var m=generateToken(T);return c[m]=d,m}return String(d)});return t(a,l).formatToParts(f).map(function(d){return d.type==="literal"?d:__assign(__assign({},d),{value:c[d.value]||d.value})})}catch(d){o(new IntlFormatError("Error formatting list.",a,d))}return n}var PLURAL_FORMAT_OPTIONS=["type"];function formatPlural(e,t,n,i){var a=e.locale,o=e.onError;i===void 0&&(i={}),Intl.PluralRules||o(new FormatError(`Intl.PluralRules is not available in this environment.
30
+ `,dt.MISSING_INTL_API));var o=Bt(r,vc);try{var l={},c=n.map(function(f,d){if(typeof f=="object"){var m=Pc(d);return l[m]=f,m}return String(f)});return t(a,o).formatToParts(c).map(function(f){return f.type==="literal"?f:V(V({},f),{value:l[f.value]||f.value})})}catch(f){i(new nt("Error formatting list.",a,f))}return n}var kc=["type"];function wc(e,t,n,r){var a=e.locale,i=e.onError;r===void 0&&(r={}),Intl.PluralRules||i(new xt(`Intl.PluralRules is not available in this environment.
31
31
  Try polyfilling it using "@formatjs/intl-pluralrules"
32
- `,ErrorCode.MISSING_INTL_API));var u=filterProps(i,PLURAL_FORMAT_OPTIONS);try{return t(a,u).select(n)}catch(l){o(new IntlFormatError("Error formatting plural.",a,l))}return"other"}var RELATIVE_TIME_FORMAT_OPTIONS=["numeric","style"];function getFormatter$1(e,t,n){var i=e.locale,a=e.formats,o=e.onError;n===void 0&&(n={});var u=n.format,l=!!u&&getNamedFormat(a,"relative",u,o)||{},c=filterProps(n,RELATIVE_TIME_FORMAT_OPTIONS,l);return t(i,c)}function formatRelativeTime(e,t,n,i,a){a===void 0&&(a={}),i||(i="second");var o=Intl.RelativeTimeFormat;o||e.onError(new FormatError(`Intl.RelativeTimeFormat is not available in this environment.
32
+ `,dt.MISSING_INTL_API));var u=Bt(r,kc);try{return t(a,u).select(n)}catch(o){i(new nt("Error formatting plural.",a,o))}return"other"}var Mc=["numeric","style"];function Bc(e,t,n){var r=e.locale,a=e.formats,i=e.onError;n===void 0&&(n={});var u=n.format,o=!!u&&Ua(a,"relative",u,i)||{},l=Bt(n,Mc,o);return t(r,l)}function Fc(e,t,n,r,a){a===void 0&&(a={}),r||(r="second");var i=Intl.RelativeTimeFormat;i||e.onError(new xt(`Intl.RelativeTimeFormat is not available in this environment.
33
33
  Try polyfilling it using "@formatjs/intl-relativetimeformat"
34
- `,ErrorCode.MISSING_INTL_API));try{return getFormatter$1(e,t,a).format(n,i)}catch(u){e.onError(new IntlFormatError("Error formatting relative time.",e.locale,u))}return String(n)}var NUMBER_FORMAT_OPTIONS=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function getFormatter(e,t,n){var i=e.locale,a=e.formats,o=e.onError;n===void 0&&(n={});var u=n.format,l=u&&getNamedFormat(a,"number",u,o)||{},c=filterProps(n,NUMBER_FORMAT_OPTIONS,l);return t(i,c)}function formatNumber(e,t,n,i){i===void 0&&(i={});try{return getFormatter(e,t,i).format(n)}catch(a){e.onError(new IntlFormatError("Error formatting number.",e.locale,a))}return String(n)}function formatNumberToParts(e,t,n,i){i===void 0&&(i={});try{return getFormatter(e,t,i).formatToParts(n)}catch(a){e.onError(new IntlFormatError("Error formatting number.",e.locale,a))}return[]}function messagesContainString(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function verifyConfigMessages(e){e.onWarn&&e.defaultRichTextElements&&messagesContainString(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
34
+ `,dt.MISSING_INTL_API));try{return Bc(e,t,a).format(n,r)}catch(u){e.onError(new nt("Error formatting relative time.",e.locale,u))}return String(n)}var Hc=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function Ss(e,t,n){var r=e.locale,a=e.formats,i=e.onError;n===void 0&&(n={});var u=n.format,o=u&&Ua(a,"number",u,i)||{},l=Bt(n,Hc,o);return t(r,l)}function Uc(e,t,n,r){r===void 0&&(r={});try{return Ss(e,t,r).format(n)}catch(a){e.onError(new nt("Error formatting number.",e.locale,a))}return String(n)}function jc(e,t,n,r){r===void 0&&(r={});try{return Ss(e,t,r).formatToParts(n)}catch(a){e.onError(new nt("Error formatting number.",e.locale,a))}return[]}function $c(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function Yc(e){e.onWarn&&e.defaultRichTextElements&&$c(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
35
35
  Please consider using "@formatjs/cli" to pre-compile your messages for performance.
36
- For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function createIntl$1(e,t){var n=createFormatters(t),i=__assign(__assign({},DEFAULT_INTL_CONFIG$1),e),a=i.locale,o=i.defaultLocale,u=i.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&u?u(new MissingDataError('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&u&&u(new MissingDataError('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(u&&u(new InvalidConfigError('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),i.locale=i.defaultLocale||"en"),verifyConfigMessages(i),__assign(__assign({},i),{formatters:n,formatNumber:formatNumber.bind(null,i,n.getNumberFormat),formatNumberToParts:formatNumberToParts.bind(null,i,n.getNumberFormat),formatRelativeTime:formatRelativeTime.bind(null,i,n.getRelativeTimeFormat),formatDate:formatDate.bind(null,i,n.getDateTimeFormat),formatDateToParts:formatDateToParts.bind(null,i,n.getDateTimeFormat),formatTime:formatTime.bind(null,i,n.getDateTimeFormat),formatDateTimeRange:formatDateTimeRange.bind(null,i,n.getDateTimeFormat),formatTimeToParts:formatTimeToParts.bind(null,i,n.getDateTimeFormat),formatPlural:formatPlural.bind(null,i,n.getPluralRules),formatMessage:formatMessage$1.bind(null,i,n),$t:formatMessage$1.bind(null,i,n),formatList:formatList.bind(null,i,n.getListFormat),formatListToParts:formatListToParts.bind(null,i,n.getListFormat),formatDisplayName:formatDisplayName.bind(null,i,n.getDisplayNames)})}function invariantIntlContext(e){invariant(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var DEFAULT_INTL_CONFIG=__assign(__assign({},DEFAULT_INTL_CONFIG$1),{textComponent:React__namespace.Fragment});function assignUniqueKeysToParts(e){return function(t){return e(React__namespace.Children.toArray(t))}}function shallowEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),i=Object.keys(t),a=n.length;if(i.length!==a)return!1;for(var o=0;o<a;o++){var u=n[o];if(e[u]!==t[u]||!Object.prototype.hasOwnProperty.call(t,u))return!1}return!0}var IntlContext=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=React__namespace.createContext(null)):React__namespace.createContext(null);IntlContext.Consumer;var IntlProvider$1=IntlContext.Provider,Provider=IntlProvider$1,Context=IntlContext;function useIntl(){var e=React__namespace.useContext(Context);return invariantIntlContext(e),e}var DisplayName;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(DisplayName||(DisplayName={}));var DisplayNameParts;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(DisplayNameParts||(DisplayNameParts={}));function createFormattedDateTimePartsComponent(e){var t=function(n){var i=useIntl(),a=n.value,o=n.children,u=__rest(n,["value","children"]),l=typeof a=="string"?new Date(a||0):a,c=e==="formatDate"?i.formatDateToParts(l,u):i.formatTimeToParts(l,u);return o(c)};return t.displayName=DisplayNameParts[e],t}function createFormattedComponent(e){var t=function(n){var i=useIntl(),a=n.value,o=n.children,u=__rest(n,["value","children"]),l=i[e](a,u);if(typeof o=="function")return o(l);var c=i.textComponent||React__namespace.Fragment;return React__namespace.createElement(c,null,l)};return t.displayName=DisplayName[e],t}function assignUniqueKeysToFormatXMLElementFnArgument(e){return e&&Object.keys(e).reduce(function(t,n){var i=e[n];return t[n]=isFormatXMLElementFn(i)?assignUniqueKeysToParts(i):i,t},{})}var formatMessage=function(e,t,n,i){for(var a=[],o=4;o<arguments.length;o++)a[o-4]=arguments[o];var u=assignUniqueKeysToFormatXMLElementFnArgument(i),l=formatMessage$1.apply(void 0,__spreadArray([e,t,n,u],a,!1));return Array.isArray(l)?React__namespace.Children.toArray(l):l},createIntl=function(e,t){var n=e.defaultRichTextElements,i=__rest(e,["defaultRichTextElements"]),a=assignUniqueKeysToFormatXMLElementFnArgument(n),o=createIntl$1(__assign(__assign(__assign({},DEFAULT_INTL_CONFIG),i),{defaultRichTextElements:a}),t),u={locale:o.locale,timeZone:o.timeZone,fallbackOnEmptyString:o.fallbackOnEmptyString,formats:o.formats,defaultLocale:o.defaultLocale,defaultFormats:o.defaultFormats,messages:o.messages,onError:o.onError,defaultRichTextElements:a};return __assign(__assign({},o),{formatMessage:formatMessage.bind(null,u,o.formatters),$t:formatMessage.bind(null,u,o.formatters)})};function processIntlConfig(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var IntlProvider=(function(e){__extends(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=createIntlCache(),n.state={cache:n.cache,intl:createIntl(processIntlConfig(n.props),n.cache),prevConfig:processIntlConfig(n.props)},n}return t.getDerivedStateFromProps=function(n,i){var a=i.prevConfig,o=i.cache,u=processIntlConfig(n);return shallowEqual(a,u)?null:{intl:createIntl(u,o),prevConfig:u}},t.prototype.render=function(){return invariantIntlContext(this.state.intl),React__namespace.createElement(Provider,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=DEFAULT_INTL_CONFIG,t})(React__namespace.PureComponent);createFormattedComponent("formatDate");createFormattedComponent("formatTime");createFormattedComponent("formatNumber");createFormattedComponent("formatList");createFormattedComponent("formatDisplayName");createFormattedDateTimePartsComponent("formatDate");createFormattedDateTimePartsComponent("formatTime");const translationsEnUS={"generic.language.english":"English","generic.language.french":"French","generic.connect.google":"Connect with Google","generic.button.title.save":"Save","page.login.button.login":"Login / Register","page.login.google.login":"Continue with Google","navbar.button.home":"Home","navbar.button.pricing":"Pricing","navbar.button.login":"Login","navbar.button.demo":"Demo","navbar.userMenu.logout":"Log out","navbar.userMenu.profile":"Profile","navbar.userMenu.backOffice":"Back-office","home.header.catchphase":"The catchphrase you wanted","home.header.subcatchphase":"Discover the new software that will change it all","home.header.CTA":"See more","home.section.bulletsPointParagraphe1.title":"Management","home.section.bulletsPointParagraphe1.text":"Take advantage of a complete solution to have a direct point of view on all of your units.","home.section.bulletsPointParagraphe2.title":"Automation","home.section.bulletsPointParagraphe2.text":"In just a few clicks, manage your entire fleet. Implement macros and synergies on your systems.","home.section.bulletsPointParagraphe3.title":"Reporting","home.section.bulletsPointParagraphe3.text":"With its BI module, our software allows you to monitor performance and optimize your costs.","home.realm.title":"See the root of your business in a few clicks","home.realm.text":"The security of your data is at the heart of our concerns. Our software was created in France, we are ISO 27001 certified and all our servers are located in Europe.","home.realm.cta":"Discover our solution","home.testimonials.title":"What our customers say","home.testimonials.1.text":"Since using the software, we have better control of the flow of goods and relevant performance monitoring.","home.testimonials.1.job":"Developer @Wordpress","home.testimonials.1.name":"Loic Martins","home.testimonials.2.text":"Putting the software solution into production allowed us to completely reorganize the teams.","home.testimonials.2.job":"Community Manager @Comet","home.testimonials.2.name":"Anna Wang","home.testimonials.3.text":"Mastery of the logistics subject is obvious with the software solution.","home.testimonials.3.job":"Product Owner @April","home.testimonials.3.name":"Louis Bachant","home.test.section.title":"Try it out now","home.test.section.CTA":"See our solution","pricing.CTA.pleaseLogin":"Login to buy","pricing.page.title":"Choose your plan","pricing.page.subtitle":"No obligation: cancel at any time with one click.","subscribe.paymentRecap.title":"Payment Summary","subscribe.paymentRecap.customerName":"Name","subscribe.paymentRecap.customerMail":"Email","subscribe.paymentRecap.additionnalMention":"Mention to add","subscribe.paymentRecap.totalAmount":"Total Amount","subscribe.paymentForm.title":"Bank card","subscribe.paymentForm.cardNumber":"Card number","subscribe.paymentForm.expiresAt":"Expires at","subscribe.paymentForm.CVCNumber":"CVC number","subscribe.paymentForm.CTA.loading":"Loading ...","subscribe.paymentForm.CTA.pay":"Pay now","subscribe.success.title":"Payment successful","subscribe.success.paragraph1":"Your payment has been processed successfully. You are now suscribed !","subscribe.success.paragraph2":"Your new options are now available.","myAccount.page.leftMenu.general":"General","myAccount.page.leftMenu.profile":"Profile","chatbot.placeholder.content":"Message the assistant...","chatbot.chatline.label.user":"You","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.genericSearchMessage":"I'm looking for products","chatbot.chatline.loading.function.search":"Search","chatbot.chatline.loading.function.extractProductName":"Looking into the cavern","chatbot.chatline.loading.function.suggestProductName":"Consulting the shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Looking for ziboublis","chatbot.chatline.loading.function.searchStock":"Searching Stock","chatbot.chatline.loading.function.step":"Step","chatbot.chatline.loading.cancel":"Cancel","footer.tab.title.general":"General","footer.tab.title.about":"About","footer.tab.title.resources":"Resources","footer.tab.title.legal":"Legal","footer.tab.title.social":"Social","footer.tab.search":"Search","footer.tab.pricing":"Pricing","footer.tab.termsAndConditions":"Terms and conditions","footer.tab.finalCopyright":"Copyright © 2023 Logiciel, Inc. All rights reserved."},translationsFrFR={"generic.language.english":"Anglais","generic.language.french":"Français","generic.connect.google":"Se connecter avec Google","generic.button.title.save":"Sauvegarder","page.login.button.login":"Se connecter / S'inscrire","page.login.google.login":"Continuer avec Google","navbar.button.home":"Accueil","navbar.button.pricing":"Tarifs","navbar.button.login":"Se Connecter","navbar.button.demo":"Demo","navbar.userMenu.logout":"Déconnection","navbar.userMenu.profile":"Profil","navbar.userMenu.backOffice":"Back-office","home.header.catchphase":"Catchphrase de l'espace","home.header.subcatchphase":"Découvrez le logiciel qui met fin à vos problèmes","home.header.CTA":"Voir notre solution","home.section.bulletsPointParagraphe1.title":"Management","home.section.bulletsPointParagraphe1.text":"Profitez d'une solution complète pour avoir un point de vue direct sur l'ensemble de vos unités.","home.section.bulletsPointParagraphe2.title":"Automatisation","home.section.bulletsPointParagraphe2.text":"En quelques clicks, gérez l'ensemble de votre flotte. Mettez en place des macros et des synergies sur vos systèmes.","home.section.bulletsPointParagraphe3.title":"Reporting","home.section.bulletsPointParagraphe3.text":"Avec son module BI, notre logiciel vous permet de monitorer la performance et d'optimiser vos coûts. A l'euro prêt","home.realm.title":"Le coeur du métier en quelques clics","home.realm.text":"La sécurité de vos données est au cœur de nos préoccupations. Notre logiciel a été créé en France, nous sommes certifiés ISO 27001 et tous nos serveurs sont situés en Europe.","home.realm.cta":"Voir notre solution","home.testimonials.title":"Nos clients parlent de nous","home.testimonials.1.text":"Depuis notre utilisation du logiciel, nous avons un meilleur contrôle du flux de marchandises et un suivi de performance pertinent.","home.testimonials.1.job":"Developpeur @Wordpress","home.testimonials.1.name":"Loic Martins","home.testimonials.2.text":"La mise en production de la solution logicielle nous a permis de réorganiser complètement les équipes.","home.testimonials.2.job":"Community Manager @Comet","home.testimonials.2.name":"Anna Wang","home.testimonials.3.text":"La maitrise du sujet logistique est une évidence avec la solution logicielle.","home.testimonials.3.job":"Product Owner @April","home.testimonials.3.name":"Louis Bachant","home.test.section.title":"Testez dès maintenant","home.test.section.CTA":"Voir notre solution","pricing.CTA.pleaseLogin":"Connectez-vous","pricing.page.title":"Choisissez votre plan","pricing.page.subtitle":"Sans engagement : annulez à tout moment en un clic.","subscribe.paymentRecap.title":"Récapitulatif de paiement","subscribe.paymentRecap.customerName":"Nom","subscribe.paymentRecap.customerMail":"Email","subscribe.paymentRecap.additionnalMention":"Mention à ajouter","subscribe.paymentRecap.totalAmount":"Total","subscribe.paymentForm.title":"Carte bancaire","subscribe.paymentForm.cardNumber":"Numéro de carte","subscribe.paymentForm.expiresAt":"Expire le","subscribe.paymentForm.CVCNumber":"Numéro CVV","subscribe.paymentForm.CTA.loading":"Chargement ...","subscribe.paymentForm.CTA.pay":"S'abonner","subscribe.success.title":"Paiement effectué avec succès","subscribe.success.paragraph1":"Votre paiement a bien été accepté. Vous êtes désormais abonné !","subscribe.success.paragraph2":"Toutes vos options sont maintenant disponibles.","myAccount.page.leftMenu.general":"Général","myAccount.page.leftMenu.profile":"Profil","chatbot.placeholder.content":"Envoyez un message à l'assistant ...","chatbot.chatline.label.user":"Vous","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.search":"Recherche","chatbot.chatline.loading.function.genericSearchMessage":"Je cherche des produits","chatbot.chatline.loading.function.extractProductName":"Recherche dans la caverne","chatbot.chatline.loading.function.suggestProductName":"Consultation des shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Recherche des ziboublis","chatbot.chatline.loading.function.searchStock":"Recherche en stock","chatbot.chatline.loading.function.step":"Etape","chatbot.chatline.loading.cancel":"Annuler","footer.tab.title.general":"Général","footer.tab.title.about":"A propos","footer.tab.title.resources":"Ressources","footer.tab.title.legal":"Mentions Légales","footer.tab.title.social":"Social","footer.tab.search":"Rechercher","footer.tab.pricing":"Tarifs","footer.tab.termsAndConditions":"Termes et conditions","footer.tab.finalCopyright":"Copyright © 2023 Logiciel, Inc. Tous droits réservés."};var LocalesDict=(e=>(e.FRENCH="fr-FR",e.ENGLISH="en-US",e))(LocalesDict||{});const langInApp={[LocalesDict.ENGLISH]:{translatedText:translationsEnUS,pictureName:LocalesDict.ENGLISH,langID:0,locale:LocalesDict.ENGLISH},[LocalesDict.FRENCH]:{translatedText:translationsFrFR,pictureName:LocalesDict.FRENCH,langID:1,locale:LocalesDict.FRENCH}},availableLangues=Object.keys(langInApp);availableLangues.reduce((e,t)=>{const n=langInApp[t];return[...e,n]},[]);const LANGUAGE_SETTINGS_KEYNAME_LOCAL_STORAGE="languageSettings",checkLangLocaleStorage=(e,t)=>{let n,i;return typeof window<"u"&&(i=window.localStorage.getItem(LANGUAGE_SETTINGS_KEYNAME_LOCAL_STORAGE)),i&&e?.[i]!==void 0?n=e[i]:(n=e[t],n.isDefault=!0),n},useBootLanguageApp=(e,t)=>{const[n,i]=React.useState(e[t]),a=o=>{Object.keys(e).includes(o?.locale)?i(o):i(e[LocalesDict.ENGLISH])};return React.useEffect(()=>{let o=checkLangLocaleStorage(e,t);o.locale!==t&&i(e[o.locale])},[]),{appCurrentLang:n,handleSetContextCurrentLang:a}},appCurrentLangContext=React.createContext({appCurrentLang:langInApp[LocalesDict.ENGLISH],setAppCurrentLang:()=>{}}),chatbotInitialConversationContext=React.createContext({conversation:[],setConversation:()=>{}});var src={},hasRequiredSrc;function requireSrc(){if(hasRequiredSrc)return src;hasRequiredSrc=1,Object.defineProperty(src,"__esModule",{value:!0}),src.AgentDisplayFacetRoleType=src.AgentDisplayFacetModeType=void 0;var e;(function(n){n.SPRITESHEET="spritesheet",n.LOTTIE="lottie",n.IMAGE="image",n.SVG="svg",n.VIDEO="video"})(e||(src.AgentDisplayFacetModeType=e={}));var t;return(function(n){n.LAUNCHER="launcher",n.ASSISTANT="assistant",n.SEARCH="search"})(t||(src.AgentDisplayFacetRoleType=t={})),src}var srcExports=requireSrc();const emptyFacet=e=>({mode:srcExports.AgentDisplayFacetModeType.SVG,role:e}),getEmptyCompanySettings=()=>({agent:{display:{name:"",CSSRules:"",[srcExports.AgentDisplayFacetRoleType.LAUNCHER]:emptyFacet(srcExports.AgentDisplayFacetRoleType.LAUNCHER),[srcExports.AgentDisplayFacetRoleType.ASSISTANT]:emptyFacet(srcExports.AgentDisplayFacetRoleType.ASSISTANT),[srcExports.AgentDisplayFacetRoleType.SEARCH]:emptyFacet(srcExports.AgentDisplayFacetRoleType.SEARCH)},text:{initialText:""}}}),CompanySettingsContext=React.createContext({companySettings:getEmptyCompanySettings(),setCompanySettings:()=>{}}),getEmptyInternalAppContext=()=>({hasFetchedSettings:!1,hasDisplayedCSS:!1}),useInternalAppContext=()=>{const[e,t]=React.useState(getEmptyInternalAppContext());return{appInternalContext:e,setAppInternalContext:t,setHasFetchedSettings:()=>{t(a=>({...a,hasFetchedSettings:!0}))},setHasDisplayedCss:()=>{t(a=>({...a,hasDisplayedCSS:!0}))}}},AppInternalContext=React.createContext({appInternalContext:getEmptyInternalAppContext(),setAppInternalContext:()=>{},setHasFetchedSettings:()=>{}}),isAvailableLanguageOnApp=e=>Object.values(LocalesDict).includes(e),funnelLangUsage=e=>isAvailableLanguageOnApp(e)?e:(console.log(`Language ${e} not handled for now. Using ${LocalesDict.ENGLISH}.`),LocalesDict.ENGLISH);class ApiService{constructor(){}static getApiUrl=()=>process.env.NODE_ENV==="development"?"http://localhost:3001":"https://www.api.chatsystem.ai";static getHeaders=({contentType:t="text/plain"})=>({"Content-Type":t});static getFetchConfig=({contentType:t="text/plain",httpVerb:n="GET",body:i,options:a={}})=>{const o={method:n,headers:this.getHeaders({contentType:t}),...a};return i&&(o.body=JSON.stringify(i)),o}}const useGetUserContext=({agentId:e,appToken:t,onFetched:n})=>{const[i,a]=React.useState({}),o={companySettings:i,setCompanySettings:a},[u,l]=React.useState([]),c={conversation:u,setConversation:l};return React.useEffect(()=>{const f=ApiService.getApiUrl(),d=ApiService.getFetchConfig({httpVerb:"GET",contentType:"application/json"});fetch(`${f}/company/settings/${t}/${e}`,d).then(async T=>{const m=await T.json();a(m),l([{userType:"assistant",content:m.agent.text.initialText}]),n?.()}).catch(T=>console.log("error in fetch",T))},[t,e]),{contextCompanySettings:o,contextInitialChatbotStartingText:c}};function useLoadInlineCss(e,t={},n){const{id:i,nonce:a,target:o,disableConstructable:u}=t,l=o??document.head,c=React.useRef(null),f=React.useRef(null);React.useEffect(()=>{if(!e)return;if(!u&&"adoptedStyleSheets"in l&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype)return c.current||(c.current=new CSSStyleSheet,l.adoptedStyleSheets=[...l.adoptedStyleSheets,c.current]),c.current.replaceSync(e),n?.(),()=>{const T=l.adoptedStyleSheets||[],m=T.indexOf(c.current);if(m>=0){const y=T.slice();y.splice(m,1),l.adoptedStyleSheets=y}c.current=null};if(!f.current){const T=document.createElement("style");T.type="text/css",i&&(T.id=i),a&&(T.nonce=a),(l instanceof Document&&l.head||l).appendChild(T),f.current=T}return f.current.textContent=e,n?.(),()=>{f.current?.parentNode?.removeChild(f.current),f.current=null}},[e,i,a,o,u])}const g=globalThis;g.__WIDGET_ASSET_CACHE__||(g.__WIDGET_ASSET_CACHE__={svg:new Map,img:new Map,lot:new Map,spr:new Map});g.__WIDGET_PRELOAD_KEYS__||(g.__WIDGET_PRELOAD_KEYS__=new Set);const PRELOAD_KEYS=g.__WIDGET_PRELOAD_KEYS__,memoryCache=g.__WIDGET_ASSET_CACHE__,CACHE_NAME="widget-assets-v1";async function fetchCached(e,t){const n=await caches.open(CACHE_NAME),i=await n.match(e,{ignoreSearch:!1});if(i)return i.clone();const a=await fetch(e,{cache:"force-cache",mode:"cors",keepalive:!0,...t});if(!a.ok)throw new Error(`HTTP ${a.status} for ${e}`);return n.put(e,a.clone()),a}async function preloadSvg(e){const t=memoryCache.svg.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await fetchCached(e)).text();if(typeof globalThis.DOMPurify<"u"&&typeof globalThis.DOMPurify.sanitize=="function")try{const u=new DOMParser().parseFromString(a,"image/svg+xml"),l=new XMLSerializer().serializeToString(u.documentElement);return{sanitized:globalThis.DOMPurify.sanitize(l,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}catch{return{sanitized:globalThis.DOMPurify.sanitize(a,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}else return{sanitized:a}})();return memoryCache.svg.set(e,{promise:n,ts:Date.now()}),n}function preloadImage(e){const t=memoryCache.img.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await fetchCached(e)).blob();return{blobUrl:URL.createObjectURL(a)}})();return memoryCache.img.set(e,{promise:n,ts:Date.now()}),n}function preloadLottie(e){const t=memoryCache.lot.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await fetchCached(e)).arrayBuffer(),o=new Uint8Array(a);if(o.length>=4&&o[0]===80&&o[1]===75&&o[2]===3&&o[3]===4||e.endsWith(".lottie"))return{kind:"zip",blobUrl:URL.createObjectURL(new Blob([a],{type:"application/zip"}))};const l=new TextDecoder().decode(o);return{kind:"json",data:JSON.parse(l)}})();return memoryCache.lot.set(e,{promise:n,ts:Date.now()}),n}function preloadSpritesheet(e){const t=memoryCache.spr.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await fetchCached(e)).blob();let o=null;try{o=await createImageBitmap(a)}catch{o=null}const{imgEl:u,width:l,height:c}=await new Promise((f,d)=>{const T=URL.createObjectURL(a),m=new Image;m.crossOrigin="anonymous",m.onload=()=>{const y=m.naturalWidth,S=m.naturalHeight;f({imgEl:m,width:y,height:S})},m.onerror=()=>{URL.revokeObjectURL(T),d(new Error("Spritesheet image decode failed"))},m.src=T,m.decode?.().catch(()=>{})});return{imgEl:u,bitmap:o,width:l,height:c}})();return memoryCache.spr.set(e,{promise:n,ts:Date.now()}),n}function warmAssetManifest(e){e.images?.forEach(t=>void preloadImage(t)),e.svgs?.forEach(t=>void preloadSvg(t)),e.lotties?.forEach(t=>void preloadLottie(t)),e.sprites?.forEach(t=>void preloadSpritesheet(t))}function injectPreconnect(e){try{const t=document.createElement("link");t.rel="preconnect",t.href=e,t.crossOrigin="anonymous",document.head.appendChild(t);const n=document.createElement("link");n.rel="dns-prefetch",n.href=e,document.head.appendChild(n)}catch(t){console.log("error in injectPreconnect",t)}}function normalize$2(e){return new URL(e,document.baseURI).toString()}function hasExistingPreload(e,t){const n=document.head.querySelectorAll('link[rel="preload"]');for(const i of n)if((e?i.as===e||i.getAttribute("as")===e:!0)&&i.href===t)return!0;return!1}function preloadOnce(e,t,n,i){const a=normalize$2(n),o=`${e}|${t??""}|${a}`;if(PRELOAD_KEYS.has(o))return;if(hasExistingPreload(t,a)){PRELOAD_KEYS.add(o);return}const u=document.createElement("link");u.rel=e,t&&(u.as=t),u.href=a,u.crossOrigin="anonymous",i&&(u.type=i),u.setAttribute("data-chatsystem-preload","1"),document.head.appendChild(u),PRELOAD_KEYS.add(o)}function injectPreloadHints(e){const t=u=>Array.from(new Set((u??[]).map(normalize$2))),n=t(e.images),i=t(e.svgs),a=t(e.lotties),o=t(e.sprites);n.forEach(u=>preloadOnce("preload","image",u)),i.forEach(u=>preloadOnce("preload","fetch",u,"image/svg+xml")),a.forEach(u=>preloadOnce("preload","fetch",u,"application/zip")),o.forEach(u=>preloadOnce("preload","fetch",u))}function warmupAssetPreloadFromCompanySettings(e){const{manifest:t,origins:n}=buildManifestFromCompanySettings(e);n.forEach(injectPreconnect),injectPreloadHints(t),warmAssetManifest(t)}function buildManifestFromCompanySettings(e){const t=collectFacetUrls(e),n=new Set,i=new Set,a=new Set,o=new Set;for(const{url:c,mode:f}of t)switch(normalizeKind(f,c)){case"svg":i.add(c);break;case"lottie":a.add(c);break;case"spritesheet":o.add(c);break;case"image":n.add(c);break}const u={images:Array.from(n),svgs:Array.from(i),lotties:Array.from(a),sprites:Array.from(o)},l=uniqueOriginsFromManifest(u);return{manifest:u,origins:l}}function collectFacetUrls(e){if(!e?.agent?.display)return[];const t=e.agent.display,n=[t.launcher,t.assistant,t.search].filter(Boolean),i=[];for(const a of n)a?.assetUrl&&i.push({url:a.assetUrl,mode:a.mode});return i}function normalizeKind(e,t){if(e)switch(e){case"svg":return"svg";case"lottie":return"lottie";case"spritesheet":return"spritesheet";case"image":return"image";case"video":return"video"}try{const i=new URL(t,document.baseURI).pathname.toLowerCase();if(i.endsWith(".svg"))return"svg";if(i.endsWith(".lottie")||i.endsWith(".zip")||i.endsWith(".json"))return i.endsWith(".json"),"lottie";if(/\.(png|webp|jpg|jpeg|gif|avi,ef)$/.test(i))return"image";if(/\.(mp4|webm|mov|m4v|ogg)$/.test(i))return"video"}catch(n){console.log("error in normalizeKind:",n)}return"unknown"}function uniqueOriginsFromManifest(e){const t=new Set,n=i=>{if(i)try{const a=new URL(i,document.baseURI);t.add(`${a.protocol}//${a.host}`)}catch(a){console.log("error in uniqueOriginsFromManifest",a)}};return(e.images??[]).forEach(n),(e.svgs??[]).forEach(n),(e.lotties??[]).forEach(n),(e.sprites??[]).forEach(n),Array.from(t)}const ContextWrapper=({children:e,appToken:t,agentId:n})=>{var i=navigator.language;console.log("App boot"),console.log("Brower language",i);const a=funnelLangUsage(i),{appCurrentLang:o,handleSetContextCurrentLang:u}=useBootLanguageApp(langInApp,a),l={appCurrentLang:o,setAppCurrentLang:u},c=useInternalAppContext(),{contextCompanySettings:f,contextInitialChatbotStartingText:d}=useGetUserContext({agentId:n,appToken:t,onFetched:c.setHasFetchedSettings});return warmupAssetPreloadFromCompanySettings(f.companySettings),useLoadInlineCss(f.companySettings?.agent?.display?.CSSRules,{id:`${n}`},c.setHasDisplayedCss),jsxRuntime.jsx(jsxRuntime.Fragment,{children:jsxRuntime.jsx(IntlProvider,{locale:o?.locale,messages:o?.translatedText,children:jsxRuntime.jsx(appCurrentLangContext.Provider,{value:l,children:jsxRuntime.jsx(AppInternalContext.Provider,{value:c,children:jsxRuntime.jsx(CompanySettingsContext.Provider,{value:f,children:jsxRuntime.jsx(chatbotInitialConversationContext.Provider,{value:d,children:c.appInternalContext.hasDisplayedCSS&&e})})})})})})},displayModeGuard=e=>Object.values(DisplayModeEnum).includes(e),adjustDisplayMode=e=>displayModeGuard(e)?e:(console.warn(`Display mode not valid. Using ${DisplayModeEnum.LAUNCHER} as default.`),DisplayModeEnum.LAUNCHER),SvgDownArrow=e=>React__namespace.createElement("svg",{fill:"#000000",height:"800px",width:"800px",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 330 330",xmlSpace:"preserve",...e},React__namespace.createElement("path",{id:"XMLID_102_",d:"M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393 c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393 s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z"})),Image$1=({src:e})=>{const[t,n]=React.useState(null);return React.useEffect(()=>{let i=!1;return preloadImage(e).then(({blobUrl:a})=>{n(a)}).catch(()=>n(null)),()=>{t&&!i&&(URL.revokeObjectURL(t),i=!0)}},[e]),jsxRuntime.jsx("img",{src:t??e,decoding:"async",loading:"eager"})};var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,(function(module,exports){typeof document<"u"&&typeof navigator<"u"&&(function(e,t){module.exports=t()})(lottie$1,(function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,i=e.length,a;for(n=0;n<i;n+=1){a=e[n].prototype;for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(t.prototype[o]=a[o])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=(function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(n){this.audios.push(n)},pause:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].pause()},resume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].resume()},setRate:function(n){var i,a=this.audios.length;for(i=0;i<a;i+=1)this.audios[i].setRate(n)},createAudio:function(n){return this.audioFactory?this.audioFactory(n):window.Howl?new window.Howl({src:[n]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(n){this.audioFactory=n},setVolume:function(n){this._volume=n,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var n,i=this.audios.length;for(n=0;n<i;n+=1)this.audios[n].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}})(),createTypedArray=(function(){function e(n,i){var a=0,o=[],u;switch(n){case"int16":case"uint8c":u=1;break;default:u=1.1;break}for(a=0;a<i;a+=1)o.push(u);return o}function t(n,i){return n==="float32"?new Float32Array(i):n==="int16"?new Int16Array(i):n==="uint8c"?new Uint8ClampedArray(i):e(n,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e})();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],t,n=e.length;for(t=0;t<n;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var n=createSizedArray(e.length),i,a=e.length;for(i=0;i<a;i+=1)n[i]=Math.abs(e[i]);return n}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,n,i){this.type=e,this.currentTime=t,this.totalTime=n,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,n,i){this.type=e,this.currentLoop=n,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,n){this.type=e,this.firstFrame=t,this.totalFrames=n}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}})();function HSVtoRGB(e,t,n){var i,a,o,u,l,c,f,d;switch(u=Math.floor(e*6),l=e*6-u,c=n*(1-t),f=n*(1-l*t),d=n*(1-(1-l)*t),u%6){case 0:i=n,a=d,o=c;break;case 1:i=f,a=n,o=c;break;case 2:i=c,a=n,o=d;break;case 3:i=c,a=f,o=n;break;case 4:i=d,a=c,o=n;break;case 5:i=n,a=c,o=f;break}return[i,a,o]}function RGBtoHSV(e,t,n){var i=Math.max(e,t,n),a=Math.min(e,t,n),o=i-a,u,l=i===0?0:o/i,c=i/255;switch(i){case a:u=0;break;case e:u=t-n+o*(t<n?6:0),u/=6*o;break;case t:u=n-e+o*2,u/=6*o;break;case n:u=e-t+o*4,u/=6*o;break}return[u,l,c]}function addSaturationToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[1]+=t,n[1]>1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=(function(){var e=[],t,n;for(t=0;t<256;t+=1)n=t.toString(16),e[t]=n.length===1?"0"+n:n;return function(i,a,o){return i<0&&(i=0),a<0&&(a=0),o<0&&(o=0),"#"+e[i]+e[a]+e[o]}})(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(e)}var dataManager=(function(){var e=1,t=[],n,i,a={onmessage:function(){},postMessage:function(y){n({data:y})}},o={postMessage:function(y){a.onmessage({data:y})}};function u(m){if(window.Worker&&window.Blob&&getWebWorker()){var y=new Blob(["var _workerSelf = self; self.onmessage = ",m.toString()],{type:"text/javascript"}),S=URL.createObjectURL(y);return new Worker(S)}return n=m,a}function l(){i||(i=u(function(y){function S(){function L(K,k){var V,R,w=K.length,D,G,Q,F;for(R=0;R<w;R+=1)if(V=K[R],"ks"in V&&!V.completed){if(V.completed=!0,V.hasMask){var r1=V.masksProperties;for(G=r1.length,D=0;D<G;D+=1)if(r1[D].pt.k.i)C(r1[D].pt.k);else for(F=r1[D].pt.k.length,Q=0;Q<F;Q+=1)r1[D].pt.k[Q].s&&C(r1[D].pt.k[Q].s[0]),r1[D].pt.k[Q].e&&C(r1[D].pt.k[Q].e[0])}V.ty===0?(V.layers=_(V.refId,k),L(V.layers,k)):V.ty===4?I(V.shapes):V.ty===5&&Z(V)}}function v(K,k){if(K){var V=0,R=K.length;for(V=0;V<R;V+=1)K[V].t===1&&(K[V].data.layers=_(K[V].data.refId,k),L(K[V].data.layers,k))}}function A(K,k){for(var V=0,R=k.length;V<R;){if(k[V].id===K)return k[V];V+=1}return null}function _(K,k){var V=A(K,k);return V?V.layers.__used?JSON.parse(JSON.stringify(V.layers)):(V.layers.__used=!0,V.layers):null}function I(K){var k,V=K.length,R,w;for(k=V-1;k>=0;k-=1)if(K[k].ty==="sh")if(K[k].ks.k.i)C(K[k].ks.k);else for(w=K[k].ks.k.length,R=0;R<w;R+=1)K[k].ks.k[R].s&&C(K[k].ks.k[R].s[0]),K[k].ks.k[R].e&&C(K[k].ks.k[R].e[0]);else K[k].ty==="gr"&&I(K[k].it)}function C(K){var k,V=K.i.length;for(k=0;k<V;k+=1)K.i[k][0]+=K.v[k][0],K.i[k][1]+=K.v[k][1],K.o[k][0]+=K.v[k][0],K.o[k][1]+=K.v[k][1]}function O(K,k){var V=k?k.split("."):[100,100,100];return K[0]>V[0]?!0:V[0]>K[0]?!1:K[1]>V[1]?!0:V[1]>K[1]?!1:K[2]>V[2]?!0:V[2]>K[2]?!1:null}var B=(function(){var K=[4,4,14];function k(R){var w=R.t.d;R.t.d={k:[{s:w,t:0}]}}function V(R){var w,D=R.length;for(w=0;w<D;w+=1)R[w].ty===5&&k(R[w])}return function(R){if(O(K,R.v)&&(V(R.layers),R.assets)){var w,D=R.assets.length;for(w=0;w<D;w+=1)R.assets[w].layers&&V(R.assets[w].layers)}}})(),z=(function(){var K=[4,7,99];return function(k){if(k.chars&&!O(K,k.v)){var V,R=k.chars.length;for(V=0;V<R;V+=1){var w=k.chars[V];w.data&&w.data.shapes&&(I(w.data.shapes),w.data.ip=0,w.data.op=99999,w.data.st=0,w.data.sr=1,w.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},k.chars[V].t||(w.data.shapes.push({ty:"no"}),w.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}})(),q=(function(){var K=[5,7,15];function k(R){var w=R.t.p;typeof w.a=="number"&&(w.a={a:0,k:w.a}),typeof w.p=="number"&&(w.p={a:0,k:w.p}),typeof w.r=="number"&&(w.r={a:0,k:w.r})}function V(R){var w,D=R.length;for(w=0;w<D;w+=1)R[w].ty===5&&k(R[w])}return function(R){if(O(K,R.v)&&(V(R.layers),R.assets)){var w,D=R.assets.length;for(w=0;w<D;w+=1)R.assets[w].layers&&V(R.assets[w].layers)}}})(),e1=(function(){var K=[4,1,9];function k(R){var w,D=R.length,G,Q;for(w=0;w<D;w+=1)if(R[w].ty==="gr")k(R[w].it);else if(R[w].ty==="fl"||R[w].ty==="st")if(R[w].c.k&&R[w].c.k[0].i)for(Q=R[w].c.k.length,G=0;G<Q;G+=1)R[w].c.k[G].s&&(R[w].c.k[G].s[0]/=255,R[w].c.k[G].s[1]/=255,R[w].c.k[G].s[2]/=255,R[w].c.k[G].s[3]/=255),R[w].c.k[G].e&&(R[w].c.k[G].e[0]/=255,R[w].c.k[G].e[1]/=255,R[w].c.k[G].e[2]/=255,R[w].c.k[G].e[3]/=255);else R[w].c.k[0]/=255,R[w].c.k[1]/=255,R[w].c.k[2]/=255,R[w].c.k[3]/=255}function V(R){var w,D=R.length;for(w=0;w<D;w+=1)R[w].ty===4&&k(R[w].shapes)}return function(R){if(O(K,R.v)&&(V(R.layers),R.assets)){var w,D=R.assets.length;for(w=0;w<D;w+=1)R.assets[w].layers&&V(R.assets[w].layers)}}})(),X=(function(){var K=[4,4,18];function k(R){var w,D=R.length,G,Q;for(w=D-1;w>=0;w-=1)if(R[w].ty==="sh")if(R[w].ks.k.i)R[w].ks.k.c=R[w].closed;else for(Q=R[w].ks.k.length,G=0;G<Q;G+=1)R[w].ks.k[G].s&&(R[w].ks.k[G].s[0].c=R[w].closed),R[w].ks.k[G].e&&(R[w].ks.k[G].e[0].c=R[w].closed);else R[w].ty==="gr"&&k(R[w].it)}function V(R){var w,D,G=R.length,Q,F,r1,o1;for(D=0;D<G;D+=1){if(w=R[D],w.hasMask){var i1=w.masksProperties;for(F=i1.length,Q=0;Q<F;Q+=1)if(i1[Q].pt.k.i)i1[Q].pt.k.c=i1[Q].cl;else for(o1=i1[Q].pt.k.length,r1=0;r1<o1;r1+=1)i1[Q].pt.k[r1].s&&(i1[Q].pt.k[r1].s[0].c=i1[Q].cl),i1[Q].pt.k[r1].e&&(i1[Q].pt.k[r1].e[0].c=i1[Q].cl)}w.ty===4&&k(w.shapes)}}return function(R){if(O(K,R.v)&&(V(R.layers),R.assets)){var w,D=R.assets.length;for(w=0;w<D;w+=1)R.assets[w].layers&&V(R.assets[w].layers)}}})();function W(K){K.__complete||(e1(K),B(K),z(K),q(K),X(K),L(K.layers,K.assets),v(K.chars,K.assets),K.__complete=!0)}function Z(K){K.t.a.length===0&&"m"in K.t.p}var J={};return J.completeData=W,J.checkColors=e1,J.checkChars=z,J.checkPathProperties=q,J.checkShapes=X,J.completeLayers=L,J}if(o.dataManager||(o.dataManager=S()),o.assetLoader||(o.assetLoader=(function(){function L(A){var _=A.getResponseHeader("content-type");return _&&A.responseType==="json"&&_.indexOf("json")!==-1||A.response&&_typeof$5(A.response)==="object"?A.response:A.response&&typeof A.response=="string"?JSON.parse(A.response):A.responseText?JSON.parse(A.responseText):null}function v(A,_,I,C){var O,B=new XMLHttpRequest;try{B.responseType="json"}catch{}B.onreadystatechange=function(){if(B.readyState===4)if(B.status===200)O=L(B),I(O);else try{O=L(B),I(O)}catch(z){C&&C(z)}};try{B.open(["G","E","T"].join(""),A,!0)}catch{B.open(["G","E","T"].join(""),_+"/"+A,!0)}B.send()}return{load:v}})()),y.data.type==="loadAnimation")o.assetLoader.load(y.data.path,y.data.fullPath,function(L){o.dataManager.completeData(L),o.postMessage({id:y.data.id,payload:L,status:"success"})},function(){o.postMessage({id:y.data.id,status:"error"})});else if(y.data.type==="complete"){var b=y.data.animation;o.dataManager.completeData(b),o.postMessage({id:y.data.id,payload:b,status:"success"})}else y.data.type==="loadData"&&o.assetLoader.load(y.data.path,y.data.fullPath,function(L){o.postMessage({id:y.data.id,payload:L,status:"success"})},function(){o.postMessage({id:y.data.id,status:"error"})})}),i.onmessage=function(m){var y=m.data,S=y.id,b=t[S];t[S]=null,y.status==="success"?b.onComplete(y.payload):b.onError&&b.onError()})}function c(m,y){e+=1;var S="processId_"+e;return t[S]={onComplete:m,onError:y},S}function f(m,y,S){l();var b=c(y,S);i.postMessage({type:"loadAnimation",path:m,fullPath:window.location.origin+window.location.pathname,id:b})}function d(m,y,S){l();var b=c(y,S);i.postMessage({type:"loadData",path:m,fullPath:window.location.origin+window.location.pathname,id:b})}function T(m,y,S){l();var b=c(y,S);i.postMessage({type:"complete",animation:m,id:b})}return{loadAnimation:f,loadData:d,completeAnimation:T}})(),ImagePreloader=(function(){var e=(function(){var v=createTag("canvas");v.width=1,v.height=1;var A=v.getContext("2d");return A.fillStyle="rgba(0,0,0,0)",A.fillRect(0,0,1,1),v})();function t(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function n(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(v,A,_){var I="";if(v.e)I=v.p;else if(A){var C=v.p;C.indexOf("images/")!==-1&&(C=C.split("/")[1]),I=A+C}else I=_,I+=v.u?v.u:"",I+=v.p;return I}function a(v){var A=0,_=setInterval((function(){var I=v.getBBox();(I.width||A>500)&&(this._imageLoaded(),clearInterval(_)),A+=1}).bind(this),50)}function o(v){var A=i(v,this.assetsPath,this.path),_=createNS("image");isSafari?this.testImageLoaded(_):_.addEventListener("load",this._imageLoaded,!1),_.addEventListener("error",(function(){I.img=e,this._imageLoaded()}).bind(this),!1),_.setAttributeNS("http://www.w3.org/1999/xlink","href",A),this._elementHelper.append?this._elementHelper.append(_):this._elementHelper.appendChild(_);var I={img:_,assetData:v};return I}function u(v){var A=i(v,this.assetsPath,this.path),_=createTag("img");_.crossOrigin="anonymous",_.addEventListener("load",this._imageLoaded,!1),_.addEventListener("error",(function(){I.img=e,this._imageLoaded()}).bind(this),!1),_.src=A;var I={img:_,assetData:v};return I}function l(v){var A={assetData:v},_=i(v,this.assetsPath,this.path);return dataManager.loadData(_,(function(I){A.img=I,this._footageLoaded()}).bind(this),(function(){A.img={},this._footageLoaded()}).bind(this)),A}function c(v,A){this.imagesLoadedCb=A;var _,I=v.length;for(_=0;_<I;_+=1)v[_].layers||(!v[_].t||v[_].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(v[_]))):v[_].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(v[_]))))}function f(v){this.path=v||""}function d(v){this.assetsPath=v||""}function T(v){for(var A=0,_=this.images.length;A<_;){if(this.images[A].assetData===v)return this.images[A].img;A+=1}return null}function m(){this.imagesLoadedCb=null,this.images.length=0}function y(){return this.totalImages===this.loadedAssets}function S(){return this.totalFootages===this.loadedFootagesCount}function b(v,A){v==="svg"?(this._elementHelper=A,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function L(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=a.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return L.prototype={loadAssets:c,setAssetsPath:d,setPath:f,loadedImages:y,loadedFootages:S,destroy:m,getAsset:T,createImgData:u,createImageData:o,imageLoaded:t,footageLoaded:n,setCacheType:b},L})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,n){if(this._cbs[t])for(var i=this._cbs[t],a=0;a<i.length;a+=1)i[a](n)},addEventListener:function(t,n){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(n),(function(){this.removeEventListener(t,n)}).bind(this)},removeEventListener:function(t,n){if(!n)this._cbs[t]=null;else if(this._cbs[t]){for(var i=0,a=this._cbs[t].length;i<a;)this._cbs[t][i]===n&&(this._cbs[t].splice(i,1),i-=1,a-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=(function(){function e(t){for(var n=t.split(`\r
37
- `),i={},a,o=0,u=0;u<n.length;u+=1)a=n[u].split(":"),a.length===2&&(i[a[0]]=a[1].trim(),o+=1);if(o===0)throw new Error;return i}return function(t){for(var n=[],i=0;i<t.length;i+=1){var a=t[i],o={time:a.tm,duration:a.dr};try{o.payload=JSON.parse(t[i].cm)}catch{try{o.payload=e(t[i].cm)}catch{o.payload={name:t[i].cm}}}n.push(o)}return n}})(),ProjectInterface=(function(){function e(t){this.compositions.push(t)}return function(){function t(n){for(var i=0,a=this.compositions.length;i<a;){if(this.compositions[i].data&&this.compositions[i].data.nm===n)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}})(),renderers={},registerRenderer=function(t,n){renderers[t]=n};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(e)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=new BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var n=getRenderer(t);this.renderer=new n(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var n={wrapper:e,animationData:t},i=e.attributes;n.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",n.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var a=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";a==="false"?n.loop=!1:a==="true"?n.loop=!0:a!==""&&(n.loop=parseInt(a,10));var o=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:i.getNamedItem("bm-autoplay")?i.getNamedItem("bm-autoplay").value:!0;n.autoplay=o!=="false",n.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"";var u=i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"";u==="false"&&(n.prerender=!1),n.path?this.setParams(n):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,n,i=t.length,a=e.layers,o,u=a.length;for(o=0;o<u;o+=1)for(n=0;n<i;){if(t[n].id===a[o].id){t[n]=a[o];break}n+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,n=0;n<i;n+=1)this.animationData.assets.push(e.assets[n]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.time*this.frameRate;var n=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(n,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){var e=this.animationData.segments;e||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(e){if(this.renderer)try{this.animationData=e,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var n=typeof e=="number"?e:void 0,i=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(n,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n<this.markers.length;n+=1)if(t=this.markers[n],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,n){if(!(n&&this.name!==n)){var i=Number(e);if(isNaN(i)){var a=this.getMarkerData(e);a&&this.goToAndStop(a.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,n){if(!(n&&this.name!==n)){var i=Number(e);if(isNaN(i)){var a=this.getMarkerData(e);a&&(a.duration?this.playSegments([a.time,a.time+a.duration],!0):this.goToAndStop(a.time,!0))}else this.goToAndStop(i,t,n);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,n=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(n=!0,t=0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?n=e:this.currentRawFrame+this.firstFrame>t&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,n!==-1&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var n,i=e.length;for(n=0;n<i;n+=1)this.segments.push(e[n])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var n=e.p;n.indexOf("images/")!==-1&&(n=n.split("/")[1]),t=this.assetsPath+n}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,n=this.assets.length;t<n;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,n){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(t,n)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=(function(){var e={},t=[],n=0,i=0,a=0,o=!0,u=!1;function l(k){for(var V=0,R=k.target;V<i;)t[V].animation===R&&(t.splice(V,1),V-=1,i-=1,R.isPaused||T()),V+=1}function c(k,V){if(!k)return null;for(var R=0;R<i;){if(t[R].elem===k&&t[R].elem!==null)return t[R].animation;R+=1}var w=new AnimationItem;return m(w,k),w.setData(k,V),w}function f(){var k,V=t.length,R=[];for(k=0;k<V;k+=1)R.push(t[k].animation);return R}function d(){a+=1,e1()}function T(){a-=1}function m(k,V){k.addEventListener("destroy",l),k.addEventListener("_active",d),k.addEventListener("_idle",T),t.push({elem:V,animation:k}),i+=1}function y(k){var V=new AnimationItem;return m(V,null),V.setParams(k),V}function S(k,V){var R;for(R=0;R<i;R+=1)t[R].animation.setSpeed(k,V)}function b(k,V){var R;for(R=0;R<i;R+=1)t[R].animation.setDirection(k,V)}function L(k){var V;for(V=0;V<i;V+=1)t[V].animation.play(k)}function v(k){var V=k-n,R;for(R=0;R<i;R+=1)t[R].animation.advanceTime(V);n=k,a&&!u?window.requestAnimationFrame(v):o=!0}function A(k){n=k,window.requestAnimationFrame(v)}function _(k){var V;for(V=0;V<i;V+=1)t[V].animation.pause(k)}function I(k,V,R){var w;for(w=0;w<i;w+=1)t[w].animation.goToAndStop(k,V,R)}function C(k){var V;for(V=0;V<i;V+=1)t[V].animation.stop(k)}function O(k){var V;for(V=0;V<i;V+=1)t[V].animation.togglePause(k)}function B(k){var V;for(V=i-1;V>=0;V-=1)t[V].animation.destroy(k)}function z(k,V,R){var w=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),D,G=w.length;for(D=0;D<G;D+=1)R&&w[D].setAttribute("data-bm-type",R),c(w[D],k);if(V&&G===0){R||(R="svg");var Q=document.getElementsByTagName("body")[0];Q.innerText="";var F=createTag("div");F.style.width="100%",F.style.height="100%",F.setAttribute("data-bm-type",R),Q.appendChild(F),c(F,k)}}function q(){var k;for(k=0;k<i;k+=1)t[k].animation.resize()}function e1(){!u&&a&&o&&(window.requestAnimationFrame(A),o=!1)}function X(){u=!0}function W(){u=!1,e1()}function Z(k,V){var R;for(R=0;R<i;R+=1)t[R].animation.setVolume(k,V)}function J(k){var V;for(V=0;V<i;V+=1)t[V].animation.mute(k)}function K(k){var V;for(V=0;V<i;V+=1)t[V].animation.unmute(k)}return e.registerAnimation=c,e.loadAnimation=y,e.setSpeed=S,e.setDirection=b,e.play=L,e.pause=_,e.stop=C,e.togglePause=O,e.searchAnimations=z,e.resize=q,e.goToAndStop=I,e.destroy=B,e.freeze=X,e.unfreeze=W,e.setVolume=Z,e.mute=J,e.unmute=K,e.getRegisteredAnimations=f,e})(),BezierFactory=(function(){var e={};e.getBezierEasing=n;var t={};function n(A,_,I,C,O){var B=O||("bez_"+A+"_"+_+"_"+I+"_"+C).replace(/\./g,"p");if(t[B])return t[B];var z=new v([A,_,I,C]);return t[B]=z,z}var i=4,a=.001,o=1e-7,u=10,l=11,c=1/(l-1),f=typeof Float32Array=="function";function d(A,_){return 1-3*_+3*A}function T(A,_){return 3*_-6*A}function m(A){return 3*A}function y(A,_,I){return((d(_,I)*A+T(_,I))*A+m(_))*A}function S(A,_,I){return 3*d(_,I)*A*A+2*T(_,I)*A+m(_)}function b(A,_,I,C,O){var B,z,q=0;do z=_+(I-_)/2,B=y(z,C,O)-A,B>0?I=z:_=z;while(Math.abs(B)>o&&++q<u);return z}function L(A,_,I,C){for(var O=0;O<i;++O){var B=S(_,I,C);if(B===0)return _;var z=y(_,I,C)-A;_-=z/B}return _}function v(A){this._p=A,this._mSampleValues=f?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return v.prototype={get:function(_){var I=this._p[0],C=this._p[1],O=this._p[2],B=this._p[3];return this._precomputed||this._precompute(),I===C&&O===B?_:_===0?0:_===1?1:y(this._getTForX(_),C,B)},_precompute:function(){var _=this._p[0],I=this._p[1],C=this._p[2],O=this._p[3];this._precomputed=!0,(_!==I||C!==O)&&this._calcSampleValues()},_calcSampleValues:function(){for(var _=this._p[0],I=this._p[2],C=0;C<l;++C)this._mSampleValues[C]=y(C*c,_,I)},_getTForX:function(_){for(var I=this._p[0],C=this._p[2],O=this._mSampleValues,B=0,z=1,q=l-1;z!==q&&O[z]<=_;++z)B+=c;--z;var e1=(_-O[z])/(O[z+1]-O[z]),X=B+e1*c,W=S(X,I,C);return W>=a?L(_,X,I,C):W===0?X:b(_,B,B+c,I,C)}},e})(),pooling=(function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}})(),poolFactory=(function(){return function(e,t,n){var i=0,a=e,o=createSizedArray(a),u={newElement:l,release:c};function l(){var f;return i?(i-=1,f=o[i]):f=t(),f}function c(f){i===a&&(o=pooling.double(o),a*=2),n&&n(f),o[i]=f,i+=1}return u}})(),bezierLengthPool=(function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)})(),segmentsLengthPool=(function(){function e(){return{lengths:[],totalLength:0}}function t(n){var i,a=n.lengths.length;for(i=0;i<a;i+=1)bezierLengthPool.release(n.lengths[i]);n.lengths.length=0}return poolFactory(8,e,t)})();function bezFunction(){var e=Math;function t(m,y,S,b,L,v){var A=m*b+y*L+S*v-L*b-v*m-S*y;return A>-.001&&A<.001}function n(m,y,S,b,L,v,A,_,I){if(S===0&&v===0&&I===0)return t(m,y,b,L,A,_);var C=e.sqrt(e.pow(b-m,2)+e.pow(L-y,2)+e.pow(v-S,2)),O=e.sqrt(e.pow(A-m,2)+e.pow(_-y,2)+e.pow(I-S,2)),B=e.sqrt(e.pow(A-b,2)+e.pow(_-L,2)+e.pow(I-v,2)),z;return C>O?C>B?z=C-O-B:z=B-O-C:B>O?z=B-O-C:z=O-C-B,z>-1e-4&&z<1e-4}var i=(function(){return function(m,y,S,b){var L=getDefaultCurveSegments(),v,A,_,I,C,O=0,B,z=[],q=[],e1=bezierLengthPool.newElement();for(_=S.length,v=0;v<L;v+=1){for(C=v/(L-1),B=0,A=0;A<_;A+=1)I=bmPow(1-C,3)*m[A]+3*bmPow(1-C,2)*C*S[A]+3*(1-C)*bmPow(C,2)*b[A]+bmPow(C,3)*y[A],z[A]=I,q[A]!==null&&(B+=bmPow(z[A]-q[A],2)),q[A]=z[A];B&&(B=bmSqrt(B),O+=B),e1.percents[v]=C,e1.lengths[v]=O}return e1.addedLength=O,e1}})();function a(m){var y=segmentsLengthPool.newElement(),S=m.c,b=m.v,L=m.o,v=m.i,A,_=m._length,I=y.lengths,C=0;for(A=0;A<_-1;A+=1)I[A]=i(b[A],b[A+1],L[A],v[A+1]),C+=I[A].addedLength;return S&&_&&(I[A]=i(b[A],b[0],L[A],v[0]),C+=I[A].addedLength),y.totalLength=C,y}function o(m){this.segmentLength=0,this.points=new Array(m)}function u(m,y){this.partialLength=m,this.point=y}var l=(function(){var m={};return function(y,S,b,L){var v=(y[0]+"_"+y[1]+"_"+S[0]+"_"+S[1]+"_"+b[0]+"_"+b[1]+"_"+L[0]+"_"+L[1]).replace(/\./g,"p");if(!m[v]){var A=getDefaultCurveSegments(),_,I,C,O,B,z=0,q,e1,X=null;y.length===2&&(y[0]!==S[0]||y[1]!==S[1])&&t(y[0],y[1],S[0],S[1],y[0]+b[0],y[1]+b[1])&&t(y[0],y[1],S[0],S[1],S[0]+L[0],S[1]+L[1])&&(A=2);var W=new o(A);for(C=b.length,_=0;_<A;_+=1){for(e1=createSizedArray(C),B=_/(A-1),q=0,I=0;I<C;I+=1)O=bmPow(1-B,3)*y[I]+3*bmPow(1-B,2)*B*(y[I]+b[I])+3*(1-B)*bmPow(B,2)*(S[I]+L[I])+bmPow(B,3)*S[I],e1[I]=O,X!==null&&(q+=bmPow(e1[I]-X[I],2));q=bmSqrt(q),z+=q,W.points[_]=new u(q,e1),X=e1}W.segmentLength=z,m[v]=W}return m[v]}})();function c(m,y){var S=y.percents,b=y.lengths,L=S.length,v=bmFloor((L-1)*m),A=m*y.addedLength,_=0;if(v===L-1||v===0||A===b[v])return S[v];for(var I=b[v]>A?-1:1,C=!0;C;)if(b[v]<=A&&b[v+1]>A?(_=(A-b[v])/(b[v+1]-b[v]),C=!1):v+=I,v<0||v>=L-1){if(v===L-1)return S[v];C=!1}return S[v]+(S[v+1]-S[v])*_}function f(m,y,S,b,L,v){var A=c(L,v),_=1-A,I=e.round((_*_*_*m[0]+(A*_*_+_*A*_+_*_*A)*S[0]+(A*A*_+_*A*A+A*_*A)*b[0]+A*A*A*y[0])*1e3)/1e3,C=e.round((_*_*_*m[1]+(A*_*_+_*A*_+_*_*A)*S[1]+(A*A*_+_*A*A+A*_*A)*b[1]+A*A*A*y[1])*1e3)/1e3;return[I,C]}var d=createTypedArray("float32",8);function T(m,y,S,b,L,v,A){L<0?L=0:L>1&&(L=1);var _=c(L,A);v=v>1?1:v;var I=c(v,A),C,O=m.length,B=1-_,z=1-I,q=B*B*B,e1=_*B*B*3,X=_*_*B*3,W=_*_*_,Z=B*B*z,J=_*B*z+B*_*z+B*B*I,K=_*_*z+B*_*I+_*B*I,k=_*_*I,V=B*z*z,R=_*z*z+B*I*z+B*z*I,w=_*I*z+B*I*I+_*z*I,D=_*I*I,G=z*z*z,Q=I*z*z+z*I*z+z*z*I,F=I*I*z+z*I*I+I*z*I,r1=I*I*I;for(C=0;C<O;C+=1)d[C*4]=e.round((q*m[C]+e1*S[C]+X*b[C]+W*y[C])*1e3)/1e3,d[C*4+1]=e.round((Z*m[C]+J*S[C]+K*b[C]+k*y[C])*1e3)/1e3,d[C*4+2]=e.round((V*m[C]+R*S[C]+w*b[C]+D*y[C])*1e3)/1e3,d[C*4+3]=e.round((G*m[C]+Q*S[C]+F*b[C]+r1*y[C])*1e3)/1e3;return d}return{getSegmentsLength:a,getNewSegment:T,getPointInSegment:f,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:n}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var n=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var a=t.lastIndex,o=a,u=this.keyframes.length-1,l=!0,c,f,d;l;){if(c=this.keyframes[o],f=this.keyframes[o+1],o===u-1&&e>=f.t-n){c.h&&(c=f),a=0;break}if(f.t-n>e){a=o;break}o<u-1?o+=1:(a=0,l=!1)}d=this.keyframesMetadata[o]||{};var T,m,y,S,b,L,v=f.t-n,A=c.t-n,_;if(c.to){d.bezierData||(d.bezierData=bez.buildBezierData(c.s,f.s||c.e,c.to,c.ti));var I=d.bezierData;if(e>=v||e<A){var C=e>=v?I.points.length-1:0;for(m=I.points[C].point.length,T=0;T<m;T+=1)i[T]=I.points[C].point[T]}else{d.__fnct?L=d.__fnct:(L=BezierFactory.getBezierEasing(c.o.x,c.o.y,c.i.x,c.i.y,c.n).get,d.__fnct=L),y=L((e-A)/(v-A));var O=I.segmentLength*y,B,z=t.lastFrame<e&&t._lastKeyframeIndex===o?t._lastAddedLength:0;for(b=t.lastFrame<e&&t._lastKeyframeIndex===o?t._lastPoint:0,l=!0,S=I.points.length;l;){if(z+=I.points[b].partialLength,O===0||y===0||b===I.points.length-1){for(m=I.points[b].point.length,T=0;T<m;T+=1)i[T]=I.points[b].point[T];break}else if(O>=z&&O<z+I.points[b+1].partialLength){for(B=(O-z)/I.points[b+1].partialLength,m=I.points[b].point.length,T=0;T<m;T+=1)i[T]=I.points[b].point[T]+(I.points[b+1].point[T]-I.points[b].point[T])*B;break}b<S-1?b+=1:l=!1}t._lastPoint=b,t._lastAddedLength=z-I.points[b].partialLength,t._lastKeyframeIndex=o}}else{var q,e1,X,W,Z;if(u=c.s.length,_=f.s||c.e,this.sh&&c.h!==1)if(e>=v)i[0]=_[0],i[1]=_[1],i[2]=_[2];else if(e<=A)i[0]=c.s[0],i[1]=c.s[1],i[2]=c.s[2];else{var J=createQuaternion(c.s),K=createQuaternion(_),k=(e-A)/(v-A);quaternionToEuler(i,slerp(J,K,k))}else for(o=0;o<u;o+=1)c.h!==1&&(e>=v?y=1:e<A?y=0:(c.o.x.constructor===Array?(d.__fnct||(d.__fnct=[]),d.__fnct[o]?L=d.__fnct[o]:(q=c.o.x[o]===void 0?c.o.x[0]:c.o.x[o],e1=c.o.y[o]===void 0?c.o.y[0]:c.o.y[o],X=c.i.x[o]===void 0?c.i.x[0]:c.i.x[o],W=c.i.y[o]===void 0?c.i.y[0]:c.i.y[o],L=BezierFactory.getBezierEasing(q,e1,X,W).get,d.__fnct[o]=L)):d.__fnct?L=d.__fnct:(q=c.o.x,e1=c.o.y,X=c.i.x,W=c.i.y,L=BezierFactory.getBezierEasing(q,e1,X,W).get,c.keyframeMetadata=L),y=L((e-A)/(v-A)))),_=f.s||c.e,Z=c.h===1?c.s[o]:c.s[o]+(_[o]-c.s[o])*y,this.propType==="multidimensional"?i[o]=Z:i=Z}return t.lastIndex=a,i}function slerp(e,t,n){var i=[],a=e[0],o=e[1],u=e[2],l=e[3],c=t[0],f=t[1],d=t[2],T=t[3],m,y,S,b,L;return y=a*c+o*f+u*d+l*T,y<0&&(y=-y,c=-c,f=-f,d=-d,T=-T),1-y>1e-6?(m=Math.acos(y),S=Math.sin(m),b=Math.sin((1-n)*m)/S,L=Math.sin(n*m)/S):(b=1-n,L=n),i[0]=b*a+L*c,i[1]=b*o+L*f,i[2]=b*u+L*d,i[3]=b*l+L*T,i}function quaternionToEuler(e,t){var n=t[0],i=t[1],a=t[2],o=t[3],u=Math.atan2(2*i*o-2*n*a,1-2*i*i-2*a*a),l=Math.asin(2*n*i+2*a*o),c=Math.atan2(2*n*o-2*i*a,1-2*n*n-2*a*a);e[0]=u/degToRads,e[1]=l/degToRads,e[2]=c/degToRads}function createQuaternion(e){var t=e[0]*degToRads,n=e[1]*degToRads,i=e[2]*degToRads,a=Math.cos(t/2),o=Math.cos(n/2),u=Math.cos(i/2),l=Math.sin(t/2),c=Math.sin(n/2),f=Math.sin(i/2),d=a*o*u-l*c*f,T=l*c*u+a*o*f,m=l*o*u+a*c*f,y=a*c*u-l*o*f;return[T,m,y,d]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,n=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=n&&e>=n||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var n=0,i=this.v.length;n<i;)t=e[n]*this.mult,mathAbs(this.v[n]-t)>1e-5&&(this.v[n]=t,this._mdf=!0),n+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)n=this.effectsSequence[e](n);this.setVValue(n),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,n,i){this.propType="unidimensional",this.mult=n||1,this.data=t,this.v=n?t.k*n:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,n,i){this.propType="multidimensional",this.mult=n||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var a,o=t.k.length;for(this.v=createTypedArray("float32",o),this.pv=createTypedArray("float32",o),this.vel=createTypedArray("float32",o),a=0;a<o;a+=1)this.v[a]=t.k[a]*this.mult,this.pv[a]=t.k[a];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,n,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,n,i){this.propType="multidimensional";var a,o=t.k.length,u,l,c,f;for(a=0;a<o-1;a+=1)t.k[a].to&&t.k[a].s&&t.k[a+1]&&t.k[a+1].s&&(u=t.k[a].s,l=t.k[a+1].s,c=t.k[a].to,f=t.k[a].ti,(u.length===2&&!(u[0]===l[0]&&u[1]===l[1])&&bez.pointOnLine2D(u[0],u[1],l[0],l[1],u[0]+c[0],u[1]+c[1])&&bez.pointOnLine2D(u[0],u[1],l[0],l[1],l[0]+f[0],l[1]+f[1])||u.length===3&&!(u[0]===l[0]&&u[1]===l[1]&&u[2]===l[2])&&bez.pointOnLine3D(u[0],u[1],u[2],l[0],l[1],l[2],u[0]+c[0],u[1]+c[1],u[2]+c[2])&&bez.pointOnLine3D(u[0],u[1],u[2],l[0],l[1],l[2],l[0]+f[0],l[1]+f[1],l[2]+f[2]))&&(t.k[a].to=null,t.k[a].ti=null),u[0]===l[0]&&u[1]===l[1]&&c[0]===0&&c[1]===0&&f[0]===0&&f[1]===0&&(u.length===2||u[2]===l[2]&&c[2]===0&&f[2]===0)&&(t.k[a].to=null,t.k[a].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=n||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var d=t.k[0].s.length;for(this.v=createTypedArray("float32",d),this.pv=createTypedArray("float32",d),a=0;a<d;a+=1)this.v[a]=initFrame,this.pv[a]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",d)},this.addEffect=addEffect}var PropertyFactory=(function(){function e(n,i,a,o,u){i.sid&&(i=n.globalData.slotManager.getProp(i));var l;if(!i.k.length)l=new ValueProperty(n,i,o,u);else if(typeof i.k[0]=="number")l=new MultiDimensionalProperty(n,i,o,u);else switch(a){case 0:l=new KeyframedValueProperty(n,i,o,u);break;case 1:l=new KeyframedMultidimensionalProperty(n,i,o,u);break}return l.effectsSequence.length&&u.addDynamicProperty(l),l}var t={getProp:e};return t})();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,n=this.dynamicProperties.length;for(t=0;t<n;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=(function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)})();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(e,t){this.c=e,this.setLength(t);for(var n=0;n<t;)this.v[n]=pointPool.newElement(),this.o[n]=pointPool.newElement(),this.i[n]=pointPool.newElement(),n+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(e,t,n,i,a){var o;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),n){case"v":o=this.v;break;case"i":o=this.i;break;case"o":o=this.o;break;default:o=[];break}(!o[i]||o[i]&&!a)&&(o[i]=pointPool.newElement()),o[i][0]=e,o[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,i,a,o,u,l){this.setXYAt(e,t,"v",u,l),this.setXYAt(n,i,"o",u,l),this.setXYAt(a,o,"i",u,l)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,i=this.i,a=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],n[0][0],n[0][1],0,!1),a=1);var o=this._length-1,u=this._length,l;for(l=a;l<u;l+=1)e.setTripleAt(t[o][0],t[o][1],i[o][0],i[o][1],n[o][0],n[o][1],l,!1),o-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function e(){return new ShapePath}function t(a){var o=a._length,u;for(u=0;u<o;u+=1)pointPool.release(a.v[u]),pointPool.release(a.i[u]),pointPool.release(a.o[u]),a.v[u]=null,a.i[u]=null,a.o[u]=null;a._length=0,a.c=!1}function n(a){var o=i.newElement(),u,l=a._length===void 0?a.v.length:a._length;for(o.setLength(l),o.c=a.c,u=0;u<l;u+=1)o.setTripleAt(a.v[u][0],a.v[u][1],a.o[u][0],a.o[u][1],a.i[u][0],a.i[u][1],u);return o}var i=poolFactory(4,e,t);return i.clone=n,i})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(function(){var e={newShapeCollection:a,release:o},t=0,n=4,i=createSizedArray(n);function a(){var u;return t?(t-=1,u=i[t]):u=new ShapeCollection,u}function o(u){var l,c=u._length;for(l=0;l<c;l+=1)shapePool.release(u.shapes[l]);u._length=0,t===n&&(i=pooling.double(i),n*=2),i[t]=u,t+=1}return e})(),ShapePropertyFactory=(function(){var e=-999999;function t(v,A,_){var I=_.lastIndex,C,O,B,z,q,e1,X,W,Z,J=this.keyframes;if(v<J[0].t-this.offsetTime)C=J[0].s[0],B=!0,I=0;else if(v>=J[J.length-1].t-this.offsetTime)C=J[J.length-1].s?J[J.length-1].s[0]:J[J.length-2].e[0],B=!0;else{for(var K=I,k=J.length-1,V=!0,R,w,D;V&&(R=J[K],w=J[K+1],!(w.t-this.offsetTime>v));)K<k-1?K+=1:V=!1;if(D=this.keyframesMetadata[K]||{},B=R.h===1,I=K,!B){if(v>=w.t-this.offsetTime)W=1;else if(v<R.t-this.offsetTime)W=0;else{var G;D.__fnct?G=D.__fnct:(G=BezierFactory.getBezierEasing(R.o.x,R.o.y,R.i.x,R.i.y).get,D.__fnct=G),W=G((v-(R.t-this.offsetTime))/(w.t-this.offsetTime-(R.t-this.offsetTime)))}O=w.s?w.s[0]:R.e[0]}C=R.s[0]}for(e1=A._length,X=C.i[0].length,_.lastIndex=I,z=0;z<e1;z+=1)for(q=0;q<X;q+=1)Z=B?C.i[z][q]:C.i[z][q]+(O.i[z][q]-C.i[z][q])*W,A.i[z][q]=Z,Z=B?C.o[z][q]:C.o[z][q]+(O.o[z][q]-C.o[z][q])*W,A.o[z][q]=Z,Z=B?C.v[z][q]:C.v[z][q]+(O.v[z][q]-C.v[z][q])*W,A.v[z][q]=Z}function n(){var v=this.comp.renderedFrame-this.offsetTime,A=this.keyframes[0].t-this.offsetTime,_=this.keyframes[this.keyframes.length-1].t-this.offsetTime,I=this._caching.lastFrame;return I!==e&&(I<A&&v<A||I>_&&v>_)||(this._caching.lastIndex=I<v?this._caching.lastIndex:0,this.interpolateShape(v,this.pv,this._caching)),this._caching.lastFrame=v,this.pv}function i(){this.paths=this.localShapeCollection}function a(v,A){if(v._length!==A._length||v.c!==A.c)return!1;var _,I=v._length;for(_=0;_<I;_+=1)if(v.v[_][0]!==A.v[_][0]||v.v[_][1]!==A.v[_][1]||v.o[_][0]!==A.o[_][0]||v.o[_][1]!==A.o[_][1]||v.i[_][0]!==A.i[_][0]||v.i[_][1]!==A.i[_][1])return!1;return!0}function o(v){a(this.v,v)||(this.v=shapePool.clone(v),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function u(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var v;this.kf?v=this.pv:this.data.ks?v=this.data.ks.k:v=this.data.pt.k;var A,_=this.effectsSequence.length;for(A=0;A<_;A+=1)v=this.effectsSequence[A](v);this.setVValue(v),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(v,A,_){this.propType="shape",this.comp=v.comp,this.container=v,this.elem=v,this.data=A,this.k=!1,this.kf=!1,this._mdf=!1;var I=_===3?A.pt.k:A.ks.k;this.v=shapePool.clone(I),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function c(v){this.effectsSequence.push(v),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=t,l.prototype.getValue=u,l.prototype.setVValue=o,l.prototype.addEffect=c;function f(v,A,_){this.propType="shape",this.comp=v.comp,this.elem=v,this.container=v,this.offsetTime=v.data.st,this.keyframes=_===3?A.pt.k:A.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var I=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,I),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[n.bind(this)]}f.prototype.getValue=u,f.prototype.interpolateShape=t,f.prototype.setVValue=o,f.prototype.addEffect=c;var d=(function(){var v=roundCorner;function A(_,I){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=I.d,this.elem=_,this.comp=_.comp,this.frameId=-1,this.initDynamicPropertyContainer(_),this.p=PropertyFactory.getProp(_,I.p,1,0,this),this.s=PropertyFactory.getProp(_,I.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return A.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var I=this.p.v[0],C=this.p.v[1],O=this.s.v[0]/2,B=this.s.v[1]/2,z=this.d!==3,q=this.v;q.v[0][0]=I,q.v[0][1]=C-B,q.v[1][0]=z?I+O:I-O,q.v[1][1]=C,q.v[2][0]=I,q.v[2][1]=C+B,q.v[3][0]=z?I-O:I+O,q.v[3][1]=C,q.i[0][0]=z?I-O*v:I+O*v,q.i[0][1]=C-B,q.i[1][0]=z?I+O:I-O,q.i[1][1]=C-B*v,q.i[2][0]=z?I+O*v:I-O*v,q.i[2][1]=C+B,q.i[3][0]=z?I-O:I+O,q.i[3][1]=C+B*v,q.o[0][0]=z?I+O*v:I-O*v,q.o[0][1]=C-B,q.o[1][0]=z?I+O:I-O,q.o[1][1]=C+B*v,q.o[2][0]=z?I-O*v:I+O*v,q.o[2][1]=C+B,q.o[3][0]=z?I-O:I+O,q.o[3][1]=C-B*v}},extendPrototype([DynamicPropertyContainer],A),A})(),T=(function(){function v(A,_){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=A,this.comp=A.comp,this.data=_,this.frameId=-1,this.d=_.d,this.initDynamicPropertyContainer(A),_.sy===1?(this.ir=PropertyFactory.getProp(A,_.ir,0,0,this),this.is=PropertyFactory.getProp(A,_.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(A,_.pt,0,0,this),this.p=PropertyFactory.getProp(A,_.p,1,0,this),this.r=PropertyFactory.getProp(A,_.r,0,degToRads,this),this.or=PropertyFactory.getProp(A,_.or,0,0,this),this.os=PropertyFactory.getProp(A,_.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return v.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var _=Math.floor(this.pt.v)*2,I=Math.PI*2/_,C=!0,O=this.or.v,B=this.ir.v,z=this.os.v,q=this.is.v,e1=2*Math.PI*O/(_*2),X=2*Math.PI*B/(_*2),W,Z,J,K,k=-Math.PI/2;k+=this.r.v;var V=this.data.d===3?-1:1;for(this.v._length=0,W=0;W<_;W+=1){Z=C?O:B,J=C?z:q,K=C?e1:X;var R=Z*Math.cos(k),w=Z*Math.sin(k),D=R===0&&w===0?0:w/Math.sqrt(R*R+w*w),G=R===0&&w===0?0:-R/Math.sqrt(R*R+w*w);R+=+this.p.v[0],w+=+this.p.v[1],this.v.setTripleAt(R,w,R-D*K*J*V,w-G*K*J*V,R+D*K*J*V,w+G*K*J*V,W,!0),C=!C,k+=I*V}},convertPolygonToPath:function(){var _=Math.floor(this.pt.v),I=Math.PI*2/_,C=this.or.v,O=this.os.v,B=2*Math.PI*C/(_*4),z,q=-Math.PI*.5,e1=this.data.d===3?-1:1;for(q+=this.r.v,this.v._length=0,z=0;z<_;z+=1){var X=C*Math.cos(q),W=C*Math.sin(q),Z=X===0&&W===0?0:W/Math.sqrt(X*X+W*W),J=X===0&&W===0?0:-X/Math.sqrt(X*X+W*W);X+=+this.p.v[0],W+=+this.p.v[1],this.v.setTripleAt(X,W,X-Z*B*O*e1,W-J*B*O*e1,X+Z*B*O*e1,W+J*B*O*e1,z,!0),q+=I*e1}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],v),v})(),m=(function(){function v(A,_){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=A,this.comp=A.comp,this.frameId=-1,this.d=_.d,this.initDynamicPropertyContainer(A),this.p=PropertyFactory.getProp(A,_.p,1,0,this),this.s=PropertyFactory.getProp(A,_.s,1,0,this),this.r=PropertyFactory.getProp(A,_.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return v.prototype={convertRectToPath:function(){var _=this.p.v[0],I=this.p.v[1],C=this.s.v[0]/2,O=this.s.v[1]/2,B=bmMin(C,O,this.r.v),z=B*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(_+C,I-O+B,_+C,I-O+B,_+C,I-O+z,0,!0),this.v.setTripleAt(_+C,I+O-B,_+C,I+O-z,_+C,I+O-B,1,!0),B!==0?(this.v.setTripleAt(_+C-B,I+O,_+C-B,I+O,_+C-z,I+O,2,!0),this.v.setTripleAt(_-C+B,I+O,_-C+z,I+O,_-C+B,I+O,3,!0),this.v.setTripleAt(_-C,I+O-B,_-C,I+O-B,_-C,I+O-z,4,!0),this.v.setTripleAt(_-C,I-O+B,_-C,I-O+z,_-C,I-O+B,5,!0),this.v.setTripleAt(_-C+B,I-O,_-C+B,I-O,_-C+z,I-O,6,!0),this.v.setTripleAt(_+C-B,I-O,_+C-z,I-O,_+C-B,I-O,7,!0)):(this.v.setTripleAt(_-C,I+O,_-C+z,I+O,_-C,I+O,2),this.v.setTripleAt(_-C,I-O,_-C,I-O+z,_-C,I-O,3))):(this.v.setTripleAt(_+C,I-O+B,_+C,I-O+z,_+C,I-O+B,0,!0),B!==0?(this.v.setTripleAt(_+C-B,I-O,_+C-B,I-O,_+C-z,I-O,1,!0),this.v.setTripleAt(_-C+B,I-O,_-C+z,I-O,_-C+B,I-O,2,!0),this.v.setTripleAt(_-C,I-O+B,_-C,I-O+B,_-C,I-O+z,3,!0),this.v.setTripleAt(_-C,I+O-B,_-C,I+O-z,_-C,I+O-B,4,!0),this.v.setTripleAt(_-C+B,I+O,_-C+B,I+O,_-C+z,I+O,5,!0),this.v.setTripleAt(_+C-B,I+O,_+C-z,I+O,_+C-B,I+O,6,!0),this.v.setTripleAt(_+C,I+O-B,_+C,I+O-B,_+C,I+O-z,7,!0)):(this.v.setTripleAt(_-C,I-O,_-C+z,I-O,_-C,I-O,1,!0),this.v.setTripleAt(_-C,I+O,_-C,I+O-z,_-C,I+O,2,!0),this.v.setTripleAt(_+C,I+O,_+C-z,I+O,_+C,I+O,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],v),v})();function y(v,A,_){var I;if(_===3||_===4){var C=_===3?A.pt:A.ks,O=C.k;O.length?I=new f(v,A,_):I=new l(v,A,_)}else _===5?I=new m(v,A):_===6?I=new d(v,A):_===7&&(I=new T(v,A));return I.k&&v.addDynamicProperty(I),I}function S(){return l}function b(){return f}var L={};return L.getShapeProp=y,L.getConstructorFunction=S,L.getKeyframedConstructorFunction=b,L})();/*!
38
- Transformation Matrix v2.0
39
- (c) Epistemex 2014-2015
40
- www.epistemex.com
41
- By Ken Fyrstenberg
42
- Contributions by leeoniya.
43
- License: MIT, header required.
44
- */var Matrix=(function(){var e=Math.cos,t=Math.sin,n=Math.tan,i=Math.round;function a(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function o(R){if(R===0)return this;var w=e(R),D=t(R);return this._t(w,-D,0,0,D,w,0,0,0,0,1,0,0,0,0,1)}function u(R){if(R===0)return this;var w=e(R),D=t(R);return this._t(1,0,0,0,0,w,-D,0,0,D,w,0,0,0,0,1)}function l(R){if(R===0)return this;var w=e(R),D=t(R);return this._t(w,0,D,0,0,1,0,0,-D,0,w,0,0,0,0,1)}function c(R){if(R===0)return this;var w=e(R),D=t(R);return this._t(w,-D,0,0,D,w,0,0,0,0,1,0,0,0,0,1)}function f(R,w){return this._t(1,w,R,1,0,0)}function d(R,w){return this.shear(n(R),n(w))}function T(R,w){var D=e(w),G=t(w);return this._t(D,G,0,0,-G,D,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,n(R),1,0,0,0,0,1,0,0,0,0,1)._t(D,-G,0,0,G,D,0,0,0,0,1,0,0,0,0,1)}function m(R,w,D){return!D&&D!==0&&(D=1),R===1&&w===1&&D===1?this:this._t(R,0,0,0,0,w,0,0,0,0,D,0,0,0,0,1)}function y(R,w,D,G,Q,F,r1,o1,i1,p1,m1,v1,g1,A1,s1,E1){return this.props[0]=R,this.props[1]=w,this.props[2]=D,this.props[3]=G,this.props[4]=Q,this.props[5]=F,this.props[6]=r1,this.props[7]=o1,this.props[8]=i1,this.props[9]=p1,this.props[10]=m1,this.props[11]=v1,this.props[12]=g1,this.props[13]=A1,this.props[14]=s1,this.props[15]=E1,this}function S(R,w,D){return D=D||0,R!==0||w!==0||D!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,R,w,D,1):this}function b(R,w,D,G,Q,F,r1,o1,i1,p1,m1,v1,g1,A1,s1,E1){var f1=this.props;if(R===1&&w===0&&D===0&&G===0&&Q===0&&F===1&&r1===0&&o1===0&&i1===0&&p1===0&&m1===1&&v1===0)return f1[12]=f1[12]*R+f1[15]*g1,f1[13]=f1[13]*F+f1[15]*A1,f1[14]=f1[14]*m1+f1[15]*s1,f1[15]*=E1,this._identityCalculated=!1,this;var P1=f1[0],_1=f1[1],D1=f1[2],T1=f1[3],d1=f1[4],R1=f1[5],C1=f1[6],N1=f1[7],k1=f1[8],z1=f1[9],n1=f1[10],u1=f1[11],b1=f1[12],x1=f1[13],M1=f1[14],$1=f1[15];return f1[0]=P1*R+_1*Q+D1*i1+T1*g1,f1[1]=P1*w+_1*F+D1*p1+T1*A1,f1[2]=P1*D+_1*r1+D1*m1+T1*s1,f1[3]=P1*G+_1*o1+D1*v1+T1*E1,f1[4]=d1*R+R1*Q+C1*i1+N1*g1,f1[5]=d1*w+R1*F+C1*p1+N1*A1,f1[6]=d1*D+R1*r1+C1*m1+N1*s1,f1[7]=d1*G+R1*o1+C1*v1+N1*E1,f1[8]=k1*R+z1*Q+n1*i1+u1*g1,f1[9]=k1*w+z1*F+n1*p1+u1*A1,f1[10]=k1*D+z1*r1+n1*m1+u1*s1,f1[11]=k1*G+z1*o1+n1*v1+u1*E1,f1[12]=b1*R+x1*Q+M1*i1+$1*g1,f1[13]=b1*w+x1*F+M1*p1+$1*A1,f1[14]=b1*D+x1*r1+M1*m1+$1*s1,f1[15]=b1*G+x1*o1+M1*v1+$1*E1,this._identityCalculated=!1,this}function L(R){var w=R.props;return this.transform(w[0],w[1],w[2],w[3],w[4],w[5],w[6],w[7],w[8],w[9],w[10],w[11],w[12],w[13],w[14],w[15])}function v(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function A(R){for(var w=0;w<16;){if(R.props[w]!==this.props[w])return!1;w+=1}return!0}function _(R){var w;for(w=0;w<16;w+=1)R.props[w]=this.props[w];return R}function I(R){var w;for(w=0;w<16;w+=1)this.props[w]=R[w]}function C(R,w,D){return{x:R*this.props[0]+w*this.props[4]+D*this.props[8]+this.props[12],y:R*this.props[1]+w*this.props[5]+D*this.props[9]+this.props[13],z:R*this.props[2]+w*this.props[6]+D*this.props[10]+this.props[14]}}function O(R,w,D){return R*this.props[0]+w*this.props[4]+D*this.props[8]+this.props[12]}function B(R,w,D){return R*this.props[1]+w*this.props[5]+D*this.props[9]+this.props[13]}function z(R,w,D){return R*this.props[2]+w*this.props[6]+D*this.props[10]+this.props[14]}function q(){var R=this.props[0]*this.props[5]-this.props[1]*this.props[4],w=this.props[5]/R,D=-this.props[1]/R,G=-this.props[4]/R,Q=this.props[0]/R,F=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/R,r1=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/R,o1=new Matrix;return o1.props[0]=w,o1.props[1]=D,o1.props[4]=G,o1.props[5]=Q,o1.props[12]=F,o1.props[13]=r1,o1}function e1(R){var w=this.getInverseMatrix();return w.applyToPointArray(R[0],R[1],R[2]||0)}function X(R){var w,D=R.length,G=[];for(w=0;w<D;w+=1)G[w]=e1(R[w]);return G}function W(R,w,D){var G=createTypedArray("float32",6);if(this.isIdentity())G[0]=R[0],G[1]=R[1],G[2]=w[0],G[3]=w[1],G[4]=D[0],G[5]=D[1];else{var Q=this.props[0],F=this.props[1],r1=this.props[4],o1=this.props[5],i1=this.props[12],p1=this.props[13];G[0]=R[0]*Q+R[1]*r1+i1,G[1]=R[0]*F+R[1]*o1+p1,G[2]=w[0]*Q+w[1]*r1+i1,G[3]=w[0]*F+w[1]*o1+p1,G[4]=D[0]*Q+D[1]*r1+i1,G[5]=D[0]*F+D[1]*o1+p1}return G}function Z(R,w,D){var G;return this.isIdentity()?G=[R,w,D]:G=[R*this.props[0]+w*this.props[4]+D*this.props[8]+this.props[12],R*this.props[1]+w*this.props[5]+D*this.props[9]+this.props[13],R*this.props[2]+w*this.props[6]+D*this.props[10]+this.props[14]],G}function J(R,w){if(this.isIdentity())return R+","+w;var D=this.props;return Math.round((R*D[0]+w*D[4]+D[12])*100)/100+","+Math.round((R*D[1]+w*D[5]+D[13])*100)/100}function K(){for(var R=0,w=this.props,D="matrix3d(",G=1e4;R<16;)D+=i(w[R]*G)/G,D+=R===15?")":",",R+=1;return D}function k(R){var w=1e4;return R<1e-6&&R>0||R>-1e-6&&R<0?i(R*w)/w:R}function V(){var R=this.props,w=k(R[0]),D=k(R[1]),G=k(R[4]),Q=k(R[5]),F=k(R[12]),r1=k(R[13]);return"matrix("+w+","+D+","+G+","+Q+","+F+","+r1+")"}return function(){this.reset=a,this.rotate=o,this.rotateX=u,this.rotateY=l,this.rotateZ=c,this.skew=d,this.skewFromAxis=T,this.shear=f,this.scale=m,this.setTransform=y,this.translate=S,this.transform=b,this.multiply=L,this.applyToPoint=C,this.applyToX=O,this.applyToY=B,this.applyToZ=z,this.applyToPointArray=Z,this.applyToTriplePoints=W,this.applyToPointStringified=J,this.toCSS=K,this.to2dCSS=V,this.clone=_,this.cloneFromProps=I,this.equals=A,this.inversePoints=X,this.inversePoint=e1,this.getInverseMatrix=q,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.13.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n<t.length;n+=1){var i=t[n].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=(function(){var e={},t={};e.registerModifier=n,e.getModifier=i;function n(a,o){t[a]||(t[a]=o)}function i(a,o,u){return new t[a](o,u)}return e})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,n,i,a){var o=[];t<=1?o.push({s:e,e:t}):e>=1?o.push({s:e-1,e:t-1}):(o.push({s:e,e:1}),o.push({s:0,e:t-1}));var u=[],l,c=o.length,f;for(l=0;l<c;l+=1)if(f=o[l],!(f.e*a<i||f.s*a>i+n)){var d,T;f.s*a<=i?d=0:d=(f.s*a-i)/n,f.e*a>=i+n?T=1:T=(f.e*a-i)/n,u.push([d,T])}return u.length||u.push([0,0]),u},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t<n;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,n;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?t=1+i:this.s.v<0?t=0+i:t=this.s.v+i,this.e.v>1?n=1+i:this.e.v<0?n=0+i:n=this.e.v+i,t>n){var a=t;t=n,n=a}t=Math.round(t*1e4)*1e-4,n=Math.round(n*1e4)*1e-4,this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var o,u,l=this.shapes.length,c,f,d,T,m,y=0;if(n===t)for(u=0;u<l;u+=1)this.shapes[u].localShapeCollection.releaseShapes(),this.shapes[u].shape._mdf=!0,this.shapes[u].shape.paths=this.shapes[u].localShapeCollection,this._mdf&&(this.shapes[u].pathsData.length=0);else if(n===1&&t===0||n===0&&t===1){if(this._mdf)for(u=0;u<l;u+=1)this.shapes[u].pathsData.length=0,this.shapes[u].shape._mdf=!0}else{var S=[],b,L;for(u=0;u<l;u+=1)if(b=this.shapes[u],!b.shape._mdf&&!this._mdf&&!e&&this.m!==2)b.shape.paths=b.localShapeCollection;else{if(o=b.shape.paths,f=o._length,m=0,!b.shape._mdf&&b.pathsData.length)m=b.totalShapeLength;else{for(d=this.releasePathsData(b.pathsData),c=0;c<f;c+=1)T=bez.getSegmentsLength(o.shapes[c]),d.push(T),m+=T.totalLength;b.totalShapeLength=m,b.pathsData=d}y+=m,b.shape._mdf=!0}var v=t,A=n,_=0,I;for(u=l-1;u>=0;u-=1)if(b=this.shapes[u],b.shape._mdf){for(L=b.localShapeCollection,L.releaseShapes(),this.m===2&&l>1?(I=this.calculateShapeEdges(t,n,b.totalShapeLength,_,y),_+=b.totalShapeLength):I=[[v,A]],f=I.length,c=0;c<f;c+=1){v=I[c][0],A=I[c][1],S.length=0,A<=1?S.push({s:b.totalShapeLength*v,e:b.totalShapeLength*A}):v>=1?S.push({s:b.totalShapeLength*(v-1),e:b.totalShapeLength*(A-1)}):(S.push({s:b.totalShapeLength*v,e:b.totalShapeLength}),S.push({s:0,e:b.totalShapeLength*(A-1)}));var C=this.addShapes(b,S[0]);if(S[0].s!==S[0].e){if(S.length>1){var O=b.shape.paths.shapes[b.shape.paths._length-1];if(O.c){var B=C.pop();this.addPaths(C,L),C=this.addShapes(b,S[1],B)}else this.addPaths(C,L),C=this.addShapes(b,S[1])}this.addPaths(C,L)}}b.shape.paths=L}}},TrimModifier.prototype.addPaths=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)t.addShape(e[n])},TrimModifier.prototype.addSegment=function(e,t,n,i,a,o,u){a.setXYAt(t[0],t[1],"o",o),a.setXYAt(n[0],n[1],"i",o+1),u&&a.setXYAt(e[0],e[1],"v",o),a.setXYAt(i[0],i[1],"v",o+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,n,i){t.setXYAt(e[1],e[5],"o",n),t.setXYAt(e[2],e[6],"i",n+1),i&&t.setXYAt(e[0],e[4],"v",n),t.setXYAt(e[3],e[7],"v",n+1)},TrimModifier.prototype.addShapes=function(e,t,n){var i=e.pathsData,a=e.shape.paths.shapes,o,u=e.shape.paths._length,l,c,f=0,d,T,m,y,S=[],b,L=!0;for(n?(T=n._length,b=n._length):(n=shapePool.newElement(),T=0,b=0),S.push(n),o=0;o<u;o+=1){for(m=i[o].lengths,n.c=a[o].c,c=a[o].c?m.length:m.length+1,l=1;l<c;l+=1)if(d=m[l-1],f+d.addedLength<t.s)f+=d.addedLength,n.c=!1;else if(f>t.e){n.c=!1;break}else t.s<=f&&t.e>=f+d.addedLength?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[l],a[o].v[l],n,T,L),L=!1):(y=bez.getNewSegment(a[o].v[l-1],a[o].v[l],a[o].o[l-1],a[o].i[l],(t.s-f)/d.addedLength,(t.e-f)/d.addedLength,m[l-1]),this.addSegmentFromArray(y,n,T,L),L=!1,n.c=!1),f+=d.addedLength,T+=1;if(a[o].c&&m.length){if(d=m[l-1],f<=t.e){var v=m[l-1].addedLength;t.s<=f&&t.e>=f+v?(this.addSegment(a[o].v[l-1],a[o].o[l-1],a[o].i[0],a[o].v[0],n,T,L),L=!1):(y=bez.getNewSegment(a[o].v[l-1],a[o].v[0],a[o].o[l-1],a[o].i[0],(t.s-f)/v,(t.e-f)/v,m[l-1]),this.addSegmentFromArray(y,n,T,L),L=!1,n.c=!1)}else n.c=!1;f+=d.addedLength,T+=1}if(n._length&&(n.setXYAt(n.v[b][0],n.v[b][1],"i",b),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),f>t.e)break;o<u-1&&(n=shapePool.newElement(),L=!0,S.push(n),T=0)}return S};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var n=t/100,i=[0,0],a=e._length,o=0;for(o=0;o<a;o+=1)i[0]+=e.v[o][0],i[1]+=e.v[o][1];i[0]/=a,i[1]/=a;var u=shapePool.newElement();u.c=e.c;var l,c,f,d,T,m;for(o=0;o<a;o+=1)l=e.v[o][0]+(i[0]-e.v[o][0])*n,c=e.v[o][1]+(i[1]-e.v[o][1])*n,f=e.o[o][0]+(i[0]-e.o[o][0])*-n,d=e.o[o][1]+(i[1]-e.o[o][1])*-n,T=e.i[o][0]+(i[0]-e.i[o][0])*-n,m=e.i[o][1]+(i[1]-e.i[o][1])*-n,u.setTripleAt(l,c,f,d,T,m,o);return u},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,a,o,u=this.amount.v;if(u!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(t[a],u));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var e=[0,0];function t(c){var f=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||f,this.a&&c.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&c.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&c.skewFromAxis(-this.sk.v,this.sa.v),this.r?c.rotate(-this.r.v):c.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?c.translate(this.px.v,this.py.v,-this.pz.v):c.translate(this.px.v,this.py.v,0):c.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function n(c){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||c){var f;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){var d,T;if(f=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(d=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/f,0),T=this.p.getValueAtTime(this.p.keyframes[0].t/f,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(d=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/f,0),T=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/f,0)):(d=this.p.pv,T=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/f,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){d=[],T=[];var m=this.px,y=this.py;m._caching.lastFrame+m.offsetTime<=m.keyframes[0].t?(d[0]=m.getValueAtTime((m.keyframes[0].t+.01)/f,0),d[1]=y.getValueAtTime((y.keyframes[0].t+.01)/f,0),T[0]=m.getValueAtTime(m.keyframes[0].t/f,0),T[1]=y.getValueAtTime(y.keyframes[0].t/f,0)):m._caching.lastFrame+m.offsetTime>=m.keyframes[m.keyframes.length-1].t?(d[0]=m.getValueAtTime(m.keyframes[m.keyframes.length-1].t/f,0),d[1]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/f,0),T[0]=m.getValueAtTime((m.keyframes[m.keyframes.length-1].t-.01)/f,0),T[1]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/f,0)):(d=[m.pv,y.pv],T[0]=m.getValueAtTime((m._caching.lastFrame+m.offsetTime-.01)/f,m.offsetTime),T[1]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/f,y.offsetTime))}else T=e,d=T;this.v.rotate(-Math.atan2(d[1]-T[1],d[0]-T[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function a(){}function o(c){this._addDynamicProperty(c),this.elem.addDynamicProperty(c),this._isDirty=!0}function u(c,f,d){if(this.elem=c,this.frameId=-1,this.propType="transform",this.data=f,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(d||c),f.p&&f.p.s?(this.px=PropertyFactory.getProp(c,f.p.x,0,0,this),this.py=PropertyFactory.getProp(c,f.p.y,0,0,this),f.p.z&&(this.pz=PropertyFactory.getProp(c,f.p.z,0,0,this))):this.p=PropertyFactory.getProp(c,f.p||{k:[0,0,0]},1,0,this),f.rx){if(this.rx=PropertyFactory.getProp(c,f.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(c,f.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(c,f.rz,0,degToRads,this),f.or.k[0].ti){var T,m=f.or.k.length;for(T=0;T<m;T+=1)f.or.k[T].to=null,f.or.k[T].ti=null}this.or=PropertyFactory.getProp(c,f.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(c,f.r||{k:0},0,degToRads,this);f.sk&&(this.sk=PropertyFactory.getProp(c,f.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(c,f.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(c,f.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(c,f.s||{k:[100,100,100]},1,.01,this),f.o?this.o=PropertyFactory.getProp(c,f.o,0,.01,c):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}u.prototype={applyToMatrix:t,getValue:n,precalculateMatrix:i,autoOrient:a},extendPrototype([DynamicPropertyContainer],u),u.prototype.addDynamicProperty=o,u.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(c,f,d){return new u(c,f,d)}return{getTransformProperty:l}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(e,t,n,i,a,o){var u=o?-1:1,l=i.s.v[0]+(1-i.s.v[0])*(1-a),c=i.s.v[1]+(1-i.s.v[1])*(1-a);e.translate(i.p.v[0]*u*a,i.p.v[1]*u*a,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*u*a),t.translate(i.a.v[0],i.a.v[1],i.a.v[2]),n.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),n.scale(o?1/l:l,o?1/c:c),n.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,n,i){for(this.elem=e,this.arr=t,this.pos=n,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[n]);n>0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)e[n]._render=t,e[n].ty==="gr"&&this.changeGroupRender(e[n].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,n,i,a,o,u=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),u=!0}o=0;var f;for(i=0;i<=this._groups.length-1;i+=1){if(f=o<l,this._groups[i]._render=f,this.changeGroupRender(this._groups[i].it,f),!f){var d=this.elemsData[i].it,T=d[d.length-1];T.transform.op.v!==0?(T.transform.op._mdf=!0,T.transform.op.v=0):T.transform.op._mdf=!1}o+=1}this._currentCopies=l;var m=this.o.v,y=m%1,S=m>0?Math.floor(m):Math.ceil(m),b=this.pMatrix.props,L=this.rMatrix.props,v=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var A=0;if(m>0){for(;A<S;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),A+=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,y,!1),A+=y)}else if(m<0){for(;A>S;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),A-=1;y&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-y,!0),A-=y)}i=this.data.m===1?0:this._currentCopies-1,a=this.data.m===1?1:-1,o=this._currentCopies;for(var _,I;o;){if(t=this.elemsData[i].it,n=t[t.length-1].transform.mProps.v.props,I=n.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),A!==0){for((i!==0&&a===1||i!==this._currentCopies-1&&a===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(L[0],L[1],L[2],L[3],L[4],L[5],L[6],L[7],L[8],L[9],L[10],L[11],L[12],L[13],L[14],L[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),_=0;_<I;_+=1)n[_]=this.matrix.props[_];this.matrix.reset()}else for(this.matrix.reset(),_=0;_<I;_+=1)n[_]=this.matrix.props[_];A+=1,o-=1,i+=a}}else for(o=this._currentCopies,i=0,a=1;o;)t=this.elemsData[i].it,n=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,o-=1,i+=a;return u},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var n=shapePool.newElement();n.c=e.c;var i,a=e._length,o,u,l,c,f,d,T=0,m,y,S,b,L,v;for(i=0;i<a;i+=1)o=e.v[i],l=e.o[i],u=e.i[i],o[0]===l[0]&&o[1]===l[1]&&o[0]===u[0]&&o[1]===u[1]?(i===0||i===a-1)&&!e.c?(n.setTripleAt(o[0],o[1],l[0],l[1],u[0],u[1],T),T+=1):(i===0?c=e.v[a-1]:c=e.v[i-1],f=Math.sqrt(Math.pow(o[0]-c[0],2)+Math.pow(o[1]-c[1],2)),d=f?Math.min(f/2,t)/f:0,L=o[0]+(c[0]-o[0])*d,m=L,v=o[1]-(o[1]-c[1])*d,y=v,S=m-(m-o[0])*roundCorner,b=y-(y-o[1])*roundCorner,n.setTripleAt(m,y,S,b,L,v,T),T+=1,i===a-1?c=e.v[0]:c=e.v[i+1],f=Math.sqrt(Math.pow(o[0]-c[0],2)+Math.pow(o[1]-c[1],2)),d=f?Math.min(f/2,t)/f:0,S=o[0]+(c[0]-o[0])*d,m=S,b=o[1]+(c[1]-o[1])*d,y=b,L=m-(m-o[0])*roundCorner,v=y-(y-o[1])*roundCorner,n.setTripleAt(m,y,S,b,L,v,T),T+=1):(n.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],T),T+=1);return n},RoundCornersModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,a,o,u=this.rd.v;if(u!==0){var l,c;for(n=0;n<i;n+=1){if(l=this.shapes[n],c=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(c.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,o=l.shape.paths._length,a=0;a<o;a+=1)c.addShape(this.processPath(t[a],u));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,n){return e*(1-n)+t*n}function lerpPoint(e,t,n){return[lerp(e[0],t[0],n),lerp(e[1],t[1],n)]}function quadRoots(e,t,n){if(e===0)return[];var i=t*t-4*e*n;if(i<0)return[];var a=-t/(2*e);if(i===0)return[a];var o=Math.sqrt(i)/(2*e);return[a-o,a+o]}function polynomialCoefficients(e,t,n,i){return[-e+3*t-3*n+i,3*e-6*t+3*n,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,n,i,a){a&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),a&&pointEqual(n,i)&&(n=lerpPoint(e,i,2/3));var o=polynomialCoefficients(e[0],t[0],n[0],i[0]),u=polynomialCoefficients(e[1],t[1],n[1],i[1]);this.a=[o[0],u[0]],this.b=[o[1],u[1]],this.c=[o[2],u[2]],this.d=[o[3],u[3]],this.points=[e,t,n,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,n=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(n<0)return[];var i=Math.sqrt(n);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(a){return a>0&&a<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),n=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),a=lerpPoint(t,n,e),o=lerpPoint(n,i,e),u=lerpPoint(a,o,e);return[new PolynomialBezier(this.points[0],t,a,u,!0),new PolynomialBezier(u,o,i,this.points[3],!0)]};function extrema(e,t){var n=e.points[0][t],i=e.points[e.points.length-1][t];if(n>i){var a=i;i=n,n=a}for(var o=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),u=0;u<o.length;u+=1)if(o[u]>0&&o[u]<1){var l=e.point(o[u])[t];l<n?n=l:l>i&&(i=l)}return{min:n,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,n){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+n)/2,t1:t,t2:n}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,n,i,a,o){if(boxIntersect(e,t)){if(n>=o||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i){a.push([e.t,t.t]);return}var u=splitData(e),l=splitData(t);intersectsImpl(u[0],l[0],n+1,i,a,o),intersectsImpl(u[0],l[1],n+1,i,a,o),intersectsImpl(u[1],l[0],n+1,i,a,o),intersectsImpl(u[1],l[1],n+1,i,a,o)}}PolynomialBezier.prototype.intersections=function(e,t,n){t===void 0&&(t=2),n===void 0&&(n=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,n),i},PolynomialBezier.shapeSegment=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[n],e.v[n],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var n=(t+1)%e.length();return new PolynomialBezier(e.v[n],e.i[n],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,n,i){var a=[e[0],e[1],1],o=[t[0],t[1],1],u=[n[0],n[1],1],l=[i[0],i[1],1],c=crossProduct(crossProduct(a,o),crossProduct(u,l));return floatZero(c[2])?null:[c[0]/c[2],c[1]/c[2]]}function polarOffset(e,t,n){return[e[0]+Math.cos(t)*n,e[1]-Math.sin(t)*n]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,n,i,a,o,u){var l=n-Math.PI/2,c=n+Math.PI/2,f=t[0]+Math.cos(n)*i*a,d=t[1]-Math.sin(n)*i*a;e.setTripleAt(f,d,f+Math.cos(l)*o,d-Math.sin(l)*o,f+Math.cos(c)*u,d-Math.sin(c)*u,e.length())}function getPerpendicularVector(e,t){var n=[t[0]-e[0],t[1]-e[1]],i=-Math.PI*.5,a=[Math.cos(i)*n[0]-Math.sin(i)*n[1],Math.sin(i)*n[0]+Math.cos(i)*n[1]];return a}function getProjectingAngle(e,t){var n=t===0?e.length()-1:t-1,i=(t+1)%e.length(),a=e.v[n],o=e.v[i],u=getPerpendicularVector(a,o);return Math.atan2(0,1)-Math.atan2(u[1],u[0])}function zigZagCorner(e,t,n,i,a,o,u){var l=getProjectingAngle(t,n),c=t.v[n%t._length],f=t.v[n===0?t._length-1:n-1],d=t.v[(n+1)%t._length],T=o===2?Math.sqrt(Math.pow(c[0]-f[0],2)+Math.pow(c[1]-f[1],2)):0,m=o===2?Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)):0;setPoint(e,t.v[n%t._length],l,u,i,m/((a+1)*2),T/((a+1)*2))}function zigZagSegment(e,t,n,i,a,o){for(var u=0;u<i;u+=1){var l=(u+1)/(i+1),c=a===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,f=t.normalAngle(l),d=t.point(l);setPoint(e,d,f,o,n,c/((i+1)*2),c/((i+1)*2)),o=-o}return o}ZigZagModifier.prototype.processPath=function(e,t,n,i){var a=e._length,o=shapePool.newElement();if(o.c=e.c,e.c||(a-=1),a===0)return o;var u=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(o,e,0,t,n,i,u);for(var c=0;c<a;c+=1)u=zigZagSegment(o,l,t,n,i,-u),c===a-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(c+1)%a),zigZagCorner(o,e,c+1,t,n,i,u);return o},ZigZagModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,a,o,u=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(u!==0){var f,d;for(n=0;n<i;n+=1){if(f=this.shapes[n],d=f.localShapeCollection,!(!f.shape._mdf&&!this._mdf&&!e))for(d.releaseShapes(),f.shape._mdf=!0,t=f.shape.paths.shapes,o=f.shape.paths._length,a=0;a<o;a+=1)d.addShape(this.processPath(t[a],u,l,c));f.shape.paths=f.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,n){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,n),polarOffset(t,i,n)]}function offsetSegment(e,t){var n,i,a,o,u,l,c;c=linearOffset(e.points[0],e.points[1],t),n=c[0],i=c[1],c=linearOffset(e.points[1],e.points[2],t),a=c[0],o=c[1],c=linearOffset(e.points[2],e.points[3],t),u=c[0],l=c[1];var f=lineIntersection(n,i,a,o);f===null&&(f=i);var d=lineIntersection(u,l,a,o);return d===null&&(d=u),new PolynomialBezier(n,f,d,l)}function joinLines(e,t,n,i,a){var o=t.points[3],u=n.points[0];if(i===3||pointEqual(o,u))return o;if(i===2){var l=-t.tangentAngle(1),c=-n.tangentAngle(0)+Math.PI,f=lineIntersection(o,polarOffset(o,l+Math.PI/2,100),u,polarOffset(u,l+Math.PI/2,100)),d=f?pointDistance(f,o):pointDistance(o,u)/2,T=polarOffset(o,l,2*d*roundCorner);return e.setXYAt(T[0],T[1],"o",e.length()-1),T=polarOffset(u,c,2*d*roundCorner),e.setTripleAt(u[0],u[1],u[0],u[1],T[0],T[1],e.length()),u}var m=pointEqual(o,t.points[2])?t.points[0]:t.points[2],y=pointEqual(u,n.points[1])?n.points[3]:n.points[1],S=lineIntersection(m,o,u,y);return S&&pointDistance(S,o)<a?(e.setTripleAt(S[0],S[1],S[0],S[1],S[0],S[1],e.length()),S):o}function getIntersection(e,t){var n=e.intersections(t);return n.length&&floatEqual(n[0][0],1)&&n.shift(),n.length?n[0]:null}function pruneSegmentIntersection(e,t){var n=e.slice(),i=t.slice(),a=getIntersection(e[e.length-1],t[0]);return a&&(n[e.length-1]=e[e.length-1].split(a[0])[0],i[0]=t[0].split(a[1])[1]),e.length>1&&t.length>1&&(a=getIntersection(e[0],t[t.length-1]),a)?[[e[0].split(a[0])[0]],[t[t.length-1].split(a[1])[1]]]:[n,i]}function pruneIntersections(e){for(var t,n=1;n<e.length;n+=1)t=pruneSegmentIntersection(e[n-1],e[n]),e[n-1]=t[0],e[n]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var n=e.inflectionPoints(),i,a,o,u;if(n.length===0)return[offsetSegment(e,t)];if(n.length===1||floatEqual(n[1],1))return o=e.split(n[0]),i=o[0],a=o[1],[offsetSegment(i,t),offsetSegment(a,t)];o=e.split(n[0]),i=o[0];var l=(n[1]-n[0])/(1-n[0]);return o=o[1].split(l),u=o[0],a=o[1],[offsetSegment(i,t),offsetSegment(u,t),offsetSegment(a,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,n,i){var a=shapePool.newElement();a.c=e.c;var o=e.length();e.c||(o-=1);var u,l,c,f=[];for(u=0;u<o;u+=1)c=PolynomialBezier.shapeSegment(e,u),f.push(offsetSegmentSplit(c,t));if(!e.c)for(u=o-1;u>=0;u-=1)c=PolynomialBezier.shapeSegmentInverted(e,u),f.push(offsetSegmentSplit(c,t));f=pruneIntersections(f);var d=null,T=null;for(u=0;u<f.length;u+=1){var m=f[u];for(T&&(d=joinLines(a,T,m[0],n,i)),T=m[m.length-1],l=0;l<m.length;l+=1)c=m[l],d&&pointEqual(c.points[0],d)?a.setXYAt(c.points[1][0],c.points[1][1],"o",a.length()-1):a.setTripleAt(c.points[0][0],c.points[0][1],c.points[1][0],c.points[1][1],c.points[0][0],c.points[0][1],a.length()),a.setTripleAt(c.points[3][0],c.points[3][1],c.points[3][0],c.points[3][1],c.points[2][0],c.points[2][1],a.length()),d=c.points[3]}return f.length&&joinLines(a,T,f[0][0],n,i),a},OffsetPathModifier.prototype.processShapes=function(e){var t,n,i=this.shapes.length,a,o,u=this.amount.v,l=this.miterLimit.v,c=this.lineJoin;if(u!==0){var f,d;for(n=0;n<i;n+=1){if(f=this.shapes[n],d=f.localShapeCollection,!(!f.shape._mdf&&!this._mdf&&!e))for(d.releaseShapes(),f.shape._mdf=!0,t=f.shape.paths.shapes,o=f.shape.paths._length,a=0;a<o;a+=1)d.addShape(this.processPath(t[a],u,c,l));f.shape.paths=f.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",i="normal",a=t.length,o,u=0;u<a;u+=1)switch(o=t[u].toLowerCase(),o){case"italic":i="italic";break;case"bold":n="700";break;case"black":n="900";break;case"medium":n="500";break;case"regular":case"normal":n="400";break;case"light":case"thin":n="200";break}return{style:i,weight:e.fWeight||n}}var FontManager=(function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},n=[];n=n.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,a=917631,o=917601,u=917626,l=65039,c=8205,f=127462,d=127487,T=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function m(k){var V=k.split(","),R,w=V.length,D=[];for(R=0;R<w;R+=1)V[R]!=="sans-serif"&&V[R]!=="monospace"&&D.push(V[R]);return D.join(",")}function y(k,V){var R=createTag("span");R.setAttribute("aria-hidden",!0),R.style.fontFamily=V;var w=createTag("span");w.innerText="giItT1WQy@!-/#",R.style.position="absolute",R.style.left="-10000px",R.style.top="-10000px",R.style.fontSize="300px",R.style.fontVariant="normal",R.style.fontStyle="normal",R.style.fontWeight="normal",R.style.letterSpacing="0",R.appendChild(w),document.body.appendChild(R);var D=w.offsetWidth;return w.style.fontFamily=m(k)+", "+V,{node:w,w:D,parent:R}}function S(){var k,V=this.fonts.length,R,w,D=V;for(k=0;k<V;k+=1)this.fonts[k].loaded?D-=1:this.fonts[k].fOrigin==="n"||this.fonts[k].origin===0?this.fonts[k].loaded=!0:(R=this.fonts[k].monoCase.node,w=this.fonts[k].monoCase.w,R.offsetWidth!==w?(D-=1,this.fonts[k].loaded=!0):(R=this.fonts[k].sansCase.node,w=this.fonts[k].sansCase.w,R.offsetWidth!==w&&(D-=1,this.fonts[k].loaded=!0)),this.fonts[k].loaded&&(this.fonts[k].sansCase.parent.parentNode.removeChild(this.fonts[k].sansCase.parent),this.fonts[k].monoCase.parent.parentNode.removeChild(this.fonts[k].monoCase.parent)));D!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function b(k,V){var R=document.body&&V?"svg":"canvas",w,D=getFontProperties(k);if(R==="svg"){var G=createNS("text");G.style.fontSize="100px",G.setAttribute("font-family",k.fFamily),G.setAttribute("font-style",D.style),G.setAttribute("font-weight",D.weight),G.textContent="1",k.fClass?(G.style.fontFamily="inherit",G.setAttribute("class",k.fClass)):G.style.fontFamily=k.fFamily,V.appendChild(G),w=G}else{var Q=new OffscreenCanvas(500,500).getContext("2d");Q.font=D.style+" "+D.weight+" 100px "+k.fFamily,w=Q}function F(r1){return R==="svg"?(w.textContent=r1,w.getComputedTextLength()):w.measureText(r1).width}return{measureText:F}}function L(k,V){if(!k){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=k.list;return}if(!document.body){this.isLoaded=!0,k.list.forEach(function(m1){m1.helper=b(m1),m1.cache={}}),this.fonts=k.list;return}var R=k.list,w,D=R.length,G=D;for(w=0;w<D;w+=1){var Q=!0,F,r1;if(R[w].loaded=!1,R[w].monoCase=y(R[w].fFamily,"monospace"),R[w].sansCase=y(R[w].fFamily,"sans-serif"),!R[w].fPath)R[w].loaded=!0,G-=1;else if(R[w].fOrigin==="p"||R[w].origin===3){if(F=document.querySelectorAll('style[f-forigin="p"][f-family="'+R[w].fFamily+'"], style[f-origin="3"][f-family="'+R[w].fFamily+'"]'),F.length>0&&(Q=!1),Q){var o1=createTag("style");o1.setAttribute("f-forigin",R[w].fOrigin),o1.setAttribute("f-origin",R[w].origin),o1.setAttribute("f-family",R[w].fFamily),o1.type="text/css",o1.innerText="@font-face {font-family: "+R[w].fFamily+"; font-style: normal; src: url('"+R[w].fPath+"');}",V.appendChild(o1)}}else if(R[w].fOrigin==="g"||R[w].origin===1){for(F=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),r1=0;r1<F.length;r1+=1)F[r1].href.indexOf(R[w].fPath)!==-1&&(Q=!1);if(Q){var i1=createTag("link");i1.setAttribute("f-forigin",R[w].fOrigin),i1.setAttribute("f-origin",R[w].origin),i1.type="text/css",i1.rel="stylesheet",i1.href=R[w].fPath,document.body.appendChild(i1)}}else if(R[w].fOrigin==="t"||R[w].origin===2){for(F=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),r1=0;r1<F.length;r1+=1)R[w].fPath===F[r1].src&&(Q=!1);if(Q){var p1=createTag("link");p1.setAttribute("f-forigin",R[w].fOrigin),p1.setAttribute("f-origin",R[w].origin),p1.setAttribute("rel","stylesheet"),p1.setAttribute("href",R[w].fPath),V.appendChild(p1)}}R[w].helper=b(R[w],V),R[w].cache={},this.fonts.push(R[w])}G===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function v(k){if(k){this.chars||(this.chars=[]);var V,R=k.length,w,D=this.chars.length,G;for(V=0;V<R;V+=1){for(w=0,G=!1;w<D;)this.chars[w].style===k[V].style&&this.chars[w].fFamily===k[V].fFamily&&this.chars[w].ch===k[V].ch&&(G=!0),w+=1;G||(this.chars.push(k[V]),D+=1)}}}function A(k,V,R){for(var w=0,D=this.chars.length;w<D;){if(this.chars[w].ch===k&&this.chars[w].style===V&&this.chars[w].fFamily===R)return this.chars[w];w+=1}return(typeof k=="string"&&k.charCodeAt(0)!==13||!k)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",k,V,R)),t}function _(k,V,R){var w=this.getFontByName(V),D=k;if(!w.cache[D]){var G=w.helper;if(k===" "){var Q=G.measureText("|"+k+"|"),F=G.measureText("||");w.cache[D]=(Q-F)/100}else w.cache[D]=G.measureText(k)/100}return w.cache[D]*R}function I(k){for(var V=0,R=this.fonts.length;V<R;){if(this.fonts[V].fName===k)return this.fonts[V];V+=1}return this.fonts[0]}function C(k){var V=0,R=k.charCodeAt(0);if(R>=55296&&R<=56319){var w=k.charCodeAt(1);w>=56320&&w<=57343&&(V=(R-55296)*1024+w-56320+65536)}return V}function O(k,V){var R=k.toString(16)+V.toString(16);return T.indexOf(R)!==-1}function B(k){return k===c}function z(k){return k===l}function q(k){var V=C(k);return V>=f&&V<=d}function e1(k){return q(k.substr(0,2))&&q(k.substr(2,2))}function X(k){return n.indexOf(k)!==-1}function W(k,V){var R=C(k.substr(V,2));if(R!==i)return!1;var w=0;for(V+=2;w<5;){if(R=C(k.substr(V,2)),R<o||R>u)return!1;w+=1,V+=2}return C(k.substr(V,2))===a}function Z(){this.isLoaded=!0}var J=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};J.isModifier=O,J.isZeroWidthJoiner=B,J.isFlagEmoji=e1,J.isRegionalCode=q,J.isCombinedCharacter=X,J.isRegionalFlag=W,J.isVariationSelector=z,J.BLACK_FLAG_CODE_POINT=i;var K={addChars:v,addFonts:L,getCharData:A,getFontByName:I,measureText:_,checkLoadedFonts:S,setIsLoaded:Z};return J.prototype=K,J})();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,n=this.renderableComponents.length;for(t=0;t<n;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return this.data.ty===5?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=(function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}})();function SliderEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function AngleEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function ColorEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function PointEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,1,0,n)}function LayerIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function MaskIndexEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function CheckboxEffect(e,t,n){this.p=PropertyFactory.getProp(t,e.v,0,0,n)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var n=e.ef||[];this.effectElements=[];var i,a=n.length,o;for(i=0;i<a;i+=1)o=new GroupEffect(n[i],t),this.effectElements.push(o)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var n,i=this.data.ef.length,a,o=this.data.ef;for(n=0;n<i;n+=1){switch(a=null,o[n].ty){case 0:a=new SliderEffect(o[n],t,this);break;case 1:a=new AngleEffect(o[n],t,this);break;case 2:a=new ColorEffect(o[n],t,this);break;case 3:a=new PointEffect(o[n],t,this);break;case 4:case 7:a=new CheckboxEffect(o[n],t,this);break;case 10:a=new LayerIndexEffect(o[n],t,this);break;case 11:a=new MaskIndexEffect(o[n],t,this);break;case 5:a=new EffectsManager(o[n],t);break;default:a=new NoValueEffect(o[n]);break}a&&this.effectElements.push(a)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,n=this.data.masksProperties.length;t<n;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var n=t("layer"),i=t("effects"),a=t("shape"),o=t("text"),u=t("comp");this.layerInterface=n(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=u(this):this.data.ty===4?(this.layerInterface.shapeInterface=a(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(this.layerInterface.textInterface=o(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm),n=this.baseElement||this.layerElement;n.style["mix-blend-mode"]=t},initBaseData:function(t,n,i){this.globalData=n,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,n){var i,a=this.dynamicProperties.length;for(i=0;i<a;i+=1)(n||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,n)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,n){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,n),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,n=this.layers.length,i;for(this.completeLayers=!0,t=n-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t],i.ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,n=e.length,i,a=this.layers.length;for(t=0;t<n;t+=1)for(i=0;i<a;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,n){for(var i=this.elements,a=this.layers,o=0,u=a.length;o<u;)a[o].ind==t&&(!i[o]||i[o]===!0?(this.buildItem(o),this.addPendingElement(e)):(n.push(i[o]),i[o].setAsParent(),a[o].parent!==void 0?this.buildElementParenting(e,a[o].parent,n):e.setHierarchy(n))),o+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,n=e.length;for(t=0;t<n;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,n=this.elements.length;for(t=0;t<n;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),n;if(typeof t=="number")n=this.elements[t];else{var i,a=this.elements.length;for(i=0;i<a;i+=1)if(this.elements[i].data.nm===t){n=this.elements[i];break}}return e.length===0?n:n.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,n=this.finalTransform.mat,i=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<a;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,n.cloneFromProps(t),i=0;i<a;i+=1)n.multiply(this.hierarchy[i].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,n=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<n;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<n;t+=1){var a=this.localTransforms[t].matrix;i.multiply(a)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var o=this.finalTransform.localOpacity;for(t=0;t<n;t+=1)o*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=o}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var n=0,i=t.length;for(n=0;n<i;n+=1)this.localTransforms.push(t[n])}}},globalToLocal:function(t){var n=[];n.push(this.finalTransform);for(var i=!0,a=this.comp;i;)a.finalTransform?(a.data.hasMask&&n.splice(0,0,a.finalTransform),a=a.comp):i=!1;var o,u=n.length,l;for(o=0;o<u;o+=1)l=n[o].mat.applyToPointArray(0,0,0),t=[t[0]-l[0],t[1]-l[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,n){this.data=e,this.element=t,this.globalData=n,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,a,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var u,l=this.masksProperties,c=0,f=[],d,T,m=createElementID(),y,S,b,L,v="clipPath",A="clip-path";for(a=0;a<o;a+=1)if((l[a].mode!=="a"&&l[a].mode!=="n"||l[a].inv||l[a].o.k!==100||l[a].o.x)&&(v="mask",A="mask"),(l[a].mode==="s"||l[a].mode==="i")&&c===0?(y=createNS("rect"),y.setAttribute("fill","#ffffff"),y.setAttribute("width",this.element.comp.data.w||0),y.setAttribute("height",this.element.comp.data.h||0),f.push(y)):y=null,u=createNS("path"),l[a].mode==="n")this.viewData[a]={op:PropertyFactory.getProp(this.element,l[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[a],3),elem:u,lastPath:""},i.appendChild(u);else{c+=1,u.setAttribute("fill",l[a].mode==="s"?"#000000":"#ffffff"),u.setAttribute("clip-rule","nonzero");var _;if(l[a].x.k!==0?(v="mask",A="mask",L=PropertyFactory.getProp(this.element,l[a].x,0,null,this.element),_=createElementID(),S=createNS("filter"),S.setAttribute("id",_),b=createNS("feMorphology"),b.setAttribute("operator","erode"),b.setAttribute("in","SourceGraphic"),b.setAttribute("radius","0"),S.appendChild(b),i.appendChild(S),u.setAttribute("stroke",l[a].mode==="s"?"#000000":"#ffffff")):(b=null,L=null),this.storedData[a]={elem:u,x:L,expan:b,lastPath:"",lastOperator:"",filterId:_,lastRadius:0},l[a].mode==="i"){T=f.length;var I=createNS("g");for(d=0;d<T;d+=1)I.appendChild(f[d]);var C=createNS("mask");C.setAttribute("mask-type","alpha"),C.setAttribute("id",m+"_"+c),C.appendChild(u),i.appendChild(C),I.setAttribute("mask","url("+getLocationHref()+"#"+m+"_"+c+")"),f.length=0,f.push(I)}else f.push(u);l[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:u,lastPath:"",op:PropertyFactory.getProp(this.element,l[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[a],3),invRect:y},this.viewData[a].prop.k||this.drawPath(l[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(v),o=f.length,a=0;a<o;a+=1)this.maskElement.appendChild(f[a]);c>0&&(this.maskElement.setAttribute("id",m),this.element.maskedElement.setAttribute(A,"url("+getLocationHref()+"#"+m+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,n,i=this.masksProperties.length;for(n=0;n<i;n+=1)if((this.viewData[n].prop._mdf||e)&&this.drawPath(this.masksProperties[n],this.viewData[n].prop.v,this.viewData[n]),(this.viewData[n].op._mdf||e)&&this.viewData[n].elem.setAttribute("fill-opacity",this.viewData[n].op.v),this.masksProperties[n].mode!=="n"&&(this.viewData[n].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[n].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[n].x&&(this.storedData[n].x._mdf||e))){var a=this.storedData[n].expan;this.storedData[n].x.v<0?(this.storedData[n].lastOperator!=="erode"&&(this.storedData[n].lastOperator="erode",this.storedData[n].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[n].filterId+")")),a.setAttribute("radius",-this.storedData[n].x.v)):(this.storedData[n].lastOperator!=="dilate"&&(this.storedData[n].lastOperator="dilate",this.storedData[n].elem.setAttribute("filter",null)),this.storedData[n].elem.setAttribute("stroke-width",this.storedData[n].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,n){var i=" M"+t.v[0][0]+","+t.v[0][1],a,o;for(o=t._length,a=1;a<o;a+=1)i+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[a][0]+","+t.i[a][1]+" "+t.v[a][0]+","+t.v[a][1];if(t.c&&o>1&&(i+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==i){var u="";n.elem&&(t.c&&(u=e.inv?this.solidPath+i:i),n.elem.setAttribute("d",u)),n.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=n;function t(i,a){var o=createNS("filter");return o.setAttribute("id",i),a!==!0&&(o.setAttribute("filterUnits","objectBoundingBox"),o.setAttribute("x","0%"),o.setAttribute("y","0%"),o.setAttribute("width","100%"),o.setAttribute("height","100%")),o}function n(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e})(),featureSupport=(function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,n="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),u=0;this.filters=[];var l;for(t=0;t<i;t+=1){l=null;var c=e.data.ef[t].ty;if(registeredEffects$1[c]){var f=registeredEffects$1[c].effect;l=new f(o,e.effectsManager.effectElements[t],e,idPrefix+u,n),n=idPrefix+u,registeredEffects$1[c].countsAsEffect&&(u+=1)}l&&this.filters.push(l)}u&&(e.globalData.defs.appendChild(o),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,n=this.filters.length,i=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect$1(e,t,n){registeredEffects$1[e]={effect:t,countsAsEffect:n}}function SVGBaseElement(){}SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var n=createNS("g");n.setAttribute("id",this.layerId),n.appendChild(this.layerElement),t=n,this.globalData.defs.appendChild(n)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),a=createNS("path");a.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var o=createElementID();if(i.setAttribute("id",o),i.appendChild(a),this.globalData.defs.appendChild(i),this.checkMasks()){var u=createNS("g");u.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")"),u.appendChild(this.layerElement),this.transformedElement=u,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+o+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var n=this.layerId+"_"+t,i,a,o,u;if(t===1||t===3){var l=createNS("mask");l.setAttribute("id",n),l.setAttribute("mask-type",t===3?"luminance":"alpha"),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(o),this.globalData.defs.appendChild(l),!featureSupport.maskType&&t===1&&(l.setAttribute("mask-type","luminance"),i=createElementID(),a=filtersFactory.createFilter(i),this.globalData.defs.appendChild(a),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),u=createNS("g"),u.appendChild(o),l.appendChild(u),u.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(t===2){var c=createNS("mask");c.setAttribute("id",n),c.setAttribute("mask-type","alpha");var f=createNS("g");c.appendChild(f),i=createElementID(),a=filtersFactory.createFilter(i);var d=createNS("feComponentTransfer");d.setAttribute("in","SourceGraphic"),a.appendChild(d);var T=createNS("feFuncA");T.setAttribute("type","table"),T.setAttribute("tableValues","1.0 0.0"),d.appendChild(T),this.globalData.defs.appendChild(a);var m=createNS("rect");m.setAttribute("width",this.comp.data.w),m.setAttribute("height",this.comp.data.h),m.setAttribute("x","0"),m.setAttribute("y","0"),m.setAttribute("fill","#ffffff"),m.setAttribute("opacity","0"),f.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),f.appendChild(m),o=createNS("use"),o.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),f.appendChild(o),featureSupport.maskType||(c.setAttribute("mask-type","luminance"),a.appendChild(filtersFactory.createAlphaToLuminanceFilter()),u=createNS("g"),f.appendChild(m),u.appendChild(this.layerElement),f.appendChild(u)),this.globalData.defs.appendChild(c)}this.matteMasks[t]=n}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(n,i,a){this.initFrame(),this.initBaseData(n,i,a),this.initTransform(n,i,a),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var n=this.baseElement||this.layerElement;n.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var n=this.baseElement||this.layerElement;n.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(n){this._mdf=!1,this.prepareRenderableFrame(n),this.prepareProperties(n,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,n),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var n,i=this.shapeModifiers.length;for(n=0;n<i;n+=1)this.shapeModifiers[n].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var n=0,i=this.shapeModifiers.length;n<i;)if(this.shapeModifiers[n].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,n=this.shapes.length;for(t=0;t<n;t+=1)this.shapes[t].sh.reset();n=this.shapeModifiers.length;var i;for(t=n-1;t>=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var n=this.processedElements,i=0,a=n.length;i<a;){if(n[i].elem===t)return n[i].pos;i+=1}return 0},addProcessedElement:function(t,n){for(var i=this.processedElements,a=i.length;a;)if(a-=1,i[a].elem===t){i[a].pos=n;return}i.push(new ProcessedElement(t,n))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(e,t,n){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=n,this.lvl=t,this._isAnimated=!!n.k;for(var i=0,a=e.length;i<a;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,n,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=n,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var a,o=t.length||0,u;for(a=0;a<o;a+=1)u=PropertyFactory.getProp(e,t[a].v,0,0,this),this.k=u.k||this.k,this.dataProps[a]={n:t[a].n,p:u};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,n=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<n;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=n}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=n}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,n){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var i=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(n),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var n=0,i=this.o.length/2,a;n<i;){if(a=Math.abs(e[n*4]-e[t*4+n*2]),a>.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,n=this.data.p*4,i,a;for(t=0;t<n;t+=1)i=t%4===0?100:255,a=Math.round(this.prop.v[t]*i),this.c[t]!==a&&(this.c[t]=a,this._cmdf=!e);if(this.o.length)for(n=this.prop.v.length,t=this.data.p*4;t<n;t+=1)i=t%2===0?100:1,a=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==a&&(this.o[t-this.data.p*4]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,n)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,n){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=n,this.stops=[],this.setGradientData(n.pElem,t),this.setGradientOpacity(t,n),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var n=createElementID(),i=createNS(t.t===1?"linearGradient":"radialGradient");i.setAttribute("id",n),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var a=[],o,u,l;for(l=t.g.p*4,u=0;u<l;u+=4)o=createNS("stop"),i.appendChild(o),a.push(o);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+n+")"),this.gf=i,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var n,i,a,o=createNS("mask"),u=createNS("path");o.appendChild(u);var l=createElementID(),c=createElementID();o.setAttribute("id",c);var f=createNS(e.t===1?"linearGradient":"radialGradient");f.setAttribute("id",l),f.setAttribute("spreadMethod","pad"),f.setAttribute("gradientUnits","userSpaceOnUse"),a=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var d=this.stops;for(i=e.g.p*4;i<a;i+=2)n=createNS("stop"),n.setAttribute("stop-color","rgb(255,255,255)"),f.appendChild(n),d.push(n);u.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(u.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),u.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&u.setAttribute("stroke-miterlimit",e.ml)),this.of=f,this.ms=o,this.ost=d,this.maskId=c,t.msElem=u}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,n){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,n),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,n){this.transform={mProps:e,op:t,container:n},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,n,i,a){if(n===0)return"";var o=t.o,u=t.i,l=t.v,c,f=" M"+a.applyToPointStringified(l[0][0],l[0][1]);for(c=1;c<n;c+=1)f+=" C"+a.applyToPointStringified(o[c-1][0],o[c-1][1])+" "+a.applyToPointStringified(u[c][0],u[c][1])+" "+a.applyToPointStringified(l[c][0],l[c][1]);return i&&n&&(f+=" C"+a.applyToPointStringified(o[c-1][0],o[c-1][1])+" "+a.applyToPointStringified(u[0][0],u[0][1])+" "+a.applyToPointStringified(l[0][0],l[0][1]),f+="z"),f},SVGElementsRenderer=(function(){var e=new Matrix,t=new Matrix,n={createRenderFunction:i};function i(T){switch(T.ty){case"fl":return l;case"gf":return f;case"gs":return c;case"st":return d;case"sh":case"el":case"rc":case"sr":return u;case"tr":return a;case"no":return o;default:return null}}function a(T,m,y){(y||m.transform.op._mdf)&&m.transform.container.setAttribute("opacity",m.transform.op.v),(y||m.transform.mProps._mdf)&&m.transform.container.setAttribute("transform",m.transform.mProps.v.to2dCSS())}function o(){}function u(T,m,y){var S,b,L,v,A,_,I=m.styles.length,C=m.lvl,O,B,z,q;for(_=0;_<I;_+=1){if(v=m.sh._mdf||y,m.styles[_].lvl<C){for(B=t.reset(),z=C-m.styles[_].lvl,q=m.transformers.length-1;!v&&z>0;)v=m.transformers[q].mProps._mdf||v,z-=1,q-=1;if(v)for(z=C-m.styles[_].lvl,q=m.transformers.length-1;z>0;)B.multiply(m.transformers[q].mProps.v),z-=1,q-=1}else B=e;if(O=m.sh.paths,b=O._length,v){for(L="",S=0;S<b;S+=1)A=O.shapes[S],A&&A._length&&(L+=buildShapeString(A,A._length,A.c,B));m.caches[_]=L}else L=m.caches[_];m.styles[_].d+=T.hd===!0?"":L,m.styles[_]._mdf=v||m.styles[_]._mdf}}function l(T,m,y){var S=m.style;(m.c._mdf||y)&&S.pElem.setAttribute("fill","rgb("+bmFloor(m.c.v[0])+","+bmFloor(m.c.v[1])+","+bmFloor(m.c.v[2])+")"),(m.o._mdf||y)&&S.pElem.setAttribute("fill-opacity",m.o.v)}function c(T,m,y){f(T,m,y),d(T,m,y)}function f(T,m,y){var S=m.gf,b=m.g._hasOpacity,L=m.s.v,v=m.e.v;if(m.o._mdf||y){var A=T.ty==="gf"?"fill-opacity":"stroke-opacity";m.style.pElem.setAttribute(A,m.o.v)}if(m.s._mdf||y){var _=T.t===1?"x1":"cx",I=_==="x1"?"y1":"cy";S.setAttribute(_,L[0]),S.setAttribute(I,L[1]),b&&!m.g._collapsable&&(m.of.setAttribute(_,L[0]),m.of.setAttribute(I,L[1]))}var C,O,B,z;if(m.g._cmdf||y){C=m.cst;var q=m.g.c;for(B=C.length,O=0;O<B;O+=1)z=C[O],z.setAttribute("offset",q[O*4]+"%"),z.setAttribute("stop-color","rgb("+q[O*4+1]+","+q[O*4+2]+","+q[O*4+3]+")")}if(b&&(m.g._omdf||y)){var e1=m.g.o;for(m.g._collapsable?C=m.cst:C=m.ost,B=C.length,O=0;O<B;O+=1)z=C[O],m.g._collapsable||z.setAttribute("offset",e1[O*2]+"%"),z.setAttribute("stop-opacity",e1[O*2+1])}if(T.t===1)(m.e._mdf||y)&&(S.setAttribute("x2",v[0]),S.setAttribute("y2",v[1]),b&&!m.g._collapsable&&(m.of.setAttribute("x2",v[0]),m.of.setAttribute("y2",v[1])));else{var X;if((m.s._mdf||m.e._mdf||y)&&(X=Math.sqrt(Math.pow(L[0]-v[0],2)+Math.pow(L[1]-v[1],2)),S.setAttribute("r",X),b&&!m.g._collapsable&&m.of.setAttribute("r",X)),m.s._mdf||m.e._mdf||m.h._mdf||m.a._mdf||y){X||(X=Math.sqrt(Math.pow(L[0]-v[0],2)+Math.pow(L[1]-v[1],2)));var W=Math.atan2(v[1]-L[1],v[0]-L[0]),Z=m.h.v;Z>=1?Z=.99:Z<=-1&&(Z=-.99);var J=X*Z,K=Math.cos(W+m.a.v)*J+L[0],k=Math.sin(W+m.a.v)*J+L[1];S.setAttribute("fx",K),S.setAttribute("fy",k),b&&!m.g._collapsable&&(m.of.setAttribute("fx",K),m.of.setAttribute("fy",k))}}}function d(T,m,y){var S=m.style,b=m.d;b&&(b._mdf||y)&&b.dashStr&&(S.pElem.setAttribute("stroke-dasharray",b.dashStr),S.pElem.setAttribute("stroke-dashoffset",b.dashoffset[0])),m.c&&(m.c._mdf||y)&&S.pElem.setAttribute("stroke","rgb("+bmFloor(m.c.v[0])+","+bmFloor(m.c.v[1])+","+bmFloor(m.c.v[2])+")"),(m.o._mdf||y)&&S.pElem.setAttribute("stroke-opacity",m.o.v),(m.w._mdf||y)&&(S.pElem.setAttribute("stroke-width",m.w.v),S.msElem&&S.msElem.setAttribute("stroke-width",m.w.v))}return n})();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t=this.shapes.length,n,i,a=this.stylesList.length,o,u=[],l=!1;for(i=0;i<a;i+=1){for(o=this.stylesList[i],l=!1,u.length=0,e=0;e<t;e+=1)n=this.shapes[e],n.styles.indexOf(o)!==-1&&(u.push(n),l=n._isAnimated||l);u.length>1&&l&&this.setShapesAsAnimated(u)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var n,i=new SVGStyleData(e,t),a=i.pElem;if(e.ty==="st")n=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")n=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var o=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;n=new o(this,e,i),this.globalData.defs.appendChild(n.gf),n.maskId&&(this.globalData.defs.appendChild(n.ms),this.globalData.defs.appendChild(n.of),a.setAttribute("mask","url("+getLocationHref()+"#"+n.maskId+")"))}else e.ty==="no"&&(n=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),a.setAttribute("fill-opacity","0"),e.lj===1&&a.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&a.setAttribute("fill-rule","evenodd"),e.ln&&a.setAttribute("id",e.ln),e.cl&&a.setAttribute("class",e.cl),e.bm&&(a.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var n=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(n,n.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,n){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var a=ShapePropertyFactory.getShapeProp(this,e,i,this),o=new SVGShapeData(t,n,a);return this.shapes.push(o),this.addShapeToModifiers(o),this.addToAnimatedContents(e,o),o},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var n=0,i=this.animatedContents.length;n<i;){if(this.animatedContents[n].element===t)return;n+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,n,i=this.stylesList.length;for(n=0;n<i;n+=1)t.indexOf(this.stylesList[n])===-1&&!this.stylesList[n].closed&&t.push(this.stylesList[n])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,n,i,a,o,u){var l=[].concat(o),c,f=e.length-1,d,T,m=[],y=[],S,b,L;for(c=f;c>=0;c-=1){if(L=this.searchProcessedElement(e[c]),L?t[c]=n[L-1]:e[c]._render=u,e[c].ty==="fl"||e[c].ty==="st"||e[c].ty==="gf"||e[c].ty==="gs"||e[c].ty==="no")L?t[c].style.closed=e[c].hd:t[c]=this.createStyleElement(e[c],a),e[c]._render&&t[c].style.pElem.parentNode!==i&&i.appendChild(t[c].style.pElem),m.push(t[c].style);else if(e[c].ty==="gr"){if(!L)t[c]=this.createGroupElement(e[c]);else for(T=t[c].it.length,d=0;d<T;d+=1)t[c].prevViewData[d]=t[c].it[d];this.searchShapes(e[c].it,t[c].it,t[c].prevViewData,t[c].gr,a+1,l,u),e[c]._render&&t[c].gr.parentNode!==i&&i.appendChild(t[c].gr)}else e[c].ty==="tr"?(L||(t[c]=this.createTransformElement(e[c],i)),S=t[c].transform,l.push(S)):e[c].ty==="sh"||e[c].ty==="rc"||e[c].ty==="el"||e[c].ty==="sr"?(L||(t[c]=this.createShapeElement(e[c],l,a)),this.setElementStyles(t[c])):e[c].ty==="tm"||e[c].ty==="rd"||e[c].ty==="ms"||e[c].ty==="pb"||e[c].ty==="zz"||e[c].ty==="op"?(L?(b=t[c],b.closed=!1):(b=ShapeModifiers.getModifier(e[c].ty),b.init(this,e[c]),t[c]=b,this.shapeModifiers.push(b)),y.push(b)):e[c].ty==="rp"&&(L?(b=t[c],b.closed=!0):(b=ShapeModifiers.getModifier(e[c].ty),t[c]=b,b.init(this,e,c,t),this.shapeModifiers.push(b),u=!1),y.push(b));this.addProcessedElement(e[c],c+1)}for(f=m.length,c=0;c<f;c+=1)m[c].closed=!0;for(f=y.length,c=0;c<f;c+=1)y[c].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,n;for(e=0;e<t;e+=1)n=this.animatedContents[e],(this._isFirstFrame||n.element._isAnimated)&&n.data!==!0&&n.fn(n.data,n.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,n,i,a,o){this.o=e,this.sw=t,this.sc=n,this.fc=i,this.m=a,this.p=o,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,n,i,a,o){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var u=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,u=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,u=!0),this.sc!==n&&(this.sc=n,this._mdf.sc=!0,u=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,u=!0),this.m!==a&&(this.m=a,this._mdf.m=!0,u=!0),o.length&&(this.p[0]!==o[0]||this.p[1]!==o[1]||this.p[4]!==o[4]||this.p[5]!==o[5]||this.p[12]!==o[12]||this.p[13]!==o[13])&&(this.p=o,this._mdf.p=!0,u=!0),u};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,a=this.effectsSequence.length,o=e||this.data.d.k[this.keysIndex].s;for(i=0;i<a;i+=1)n!==this.keysIndex?o=this.effectsSequence[i](o,o.t):o=this.effectsSequence[i](this.currentData,o.t);t!==o&&this.setCurrentData(o),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,n=0,i=e.length;n<=i-1&&!(n===i-1||e[n+1].t>t);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],n=0,i=e.length,a,o,u=!1,l=!1,c="";n<i;)u=l,l=!1,a=e.charCodeAt(n),c=e.charAt(n),FontManager.isCombinedCharacter(a)?u=!0:a>=55296&&a<=56319?FontManager.isRegionalFlag(e,n)?c=e.substr(n,14):(o=e.charCodeAt(n+1),o>=56320&&o<=57343&&(FontManager.isModifier(a,o)?(c=e.substr(n,2),u=!0):FontManager.isFlagEmoji(e.substr(n,4))?c=e.substr(n,4):c=e.substr(n,2))):a>56319?(o=e.charCodeAt(n+1),FontManager.isVariationSelector(a)&&(u=!0)):FontManager.isZeroWidthJoiner(a)&&(u=!0,l=!0),u?(t[t.length-1]+=c,u=!1):t.push(c),n+=c.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,n=this.data,i=[],a,o,u,l=0,c,f=n.m.g,d=0,T=0,m=0,y=[],S=0,b=0,L,v,A=t.getFontByName(e.f),_,I=0,C=getFontProperties(A);e.fWeight=C.weight,e.fStyle=C.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),o=e.finalText.length,e.finalLineHeight=e.lh;var O=e.tr/1e3*e.finalSize,B;if(e.sz)for(var z=!0,q=e.sz[0],e1=e.sz[1],X,W;z;){W=this.buildFinalText(e.t),X=0,S=0,o=W.length,O=e.tr/1e3*e.finalSize;var Z=-1;for(a=0;a<o;a+=1)B=W[a].charCodeAt(0),u=!1,W[a]===" "?Z=a:(B===13||B===3)&&(S=0,u=!0,X+=e.finalLineHeight||e.finalSize*1.2),t.chars?(_=t.getCharData(W[a],A.fStyle,A.fFamily),I=u?0:_.w*e.finalSize/100):I=t.measureText(W[a],e.f,e.finalSize),S+I>q&&W[a]!==" "?(Z===-1?o+=1:a=Z,X+=e.finalLineHeight||e.finalSize*1.2,W.splice(a,Z===a?1:0,"\r"),Z=-1,S=0):(S+=I,S+=O);X+=A.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&e1<X?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=W,o=e.finalText.length,z=!1)}S=-O,I=0;var J=0,K;for(a=0;a<o;a+=1)if(u=!1,K=e.finalText[a],B=K.charCodeAt(0),B===13||B===3?(J=0,y.push(S),b=S>b?S:b,S=-2*O,c="",u=!0,m+=1):c=K,t.chars?(_=t.getCharData(K,A.fStyle,t.getFontByName(e.f).fFamily),I=u?0:_.w*e.finalSize/100):I=t.measureText(c,e.f,e.finalSize),K===" "?J+=I+O:(S+=I+O+J,J=0),i.push({l:I,an:I,add:d,n:u,anIndexes:[],val:c,line:m,animatorJustifyOffset:0}),f==2){if(d+=I,c===""||c===" "||a===o-1){for((c===""||c===" ")&&(d-=I);T<=a;)i[T].an=d,i[T].ind=l,i[T].extra=I,T+=1;l+=1,d=0}}else if(f==3){if(d+=I,c===""||a===o-1){for(c===""&&(d-=I);T<=a;)i[T].an=d,i[T].ind=l,i[T].extra=I,T+=1;d=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,b=S>b?S:b,y.push(S),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=b,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=y;var k=n.a,V,R;v=k.length;var w,D,G=[];for(L=0;L<v;L+=1){for(V=k[L],V.a.sc&&(e.strokeColorAnim=!0),V.a.sw&&(e.strokeWidthAnim=!0),(V.a.fc||V.a.fh||V.a.fs||V.a.fb)&&(e.fillColorAnim=!0),D=0,w=V.s.b,a=0;a<o;a+=1)R=i[a],R.anIndexes[L]=D,(w==1&&R.val!==""||w==2&&R.val!==""&&R.val!==" "||w==3&&(R.n||R.val==" "||a==o-1)||w==4&&(R.n||a==o-1))&&(V.s.rn===1&&G.push(D),D+=1);n.a[L].s.totalChars=D;var Q=-1,F;if(V.s.rn===1)for(a=0;a<o;a+=1)R=i[a],Q!=R.anIndexes[L]&&(Q=R.anIndexes[L],F=G.splice(Math.floor(Math.random()*G.length),1)[0]),R.anIndexes[L]=F}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=A.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var n=this.copyData({},this.data.d.k[t].s);n=this.copyData(n,e),this.data.d.k[t].s=n,this.recalculate(t),this.setCurrentData(n),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var e=Math.max,t=Math.min,n=Math.floor;function i(o,u){this._currentTextLength=-1,this.k=!1,this.data=u,this.elem=o,this.comp=o.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(o),this.s=PropertyFactory.getProp(o,u.s||{k:0},0,0,this),"e"in u?this.e=PropertyFactory.getProp(o,u.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(o,u.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(o,u.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(o,u.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(o,u.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(o,u.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(u){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,c=0,f=1,d=1;this.ne.v>0?l=this.ne.v/100:c=-this.ne.v/100,this.xe.v>0?f=1-this.xe.v/100:d=1+this.xe.v/100;var T=BezierFactory.getBezierEasing(l,c,f,d).get,m=0,y=this.finalS,S=this.finalE,b=this.data.sh;if(b===2)S===y?m=u>=S?1:0:m=e(0,t(.5/(S-y)+(u-y)/(S-y),1)),m=T(m);else if(b===3)S===y?m=u>=S?0:1:m=1-e(0,t(.5/(S-y)+(u-y)/(S-y),1)),m=T(m);else if(b===4)S===y?m=0:(m=e(0,t(.5/(S-y)+(u-y)/(S-y),1)),m<.5?m*=2:m=1-2*(m-.5)),m=T(m);else if(b===5){if(S===y)m=0;else{var L=S-y;u=t(e(0,u+.5-y),S-y);var v=-L/2+u,A=L/2;m=Math.sqrt(1-v*v/(A*A))}m=T(m)}else b===6?(S===y?m=0:(u=t(e(0,u+.5-y),S-y),m=(1+Math.cos(Math.PI+Math.PI*2*u/(S-y)))/2),m=T(m)):(u>=n(y)&&(u-y<0?m=e(0,t(t(S,1)-(y-u),1)):m=e(0,t(S-u,1))),m=T(m));if(this.sm.v!==100){var _=this.sm.v*.01;_===0&&(_=1e-8);var I=.5-_*.5;m<I?m=0:(m=(m-I)/_,m>1&&(m=1))}return m*this.a.v},getValue:function(u){this.iterateDynamicProperties(),this._mdf=u||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,u&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,c=this.o.v/l,f=this.s.v/l+c,d=this.e.v/l+c;if(f>d){var T=f;f=d,d=T}this.finalS=f,this.finalE=d}},extendPrototype([DynamicPropertyContainer],i);function a(o,u,l){return new i(o,u)}return{getTextSelectorProp:a}})();function TextAnimatorDataProperty(e,t,n){var i={propType:!1},a=PropertyFactory.getProp,o=t.a;this.a={r:o.r?a(e,o.r,0,degToRads,n):i,rx:o.rx?a(e,o.rx,0,degToRads,n):i,ry:o.ry?a(e,o.ry,0,degToRads,n):i,sk:o.sk?a(e,o.sk,0,degToRads,n):i,sa:o.sa?a(e,o.sa,0,degToRads,n):i,s:o.s?a(e,o.s,1,.01,n):i,a:o.a?a(e,o.a,1,0,n):i,o:o.o?a(e,o.o,0,.01,n):i,p:o.p?a(e,o.p,1,0,n):i,sw:o.sw?a(e,o.sw,0,0,n):i,sc:o.sc?a(e,o.sc,1,0,n):i,fc:o.fc?a(e,o.fc,1,0,n):i,fh:o.fh?a(e,o.fh,0,0,n):i,fs:o.fs?a(e,o.fs,0,.01,n):i,fb:o.fb?a(e,o.fb,0,.01,n):i,t:o.t?a(e,o.t,0,0,n):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,n,i=PropertyFactory.getProp;for(e=0;e<t;e+=1)n=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,n,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var n=this._moreOptions.alignment.v,i=this._animatorsData,a=this._textData,o=this.mHelper,u=this._renderType,l=this.renderedLetters.length,c,f,d,T,m=e.l,y,S,b,L,v,A,_,I,C,O,B,z,q,e1,X;if(this._hasMaskedPath){if(X=this._pathData.m,!this._pathData.n||this._pathData._mdf){var W=X.v;this._pathData.r.v&&(W=W.reverse()),y={tLength:0,segments:[]},T=W._length-1;var Z;for(z=0,d=0;d<T;d+=1)Z=bez.buildBezierData(W.v[d],W.v[d+1],[W.o[d][0]-W.v[d][0],W.o[d][1]-W.v[d][1]],[W.i[d+1][0]-W.v[d+1][0],W.i[d+1][1]-W.v[d+1][1]]),y.tLength+=Z.segmentLength,y.segments.push(Z),z+=Z.segmentLength;d=T,X.v.c&&(Z=bez.buildBezierData(W.v[d],W.v[0],[W.o[d][0]-W.v[d][0],W.o[d][1]-W.v[d][1]],[W.i[0][0]-W.v[0][0],W.i[0][1]-W.v[0][1]]),y.tLength+=Z.segmentLength,y.segments.push(Z),z+=Z.segmentLength),this._pathData.pi=y}if(y=this._pathData.pi,S=this._pathData.f.v,_=0,A=1,L=0,v=!0,O=y.segments,S<0&&X.v.c)for(y.tLength<Math.abs(S)&&(S=-Math.abs(S)%y.tLength),_=O.length-1,C=O[_].points,A=C.length-1;S<0;)S+=C[A].partialLength,A-=1,A<0&&(_-=1,C=O[_].points,A=C.length-1);C=O[_].points,I=C[A-1],b=C[A],B=b.partialLength}T=m.length,c=0,f=0;var J=e.finalSize*1.2*.714,K=!0,k,V,R,w,D;w=i.length;var G,Q=-1,F,r1,o1,i1=S,p1=_,m1=A,v1=-1,g1,A1,s1,E1,f1,P1,_1,D1,T1="",d1=this.defaultPropsArray,R1;if(e.j===2||e.j===1){var C1=0,N1=0,k1=e.j===2?-.5:-1,z1=0,n1=!0;for(d=0;d<T;d+=1)if(m[d].n){for(C1&&(C1+=N1);z1<d;)m[z1].animatorJustifyOffset=C1,z1+=1;C1=0,n1=!0}else{for(R=0;R<w;R+=1)k=i[R].a,k.t.propType&&(n1&&e.j===2&&(N1+=k.t.v*k1),V=i[R].s,G=V.getMult(m[d].anIndexes[R],a.a[R].s.totalChars),G.length?C1+=k.t.v*G[0]*k1:C1+=k.t.v*G*k1);n1=!1}for(C1&&(C1+=N1);z1<d;)m[z1].animatorJustifyOffset=C1,z1+=1}for(d=0;d<T;d+=1){if(o.reset(),g1=1,m[d].n)c=0,f+=e.yOffset,f+=K?1:0,S=i1,K=!1,this._hasMaskedPath&&(_=p1,A=m1,C=O[_].points,I=C[A-1],b=C[A],B=b.partialLength,L=0),T1="",D1="",P1="",R1="",d1=this.defaultPropsArray;else{if(this._hasMaskedPath){if(v1!==m[d].line){switch(e.j){case 1:S+=z-e.lineWidths[m[d].line];break;case 2:S+=(z-e.lineWidths[m[d].line])/2;break}v1=m[d].line}Q!==m[d].ind&&(m[Q]&&(S+=m[Q].extra),S+=m[d].an/2,Q=m[d].ind),S+=n[0]*m[d].an*.005;var u1=0;for(R=0;R<w;R+=1)k=i[R].a,k.p.propType&&(V=i[R].s,G=V.getMult(m[d].anIndexes[R],a.a[R].s.totalChars),G.length?u1+=k.p.v[0]*G[0]:u1+=k.p.v[0]*G),k.a.propType&&(V=i[R].s,G=V.getMult(m[d].anIndexes[R],a.a[R].s.totalChars),G.length?u1+=k.a.v[0]*G[0]:u1+=k.a.v[0]*G);for(v=!0,this._pathData.a.v&&(S=m[0].an*.5+(z-this._pathData.f.v-m[0].an*.5-m[m.length-1].an*.5)*Q/(T-1),S+=this._pathData.f.v);v;)L+B>=S+u1||!C?(q=(S+u1-L)/b.partialLength,r1=I.point[0]+(b.point[0]-I.point[0])*q,o1=I.point[1]+(b.point[1]-I.point[1])*q,o.translate(-n[0]*m[d].an*.005,-(n[1]*J)*.01),v=!1):C&&(L+=b.partialLength,A+=1,A>=C.length&&(A=0,_+=1,O[_]?C=O[_].points:X.v.c?(A=0,_=0,C=O[_].points):(L-=b.partialLength,C=null)),C&&(I=b,b=C[A],B=b.partialLength));F=m[d].an/2-m[d].add,o.translate(-F,0,0)}else F=m[d].an/2-m[d].add,o.translate(-F,0,0),o.translate(-n[0]*m[d].an*.005,-n[1]*J*.01,0);for(R=0;R<w;R+=1)k=i[R].a,k.t.propType&&(V=i[R].s,G=V.getMult(m[d].anIndexes[R],a.a[R].s.totalChars),(c!==0||e.j!==0)&&(this._hasMaskedPath?G.length?S+=k.t.v*G[0]:S+=k.t.v*G:G.length?c+=k.t.v*G[0]:c+=k.t.v*G));for(e.strokeWidthAnim&&(s1=e.sw||0),e.strokeColorAnim&&(e.sc?A1=[e.sc[0],e.sc[1],e.sc[2]]:A1=[0,0,0]),e.fillColorAnim&&e.fc&&(E1=[e.fc[0],e.fc[1],e.fc[2]]),R=0;R<w;R+=1)k=i[R].a,k.a.propType&&(V=i[R].s,G=V.getMult(m[d].anIndexes[R],a.a[R].s.totalChars),G.length?o.translate(-k.a.v[0]*G[0],-k.a.v[1]*G[1],k.a.v[2]*G[2]):o.translate(-k.a.v[0]*G,-k.a.v[1]*G,k.a.v[2]*G));for(R=0;R<w;R+=1)k=i[R].a,k.s.propType&&(V=i[R].s,G=V.getMult(m[d].anIndexes[R],a.a[R].s.totalChars),G.length?o.scale(1+(k.s.v[0]-1)*G[0],1+(k.s.v[1]-1)*G[1],1):o.scale(1+(k.s.v[0]-1)*G,1+(k.s.v[1]-1)*G,1));for(R=0;R<w;R+=1){if(k=i[R].a,V=i[R].s,G=V.getMult(m[d].anIndexes[R],a.a[R].s.totalChars),k.sk.propType&&(G.length?o.skewFromAxis(-k.sk.v*G[0],k.sa.v*G[1]):o.skewFromAxis(-k.sk.v*G,k.sa.v*G)),k.r.propType&&(G.length?o.rotateZ(-k.r.v*G[2]):o.rotateZ(-k.r.v*G)),k.ry.propType&&(G.length?o.rotateY(k.ry.v*G[1]):o.rotateY(k.ry.v*G)),k.rx.propType&&(G.length?o.rotateX(k.rx.v*G[0]):o.rotateX(k.rx.v*G)),k.o.propType&&(G.length?g1+=(k.o.v*G[0]-g1)*G[0]:g1+=(k.o.v*G-g1)*G),e.strokeWidthAnim&&k.sw.propType&&(G.length?s1+=k.sw.v*G[0]:s1+=k.sw.v*G),e.strokeColorAnim&&k.sc.propType)for(f1=0;f1<3;f1+=1)G.length?A1[f1]+=(k.sc.v[f1]-A1[f1])*G[0]:A1[f1]+=(k.sc.v[f1]-A1[f1])*G;if(e.fillColorAnim&&e.fc){if(k.fc.propType)for(f1=0;f1<3;f1+=1)G.length?E1[f1]+=(k.fc.v[f1]-E1[f1])*G[0]:E1[f1]+=(k.fc.v[f1]-E1[f1])*G;k.fh.propType&&(G.length?E1=addHueToRGB(E1,k.fh.v*G[0]):E1=addHueToRGB(E1,k.fh.v*G)),k.fs.propType&&(G.length?E1=addSaturationToRGB(E1,k.fs.v*G[0]):E1=addSaturationToRGB(E1,k.fs.v*G)),k.fb.propType&&(G.length?E1=addBrightnessToRGB(E1,k.fb.v*G[0]):E1=addBrightnessToRGB(E1,k.fb.v*G))}}for(R=0;R<w;R+=1)k=i[R].a,k.p.propType&&(V=i[R].s,G=V.getMult(m[d].anIndexes[R],a.a[R].s.totalChars),this._hasMaskedPath?G.length?o.translate(0,k.p.v[1]*G[0],-k.p.v[2]*G[1]):o.translate(0,k.p.v[1]*G,-k.p.v[2]*G):G.length?o.translate(k.p.v[0]*G[0],k.p.v[1]*G[1],-k.p.v[2]*G[2]):o.translate(k.p.v[0]*G,k.p.v[1]*G,-k.p.v[2]*G));if(e.strokeWidthAnim&&(P1=s1<0?0:s1),e.strokeColorAnim&&(_1="rgb("+Math.round(A1[0]*255)+","+Math.round(A1[1]*255)+","+Math.round(A1[2]*255)+")"),e.fillColorAnim&&e.fc&&(D1="rgb("+Math.round(E1[0]*255)+","+Math.round(E1[1]*255)+","+Math.round(E1[2]*255)+")"),this._hasMaskedPath){if(o.translate(0,-e.ls),o.translate(0,n[1]*J*.01+f,0),this._pathData.p.v){e1=(b.point[1]-I.point[1])/(b.point[0]-I.point[0]);var b1=Math.atan(e1)*180/Math.PI;b.point[0]<I.point[0]&&(b1+=180),o.rotate(-b1*Math.PI/180)}o.translate(r1,o1,0),S-=n[0]*m[d].an*.005,m[d+1]&&Q!==m[d+1].ind&&(S+=m[d].an/2,S+=e.tr*.001*e.finalSize)}else{switch(o.translate(c,f,0),e.ps&&o.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:o.translate(m[d].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[m[d].line]),0,0);break;case 2:o.translate(m[d].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[m[d].line])/2,0,0);break}o.translate(0,-e.ls),o.translate(F,0,0),o.translate(n[0]*m[d].an*.005,n[1]*J*.01,0),c+=m[d].l+e.tr*.001*e.finalSize}u==="html"?T1=o.toCSS():u==="svg"?T1=o.to2dCSS():d1=[o.props[0],o.props[1],o.props[2],o.props[3],o.props[4],o.props[5],o.props[6],o.props[7],o.props[8],o.props[9],o.props[10],o.props[11],o.props[12],o.props[13],o.props[14],o.props[15]],R1=g1}l<=d?(D=new LetterProps(R1,P1,_1,D1,T1,d1),this.renderedLetters.push(D),l+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[d],this.lettersChangedFlag=D.update(R1,P1,_1,D1,T1,d1)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,n){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,n),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,n),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var n,i=t.length,a,o="";for(n=0;n<i;n+=1)t[n].ty==="sh"&&(a=t[n].ks.k,o+=buildShapeString(a,a.i.length,!0,e));return o},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,n,i,a){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[n])/2,0,0);break}t.translate(i,a,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,n){this.textSpans=[],this.renderType="svg",this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(e){for(var t=0,n=e.length,i=[],a="";t<n;)e[t]==="\r"||e[t]===""?(i.push(a),a=""):a+=e[t],t+=1;return i.push(a),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var n=e.shapes[0];if(n.it){var i=n.it[n.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,n=this.textProperty.currentData;this.renderedLetters=createSizedArray(n?n.l.length:0),n.fc?this.layerElement.setAttribute("fill",this.buildColor(n.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),n.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(n.sc)),this.layerElement.setAttribute("stroke-width",n.sw)),this.layerElement.setAttribute("font-size",n.finalSize);var i=this.globalData.fontManager.getFontByName(n.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var a=n.fWeight,o=n.fStyle;this.layerElement.setAttribute("font-style",o),this.layerElement.setAttribute("font-weight",a)}this.layerElement.setAttribute("aria-label",n.t);var u=n.l||[],l=!!this.globalData.fontManager.chars;t=u.length;var c,f=this.mHelper,d="",T=this.data.singleShape,m=0,y=0,S=!0,b=n.tr*.001*n.finalSize;if(T&&!l&&!n.sz){var L=this.textContainer,v="start";switch(n.j){case 1:v="end";break;case 2:v="middle";break;default:v="start";break}L.setAttribute("text-anchor",v),L.setAttribute("letter-spacing",b);var A=this.buildTextContents(n.finalText);for(t=A.length,y=n.ps?n.ps[1]+n.ascent:0,e=0;e<t;e+=1)c=this.textSpans[e].span||createNS("tspan"),c.textContent=A[e],c.setAttribute("x",0),c.setAttribute("y",y),c.style.display="inherit",L.appendChild(c),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=c,y+=n.finalLineHeight;this.layerElement.appendChild(L)}else{var _=this.textSpans.length,I;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!T||e===0){if(c=_>e?this.textSpans[e].span:createNS(l?"g":"text"),_<=e){if(c.setAttribute("stroke-linecap","butt"),c.setAttribute("stroke-linejoin","round"),c.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=c,l){var C=createNS("g");c.appendChild(C),this.textSpans[e].childSpan=C}this.textSpans[e].span=c,this.layerElement.appendChild(c)}c.style.display="inherit"}if(f.reset(),T&&(u[e].n&&(m=-b,y+=n.yOffset,y+=S?1:0,S=!1),this.applyTextPropertiesToMatrix(n,f,u[e].line,m,y),m+=u[e].l||0,m+=b),l){I=this.globalData.fontManager.getCharData(n.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily);var O;if(I.t===1)O=new SVGCompElement(I.data,this.globalData,this);else{var B=emptyShapeData;I.data&&I.data.shapes&&(B=this.buildShapeData(I.data,n.finalSize)),O=new SVGShapeElement(B,this.globalData,this)}if(this.textSpans[e].glyph){var z=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(z.layerElement),z.destroy()}this.textSpans[e].glyph=O,O._debug=!0,O.prepareFrame(0),O.renderFrame(),this.textSpans[e].childSpan.appendChild(O.layerElement),I.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else T&&c.setAttribute("transform","translate("+f.props[12]+","+f.props[13]+")"),c.textContent=u[e].val,c.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}T&&c&&c.setAttribute("d",d)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,n;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)n=this.textSpans[e].glyph,n&&(n.prepareFrame(this.comp.renderedFrame-this.data.st),n._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,n=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;t=i.length;var a,o,u;for(e=0;e<t;e+=1)i[e].n||(a=n[e],o=this.textSpans[e].span,u=this.textSpans[e].glyph,u&&u.renderFrame(),a._mdf.m&&o.setAttribute("transform",a.m),a._mdf.o&&o.setAttribute("opacity",a.o),a._mdf.sw&&o.setAttribute("stroke-width",a.sw),a._mdf.sc&&o.setAttribute("stroke",a.sc),a._mdf.fc&&o.setAttribute("fill",a.fc))}};function ISolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initFrame(),this.initTransform(e,t,n),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,0,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),this.renderConfig.focusable!==void 0&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var n=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var a=createElementID();n.setAttribute("id",a),n.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+a+")"),t.appendChild(n),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,n=this.layers.length;for(t=0;t<n;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var n=this.createItem(this.layers[e]);if(t[e]=n,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(n),n.initExpressions()),this.appendElementInPos(n,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(n);else{var a=t[i],o=a.getMatte(this.layers[e].tt);n.setMatte(o)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,n=this.elements.length;t<n;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,a=this.elements[i],o=a.getMatte(this.layers[t].tt);e.setMatte(o);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,n=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<n;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){for(var i=0,a;i<t;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(n,a):this.layerElement.appendChild(n)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initTransform(e,t,n),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}var n,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,n){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var n="";if(t&&t.title){var i=createNS("title"),a=createElementID();i.setAttribute("id",a),i.textContent=t.title,this.svgElement.appendChild(i),n+=a}if(t&&t.description){var o=createNS("desc"),u=createElementID();o.setAttribute("id",u),o.textContent=t.description,this.svgElement.appendChild(o),n+=" "+u}n&&this.svgElement.setAttribute("aria-labelledby",n);var l=createNS("defs");this.svgElement.appendChild(l);var c=createNS("g");this.svgElement.appendChild(c),this.layerElement=c,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var n,i=t.length,a="_";for(n=0;n<i;n+=1)a+=t[n].transform.key+"_";var o=this.sequences[a];return o||(o={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=o,this.sequenceList.push(o)),o},processSequence:function(t,n){for(var i=0,a=t.transforms.length,o=n;i<a&&!n;){if(t.transforms[i].transform.mProps._mdf){o=!0;break}i+=1}if(o)for(t.finalTransform.reset(),i=a-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=o},processSequences:function(t){var n,i=this.sequenceList.length;for(n=0;n<i;n+=1)this.processSequence(this.sequenceList[n],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",n=null,i=null,a=null;function o(){var c=createNS("svg"),f=createNS("filter"),d=createNS("feColorMatrix");return f.setAttribute("id",t),d.setAttribute("type","matrix"),d.setAttribute("color-interpolation-filters","sRGB"),d.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),f.appendChild(d),c.appendChild(f),c.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(c.style.display="none"),c}function u(){n||(a=o(),document.body.appendChild(a),n=createTag("canvas"),i=n.getContext("2d"),i.filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(c){return n||u(),n.width=c.width,n.height=c.height,i.filter="url(#"+t+")",n}return{load:u,get:l}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var n=createTag("canvas");return n.width=e,n.height=t,n}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(e){var t,n=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(t=0;t<n;t+=1){i=null;var a=e.data.ef[t].ty;if(registeredEffects[a]){var o=registeredEffects[a].effect;i=new o(e.effectsManager.effectElements[t],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,n=this.filters.length;for(t=0;t<n;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,n=this.filters.length,i=[];for(t=0;t<n;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var n,i=this.masksProperties.length,a=!1;for(n=0;n<i;n+=1)this.masksProperties[n].mode!=="n"&&(a=!0),this.viewData[n]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[n],3);this.hasMasks=a,a&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,n,i=this.masksProperties.length,a,o,u;for(t.beginPath(),n=0;n<i;n+=1)if(this.masksProperties[n].mode!=="n"){this.masksProperties[n].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),u=this.viewData[n].v,a=e.applyToPointArray(u.v[0][0],u.v[0][1],0),t.moveTo(a[0],a[1]);var l,c=u._length;for(l=1;l<c;l+=1)o=e.applyToTriplePoints(u.o[l-1],u.i[l],u.v[l]),t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5]);o=e.applyToTriplePoints(u.o[l-1],u.i[0],u.v[0]),t.bezierCurveTo(o[0],o[1],o[2],o[3],o[4],o[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,n=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(n);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var n=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=n}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],n=t.getContext("2d");this.clearCanvas(n),n.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],n=t.getContext("2d");this.clearCanvas(n),n.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var a=assetLoader.getLumaCanvas(this.canvasContext.canvas),o=a.getContext("2d");o.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(a,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var n=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(n),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(n),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,n,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var a=4;t.ty==="rc"?a=5:t.ty==="el"?a=6:t.ty==="sr"&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,a,e);var o,u=n.length,l;for(o=0;o<u;o+=1)n[o].closed||(l={transforms:i.addTransformSequence(n[o].transforms),trNodes:[]},this.styledShapes.push(l),n[o].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var n={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.c,1,255,this),i.c.k||(n.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(n.lc=lineCapEnum[e.lc||2],n.lj=lineJoinEnum[e.lj||2],e.lj==1&&(n.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(n.wi=i.w.v),e.d){var a=new DashProperty(this,e.d,"canvas",this);i.d=a,i.d.k||(n.da=i.d.dashArray,n.do=i.d.dashoffset[0])}}else n.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(n),i.style=n,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,n=this.stylesList.length;for(t=0;t<n;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,n=e.length;for(t=0;t<n;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,n,i,a){var o,u=e.length-1,l,c,f=[],d=[],T,m,y,S=[].concat(a);for(o=u;o>=0;o-=1){if(T=this.searchProcessedElement(e[o]),T?t[o]=n[T-1]:e[o]._shouldRender=i,e[o].ty==="fl"||e[o].ty==="st"||e[o].ty==="gf"||e[o].ty==="gs")T?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],S),f.push(t[o].style);else if(e[o].ty==="gr"){if(!T)t[o]=this.createGroupElement(e[o]);else for(c=t[o].it.length,l=0;l<c;l+=1)t[o].prevViewData[l]=t[o].it[l];this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,i,S)}else e[o].ty==="tr"?(T||(y=this.createTransformElement(e[o]),t[o]=y),S.push(t[o]),this.addTransformToStyleList(t[o])):e[o].ty==="sh"||e[o].ty==="rc"||e[o].ty==="el"||e[o].ty==="sr"?T||(t[o]=this.createShapeElement(e[o])):e[o].ty==="tm"||e[o].ty==="rd"||e[o].ty==="pb"||e[o].ty==="zz"||e[o].ty==="op"?(T?(m=t[o],m.closed=!1):(m=ShapeModifiers.getModifier(e[o].ty),m.init(this,e[o]),t[o]=m,this.shapeModifiers.push(m)),d.push(m)):e[o].ty==="rp"&&(T?(m=t[o],m.closed=!0):(m=ShapeModifiers.getModifier(e[o].ty),t[o]=m,m.init(this,e,o,t),this.shapeModifiers.push(m),i=!1),d.push(m));this.addProcessedElement(e[o],o+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),u=d.length,o=0;o<u;o+=1)d[o].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,n,i,a,o,u,l,c=this.globalData.renderer,f=this.globalData.canvasContext,d,T;for(e=0;e<t;e+=1)if(T=this.stylesList[e],d=T.type,!((d==="st"||d==="gs")&&T.wi===0||!T.data._shouldRender||T.coOp===0||this.globalData.currentGlobalAlpha===0)){for(c.save(),u=T.elements,d==="st"||d==="gs"?(c.ctxStrokeStyle(d==="st"?T.co:T.grd),c.ctxLineWidth(T.wi),c.ctxLineCap(T.lc),c.ctxLineJoin(T.lj),c.ctxMiterLimit(T.ml||0)):c.ctxFillStyle(d==="fl"?T.co:T.grd),c.ctxOpacity(T.coOp),d!=="st"&&d!=="gs"&&f.beginPath(),c.ctxTransform(T.preTransforms.finalTransform.props),i=u.length,n=0;n<i;n+=1){for((d==="st"||d==="gs")&&(f.beginPath(),T.da&&(f.setLineDash(T.da),f.lineDashOffset=T.do)),l=u[n].trNodes,o=l.length,a=0;a<o;a+=1)l[a].t==="m"?f.moveTo(l[a].p[0],l[a].p[1]):l[a].t==="c"?f.bezierCurveTo(l[a].pts[0],l[a].pts[1],l[a].pts[2],l[a].pts[3],l[a].pts[4],l[a].pts[5]):f.closePath();(d==="st"||d==="gs")&&(c.ctxStroke(),T.da&&f.setLineDash(this.dashResetter))}d!=="st"&&d!=="gs"&&this.globalData.renderer.ctxFill(T.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,t,n,i){var a,o=t.length-1,u;for(u=e,a=o;a>=0;a-=1)t[a].ty==="tr"?(u=n[a].transform,this.renderShapeTransform(e,u)):t[a].ty==="sh"||t[a].ty==="el"||t[a].ty==="rc"||t[a].ty==="sr"?this.renderPath(t[a],n[a]):t[a].ty==="fl"?this.renderFill(t[a],n[a],u):t[a].ty==="st"?this.renderStroke(t[a],n[a],u):t[a].ty==="gf"||t[a].ty==="gs"?this.renderGradientFill(t[a],n[a],u):t[a].ty==="gr"?this.renderShape(u,t[a].it,n[a].it):t[a].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n=e.trNodes,i=t.paths,a,o,u,l=i._length;n.length=0;var c=e.transforms.finalTransform;for(u=0;u<l;u+=1){var f=i.shapes[u];if(f&&f.v){for(o=f._length,a=1;a<o;a+=1)a===1&&n.push({t:"m",p:c.applyToPointArray(f.v[0][0],f.v[0][1],0)}),n.push({t:"c",pts:c.applyToTriplePoints(f.o[a-1],f.i[a],f.v[a])});o===1&&n.push({t:"m",p:c.applyToPointArray(f.v[0][0],f.v[0][1],0)}),f.c&&o&&(n.push({t:"c",pts:c.applyToTriplePoints(f.o[a-1],f.i[0],f.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var n,i=t.styledShapes.length;for(n=0;n<i;n+=1)this.renderStyledShape(t.styledShapes[n],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,n){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*n.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,n){var i=t.style,a;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var o=this.globalData.canvasContext,u=t.s.v,l=t.e.v;if(e.t===1)a=o.createLinearGradient(u[0],u[1],l[0],l[1]);else{var c=Math.sqrt(Math.pow(u[0]-l[0],2)+Math.pow(u[1]-l[1],2)),f=Math.atan2(l[1]-u[1],l[0]-u[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var T=c*d,m=Math.cos(f+t.a.v)*T+u[0],y=Math.sin(f+t.a.v)*T+u[1];a=o.createRadialGradient(m,y,0,u[0],u[1],c)}var S,b=e.g.p,L=t.g.c,v=1;for(S=0;S<b;S+=1)t.g._hasOpacity&&t.g._collapsable&&(v=t.g.o[S*2+1]),a.addColorStop(L[S*4]/100,"rgba("+L[S*4+1]+","+L[S*4+2]+","+L[S*4+3]+","+v+")");i.grd=a}i.coOp=t.o.v*n.opacity},CVShapeElement.prototype.renderStroke=function(e,t,n){var i=t.style,a=t.d;a&&(a._mdf||this._isFirstFrame)&&(i.da=a.dashArray,i.do=a.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*n.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,n){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var n=!1;e.sc&&(n=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),a,o,u=e.l,l=this.mHelper;this.stroke=n,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,o=e.finalText.length;var c,f,d,T,m,y,S,b,L,v,A=this.data.singleShape,_=e.tr*.001*e.finalSize,I=0,C=0,O=!0,B=0;for(a=0;a<o;a+=1){c=this.globalData.fontManager.getCharData(e.finalText[a],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),f=c&&c.data||{},l.reset(),A&&u[a].n&&(I=-_,C+=e.yOffset,C+=O?1:0,O=!1),m=f.shapes?f.shapes[0].it:[],S=m.length,l.scale(e.finalSize/100,e.finalSize/100),A&&this.applyTextPropertiesToMatrix(e,l,u[a].line,I,C),L=createSizedArray(S-1);var z=0;for(y=0;y<S;y+=1)if(m[y].ty==="sh"){for(T=m[y].ks.k.i.length,b=m[y].ks.k,v=[],d=1;d<T;d+=1)d===1&&v.push(l.applyToX(b.v[0][0],b.v[0][1],0),l.applyToY(b.v[0][0],b.v[0][1],0)),v.push(l.applyToX(b.o[d-1][0],b.o[d-1][1],0),l.applyToY(b.o[d-1][0],b.o[d-1][1],0),l.applyToX(b.i[d][0],b.i[d][1],0),l.applyToY(b.i[d][0],b.i[d][1],0),l.applyToX(b.v[d][0],b.v[d][1],0),l.applyToY(b.v[d][0],b.v[d][1],0));v.push(l.applyToX(b.o[d-1][0],b.o[d-1][1],0),l.applyToY(b.o[d-1][0],b.o[d-1][1],0),l.applyToX(b.i[0][0],b.i[0][1],0),l.applyToY(b.i[0][0],b.i[0][1],0),l.applyToX(b.v[0][0],b.v[0][1],0),l.applyToY(b.v[0][0],b.v[0][1],0)),L[z]=v,z+=1}A&&(I+=u[a].l,I+=_),this.textSpans[B]?this.textSpans[B].elem=L:this.textSpans[B]={elem:L},B+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,n,i,a,o,u,l=this.textAnimator.renderedLetters,c=this.textProperty.currentData.l;n=c.length;var f,d=null,T=null,m=null,y,S,b=this.globalData.renderer;for(t=0;t<n;t+=1)if(!c[t].n){if(f=l[t],f&&(b.save(),b.ctxTransform(f.p),b.ctxOpacity(f.o)),this.fill){for(f&&f.fc?d!==f.fc&&(b.ctxFillStyle(f.fc),d=f.fc):d!==this.values.fill&&(d=this.values.fill,b.ctxFillStyle(this.values.fill)),y=this.textSpans[t].elem,a=y.length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(S=y[i],u=S.length,this.globalData.canvasContext.moveTo(S[0],S[1]),o=2;o<u;o+=6)this.globalData.canvasContext.bezierCurveTo(S[o],S[o+1],S[o+2],S[o+3],S[o+4],S[o+5]);this.globalData.canvasContext.closePath(),b.ctxFill()}if(this.stroke){for(f&&f.sw?m!==f.sw&&(m=f.sw,b.ctxLineWidth(f.sw)):m!==this.values.sWidth&&(m=this.values.sWidth,b.ctxLineWidth(this.values.sWidth)),f&&f.sc?T!==f.sc&&(T=f.sc,b.ctxStrokeStyle(f.sc)):T!==this.values.stroke&&(T=this.values.stroke,b.ctxStrokeStyle(this.values.stroke)),y=this.textSpans[t].elem,a=y.length,this.globalData.canvasContext.beginPath(),i=0;i<a;i+=1)for(S=y[i],u=S.length,this.globalData.canvasContext.moveTo(S[0],S[1]),o=2;o<u;o+=6)this.globalData.canvasContext.bezierCurveTo(S[o],S[o+1],S[o+2],S[o+3],S[o+4],S[o+5]);this.globalData.canvasContext.closePath(),b.ctxStroke()}f&&this.globalData.renderer.restore()}};function CVImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),n=this.img.width,i=this.img.height,a=n/i,o=this.assetData.w/this.assetData.h,u,l,c=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&c==="xMidYMid slice"||a<o&&c!=="xMidYMid slice"?(l=i,u=l*o):(u=n,l=u/o),t.drawImage(this.img,(n-u)/2,(i-l)/2,u,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,n,i){this.canvasContext.fillRect(e,t,n,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var n="0px 0px 0px";t.transformOrigin=n,t.mozTransformOrigin=n,t.webkitTransformOrigin=n,t["-webkit-transform"]=n,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var n,i;e?(n=e,i=t,this.canvasContext.canvas.width=n,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(n=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(n=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=n*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr);var a,o;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var u=this.renderConfig.preserveAspectRatio.split(" "),l=u[1]||"meet",c=u[0]||"xMidYMid",f=c.substr(0,4),d=c.substr(4);a=n/i,o=this.transformCanvas.w/this.transformCanvas.h,o>a&&l==="meet"||o<a&&l==="slice"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=n/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),f==="xMid"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:f==="xMax"&&(o<a&&l==="meet"||o>a&&l==="slice")?this.transformCanvas.tx=(n-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,d==="YMid"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))/2*this.renderConfig.dpr:d==="YMax"&&(o>a&&l==="meet"||o<a&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(n/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=n/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var n,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].prepareFrame(e-this.layers[n].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),n=i-1;n>=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var n=new CanvasContext;this.stack[e]=n}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],n=t.transform,i,a=this.cTr.props;for(i=0;i<16;i+=1)a[i]=n[i];if(e){this.nativeContext.restore();var o=this.stack[this.cArrPos+1];this.appliedFillStyle=o.fillStyle,this.appliedStrokeStyle=o.strokeStyle,this.appliedLineWidth=o.lineWidth,this.appliedLineCap=o.lineCap,this.appliedLineJoin=o.lineJoin,this.appliedMiterLimit=o.miterLimit}this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var n=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)n.transform[i]=t[i];this.cArrPos+=1;var a=this.stack[this.cArrPos];a.opacity=n.opacity,a.fillStyle=n.fillStyle,a.strokeStyle=n.strokeStyle,a.lineWidth=n.lineWidth,a.lineCap=n.lineCap,a.lineJoin=n.lineJoin,a.miterLimit=n.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var n=t.props;this.nativeContext.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,n,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,n,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,n){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip();var t,n=this.layers.length;for(t=n-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var n=this.finalTransform.mat.toCSS();t.transform=n,t.webkitTransform=n}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(e,t,n){this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,n),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)t=e[n].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var n=e.sh.v,i=e.transformers,a,o=n._length,u,l,c,f;if(!(o<=1)){for(a=0;a<o-1;a+=1)u=this.getTransformedPoint(i,n.v[a]),l=this.getTransformedPoint(i,n.o[a]),c=this.getTransformedPoint(i,n.i[a+1]),f=this.getTransformedPoint(i,n.v[a+1]),this.checkBounds(u,l,c,f,t);n.c&&(u=this.getTransformedPoint(i,n.v[a]),l=this.getTransformedPoint(i,n.o[a]),c=this.getTransformedPoint(i,n.i[0]),f=this.getTransformedPoint(i,n.v[0]),this.checkBounds(u,l,c,f,t))}},HShapeElement.prototype.checkBounds=function(e,t,n,i,a){this.getBoundsOfCurve(e,t,n,i);var o=this.shapeBoundingBox;a.x=bmMin(o.left,a.x),a.xMax=bmMax(o.right,a.xMax),a.y=bmMin(o.top,a.y),a.yMax=bmMax(o.bottom,a.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(e,t,n,i){for(var a=[[e[0],i[0]],[e[1],i[1]]],o,u,l,c,f,d,T,m=0;m<2;++m)u=6*e[m]-12*t[m]+6*n[m],o=-3*e[m]+9*t[m]-9*n[m]+3*i[m],l=3*t[m]-3*e[m],u|=0,o|=0,l|=0,o===0&&u===0||(o===0?(c=-l/u,c>0&&c<1&&a[m].push(this.calculateF(c,e,t,n,i,m))):(f=u*u-4*l*o,f>=0&&(d=(-u+bmSqrt(f))/(2*o),d>0&&d<1&&a[m].push(this.calculateF(d,e,t,n,i,m)),T=(-u-bmSqrt(f))/(2*o),T>0&&T<1&&a[m].push(this.calculateF(T,e,t,n,i,m)))));this.shapeBoundingBox.left=bmMin.apply(null,a[0]),this.shapeBoundingBox.top=bmMin.apply(null,a[1]),this.shapeBoundingBox.right=bmMax.apply(null,a[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,a[1])},HShapeElement.prototype.calculateF=function(e,t,n,i,a,o){return bmPow(1-e,3)*t[o]+3*bmPow(1-e,2)*e*n[o]+3*(1-e)*bmPow(e,2)*i[o]+bmPow(e,3)*a[o]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,i=e.length;for(n=0;n<i;n+=1)e[n]&&e[n].sh?this.calculateShapeBoundingBox(e[n],t):e[n]&&e[n].it?this.calculateBoundingBox(e[n].it,t):e[n]&&e[n].style&&e[n].w&&this.expandStrokeBoundingBox(e[n].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var n=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var a=e.keyframes[i].s;a>n&&(n=a)}n*=e.mult}else n=e.v*e.mult;t.x-=n,t.xMax+=n,t.y-=n,t.yMax+=n},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var n=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),n=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),n=!0),n||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,a="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=a,i.webkitTransform=a}}};function HTextElement(e,t,n){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,n=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=n,t.color=n,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var a=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=a}var u,l,c=e.l;l=c.length;var f,d,T,m=this.mHelper,y,S="",b=0;for(u=0;u<l;u+=1){if(this.globalData.fontManager.chars?(this.textPaths[b]?f=this.textPaths[b]:(f=createNS("path"),f.setAttribute("stroke-linecap",lineCapEnum[1]),f.setAttribute("stroke-linejoin",lineJoinEnum[2]),f.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[b]?(d=this.textSpans[b],T=d.children[0]):(d=createTag("div"),d.style.lineHeight=0,T=createNS("svg"),T.appendChild(f),styleDiv(d)))):this.isMasked?f=this.textPaths[b]?this.textPaths[b]:createNS("text"):this.textSpans[b]?(d=this.textSpans[b],f=this.textPaths[b]):(d=createTag("span"),styleDiv(d),f=createTag("span"),styleDiv(f),d.appendChild(f)),this.globalData.fontManager.chars){var L=this.globalData.fontManager.getCharData(e.finalText[u],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),v;if(L?v=L.data:v=null,m.reset(),v&&v.shapes&&v.shapes.length&&(y=v.shapes[0].it,m.scale(e.finalSize/100,e.finalSize/100),S=this.createPathShape(m,y),f.setAttribute("d",S)),this.isMasked)this.innerElem.appendChild(f);else{if(this.innerElem.appendChild(d),v&&v.shapes){document.body.appendChild(T);var A=T.getBBox();T.setAttribute("width",A.width+2),T.setAttribute("height",A.height+2),T.setAttribute("viewBox",A.x-1+" "+(A.y-1)+" "+(A.width+2)+" "+(A.height+2));var _=T.style,I="translate("+(A.x-1)+"px,"+(A.y-1)+"px)";_.transform=I,_.webkitTransform=I,c[u].yOffset=A.y-1}else T.setAttribute("width",1),T.setAttribute("height",1);d.appendChild(T)}}else if(f.textContent=c[u].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(f);else{this.innerElem.appendChild(d);var C=f.style,O="translate3d(0,"+-e.finalSize/1.2+"px,0)";C.transform=O,C.webkitTransform=O}this.isMasked?this.textSpans[b]=f:this.textSpans[b]=d,this.textSpans[b].style.display="block",this.textPaths[b]=f,b+=1}for(;b<this.textSpans.length;)this.textSpans[b].style.display="none",b+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;if(this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var n,i,a=0,o=this.textAnimator.renderedLetters,u=this.textProperty.currentData.l;i=u.length;var l,c,f;for(n=0;n<i;n+=1)u[n].n?a+=1:(c=this.textSpans[n],f=this.textPaths[n],l=o[a],a+=1,l._mdf.m&&(this.isMasked?c.setAttribute("transform",l.m):(c.style.webkitTransform=l.m,c.style.transform=l.m)),c.style.opacity=l.o,l.sw&&l._mdf.sw&&f.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&f.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(f.setAttribute("fill",l.fc),f.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var d=this.innerElem.getBBox();this.currentBBox.w!==d.width&&(this.currentBBox.w=d.width,this.svgElement.setAttribute("width",d.width)),this.currentBBox.h!==d.height&&(this.currentBBox.h=d.height,this.svgElement.setAttribute("height",d.height));var T=1;if(this.currentBBox.w!==d.width+T*2||this.currentBBox.h!==d.height+T*2||this.currentBBox.x!==d.x-T||this.currentBBox.y!==d.y-T){this.currentBBox.w=d.width+T*2,this.currentBBox.h=d.height+T*2,this.currentBBox.x=d.x-T,this.currentBBox.y=d.y-T,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var m="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=m,e.webkitTransform=m}}}};function HCameraElement(e,t,n){this.initFrame(),this.initBaseData(e,t,n),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var a,o=e.ks.or.k.length;for(a=0;a<o;a+=1)e.ks.or.k[a].to=null,e.ks.or.k[a].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,n,i,a;for(e=0;e<t;e+=1)if(n=this.comp.threeDElements[e],n.type==="3d"){i=n.perspectiveElem.style,a=n.container.style;var o=this.pe.v+"px",u="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=o,i.webkitPerspective=o,a.transformOrigin=u,a.mozTransformOrigin=u,a.webkitTransformOrigin=u,i.transform=l,i.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,n;if(this.hierarchy)for(n=this.hierarchy.length,t=0;t<n;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(n=this.hierarchy.length-1,t=n;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var a;this.p?a=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:a=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var o=Math.sqrt(Math.pow(a[0],2)+Math.pow(a[1],2)+Math.pow(a[2],2)),u=[a[0]/o,a[1]/o,a[2]/o],l=Math.sqrt(u[2]*u[2]+u[0]*u[0]),c=Math.atan2(u[1],l),f=Math.atan2(u[0],-u[2]);this.mat.rotateY(f).rotateX(-c)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var d=!this._prevMat.equals(this.mat);if((d||this.pe._mdf)&&this.comp.threeDElements){n=this.comp.threeDElements.length;var T,m,y;for(t=0;t<n;t+=1)if(T=this.comp.threeDElements[t],T.type==="3d"){if(d){var S=this.mat.toCSS();y=T.container.style,y.transform=S,y.webkitTransform=S}this.pe._mdf&&(m=T.perspectiveElem.style,m.perspective=this.pe.v+"px",m.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,n){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,n)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var n=e.getBaseElement();if(n){var i=this.layers[t];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(n,t);else{for(var a=0,o,u,l;a<t;)this.elements[a]&&this.elements[a]!==!0&&this.elements[a].getBaseElement&&(u=this.elements[a],l=this.layers[a].ddd?this.getThreeDContainerByPos(a):u.getBaseElement(),o=l||o),a+=1;o?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(n,o):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(n)}else this.addTo3dContainer(n,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,n=this.threeDElements.length;t<n;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n=createTag("div"),i,a;styleDiv(n);var o=createTag("div");if(styleDiv(o),t==="3d"){i=n.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var u="50% 50%";i.webkitTransformOrigin=u,i.mozTransformOrigin=u,i.transformOrigin=u,a=o.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";a.transform=l,a.webkitTransform=l}n.appendChild(o);var c={container:o,perspectiveElem:n,startPos:e,endPos:e,type:t};return this.threeDElements.push(c),c},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,n,i="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",n=this.createThreeDContainer(e,"3d")),n.endPos=Math.max(n.endPos,e)):(i!=="2d"&&(i="2d",n=this.createThreeDContainer(e,"2d")),n.endPos=Math.max(n.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,i=this.threeDElements.length;n<i;){if(t<=this.threeDElements[n].endPos){for(var a=this.threeDElements[n].startPos,o;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(o=this.elements[a].getBaseElement()),a+=1;o?this.threeDElements[n].container.insertBefore(e,o):this.threeDElements[n].container.appendChild(e);break}n+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),n=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),n.appendChild(t),i.overflow="hidden";var a=createNS("svg");a.setAttribute("width","1"),a.setAttribute("height","1"),styleDiv(a),this.resizerElem.appendChild(a);var o=createNS("defs");a.appendChild(o),this.data=e,this.setupGlobalData(e,a),this.globalData.defs=o,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,n=e/t,i=this.globalData.compSize.w/this.globalData.compSize.h,a,o,u,l;i>n?(a=e/this.globalData.compSize.w,o=e/this.globalData.compSize.w,u=0,l=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(a=t/this.globalData.compSize.h,o=t/this.globalData.compSize.h,u=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,l=0);var c=this.resizerElem.style;c.webkitTransform="matrix3d("+a+",0,0,0,0,"+o+",0,0,0,0,1,0,"+u+","+l+",0,1)",c.transform=c.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e=this.globalData.compSize.w,t=this.globalData.compSize.h,n,i=this.threeDElements.length;for(n=0;n<i;n+=1){var a=this.threeDElements[n].perspectiveElem.style;a.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",a.perspective=a.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,n=e.length,i=createTag("div");for(t=0;t<n;t+=1)if(e[t].xt){var a=this.createComp(e[t],i,this.globalData.comp,null);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}};function HCompElement(e,t,n){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,n),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(e,t){for(var n=0,i;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=(function(){return function(e){function t(n){for(var i=0,a=e.layers.length;i<a;){if(e.layers[i].nm===n||e.layers[i].ind===n)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}})();function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(e)}function seedRandom(e,t){var n=this,i=256,a=6,o=52,u="random",l=t.pow(i,a),c=t.pow(2,o),f=c*2,d=i-1,T;function m(_,I,C){var O=[];I=I===!0?{entropy:!0}:I||{};var B=L(b(I.entropy?[_,A(e)]:_===null?v():_,3),O),z=new y(O),q=function(){for(var X=z.g(a),W=l,Z=0;X<c;)X=(X+Z)*i,W*=i,Z=z.g(1);for(;X>=f;)X/=2,W/=2,Z>>>=1;return(X+Z)/W};return q.int32=function(){return z.g(4)|0},q.quick=function(){return z.g(4)/4294967296},q.double=q,L(A(z.S),e),(I.pass||C||function(e1,X,W,Z){return Z&&(Z.S&&S(Z,z),e1.state=function(){return S(z,{})}),W?(t[u]=e1,X):e1})(q,B,"global"in I?I.global:this==t,I.state)}t["seed"+u]=m;function y(_){var I,C=_.length,O=this,B=0,z=O.i=O.j=0,q=O.S=[];for(C||(_=[C++]);B<i;)q[B]=B++;for(B=0;B<i;B++)q[B]=q[z=d&z+_[B%C]+(I=q[B])],q[z]=I;O.g=function(e1){for(var X,W=0,Z=O.i,J=O.j,K=O.S;e1--;)X=K[Z=d&Z+1],W=W*i+K[d&(K[Z]=K[J=d&J+X])+(K[J]=X)];return O.i=Z,O.j=J,W}}function S(_,I){return I.i=_.i,I.j=_.j,I.S=_.S.slice(),I}function b(_,I){var C=[],O=_typeof$2(_),B;if(I&&O=="object")for(B in _)try{C.push(b(_[B],I-1))}catch{}return C.length?C:O=="string"?_:_+"\0"}function L(_,I){for(var C=_+"",O,B=0;B<C.length;)I[d&B]=d&(O^=I[d&B]*19)+C.charCodeAt(B++);return A(I)}function v(){try{var _=new Uint8Array(i);return(n.crypto||n.msCrypto).getRandomValues(_),A(_)}catch{var I=n.navigator,C=I&&I.plugins;return[+new Date,n,C,n.screen,A(e)]}}function A(_){return String.fromCharCode.apply(0,_)}L(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(e)}var ExpressionManager=(function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var n,i=e.length,a=[];for(n=0;n<i;n+=1)a[n]=-e[n];return a}return e.propType?e.v:-e}var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var n=_typeof$1(e),i=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(i,t)||n==="string"||i==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var a=0,o=e.length,u=t.length,l=[];a<o||a<u;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof t[a]=="number"||t[a]instanceof Number)?l[a]=e[a]+t[a]:l[a]=t[a]===void 0?e[a]:e[a]||t[a],a+=1;return l}return 0}var add=sum;function sub(e,t){var n=_typeof$1(e),i=_typeof$1(t);if(isNumerable(n,e)&&isNumerable(i,t))return n==="string"&&(e=parseInt(e,10)),i==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(n,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var a=0,o=e.length,u=t.length,l=[];a<o||a<u;)(typeof e[a]=="number"||e[a]instanceof Number)&&(typeof t[a]=="number"||t[a]instanceof Number)?l[a]=e[a]-t[a]:l[a]=t[a]===void 0?e[a]:e[a]||t[a],a+=1;return l}return 0}function mul(e,t){var n=_typeof$1(e),i=_typeof$1(t),a;if(isNumerable(n,e)&&isNumerable(i,t))return e*t;var o,u;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(u=e.length,a=createTypedArray("float32",u),o=0;o<u;o+=1)a[o]=e[o]*t;return a}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(u=t.length,a=createTypedArray("float32",u),o=0;o<u;o+=1)a[o]=e*t[o];return a}return 0}function div(e,t){var n=_typeof$1(e),i=_typeof$1(t),a;if(isNumerable(n,e)&&isNumerable(i,t))return e/t;var o,u;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(u=e.length,a=createTypedArray("float32",u),o=0;o<u;o+=1)a[o]=e[o]/t;return a}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(u=t.length,a=createTypedArray("float32",u),o=0;o<u;o+=1)a[o]=e/t[o];return a}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,n){if(t>n){var i=n;n=t,t=i}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var n,i=Math.min(e.length,t.length),a=0;for(n=0;n<i;n+=1)a+=Math.pow(t[n]-e[n],2);return Math.sqrt(a)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],n=e[1],i=e[2],a=Math.max(t,n,i),o=Math.min(t,n,i),u,l,c=(a+o)/2;if(a===o)u=0,l=0;else{var f=a-o;switch(l=c>.5?f/(2-a-o):f/(a+o),a){case t:u=(n-i)/f+(n<i?6:0);break;case n:u=(i-t)/f+2;break;case i:u=(t-n)/f+4;break}u/=6}return[u,l,c,e[3]]}function hue2rgb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t=e[0],n=e[1],i=e[2],a,o,u;if(n===0)a=i,u=i,o=i;else{var l=i<.5?i*(1+n):i+n-i*n,c=2*i-l;a=hue2rgb(c,l,t+1/3),o=hue2rgb(c,l,t),u=hue2rgb(c,l,t-1/3)}return[a,o,u,e[3]]}function linear(e,t,n,i,a){if((i===void 0||a===void 0)&&(i=t,a=n,t=0,n=1),n<t){var o=n;n=t,t=o}if(e<=t)return i;if(e>=n)return a;var u=n===t?0:(e-t)/(n-t);if(!i.length)return i+(a-i)*u;var l,c=i.length,f=createTypedArray("float32",c);for(l=0;l<c;l+=1)f[l]=i[l]+(a[l]-i[l])*u;return f}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var n,i=t.length;e||(e=createTypedArray("float32",i));var a=createTypedArray("float32",i),o=BMMath.random();for(n=0;n<i;n+=1)a[n]=e[n]+o*(t[n]-e[n]);return a}e===void 0&&(e=0);var u=BMMath.random();return e+u*(t-e)}function createPath(e,t,n,i){var a,o=e.length,u=shapePool.newElement();u.setPathData(!!i,o);var l=[0,0],c,f;for(a=0;a<o;a+=1)c=t&&t[a]?t[a]:l,f=n&&n[a]?n[a]:l,u.setTripleAt(e[a][0],e[a][1],f[0]+e[a][0],f[1]+e[a][1],c[0]+e[a][0],c[1]+e[a][1],a,!0);return u}function initiateExpression(elem,data,property){function noOp(e){return e}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=val.indexOf("random")!==-1,elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty._name=elem.data.nm,thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||this.data.hd!==!0,wiggle=(function e(t,n){var i,a,o=this.pv.length?this.pv.length:1,u=createTypedArray("float32",o);t=5;var l=Math.floor(time*t);for(i=0,a=0;i<l;){for(a=0;a<o;a+=1)u[a]+=-n+n*2*BMMath.random();i+=1}var c=time*t,f=c-Math.floor(c),d=createTypedArray("float32",o);if(o>1){for(a=0;a<o;a+=1)d[a]=this.pv[a]+u[a]+(-n+n*2*BMMath.random())*f;return d}return this.pv+u[0]+(-n+n*2*BMMath.random())*f}).bind(this);thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var n=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(n[0],Math.sqrt(n[1]*n[1]+n[2]*n[2]))/degToRads,a=-Math.atan2(n[1],n[2])/degToRads;return[a,i,0]}function easeOut(e,t,n,i,a){return applyEase(easeOutBez,e,t,n,i,a)}function easeIn(e,t,n,i,a){return applyEase(easeInBez,e,t,n,i,a)}function ease(e,t,n,i,a){return applyEase(easeInOutBez,e,t,n,i,a)}function applyEase(e,t,n,i,a,o){a===void 0?(a=n,o=i):t=(t-n)/(i-n),t>1?t=1:t<0&&(t=0);var u=e(t);if($bm_isInstanceOfArray(a)){var l,c=a.length,f=createTypedArray("float32",c);for(l=0;l<c;l+=1)f[l]=(o[l]-a[l])*u+a[l];return f}return(o-a)*u+a}function nearestKey(e){var t,n=data.k.length,i,a;if(!data.k.length||typeof data.k[0]=="number")i=0,a=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,a=data.k[0].t;else{for(t=0;t<n-1;t+=1)if(e===data.k[t].t){i=t+1,a=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,a=data.k[t+1].t):(i=t+1,a=data.k[t].t);break}i===-1&&(i=t+1,a=data.k[t].t)}var o={};return o.index=i,o.time=a/elem.comp.globalData.frameRate,o}function key(e){var t,n,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var a=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=a.length,n=0;n<i;n+=1)t[n]=a[n],t.value[n]=a[n];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),elemType===4&&!content&&(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),hasParent=!!(elem.hierarchy&&elem.hierarchy.length),hasParent&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob})(),Expressions=(function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(n){var i=0,a=[];function o(){i+=1}function u(){i-=1,i===0&&c()}function l(f){a.indexOf(f)===-1&&a.push(f)}function c(){var f,d=a.length;for(f=0;f<d;f+=1)a[f].release();a.length=0}n.renderer.compInterface=CompExpressionInterface(n.renderer),n.renderer.globalData.projectInterface.registerComposition(n.renderer),n.renderer.globalData.pushExpression=o,n.renderer.globalData.popExpression=u,n.renderer.globalData.registerExpressionProperty=l}return e})(),MaskManagerInterface=(function(){function e(n,i){this._mask=n,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(i){var a=createSizedArray(i.viewData.length),o,u=i.viewData.length;for(o=0;o<u;o+=1)a[o]=new e(i.viewData[o],i.masksProperties[o]);var l=function(f){for(o=0;o<u;){if(i.masksProperties[o].nm===f)return a[o];o+=1}return null};return l};return t})(),ExpressionPropertyInterface=(function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function n(u,l,c){Object.defineProperty(u,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),u.numKeys=l.keyframes?l.keyframes.length:0,u.key=function(f){if(!u.numKeys)return 0;var d="";"s"in l.keyframes[f-1]?d=l.keyframes[f-1].s:"e"in l.keyframes[f-2]?d=l.keyframes[f-2].e:d=l.keyframes[f-2].s;var T=c==="unidimensional"?new Number(d):Object.assign({},d);return T.time=l.keyframes[f-1].t/l.elem.comp.globalData.frameRate,T.value=c==="unidimensional"?d[0]:d,T},u.valueAtTime=l.getValueAtTime,u.speedAtTime=l.getSpeedAtTime,u.velocityAtTime=l.getVelocityAtTime,u.propertyGroup=l.propertyGroup}function i(u){(!u||!("pv"in u))&&(u=e);var l=1/u.mult,c=u.pv*l,f=new Number(c);return f.value=c,n(f,u,"unidimensional"),function(){return u.k&&u.getValue(),c=u.v*l,f.value!==c&&(f=new Number(c),f.value=c,f[0]=c,n(f,u,"unidimensional")),f}}function a(u){(!u||!("pv"in u))&&(u=t);var l=1/u.mult,c=u.data&&u.data.l||u.pv.length,f=createTypedArray("float32",c),d=createTypedArray("float32",c);return f.value=d,n(f,u,"multidimensional"),function(){u.k&&u.getValue();for(var T=0;T<c;T+=1)d[T]=u.v[T]*l,f[T]=d[T];return f}}function o(){return e}return function(u){return u?u.propType==="unidimensional"?i(u):a(u):o}})(),TransformExpressionInterface=(function(){return function(e){function t(u){switch(u){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var n,i,a,o;return e.p?o=ExpressionPropertyInterface(e.p):(n=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(a=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?o():[n(),i(),a?a():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}})(),LayerExpressionInterface=(function(){function e(f){var d=new Matrix;if(f!==void 0){var T=this._elem.finalTransform.mProp.getValueAtTime(f);T.clone(d)}else{var m=this._elem.finalTransform.mProp;m.applyToMatrix(d)}return d}function t(f,d){var T=this.getMatrix(d);return T.props[12]=0,T.props[13]=0,T.props[14]=0,this.applyPoint(T,f)}function n(f,d){var T=this.getMatrix(d);return this.applyPoint(T,f)}function i(f,d){var T=this.getMatrix(d);return T.props[12]=0,T.props[13]=0,T.props[14]=0,this.invertPoint(T,f)}function a(f,d){var T=this.getMatrix(d);return this.invertPoint(T,f)}function o(f,d){if(this._elem.hierarchy&&this._elem.hierarchy.length){var T,m=this._elem.hierarchy.length;for(T=0;T<m;T+=1)this._elem.hierarchy[T].finalTransform.mProp.applyToMatrix(f)}return f.applyToPointArray(d[0],d[1],d[2]||0)}function u(f,d){if(this._elem.hierarchy&&this._elem.hierarchy.length){var T,m=this._elem.hierarchy.length;for(T=0;T<m;T+=1)this._elem.hierarchy[T].finalTransform.mProp.applyToMatrix(f)}return f.inversePoint(d)}function l(f){var d=new Matrix;if(d.reset(),this._elem.finalTransform.mProp.applyToMatrix(d),this._elem.hierarchy&&this._elem.hierarchy.length){var T,m=this._elem.hierarchy.length;for(T=0;T<m;T+=1)this._elem.hierarchy[T].finalTransform.mProp.applyToMatrix(d);return d.inversePoint(f)}return d.inversePoint(f)}function c(){return[1,1,1,1]}return function(f){var d;function T(b){y.mask=new MaskManagerInterface(b,f)}function m(b){y.effect=b}function y(b){switch(b){case"ADBE Root Vectors Group":case"Contents":case 2:return y.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return d;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return y.effect;case"ADBE Text Properties":return y.textInterface;default:return null}}y.getMatrix=e,y.invertPoint=u,y.applyPoint=o,y.toWorld=n,y.toWorldVec=t,y.fromWorld=a,y.fromWorldVec=i,y.toComp=n,y.fromComp=l,y.sampleImage=c,y.sourceRectAtTime=f.sourceRectAtTime.bind(f),y._elem=f,d=TransformExpressionInterface(f.finalTransform.mProp);var S=getDescriptor(d,"anchorPoint");return Object.defineProperties(y,{hasParent:{get:function(){return f.hierarchy.length}},parent:{get:function(){return f.hierarchy[0].layerInterface}},rotation:getDescriptor(d,"rotation"),scale:getDescriptor(d,"scale"),position:getDescriptor(d,"position"),opacity:getDescriptor(d,"opacity"),anchorPoint:S,anchor_point:S,transform:{get:function(){return d}},active:{get:function(){return f.isInRange}}}),y.startTime=f.data.st,y.index=f.data.ind,y.source=f.data.refId,y.height=f.data.ty===0?f.data.h:100,y.width=f.data.ty===0?f.data.w:100,y.inPoint=f.data.ip/f.comp.globalData.frameRate,y.outPoint=f.data.op/f.comp.globalData.frameRate,y._name=f.data.nm,y.registerMaskInterface=T,y.registerEffectsInterface=m,y}})(),propertyGroupFactory=(function(){return function(e,t){return function(n){return n=n===void 0?1:n,n<=0?e:t(n-1)}}})(),PropertyInterface=(function(){return function(e,t){var n={_name:e};function i(a){return a=a===void 0?1:a,a<=0?n:t(a-1)}return i}})(),EffectsExpressionInterface=(function(){var e={createEffectsInterface:t};function t(a,o){if(a.effectsManager){var u=[],l=a.data.ef,c,f=a.effectsManager.effectElements.length;for(c=0;c<f;c+=1)u.push(n(l[c],a.effectsManager.effectElements[c],o,a));var d=a.data.ef||[],T=function(y){for(c=0,f=d.length;c<f;){if(y===d[c].nm||y===d[c].mn||y===d[c].ix)return u[c];c+=1}return null};return Object.defineProperty(T,"numProperties",{get:function(){return d.length}}),T}return null}function n(a,o,u,l){function c(y){for(var S=a.ef,b=0,L=S.length;b<L;){if(y===S[b].nm||y===S[b].mn||y===S[b].ix)return S[b].ty===5?d[b]:d[b]();b+=1}throw new Error}var f=propertyGroupFactory(c,u),d=[],T,m=a.ef.length;for(T=0;T<m;T+=1)a.ef[T].ty===5?d.push(n(a.ef[T],o.effectElements[T],o.effectElements[T].propertyGroup,l)):d.push(i(o.effectElements[T],a.ef[T].ty,l,f));return a.mn==="ADBE Color Control"&&Object.defineProperty(c,"color",{get:function(){return d[0]()}}),Object.defineProperties(c,{numProperties:{get:function(){return a.np}},_name:{value:a.nm},propertyGroup:{value:f}}),c.enabled=a.en!==0,c.active=c.enabled,c}function i(a,o,u,l){var c=ExpressionPropertyInterface(a.p);function f(){return o===10?u.comp.compInterface(a.p.v):c()}return a.p.setGroupProperty&&a.p.setGroupProperty(PropertyInterface("",l)),f}return e})(),ShapePathInterface=(function(){return function(t,n,i){var a=n.sh;function o(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?o.path:null}var u=propertyGroupFactory(o,i);return a.setGroupProperty(PropertyInterface("Path",u)),Object.defineProperties(o,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),o}})(),ShapeExpressionInterface=(function(){function e(S,b,L){var v=[],A,_=S?S.length:0;for(A=0;A<_;A+=1)S[A].ty==="gr"?v.push(n(S[A],b[A],L)):S[A].ty==="fl"?v.push(i(S[A],b[A],L)):S[A].ty==="st"?v.push(u(S[A],b[A],L)):S[A].ty==="tm"?v.push(l(S[A],b[A],L)):S[A].ty==="tr"||(S[A].ty==="el"?v.push(f(S[A],b[A],L)):S[A].ty==="sr"?v.push(d(S[A],b[A],L)):S[A].ty==="sh"?v.push(ShapePathInterface(S[A],b[A],L)):S[A].ty==="rc"?v.push(T(S[A],b[A],L)):S[A].ty==="rd"?v.push(m(S[A],b[A],L)):S[A].ty==="rp"?v.push(y(S[A],b[A],L)):S[A].ty==="gf"?v.push(a(S[A],b[A],L)):v.push(o(S[A],b[A])));return v}function t(S,b,L){var v,A=function(C){for(var O=0,B=v.length;O<B;){if(v[O]._name===C||v[O].mn===C||v[O].propertyIndex===C||v[O].ix===C||v[O].ind===C)return v[O];O+=1}return typeof C=="number"?v[C-1]:null};A.propertyGroup=propertyGroupFactory(A,L),v=e(S.it,b.it,A.propertyGroup),A.numProperties=v.length;var _=c(S.it[S.it.length-1],b.it[b.it.length-1],A.propertyGroup);return A.transform=_,A.propertyIndex=S.cix,A._name=S.nm,A}function n(S,b,L){var v=function(C){switch(C){case"ADBE Vectors Group":case"Contents":case 2:return v.content;default:return v.transform}};v.propertyGroup=propertyGroupFactory(v,L);var A=t(S,b,v.propertyGroup),_=c(S.it[S.it.length-1],b.it[b.it.length-1],v.propertyGroup);return v.content=A,v.transform=_,Object.defineProperty(v,"_name",{get:function(){return S.nm}}),v.numProperties=S.np,v.propertyIndex=S.ix,v.nm=S.nm,v.mn=S.mn,v}function i(S,b,L){function v(A){return A==="Color"||A==="color"?v.color:A==="Opacity"||A==="opacity"?v.opacity:null}return Object.defineProperties(v,{color:{get:ExpressionPropertyInterface(b.c)},opacity:{get:ExpressionPropertyInterface(b.o)},_name:{value:S.nm},mn:{value:S.mn}}),b.c.setGroupProperty(PropertyInterface("Color",L)),b.o.setGroupProperty(PropertyInterface("Opacity",L)),v}function a(S,b,L){function v(A){return A==="Start Point"||A==="start point"?v.startPoint:A==="End Point"||A==="end point"?v.endPoint:A==="Opacity"||A==="opacity"?v.opacity:null}return Object.defineProperties(v,{startPoint:{get:ExpressionPropertyInterface(b.s)},endPoint:{get:ExpressionPropertyInterface(b.e)},opacity:{get:ExpressionPropertyInterface(b.o)},type:{get:function(){return"a"}},_name:{value:S.nm},mn:{value:S.mn}}),b.s.setGroupProperty(PropertyInterface("Start Point",L)),b.e.setGroupProperty(PropertyInterface("End Point",L)),b.o.setGroupProperty(PropertyInterface("Opacity",L)),v}function o(){function S(){return null}return S}function u(S,b,L){var v=propertyGroupFactory(B,L),A=propertyGroupFactory(O,v);function _(z){Object.defineProperty(O,S.d[z].nm,{get:ExpressionPropertyInterface(b.d.dataProps[z].p)})}var I,C=S.d?S.d.length:0,O={};for(I=0;I<C;I+=1)_(I),b.d.dataProps[I].p.setGroupProperty(A);function B(z){return z==="Color"||z==="color"?B.color:z==="Opacity"||z==="opacity"?B.opacity:z==="Stroke Width"||z==="stroke width"?B.strokeWidth:null}return Object.defineProperties(B,{color:{get:ExpressionPropertyInterface(b.c)},opacity:{get:ExpressionPropertyInterface(b.o)},strokeWidth:{get:ExpressionPropertyInterface(b.w)},dash:{get:function(){return O}},_name:{value:S.nm},mn:{value:S.mn}}),b.c.setGroupProperty(PropertyInterface("Color",v)),b.o.setGroupProperty(PropertyInterface("Opacity",v)),b.w.setGroupProperty(PropertyInterface("Stroke Width",v)),B}function l(S,b,L){function v(_){return _===S.e.ix||_==="End"||_==="end"?v.end:_===S.s.ix?v.start:_===S.o.ix?v.offset:null}var A=propertyGroupFactory(v,L);return v.propertyIndex=S.ix,b.s.setGroupProperty(PropertyInterface("Start",A)),b.e.setGroupProperty(PropertyInterface("End",A)),b.o.setGroupProperty(PropertyInterface("Offset",A)),v.propertyIndex=S.ix,v.propertyGroup=L,Object.defineProperties(v,{start:{get:ExpressionPropertyInterface(b.s)},end:{get:ExpressionPropertyInterface(b.e)},offset:{get:ExpressionPropertyInterface(b.o)},_name:{value:S.nm}}),v.mn=S.mn,v}function c(S,b,L){function v(_){return S.a.ix===_||_==="Anchor Point"?v.anchorPoint:S.o.ix===_||_==="Opacity"?v.opacity:S.p.ix===_||_==="Position"?v.position:S.r.ix===_||_==="Rotation"||_==="ADBE Vector Rotation"?v.rotation:S.s.ix===_||_==="Scale"?v.scale:S.sk&&S.sk.ix===_||_==="Skew"?v.skew:S.sa&&S.sa.ix===_||_==="Skew Axis"?v.skewAxis:null}var A=propertyGroupFactory(v,L);return b.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",A)),b.transform.mProps.p.setGroupProperty(PropertyInterface("Position",A)),b.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",A)),b.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",A)),b.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",A)),b.transform.mProps.sk&&(b.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",A)),b.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",A))),b.transform.op.setGroupProperty(PropertyInterface("Opacity",A)),Object.defineProperties(v,{opacity:{get:ExpressionPropertyInterface(b.transform.mProps.o)},position:{get:ExpressionPropertyInterface(b.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(b.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(b.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(b.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(b.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(b.transform.mProps.sa)},_name:{value:S.nm}}),v.ty="tr",v.mn=S.mn,v.propertyGroup=L,v}function f(S,b,L){function v(I){return S.p.ix===I?v.position:S.s.ix===I?v.size:null}var A=propertyGroupFactory(v,L);v.propertyIndex=S.ix;var _=b.sh.ty==="tm"?b.sh.prop:b.sh;return _.s.setGroupProperty(PropertyInterface("Size",A)),_.p.setGroupProperty(PropertyInterface("Position",A)),Object.defineProperties(v,{size:{get:ExpressionPropertyInterface(_.s)},position:{get:ExpressionPropertyInterface(_.p)},_name:{value:S.nm}}),v.mn=S.mn,v}function d(S,b,L){function v(I){return S.p.ix===I?v.position:S.r.ix===I?v.rotation:S.pt.ix===I?v.points:S.or.ix===I||I==="ADBE Vector Star Outer Radius"?v.outerRadius:S.os.ix===I?v.outerRoundness:S.ir&&(S.ir.ix===I||I==="ADBE Vector Star Inner Radius")?v.innerRadius:S.is&&S.is.ix===I?v.innerRoundness:null}var A=propertyGroupFactory(v,L),_=b.sh.ty==="tm"?b.sh.prop:b.sh;return v.propertyIndex=S.ix,_.or.setGroupProperty(PropertyInterface("Outer Radius",A)),_.os.setGroupProperty(PropertyInterface("Outer Roundness",A)),_.pt.setGroupProperty(PropertyInterface("Points",A)),_.p.setGroupProperty(PropertyInterface("Position",A)),_.r.setGroupProperty(PropertyInterface("Rotation",A)),S.ir&&(_.ir.setGroupProperty(PropertyInterface("Inner Radius",A)),_.is.setGroupProperty(PropertyInterface("Inner Roundness",A))),Object.defineProperties(v,{position:{get:ExpressionPropertyInterface(_.p)},rotation:{get:ExpressionPropertyInterface(_.r)},points:{get:ExpressionPropertyInterface(_.pt)},outerRadius:{get:ExpressionPropertyInterface(_.or)},outerRoundness:{get:ExpressionPropertyInterface(_.os)},innerRadius:{get:ExpressionPropertyInterface(_.ir)},innerRoundness:{get:ExpressionPropertyInterface(_.is)},_name:{value:S.nm}}),v.mn=S.mn,v}function T(S,b,L){function v(I){return S.p.ix===I?v.position:S.r.ix===I?v.roundness:S.s.ix===I||I==="Size"||I==="ADBE Vector Rect Size"?v.size:null}var A=propertyGroupFactory(v,L),_=b.sh.ty==="tm"?b.sh.prop:b.sh;return v.propertyIndex=S.ix,_.p.setGroupProperty(PropertyInterface("Position",A)),_.s.setGroupProperty(PropertyInterface("Size",A)),_.r.setGroupProperty(PropertyInterface("Rotation",A)),Object.defineProperties(v,{position:{get:ExpressionPropertyInterface(_.p)},roundness:{get:ExpressionPropertyInterface(_.r)},size:{get:ExpressionPropertyInterface(_.s)},_name:{value:S.nm}}),v.mn=S.mn,v}function m(S,b,L){function v(I){return S.r.ix===I||I==="Round Corners 1"?v.radius:null}var A=propertyGroupFactory(v,L),_=b;return v.propertyIndex=S.ix,_.rd.setGroupProperty(PropertyInterface("Radius",A)),Object.defineProperties(v,{radius:{get:ExpressionPropertyInterface(_.rd)},_name:{value:S.nm}}),v.mn=S.mn,v}function y(S,b,L){function v(I){return S.c.ix===I||I==="Copies"?v.copies:S.o.ix===I||I==="Offset"?v.offset:null}var A=propertyGroupFactory(v,L),_=b;return v.propertyIndex=S.ix,_.c.setGroupProperty(PropertyInterface("Copies",A)),_.o.setGroupProperty(PropertyInterface("Offset",A)),Object.defineProperties(v,{copies:{get:ExpressionPropertyInterface(_.c)},offset:{get:ExpressionPropertyInterface(_.o)},_name:{value:S.nm}}),v.mn=S.mn,v}return function(S,b,L){var v;function A(I){if(typeof I=="number")return I=I===void 0?1:I,I===0?L:v[I-1];for(var C=0,O=v.length;C<O;){if(v[C]._name===I)return v[C];C+=1}return null}function _(){return L}return A.propertyGroup=propertyGroupFactory(A,_),v=e(S,b,A.propertyGroup),A.numProperties=v.length,A._name="Contents",A}})(),TextExpressionInterface=(function(){return function(e){var t;function n(i){switch(i){case"ADBE Text Document":return n.sourceText;default:return null}}return Object.defineProperty(n,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return(!t||a!==t.value)&&(t=new String(a),t.value=a||new String(a),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),n}})();function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(e)}var FootageInterface=(function(){var e=function(i){var a="",o=i.getFootageData();function u(){return a="",o=i.getFootageData(),l}function l(c){if(o[c])return a=c,o=o[c],_typeof(o)==="object"?l:o;var f=c.indexOf(a);if(f!==-1){var d=parseInt(c.substr(f+a.length),10);return o=o[d],_typeof(o)==="object"?l:o}return""}return u},t=function(i){function a(o){return o==="Outline"?a.outlineInterface():null}return a._name="Outline",a.outlineInterface=e(i),a};return function(n){function i(a){return a==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=t(n),i}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=(function(){function e(u,l,c){l.x&&(c.k=!0,c.x=!0,c.initiateExpression=ExpressionManager.initiateExpression,c.effectsSequence.push(c.initiateExpression(u,l,c).bind(c)))}function t(u){return u*=this.elem.globalData.frameRate,u-=this.offsetTime,u!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<u?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(u,this._cachingAtTime),this._cachingAtTime.lastFrame=u),this._cachingAtTime.value}function n(u){var l=-.01,c=this.getValueAtTime(u),f=this.getValueAtTime(u+l),d=0;if(c.length){var T;for(T=0;T<c.length;T+=1)d+=Math.pow(f[T]-c[T],2);d=Math.sqrt(d)*100}else d=0;return d}function i(u){if(this.vel!==void 0)return this.vel;var l=-.001,c=this.getValueAtTime(u),f=this.getValueAtTime(u+l),d;if(c.length){d=createTypedArray("float32",c.length);var T;for(T=0;T<c.length;T+=1)d[T]=(f[T]-c[T])/l}else d=(f-c)/l;return d}function a(){return this.pv}function o(u){this.propertyGroup=u}return{searchExpressions:e,getSpeedAtTime:n,getVelocityAtTime:i,getValueAtTime:t,getStaticValueAtTime:a,setGroupProperty:o}})();function addPropertyDecorator(){function e(m,y,S){if(!this.k||!this.keyframes)return this.pv;m=m?m.toLowerCase():"";var b=this.comp.renderedFrame,L=this.keyframes,v=L[L.length-1].t;if(b<=v)return this.pv;var A,_;S?(y?A=Math.abs(v-this.elem.comp.globalData.frameRate*y):A=Math.max(0,v-this.elem.data.ip),_=v-A):((!y||y>L.length-1)&&(y=L.length-1),_=L[L.length-1-y].t,A=v-_);var I,C,O;if(m==="pingpong"){var B=Math.floor((b-_)/A);if(B%2!==0)return this.getValueAtTime((A-(b-_)%A+_)/this.comp.globalData.frameRate,0)}else if(m==="offset"){var z=this.getValueAtTime(_/this.comp.globalData.frameRate,0),q=this.getValueAtTime(v/this.comp.globalData.frameRate,0),e1=this.getValueAtTime(((b-_)%A+_)/this.comp.globalData.frameRate,0),X=Math.floor((b-_)/A);if(this.pv.length){for(O=new Array(z.length),C=O.length,I=0;I<C;I+=1)O[I]=(q[I]-z[I])*X+e1[I];return O}return(q-z)*X+e1}else if(m==="continue"){var W=this.getValueAtTime(v/this.comp.globalData.frameRate,0),Z=this.getValueAtTime((v-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(O=new Array(W.length),C=O.length,I=0;I<C;I+=1)O[I]=W[I]+(W[I]-Z[I])*((b-v)/this.comp.globalData.frameRate)/5e-4;return O}return W+(W-Z)*((b-v)/.001)}return this.getValueAtTime(((b-_)%A+_)/this.comp.globalData.frameRate,0)}function t(m,y,S){if(!this.k)return this.pv;m=m?m.toLowerCase():"";var b=this.comp.renderedFrame,L=this.keyframes,v=L[0].t;if(b>=v)return this.pv;var A,_;S?(y?A=Math.abs(this.elem.comp.globalData.frameRate*y):A=Math.max(0,this.elem.data.op-v),_=v+A):((!y||y>L.length-1)&&(y=L.length-1),_=L[y].t,A=_-v);var I,C,O;if(m==="pingpong"){var B=Math.floor((v-b)/A);if(B%2===0)return this.getValueAtTime(((v-b)%A+v)/this.comp.globalData.frameRate,0)}else if(m==="offset"){var z=this.getValueAtTime(v/this.comp.globalData.frameRate,0),q=this.getValueAtTime(_/this.comp.globalData.frameRate,0),e1=this.getValueAtTime((A-(v-b)%A+v)/this.comp.globalData.frameRate,0),X=Math.floor((v-b)/A)+1;if(this.pv.length){for(O=new Array(z.length),C=O.length,I=0;I<C;I+=1)O[I]=e1[I]-(q[I]-z[I])*X;return O}return e1-(q-z)*X}else if(m==="continue"){var W=this.getValueAtTime(v/this.comp.globalData.frameRate,0),Z=this.getValueAtTime((v+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(O=new Array(W.length),C=O.length,I=0;I<C;I+=1)O[I]=W[I]+(W[I]-Z[I])*(v-b)/.001;return O}return W+(W-Z)*(v-b)/.001}return this.getValueAtTime((A-((v-b)%A+v))/this.comp.globalData.frameRate,0)}function n(m,y){if(!this.k)return this.pv;if(m=(m||.4)*.5,y=Math.floor(y||5),y<=1)return this.pv;var S=this.comp.renderedFrame/this.comp.globalData.frameRate,b=S-m,L=S+m,v=y>1?(L-b)/(y-1):1,A=0,_=0,I;this.pv.length?I=createTypedArray("float32",this.pv.length):I=0;for(var C;A<y;){if(C=this.getValueAtTime(b+A*v),this.pv.length)for(_=0;_<this.pv.length;_+=1)I[_]+=C[_];else I+=C;A+=1}if(this.pv.length)for(_=0;_<this.pv.length;_+=1)I[_]/=y;else I/=y;return I}function i(m){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var y=this._transformCachingAtTime.v;if(y.cloneFromProps(this.pre.props),this.appliedTransformations<1){var S=this.a.getValueAtTime(m);y.translate(-S[0]*this.a.mult,-S[1]*this.a.mult,S[2]*this.a.mult)}if(this.appliedTransformations<2){var b=this.s.getValueAtTime(m);y.scale(b[0]*this.s.mult,b[1]*this.s.mult,b[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var L=this.sk.getValueAtTime(m),v=this.sa.getValueAtTime(m);y.skewFromAxis(-L*this.sk.mult,v*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var A=this.r.getValueAtTime(m);y.rotate(-A*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var _=this.rz.getValueAtTime(m),I=this.ry.getValueAtTime(m),C=this.rx.getValueAtTime(m),O=this.or.getValueAtTime(m);y.rotateZ(-_*this.rz.mult).rotateY(I*this.ry.mult).rotateX(C*this.rx.mult).rotateZ(-O[2]*this.or.mult).rotateY(O[1]*this.or.mult).rotateX(O[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var B=this.px.getValueAtTime(m),z=this.py.getValueAtTime(m);if(this.data.p.z){var q=this.pz.getValueAtTime(m);y.translate(B*this.px.mult,z*this.py.mult,-q*this.pz.mult)}else y.translate(B*this.px.mult,z*this.py.mult,0)}else{var e1=this.p.getValueAtTime(m);y.translate(e1[0]*this.p.mult,e1[1]*this.p.mult,-e1[2]*this.p.mult)}return y}function a(){return this.v.clone(new Matrix)}var o=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(m,y,S){var b=o(m,y,S);return b.dynamicProperties.length?b.getValueAtTime=i.bind(b):b.getValueAtTime=a.bind(b),b.setGroupProperty=expressionHelpers.setGroupProperty,b};var u=PropertyFactory.getProp;PropertyFactory.getProp=function(m,y,S,b,L){var v=u(m,y,S,b,L);v.kf?v.getValueAtTime=expressionHelpers.getValueAtTime.bind(v):v.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(v),v.setGroupProperty=expressionHelpers.setGroupProperty,v.loopOut=e,v.loopIn=t,v.smooth=n,v.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(v),v.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(v),v.numKeys=y.a===1?y.k.length:0,v.propertyIndex=y.ix;var A=0;return S!==0&&(A=createTypedArray("float32",y.a===1?y.k[0].s.length:y.k.length)),v._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:A},expressionHelpers.searchExpressions(m,y,v),v.k&&L.addDynamicProperty(v),v};function l(m){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),m*=this.elem.globalData.frameRate,m-=this.offsetTime,m!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<m?this._caching.lastIndex:0,this._cachingAtTime.lastTime=m,this.interpolateShape(m,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var c=ShapePropertyFactory.getConstructorFunction(),f=ShapePropertyFactory.getKeyframedConstructorFunction();function d(){}d.prototype={vertices:function(y,S){this.k&&this.getValue();var b=this.v;S!==void 0&&(b=this.getValueAtTime(S,0));var L,v=b._length,A=b[y],_=b.v,I=createSizedArray(v);for(L=0;L<v;L+=1)y==="i"||y==="o"?I[L]=[A[L][0]-_[L][0],A[L][1]-_[L][1]]:I[L]=[A[L][0],A[L][1]];return I},points:function(y){return this.vertices("v",y)},inTangents:function(y){return this.vertices("i",y)},outTangents:function(y){return this.vertices("o",y)},isClosed:function(){return this.v.c},pointOnPath:function(y,S){var b=this.v;S!==void 0&&(b=this.getValueAtTime(S,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(b));for(var L=this._segmentsLength,v=L.lengths,A=L.totalLength*y,_=0,I=v.length,C=0,O;_<I;){if(C+v[_].addedLength>A){var B=_,z=b.c&&_===I-1?0:_+1,q=(A-C)/v[_].addedLength;O=bez.getPointInSegment(b.v[B],b.v[z],b.o[B],b.i[z],q,v[_]);break}else C+=v[_].addedLength;_+=1}return O||(O=b.c?[b.v[0][0],b.v[0][1]]:[b.v[b._length-1][0],b.v[b._length-1][1]]),O},vectorOnPath:function(y,S,b){y==1?y=this.v.c:y==0&&(y=.999);var L=this.pointOnPath(y,S),v=this.pointOnPath(y+.001,S),A=v[0]-L[0],_=v[1]-L[1],I=Math.sqrt(Math.pow(A,2)+Math.pow(_,2));if(I===0)return[0,0];var C=b==="tangent"?[A/I,_/I]:[-_/I,A/I];return C},tangentOnPath:function(y,S){return this.vectorOnPath(y,S,"tangent")},normalOnPath:function(y,S){return this.vectorOnPath(y,S,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([d],c),extendPrototype([d],f),f.prototype.getValueAtTime=l,f.prototype.initiateExpression=ExpressionManager.initiateExpression;var T=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(m,y,S,b,L){var v=T(m,y,S,b,L);return v.propertyIndex=y.ix,v.lock=!1,S===3?expressionHelpers.searchExpressions(m,y.pt,v):S===4&&expressionHelpers.searchExpressions(m,y.ks,v),v.k&&m.addDynamicProperty(v),v}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,n){var i=this.calculateExpression(n);if(t.t!==i){var a={};return this.copyData(a,t),a.t=i.toString(),a.__complete=!1,a}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),n=this.searchExpressions();return this.kf=t||n,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,n){var i=createNS("feMerge");i.setAttribute("result",t);var a,o;for(o=0;o<n.length;o+=1)a=createNS("feMergeNode"),a.setAttribute("in",n[o]),i.appendChild(a),i.appendChild(a);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,n,i,a){this.filterManager=t;var o=createNS("feColorMatrix");o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","linearRGB"),o.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=o,o.setAttribute("result",i+"_tint_1"),e.appendChild(o),o=createNS("feColorMatrix"),o.setAttribute("type","matrix"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),o.setAttribute("result",i+"_tint_2"),e.appendChild(o),this.matrixFilter=o;var u=this.createMergeNode(i,[a,i+"_tint_1",i+"_tint_2"]);e.appendChild(u)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",n[0]-t[0]+" 0 0 0 "+t[0]+" "+(n[1]-t[1])+" 0 0 0 "+t[1]+" "+(n[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,n,i){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",i),e.appendChild(a),this.matrixFilter=a}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,n=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+n+" 0")}};function SVGStrokeEffect(e,t,n){this.initialized=!1,this.filterManager=t,this.elem=n,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,n,i,a;for(this.filterManager.effectElements[1].p.v===1?(a=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,a=i+1),n=createNS("g"),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),n.setAttribute("stroke-dashoffset",1),i;i<a;i+=1)t=createNS("path"),n.appendChild(t),this.paths.push({p:t,m:i});if(this.filterManager.effectElements[10].p.v===3){var o=createNS("mask"),u=createElementID();o.setAttribute("id",u),o.setAttribute("mask-type","alpha"),o.appendChild(n),this.elem.globalData.defs.appendChild(o);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+u+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=o,n.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)for(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(n),this.elem.layerElement.removeAttribute("mask"),n.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=n},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,n=this.paths.length,i,a;for(t=0;t<n;t+=1)if(this.paths[t].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[t].m],a=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&a.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var o;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var u=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,c=a.getTotalLength();o="0 0 0 "+c*u+" ";var f=c*(l-u),d=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,T=Math.floor(f/d),m;for(m=0;m<T;m+=1)o+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";o+="0 "+c*10+" 0 0"}else o="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",o)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(e||this.filterManager.effectElements[3].p._mdf)){var y=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(y[0]*255)+","+bmFloor(y[1]*255)+","+bmFloor(y[2]*255)+")")}};function SVGTritoneFilter(e,t,n,i){this.filterManager=t;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),e.appendChild(a);var o=createNS("feComponentTransfer");o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),this.matrixFilter=o;var u=createNS("feFuncR");u.setAttribute("type","table"),o.appendChild(u),this.feFuncR=u;var l=createNS("feFuncG");l.setAttribute("type","table"),o.appendChild(l),this.feFuncG=l;var c=createNS("feFuncB");c.setAttribute("type","table"),o.appendChild(c),this.feFuncB=c,e.appendChild(o)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,n=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,a=i[0]+" "+n[0]+" "+t[0],o=i[1]+" "+n[1]+" "+t[1],u=i[2]+" "+n[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",a),this.feFuncG.setAttribute("tableValues",o),this.feFuncB.setAttribute("tableValues",u)}};function SVGProLevelsFilter(e,t,n,i){this.filterManager=t;var a=this.filterManager.effectElements,o=createNS("feComponentTransfer");(a[10].p.k||a[10].p.v!==0||a[11].p.k||a[11].p.v!==1||a[12].p.k||a[12].p.v!==1||a[13].p.k||a[13].p.v!==0||a[14].p.k||a[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",o)),(a[17].p.k||a[17].p.v!==0||a[18].p.k||a[18].p.v!==1||a[19].p.k||a[19].p.v!==1||a[20].p.k||a[20].p.v!==0||a[21].p.k||a[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",o)),(a[24].p.k||a[24].p.v!==0||a[25].p.k||a[25].p.v!==1||a[26].p.k||a[26].p.v!==1||a[27].p.k||a[27].p.v!==0||a[28].p.k||a[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",o)),(a[31].p.k||a[31].p.v!==0||a[32].p.k||a[32].p.v!==1||a[33].p.k||a[33].p.v!==1||a[34].p.k||a[34].p.v!==0||a[35].p.k||a[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",o)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(o.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(o)),(a[3].p.k||a[3].p.v!==0||a[4].p.k||a[4].p.v!==1||a[5].p.k||a[5].p.v!==1||a[6].p.k||a[6].p.v!==0||a[7].p.k||a[7].p.v!==1)&&(o=createNS("feComponentTransfer"),o.setAttribute("color-interpolation-filters","sRGB"),o.setAttribute("result",i),e.appendChild(o),this.feFuncRComposed=this.createFeFunc("feFuncR",o),this.feFuncGComposed=this.createFeFunc("feFuncG",o),this.feFuncBComposed=this.createFeFunc("feFuncB",o))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var n=createNS(e);return n.setAttribute("type","table"),t.appendChild(n),n},SVGProLevelsFilter.prototype.getTableValue=function(e,t,n,i,a){for(var o=0,u=256,l,c=Math.min(e,t),f=Math.max(e,t),d=Array.call(null,{length:u}),T,m=0,y=a-i,S=t-e;o<=256;)l=o/256,l<=c?T=S<0?a:i:l>=f?T=S<0?i:a:T=i+y*Math.pow((l-e)/S,1/n),d[m]=T,m+=1,o+=256/(u-1);return d.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}};function SVGDropShadowEffect(e,t,n,i,a){var o=t.container.globalData.renderConfig.filterSize,u=t.data.fs||o;e.setAttribute("x",u.x||o.x),e.setAttribute("y",u.y||o.y),e.setAttribute("width",u.width||o.width),e.setAttribute("height",u.height||o.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",i+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var c=createNS("feOffset");c.setAttribute("dx","25"),c.setAttribute("dy","0"),c.setAttribute("in",i+"_drop_shadow_1"),c.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=c,e.appendChild(c);var f=createNS("feFlood");f.setAttribute("flood-color","#00ff00"),f.setAttribute("flood-opacity","1"),f.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=f,e.appendChild(f);var d=createNS("feComposite");d.setAttribute("in",i+"_drop_shadow_3"),d.setAttribute("in2",i+"_drop_shadow_2"),d.setAttribute("operator","in"),d.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(d);var T=this.createMergeNode(i,[i+"_drop_shadow_4",a]);e.appendChild(T)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,a=n*Math.cos(i),o=n*Math.sin(i);this.feOffset.setAttribute("dx",a),this.feOffset.setAttribute("dy",o)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t<n;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var n=e.layerElement.parentNode;if(n){for(var i=n.children,a=0,o=i.length;a<o&&i[a]!==e.layerElement;)a+=1;var u;a<=o-2&&(u=i[a+1]);var l=createNS("use");l.setAttribute("href","#"+t),u?n.insertBefore(l,u):n.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var n=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var a=e.globalData.defs;a.appendChild(i);var o=createNS("symbol");o.setAttribute("id",n),this.replaceInParent(t,n),o.appendChild(t.layerElement),a.appendChild(o);var u=createNS("use");u.setAttribute("href","#"+n),i.appendChild(u),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,n=0,i=t.length;n<i;)t[n]&&t[n].data.ind===e&&this.setElementAsMask(this.elem,t[n]),n+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,n,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var a=createNS("feGaussianBlur");a.setAttribute("result",i),e.appendChild(a),this.feGaussianBlur=a}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,n=this.filterManager.effectElements[0].p.v*t,i=this.filterManager.effectElements[1].p.v,a=i==3?0:n,o=i==2?0:n;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+o);var u=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",u)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,n=t[0].p.v,i=t[1].p.v,a=t[2].p.v===1,o=t[3].p.v,u=a?o:t[4].p.v,l=t[5].p.v,c=t[6].p.v,f=t[7].p.v;this.matrix.reset(),this.matrix.translate(-n[0],-n[1],n[2]),this.matrix.scale(u*.01,o*.01,1),this.matrix.rotate(-f*degToRads),this.matrix.skewFromAxis(-l*degToRads,(c+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie}))})(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie();const lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,t,n){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _iterableToArrayLimit(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,a,o,u,l=[],c=!0,f=!1;try{if(o=(n=n.call(e)).next,t!==0)for(;!(c=(i=o.call(n)).done)&&(l.push(i.value),l.length!==t);c=!0);}catch(d){f=!0,a=d}finally{try{if(!c&&n.return!=null&&(u=n.return(),Object(u)!==u))return}finally{if(f)throw a}}return l}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
45
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,i)}return n}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(i){_defineProperty(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function _objectWithoutProperties(e,t){if(e==null)return{};var n,i,a=_objectWithoutPropertiesLoose$1(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function _objectWithoutPropertiesLoose$1(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;n[i]=e[i]}return n}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toPrimitive(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t=="symbol"?t:t+""}function _unsupportedIterableToArray(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function e(t,n){var i=t.animationData,a=t.loop,o=t.autoplay,u=t.initialSegment,l=t.onComplete,c=t.onLoopComplete,f=t.onEnterFrame,d=t.onSegmentStart,T=t.onConfigReady,m=t.onDataReady,y=t.onDataFailed,S=t.onLoadedImages,b=t.onDOMLoaded,L=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var v=_objectWithoutProperties(t,_excluded$1),A=React.useState(!1),_=_slicedToArray(A,2),I=_[0],C=_[1],O=React.useRef(),B=React.useRef(null),z=function(){var Q;(Q=O.current)===null||Q===void 0||Q.play()},q=function(){var Q;(Q=O.current)===null||Q===void 0||Q.stop()},e1=function(){var Q;(Q=O.current)===null||Q===void 0||Q.pause()},X=function(Q){var F;(F=O.current)===null||F===void 0||F.setSpeed(Q)},W=function(Q,F){var r1;(r1=O.current)===null||r1===void 0||r1.goToAndPlay(Q,F)},Z=function(Q,F){var r1;(r1=O.current)===null||r1===void 0||r1.goToAndStop(Q,F)},J=function(Q){var F;(F=O.current)===null||F===void 0||F.setDirection(Q)},K=function(Q,F){var r1;(r1=O.current)===null||r1===void 0||r1.playSegments(Q,F)},k=function(Q){var F;(F=O.current)===null||F===void 0||F.setSubframe(Q)},V=function(Q){var F;return(F=O.current)===null||F===void 0?void 0:F.getDuration(Q)},R=function(){var Q;(Q=O.current)===null||Q===void 0||Q.destroy(),O.current=void 0},w=function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},F;if(B.current){(F=O.current)===null||F===void 0||F.destroy();var r1=_objectSpread2(_objectSpread2(_objectSpread2({},t),Q),{},{container:B.current});return O.current=lottie.loadAnimation(r1),C(!!O.current),function(){var o1;(o1=O.current)===null||o1===void 0||o1.destroy(),O.current=void 0}}};React.useEffect(function(){var G=w();return function(){return G?.()}},[i,a]),React.useEffect(function(){O.current&&(O.current.autoplay=!!o)},[o]),React.useEffect(function(){if(O.current){if(!u){O.current.resetSegments(!0);return}!Array.isArray(u)||!u.length||((O.current.currentRawFrame<u[0]||O.current.currentRawFrame>u[1])&&(O.current.currentRawFrame=u[0]),O.current.setSegment(u[0],u[1]))}},[u]),React.useEffect(function(){var G=[{name:"complete",handler:l},{name:"loopComplete",handler:c},{name:"enterFrame",handler:f},{name:"segmentStart",handler:d},{name:"config_ready",handler:T},{name:"data_ready",handler:m},{name:"data_failed",handler:y},{name:"loaded_images",handler:S},{name:"DOMLoaded",handler:b},{name:"destroy",handler:L}],Q=G.filter(function(r1){return r1.handler!=null});if(Q.length){var F=Q.map(function(r1){var o1;return(o1=O.current)===null||o1===void 0||o1.addEventListener(r1.name,r1.handler),function(){var i1;(i1=O.current)===null||i1===void 0||i1.removeEventListener(r1.name,r1.handler)}});return function(){F.forEach(function(r1){return r1()})}}},[l,c,f,d,T,m,y,S,b,L]);var D=React.createElement("div",_objectSpread2({style:n,ref:B},v));return{View:D,play:z,stop:q,pause:e1,setSpeed:X,goToAndStop:Z,goToAndPlay:W,setDirection:J,playSegments:K,setSubframe:k,getDuration:V,destroy:R,animationContainerRef:B,animationLoaded:I,animationItem:O.current}};function getContainerVisibility(e){var t=e.getBoundingClientRect(),n=t.top,i=t.height,a=window.innerHeight-n,o=window.innerHeight+i;return a/o}function getContainerCursorPosition(e,t,n){var i=e.getBoundingClientRect(),a=i.top,o=i.left,u=i.width,l=i.height,c=(t-o)/u,f=(n-a)/l;return{x:c,y:f}}var useInitInteractivity=function e(t){var n=t.wrapperRef,i=t.animationItem,a=t.mode,o=t.actions;React.useEffect(function(){var u=n.current;if(!(!u||!i||!o.length)){i.stop();var l=function(){var d=null,T=function(){var y=getContainerVisibility(u),S=o.find(function(L){var v=L.visibility;return v&&y>=v[0]&&y<=v[1]});if(S){if(S.type==="seek"&&S.visibility&&S.frames.length===2){var b=S.frames[0]+Math.ceil((y-S.visibility[0])/(S.visibility[1]-S.visibility[0])*S.frames[1]);//! goToAndStop must be relative to the start of the current segment
46
- i.goToAndStop(b-i.firstFrame-1,!0)}S.type==="loop"&&(d===null||d!==S.frames||i.isPaused)&&(i.playSegments(S.frames,!0),d=S.frames),S.type==="play"&&i.isPaused&&(i.resetSegments(!0),i.play()),S.type==="stop"&&i.goToAndStop(S.frames[0]-i.firstFrame-1,!0)}};return document.addEventListener("scroll",T),function(){document.removeEventListener("scroll",T)}},c=function(){var d=function(S,b){var L=S,v=b;if(L!==-1&&v!==-1){var A=getContainerCursorPosition(u,L,v);L=A.x,v=A.y}var _=o.find(function(O){var B=O.position;return B&&Array.isArray(B.x)&&Array.isArray(B.y)?L>=B.x[0]&&L<=B.x[1]&&v>=B.y[0]&&v<=B.y[1]:B&&!Number.isNaN(B.x)&&!Number.isNaN(B.y)?L===B.x&&v===B.y:!1});if(_){if(_.type==="seek"&&_.position&&Array.isArray(_.position.x)&&Array.isArray(_.position.y)&&_.frames.length===2){var I=(L-_.position.x[0])/(_.position.x[1]-_.position.x[0]),C=(v-_.position.y[0])/(_.position.y[1]-_.position.y[0]);i.playSegments(_.frames,!0),i.goToAndStop(Math.ceil((I+C)/2*(_.frames[1]-_.frames[0])),!0)}_.type==="loop"&&i.playSegments(_.frames,!0),_.type==="play"&&(i.isPaused&&i.resetSegments(!1),i.playSegments(_.frames)),_.type==="stop"&&i.goToAndStop(_.frames[0],!0)}},T=function(S){d(S.clientX,S.clientY)},m=function(){d(-1,-1)};return u.addEventListener("mousemove",T),u.addEventListener("mouseout",m),function(){u.removeEventListener("mousemove",T),u.removeEventListener("mouseout",m)}};switch(a){case"scroll":return l();case"cursor":return c()}}},[a,i])},useLottieInteractivity=function e(t){var n=t.actions,i=t.mode,a=t.lottieObj,o=a.animationItem,u=a.View,l=a.animationContainerRef;return useInitInteractivity({actions:n,animationItem:o,mode:i,wrapperRef:l}),u},_excluded=["style","interactivity"],Lottie=function e(t){var n,i,a,o=t.style,u=t.interactivity,l=_objectWithoutProperties(t,_excluded),c=useLottie(l,o),f=c.View,d=c.play,T=c.stop,m=c.pause,y=c.setSpeed,S=c.goToAndStop,b=c.goToAndPlay,L=c.setDirection,v=c.playSegments,A=c.setSubframe,_=c.getDuration,I=c.destroy,C=c.animationContainerRef,O=c.animationLoaded,B=c.animationItem;return React.useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:d,stop:T,pause:m,setSpeed:y,goToAndPlay:b,goToAndStop:S,setDirection:L,playSegments:v,setSubframe:A,getDuration:_,destroy:I,animationContainerRef:C,animationLoaded:O,animationItem:B})},[(n=t.lottieRef)===null||n===void 0?void 0:n.current]),useLottieInteractivity({lottieObj:{View:f,play:d,stop:T,pause:m,setSpeed:y,goToAndStop:S,goToAndPlay:b,setDirection:L,playSegments:v,setSubframe:A,getDuration:_,destroy:I,animationContainerRef:C,animationLoaded:O,animationItem:B},actions:(i=u?.actions)!==null&&i!==void 0?i:[],mode:(a=u?.mode)!==null&&a!==void 0?a:"scroll"})},x3=Object.defineProperty,U3=(e,t,n)=>t in e?x3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,p=(e,t,n)=>U3(e,typeof t!="symbol"?t+"":t,n),$3=class{requestAnimationFrame(e){return requestAnimationFrame(e)}cancelAnimationFrame(e){cancelAnimationFrame(e)}},z3=class{constructor(){p(this,"_lastHandleId",0),p(this,"_lastImmediate",null)}requestAnimationFrame(e){return this._lastHandleId>=Number.MAX_SAFE_INTEGER&&(this._lastHandleId=0),this._lastHandleId+=1,this._lastImmediate=setImmediate(()=>{e(Date.now())}),this._lastHandleId}cancelAnimationFrame(e){this._lastImmediate&&clearImmediate(this._lastImmediate)}},B3=class{constructor(){p(this,"_strategy"),this._strategy=typeof requestAnimationFrame=="function"?new $3:new z3}requestAnimationFrame(e){return this._strategy.requestAnimationFrame(e)}cancelAnimationFrame(e){this._strategy.cancelAnimationFrame(e)}},E=typeof window<"u"&&typeof window.document<"u",d2=new Uint8Array([80,75,3,4]),H3=["v","ip","op","layers","fr","w","h"],G2="0.50.0",V2="@lottiefiles/dotlottie-web",j3=.75,N3=4,G3=(()=>{var e=typeof document<"u"?document.currentScript?.src:void 0;return function(t={}){var n,i=t,a,o,u=new Promise((P,M)=>{a=P,o=M}),l=Object.assign({},i),c="./this.program",f="",d;typeof document<"u"&&document.currentScript&&(f=document.currentScript.src),e&&(f=e),f.startsWith("blob:")?f="":f=f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1),d=async P=>{if(P=await fetch(P,{credentials:"same-origin"}),P.ok)return P.arrayBuffer();throw Error(P.status+" : "+P.url)};var T=i.printErr||console.error.bind(console);Object.assign(i,l),l=null,i.thisProgram&&(c=i.thisProgram);var m=i.wasmBinary,y,S=!1,b,L,v,A,_,I,C,O,B;function z(){var P=y.buffer;i.HEAP8=L=new Int8Array(P),i.HEAP16=A=new Int16Array(P),i.HEAPU8=v=new Uint8Array(P),i.HEAPU16=_=new Uint16Array(P),i.HEAP32=I=new Int32Array(P),i.HEAPU32=C=new Uint32Array(P),i.HEAPF32=O=new Float32Array(P),i.HEAPF64=B=new Float64Array(P)}var q=[],e1=[],X=[];function W(){var P=i.preRun.shift();q.unshift(P)}var Z=0,J=null;function K(P){throw i.onAbort?.(P),P="Aborted("+P+")",T(P),S=!0,P=new WebAssembly.RuntimeError(P+". Build with -sASSERTIONS for more info."),o(P),P}var k=P=>P.startsWith("data:application/octet-stream;base64,"),V;async function R(P){if(!m)try{var M=await d(P);return new Uint8Array(M)}catch{}if(P==V&&m)P=new Uint8Array(m);else throw"both async and sync fetching of the wasm failed";return P}async function w(P,M){try{var H=await R(P);return await WebAssembly.instantiate(H,M)}catch(U){T(`failed to asynchronously prepare wasm: ${U}`),K(U)}}async function D(P){var M=V;if(!m&&typeof WebAssembly.instantiateStreaming=="function"&&!k(M)&&typeof fetch=="function")try{var H=fetch(M,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(H,P)}catch(U){T(`wasm streaming compile failed: ${U}`),T("falling back to ArrayBuffer instantiation")}return w(M,P)}class G{constructor(M){p(this,"name","ExitStatus"),this.message=`Program terminated with exit(${M})`,this.status=M}}var Q=P=>{for(;0<P.length;)P.shift()(i)},F=i.noExitRuntime||!0,r1=typeof TextDecoder<"u"?new TextDecoder:void 0,o1=(P=0,M=NaN)=>{var H=v,U=P+M;for(M=P;H[M]&&!(M>=U);)++M;if(16<M-P&&H.buffer&&r1)return r1.decode(H.subarray(P,M));for(U="";P<M;){var Y=H[P++];if(Y&128){var t1=H[P++]&63;if((Y&224)==192)U+=String.fromCharCode((Y&31)<<6|t1);else{var h1=H[P++]&63;Y=(Y&240)==224?(Y&15)<<12|t1<<6|h1:(Y&7)<<18|t1<<12|h1<<6|H[P++]&63,65536>Y?U+=String.fromCharCode(Y):(Y-=65536,U+=String.fromCharCode(55296|Y>>10,56320|Y&1023))}}else U+=String.fromCharCode(Y)}return U};class i1{constructor(M){this.Ca=M-24}}var p1=0,m1=(P,M,H)=>{var U=v;if(0<H){H=M+H-1;for(var Y=0;Y<P.length;++Y){var t1=P.charCodeAt(Y);if(55296<=t1&&57343>=t1){var h1=P.charCodeAt(++Y);t1=65536+((t1&1023)<<10)|h1&1023}if(127>=t1){if(M>=H)break;U[M++]=t1}else{if(2047>=t1){if(M+1>=H)break;U[M++]=192|t1>>6}else{if(65535>=t1){if(M+2>=H)break;U[M++]=224|t1>>12}else{if(M+3>=H)break;U[M++]=240|t1>>18,U[M++]=128|t1>>12&63}U[M++]=128|t1>>6&63}U[M++]=128|t1&63}}U[M]=0}},v1={},g1=P=>{for(;P.length;){var M=P.pop();P.pop()(M)}};function A1(P){return this.fromWireType(C[P>>2])}var s1={},E1={},f1={},P1,_1=(P,M,H)=>{function U(a1){if(a1=H(a1),a1.length!==P.length)throw new P1("Mismatched type converter count");for(var y1=0;y1<P.length;++y1)C1(P[y1],a1[y1])}P.forEach(a1=>f1[a1]=M);var Y=Array(M.length),t1=[],h1=0;M.forEach((a1,y1)=>{E1.hasOwnProperty(a1)?Y[y1]=E1[a1]:(t1.push(a1),s1.hasOwnProperty(a1)||(s1[a1]=[]),s1[a1].push(()=>{Y[y1]=E1[a1],++h1,h1===t1.length&&U(Y)}))}),t1.length===0&&U(Y)},D1,T1=P=>{for(var M="";v[P];)M+=D1[v[P++]];return M},d1;function R1(P,M,H={}){var U=M.name;if(!P)throw new d1(`type "${U}" must have a positive integer typeid pointer`);if(E1.hasOwnProperty(P)){if(H.hb)return;throw new d1(`Cannot register type '${U}' twice`)}E1[P]=M,delete f1[P],s1.hasOwnProperty(P)&&(M=s1[P],delete s1[P],M.forEach(Y=>Y()))}function C1(P,M,H={}){return R1(P,M,H)}var N1=P=>{throw new d1(P.Aa.Da.Ba.name+" instance already deleted")},k1=!1,z1=()=>{},n1=(P,M,H)=>M===H?P:H.Ga===void 0?null:(P=n1(P,M,H.Ga),P===null?null:H.$a(P)),u1={},b1={},x1=(P,M)=>{if(M===void 0)throw new d1("ptr should not be undefined");for(;P.Ga;)M=P.Qa(M),P=P.Ga;return b1[M]},M1=(P,M)=>{if(!M.Da||!M.Ca)throw new P1("makeClassHandle requires ptr and ptrType");if(!!M.Ha!=!!M.Fa)throw new P1("Both smartPtrType and smartPtr must be specified");return M.count={value:1},$1(Object.create(P,{Aa:{value:M,writable:!0}}))},$1=P=>typeof FinalizationRegistry>"u"?($1=M=>M,P):(k1=new FinalizationRegistry(M=>{M=M.Aa,--M.count.value,M.count.value===0&&(M.Fa?M.Ha.Ka(M.Fa):M.Da.Ba.Ka(M.Ca))}),$1=M=>{var H=M.Aa;return H.Fa&&k1.register(M,{Aa:H},M),M},z1=M=>{k1.unregister(M)},$1(P));function Q1(){}var j1=(P,M)=>Object.defineProperty(M,"name",{value:P}),oe=(P,M,H)=>{if(P[M].Ea===void 0){var U=P[M];P[M]=function(...Y){if(!P[M].Ea.hasOwnProperty(Y.length))throw new d1(`Function '${H}' called with an invalid number of arguments (${Y.length}) - expects one of (${P[M].Ea})!`);return P[M].Ea[Y.length].apply(this,Y)},P[M].Ea=[],P[M].Ea[U.Na]=U}},ie=(P,M,H)=>{if(i.hasOwnProperty(P)){if(H===void 0||i[P].Ea!==void 0&&i[P].Ea[H]!==void 0)throw new d1(`Cannot register public name '${P}' twice`);if(oe(i,P,P),i[P].Ea.hasOwnProperty(H))throw new d1(`Cannot register multiple overloads of a function with the same number of arguments (${H})!`);i[P].Ea[H]=M}else i[P]=M,i[P].Na=H},W1=P=>{P=P.replace(/[^a-zA-Z0-9_]/g,"$");var M=P.charCodeAt(0);return 48<=M&&57>=M?`_${P}`:P};function ue(P,M,H,U,Y,t1,h1,a1){this.name=P,this.constructor=M,this.Ma=H,this.Ka=U,this.Ga=Y,this.bb=t1,this.Qa=h1,this.$a=a1,this.jb=[]}var q1=(P,M,H)=>{for(;M!==H;){if(!M.Qa)throw new d1(`Expected null or instance of ${H.name}, got an instance of ${M.name}`);P=M.Qa(P),M=M.Ga}return P};function Ye(P,M){if(M===null){if(this.Ta)throw new d1(`null is not a valid ${this.name}`);return 0}if(!M.Aa)throw new d1(`Cannot pass "${Ae(M)}" as a ${this.name}`);if(!M.Aa.Ca)throw new d1(`Cannot pass deleted object as a pointer of type ${this.name}`);return q1(M.Aa.Ca,M.Aa.Da.Ba,this.Ba)}function qe(P,M){if(M===null){if(this.Ta)throw new d1(`null is not a valid ${this.name}`);if(this.Sa){var H=this.Ua();return P!==null&&P.push(this.Ka,H),H}return 0}if(!M||!M.Aa)throw new d1(`Cannot pass "${Ae(M)}" as a ${this.name}`);if(!M.Aa.Ca)throw new d1(`Cannot pass deleted object as a pointer of type ${this.name}`);if(!this.Ra&&M.Aa.Da.Ra)throw new d1(`Cannot convert argument of type ${M.Aa.Ha?M.Aa.Ha.name:M.Aa.Da.name} to parameter type ${this.name}`);if(H=q1(M.Aa.Ca,M.Aa.Da.Ba,this.Ba),this.Sa){if(M.Aa.Fa===void 0)throw new d1("Passing raw pointer to smart pointer is illegal");switch(this.ob){case 0:if(M.Aa.Ha===this)H=M.Aa.Fa;else throw new d1(`Cannot convert argument of type ${M.Aa.Ha?M.Aa.Ha.name:M.Aa.Da.name} to parameter type ${this.name}`);break;case 1:H=M.Aa.Fa;break;case 2:if(M.Aa.Ha===this)H=M.Aa.Fa;else{var U=M.clone();H=this.kb(H,ge(()=>U.delete())),P!==null&&P.push(this.Ka,H)}break;default:throw new d1("Unsupporting sharing policy")}}return H}function Xe(P,M){if(M===null){if(this.Ta)throw new d1(`null is not a valid ${this.name}`);return 0}if(!M.Aa)throw new d1(`Cannot pass "${Ae(M)}" as a ${this.name}`);if(!M.Aa.Ca)throw new d1(`Cannot pass deleted object as a pointer of type ${this.name}`);if(M.Aa.Da.Ra)throw new d1(`Cannot convert argument of type ${M.Aa.Da.name} to parameter type ${this.name}`);return q1(M.Aa.Ca,M.Aa.Da.Ba,this.Ba)}function he(P,M,H,U,Y,t1,h1,a1,y1,I1,S1){this.name=P,this.Ba=M,this.Ta=H,this.Ra=U,this.Sa=Y,this.ib=t1,this.ob=h1,this.Ya=a1,this.Ua=y1,this.kb=I1,this.Ka=S1,Y||M.Ga!==void 0?this.toWireType=qe:(this.toWireType=U?Ye:Xe,this.Ja=null)}var Re=(P,M,H)=>{if(!i.hasOwnProperty(P))throw new P1("Replacing nonexistent public symbol");i[P].Ea!==void 0&&H!==void 0?i[P].Ea[H]=M:(i[P]=M,i[P].Na=H)},J1,Ke=(P,M,H=[])=>(P.includes("j")?(P=P.replace(/p/g,"i"),M=(0,i["dynCall_"+P])(M,...H)):M=J1.get(M)(...H),M),Qe=(P,M)=>(...H)=>Ke(P,M,H),Y1=(P,M)=>{P=T1(P);var H=P.includes("j")?Qe(P,M):J1.get(M);if(typeof H!="function")throw new d1(`unknown function pointer with signature ${P}: ${M}`);return H},Oe,Ne=P=>{P=Ve(P);var M=T1(P);return se(P),M},me=(P,M)=>{function H(t1){Y[t1]||E1[t1]||(f1[t1]?f1[t1].forEach(H):(U.push(t1),Y[t1]=!0))}var U=[],Y={};throw M.forEach(H),new Oe(`${P}: `+U.map(Ne).join([", "]))},ve=(P,M)=>{for(var H=[],U=0;U<P;U++)H.push(C[M+4*U>>2]);return H};function Je(P){for(var M=1;M<P.length;++M)if(P[M]!==null&&P[M].Ja===void 0)return!0;return!1}function _e(P,M,H,U,Y){var t1=M.length;if(2>t1)throw new d1("argTypes array size mismatch! Must at least get return value and 'this' types!");var h1=M[1]!==null&&H!==null,a1=Je(M),y1=M[0].name!=="void",I1=t1-2,S1=Array(I1),L1=[],w1=[];return j1(P,function(...X1){if(w1.length=0,L1.length=h1?2:1,L1[0]=Y,h1){var U1=M[1].toWireType(w1,this);L1[1]=U1}for(var V1=0;V1<I1;++V1)S1[V1]=M[V1+2].toWireType(w1,X1[V1]),L1.push(S1[V1]);if(X1=U(...L1),a1)g1(w1);else for(V1=h1?1:2;V1<M.length;V1++){var Z1=V1===1?U1:S1[V1-2];M[V1].Ja!==null&&M[V1].Ja(Z1)}return U1=y1?M[0].fromWireType(X1):void 0,U1})}var Le=P=>{P=P.trim();let M=P.indexOf("(");return M!==-1?P.substr(0,M):P},be=[],ae=[],Se=P=>{9<P&&--ae[P+1]===0&&(ae[P]=void 0,be.push(P))},ce=P=>{if(!P)throw new d1("Cannot use deleted val. handle = "+P);return ae[P]},ge=P=>{switch(P){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:let M=be.pop()||ae.length;return ae[M]=P,ae[M+1]=1,M}},we={name:"emscripten::val",fromWireType:P=>{var M=ce(P);return Se(P),M},toWireType:(P,M)=>ge(M),Ia:8,readValueFromPointer:A1,Ja:null},Ze=(P,M,H)=>{switch(M){case 1:return H?function(U){return this.fromWireType(L[U])}:function(U){return this.fromWireType(v[U])};case 2:return H?function(U){return this.fromWireType(A[U>>1])}:function(U){return this.fromWireType(_[U>>1])};case 4:return H?function(U){return this.fromWireType(I[U>>2])}:function(U){return this.fromWireType(C[U>>2])};default:throw new TypeError(`invalid integer width (${M}): ${P}`)}},Ee=(P,M)=>{var H=E1[P];if(H===void 0)throw P=`${M} has unknown type ${Ne(P)}`,new d1(P);return H},Ae=P=>{if(P===null)return"null";var M=typeof P;return M==="object"||M==="array"||M==="function"?P.toString():""+P},et=(P,M)=>{switch(M){case 4:return function(H){return this.fromWireType(O[H>>2])};case 8:return function(H){return this.fromWireType(B[H>>3])};default:throw new TypeError(`invalid float width (${M}): ${P}`)}},tt=(P,M,H)=>{switch(M){case 1:return H?U=>L[U]:U=>v[U];case 2:return H?U=>A[U>>1]:U=>_[U>>1];case 4:return H?U=>I[U>>2]:U=>C[U>>2];default:throw new TypeError(`invalid integer width (${M}): ${P}`)}},rt=Object.assign({optional:!0},we),ke=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,nt=(P,M)=>{for(var H=P>>1,U=H+M/2;!(H>=U)&&_[H];)++H;if(H<<=1,32<H-P&&ke)return ke.decode(v.subarray(P,H));for(H="",U=0;!(U>=M/2);++U){var Y=A[P+2*U>>1];if(Y==0)break;H+=String.fromCharCode(Y)}return H},it=(P,M,H)=>{if(H??(H=2147483647),2>H)return 0;H-=2;var U=M;H=H<2*P.length?H/2:P.length;for(var Y=0;Y<H;++Y)A[M>>1]=P.charCodeAt(Y),M+=2;return A[M>>1]=0,M-U},at=P=>2*P.length,st=(P,M)=>{for(var H=0,U="";!(H>=M/4);){var Y=I[P+4*H>>2];if(Y==0)break;++H,65536<=Y?(Y-=65536,U+=String.fromCharCode(55296|Y>>10,56320|Y&1023)):U+=String.fromCharCode(Y)}return U},ot=(P,M,H)=>{if(H??(H=2147483647),4>H)return 0;var U=M;H=U+H-4;for(var Y=0;Y<P.length;++Y){var t1=P.charCodeAt(Y);if(55296<=t1&&57343>=t1){var h1=P.charCodeAt(++Y);t1=65536+((t1&1023)<<10)|h1&1023}if(I[M>>2]=t1,M+=4,M+4>H)break}return I[M>>2]=0,M-U},ut=P=>{for(var M=0,H=0;H<P.length;++H){var U=P.charCodeAt(H);55296<=U&&57343>=U&&++H,M+=4}return M},Ie=0,Fe=(P,M,H)=>{var U=[];return P=P.toWireType(U,H),U.length&&(C[M>>2]=ge(U)),P},Ce=[],lt=P=>{var M=Ce.length;return Ce.push(P),M},ct=(P,M)=>{for(var H=Array(P),U=0;U<P;++U)H[U]=Ee(C[M+4*U>>2],"parameter "+U);return H},ht=Reflect.construct,fe={},Be=P=>{if(!(P instanceof G||P=="unwind"))throw P},Ge=P=>{throw b=P,F||0<Ie||(i.onExit?.(P),S=!0),new G(P)},ft=P=>{if(!S)try{if(P(),!(F||0<Ie))try{b=P=b,Ge(P)}catch(M){Be(M)}}catch(M){Be(M)}},xe={},He=()=>{if(!Pe){var P={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:c||"./this.program"},M;for(M in xe)xe[M]===void 0?delete P[M]:P[M]=xe[M];var H=[];for(M in P)H.push(`${M}=${P[M]}`);Pe=H}return Pe},Pe,dt=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return P=>crypto.getRandomValues(P);K("initRandomDevice")},$e=P=>($e=dt())(P);P1=i.InternalError=class extends Error{constructor(P){super(P),this.name="InternalError"}};for(var Ue=Array(256),Te=0;256>Te;++Te)Ue[Te]=String.fromCharCode(Te);D1=Ue,d1=i.BindingError=class extends Error{constructor(P){super(P),this.name="BindingError"}},Object.assign(Q1.prototype,{isAliasOf:function(P){if(!(this instanceof Q1&&P instanceof Q1))return!1;var M=this.Aa.Da.Ba,H=this.Aa.Ca;P.Aa=P.Aa;var U=P.Aa.Da.Ba;for(P=P.Aa.Ca;M.Ga;)H=M.Qa(H),M=M.Ga;for(;U.Ga;)P=U.Qa(P),U=U.Ga;return M===U&&H===P},clone:function(){if(this.Aa.Ca||N1(this),this.Aa.Pa)return this.Aa.count.value+=1,this;var P=$1,M=Object,H=M.create,U=Object.getPrototypeOf(this),Y=this.Aa;return P=P(H.call(M,U,{Aa:{value:{count:Y.count,Oa:Y.Oa,Pa:Y.Pa,Ca:Y.Ca,Da:Y.Da,Fa:Y.Fa,Ha:Y.Ha}}})),P.Aa.count.value+=1,P.Aa.Oa=!1,P},delete(){if(this.Aa.Ca||N1(this),this.Aa.Oa&&!this.Aa.Pa)throw new d1("Object already scheduled for deletion");z1(this);var P=this.Aa;--P.count.value,P.count.value===0&&(P.Fa?P.Ha.Ka(P.Fa):P.Da.Ba.Ka(P.Ca)),this.Aa.Pa||(this.Aa.Fa=void 0,this.Aa.Ca=void 0)},isDeleted:function(){return!this.Aa.Ca},deleteLater:function(){if(this.Aa.Ca||N1(this),this.Aa.Oa&&!this.Aa.Pa)throw new d1("Object already scheduled for deletion");return this.Aa.Oa=!0,this}}),Object.assign(he.prototype,{cb(P){return this.Ya&&(P=this.Ya(P)),P},Wa(P){this.Ka?.(P)},Ia:8,readValueFromPointer:A1,fromWireType:function(P){function M(){return this.Sa?M1(this.Ba.Ma,{Da:this.ib,Ca:H,Ha:this,Fa:P}):M1(this.Ba.Ma,{Da:this,Ca:P})}var H=this.cb(P);if(!H)return this.Wa(P),null;var U=x1(this.Ba,H);if(U!==void 0)return U.Aa.count.value===0?(U.Aa.Ca=H,U.Aa.Fa=P,U.clone()):(U=U.clone(),this.Wa(P),U);if(U=this.Ba.bb(H),U=u1[U],!U)return M.call(this);U=this.Ra?U.Za:U.pointerType;var Y=n1(H,this.Ba,U.Ba);return Y===null?M.call(this):this.Sa?M1(U.Ba.Ma,{Da:U,Ca:Y,Ha:this,Fa:P}):M1(U.Ba.Ma,{Da:U,Ca:Y})}}),Oe=i.UnboundTypeError=((P,M)=>{var H=j1(M,function(U){this.name=M,this.message=U,U=Error(U).stack,U!==void 0&&(this.stack=this.toString()+`
47
- `+U.replace(/^Error(:[^\n]*)?\n/,""))});return H.prototype=Object.create(P.prototype),H.prototype.constructor=H,H.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},H})(Error,"UnboundTypeError"),ae.push(0,1,void 0,1,null,1,!0,1,!1,1),i.count_emval_handles=()=>ae.length/2-5-be.length;var pt={c:(P,M,H,U)=>K(`Assertion failed: ${P?o1(P):""}, at: `+[M?M?o1(M):"":"unknown filename",H,U?U?o1(U):"":"unknown function"]),j:(P,M,H)=>{var U=new i1(P);throw C[U.Ca+16>>2]=0,C[U.Ca+4>>2]=M,C[U.Ca+8>>2]=H,p1=P,p1},P:()=>{},M:()=>{},N:()=>{},R:function(){},O:()=>{},T:()=>K(""),w:P=>{var M=v1[P];delete v1[P];var H=M.Ua,U=M.Ka,Y=M.Xa,t1=Y.map(h1=>h1.gb).concat(Y.map(h1=>h1.mb));_1([P],t1,h1=>{var a1={};return Y.forEach((y1,I1)=>{var S1=h1[I1],L1=y1.eb,w1=y1.fb,X1=h1[I1+Y.length],U1=y1.lb,V1=y1.nb;a1[y1.ab]={read:Z1=>S1.fromWireType(L1(w1,Z1)),write:(Z1,de)=>{var K1=[];U1(V1,Z1,X1.toWireType(K1,de)),g1(K1)}}}),[{name:M.name,fromWireType:y1=>{var I1={},S1;for(S1 in a1)I1[S1]=a1[S1].read(y1);return U(y1),I1},toWireType:(y1,I1)=>{for(var S1 in a1)if(!(S1 in I1))throw new TypeError(`Missing field: "${S1}"`);var L1=H();for(S1 in a1)a1[S1].write(L1,I1[S1]);return y1!==null&&y1.push(U,L1),L1},Ia:8,readValueFromPointer:A1,Ja:U}]})},F:()=>{},_:(P,M,H,U)=>{M=T1(M),C1(P,{name:M,fromWireType:function(Y){return!!Y},toWireType:function(Y,t1){return t1?H:U},Ia:8,readValueFromPointer:function(Y){return this.fromWireType(v[Y])},Ja:null})},m:(P,M,H,U,Y,t1,h1,a1,y1,I1,S1,L1,w1)=>{S1=T1(S1),t1=Y1(Y,t1),a1&&(a1=Y1(h1,a1)),I1&&(I1=Y1(y1,I1)),w1=Y1(L1,w1);var X1=W1(S1);ie(X1,function(){me(`Cannot construct ${S1} due to unbound types`,[U])}),_1([P,M,H],U?[U]:[],U1=>{if(U1=U1[0],U)var V1=U1.Ba,Z1=V1.Ma;else Z1=Q1.prototype;U1=j1(S1,function(...Me){if(Object.getPrototypeOf(this)!==de)throw new d1("Use 'new' to construct "+S1);if(K1.La===void 0)throw new d1(S1+" has no accessible constructor");var We=K1.La[Me.length];if(We===void 0)throw new d1(`Tried to invoke ctor of ${S1} with invalid number of parameters (${Me.length}) - expected (${Object.keys(K1.La).toString()}) parameters instead!`);return We.apply(this,Me)});var de=Object.create(Z1,{constructor:{value:U1}});U1.prototype=de;var K1=new ue(S1,U1,de,w1,V1,t1,a1,I1);if(K1.Ga){var pe;(pe=K1.Ga).Va??(pe.Va=[]),K1.Ga.Va.push(K1)}return V1=new he(S1,K1,!0,!1,!1),pe=new he(S1+"*",K1,!1,!1,!1),Z1=new he(S1+" const*",K1,!1,!0,!1),u1[P]={pointerType:pe,Za:Z1},Re(X1,U1),[V1,pe,Z1]})},r:(P,M,H,U,Y,t1)=>{var h1=ve(M,H);Y=Y1(U,Y),_1([],[P],a1=>{a1=a1[0];var y1=`constructor ${a1.name}`;if(a1.Ba.La===void 0&&(a1.Ba.La=[]),a1.Ba.La[M-1]!==void 0)throw new d1(`Cannot register multiple constructors with identical number of parameters (${M-1}) for class '${a1.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return a1.Ba.La[M-1]=()=>{me(`Cannot construct ${a1.name} due to unbound types`,h1)},_1([],h1,I1=>(I1.splice(1,0,null),a1.Ba.La[M-1]=_e(y1,I1,null,Y,t1),[])),[]})},d:(P,M,H,U,Y,t1,h1,a1)=>{var y1=ve(H,U);M=T1(M),M=Le(M),t1=Y1(Y,t1),_1([],[P],I1=>{function S1(){me(`Cannot call ${L1} due to unbound types`,y1)}I1=I1[0];var L1=`${I1.name}.${M}`;M.startsWith("@@")&&(M=Symbol[M.substring(2)]),a1&&I1.Ba.jb.push(M);var w1=I1.Ba.Ma,X1=w1[M];return X1===void 0||X1.Ea===void 0&&X1.className!==I1.name&&X1.Na===H-2?(S1.Na=H-2,S1.className=I1.name,w1[M]=S1):(oe(w1,M,L1),w1[M].Ea[H-2]=S1),_1([],y1,U1=>(U1=_e(L1,U1,I1,t1,h1),w1[M].Ea===void 0?(U1.Na=H-2,w1[M]=U1):w1[M].Ea[H-2]=U1,[])),[]})},Y:P=>C1(P,we),D:(P,M,H,U)=>{function Y(){}M=T1(M),Y.values={},C1(P,{name:M,constructor:Y,fromWireType:function(t1){return this.constructor.values[t1]},toWireType:(t1,h1)=>h1.value,Ia:8,readValueFromPointer:Ze(M,H,U),Ja:null}),ie(M,Y)},l:(P,M,H)=>{var U=Ee(P,"enum");M=T1(M),P=U.constructor,U=Object.create(U.constructor.prototype,{value:{value:H},constructor:{value:j1(`${U.name}_${M}`,function(){})}}),P.values[H]=U,P[M]=U},A:(P,M,H)=>{M=T1(M),C1(P,{name:M,fromWireType:U=>U,toWireType:(U,Y)=>Y,Ia:8,readValueFromPointer:et(M,H),Ja:null})},v:(P,M,H,U,Y,t1)=>{var h1=ve(M,H);P=T1(P),P=Le(P),Y=Y1(U,Y),ie(P,function(){me(`Cannot call ${P} due to unbound types`,h1)},M-1),_1([],h1,a1=>(Re(P,_e(P,[a1[0],null].concat(a1.slice(1)),null,Y,t1),M-1),[]))},n:(P,M,H,U,Y)=>{if(M=T1(M),Y===-1&&(Y=4294967295),Y=a1=>a1,U===0){var t1=32-8*H;Y=a1=>a1<<t1>>>t1}var h1=M.includes("unsigned")?function(a1,y1){return y1>>>0}:function(a1,y1){return y1};C1(P,{name:M,fromWireType:Y,toWireType:h1,Ia:8,readValueFromPointer:tt(M,H,U!==0),Ja:null})},g:(P,M,H)=>{function U(t1){return new Y(L.buffer,C[t1+4>>2],C[t1>>2])}var Y=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][M];H=T1(H),C1(P,{name:H,fromWireType:U,Ia:8,readValueFromPointer:U},{hb:!0})},q:P=>{C1(P,rt)},u:(P,M,H,U,Y,t1,h1,a1,y1,I1,S1,L1)=>{H=T1(H),t1=Y1(Y,t1),a1=Y1(h1,a1),I1=Y1(y1,I1),L1=Y1(S1,L1),_1([P],[M],w1=>(w1=w1[0],[new he(H,w1.Ba,!1,!1,!0,w1,U,t1,a1,I1,L1)]))},Z:(P,M)=>{M=T1(M),C1(P,{name:M,fromWireType:function(H){for(var U=C[H>>2],Y=H+4,t1,h1=Y,a1=0;a1<=U;++a1){var y1=Y+a1;(a1==U||v[y1]==0)&&(h1=h1?o1(h1,y1-h1):"",t1===void 0?t1=h1:(t1+="\0",t1+=h1),h1=y1+1)}return se(H),t1},toWireType:function(H,U){U instanceof ArrayBuffer&&(U=new Uint8Array(U));var Y,t1=typeof U=="string";if(!(t1||U instanceof Uint8Array||U instanceof Uint8ClampedArray||U instanceof Int8Array))throw new d1("Cannot pass non-string to std::string");if(t1)for(var h1=Y=0;h1<U.length;++h1){var a1=U.charCodeAt(h1);127>=a1?Y++:2047>=a1?Y+=2:55296<=a1&&57343>=a1?(Y+=4,++h1):Y+=3}else Y=U.length;if(h1=De(4+Y+1),a1=h1+4,C[h1>>2]=Y,t1)m1(U,a1,Y+1);else if(t1)for(t1=0;t1<Y;++t1){var y1=U.charCodeAt(t1);if(255<y1)throw se(a1),new d1("String has UTF-16 code units that do not fit in 8 bits");v[a1+t1]=y1}else for(t1=0;t1<Y;++t1)v[a1+t1]=U[t1];return H!==null&&H.push(se,h1),h1},Ia:8,readValueFromPointer:A1,Ja(H){se(H)}})},y:(P,M,H)=>{if(H=T1(H),M===2)var U=nt,Y=it,t1=at,h1=a1=>_[a1>>1];else M===4&&(U=st,Y=ot,t1=ut,h1=a1=>C[a1>>2]);C1(P,{name:H,fromWireType:a1=>{for(var y1=C[a1>>2],I1,S1=a1+4,L1=0;L1<=y1;++L1){var w1=a1+4+L1*M;(L1==y1||h1(w1)==0)&&(S1=U(S1,w1-S1),I1===void 0?I1=S1:(I1+="\0",I1+=S1),S1=w1+M)}return se(a1),I1},toWireType:(a1,y1)=>{if(typeof y1!="string")throw new d1(`Cannot pass non-string to C++ string type ${H}`);var I1=t1(y1),S1=De(4+I1+M);return C[S1>>2]=I1/M,Y(y1,S1+4,I1+M),a1!==null&&a1.push(se,S1),S1},Ia:8,readValueFromPointer:A1,Ja(a1){se(a1)}})},x:(P,M,H,U,Y,t1)=>{v1[P]={name:T1(M),Ua:Y1(H,U),Ka:Y1(Y,t1),Xa:[]}},i:(P,M,H,U,Y,t1,h1,a1,y1,I1)=>{v1[P].Xa.push({ab:T1(M),gb:H,eb:Y1(U,Y),fb:t1,mb:h1,lb:Y1(a1,y1),nb:I1})},$:(P,M)=>{M=T1(M),C1(P,{pb:!0,name:M,Ia:0,fromWireType:()=>{},toWireType:()=>{}})},K:()=>{F=!1,Ie=0},I:()=>{throw 1/0},C:(P,M,H)=>(P=ce(P),M=Ee(M,"emval::as"),Fe(M,H,P)),p:(P,M,H,U)=>(P=Ce[P],M=ce(M),P(null,M,H,U)),W:Se,E:(P,M)=>(P=ce(P),M=ce(M),P==M),o:(P,M,H)=>{var U=ct(P,M),Y=U.shift();P--;var t1=Array(P);return M=`methodCaller<(${U.map(h1=>h1.name).join(", ")}) => ${Y.name}>`,lt(j1(M,(h1,a1,y1,I1)=>{for(var S1=0,L1=0;L1<P;++L1)t1[L1]=U[L1].readValueFromPointer(I1+S1),S1+=U[L1].Ia;return h1=H===1?ht(a1,t1):a1.apply(h1,t1),Fe(Y,y1,h1)}))},z:P=>{9<P&&(ae[P+1]+=1)},ca:P=>{var M=ce(P);g1(M),Se(P)},t:(P,M)=>(P=Ee(P,"_emval_take_value"),P=P.readValueFromPointer(M),ge(P)),G:(P,M)=>{if(fe[P]&&(clearTimeout(fe[P].id),delete fe[P]),!M)return 0;var H=setTimeout(()=>{delete fe[P],ft(()=>ze(P,performance.now()))},M);return fe[P]={id:H,qb:M},0},H:(P,M,H,U)=>{var Y=new Date().getFullYear(),t1=new Date(Y,0,1).getTimezoneOffset();Y=new Date(Y,6,1).getTimezoneOffset(),C[P>>2]=60*Math.max(t1,Y),I[M>>2]=+(t1!=Y),M=h1=>{var a1=Math.abs(h1);return`UTC${0<=h1?"-":"+"}${String(Math.floor(a1/60)).padStart(2,"0")}${String(a1%60).padStart(2,"0")}`},P=M(t1),M=M(Y),Y<t1?(m1(P,H,17),m1(M,U,17)):(m1(P,U,17),m1(M,H,17))},ba:()=>performance.now(),J:P=>{var M=v.length;if(P>>>=0,2147483648<P)return!1;for(var H=1;4>=H;H*=2){var U=M*(1+.2/H);U=Math.min(U,P+100663296);e:{U=(Math.min(2147483648,65536*Math.ceil(Math.max(P,U)/65536))-y.buffer.byteLength+65535)/65536|0;try{y.grow(U),z();var Y=1;break e}catch{}Y=void 0}if(Y)return!0}return!1},V:(P,M)=>{var H=0;return He().forEach((U,Y)=>{var t1=M+H;for(Y=C[P+4*Y>>2]=t1,t1=0;t1<U.length;++t1)L[Y++]=U.charCodeAt(t1);L[Y]=0,H+=U.length+1}),0},X:(P,M)=>{var H=He();C[P>>2]=H.length;var U=0;return H.forEach(Y=>U+=Y.length+1),C[M>>2]=U,0},S:()=>52,Q:()=>52,k:mt,f:bt,e:yt,B:gt,aa:St,a:Et,b:vt,h:Tt,s:_t,U:Ge,L:(P,M)=>($e(v.subarray(P,P+M)),0)},F1;(async function(){function P(U){return F1=U.exports,y=F1.da,z(),J1=F1.ga,e1.unshift(F1.ea),Z--,i.monitorRunDependencies?.(Z),Z==0&&J&&(U=J,J=null,U()),F1}Z++,i.monitorRunDependencies?.(Z);var M={a:pt};if(i.instantiateWasm)try{return i.instantiateWasm(M,P)}catch(U){T(`Module.instantiateWasm callback failed with error: ${U}`),o(U)}V??(V=k("DotLottiePlayer.wasm")?"DotLottiePlayer.wasm":i.locateFile?i.locateFile("DotLottiePlayer.wasm",f):f+"DotLottiePlayer.wasm");try{var H=await D(M);return P(H.instance),H}catch(U){o(U)}})();var De=P=>(De=F1.fa)(P),se=P=>(se=F1.ha)(P),Ve=P=>(Ve=F1.ia)(P),ze=(P,M)=>(ze=F1.ja)(P,M),ee=(P,M)=>(ee=F1.ka)(P,M),te=P=>(te=F1.la)(P),ne=()=>(ne=F1.ma)();i.dynCall_jiii=(P,M,H,U)=>(i.dynCall_jiii=F1.na)(P,M,H,U),i.dynCall_jii=(P,M,H)=>(i.dynCall_jii=F1.oa)(P,M,H),i.dynCall_vjii=(P,M,H,U,Y)=>(i.dynCall_vjii=F1.pa)(P,M,H,U,Y),i.dynCall_vjfii=(P,M,H,U,Y,t1)=>(i.dynCall_vjfii=F1.qa)(P,M,H,U,Y,t1),i.dynCall_vjiii=(P,M,H,U,Y,t1)=>(i.dynCall_vjiii=F1.ra)(P,M,H,U,Y,t1),i.dynCall_vj=(P,M,H)=>(i.dynCall_vj=F1.sa)(P,M,H),i.dynCall_vjiiiii=(P,M,H,U,Y,t1,h1,a1)=>(i.dynCall_vjiiiii=F1.ta)(P,M,H,U,Y,t1,h1,a1),i.dynCall_vjiffii=(P,M,H,U,Y,t1,h1,a1)=>(i.dynCall_vjiffii=F1.ua)(P,M,H,U,Y,t1,h1,a1),i.dynCall_vjiiii=(P,M,H,U,Y,t1,h1)=>(i.dynCall_vjiiii=F1.va)(P,M,H,U,Y,t1,h1),i.dynCall_viijii=(P,M,H,U,Y,t1,h1)=>(i.dynCall_viijii=F1.wa)(P,M,H,U,Y,t1,h1),i.dynCall_iiiiij=(P,M,H,U,Y,t1,h1)=>(i.dynCall_iiiiij=F1.xa)(P,M,H,U,Y,t1,h1),i.dynCall_iiiiijj=(P,M,H,U,Y,t1,h1,a1,y1)=>(i.dynCall_iiiiijj=F1.ya)(P,M,H,U,Y,t1,h1,a1,y1),i.dynCall_iiiiiijj=(P,M,H,U,Y,t1,h1,a1,y1,I1)=>(i.dynCall_iiiiiijj=F1.za)(P,M,H,U,Y,t1,h1,a1,y1,I1);function mt(P,M){var H=ne();try{return J1.get(P)(M)}catch(U){if(te(H),U!==U+0)throw U;ee(1,0)}}function gt(P,M,H,U,Y,t1){var h1=ne();try{return J1.get(P)(M,H,U,Y,t1)}catch(a1){if(te(h1),a1!==a1+0)throw a1;ee(1,0)}}function Et(P,M){var H=ne();try{J1.get(P)(M)}catch(U){if(te(H),U!==U+0)throw U;ee(1,0)}}function Tt(P,M,H,U){var Y=ne();try{J1.get(P)(M,H,U)}catch(t1){if(te(Y),t1!==t1+0)throw t1;ee(1,0)}}function yt(P,M,H,U){var Y=ne();try{return J1.get(P)(M,H,U)}catch(t1){if(te(Y),t1!==t1+0)throw t1;ee(1,0)}}function vt(P,M,H){var U=ne();try{J1.get(P)(M,H)}catch(Y){if(te(U),Y!==Y+0)throw Y;ee(1,0)}}function _t(P,M,H,U,Y){var t1=ne();try{J1.get(P)(M,H,U,Y)}catch(h1){if(te(t1),h1!==h1+0)throw h1;ee(1,0)}}function bt(P,M,H){var U=ne();try{return J1.get(P)(M,H)}catch(Y){if(te(U),Y!==Y+0)throw Y;ee(1,0)}}function St(P){var M=ne();try{J1.get(P)()}catch(H){if(te(M),H!==H+0)throw H;ee(1,0)}}var ye;J=function P(){ye||je(),ye||(J=P)};function je(){function P(){if(!ye&&(ye=!0,i.calledRun=!0,!S)){if(Q(e1),a(i),i.onRuntimeInitialized?.(),i.postRun)for(typeof i.postRun=="function"&&(i.postRun=[i.postRun]);i.postRun.length;){var M=i.postRun.shift();X.unshift(M)}Q(X)}}if(!(0<Z)){if(i.preRun)for(typeof i.preRun=="function"&&(i.preRun=[i.preRun]);i.preRun.length;)W();Q(q),0<Z||(i.setStatus?(i.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>i.setStatus(""),1),P()},1)):P())}}if(i.preInit)for(typeof i.preInit=="function"&&(i.preInit=[i.preInit]);0<i.preInit.length;)i.preInit.pop()();return je(),n=u,n}})(),V3=G3,B1=class{constructor(){throw new Error("RendererLoader is a static class and cannot be instantiated.")}static async _tryLoad(e){return await V3({locateFile:()=>e})}static async _loadWithBackup(){return this._ModulePromise||(this._ModulePromise=this._tryLoad(this._wasmURL).catch(async e=>{let t=`https://unpkg.com/${V2}@${G2}/dist/dotlottie-player.wasm`;console.warn(`Primary WASM load failed from ${this._wasmURL}. Error: ${e.message}`),console.warn(`Attempting to load WASM from backup URL: ${t}`);try{return await this._tryLoad(t)}catch(n){throw console.error(`Primary WASM URL failed: ${e.message}`),console.error(`Backup WASM URL failed: ${n.message}`),new Error("WASM loading failed from all sources.")}})),this._ModulePromise}static async load(){return this._loadWithBackup()}static setWasmUrl(e){e!==this._wasmURL&&(this._wasmURL=e,this._ModulePromise=null)}};p(B1,"_ModulePromise",null),p(B1,"_wasmURL",`https://cdn.jsdelivr.net/npm/${V2}@${G2}/dist/dotlottie-player.wasm`);var J2=class{constructor(){p(this,"_eventListeners",new Map)}addEventListener(e,t){let n=this._eventListeners.get(e);n||(n=new Set,this._eventListeners.set(e,n)),n.add(t)}removeEventListener(e,t){let n=this._eventListeners.get(e);n&&(t?(n.delete(t),n.size===0&&this._eventListeners.delete(e)):this._eventListeners.delete(e))}dispatch(e){this._eventListeners.get(e.type)?.forEach(t=>t(e))}removeAllEventListeners(){this._eventListeners.clear()}},j=class{static _initializeObserver(){if(this._observer)return;let e=t=>{t.forEach(n=>{let i=this._observedCanvases.get(n.target);i&&(n.isIntersecting?i.unfreeze():i.freeze())})};this._observer=new IntersectionObserver(e,{threshold:0})}static observe(e,t){this._initializeObserver(),!this._observedCanvases.has(e)&&(this._observedCanvases.set(e,t),this._observer?.observe(e))}static unobserve(e){this._observer?.unobserve(e),this._observedCanvases.delete(e),this._observedCanvases.size===0&&(this._observer?.disconnect(),this._observer=null)}};p(j,"_observer",null),p(j,"_observedCanvases",new Map);var N=class{static _initializeObserver(){if(this._observer)return;let e=t=>{t.forEach(n=>{let i=this._observedCanvases.get(n.target);if(!i)return;let[a,o]=i;clearTimeout(o);let u=setTimeout(()=>{a.resize()},100);this._observedCanvases.set(n.target,[a,u])})};this._observer=new ResizeObserver(e)}static observe(e,t){this._initializeObserver(),!this._observedCanvases.has(e)&&(this._observedCanvases.set(e,[t,0]),this._observer?.observe(e))}static unobserve(e){let t=this._observedCanvases.get(e);if(t){let n=t[1];n&&clearTimeout(n)}this._observer?.unobserve(e),this._observedCanvases.delete(e),!this._observedCanvases.size&&this._observer&&(this._observer.disconnect(),this._observer=null)}};p(N,"_observer",null),p(N,"_observedCanvases",new Map);function J3(e){return/^#([\da-f]{6}|[\da-f]{8})$/iu.test(e)}function q3(e){if(!J3(e))return 0;let t=e.replace("#","");return t=t.length===6?`${t}ff`:t,parseInt(t,16)}function z2(e){if(e.byteLength<4)return!1;let t=new Uint8Array(e.slice(0,d2.byteLength));for(let n=0;n<d2.length;n+=1)if(d2[n]!==t[n])return!1;return!0}function B2(e){return H3.every(t=>Object.prototype.hasOwnProperty.call(e,t))}function H2(e){if(typeof e=="string")try{return B2(JSON.parse(e))}catch{return!1}else return B2(e)}function c1(){return 1+((E?window.devicePixelRatio:1)-1)*j3}function l1(e){let t=e.getBoundingClientRect(),n=window.innerHeight||document.documentElement.clientHeight,i=window.innerWidth||document.documentElement.clientWidth;return!(t.bottom<0||t.top>n||t.right<0||t.left>i)}function x(e){let t=e.target;if(t instanceof HTMLCanvasElement){let n=t.getBoundingClientRect();if(n.width===0||n.height===0||t.width===0||t.height===0)return null;let i=t.width/n.width,a=t.height/n.height,o=(e.clientX-n.left)*i,u=(e.clientY-n.top)*a;return!Number.isFinite(o)||!Number.isFinite(u)||Number.isNaN(o)||Number.isNaN(u)?null:{x:o,y:u}}return null}function q2(e){let t=e.replace("OpenUrl: ",""),n=t.indexOf(" | Target: "),i,a;n===-1?(i=t,a="_blank"):(i=t.substring(0,n),a=t.substring(n+11)),window.open(i,a)}var u2=(e,t)=>e==="reverse"?t.Mode.Reverse:e==="bounce"?t.Mode.Bounce:e==="reverse-bounce"?t.Mode.ReverseBounce:t.Mode.Forward,K3=(e,t)=>e==="contain"?t.Fit.Contain:e==="cover"?t.Fit.Cover:e==="fill"?t.Fit.Fill:e==="fit-height"?t.Fit.FitHeight:e==="fit-width"?t.Fit.FitWidth:t.Fit.None,X3=(e,t)=>{let n=new t.VectorFloat;return n.push_back(e[0]),n.push_back(e[1]),n},l2=(e,t)=>{let n=new t.VectorFloat;return e.length!==2||(n.push_back(e[0]),n.push_back(e[1])),n},_2=(e,t)=>e?{align:X3(e.align??[.5,.5],t),fit:K3(e.fit??"contain",t)}:t.createDefaultLayout(),K2=class O1{constructor(t){p(this,"_canvas"),p(this,"_context",null),p(this,"_eventManager"),p(this,"_animationFrameId",null),p(this,"_frameManager"),p(this,"_dotLottieCore",null),p(this,"_stateMachineId",""),p(this,"_stateMachineConfig",null),p(this,"_isStateMachineRunning",!1),p(this,"_stateMachineObserverHandle",null),p(this,"_stateMachineInternalMessageObserver",null),p(this,"_dotLottieObserverHandle",null),p(this,"_renderConfig",{}),p(this,"_isFrozen",!1),p(this,"_backgroundColor",null),p(this,"_boundOnClick",null),p(this,"_boundOnPointerUp",null),p(this,"_boundOnPointerDown",null),p(this,"_boundOnPointerMove",null),p(this,"_boundOnPointerEnter",null),p(this,"_boundOnPointerLeave",null),this._canvas=t.canvas,this._eventManager=new J2,this._frameManager=new B3,this._renderConfig={...t.renderConfig,devicePixelRatio:t.renderConfig?.devicePixelRatio||c1(),freezeOnOffscreen:t.renderConfig?.freezeOnOffscreen??!0},B1.load().then(n=>{O1._wasmModule=n;let i=new n.CallbackObserver;i.setOnLoad(()=>{setTimeout(()=>{this._eventManager.dispatch({type:"load"})},0)}),i.setOnLoadError(()=>{setTimeout(()=>{this._eventManager.dispatch({type:"loadError",error:new Error("failed to load")})},0)}),i.setOnPlay(()=>{setTimeout(()=>{this._eventManager.dispatch({type:"play"})},0)}),i.setOnPause(()=>{setTimeout(()=>{this._eventManager.dispatch({type:"pause"})},0)}),i.setOnStop(()=>{setTimeout(()=>{this._eventManager.dispatch({type:"stop"})},0)}),i.setOnLoop(a=>{setTimeout(()=>{this._eventManager.dispatch({type:"loop",loopCount:a})},0)}),i.setOnComplete(()=>{setTimeout(()=>{this._eventManager.dispatch({type:"complete"})},0)}),i.setOnFrame(a=>{setTimeout(()=>{this._eventManager.dispatch({type:"frame",currentFrame:a})},0)}),i.setOnRender(a=>{setTimeout(()=>{this._eventManager.dispatch({type:"render",currentFrame:a})},0)}),this._dotLottieCore=new n.DotLottiePlayer({animationId:t.animationId??"",themeId:t.themeId??"",stateMachineId:"",autoplay:t.autoplay??!1,backgroundColor:0,loopAnimation:t.loop??!1,mode:u2(t.mode??"forward",n),segment:l2(t.segment??[],n),speed:t.speed??1,useFrameInterpolation:t.useFrameInterpolation??!0,marker:t.marker??"",layout:_2(t.layout,n)}),this._stateMachineId=t.stateMachineId??"",this._stateMachineConfig=t.stateMachineConfig??null,this._dotLottieObserverHandle=this._dotLottieCore.subscribe(i),this._eventManager.dispatch({type:"ready"}),t.data?this._loadFromData(t.data):t.src&&this._loadFromSrc(t.src),t.backgroundColor&&this.setBackgroundColor(t.backgroundColor)}).catch(n=>{this._eventManager.dispatch({type:"loadError",error:new Error(`Failed to load wasm module: ${n}`)})})}_dispatchError(t){console.error(t),this._eventManager.dispatch({type:"loadError",error:new Error(t)})}async _fetchData(t){let n=await fetch(t);if(!n.ok)throw new Error(`Failed to fetch animation data from URL: ${t}. ${n.status}: ${n.statusText}`);let i=await n.arrayBuffer();return z2(i)?i:new TextDecoder().decode(i)}_loadFromData(t){if(this._dotLottieCore===null)return;let n=this._canvas.width,i=this._canvas.height,a=!1;if(typeof t=="string"){if(!H2(t)){this._dispatchError("Invalid Lottie JSON string: The provided string does not conform to the Lottie JSON format.");return}a=this._dotLottieCore.loadAnimationData(t,n,i)}else if(t instanceof ArrayBuffer){if(!z2(t)){this._dispatchError("Invalid dotLottie ArrayBuffer: The provided ArrayBuffer does not conform to the dotLottie format.");return}a=this._dotLottieCore.loadDotLottieData(t,n,i)}else if(typeof t=="object"){if(!H2(t)){this._dispatchError("Invalid Lottie JSON object: The provided object does not conform to the Lottie JSON format.");return}a=this._dotLottieCore.loadAnimationData(JSON.stringify(t),n,i)}else{this._dispatchError(`Unsupported data type for animation data. Expected:
48
- - string (Lottie JSON),
49
- - ArrayBuffer (dotLottie),
50
- - object (Lottie JSON).
51
- Received: ${typeof t}`);return}a&&(E&&this.resize(),setTimeout(()=>{this._eventManager.dispatch({type:"frame",currentFrame:this.currentFrame})},0),this._dotLottieCore.render(),this._draw(),this._stateMachineId?this.stateMachineLoad(this._stateMachineId)&&this.stateMachineStart()&&this._startAnimationLoop():this._dotLottieCore.isPlaying()&&this._startAnimationLoop(),E&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.freezeOnOffscreen&&(j.observe(this._canvas,this),l1(this._canvas)||this.freeze()),this._renderConfig.autoResize&&N.observe(this._canvas,this)))}_loadFromSrc(t){this._fetchData(t).then(n=>this._loadFromData(n)).catch(n=>this._dispatchError(`Failed to load animation data from URL: ${t}. ${n}`))}get buffer(){return this._dotLottieCore?this._dotLottieCore.buffer():null}get activeAnimationId(){return this._dotLottieCore?.activeAnimationId()}get activeThemeId(){return this._dotLottieCore?.activeThemeId()}get layout(){let t=this._dotLottieCore?.config().layout;if(t)return{align:[t.align.get(0),t.align.get(1)],fit:(()=>{switch(t.fit){case O1._wasmModule?.Fit.Contain:return"contain";case O1._wasmModule?.Fit.Cover:return"cover";case O1._wasmModule?.Fit.Fill:return"fill";case O1._wasmModule?.Fit.FitHeight:return"fit-height";case O1._wasmModule?.Fit.FitWidth:return"fit-width";case O1._wasmModule?.Fit.None:return"none";default:return"contain"}})()}}get marker(){return this._dotLottieCore?.config().marker}get manifest(){try{let t=this._dotLottieCore?.manifestString();if(this._dotLottieCore===null||!t)return null;let n=JSON.parse(t);return Object.keys(n).length===0?null:n}catch{return null}}get renderConfig(){return this._renderConfig}get segment(){let t=this._dotLottieCore?.config().segment;if(t&&t.size()===2)return[t.get(0),t.get(1)]}get loop(){return this._dotLottieCore?.config().loopAnimation??!1}get mode(){let t=this._dotLottieCore?.config().mode;return t===O1._wasmModule?.Mode.Reverse?"reverse":t===O1._wasmModule?.Mode.Bounce?"bounce":t===O1._wasmModule?.Mode.ReverseBounce?"reverse-bounce":"forward"}get isFrozen(){return this._isFrozen}get isStateMachineRunning(){return this._isStateMachineRunning}get backgroundColor(){return this._backgroundColor??""}get autoplay(){return this._dotLottieCore?.config().autoplay??!1}get useFrameInterpolation(){return this._dotLottieCore?.config().useFrameInterpolation??!1}get speed(){return this._dotLottieCore?.config().speed??0}get isReady(){return this._dotLottieCore!==null}get isLoaded(){return this._dotLottieCore?.isLoaded()??!1}get isPlaying(){return this._dotLottieCore?.isPlaying()??!1}get isPaused(){return this._dotLottieCore?.isPaused()??!1}get isStopped(){return this._dotLottieCore?.isStopped()??!1}get currentFrame(){return this._dotLottieCore?Math.round(this._dotLottieCore.currentFrame()*100)/100:0}get loopCount(){return this._dotLottieCore?.loopCount()??0}get totalFrames(){return this._dotLottieCore?.totalFrames()??0}get duration(){return this._dotLottieCore?.duration()??0}get segmentDuration(){return this._dotLottieCore?.segmentDuration()??0}get canvas(){return this._canvas}load(t){this._dotLottieCore===null||O1._wasmModule===null||(this._stopAnimationLoop(),E&&this._canvas instanceof HTMLCanvasElement&&(j.unobserve(this._canvas),N.unobserve(this._canvas),this._cleanupStateMachineListeners()),this._isFrozen=!1,this._dotLottieCore.setConfig({animationId:t.animationId??"",themeId:t.themeId??"",stateMachineId:"",autoplay:t.autoplay??!1,backgroundColor:0,loopAnimation:t.loop??!1,mode:u2(t.mode??"forward",O1._wasmModule),segment:l2(t.segment??[],O1._wasmModule),speed:t.speed??1,useFrameInterpolation:t.useFrameInterpolation??!0,marker:t.marker??"",layout:_2(t.layout,O1._wasmModule)}),t.data?this._loadFromData(t.data):t.src&&this._loadFromSrc(t.src),this.setBackgroundColor(t.backgroundColor??""))}_draw(){if(this._dotLottieCore!==null&&(!this._context&&"getContext"in this._canvas&&typeof this._canvas.getContext=="function"&&(this._context=this._canvas.getContext("2d")),this._context)){let t=this._dotLottieCore.buffer(),n=this._canvas.width*this._canvas.height*N3;if(t.byteLength!==n){console.warn(`Buffer size mismatch: got ${t.byteLength}, expected ${n}`);return}let i=null,a=new Uint8ClampedArray(t,0,t.byteLength);typeof ImageData>"u"?(i=this._context.createImageData(this._canvas.width,this._canvas.height),i.data.set(a)):i=new ImageData(a,this._canvas.width,this._canvas.height),this._context.putImageData(i,0,0)}}_stopAnimationLoop(){this._animationFrameId!==null&&(this._frameManager.cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null)}_startAnimationLoop(){this._animationFrameId===null&&this._dotLottieCore&&!this._isFrozen&&(this._dotLottieCore.isPlaying()||this._isStateMachineRunning)&&(this._animationFrameId=this._frameManager.requestAnimationFrame(this._animationLoop.bind(this)))}_animationLoop(){if(this._dotLottieCore===null){this._stopAnimationLoop();return}if(!this._dotLottieCore.isPlaying()&&!this._isStateMachineRunning){this._stopAnimationLoop();return}try{(this._dotLottieCore.tick()||this._dotLottieCore.render())&&this._draw(),this._animationFrameId=this._frameManager.requestAnimationFrame(this._animationLoop.bind(this))}catch(t){console.error("Error in animation frame:",t),this._eventManager.dispatch({type:"renderError",error:t}),t instanceof WebAssembly.RuntimeError&&this.destroy()}}play(){this._dotLottieCore===null||!this.isLoaded||(this._stopAnimationLoop(),(this._dotLottieCore.play()||this._dotLottieCore.isPlaying())&&(this._isFrozen=!1,this._startAnimationLoop()),E&&this._canvas instanceof HTMLCanvasElement&&this._renderConfig.freezeOnOffscreen&&!l1(this._canvas)&&this.freeze())}pause(){this._dotLottieCore!==null&&(this._dotLottieCore.pause(),this._stopAnimationLoop())}stop(){if(this._dotLottieCore===null)return;let t=this._dotLottieCore.stop();this._stopAnimationLoop(),t&&(this._eventManager.dispatch({type:"frame",currentFrame:this.currentFrame}),this._dotLottieCore.render(),this._draw())}setFrame(t){this._dotLottieCore!==null&&this._dotLottieCore.seek(t)&&this._dotLottieCore.render()&&this._draw()}setSpeed(t){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),speed:t})}setBackgroundColor(t){this._dotLottieCore!==null&&(E&&this._canvas instanceof HTMLCanvasElement?this._canvas.style.backgroundColor=t:this._dotLottieCore.setConfig({...this._dotLottieCore.config(),backgroundColor:q3(t)}),this._backgroundColor=t)}setLoop(t){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),loopAnimation:t})}setUseFrameInterpolation(t){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),useFrameInterpolation:t})}addEventListener(t,n){this._eventManager.addEventListener(t,n)}removeEventListener(t,n){this._eventManager.removeEventListener(t,n)}destroy(){this._stopAnimationLoop(),this._isStateMachineRunning=!1,E&&this._canvas instanceof HTMLCanvasElement&&(j.unobserve(this._canvas),N.unobserve(this._canvas)),this._stateMachineObserverHandle&&(this._dotLottieCore?.stateMachineUnsubscribe(this._stateMachineObserverHandle),this._stateMachineObserverHandle.delete(),this._stateMachineObserverHandle=null),this._stateMachineInternalMessageObserver&&(this._dotLottieCore?.stateMachineInternalUnsubscribe(this._stateMachineInternalMessageObserver),this._stateMachineInternalMessageObserver.delete(),this._stateMachineInternalMessageObserver=null),this._dotLottieObserverHandle&&(this._dotLottieCore?.unsubscribe(this._dotLottieObserverHandle),this._dotLottieObserverHandle.delete(),this._dotLottieObserverHandle=null),this._dotLottieCore?.delete(),this._dotLottieCore=null,this._context=null,this._eventManager.dispatch({type:"destroy"}),this._eventManager.removeAllEventListeners(),this._cleanupStateMachineListeners()}freeze(){this._animationFrameId!==null&&(this._stopAnimationLoop(),this._isFrozen=!0,this._eventManager.dispatch({type:"freeze"}))}unfreeze(){this._animationFrameId===null&&(this._isFrozen=!1,this._eventManager.dispatch({type:"unfreeze"}),this._startAnimationLoop())}resize(){if(!(!this._dotLottieCore||!this.isLoaded)){if(E&&this._canvas instanceof HTMLCanvasElement){let t=this._renderConfig.devicePixelRatio||window.devicePixelRatio||1,{height:n,width:i}=this._canvas.getBoundingClientRect();n!==0&&i!==0&&(this._canvas.width=i*t,this._canvas.height=n*t)}this._dotLottieCore.resize(this._canvas.width,this._canvas.height)&&this._draw()}}setSegment(t,n){this._dotLottieCore===null||O1._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),segment:l2([t,n],O1._wasmModule)})}setMode(t){this._dotLottieCore===null||O1._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),mode:u2(t,O1._wasmModule)})}setRenderConfig(t){let{devicePixelRatio:n,freezeOnOffscreen:i,...a}=t;this._renderConfig={...this._renderConfig,...a,devicePixelRatio:n||c1(),freezeOnOffscreen:i??!0},E&&this._canvas instanceof HTMLCanvasElement&&(this._renderConfig.autoResize?N.observe(this._canvas,this):N.unobserve(this._canvas),this._renderConfig.freezeOnOffscreen?(j.observe(this._canvas,this),l1(this._canvas)||this.freeze()):(j.unobserve(this._canvas),this._isFrozen&&this.unfreeze()))}loadAnimation(t){this._dotLottieCore===null||this._dotLottieCore.activeAnimationId()===t||this._dotLottieCore.loadAnimation(t,this._canvas.width,this._canvas.height)&&this.resize()}setMarker(t){this._dotLottieCore!==null&&this._dotLottieCore.setConfig({...this._dotLottieCore.config(),marker:t})}markers(){let t=this._dotLottieCore?.markers();if(t){let n=[];for(let i=0;i<t.size();i+=1){let a=t.get(i);n.push({name:a.name,time:a.time,duration:a.duration})}return n}return[]}setTheme(t){if(this._dotLottieCore===null)return!1;let n=this._dotLottieCore.setTheme(t);return n&&this._draw(),n}resetTheme(){if(this._dotLottieCore===null)return!1;let t=this._dotLottieCore.resetTheme();return t&&this._draw(),t}setThemeData(t){if(this._dotLottieCore===null)return!1;let n=this._dotLottieCore.setThemeData(t);return n&&this._draw(),n}setSlots(t){this._dotLottieCore!==null&&this._dotLottieCore.setSlots(t)}setLayout(t){this._dotLottieCore===null||O1._wasmModule===null||this._dotLottieCore.setConfig({...this._dotLottieCore.config(),layout:_2(t,O1._wasmModule)})}setViewport(t,n,i,a){return this._dotLottieCore===null?!1:this._dotLottieCore.setViewport(t,n,i,a)}static setWasmUrl(t){B1.setWasmUrl(t)}tween(t,n){if(!O1._wasmModule)return!1;let i=[0,0,1,1],a=new O1._wasmModule.VectorFloat;for(let o of i)a.push_back(o);return this._dotLottieCore?.tween(t,n,a)??!1}tweenToMarker(t,n){if(!O1._wasmModule)return!1;let i=[0,0,1,1],a=new O1._wasmModule.VectorFloat;for(let o of i)a.push_back(o);return this._dotLottieCore?.tweenToMarker(t,n,a)??!1}animationSize(){let t=this._dotLottieCore?.animationSize().get(0)??0,n=this._dotLottieCore?.animationSize().get(1)??0;return{width:t,height:n}}getLayerBoundingBox(t){let n=this._dotLottieCore?.getLayerBounds(t);if(!n||n.size()!==8)return;let i=[];for(let a=0;a<8;a+=1)i.push(n.get(a));return i}static transformThemeToLottieSlots(t,n){return O1._wasmModule?.transformThemeToLottieSlots(t,n)??""}_setupStateMachineObservers(){if(!this._dotLottieCore||!O1._wasmModule)return;let t=new O1._wasmModule.CallbackStateMachineObserver;t.setOnStart(()=>{setTimeout(()=>{this._isStateMachineRunning=!0,this._eventManager.dispatch({type:"stateMachineStart"}),this._startAnimationLoop()},0)}),t.setOnStop(()=>{setTimeout(()=>{this._isStateMachineRunning=!1,this._eventManager.dispatch({type:"stateMachineStop"}),this._dotLottieCore?.isPlaying()||this._stopAnimationLoop()},0)}),t.setOnCustomEvent(i=>{this._eventManager.dispatch({type:"stateMachineCustomEvent",eventName:i})}),t.setOnBooleanInputValueChange((i,a,o)=>{this._eventManager.dispatch({type:"stateMachineBooleanInputValueChange",inputName:i,newValue:a,oldValue:o})}),t.setOnNumericInputValueChange((i,a,o)=>{this._eventManager.dispatch({type:"stateMachineNumericInputValueChange",inputName:i,newValue:a,oldValue:o})}),t.setOnStringInputValueChange((i,a,o)=>{this._eventManager.dispatch({type:"stateMachineStringInputValueChange",inputName:i,newValue:a,oldValue:o})}),t.setOnInputFired(i=>{this._eventManager.dispatch({type:"stateMachineInputFired",inputName:i})}),t.setOnTransition((i,a)=>{this._eventManager.dispatch({type:"stateMachineTransition",fromState:i,toState:a})}),t.setOnStateEntered(i=>{this._eventManager.dispatch({type:"stateMachineStateEntered",state:i})}),t.setOnStateExit(i=>{this._eventManager.dispatch({type:"stateMachineStateExit",state:i})}),t.setOnError(i=>{this._eventManager.dispatch({type:"stateMachineError",error:i})});let n=new O1._wasmModule.CallbackStateMachineInternalObserver;n.setOnMessage(i=>{E?i.startsWith("OpenUrl: ")&&q2(i):this._eventManager.dispatch({type:"stateMachineInternalMessage",message:i})}),this._stateMachineObserverHandle=this._dotLottieCore.stateMachineSubscribe(t),this._stateMachineInternalMessageObserver=this._dotLottieCore.stateMachineInternalSubscribe(n)}_cleanupStateMachineObservers(){this._stateMachineObserverHandle&&(this._dotLottieCore?.stateMachineUnsubscribe(this._stateMachineObserverHandle),this._stateMachineObserverHandle.delete(),this._stateMachineObserverHandle=null),this._stateMachineInternalMessageObserver&&(this._dotLottieCore?.stateMachineInternalUnsubscribe(this._stateMachineInternalMessageObserver),this._stateMachineInternalMessageObserver.delete(),this._stateMachineInternalMessageObserver=null)}stateMachineLoad(t){if(!this._dotLottieCore||!O1._wasmModule)return!1;this._cleanupStateMachineObservers();let n=this._dotLottieCore.stateMachineLoad(t);return n&&this._setupStateMachineObservers(),n}stateMachineLoadData(t){if(!this._dotLottieCore||!O1._wasmModule)return!1;this._cleanupStateMachineObservers();let n=this._dotLottieCore.stateMachineLoadData(t);return n&&this._setupStateMachineObservers(),n}stateMachineSetConfig(t){this._stateMachineConfig=t}stateMachineStart(){if(O1._wasmModule===null||this._dotLottieCore===null)return!1;let t=O1._wasmModule.createDefaultOpenUrlPolicy();if(this._stateMachineConfig){let i=this._stateMachineConfig.openUrlPolicy;if(i&&typeof i.requireUserInteraction=="boolean"&&(t.requireUserInteraction=i.requireUserInteraction),i?.whitelist){t.whitelist=new O1._wasmModule.VectorString;for(let a of i.whitelist)t.whitelist.push_back(a)}}let n=this._dotLottieCore.stateMachineStart(t);return n&&(this._isStateMachineRunning=!0,this._setupStateMachineListeners(),this._startAnimationLoop()),n}stateMachineStop(){if(!this._dotLottieCore)return!1;let t=this._dotLottieCore.stateMachineStop();return t&&(this._cleanupStateMachineObservers(),this._isStateMachineRunning=!1,this._cleanupStateMachineListeners(),this._dotLottieCore.isPlaying()||this._stopAnimationLoop()),t}stateMachineGetStatus(){return this._dotLottieCore?.stateMachineStatus()??""}stateMachineGetCurrentState(){return this._dotLottieCore?.stateMachineCurrentState()??""}stateMachineGetActiveId(){return this._dotLottieCore?.activeStateMachineId()??""}stateMachineOverrideState(t,n=!1){return this._dotLottieCore?.stateMachineOverrideCurrentState(t,n)??!1}stateMachineGet(t){return this._dotLottieCore?.getStateMachine(t)??""}stateMachineGetListeners(){if(!this._dotLottieCore)return[];let t=this._dotLottieCore.stateMachineFrameworkSetup(),n=[];for(let i=0;i<t.size();i+=1)n.push(t.get(i));return n}stateMachineSetBooleanInput(t,n){return this._dotLottieCore?.stateMachineSetBooleanInput(t,n)??!1}stateMachineSetNumericInput(t,n){return this._dotLottieCore?.stateMachineSetNumericInput(t,n)??!1}stateMachineSetStringInput(t,n){return this._dotLottieCore?.stateMachineSetStringInput(t,n)??!1}stateMachineGetBooleanInput(t){return this._dotLottieCore?.stateMachineGetBooleanInput(t)}stateMachineGetNumericInput(t){return this._dotLottieCore?.stateMachineGetNumericInput(t)}stateMachineGetStringInput(t){return this._dotLottieCore?.stateMachineGetStringInput(t)}stateMachineFireEvent(t){this._dotLottieCore?.stateMachineFireEvent(t)}stateMachinePostClickEvent(t,n){this._dotLottieCore?.stateMachinePostClickEvent(t,n)}stateMachinePostPointerUpEvent(t,n){this._dotLottieCore?.stateMachinePostPointerUpEvent(t,n)}stateMachinePostPointerDownEvent(t,n){this._dotLottieCore?.stateMachinePostPointerDownEvent(t,n)}stateMachinePostPointerMoveEvent(t,n){this._dotLottieCore?.stateMachinePostPointerMoveEvent(t,n)}stateMachinePostPointerEnterEvent(t,n){this._dotLottieCore?.stateMachinePostPointerEnterEvent(t,n)}stateMachinePostPointerExitEvent(t,n){this._dotLottieCore?.stateMachinePostPointerExitEvent(t,n)}_onClick(t){let n=x(t);n&&this.stateMachinePostClickEvent(n.x,n.y)}_onPointerUp(t){let n=x(t);n&&this.stateMachinePostPointerUpEvent(n.x,n.y)}_onPointerDown(t){let n=x(t);n&&this.stateMachinePostPointerDownEvent(n.x,n.y)}_onPointerMove(t){let n=x(t);n&&this.stateMachinePostPointerMoveEvent(n.x,n.y)}_onPointerEnter(t){let n=x(t);n&&this.stateMachinePostPointerEnterEvent(n.x,n.y)}_onPointerLeave(t){let n=x(t);n&&this.stateMachinePostPointerExitEvent(n.x,n.y)}_setupStateMachineListeners(){if(E&&this._canvas instanceof HTMLCanvasElement&&this._dotLottieCore!==null&&this.isLoaded){let t=this.stateMachineGetListeners();this._cleanupStateMachineListeners(),t.includes("Click")&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener("click",this._boundOnClick)),t.includes("PointerUp")&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener("pointerup",this._boundOnPointerUp)),t.includes("PointerDown")&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener("pointerdown",this._boundOnPointerDown)),t.includes("PointerMove")&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener("pointermove",this._boundOnPointerMove)),t.includes("PointerEnter")&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener("pointerenter",this._boundOnPointerEnter)),t.includes("PointerExit")&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener("pointerleave",this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){E&&this._canvas instanceof HTMLCanvasElement&&(this._boundOnClick&&(this._canvas.removeEventListener("click",this._boundOnClick),this._boundOnClick=null),this._boundOnPointerUp&&(this._canvas.removeEventListener("pointerup",this._boundOnPointerUp),this._boundOnPointerUp=null),this._boundOnPointerDown&&(this._canvas.removeEventListener("pointerdown",this._boundOnPointerDown),this._boundOnPointerDown=null),this._boundOnPointerMove&&(this._canvas.removeEventListener("pointermove",this._boundOnPointerMove),this._boundOnPointerMove=null),this._boundOnPointerEnter&&(this._canvas.removeEventListener("pointerenter",this._boundOnPointerEnter),this._boundOnPointerEnter=null),this._boundOnPointerLeave&&(this._canvas.removeEventListener("pointerleave",this._boundOnPointerLeave),this._boundOnPointerLeave=null))}};p(K2,"_wasmModule",null);var H1=K2,Q3=class{constructor(){if(typeof Worker>"u")throw new Error("Worker is not supported in this environment.");let e=new Blob([new Uint8Array([34,117,115,101,32,115,116,114,105,99,116,34,59,10,40,40,41,32,61,62,32,123,10,32,32,118,97,114,32,95,95,100,101,102,80,114,111,112,32,61,32,79,98,106,101,99,116,46,100,101,102,105,110,101,80,114,111,112,101,114,116,121,59,10,32,32,118,97,114,32,95,95,100,101,102,78,111,114,109,97,108,80,114,111,112,32,61,32,40,111,98,106,44,32,107,101,121,44,32,118,97,108,117,101,41,32,61,62,32,107,101,121,32,105,110,32,111,98,106,32,63,32,95,95,100,101,102,80,114,111,112,40,111,98,106,44,32,107,101,121,44,32,123,32,101,110,117,109,101,114,97,98,108,101,58,32,116,114,117,101,44,32,99,111,110,102,105,103,117,114,97,98,108,101,58,32,116,114,117,101,44,32,119,114,105,116,97,98,108,101,58,32,116,114,117,101,44,32,118,97,108,117,101,32,125,41,32,58,32,111,98,106,91,107,101,121,93,32,61,32,118,97,108,117,101,59,10,32,32,118,97,114,32,95,95,112,117,98,108,105,99,70,105,101,108,100,32,61,32,40,111,98,106,44,32,107,101,121,44,32,118,97,108,117,101,41,32,61,62,32,95,95,100,101,102,78,111,114,109,97,108,80,114,111,112,40,111,98,106,44,32,116,121,112,101,111,102,32,107,101,121,32,33,61,61,32,34,115,121,109,98,111,108,34,32,63,32,107,101,121,32,43,32,34,34,32,58,32,107,101,121,44,32,118,97,108,117,101,41,59,10,10,32,32,47,47,32,115,114,99,47,97,110,105,109,97,116,105,111,110,45,102,114,97,109,101,45,109,97,110,97,103,101,114,46,116,115,10,32,32,118,97,114,32,87,101,98,65,110,105,109,97,116,105,111,110,70,114,97,109,101,83,116,114,97,116,101,103,121,32,61,32,99,108,97,115,115,32,123,10,32,32,32,32,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,99,97,108,108,98,97,99,107,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,99,97,108,108,98,97,99,107,41,59,10,32,32,32,32,125,10,32,32,32,32,99,97,110,99,101,108,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,105,100,41,32,123,10,32,32,32,32,32,32,99,97,110,99,101,108,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,105,100,41,59,10,32,32,32,32,125,10,32,32,125,59,10,32,32,118,97,114,32,78,111,100,101,65,110,105,109,97,116,105,111,110,70,114,97,109,101,83,116,114,97,116,101,103,121,32,61,32,99,108,97,115,115,32,123,10,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,40,41,32,123,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,108,97,115,116,72,97,110,100,108,101,73,100,34,44,32,48,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,108,97,115,116,73,109,109,101,100,105,97,116,101,34,44,32,110,117,108,108,41,59,10,32,32,32,32,125,10,32,32,32,32,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,99,97,108,108,98,97,99,107,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,108,97,115,116,72,97,110,100,108,101,73,100,32,62,61,32,78,117,109,98,101,114,46,77,65,88,95,83,65,70,69,95,73,78,84,69,71,69,82,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,108,97,115,116,72,97,110,100,108,101,73,100,32,61,32,48,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,116,104,105,115,46,95,108,97,115,116,72,97,110,100,108,101,73,100,32,43,61,32,49,59,10,32,32,32,32,32,32,116,104,105,115,46,95,108,97,115,116,73,109,109,101,100,105,97,116,101,32,61,32,115,101,116,73,109,109,101,100,105,97,116,101,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,99,97,108,108,98,97,99,107,40,68,97,116,101,46,110,111,119,40,41,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,108,97,115,116,72,97,110,100,108,101,73,100,59,10,32,32,32,32,125,10,32,32,32,32,99,97,110,99,101,108,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,95,105,100,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,108,97,115,116,73,109,109,101,100,105,97,116,101,41,32,123,10,32,32,32,32,32,32,32,32,99,108,101,97,114,73,109,109,101,100,105,97,116,101,40,116,104,105,115,46,95,108,97,115,116,73,109,109,101,100,105,97,116,101,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,125,59,10,32,32,118,97,114,32,65,110,105,109,97,116,105,111,110,70,114,97,109,101,77,97,110,97,103,101,114,32,61,32,99,108,97,115,115,32,123,10,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,40,41,32,123,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,115,116,114,97,116,101,103,121,34,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,115,116,114,97,116,101,103,121,32,61,32,116,121,112,101,111,102,32,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,32,61,61,61,32,34,102,117,110,99,116,105,111,110,34,32,63,32,110,101,119,32,87,101,98,65,110,105,109,97,116,105,111,110,70,114,97,109,101,83,116,114,97,116,101,103,121,40,41,32,58,32,110,101,119,32,78,111,100,101,65,110,105,109,97,116,105,111,110,70,114,97,109,101,83,116,114,97,116,101,103,121,40,41,59,10,32,32,32,32,125,10,32,32,32,32,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,99,97,108,108,98,97,99,107,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,115,116,114,97,116,101,103,121,46,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,99,97,108,108,98,97,99,107,41,59,10,32,32,32,32,125,10,32,32,32,32,99,97,110,99,101,108,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,105,100,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,115,116,114,97,116,101,103,121,46,99,97,110,99,101,108,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,105,100,41,59,10,32,32,32,32,125,10,32,32,125,59,10,10,32,32,47,47,32,115,114,99,47,99,111,110,115,116,97,110,116,115,46,116,115,10,32,32,118,97,114,32,73,83,95,66,82,79,87,83,69,82,32,61,32,116,121,112,101,111,102,32,119,105,110,100,111,119,32,33,61,61,32,34,117,110,100,101,102,105,110,101,100,34,32,38,38,32,116,121,112,101,111,102,32,119,105,110,100,111,119,46,100,111,99,117,109,101,110,116,32,33,61,61,32,34,117,110,100,101,102,105,110,101,100,34,59,10,32,32,118,97,114,32,90,73,80,95,83,73,71,78,65,84,85,82,69,32,61,32,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,91,56,48,44,32,55,53,44,32,51,44,32,52,93,41,59,10,32,32,118,97,114,32,76,79,84,84,73,69,95,74,83,79,78,95,77,65,78,68,65,84,79,82,89,95,70,73,69,76,68,83,32,61,32,91,34,118,34,44,32,34,105,112,34,44,32,34,111,112,34,44,32,34,108,97,121,101,114,115,34,44,32,34,102,114,34,44,32,34,119,34,44,32,34,104,34,93,59,10,32,32,118,97,114,32,80,65,67,75,65,71,69,95,86,69,82,83,73,79,78,32,61,32,34,48,46,53,48,46,48,34,59,10,32,32,118,97,114,32,80,65,67,75,65,71,69,95,78,65,77,69,32,61,32,34,64,108,111,116,116,105,101,102,105,108,101,115,47,100,111,116,108,111,116,116,105,101,45,119,101,98,34,59,10,32,32,118,97,114,32,68,69,70,65,85,76,84,95,68,80,82,95,70,65,67,84,79,82,32,61,32,48,46,55,53,59,10,32,32,118,97,114,32,66,89,84,69,83,95,80,69,82,95,80,73,88,69,76,32,61,32,52,59,10,10,32,32,47,47,32,115,114,99,47,99,111,114,101,47,100,111,116,108,111,116,116,105,101,45,112,108,97,121,101,114,46,106,115,10,32,32,118,97,114,32,99,114,101,97,116,101,68,111,116,76,111,116,116,105,101,80,108,97,121,101,114,77,111,100,117,108,101,32,61,32,40,40,41,32,61,62,32,123,10,32,32,32,32,118,97,114,32,95,115,99,114,105,112,116,78,97,109,101,32,61,32,116,121,112,101,111,102,32,100,111,99,117,109,101,110,116,32,33,61,32,34,117,110,100,101,102,105,110,101,100,34,32,63,32,100,111,99,117,109,101,110,116,46,99,117,114,114,101,110,116,83,99,114,105,112,116,63,46,115,114,99,32,58,32,118,111,105,100,32,48,59,10,32,32,32,32,114,101,116,117,114,110,32,102,117,110,99,116,105,111,110,40,109,111,100,117,108,101,65,114,103,32,61,32,123,125,41,32,123,10,32,32,32,32,32,32,118,97,114,32,109,111,100,117,108,101,82,116,110,59,10,32,32,32,32,32,32,118,97,114,32,104,32,61,32,109,111,100,117,108,101,65,114,103,44,32,97,97,44,32,98,97,44,32,99,97,32,61,32,110,101,119,32,80,114,111,109,105,115,101,40,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,97,97,32,61,32,97,59,10,32,32,32,32,32,32,32,32,98,97,32,61,32,98,59,10,32,32,32,32,32,32,125,41,44,32,102,97,32,61,32,79,98,106,101,99,116,46,97,115,115,105,103,110,40,123,125,44,32,104,41,44,32,104,97,32,61,32,34,46,47,116,104,105,115,46,112,114,111,103,114,97,109,34,44,32,112,32,61,32,34,34,44,32,105,97,59,10,32,32,32,32,32,32,34,117,110,100,101,102,105,110,101,100,34,32,33,61,32,116,121,112,101,111,102,32,100,111,99,117,109,101,110,116,32,38,38,32,100,111,99,117,109,101,110,116,46,99,117,114,114,101,110,116,83,99,114,105,112,116,32,38,38,32,40,112,32,61,32,100,111,99,117,109,101,110,116,46,99,117,114,114,101,110,116,83,99,114,105,112,116,46,115,114,99,41,59,10,32,32,32,32,32,32,95,115,99,114,105,112,116,78,97,109,101,32,38,38,32,40,112,32,61,32,95,115,99,114,105,112,116,78,97,109,101,41,59,10,32,32,32,32,32,32,112,46,115,116,97,114,116,115,87,105,116,104,40,34,98,108,111,98,58,34,41,32,63,32,112,32,61,32,34,34,32,58,32,112,32,61,32,112,46,115,117,98,115,116,114,40,48,44,32,112,46,114,101,112,108,97,99,101,40,47,91,63,35,93,46,42,47,44,32,34,34,41,46,108,97,115,116,73,110,100,101,120,79,102,40,34,47,34,41,32,43,32,49,41,59,10,32,32,32,32,32,32,105,97,32,61,32,97,115,121,110,99,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,97,32,61,32,97,119,97,105,116,32,102,101,116,99,104,40,97,44,32,123,32,99,114,101,100,101,110,116,105,97,108,115,58,32,34,115,97,109,101,45,111,114,105,103,105,110,34,32,125,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,97,46,111,107,41,32,114,101,116,117,114,110,32,97,46,97,114,114,97,121,66,117,102,102,101,114,40,41,59,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,69,114,114,111,114,40,97,46,115,116,97,116,117,115,32,43,32,34,32,58,32,34,32,43,32,97,46,117,114,108,41,59,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,118,97,114,32,116,32,61,32,104,46,112,114,105,110,116,69,114,114,32,124,124,32,99,111,110,115,111,108,101,46,101,114,114,111,114,46,98,105,110,100,40,99,111,110,115,111,108,101,41,59,10,32,32,32,32,32,32,79,98,106,101,99,116,46,97,115,115,105,103,110,40,104,44,32,102,97,41,59,10,32,32,32,32,32,32,102,97,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,104,46,116,104,105,115,80,114,111,103,114,97,109,32,38,38,32,40,104,97,32,61,32,104,46,116,104,105,115,80,114,111,103,114,97,109,41,59,10,32,32,32,32,32,32,118,97,114,32,106,97,32,61,32,104,46,119,97,115,109,66,105,110,97,114,121,44,32,107,97,44,32,108,97,32,61,32,102,97,108,115,101,44,32,109,97,44,32,117,44,32,120,44,32,121,44,32,122,44,32,67,44,32,68,44,32,110,97,44,32,111,97,59,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,112,97,40,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,97,32,61,32,107,97,46,98,117,102,102,101,114,59,10,32,32,32,32,32,32,32,32,104,46,72,69,65,80,56,32,61,32,117,32,61,32,110,101,119,32,73,110,116,56,65,114,114,97,121,40,97,41,59,10,32,32,32,32,32,32,32,32,104,46,72,69,65,80,49,54,32,61,32,121,32,61,32,110,101,119,32,73,110,116,49,54,65,114,114,97,121,40,97,41,59,10,32,32,32,32,32,32,32,32,104,46,72,69,65,80,85,56,32,61,32,120,32,61,32,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,97,41,59,10,32,32,32,32,32,32,32,32,104,46,72,69,65,80,85,49,54,32,61,32,122,32,61,32,110,101,119,32,85,105,110,116,49,54,65,114,114,97,121,40,97,41,59,10,32,32,32,32,32,32,32,32,104,46,72,69,65,80,51,50,32,61,32,67,32,61,32,110,101,119,32,73,110,116,51,50,65,114,114,97,121,40,97,41,59,10,32,32,32,32,32,32,32,32,104,46,72,69,65,80,85,51,50,32,61,32,68,32,61,32,110,101,119,32,85,105,110,116,51,50,65,114,114,97,121,40,97,41,59,10,32,32,32,32,32,32,32,32,104,46,72,69,65,80,70,51,50,32,61,32,110,97,32,61,32,110,101,119,32,70,108,111,97,116,51,50,65,114,114,97,121,40,97,41,59,10,32,32,32,32,32,32,32,32,104,46,72,69,65,80,70,54,52,32,61,32,111,97,32,61,32,110,101,119,32,70,108,111,97,116,54,52,65,114,114,97,121,40,97,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,118,97,114,32,113,97,32,61,32,91,93,44,32,114,97,32,61,32,91,93,44,32,115,97,32,61,32,91,93,59,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,116,97,40,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,97,32,61,32,104,46,112,114,101,82,117,110,46,115,104,105,102,116,40,41,59,10,32,32,32,32,32,32,32,32,113,97,46,117,110,115,104,105,102,116,40,97,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,118,97,114,32,70,32,61,32,48,44,32,71,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,117,97,40,97,41,32,123,10,32,32,32,32,32,32,32,32,104,46,111,110,65,98,111,114,116,63,46,40,97,41,59,10,32,32,32,32,32,32,32,32,97,32,61,32,34,65,98,111,114,116,101,100,40,34,32,43,32,97,32,43,32,34,41,34,59,10,32,32,32,32,32,32,32,32,116,40,97,41,59,10,32,32,32,32,32,32,32,32,108,97,32,61,32,116,114,117,101,59,10,32,32,32,32,32,32,32,32,97,32,61,32,110,101,119,32,87,101,98,65,115,115,101,109,98,108,121,46,82,117,110,116,105,109,101,69,114,114,111,114,40,97,32,43,32,34,46,32,66,117,105,108,100,32,119,105,116,104,32,45,115,65,83,83,69,82,84,73,79,78,83,32,102,111,114,32,109,111,114,101,32,105,110,102,111,46,34,41,59,10,32,32,32,32,32,32,32,32,98,97,40,97,41,59,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,97,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,118,97,114,32,118,97,32,61,32,40,97,41,32,61,62,32,97,46,115,116,97,114,116,115,87,105,116,104,40,34,100,97,116,97,58,97,112,112,108,105,99,97,116,105,111,110,47,111,99,116,101,116,45,115,116,114,101,97,109,59,98,97,115,101,54,52,44,34,41,44,32,119,97,59,10,32,32,32,32,32,32,97,115,121,110,99,32,102,117,110,99,116,105,111,110,32,120,97,40,97,41,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,33,106,97,41,10,32,32,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,97,119,97,105,116,32,105,97,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,123,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,97,32,61,61,32,119,97,32,38,38,32,106,97,41,32,97,32,61,32,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,106,97,41,59,10,32,32,32,32,32,32,32,32,101,108,115,101,32,116,104,114,111,119,32,34,98,111,116,104,32,97,115,121,110,99,32,97,110,100,32,115,121,110,99,32,102,101,116,99,104,105,110,103,32,111,102,32,116,104,101,32,119,97,115,109,32,102,97,105,108,101,100,34,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,97,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,97,115,121,110,99,32,102,117,110,99,116,105,111,110,32,121,97,40,97,44,32,98,41,32,123,10,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,97,119,97,105,116,32,120,97,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,97,119,97,105,116,32,87,101,98,65,115,115,101,109,98,108,121,46,105,110,115,116,97,110,116,105,97,116,101,40,99,44,32,98,41,59,10,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,40,96,102,97,105,108,101,100,32,116,111,32,97,115,121,110,99,104,114,111,110,111,117,115,108,121,32,112,114,101,112,97,114,101,32,119,97,115,109,58,32,36,123,100,125,96,41,44,32,117,97,40,100,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,97,115,121,110,99,32,102,117,110,99,116,105,111,110,32,122,97,40,97,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,119,97,59,10,32,32,32,32,32,32,32,32,105,102,32,40,33,106,97,32,38,38,32,34,102,117,110,99,116,105,111,110,34,32,61,61,32,116,121,112,101,111,102,32,87,101,98,65,115,115,101,109,98,108,121,46,105,110,115,116,97,110,116,105,97,116,101,83,116,114,101,97,109,105,110,103,32,38,38,32,33,118,97,40,98,41,32,38,38,32,34,102,117,110,99,116,105,111,110,34,32,61,61,32,116,121,112,101,111,102,32,102,101,116,99,104,41,10,32,32,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,102,101,116,99,104,40,98,44,32,123,32,99,114,101,100,101,110,116,105,97,108,115,58,32,34,115,97,109,101,45,111,114,105,103,105,110,34,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,97,119,97,105,116,32,87,101,98,65,115,115,101,109,98,108,121,46,105,110,115,116,97,110,116,105,97,116,101,83,116,114,101,97,109,105,110,103,40,99,44,32,97,41,59,10,32,32,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,40,96,119,97,115,109,32,115,116,114,101,97,109,105,110,103,32,99,111,109,112,105,108,101,32,102,97,105,108,101,100,58,32,36,123,100,125,96,41,44,32,116,40,34,102,97,108,108,105,110,103,32,98,97,99,107,32,116,111,32,65,114,114,97,121,66,117,102,102,101,114,32,105,110,115,116,97,110,116,105,97,116,105,111,110,34,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,121,97,40,98,44,32,97,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,99,108,97,115,115,32,65,97,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,40,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,110,97,109,101,34,44,32,34,69,120,105,116,83,116,97,116,117,115,34,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,109,101,115,115,97,103,101,32,61,32,96,80,114,111,103,114,97,109,32,116,101,114,109,105,110,97,116,101,100,32,119,105,116,104,32,101,120,105,116,40,36,123,97,125,41,96,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,115,116,97,116,117,115,32,61,32,97,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,118,97,114,32,66,97,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,102,111,114,32,40,59,32,48,32,60,32,97,46,108,101,110,103,116,104,59,32,41,32,97,46,115,104,105,102,116,40,41,40,104,41,59,10,32,32,32,32,32,32,125,44,32,67,97,32,61,32,104,46,110,111,69,120,105,116,82,117,110,116,105,109,101,32,124,124,32,116,114,117,101,44,32,68,97,32,61,32,34,117,110,100,101,102,105,110,101,100,34,32,33,61,32,116,121,112,101,111,102,32,84,101,120,116,68,101,99,111,100,101,114,32,63,32,110,101,119,32,84,101,120,116,68,101,99,111,100,101,114,40,41,32,58,32,118,111,105,100,32,48,44,32,69,97,32,61,32,40,97,32,61,32,48,44,32,98,32,61,32,78,97,78,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,120,44,32,100,32,61,32,97,32,43,32,98,59,10,32,32,32,32,32,32,32,32,102,111,114,32,40,98,32,61,32,97,59,32,99,91,98,93,32,38,38,32,33,40,98,32,62,61,32,100,41,59,32,41,32,43,43,98,59,10,32,32,32,32,32,32,32,32,105,102,32,40,49,54,32,60,32,98,32,45,32,97,32,38,38,32,99,46,98,117,102,102,101,114,32,38,38,32,68,97,41,32,114,101,116,117,114,110,32,68,97,46,100,101,99,111,100,101,40,99,46,115,117,98,97,114,114,97,121,40,97,44,32,98,41,41,59,10,32,32,32,32,32,32,32,32,102,111,114,32,40,100,32,61,32,34,34,59,32,97,32,60,32,98,59,32,41,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,101,32,61,32,99,91,97,43,43,93,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,101,32,38,32,49,50,56,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,102,32,61,32,99,91,97,43,43,93,32,38,32,54,51,59,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,49,57,50,32,61,61,32,40,101,32,38,32,50,50,52,41,41,32,100,32,43,61,32,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,40,101,32,38,32,51,49,41,32,60,60,32,54,32,124,32,102,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,107,32,61,32,99,91,97,43,43,93,32,38,32,54,51,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,101,32,61,32,50,50,52,32,61,61,32,40,101,32,38,32,50,52,48,41,32,63,32,40,101,32,38,32,49,53,41,32,60,60,32,49,50,32,124,32,102,32,60,60,32,54,32,124,32,107,32,58,32,40,101,32,38,32,55,41,32,60,60,32,49,56,32,124,32,102,32,60,60,32,49,50,32,124,32,107,32,60,60,32,54,32,124,32,99,91,97,43,43,93,32,38,32,54,51,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,54,53,53,51,54,32,62,32,101,32,63,32,100,32,43,61,32,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,41,32,58,32,40,101,32,45,61,32,54,53,53,51,54,44,32,100,32,43,61,32,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,53,53,50,57,54,32,124,32,101,32,62,62,32,49,48,44,32,53,54,51,50,48,32,124,32,101,32,38,32,49,48,50,51,41,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,100,32,43,61,32,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,100,59,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,99,108,97,115,115,32,70,97,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,40,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,67,97,32,61,32,97,32,45,32,50,52,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,118,97,114,32,71,97,32,61,32,48,44,32,72,97,32,61,32,48,44,32,72,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,120,59,10,32,32,32,32,32,32,32,32,105,102,32,40,48,32,60,32,99,41,32,123,10,32,32,32,32,32,32,32,32,32,32,99,32,61,32,98,32,43,32,99,32,45,32,49,59,10,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,101,32,61,32,48,59,32,101,32,60,32,97,46,108,101,110,103,116,104,59,32,43,43,101,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,102,32,61,32,97,46,99,104,97,114,67,111,100,101,65,116,40,101,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,53,53,50,57,54,32,60,61,32,102,32,38,38,32,53,55,51,52,51,32,62,61,32,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,107,32,61,32,97,46,99,104,97,114,67,111,100,101,65,116,40,43,43,101,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,102,32,61,32,54,53,53,51,54,32,43,32,40,40,102,32,38,32,49,48,50,51,41,32,60,60,32,49,48,41,32,124,32,107,32,38,32,49,48,50,51,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,49,50,55,32,62,61,32,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,98,32,62,61,32,99,41,32,98,114,101,97,107,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,100,91,98,43,43,93,32,61,32,102,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,50,48,52,55,32,62,61,32,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,98,32,43,32,49,32,62,61,32,99,41,32,98,114,101,97,107,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,100,91,98,43,43,93,32,61,32,49,57,50,32,124,32,102,32,62,62,32,54,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,54,53,53,51,53,32,62,61,32,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,98,32,43,32,50,32,62,61,32,99,41,32,98,114,101,97,107,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,100,91,98,43,43,93,32,61,32,50,50,52,32,124,32,102,32,62,62,32,49,50,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,98,32,43,32,51,32,62,61,32,99,41,32,98,114,101,97,107,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,100,91,98,43,43,93,32,61,32,50,52,48,32,124,32,102,32,62,62,32,49,56,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,100,91,98,43,43,93,32,61,32,49,50,56,32,124,32,102,32,62,62,32,49,50,32,38,32,54,51,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,100,91,98,43,43,93,32,61,32,49,50,56,32,124,32,102,32,62,62,32,54,32,38,32,54,51,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,100,91,98,43,43,93,32,61,32,49,50,56,32,124,32,102,32,38,32,54,51,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,100,91,98,93,32,61,32,48,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,44,32,73,97,32,61,32,123,125,44,32,74,97,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,102,111,114,32,40,59,32,97,46,108,101,110,103,116,104,59,32,41,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,97,46,112,111,112,40,41,59,10,32,32,32,32,32,32,32,32,32,32,97,46,112,111,112,40,41,40,98,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,73,40,97,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,102,114,111,109,87,105,114,101,84,121,112,101,40,68,91,97,32,62,62,32,50,93,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,118,97,114,32,74,32,61,32,123,125,44,32,75,32,61,32,123,125,44,32,75,97,32,61,32,123,125,44,32,76,44,32,78,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,100,40,103,41,32,123,10,32,32,32,32,32,32,32,32,32,32,103,32,61,32,99,40,103,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,103,46,108,101,110,103,116,104,32,33,61,61,32,97,46,108,101,110,103,116,104,41,32,116,104,114,111,119,32,110,101,119,32,76,40,34,77,105,115,109,97,116,99,104,101,100,32,116,121,112,101,32,99,111,110,118,101,114,116,101,114,32,99,111,117,110,116,34,41,59,10,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,108,32,61,32,48,59,32,108,32,60,32,97,46,108,101,110,103,116,104,59,32,43,43,108,41,32,77,40,97,91,108,93,44,32,103,91,108,93,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,97,46,102,111,114,69,97,99,104,40,40,103,41,32,61,62,32,75,97,91,103,93,32,61,32,98,41,59,10,32,32,32,32,32,32,32,32,118,97,114,32,101,32,61,32,65,114,114,97,121,40,98,46,108,101,110,103,116,104,41,44,32,102,32,61,32,91,93,44,32,107,32,61,32,48,59,10,32,32,32,32,32,32,32,32,98,46,102,111,114,69,97,99,104,40,40,103,44,32,108,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,75,46,104,97,115,79,119,110,80,114,111,112,101,114,116,121,40,103,41,32,63,32,101,91,108,93,32,61,32,75,91,103,93,32,58,32,40,102,46,112,117,115,104,40,103,41,44,32,74,46,104,97,115,79,119,110,80,114,111,112,101,114,116,121,40,103,41,32,124,124,32,40,74,91,103,93,32,61,32,91,93,41,44,32,74,91,103,93,46,112,117,115,104,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,101,91,108,93,32,61,32,75,91,103,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,43,43,107,59,10,32,32,32,32,32,32,32,32,32,32,32,32,107,32,61,61,61,32,102,46,108,101,110,103,116,104,32,38,38,32,100,40,101,41,59,10,32,32,32,32,32,32,32,32,32,32,125,41,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,48,32,61,61,61,32,102,46,108,101,110,103,116,104,32,38,38,32,100,40,101,41,59,10,32,32,32,32,32,32,125,44,32,76,97,44,32,79,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,98,32,61,32,34,34,59,32,120,91,97,93,59,32,41,32,98,32,43,61,32,76,97,91,120,91,97,43,43,93,93,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,98,59,10,32,32,32,32,32,32,125,44,32,80,59,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,77,97,40,97,44,32,98,44,32,99,32,61,32,123,125,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,98,46,110,97,109,101,59,10,32,32,32,32,32,32,32,32,105,102,32,40,33,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,116,121,112,101,32,34,36,123,100,125,34,32,109,117,115,116,32,104,97,118,101,32,97,32,112,111,115,105,116,105,118,101,32,105,110,116,101,103,101,114,32,116,121,112,101,105,100,32,112,111,105,110,116,101,114,96,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,75,46,104,97,115,79,119,110,80,114,111,112,101,114,116,121,40,97,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,99,46,104,98,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,80,40,96,67,97,110,110,111,116,32,114,101,103,105,115,116,101,114,32,116,121,112,101,32,39,36,123,100,125,39,32,116,119,105,99,101,96,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,75,91,97,93,32,61,32,98,59,10,32,32,32,32,32,32,32,32,100,101,108,101,116,101,32,75,97,91,97,93,59,10,32,32,32,32,32,32,32,32,74,46,104,97,115,79,119,110,80,114,111,112,101,114,116,121,40,97,41,32,38,38,32,40,98,32,61,32,74,91,97,93,44,32,100,101,108,101,116,101,32,74,91,97,93,44,32,98,46,102,111,114,69,97,99,104,40,40,101,41,32,61,62,32,101,40,41,41,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,77,40,97,44,32,98,44,32,99,32,61,32,123,125,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,77,97,40,97,44,32,98,44,32,99,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,118,97,114,32,79,97,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,80,40,97,46,65,97,46,68,97,46,66,97,46,110,97,109,101,32,43,32,34,32,105,110,115,116,97,110,99,101,32,97,108,114,101,97,100,121,32,100,101,108,101,116,101,100,34,41,59,10,32,32,32,32,32,32,125,44,32,80,97,32,61,32,102,97,108,115,101,44,32,81,97,32,61,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,125,44,32,82,97,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,98,32,61,61,61,32,99,41,32,114,101,116,117,114,110,32,97,59,10,32,32,32,32,32,32,32,32,105,102,32,40,118,111,105,100,32,48,32,61,61,61,32,99,46,71,97,41,32,114,101,116,117,114,110,32,110,117,108,108,59,10,32,32,32,32,32,32,32,32,97,32,61,32,82,97,40,97,44,32,98,44,32,99,46,71,97,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,110,117,108,108,32,61,61,61,32,97,32,63,32,110,117,108,108,32,58,32,99,46,36,97,40,97,41,59,10,32,32,32,32,32,32,125,44,32,83,97,32,61,32,123,125,44,32,84,97,32,61,32,123,125,44,32,85,97,32,61,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,118,111,105,100,32,48,32,61,61,61,32,98,41,32,116,104,114,111,119,32,110,101,119,32,80,40,34,112,116,114,32,115,104,111,117,108,100,32,110,111,116,32,98,101,32,117,110,100,101,102,105,110,101,100,34,41,59,10,32,32,32,32,32,32,32,32,102,111,114,32,40,59,32,97,46,71,97,59,32,41,32,98,32,61,32,97,46,81,97,40,98,41,44,32,97,32,61,32,97,46,71,97,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,84,97,91,98,93,59,10,32,32,32,32,32,32,125,44,32,86,97,32,61,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,33,98,46,68,97,32,124,124,32,33,98,46,67,97,41,32,116,104,114,111,119,32,110,101,119,32,76,40,34,109,97,107,101,67,108,97,115,115,72,97,110,100,108,101,32,114,101,113,117,105,114,101,115,32,112,116,114,32,97,110,100,32,112,116,114,84,121,112,101,34,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,33,33,98,46,72,97,32,33,61,61,32,33,33,98,46,70,97,41,32,116,104,114,111,119,32,110,101,119,32,76,40,34,66,111,116,104,32,115,109,97,114,116,80,116,114,84,121,112,101,32,97,110,100,32,115,109,97,114,116,80,116,114,32,109,117,115,116,32,98,101,32,115,112,101,99,105,102,105,101,100,34,41,59,10,32,32,32,32,32,32,32,32,98,46,99,111,117,110,116,32,61,32,123,32,118,97,108,117,101,58,32,49,32,125,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,81,40,79,98,106,101,99,116,46,99,114,101,97,116,101,40,97,44,32,123,32,65,97,58,32,123,32,118,97,108,117,101,58,32,98,44,32,119,114,105,116,97,98,108,101,58,32,116,114,117,101,32,125,32,125,41,41,59,10,32,32,32,32,32,32,125,44,32,81,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,34,117,110,100,101,102,105,110,101,100,34,32,61,61,61,32,116,121,112,101,111,102,32,70,105,110,97,108,105,122,97,116,105,111,110,82,101,103,105,115,116,114,121,41,32,114,101,116,117,114,110,32,81,32,61,32,40,98,41,32,61,62,32,98,44,32,97,59,10,32,32,32,32,32,32,32,32,80,97,32,61,32,110,101,119,32,70,105,110,97,108,105,122,97,116,105,111,110,82,101,103,105,115,116,114,121,40,40,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,98,46,65,97,59,10,32,32,32,32,32,32,32,32,32,32,45,45,98,46,99,111,117,110,116,46,118,97,108,117,101,59,10,32,32,32,32,32,32,32,32,32,32,48,32,61,61,61,32,98,46,99,111,117,110,116,46,118,97,108,117,101,32,38,38,32,40,98,46,70,97,32,63,32,98,46,72,97,46,75,97,40,98,46,70,97,41,32,58,32,98,46,68,97,46,66,97,46,75,97,40,98,46,67,97,41,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,81,32,61,32,40,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,98,46,65,97,59,10,32,32,32,32,32,32,32,32,32,32,99,46,70,97,32,38,38,32,80,97,46,114,101,103,105,115,116,101,114,40,98,44,32,123,32,65,97,58,32,99,32,125,44,32,98,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,98,59,10,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,81,97,32,61,32,40,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,80,97,46,117,110,114,101,103,105,115,116,101,114,40,98,41,59,10,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,81,40,97,41,59,10,32,32,32,32,32,32,125,44,32,87,97,32,61,32,91,93,59,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,88,97,40,41,32,123,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,118,97,114,32,89,97,32,61,32,40,97,44,32,98,41,32,61,62,32,79,98,106,101,99,116,46,100,101,102,105,110,101,80,114,111,112,101,114,116,121,40,98,44,32,34,110,97,109,101,34,44,32,123,32,118,97,108,117,101,58,32,97,32,125,41,44,32,90,97,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,118,111,105,100,32,48,32,61,61,61,32,97,91,98,93,46,69,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,97,91,98,93,59,10,32,32,32,32,32,32,32,32,32,32,97,91,98,93,32,61,32,102,117,110,99,116,105,111,110,40,46,46,46,101,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,33,97,91,98,93,46,69,97,46,104,97,115,79,119,110,80,114,111,112,101,114,116,121,40,101,46,108,101,110,103,116,104,41,41,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,80,40,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,96,70,117,110,99,116,105,111,110,32,39,36,123,99,125,39,32,99,97,108,108,101,100,32,119,105,116,104,32,97,110,32,105,110,118,97,108,105,100,32,110,117,109,98,101,114,32,111,102,32,97,114,103,117,109,101,110,116,115,32,40,36,123,101,46,108,101,110,103,116,104,125,41,32,45,32,101,120,112,101,99,116,115,32,111,110,101,32,111,102,32,40,36,123,97,91,98,93,46,69,97,125,41,33,96,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,97,91,98,93,46,69,97,91,101,46,108,101,110,103,116,104,93,46,97,112,112,108,121,40,116,104,105,115,44,32,101,41,59,10,32,32,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,32,32,97,91,98,93,46,69,97,32,61,32,91,93,59,10,32,32,32,32,32,32,32,32,32,32,97,91,98,93,46,69,97,91,100,46,78,97,93,32,61,32,100,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,44,32,36,97,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,104,46,104,97,115,79,119,110,80,114,111,112,101,114,116,121,40,97,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,118,111,105,100,32,48,32,61,61,61,32,99,32,124,124,32,118,111,105,100,32,48,32,33,61,61,32,104,91,97,93,46,69,97,32,38,38,32,118,111,105,100,32,48,32,33,61,61,32,104,91,97,93,46,69,97,91,99,93,41,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,80,40,96,67,97,110,110,111,116,32,114,101,103,105,115,116,101,114,32,112,117,98,108,105,99,32,110,97,109,101,32,39,36,123,97,125,39,32,116,119,105,99,101,96,41,59,10,32,32,32,32,32,32,32,32,32,32,90,97,40,104,44,32,97,44,32,97,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,104,91,97,93,46,69,97,46,104,97,115,79,119,110,80,114,111,112,101,114,116,121,40,99,41,41,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,80,40,96,67,97,110,110,111,116,32,114,101,103,105,115,116,101,114,32,109,117,108,116,105,112,108,101,32,111,118,101,114,108,111,97,100,115,32,111,102,32,97,32,102,117,110,99,116,105,111,110,32,119,105,116,104,32,116,104,101,32,115,97,109,101,32,110,117,109,98,101,114,32,111,102,32,97,114,103,117,109,101,110,116,115,32,40,36,123,99,125,41,33,96,41,59,10,32,32,32,32,32,32,32,32,32,32,104,91,97,93,46,69,97,91,99,93,32,61,32,98,59,10,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,104,91,97,93,32,61,32,98,44,32,104,91,97,93,46,78,97,32,61,32,99,59,10,32,32,32,32,32,32,125,44,32,97,98,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,97,32,61,32,97,46,114,101,112,108,97,99,101,40,47,91,94,97,45,122,65,45,90,48,45,57,95,93,47,103,44,32,34,36,34,41,59,10,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,97,46,99,104,97,114,67,111,100,101,65,116,40,48,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,52,56,32,60,61,32,98,32,38,38,32,53,55,32,62,61,32,98,32,63,32,96,95,36,123,97,125,96,32,58,32,97,59,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,98,98,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,110,97,109,101,32,61,32,97,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,99,111,110,115,116,114,117,99,116,111,114,32,61,32,98,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,77,97,32,61,32,99,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,75,97,32,61,32,100,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,71,97,32,61,32,101,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,98,98,32,61,32,102,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,81,97,32,61,32,107,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,36,97,32,61,32,103,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,106,98,32,61,32,91,93,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,118,97,114,32,99,98,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,102,111,114,32,40,59,32,98,32,33,61,61,32,99,59,32,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,33,98,46,81,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,69,120,112,101,99,116,101,100,32,110,117,108,108,32,111,114,32,105,110,115,116,97,110,99,101,32,111,102,32,36,123,99,46,110,97,109,101,125,44,32,103,111,116,32,97,110,32,105,110,115,116,97,110,99,101,32,111,102,32,36,123,98,46,110,97,109,101,125,96,41,59,10,32,32,32,32,32,32,32,32,32,32,97,32,61,32,98,46,81,97,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,98,46,71,97,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,97,59,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,100,98,40,97,44,32,98,41,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,110,117,108,108,32,61,61,61,32,98,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,84,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,110,117,108,108,32,105,115,32,110,111,116,32,97,32,118,97,108,105,100,32,36,123,116,104,105,115,46,110,97,109,101,125,96,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,48,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,33,98,46,65,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,67,97,110,110,111,116,32,112,97,115,115,32,34,36,123,101,98,40,98,41,125,34,32,97,115,32,97,32,36,123,116,104,105,115,46,110,97,109,101,125,96,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,33,98,46,65,97,46,67,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,67,97,110,110,111,116,32,112,97,115,115,32,100,101,108,101,116,101,100,32,111,98,106,101,99,116,32,97,115,32,97,32,112,111,105,110,116,101,114,32,111,102,32,116,121,112,101,32,36,123,116,104,105,115,46,110,97,109,101,125,96,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,98,40,98,46,65,97,46,67,97,44,32,98,46,65,97,46,68,97,46,66,97,44,32,116,104,105,115,46,66,97,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,102,98,40,97,44,32,98,41,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,110,117,108,108,32,61,61,61,32,98,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,84,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,110,117,108,108,32,105,115,32,110,111,116,32,97,32,118,97,108,105,100,32,36,123,116,104,105,115,46,110,97,109,101,125,96,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,83,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,116,104,105,115,46,85,97,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,110,117,108,108,32,33,61,61,32,97,32,38,38,32,97,46,112,117,115,104,40,116,104,105,115,46,75,97,44,32,99,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,48,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,33,98,32,124,124,32,33,98,46,65,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,67,97,110,110,111,116,32,112,97,115,115,32,34,36,123,101,98,40,98,41,125,34,32,97,115,32,97,32,36,123,116,104,105,115,46,110,97,109,101,125,96,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,33,98,46,65,97,46,67,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,67,97,110,110,111,116,32,112,97,115,115,32,100,101,108,101,116,101,100,32,111,98,106,101,99,116,32,97,115,32,97,32,112,111,105,110,116,101,114,32,111,102,32,116,121,112,101,32,36,123,116,104,105,115,46,110,97,109,101,125,96,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,82,97,32,38,38,32,98,46,65,97,46,68,97,46,82,97,41,10,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,80,40,10,32,32,32,32,32,32,32,32,32,32,32,32,96,67,97,110,110,111,116,32,99,111,110,118,101,114,116,32,97,114,103,117,109,101,110,116,32,111,102,32,116,121,112,101,32,36,123,98,46,65,97,46,72,97,32,63,32,98,46,65,97,46,72,97,46,110,97,109,101,32,58,32,98,46,65,97,46,68,97,46,110,97,109,101,125,32,116,111,32,112,97,114,97,109,101,116,101,114,32,116,121,112,101,32,36,123,116,104,105,115,46,110,97,109,101,125,96,10,32,32,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,99,32,61,32,99,98,40,98,46,65,97,46,67,97,44,32,98,46,65,97,46,68,97,46,66,97,44,32,116,104,105,115,46,66,97,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,83,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,118,111,105,100,32,48,32,61,61,61,32,98,46,65,97,46,70,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,34,80,97,115,115,105,110,103,32,114,97,119,32,112,111,105,110,116,101,114,32,116,111,32,115,109,97,114,116,32,112,111,105,110,116,101,114,32,105,115,32,105,108,108,101,103,97,108,34,41,59,10,32,32,32,32,32,32,32,32,32,32,115,119,105,116,99,104,32,40,116,104,105,115,46,111,98,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,48,58,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,98,46,65,97,46,72,97,32,61,61,61,32,116,104,105,115,41,32,99,32,61,32,98,46,65,97,46,70,97,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,101,108,115,101,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,80,40,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,96,67,97,110,110,111,116,32,99,111,110,118,101,114,116,32,97,114,103,117,109,101,110,116,32,111,102,32,116,121,112,101,32,36,123,98,46,65,97,46,72,97,32,63,32,98,46,65,97,46,72,97,46,110,97,109,101,32,58,32,98,46,65,97,46,68,97,46,110,97,109,101,125,32,116,111,32,112,97,114,97,109,101,116,101,114,32,116,121,112,101,32,36,123,116,104,105,115,46,110,97,109,101,125,96,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,98,114,101,97,107,59,10,32,32,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,49,58,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,99,32,61,32,98,46,65,97,46,70,97,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,98,114,101,97,107,59,10,32,32,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,50,58,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,98,46,65,97,46,72,97,32,61,61,61,32,116,104,105,115,41,32,99,32,61,32,98,46,65,97,46,70,97,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,98,46,99,108,111,110,101,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,99,32,61,32,116,104,105,115,46,107,98,40,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,99,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,103,98,40,40,41,32,61,62,32,100,91,34,100,101,108,101,116,101,34,93,40,41,41,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,110,117,108,108,32,33,61,61,32,97,32,38,38,32,97,46,112,117,115,104,40,116,104,105,115,46,75,97,44,32,99,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,98,114,101,97,107,59,10,32,32,32,32,32,32,32,32,32,32,32,32,100,101,102,97,117,108,116,58,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,80,40,34,85,110,115,117,112,112,111,114,116,105,110,103,32,115,104,97,114,105,110,103,32,112,111,108,105,99,121,34,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,104,98,40,97,44,32,98,41,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,110,117,108,108,32,61,61,61,32,98,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,84,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,110,117,108,108,32,105,115,32,110,111,116,32,97,32,118,97,108,105,100,32,36,123,116,104,105,115,46,110,97,109,101,125,96,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,48,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,33,98,46,65,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,67,97,110,110,111,116,32,112,97,115,115,32,34,36,123,101,98,40,98,41,125,34,32,97,115,32,97,32,36,123,116,104,105,115,46,110,97,109,101,125,96,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,33,98,46,65,97,46,67,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,67,97,110,110,111,116,32,112,97,115,115,32,100,101,108,101,116,101,100,32,111,98,106,101,99,116,32,97,115,32,97,32,112,111,105,110,116,101,114,32,111,102,32,116,121,112,101,32,36,123,116,104,105,115,46,110,97,109,101,125,96,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,98,46,65,97,46,68,97,46,82,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,67,97,110,110,111,116,32,99,111,110,118,101,114,116,32,97,114,103,117,109,101,110,116,32,111,102,32,116,121,112,101,32,36,123,98,46,65,97,46,68,97,46,110,97,109,101,125,32,116,111,32,112,97,114,97,109,101,116,101,114,32,116,121,112,101,32,36,123,116,104,105,115,46,110,97,109,101,125,96,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,98,40,98,46,65,97,46,67,97,44,32,98,46,65,97,46,68,97,46,66,97,44,32,116,104,105,115,46,66,97,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,105,98,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,44,32,108,44,32,110,44,32,109,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,110,97,109,101,32,61,32,97,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,66,97,32,61,32,98,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,84,97,32,61,32,99,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,82,97,32,61,32,100,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,83,97,32,61,32,101,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,105,98,32,61,32,102,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,111,98,32,61,32,107,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,89,97,32,61,32,103,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,85,97,32,61,32,108,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,107,98,32,61,32,110,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,75,97,32,61,32,109,59,10,32,32,32,32,32,32,32,32,101,32,124,124,32,118,111,105,100,32,48,32,33,61,61,32,98,46,71,97,32,63,32,116,104,105,115,46,116,111,87,105,114,101,84,121,112,101,32,61,32,102,98,32,58,32,40,116,104,105,115,46,116,111,87,105,114,101,84,121,112,101,32,61,32,100,32,63,32,100,98,32,58,32,104,98,44,32,116,104,105,115,46,74,97,32,61,32,110,117,108,108,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,118,97,114,32,106,98,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,33,104,46,104,97,115,79,119,110,80,114,111,112,101,114,116,121,40,97,41,41,32,116,104,114,111,119,32,110,101,119,32,76,40,34,82,101,112,108,97,99,105,110,103,32,110,111,110,101,120,105,115,116,101,110,116,32,112,117,98,108,105,99,32,115,121,109,98,111,108,34,41,59,10,32,32,32,32,32,32,32,32,118,111,105,100,32,48,32,33,61,61,32,104,91,97,93,46,69,97,32,38,38,32,118,111,105,100,32,48,32,33,61,61,32,99,32,63,32,104,91,97,93,46,69,97,91,99,93,32,61,32,98,32,58,32,40,104,91,97,93,32,61,32,98,44,32,104,91,97,93,46,78,97,32,61,32,99,41,59,10,32,32,32,32,32,32,125,44,32,82,44,32,107,98,32,61,32,40,97,44,32,98,44,32,99,32,61,32,91,93,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,97,46,105,110,99,108,117,100,101,115,40,34,106,34,41,32,63,32,40,97,32,61,32,97,46,114,101,112,108,97,99,101,40,47,112,47,103,44,32,34,105,34,41,44,32,98,32,61,32,40,48,44,32,104,91,34,100,121,110,67,97,108,108,95,34,32,43,32,97,93,41,40,98,44,32,46,46,46,99,41,41,32,58,32,98,32,61,32,82,46,103,101,116,40,98,41,40,46,46,46,99,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,98,59,10,32,32,32,32,32,32,125,44,32,108,98,32,61,32,40,97,44,32,98,41,32,61,62,32,40,46,46,46,99,41,32,61,62,32,107,98,40,97,44,32,98,44,32,99,41,44,32,83,32,61,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,97,32,61,32,79,40,97,41,59,10,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,97,46,105,110,99,108,117,100,101,115,40,34,106,34,41,32,63,32,108,98,40,97,44,32,98,41,32,58,32,82,46,103,101,116,40,98,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,34,102,117,110,99,116,105,111,110,34,32,33,61,32,116,121,112,101,111,102,32,99,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,117,110,107,110,111,119,110,32,102,117,110,99,116,105,111,110,32,112,111,105,110,116,101,114,32,119,105,116,104,32,115,105,103,110,97,116,117,114,101,32,36,123,97,125,58,32,36,123,98,125,96,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,59,10,32,32,32,32,32,32,125,44,32,109,98,44,32,111,98,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,97,32,61,32,110,98,40,97,41,59,10,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,79,40,97,41,59,10,32,32,32,32,32,32,32,32,84,40,97,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,98,59,10,32,32,32,32,32,32,125,44,32,112,98,32,61,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,99,40,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,101,91,102,93,32,124,124,32,75,91,102,93,32,124,124,32,40,75,97,91,102,93,32,63,32,75,97,91,102,93,46,102,111,114,69,97,99,104,40,99,41,32,58,32,40,100,46,112,117,115,104,40,102,41,44,32,101,91,102,93,32,61,32,116,114,117,101,41,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,91,93,44,32,101,32,61,32,123,125,59,10,32,32,32,32,32,32,32,32,98,46,102,111,114,69,97,99,104,40,99,41,59,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,109,98,40,96,36,123,97,125,58,32,96,32,43,32,100,46,109,97,112,40,111,98,41,46,106,111,105,110,40,91,34,44,32,34,93,41,41,59,10,32,32,32,32,32,32,125,44,32,113,98,32,61,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,99,32,61,32,91,93,44,32,100,32,61,32,48,59,32,100,32,60,32,97,59,32,100,43,43,41,32,99,46,112,117,115,104,40,68,91,98,32,43,32,52,32,42,32,100,32,62,62,32,50,93,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,59,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,114,98,40,97,41,32,123,10,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,98,32,61,32,49,59,32,98,32,60,32,97,46,108,101,110,103,116,104,59,32,43,43,98,41,32,105,102,32,40,110,117,108,108,32,33,61,61,32,97,91,98,93,32,38,38,32,118,111,105,100,32,48,32,61,61,61,32,97,91,98,93,46,74,97,41,32,114,101,116,117,114,110,32,116,114,117,101,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,115,98,40,97,44,32,98,44,32,99,44,32,100,44,32,101,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,102,32,61,32,98,46,108,101,110,103,116,104,59,10,32,32,32,32,32,32,32,32,105,102,32,40,50,32,62,32,102,41,32,116,104,114,111,119,32,110,101,119,32,80,40,34,97,114,103,84,121,112,101,115,32,97,114,114,97,121,32,115,105,122,101,32,109,105,115,109,97,116,99,104,33,32,77,117,115,116,32,97,116,32,108,101,97,115,116,32,103,101,116,32,114,101,116,117,114,110,32,118,97,108,117,101,32,97,110,100,32,39,116,104,105,115,39,32,116,121,112,101,115,33,34,41,59,10,32,32,32,32,32,32,32,32,118,97,114,32,107,32,61,32,110,117,108,108,32,33,61,61,32,98,91,49,93,32,38,38,32,110,117,108,108,32,33,61,61,32,99,44,32,103,32,61,32,114,98,40,98,41,44,32,108,32,61,32,34,118,111,105,100,34,32,33,61,61,32,98,91,48,93,46,110,97,109,101,44,32,110,32,61,32,102,32,45,32,50,44,32,109,32,61,32,65,114,114,97,121,40,110,41,44,32,113,32,61,32,91,93,44,32,114,32,61,32,91,93,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,89,97,40,97,44,32,102,117,110,99,116,105,111,110,40,46,46,46,65,41,32,123,10,32,32,32,32,32,32,32,32,32,32,114,46,108,101,110,103,116,104,32,61,32,48,59,10,32,32,32,32,32,32,32,32,32,32,113,46,108,101,110,103,116,104,32,61,32,107,32,63,32,50,32,58,32,49,59,10,32,32,32,32,32,32,32,32,32,32,113,91,48,93,32,61,32,101,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,107,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,118,32,61,32,98,91,49,93,46,116,111,87,105,114,101,84,121,112,101,40,114,44,32,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,113,91,49,93,32,61,32,118,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,119,32,61,32,48,59,32,119,32,60,32,110,59,32,43,43,119,41,32,109,91,119,93,32,61,32,98,91,119,32,43,32,50,93,46,116,111,87,105,114,101,84,121,112,101,40,114,44,32,65,91,119,93,41,44,32,113,46,112,117,115,104,40,109,91,119,93,41,59,10,32,32,32,32,32,32,32,32,32,32,65,32,61,32,100,40,46,46,46,113,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,103,41,32,74,97,40,114,41,59,10,32,32,32,32,32,32,32,32,32,32,101,108,115,101,10,32,32,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,119,32,61,32,107,32,63,32,49,32,58,32,50,59,32,119,32,60,32,98,46,108,101,110,103,116,104,59,32,119,43,43,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,69,32,61,32,49,32,61,61,61,32,119,32,63,32,118,32,58,32,109,91,119,32,45,32,50,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,110,117,108,108,32,33,61,61,32,98,91,119,93,46,74,97,32,38,38,32,98,91,119,93,46,74,97,40,69,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,118,32,61,32,108,32,63,32,98,91,48,93,46,102,114,111,109,87,105,114,101,84,121,112,101,40,65,41,32,58,32,118,111,105,100,32,48,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,118,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,118,97,114,32,116,98,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,97,32,61,32,97,46,116,114,105,109,40,41,59,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,98,32,61,32,97,46,105,110,100,101,120,79,102,40,34,40,34,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,45,49,32,33,61,61,32,98,32,63,32,97,46,115,117,98,115,116,114,40,48,44,32,98,41,32,58,32,97,59,10,32,32,32,32,32,32,125,44,32,118,98,32,61,32,91,93,44,32,85,32,61,32,91,93,44,32,119,98,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,57,32,60,32,97,32,38,38,32,48,32,61,61,61,32,45,45,85,91,97,32,43,32,49,93,32,38,38,32,40,85,91,97,93,32,61,32,118,111,105,100,32,48,44,32,118,98,46,112,117,115,104,40,97,41,41,59,10,32,32,32,32,32,32,125,44,32,86,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,33,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,34,67,97,110,110,111,116,32,117,115,101,32,100,101,108,101,116,101,100,32,118,97,108,46,32,104,97,110,100,108,101,32,61,32,34,32,43,32,97,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,85,91,97,93,59,10,32,32,32,32,32,32,125,44,32,103,98,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,115,119,105,116,99,104,32,40,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,118,111,105,100,32,48,58,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,50,59,10,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,110,117,108,108,58,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,52,59,10,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,116,114,117,101,58,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,54,59,10,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,102,97,108,115,101,58,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,56,59,10,32,32,32,32,32,32,32,32,32,32,100,101,102,97,117,108,116,58,10,32,32,32,32,32,32,32,32,32,32,32,32,99,111,110,115,116,32,98,32,61,32,118,98,46,112,111,112,40,41,32,124,124,32,85,46,108,101,110,103,116,104,59,10,32,32,32,32,32,32,32,32,32,32,32,32,85,91,98,93,32,61,32,97,59,10,32,32,32,32,32,32,32,32,32,32,32,32,85,91,98,32,43,32,49,93,32,61,32,49,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,98,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,44,32,120,98,32,61,32,123,10,32,32,32,32,32,32,32,32,110,97,109,101,58,32,34,101,109,115,99,114,105,112,116,101,110,58,58,118,97,108,34,44,10,32,32,32,32,32,32,32,32,102,114,111,109,87,105,114,101,84,121,112,101,58,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,86,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,119,98,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,98,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,116,111,87,105,114,101,84,121,112,101,58,32,40,97,44,32,98,41,32,61,62,32,103,98,40,98,41,44,10,32,32,32,32,32,32,32,32,73,97,58,32,56,44,10,32,32,32,32,32,32,32,32,114,101,97,100,86,97,108,117,101,70,114,111,109,80,111,105,110,116,101,114,58,32,73,44,10,32,32,32,32,32,32,32,32,74,97,58,32,110,117,108,108,10,32,32,32,32,32,32,125,44,32,121,98,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,115,119,105,116,99,104,32,40,98,41,32,123,10,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,49,58,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,32,63,32,102,117,110,99,116,105,111,110,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,102,114,111,109,87,105,114,101,84,121,112,101,40,117,91,100,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,32,58,32,102,117,110,99,116,105,111,110,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,102,114,111,109,87,105,114,101,84,121,112,101,40,120,91,100,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,50,58,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,32,63,32,102,117,110,99,116,105,111,110,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,102,114,111,109,87,105,114,101,84,121,112,101,40,121,91,100,32,62,62,32,49,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,32,58,32,102,117,110,99,116,105,111,110,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,102,114,111,109,87,105,114,101,84,121,112,101,40,122,91,100,32,62,62,32,49,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,52,58,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,32,63,32,102,117,110,99,116,105,111,110,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,102,114,111,109,87,105,114,101,84,121,112,101,40,67,91,100,32,62,62,32,50,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,32,58,32,102,117,110,99,116,105,111,110,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,102,114,111,109,87,105,114,101,84,121,112,101,40,68,91,100,32,62,62,32,50,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,32,32,100,101,102,97,117,108,116,58,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,84,121,112,101,69,114,114,111,114,40,96,105,110,118,97,108,105,100,32,105,110,116,101,103,101,114,32,119,105,100,116,104,32,40,36,123,98,125,41,58,32,36,123,97,125,96,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,44,32,122,98,32,61,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,75,91,97,93,59,10,32,32,32,32,32,32,32,32,105,102,32,40,118,111,105,100,32,48,32,61,61,61,32,99,41,32,116,104,114,111,119,32,97,32,61,32,96,36,123,98,125,32,104,97,115,32,117,110,107,110,111,119,110,32,116,121,112,101,32,36,123,111,98,40,97,41,125,96,44,32,110,101,119,32,80,40,97,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,59,10,32,32,32,32,32,32,125,44,32,101,98,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,110,117,108,108,32,61,61,61,32,97,41,32,114,101,116,117,114,110,32,34,110,117,108,108,34,59,10,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,116,121,112,101,111,102,32,97,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,34,111,98,106,101,99,116,34,32,61,61,61,32,98,32,124,124,32,34,97,114,114,97,121,34,32,61,61,61,32,98,32,124,124,32,34,102,117,110,99,116,105,111,110,34,32,61,61,61,32,98,32,63,32,97,46,116,111,83,116,114,105,110,103,40,41,32,58,32,34,34,32,43,32,97,59,10,32,32,32,32,32,32,125,44,32,65,98,32,61,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,115,119,105,116,99,104,32,40,98,41,32,123,10,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,52,58,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,102,117,110,99,116,105,111,110,40,99,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,102,114,111,109,87,105,114,101,84,121,112,101,40,110,97,91,99,32,62,62,32,50,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,56,58,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,102,117,110,99,116,105,111,110,40,99,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,102,114,111,109,87,105,114,101,84,121,112,101,40,111,97,91,99,32,62,62,32,51,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,32,32,100,101,102,97,117,108,116,58,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,84,121,112,101,69,114,114,111,114,40,96,105,110,118,97,108,105,100,32,102,108,111,97,116,32,119,105,100,116,104,32,40,36,123,98,125,41,58,32,36,123,97,125,96,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,44,32,66,98,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,115,119,105,116,99,104,32,40,98,41,32,123,10,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,49,58,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,32,63,32,40,100,41,32,61,62,32,117,91,100,93,32,58,32,40,100,41,32,61,62,32,120,91,100,93,59,10,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,50,58,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,32,63,32,40,100,41,32,61,62,32,121,91,100,32,62,62,32,49,93,32,58,32,40,100,41,32,61,62,32,122,91,100,32,62,62,32,49,93,59,10,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,52,58,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,32,63,32,40,100,41,32,61,62,32,67,91,100,32,62,62,32,50,93,32,58,32,40,100,41,32,61,62,32,68,91,100,32,62,62,32,50,93,59,10,32,32,32,32,32,32,32,32,32,32,100,101,102,97,117,108,116,58,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,84,121,112,101,69,114,114,111,114,40,96,105,110,118,97,108,105,100,32,105,110,116,101,103,101,114,32,119,105,100,116,104,32,40,36,123,98,125,41,58,32,36,123,97,125,96,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,44,32,67,98,32,61,32,79,98,106,101,99,116,46,97,115,115,105,103,110,40,123,32,111,112,116,105,111,110,97,108,58,32,116,114,117,101,32,125,44,32,120,98,41,44,32,68,98,32,61,32,34,117,110,100,101,102,105,110,101,100,34,32,33,61,32,116,121,112,101,111,102,32,84,101,120,116,68,101,99,111,100,101,114,32,63,32,110,101,119,32,84,101,120,116,68,101,99,111,100,101,114,40,34,117,116,102,45,49,54,108,101,34,41,32,58,32,118,111,105,100,32,48,44,32,69,98,32,61,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,97,32,62,62,32,49,59,10,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,100,32,61,32,99,32,43,32,98,32,47,32,50,59,32,33,40,99,32,62,61,32,100,41,32,38,38,32,122,91,99,93,59,32,41,32,43,43,99,59,10,32,32,32,32,32,32,32,32,99,32,60,60,61,32,49,59,10,32,32,32,32,32,32,32,32,105,102,32,40,51,50,32,60,32,99,32,45,32,97,32,38,38,32,68,98,41,32,114,101,116,117,114,110,32,68,98,46,100,101,99,111,100,101,40,120,46,115,117,98,97,114,114,97,121,40,97,44,32,99,41,41,59,10,32,32,32,32,32,32,32,32,99,32,61,32,34,34,59,10,32,32,32,32,32,32,32,32,102,111,114,32,40,100,32,61,32,48,59,32,33,40,100,32,62,61,32,98,32,47,32,50,41,59,32,43,43,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,101,32,61,32,121,91,97,32,43,32,50,32,42,32,100,32,62,62,32,49,93,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,48,32,61,61,32,101,41,32,98,114,101,97,107,59,10,32,32,32,32,32,32,32,32,32,32,99,32,43,61,32,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,59,10,32,32,32,32,32,32,125,44,32,70,98,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,99,32,63,63,32,40,99,32,61,32,50,49,52,55,52,56,51,54,52,55,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,50,32,62,32,99,41,32,114,101,116,117,114,110,32,48,59,10,32,32,32,32,32,32,32,32,99,32,45,61,32,50,59,10,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,98,59,10,32,32,32,32,32,32,32,32,99,32,61,32,99,32,60,32,50,32,42,32,97,46,108,101,110,103,116,104,32,63,32,99,32,47,32,50,32,58,32,97,46,108,101,110,103,116,104,59,10,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,101,32,61,32,48,59,32,101,32,60,32,99,59,32,43,43,101,41,32,121,91,98,32,62,62,32,49,93,32,61,32,97,46,99,104,97,114,67,111,100,101,65,116,40,101,41,44,32,98,32,43,61,32,50,59,10,32,32,32,32,32,32,32,32,121,91,98,32,62,62,32,49,93,32,61,32,48,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,98,32,45,32,100,59,10,32,32,32,32,32,32,125,44,32,71,98,32,61,32,40,97,41,32,61,62,32,50,32,42,32,97,46,108,101,110,103,116,104,44,32,72,98,32,61,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,99,32,61,32,48,44,32,100,32,61,32,34,34,59,32,33,40,99,32,62,61,32,98,32,47,32,52,41,59,32,41,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,101,32,61,32,67,91,97,32,43,32,52,32,42,32,99,32,62,62,32,50,93,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,48,32,61,61,32,101,41,32,98,114,101,97,107,59,10,32,32,32,32,32,32,32,32,32,32,43,43,99,59,10,32,32,32,32,32,32,32,32,32,32,54,53,53,51,54,32,60,61,32,101,32,63,32,40,101,32,45,61,32,54,53,53,51,54,44,32,100,32,43,61,32,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,53,53,50,57,54,32,124,32,101,32,62,62,32,49,48,44,32,53,54,51,50,48,32,124,32,101,32,38,32,49,48,50,51,41,41,32,58,32,100,32,43,61,32,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,101,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,100,59,10,32,32,32,32,32,32,125,44,32,73,98,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,99,32,63,63,32,40,99,32,61,32,50,49,52,55,52,56,51,54,52,55,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,52,32,62,32,99,41,32,114,101,116,117,114,110,32,48,59,10,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,98,59,10,32,32,32,32,32,32,32,32,99,32,61,32,100,32,43,32,99,32,45,32,52,59,10,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,101,32,61,32,48,59,32,101,32,60,32,97,46,108,101,110,103,116,104,59,32,43,43,101,41,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,102,32,61,32,97,46,99,104,97,114,67,111,100,101,65,116,40,101,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,53,53,50,57,54,32,60,61,32,102,32,38,38,32,53,55,51,52,51,32,62,61,32,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,107,32,61,32,97,46,99,104,97,114,67,111,100,101,65,116,40,43,43,101,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,102,32,61,32,54,53,53,51,54,32,43,32,40,40,102,32,38,32,49,48,50,51,41,32,60,60,32,49,48,41,32,124,32,107,32,38,32,49,48,50,51,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,67,91,98,32,62,62,32,50,93,32,61,32,102,59,10,32,32,32,32,32,32,32,32,32,32,98,32,43,61,32,52,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,98,32,43,32,52,32,62,32,99,41,32,98,114,101,97,107,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,67,91,98,32,62,62,32,50,93,32,61,32,48,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,98,32,45,32,100,59,10,32,32,32,32,32,32,125,44,32,74,98,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,98,32,61,32,48,44,32,99,32,61,32,48,59,32,99,32,60,32,97,46,108,101,110,103,116,104,59,32,43,43,99,41,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,97,46,99,104,97,114,67,111,100,101,65,116,40,99,41,59,10,32,32,32,32,32,32,32,32,32,32,53,53,50,57,54,32,60,61,32,100,32,38,38,32,53,55,51,52,51,32,62,61,32,100,32,38,38,32,43,43,99,59,10,32,32,32,32,32,32,32,32,32,32,98,32,43,61,32,52,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,98,59,10,32,32,32,32,32,32,125,44,32,75,98,32,61,32,48,44,32,76,98,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,91,93,59,10,32,32,32,32,32,32,32,32,97,32,61,32,97,46,116,111,87,105,114,101,84,121,112,101,40,100,44,32,99,41,59,10,32,32,32,32,32,32,32,32,100,46,108,101,110,103,116,104,32,38,38,32,40,68,91,98,32,62,62,32,50,93,32,61,32,103,98,40,100,41,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,97,59,10,32,32,32,32,32,32,125,44,32,77,98,32,61,32,91,93,44,32,78,98,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,77,98,46,108,101,110,103,116,104,59,10,32,32,32,32,32,32,32,32,77,98,46,112,117,115,104,40,97,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,98,59,10,32,32,32,32,32,32,125,44,32,79,98,32,61,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,99,32,61,32,65,114,114,97,121,40,97,41,44,32,100,32,61,32,48,59,32,100,32,60,32,97,59,32,43,43,100,41,32,99,91,100,93,32,61,32,122,98,40,68,91,98,32,43,32,52,32,42,32,100,32,62,62,32,50,93,44,32,34,112,97,114,97,109,101,116,101,114,32,34,32,43,32,100,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,59,10,32,32,32,32,32,32,125,44,32,80,98,32,61,32,82,101,102,108,101,99,116,46,99,111,110,115,116,114,117,99,116,44,32,81,98,32,61,32,123,125,44,32,82,98,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,33,40,97,32,105,110,115,116,97,110,99,101,111,102,32,65,97,32,124,124,32,34,117,110,119,105,110,100,34,32,61,61,32,97,41,41,32,116,104,114,111,119,32,97,59,10,32,32,32,32,32,32,125,44,32,83,98,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,109,97,32,61,32,97,59,10,32,32,32,32,32,32,32,32,67,97,32,124,124,32,48,32,60,32,75,98,32,124,124,32,40,104,46,111,110,69,120,105,116,63,46,40,97,41,44,32,108,97,32,61,32,116,114,117,101,41,59,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,65,97,40,97,41,59,10,32,32,32,32,32,32,125,44,32,84,98,32,61,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,33,108,97,41,10,32,32,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,97,40,41,44,32,33,40,67,97,32,124,124,32,48,32,60,32,75,98,41,41,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,109,97,32,61,32,97,32,61,32,109,97,44,32,83,98,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,98,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,82,98,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,98,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,82,98,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,44,32,85,98,32,61,32,123,125,44,32,87,98,32,61,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,33,86,98,41,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,97,32,61,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,85,83,69,82,58,32,34,119,101,98,95,117,115,101,114,34,44,10,32,32,32,32,32,32,32,32,32,32,32,32,76,79,71,78,65,77,69,58,32,34,119,101,98,95,117,115,101,114,34,44,10,32,32,32,32,32,32,32,32,32,32,32,32,80,65,84,72,58,32,34,47,34,44,10,32,32,32,32,32,32,32,32,32,32,32,32,80,87,68,58,32,34,47,34,44,10,32,32,32,32,32,32,32,32,32,32,32,32,72,79,77,69,58,32,34,47,104,111,109,101,47,119,101,98,95,117,115,101,114,34,44,10,32,32,32,32,32,32,32,32,32,32,32,32,76,65,78,71,58,32,40,34,111,98,106,101,99,116,34,32,61,61,32,116,121,112,101,111,102,32,110,97,118,105,103,97,116,111,114,32,38,38,32,110,97,118,105,103,97,116,111,114,46,108,97,110,103,117,97,103,101,115,32,38,38,32,110,97,118,105,103,97,116,111,114,46,108,97,110,103,117,97,103,101,115,91,48,93,32,124,124,32,34,67,34,41,46,114,101,112,108,97,99,101,40,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,34,45,34,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,34,95,34,10,32,32,32,32,32,32,32,32,32,32,32,32,41,32,43,32,34,46,85,84,70,45,56,34,44,10,32,32,32,32,32,32,32,32,32,32,32,32,95,58,32,104,97,32,124,124,32,34,46,47,116,104,105,115,46,112,114,111,103,114,97,109,34,10,32,32,32,32,32,32,32,32,32,32,125,44,32,98,59,10,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,98,32,105,110,32,85,98,41,32,118,111,105,100,32,48,32,61,61,61,32,85,98,91,98,93,32,63,32,100,101,108,101,116,101,32,97,91,98,93,32,58,32,97,91,98,93,32,61,32,85,98,91,98,93,59,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,91,93,59,10,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,98,32,105,110,32,97,41,32,99,46,112,117,115,104,40,96,36,123,98,125,61,36,123,97,91,98,93,125,96,41,59,10,32,32,32,32,32,32,32,32,32,32,86,98,32,61,32,99,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,86,98,59,10,32,32,32,32,32,32,125,44,32,86,98,44,32,88,98,32,61,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,34,111,98,106,101,99,116,34,32,61,61,32,116,121,112,101,111,102,32,99,114,121,112,116,111,32,38,38,32,34,102,117,110,99,116,105,111,110,34,32,61,61,32,116,121,112,101,111,102,32,99,114,121,112,116,111,46,103,101,116,82,97,110,100,111,109,86,97,108,117,101,115,41,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,40,97,41,32,61,62,32,99,114,121,112,116,111,46,103,101,116,82,97,110,100,111,109,86,97,108,117,101,115,40,97,41,59,10,32,32,32,32,32,32,32,32,117,97,40,34,105,110,105,116,82,97,110,100,111,109,68,101,118,105,99,101,34,41,59,10,32,32,32,32,32,32,125,44,32,89,98,32,61,32,40,97,41,32,61,62,32,40,89,98,32,61,32,88,98,40,41,41,40,97,41,59,10,32,32,32,32,32,32,76,32,61,32,104,46,73,110,116,101,114,110,97,108,69,114,114,111,114,32,61,32,99,108,97,115,115,32,101,120,116,101,110,100,115,32,69,114,114,111,114,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,40,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,115,117,112,101,114,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,110,97,109,101,32,61,32,34,73,110,116,101,114,110,97,108,69,114,114,111,114,34,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,90,98,32,61,32,65,114,114,97,121,40,50,53,54,41,44,32,36,98,32,61,32,48,59,32,50,53,54,32,62,32,36,98,59,32,43,43,36,98,41,32,90,98,91,36,98,93,32,61,32,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,36,98,41,59,10,32,32,32,32,32,32,76,97,32,61,32,90,98,59,10,32,32,32,32,32,32,80,32,61,32,104,46,66,105,110,100,105,110,103,69,114,114,111,114,32,61,32,99,108,97,115,115,32,101,120,116,101,110,100,115,32,69,114,114,111,114,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,40,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,115,117,112,101,114,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,110,97,109,101,32,61,32,34,66,105,110,100,105,110,103,69,114,114,111,114,34,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,79,98,106,101,99,116,46,97,115,115,105,103,110,40,88,97,46,112,114,111,116,111,116,121,112,101,44,32,123,10,32,32,32,32,32,32,32,32,105,115,65,108,105,97,115,79,102,58,32,102,117,110,99,116,105,111,110,40,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,33,40,116,104,105,115,32,105,110,115,116,97,110,99,101,111,102,32,88,97,32,38,38,32,97,32,105,110,115,116,97,110,99,101,111,102,32,88,97,41,41,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,116,104,105,115,46,65,97,46,68,97,46,66,97,44,32,99,32,61,32,116,104,105,115,46,65,97,46,67,97,59,10,32,32,32,32,32,32,32,32,32,32,97,46,65,97,32,61,32,97,46,65,97,59,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,97,46,65,97,46,68,97,46,66,97,59,10,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,97,32,61,32,97,46,65,97,46,67,97,59,32,98,46,71,97,59,32,41,32,99,32,61,32,98,46,81,97,40,99,41,44,32,98,32,61,32,98,46,71,97,59,10,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,59,32,100,46,71,97,59,32,41,32,97,32,61,32,100,46,81,97,40,97,41,44,32,100,32,61,32,100,46,71,97,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,98,32,61,61,61,32,100,32,38,38,32,99,32,61,61,61,32,97,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,99,108,111,110,101,58,32,102,117,110,99,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,65,97,46,67,97,32,124,124,32,79,97,40,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,65,97,46,80,97,41,32,114,101,116,117,114,110,32,116,104,105,115,46,65,97,46,99,111,117,110,116,46,118,97,108,117,101,32,43,61,32,49,44,32,116,104,105,115,59,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,97,32,61,32,81,44,32,98,32,61,32,79,98,106,101,99,116,44,32,99,32,61,32,98,46,99,114,101,97,116,101,44,32,100,32,61,32,79,98,106,101,99,116,46,103,101,116,80,114,111,116,111,116,121,112,101,79,102,40,116,104,105,115,41,44,32,101,32,61,32,116,104,105,115,46,65,97,59,10,32,32,32,32,32,32,32,32,32,32,97,32,61,32,97,40,10,32,32,32,32,32,32,32,32,32,32,32,32,99,46,99,97,108,108,40,98,44,32,100,44,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,65,97,58,32,123,32,118,97,108,117,101,58,32,123,32,99,111,117,110,116,58,32,101,46,99,111,117,110,116,44,32,79,97,58,32,101,46,79,97,44,32,80,97,58,32,101,46,80,97,44,32,67,97,58,32,101,46,67,97,44,32,68,97,58,32,101,46,68,97,44,32,70,97,58,32,101,46,70,97,44,32,72,97,58,32,101,46,72,97,32,125,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,10,32,32,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,32,32,97,46,65,97,46,99,111,117,110,116,46,118,97,108,117,101,32,43,61,32,49,59,10,32,32,32,32,32,32,32,32,32,32,97,46,65,97,46,79,97,32,61,32,102,97,108,115,101,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,97,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,91,34,100,101,108,101,116,101,34,93,40,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,65,97,46,67,97,32,124,124,32,79,97,40,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,65,97,46,79,97,32,38,38,32,33,116,104,105,115,46,65,97,46,80,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,34,79,98,106,101,99,116,32,97,108,114,101,97,100,121,32,115,99,104,101,100,117,108,101,100,32,102,111,114,32,100,101,108,101,116,105,111,110,34,41,59,10,32,32,32,32,32,32,32,32,32,32,81,97,40,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,97,32,61,32,116,104,105,115,46,65,97,59,10,32,32,32,32,32,32,32,32,32,32,45,45,97,46,99,111,117,110,116,46,118,97,108,117,101,59,10,32,32,32,32,32,32,32,32,32,32,48,32,61,61,61,32,97,46,99,111,117,110,116,46,118,97,108,117,101,32,38,38,32,40,97,46,70,97,32,63,32,97,46,72,97,46,75,97,40,97,46,70,97,41,32,58,32,97,46,68,97,46,66,97,46,75,97,40,97,46,67,97,41,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,65,97,46,80,97,32,124,124,32,40,116,104,105,115,46,65,97,46,70,97,32,61,32,118,111,105,100,32,48,44,32,116,104,105,115,46,65,97,46,67,97,32,61,32,118,111,105,100,32,48,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,105,115,68,101,108,101,116,101,100,58,32,102,117,110,99,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,33,116,104,105,115,46,65,97,46,67,97,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,100,101,108,101,116,101,76,97,116,101,114,58,32,102,117,110,99,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,65,97,46,67,97,32,124,124,32,79,97,40,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,65,97,46,79,97,32,38,38,32,33,116,104,105,115,46,65,97,46,80,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,34,79,98,106,101,99,116,32,97,108,114,101,97,100,121,32,115,99,104,101,100,117,108,101,100,32,102,111,114,32,100,101,108,101,116,105,111,110,34,41,59,10,32,32,32,32,32,32,32,32,32,32,87,97,46,112,117,115,104,40,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,65,97,46,79,97,32,61,32,116,114,117,101,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,79,98,106,101,99,116,46,97,115,115,105,103,110,40,105,98,46,112,114,111,116,111,116,121,112,101,44,32,123,10,32,32,32,32,32,32,32,32,99,98,40,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,89,97,32,38,38,32,40,97,32,61,32,116,104,105,115,46,89,97,40,97,41,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,97,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,87,97,40,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,75,97,63,46,40,97,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,73,97,58,32,56,44,10,32,32,32,32,32,32,32,32,114,101,97,100,86,97,108,117,101,70,114,111,109,80,111,105,110,116,101,114,58,32,73,44,10,32,32,32,32,32,32,32,32,102,114,111,109,87,105,114,101,84,121,112,101,58,32,102,117,110,99,116,105,111,110,40,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,98,40,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,83,97,32,63,32,86,97,40,116,104,105,115,46,66,97,46,77,97,44,32,123,32,68,97,58,32,116,104,105,115,46,105,98,44,32,67,97,58,32,99,44,32,72,97,58,32,116,104,105,115,44,32,70,97,58,32,97,32,125,41,32,58,32,86,97,40,116,104,105,115,46,66,97,46,77,97,44,32,123,32,68,97,58,32,116,104,105,115,44,32,67,97,58,32,97,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,116,104,105,115,46,99,98,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,33,99,41,32,114,101,116,117,114,110,32,116,104,105,115,46,87,97,40,97,41,44,32,110,117,108,108,59,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,85,97,40,116,104,105,115,46,66,97,44,32,99,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,118,111,105,100,32,48,32,33,61,61,32,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,48,32,61,61,61,32,100,46,65,97,46,99,111,117,110,116,46,118,97,108,117,101,41,32,114,101,116,117,114,110,32,100,46,65,97,46,67,97,32,61,32,99,44,32,100,46,65,97,46,70,97,32,61,32,97,44,32,100,46,99,108,111,110,101,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,100,32,61,32,100,46,99,108,111,110,101,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,87,97,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,100,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,100,32,61,32,116,104,105,115,46,66,97,46,98,98,40,99,41,59,10,32,32,32,32,32,32,32,32,32,32,100,32,61,32,83,97,91,100,93,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,33,100,41,32,114,101,116,117,114,110,32,98,46,99,97,108,108,40,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,100,32,61,32,116,104,105,115,46,82,97,32,63,32,100,46,90,97,32,58,32,100,46,112,111,105,110,116,101,114,84,121,112,101,59,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,101,32,61,32,82,97,40,99,44,32,116,104,105,115,46,66,97,44,32,100,46,66,97,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,110,117,108,108,32,61,61,61,32,101,32,63,32,98,46,99,97,108,108,40,116,104,105,115,41,32,58,32,116,104,105,115,46,83,97,32,63,32,86,97,40,100,46,66,97,46,77,97,44,32,123,32,68,97,58,32,100,44,32,67,97,58,32,101,44,32,72,97,58,32,116,104,105,115,44,32,70,97,58,32,97,32,125,41,32,58,32,86,97,40,100,46,66,97,46,77,97,44,32,123,32,68,97,58,32,100,44,32,67,97,58,32,101,32,125,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,109,98,32,61,32,104,46,85,110,98,111,117,110,100,84,121,112,101,69,114,114,111,114,32,61,32,40,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,89,97,40,98,44,32,102,117,110,99,116,105,111,110,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,110,97,109,101,32,61,32,98,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,109,101,115,115,97,103,101,32,61,32,100,59,10,32,32,32,32,32,32,32,32,32,32,100,32,61,32,69,114,114,111,114,40,100,41,46,115,116,97,99,107,59,10,32,32,32,32,32,32,32,32,32,32,118,111,105,100,32,48,32,33,61,61,32,100,32,38,38,32,40,116,104,105,115,46,115,116,97,99,107,32,61,32,116,104,105,115,46,116,111,83,116,114,105,110,103,40,41,32,43,32,34,92,110,34,32,43,32,100,46,114,101,112,108,97,99,101,40,47,94,69,114,114,111,114,40,58,91,94,92,110,93,42,41,63,92,110,47,44,32,34,34,41,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,99,46,112,114,111,116,111,116,121,112,101,32,61,32,79,98,106,101,99,116,46,99,114,101,97,116,101,40,97,46,112,114,111,116,111,116,121,112,101,41,59,10,32,32,32,32,32,32,32,32,99,46,112,114,111,116,111,116,121,112,101,46,99,111,110,115,116,114,117,99,116,111,114,32,61,32,99,59,10,32,32,32,32,32,32,32,32,99,46,112,114,111,116,111,116,121,112,101,46,116,111,83,116,114,105,110,103,32,61,32,102,117,110,99,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,118,111,105,100,32,48,32,61,61,61,32,116,104,105,115,46,109,101,115,115,97,103,101,32,63,32,116,104,105,115,46,110,97,109,101,32,58,32,96,36,123,116,104,105,115,46,110,97,109,101,125,58,32,36,123,116,104,105,115,46,109,101,115,115,97,103,101,125,96,59,10,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,59,10,32,32,32,32,32,32,125,41,40,69,114,114,111,114,44,32,34,85,110,98,111,117,110,100,84,121,112,101,69,114,114,111,114,34,41,59,10,32,32,32,32,32,32,85,46,112,117,115,104,40,48,44,32,49,44,32,118,111,105,100,32,48,44,32,49,44,32,110,117,108,108,44,32,49,44,32,116,114,117,101,44,32,49,44,32,102,97,108,115,101,44,32,49,41,59,10,32,32,32,32,32,32,104,46,99,111,117,110,116,95,101,109,118,97,108,95,104,97,110,100,108,101,115,32,61,32,40,41,32,61,62,32,85,46,108,101,110,103,116,104,32,47,32,50,32,45,32,53,32,45,32,118,98,46,108,101,110,103,116,104,59,10,32,32,32,32,32,32,118,97,114,32,108,99,32,61,32,123,10,32,32,32,32,32,32,32,32,99,58,32,40,97,44,32,98,44,32,99,44,32,100,41,32,61,62,32,117,97,40,10,32,32,32,32,32,32,32,32,32,32,96,65,115,115,101,114,116,105,111,110,32,102,97,105,108,101,100,58,32,36,123,97,32,63,32,69,97,40,97,41,32,58,32,34,34,125,44,32,97,116,58,32,96,32,43,32,91,98,32,63,32,98,32,63,32,69,97,40,98,41,32,58,32,34,34,32,58,32,34,117,110,107,110,111,119,110,32,102,105,108,101,110,97,109,101,34,44,32,99,44,32,100,32,63,32,100,32,63,32,69,97,40,100,41,32,58,32,34,34,32,58,32,34,117,110,107,110,111,119,110,32,102,117,110,99,116,105,111,110,34,93,10,32,32,32,32,32,32,32,32,41,44,10,32,32,32,32,32,32,32,32,106,58,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,110,101,119,32,70,97,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,68,91,100,46,67,97,32,43,32,49,54,32,62,62,32,50,93,32,61,32,48,59,10,32,32,32,32,32,32,32,32,32,32,68,91,100,46,67,97,32,43,32,52,32,62,62,32,50,93,32,61,32,98,59,10,32,32,32,32,32,32,32,32,32,32,68,91,100,46,67,97,32,43,32,56,32,62,62,32,50,93,32,61,32,99,59,10,32,32,32,32,32,32,32,32,32,32,71,97,32,61,32,97,59,10,32,32,32,32,32,32,32,32,32,32,72,97,43,43,59,10,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,71,97,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,80,58,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,77,58,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,78,58,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,82,58,32,102,117,110,99,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,79,58,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,84,58,32,40,41,32,61,62,32,117,97,40,34,34,41,44,10,32,32,32,32,32,32,32,32,119,58,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,73,97,91,97,93,59,10,32,32,32,32,32,32,32,32,32,32,100,101,108,101,116,101,32,73,97,91,97,93,59,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,98,46,85,97,44,32,100,32,61,32,98,46,75,97,44,32,101,32,61,32,98,46,88,97,44,32,102,32,61,32,101,46,109,97,112,40,40,107,41,32,61,62,32,107,46,103,98,41,46,99,111,110,99,97,116,40,101,46,109,97,112,40,40,107,41,32,61,62,32,107,46,109,98,41,41,59,10,32,32,32,32,32,32,32,32,32,32,78,40,91,97,93,44,32,102,44,32,40,107,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,103,32,61,32,123,125,59,10,32,32,32,32,32,32,32,32,32,32,32,32,101,46,102,111,114,69,97,99,104,40,40,108,44,32,110,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,109,32,61,32,107,91,110,93,44,32,113,32,61,32,108,46,101,98,44,32,114,32,61,32,108,46,102,98,44,32,65,32,61,32,107,91,110,32,43,32,101,46,108,101,110,103,116,104,93,44,32,118,32,61,32,108,46,108,98,44,32,119,32,61,32,108,46,110,98,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,103,91,108,46,97,98,93,32,61,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,97,100,58,32,40,69,41,32,61,62,32,109,46,102,114,111,109,87,105,114,101,84,121,112,101,40,113,40,114,44,32,69,41,41,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,119,114,105,116,101,58,32,40,69,44,32,100,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,66,32,61,32,91,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,40,119,44,32,69,44,32,65,46,116,111,87,105,114,101,84,121,112,101,40,66,44,32,100,97,41,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,74,97,40,66,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,91,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,110,97,109,101,58,32,98,46,110,97,109,101,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,102,114,111,109,87,105,114,101,84,121,112,101,58,32,40,108,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,110,32,61,32,123,125,44,32,109,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,109,32,105,110,32,103,41,32,110,91,109,93,32,61,32,103,91,109,93,46,114,101,97,100,40,108,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,100,40,108,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,110,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,111,87,105,114,101,84,121,112,101,58,32,40,108,44,32,110,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,109,32,105,110,32,103,41,32,105,102,32,40,33,40,109,32,105,110,32,110,41,41,32,116,104,114,111,119,32,110,101,119,32,84,121,112,101,69,114,114,111,114,40,96,77,105,115,115,105,110,103,32,102,105,101,108,100,58,32,34,36,123,109,125,34,96,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,113,32,61,32,99,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,109,32,105,110,32,103,41,32,103,91,109,93,46,119,114,105,116,101,40,113,44,32,110,91,109,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,110,117,108,108,32,33,61,61,32,108,32,38,38,32,108,46,112,117,115,104,40,100,44,32,113,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,113,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,73,97,58,32,56,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,97,100,86,97,108,117,101,70,114,111,109,80,111,105,110,116,101,114,58,32,73,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,74,97,58,32,100,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,93,59,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,70,58,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,95,58,32,40,97,44,32,98,44,32,99,44,32,100,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,79,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,77,40,97,44,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,110,97,109,101,58,32,98,44,10,32,32,32,32,32,32,32,32,32,32,32,32,102,114,111,109,87,105,114,101,84,121,112,101,58,32,102,117,110,99,116,105,111,110,40,101,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,33,33,101,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,32,32,32,32,116,111,87,105,114,101,84,121,112,101,58,32,102,117,110,99,116,105,111,110,40,101,44,32,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,102,32,63,32,99,32,58,32,100,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,32,32,32,32,73,97,58,32,56,44,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,97,100,86,97,108,117,101,70,114,111,109,80,111,105,110,116,101,114,58,32,102,117,110,99,116,105,111,110,40,101,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,102,114,111,109,87,105,114,101,84,121,112,101,40,120,91,101,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,32,32,32,32,74,97,58,32,110,117,108,108,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,109,58,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,44,32,108,44,32,110,44,32,109,44,32,113,44,32,114,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,109,32,61,32,79,40,109,41,59,10,32,32,32,32,32,32,32,32,32,32,102,32,61,32,83,40,101,44,32,102,41,59,10,32,32,32,32,32,32,32,32,32,32,103,32,38,38,32,40,103,32,61,32,83,40,107,44,32,103,41,41,59,10,32,32,32,32,32,32,32,32,32,32,110,32,38,38,32,40,110,32,61,32,83,40,108,44,32,110,41,41,59,10,32,32,32,32,32,32,32,32,32,32,114,32,61,32,83,40,113,44,32,114,41,59,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,65,32,61,32,97,98,40,109,41,59,10,32,32,32,32,32,32,32,32,32,32,36,97,40,65,44,32,102,117,110,99,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,112,98,40,96,67,97,110,110,111,116,32,99,111,110,115,116,114,117,99,116,32,36,123,109,125,32,100,117,101,32,116,111,32,117,110,98,111,117,110,100,32,116,121,112,101,115,96,44,32,91,100,93,41,59,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,78,40,91,97,44,32,98,44,32,99,93,44,32,100,32,63,32,91,100,93,32,58,32,91,93,44,32,40,118,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,32,61,32,118,91,48,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,119,32,61,32,118,46,66,97,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,69,32,61,32,119,46,77,97,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,69,32,61,32,88,97,46,112,114,111,116,111,116,121,112,101,59,10,32,32,32,32,32,32,32,32,32,32,32,32,118,32,61,32,89,97,40,109,44,32,102,117,110,99,116,105,111,110,40,46,46,46,78,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,79,98,106,101,99,116,46,103,101,116,80,114,111,116,111,116,121,112,101,79,102,40,116,104,105,115,41,32,33,61,61,32,100,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,34,85,115,101,32,39,110,101,119,39,32,116,111,32,99,111,110,115,116,114,117,99,116,32,34,32,43,32,109,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,118,111,105,100,32,48,32,61,61,61,32,66,46,76,97,41,32,116,104,114,111,119,32,110,101,119,32,80,40,109,32,43,32,34,32,104,97,115,32,110,111,32,97,99,99,101,115,115,105,98,108,101,32,99,111,110,115,116,114,117,99,116,111,114,34,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,117,98,32,61,32,66,46,76,97,91,78,97,46,108,101,110,103,116,104,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,118,111,105,100,32,48,32,61,61,61,32,117,98,41,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,80,40,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,96,84,114,105,101,100,32,116,111,32,105,110,118,111,107,101,32,99,116,111,114,32,111,102,32,36,123,109,125,32,119,105,116,104,32,105,110,118,97,108,105,100,32,110,117,109,98,101,114,32,111,102,32,112,97,114,97,109,101,116,101,114,115,32,40,36,123,78,97,46,108,101,110,103,116,104,125,41,32,45,32,101,120,112,101,99,116,101,100,32,40,36,123,79,98,106,101,99,116,46,107,101,121,115,40,66,46,76,97,41,46,116,111,83,116,114,105,110,103,40,41,125,41,32,112,97,114,97,109,101,116,101,114,115,32,105,110,115,116,101,97,100,33,96,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,117,98,46,97,112,112,108,121,40,116,104,105,115,44,32,78,97,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,100,97,32,61,32,79,98,106,101,99,116,46,99,114,101,97,116,101,40,69,44,32,123,32,99,111,110,115,116,114,117,99,116,111,114,58,32,123,32,118,97,108,117,101,58,32,118,32,125,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,118,46,112,114,111,116,111,116,121,112,101,32,61,32,100,97,59,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,66,32,61,32,110,101,119,32,98,98,40,109,44,32,118,44,32,100,97,44,32,114,44,32,119,44,32,102,44,32,103,44,32,110,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,66,46,71,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,101,97,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,40,101,97,32,61,32,66,46,71,97,41,46,86,97,32,63,63,32,40,101,97,46,86,97,32,61,32,91,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,66,46,71,97,46,86,97,46,112,117,115,104,40,66,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,119,32,61,32,110,101,119,32,105,98,40,109,44,32,66,44,32,116,114,117,101,44,32,102,97,108,115,101,44,32,102,97,108,115,101,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,101,97,32,61,32,110,101,119,32,105,98,40,109,32,43,32,34,42,34,44,32,66,44,32,102,97,108,115,101,44,32,102,97,108,115,101,44,32,102,97,108,115,101,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,69,32,61,32,110,101,119,32,105,98,40,109,32,43,32,34,32,99,111,110,115,116,42,34,44,32,66,44,32,102,97,108,115,101,44,32,116,114,117,101,44,32,102,97,108,115,101,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,83,97,91,97,93,32,61,32,123,32,112,111,105,110,116,101,114,84,121,112,101,58,32,101,97,44,32,90,97,58,32,69,32,125,59,10,32,32,32,32,32,32,32,32,32,32,32,32,106,98,40,65,44,32,118,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,91,119,44,32,101,97,44,32,69,93,59,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,114,58,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,107,32,61,32,113,98,40,98,44,32,99,41,59,10,32,32,32,32,32,32,32,32,32,32,101,32,61,32,83,40,100,44,32,101,41,59,10,32,32,32,32,32,32,32,32,32,32,78,40,91,93,44,32,91,97,93,44,32,40,103,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,103,32,61,32,103,91,48,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,108,32,61,32,96,99,111,110,115,116,114,117,99,116,111,114,32,36,123,103,46,110,97,109,101,125,96,59,10,32,32,32,32,32,32,32,32,32,32,32,32,118,111,105,100,32,48,32,61,61,61,32,103,46,66,97,46,76,97,32,38,38,32,40,103,46,66,97,46,76,97,32,61,32,91,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,118,111,105,100,32,48,32,33,61,61,32,103,46,66,97,46,76,97,91,98,32,45,32,49,93,41,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,80,40,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,96,67,97,110,110,111,116,32,114,101,103,105,115,116,101,114,32,109,117,108,116,105,112,108,101,32,99,111,110,115,116,114,117,99,116,111,114,115,32,119,105,116,104,32,105,100,101,110,116,105,99,97,108,32,110,117,109,98,101,114,32,111,102,32,112,97,114,97,109,101,116,101,114,115,32,40,36,123,98,32,45,32,49,125,41,32,102,111,114,32,99,108,97,115,115,32,39,36,123,103,46,110,97,109,101,125,39,33,32,79,118,101,114,108,111,97,100,32,114,101,115,111,108,117,116,105,111,110,32,105,115,32,99,117,114,114,101,110,116,108,121,32,111,110,108,121,32,112,101,114,102,111,114,109,101,100,32,117,115,105,110,103,32,116,104,101,32,112,97,114,97,109,101,116,101,114,32,99,111,117,110,116,44,32,110,111,116,32,97,99,116,117,97,108,32,116,121,112,101,32,105,110,102,111,33,96,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,103,46,66,97,46,76,97,91,98,32,45,32,49,93,32,61,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,112,98,40,96,67,97,110,110,111,116,32,99,111,110,115,116,114,117,99,116,32,36,123,103,46,110,97,109,101,125,32,100,117,101,32,116,111,32,117,110,98,111,117,110,100,32,116,121,112,101,115,96,44,32,107,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,32,32,32,32,78,40,91,93,44,32,107,44,32,40,110,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,110,46,115,112,108,105,99,101,40,49,44,32,48,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,103,46,66,97,46,76,97,91,98,32,45,32,49,93,32,61,32,115,98,40,108,44,32,110,44,32,110,117,108,108,44,32,101,44,32,102,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,91,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,91,93,59,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,100,58,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,108,32,61,32,113,98,40,99,44,32,100,41,59,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,79,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,116,98,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,102,32,61,32,83,40,101,44,32,102,41,59,10,32,32,32,32,32,32,32,32,32,32,78,40,91,93,44,32,91,97,93,44,32,40,110,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,109,40,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,112,98,40,96,67,97,110,110,111,116,32,99,97,108,108,32,36,123,113,125,32,100,117,101,32,116,111,32,117,110,98,111,117,110,100,32,116,121,112,101,115,96,44,32,108,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,110,32,61,32,110,91,48,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,113,32,61,32,96,36,123,110,46,110,97,109,101,125,46,36,123,98,125,96,59,10,32,32,32,32,32,32,32,32,32,32,32,32,98,46,115,116,97,114,116,115,87,105,116,104,40,34,64,64,34,41,32,38,38,32,40,98,32,61,32,83,121,109,98,111,108,91,98,46,115,117,98,115,116,114,105,110,103,40,50,41,93,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,103,32,38,38,32,110,46,66,97,46,106,98,46,112,117,115,104,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,114,32,61,32,110,46,66,97,46,77,97,44,32,65,32,61,32,114,91,98,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,118,111,105,100,32,48,32,61,61,61,32,65,32,124,124,32,118,111,105,100,32,48,32,61,61,61,32,65,46,69,97,32,38,38,32,65,46,99,108,97,115,115,78,97,109,101,32,33,61,61,32,110,46,110,97,109,101,32,38,38,32,65,46,78,97,32,61,61,61,32,99,32,45,32,50,32,63,32,40,109,46,78,97,32,61,32,99,32,45,32,50,44,32,109,46,99,108,97,115,115,78,97,109,101,32,61,32,110,46,110,97,109,101,44,32,114,91,98,93,32,61,32,109,41,32,58,32,40,90,97,40,114,44,32,98,44,32,113,41,44,32,114,91,98,93,46,69,97,91,99,32,45,32,50,93,32,61,32,109,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,78,40,91,93,44,32,108,44,32,40,118,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,32,61,32,115,98,40,113,44,32,118,44,32,110,44,32,102,44,32,107,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,111,105,100,32,48,32,61,61,61,32,114,91,98,93,46,69,97,32,63,32,40,118,46,78,97,32,61,32,99,32,45,32,50,44,32,114,91,98,93,32,61,32,118,41,32,58,32,114,91,98,93,46,69,97,91,99,32,45,32,50,93,32,61,32,118,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,91,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,91,93,59,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,89,58,32,40,97,41,32,61,62,32,77,40,97,44,32,120,98,41,44,10,32,32,32,32,32,32,32,32,68,58,32,40,97,44,32,98,44,32,99,44,32,100,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,101,40,41,32,123,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,79,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,101,46,118,97,108,117,101,115,32,61,32,123,125,59,10,32,32,32,32,32,32,32,32,32,32,77,40,97,44,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,110,97,109,101,58,32,98,44,10,32,32,32,32,32,32,32,32,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,58,32,101,44,10,32,32,32,32,32,32,32,32,32,32,32,32,102,114,111,109,87,105,114,101,84,121,112,101,58,32,102,117,110,99,116,105,111,110,40,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,99,111,110,115,116,114,117,99,116,111,114,46,118,97,108,117,101,115,91,102,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,32,32,32,32,116,111,87,105,114,101,84,121,112,101,58,32,40,102,44,32,107,41,32,61,62,32,107,46,118,97,108,117,101,44,10,32,32,32,32,32,32,32,32,32,32,32,32,73,97,58,32,56,44,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,97,100,86,97,108,117,101,70,114,111,109,80,111,105,110,116,101,114,58,32,121,98,40,98,44,32,99,44,32,100,41,44,10,32,32,32,32,32,32,32,32,32,32,32,32,74,97,58,32,110,117,108,108,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,36,97,40,98,44,32,101,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,108,58,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,122,98,40,97,44,32,34,101,110,117,109,34,41,59,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,79,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,97,32,61,32,100,46,99,111,110,115,116,114,117,99,116,111,114,59,10,32,32,32,32,32,32,32,32,32,32,100,32,61,32,79,98,106,101,99,116,46,99,114,101,97,116,101,40,100,46,99,111,110,115,116,114,117,99,116,111,114,46,112,114,111,116,111,116,121,112,101,44,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,108,117,101,58,32,123,32,118,97,108,117,101,58,32,99,32,125,44,10,32,32,32,32,32,32,32,32,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,58,32,123,32,118,97,108,117,101,58,32,89,97,40,96,36,123,100,46,110,97,109,101,125,95,36,123,98,125,96,44,32,102,117,110,99,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,32,125,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,97,46,118,97,108,117,101,115,91,99,93,32,61,32,100,59,10,32,32,32,32,32,32,32,32,32,32,97,91,98,93,32,61,32,100,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,65,58,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,79,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,77,40,97,44,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,110,97,109,101,58,32,98,44,10,32,32,32,32,32,32,32,32,32,32,32,32,102,114,111,109,87,105,114,101,84,121,112,101,58,32,40,100,41,32,61,62,32,100,44,10,32,32,32,32,32,32,32,32,32,32,32,32,116,111,87,105,114,101,84,121,112,101,58,32,40,100,44,32,101,41,32,61,62,32,101,44,10,32,32,32,32,32,32,32,32,32,32,32,32,73,97,58,32,56,44,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,97,100,86,97,108,117,101,70,114,111,109,80,111,105,110,116,101,114,58,32,65,98,40,98,44,32,99,41,44,10,32,32,32,32,32,32,32,32,32,32,32,32,74,97,58,32,110,117,108,108,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,118,58,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,107,32,61,32,113,98,40,98,44,32,99,41,59,10,32,32,32,32,32,32,32,32,32,32,97,32,61,32,79,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,97,32,61,32,116,98,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,101,32,61,32,83,40,100,44,32,101,41,59,10,32,32,32,32,32,32,32,32,32,32,36,97,40,10,32,32,32,32,32,32,32,32,32,32,32,32,97,44,10,32,32,32,32,32,32,32,32,32,32,32,32,102,117,110,99,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,112,98,40,96,67,97,110,110,111,116,32,99,97,108,108,32,36,123,97,125,32,100,117,101,32,116,111,32,117,110,98,111,117,110,100,32,116,121,112,101,115,96,44,32,107,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,32,32,32,32,98,32,45,32,49,10,32,32,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,32,32,78,40,91,93,44,32,107,44,32,40,103,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,106,98,40,97,44,32,115,98,40,97,44,32,91,103,91,48,93,44,32,110,117,108,108,93,46,99,111,110,99,97,116,40,103,46,115,108,105,99,101,40,49,41,41,44,32,110,117,108,108,44,32,101,44,32,102,41,44,32,98,32,45,32,49,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,91,93,59,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,110,58,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,79,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,45,49,32,61,61,61,32,101,32,38,38,32,40,101,32,61,32,52,50,57,52,57,54,55,50,57,53,41,59,10,32,32,32,32,32,32,32,32,32,32,101,32,61,32,40,103,41,32,61,62,32,103,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,48,32,61,61,61,32,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,102,32,61,32,51,50,32,45,32,56,32,42,32,99,59,10,32,32,32,32,32,32,32,32,32,32,32,32,101,32,61,32,40,103,41,32,61,62,32,103,32,60,60,32,102,32,62,62,62,32,102,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,107,32,61,32,98,46,105,110,99,108,117,100,101,115,40,34,117,110,115,105,103,110,101,100,34,41,32,63,32,102,117,110,99,116,105,111,110,40,103,44,32,108,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,108,32,62,62,62,32,48,59,10,32,32,32,32,32,32,32,32,32,32,125,32,58,32,102,117,110,99,116,105,111,110,40,103,44,32,108,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,108,59,10,32,32,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,32,32,77,40,97,44,32,123,32,110,97,109,101,58,32,98,44,32,102,114,111,109,87,105,114,101,84,121,112,101,58,32,101,44,32,116,111,87,105,114,101,84,121,112,101,58,32,107,44,32,73,97,58,32,56,44,32,114,101,97,100,86,97,108,117,101,70,114,111,109,80,111,105,110,116,101,114,58,32,66,98,40,98,44,32,99,44,32,48,32,33,61,61,32,100,41,44,32,74,97,58,32,110,117,108,108,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,103,58,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,100,40,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,110,101,119,32,101,40,117,46,98,117,102,102,101,114,44,32,68,91,102,32,43,32,52,32,62,62,32,50,93,44,32,68,91,102,32,62,62,32,50,93,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,101,32,61,32,91,73,110,116,56,65,114,114,97,121,44,32,85,105,110,116,56,65,114,114,97,121,44,32,73,110,116,49,54,65,114,114,97,121,44,32,85,105,110,116,49,54,65,114,114,97,121,44,32,73,110,116,51,50,65,114,114,97,121,44,32,85,105,110,116,51,50,65,114,114,97,121,44,32,70,108,111,97,116,51,50,65,114,114,97,121,44,32,70,108,111,97,116,54,52,65,114,114,97,121,93,91,98,93,59,10,32,32,32,32,32,32,32,32,32,32,99,32,61,32,79,40,99,41,59,10,32,32,32,32,32,32,32,32,32,32,77,40,97,44,32,123,32,110,97,109,101,58,32,99,44,32,102,114,111,109,87,105,114,101,84,121,112,101,58,32,100,44,32,73,97,58,32,56,44,32,114,101,97,100,86,97,108,117,101,70,114,111,109,80,111,105,110,116,101,114,58,32,100,32,125,44,32,123,32,104,98,58,32,116,114,117,101,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,113,58,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,77,40,97,44,32,67,98,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,117,58,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,44,32,108,44,32,110,44,32,109,44,32,113,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,99,32,61,32,79,40,99,41,59,10,32,32,32,32,32,32,32,32,32,32,102,32,61,32,83,40,101,44,32,102,41,59,10,32,32,32,32,32,32,32,32,32,32,103,32,61,32,83,40,107,44,32,103,41,59,10,32,32,32,32,32,32,32,32,32,32,110,32,61,32,83,40,108,44,32,110,41,59,10,32,32,32,32,32,32,32,32,32,32,113,32,61,32,83,40,109,44,32,113,41,59,10,32,32,32,32,32,32,32,32,32,32,78,40,91,97,93,44,32,91,98,93,44,32,40,114,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,114,32,61,32,114,91,48,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,91,110,101,119,32,105,98,40,99,44,32,114,46,66,97,44,32,102,97,108,115,101,44,32,102,97,108,115,101,44,32,116,114,117,101,44,32,114,44,32,100,44,32,102,44,32,103,44,32,110,44,32,113,41,93,59,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,90,58,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,79,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,77,40,97,44,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,110,97,109,101,58,32,98,44,10,32,32,32,32,32,32,32,32,32,32,32,32,102,114,111,109,87,105,114,101,84,121,112,101,58,32,102,117,110,99,116,105,111,110,40,99,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,100,32,61,32,68,91,99,32,62,62,32,50,93,44,32,101,32,61,32,99,32,43,32,52,44,32,102,44,32,107,32,61,32,101,44,32,103,32,61,32,48,59,32,103,32,60,61,32,100,59,32,43,43,103,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,108,32,61,32,101,32,43,32,103,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,103,32,61,61,32,100,32,124,124,32,48,32,61,61,32,120,91,108,93,41,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,107,32,61,32,107,32,63,32,69,97,40,107,44,32,108,32,45,32,107,41,32,58,32,34,34,44,32,118,111,105,100,32,48,32,61,61,61,32,102,32,63,32,102,32,61,32,107,32,58,32,40,102,32,43,61,32,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,48,41,44,32,102,32,43,61,32,107,41,44,32,107,32,61,32,108,32,43,32,49,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,84,40,99,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,102,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,32,32,32,32,116,111,87,105,114,101,84,121,112,101,58,32,102,117,110,99,116,105,111,110,40,99,44,32,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,100,32,105,110,115,116,97,110,99,101,111,102,32,65,114,114,97,121,66,117,102,102,101,114,32,38,38,32,40,100,32,61,32,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,100,41,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,101,44,32,102,32,61,32,34,115,116,114,105,110,103,34,32,61,61,32,116,121,112,101,111,102,32,100,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,33,40,102,32,124,124,32,100,32,105,110,115,116,97,110,99,101,111,102,32,85,105,110,116,56,65,114,114,97,121,32,124,124,32,100,32,105,110,115,116,97,110,99,101,111,102,32,85,105,110,116,56,67,108,97,109,112,101,100,65,114,114,97,121,32,124,124,32,100,32,105,110,115,116,97,110,99,101,111,102,32,73,110,116,56,65,114,114,97,121,41,41,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,80,40,34,67,97,110,110,111,116,32,112,97,115,115,32,110,111,110,45,115,116,114,105,110,103,32,116,111,32,115,116,100,58,58,115,116,114,105,110,103,34,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,102,41,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,107,32,61,32,101,32,61,32,48,59,32,107,32,60,32,100,46,108,101,110,103,116,104,59,32,43,43,107,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,103,32,61,32,100,46,99,104,97,114,67,111,100,101,65,116,40,107,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,49,50,55,32,62,61,32,103,32,63,32,101,43,43,32,58,32,50,48,52,55,32,62,61,32,103,32,63,32,101,32,43,61,32,50,32,58,32,53,53,50,57,54,32,60,61,32,103,32,38,38,32,53,55,51,52,51,32,62,61,32,103,32,63,32,40,101,32,43,61,32,52,44,32,43,43,107,41,32,58,32,101,32,43,61,32,51,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,101,108,115,101,32,101,32,61,32,100,46,108,101,110,103,116,104,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,107,32,61,32,97,99,40,52,32,43,32,101,32,43,32,49,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,103,32,61,32,107,32,43,32,52,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,68,91,107,32,62,62,32,50,93,32,61,32,101,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,102,41,32,72,40,100,44,32,103,44,32,101,32,43,32,49,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,101,108,115,101,32,105,102,32,40,102,41,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,102,32,61,32,48,59,32,102,32,60,32,101,59,32,43,43,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,108,32,61,32,100,46,99,104,97,114,67,111,100,101,65,116,40,102,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,50,53,53,32,60,32,108,41,32,116,104,114,111,119,32,84,40,103,41,44,32,110,101,119,32,80,40,34,83,116,114,105,110,103,32,104,97,115,32,85,84,70,45,49,54,32,99,111,100,101,32,117,110,105,116,115,32,116,104,97,116,32,100,111,32,110,111,116,32,102,105,116,32,105,110,32,56,32,98,105,116,115,34,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,120,91,103,32,43,32,102,93,32,61,32,108,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,101,108,115,101,32,102,111,114,32,40,102,32,61,32,48,59,32,102,32,60,32,101,59,32,43,43,102,41,32,120,91,103,32,43,32,102,93,32,61,32,100,91,102,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,110,117,108,108,32,33,61,61,32,99,32,38,38,32,99,46,112,117,115,104,40,84,44,32,107,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,107,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,32,32,32,32,73,97,58,32,56,44,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,97,100,86,97,108,117,101,70,114,111,109,80,111,105,110,116,101,114,58,32,73,44,10,32,32,32,32,32,32,32,32,32,32,32,32,74,97,40,99,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,84,40,99,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,121,58,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,99,32,61,32,79,40,99,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,50,32,61,61,61,32,98,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,69,98,59,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,101,32,61,32,70,98,59,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,102,32,61,32,71,98,59,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,107,32,61,32,40,103,41,32,61,62,32,122,91,103,32,62,62,32,49,93,59,10,32,32,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,52,32,61,61,61,32,98,32,38,38,32,40,100,32,61,32,72,98,44,32,101,32,61,32,73,98,44,32,102,32,61,32,74,98,44,32,107,32,61,32,40,103,41,32,61,62,32,68,91,103,32,62,62,32,50,93,41,59,10,32,32,32,32,32,32,32,32,32,32,77,40,97,44,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,110,97,109,101,58,32,99,44,10,32,32,32,32,32,32,32,32,32,32,32,32,102,114,111,109,87,105,114,101,84,121,112,101,58,32,40,103,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,108,32,61,32,68,91,103,32,62,62,32,50,93,44,32,110,44,32,109,32,61,32,103,32,43,32,52,44,32,113,32,61,32,48,59,32,113,32,60,61,32,108,59,32,43,43,113,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,114,32,61,32,103,32,43,32,52,32,43,32,113,32,42,32,98,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,113,32,61,61,32,108,32,124,124,32,48,32,61,61,32,107,40,114,41,41,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,109,32,61,32,100,40,109,44,32,114,32,45,32,109,41,44,32,118,111,105,100,32,48,32,61,61,61,32,110,32,63,32,110,32,61,32,109,32,58,32,40,110,32,43,61,32,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,48,41,44,32,110,32,43,61,32,109,41,44,32,109,32,61,32,114,32,43,32,98,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,84,40,103,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,110,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,32,32,32,32,116,111,87,105,114,101,84,121,112,101,58,32,40,103,44,32,108,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,34,115,116,114,105,110,103,34,32,33,61,32,116,121,112,101,111,102,32,108,41,32,116,104,114,111,119,32,110,101,119,32,80,40,96,67,97,110,110,111,116,32,112,97,115,115,32,110,111,110,45,115,116,114,105,110,103,32,116,111,32,67,43,43,32,115,116,114,105,110,103,32,116,121,112,101,32,36,123,99,125,96,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,110,32,61,32,102,40,108,41,44,32,109,32,61,32,97,99,40,52,32,43,32,110,32,43,32,98,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,68,91,109,32,62,62,32,50,93,32,61,32,110,32,47,32,98,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,101,40,108,44,32,109,32,43,32,52,44,32,110,32,43,32,98,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,110,117,108,108,32,33,61,61,32,103,32,38,38,32,103,46,112,117,115,104,40,84,44,32,109,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,109,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,32,32,32,32,73,97,58,32,56,44,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,97,100,86,97,108,117,101,70,114,111,109,80,111,105,110,116,101,114,58,32,73,44,10,32,32,32,32,32,32,32,32,32,32,32,32,74,97,40,103,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,84,40,103,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,120,58,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,73,97,91,97,93,32,61,32,123,32,110,97,109,101,58,32,79,40,98,41,44,32,85,97,58,32,83,40,99,44,32,100,41,44,32,75,97,58,32,83,40,101,44,32,102,41,44,32,88,97,58,32,91,93,32,125,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,105,58,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,44,32,108,44,32,110,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,73,97,91,97,93,46,88,97,46,112,117,115,104,40,123,32,97,98,58,32,79,40,98,41,44,32,103,98,58,32,99,44,32,101,98,58,32,83,40,100,44,32,101,41,44,32,102,98,58,32,102,44,32,109,98,58,32,107,44,32,108,98,58,32,83,40,103,44,32,108,41,44,32,110,98,58,32,110,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,36,58,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,79,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,77,40,97,44,32,123,32,112,98,58,32,116,114,117,101,44,32,110,97,109,101,58,32,98,44,32,73,97,58,32,48,44,32,102,114,111,109,87,105,114,101,84,121,112,101,58,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,125,44,32,116,111,87,105,114,101,84,121,112,101,58,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,125,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,75,58,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,67,97,32,61,32,102,97,108,115,101,59,10,32,32,32,32,32,32,32,32,32,32,75,98,32,61,32,48,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,73,58,32,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,73,110,102,105,110,105,116,121,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,67,58,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,97,32,61,32,86,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,122,98,40,98,44,32,34,101,109,118,97,108,58,58,97,115,34,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,76,98,40,98,44,32,99,44,32,97,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,112,58,32,40,97,44,32,98,44,32,99,44,32,100,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,97,32,61,32,77,98,91,97,93,59,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,86,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,97,40,110,117,108,108,44,32,98,44,32,99,44,32,100,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,87,58,32,119,98,44,10,32,32,32,32,32,32,32,32,69,58,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,97,32,61,32,86,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,86,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,97,32,61,61,32,98,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,111,58,32,40,97,44,32,98,44,32,99,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,79,98,40,97,44,32,98,41,44,32,101,32,61,32,100,46,115,104,105,102,116,40,41,59,10,32,32,32,32,32,32,32,32,32,32,97,45,45,59,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,102,32,61,32,65,114,114,97,121,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,96,109,101,116,104,111,100,67,97,108,108,101,114,60,40,36,123,100,46,109,97,112,40,40,107,41,32,61,62,32,107,46,110,97,109,101,41,46,106,111,105,110,40,34,44,32,34,41,125,41,32,61,62,32,36,123,101,46,110,97,109,101,125,62,96,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,78,98,40,10,32,32,32,32,32,32,32,32,32,32,32,32,89,97,40,98,44,32,40,107,44,32,103,44,32,108,44,32,110,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,109,32,61,32,48,44,32,113,32,61,32,48,59,32,113,32,60,32,97,59,32,43,43,113,41,32,102,91,113,93,32,61,32,100,91,113,93,46,114,101,97,100,86,97,108,117,101,70,114,111,109,80,111,105,110,116,101,114,40,110,32,43,32,109,41,44,32,109,32,43,61,32,100,91,113,93,46,73,97,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,107,32,61,32,49,32,61,61,61,32,99,32,63,32,80,98,40,103,44,32,102,41,32,58,32,103,46,97,112,112,108,121,40,107,44,32,102,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,76,98,40,101,44,32,108,44,32,107,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,10,32,32,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,122,58,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,57,32,60,32,97,32,38,38,32,40,85,91,97,32,43,32,49,93,32,43,61,32,49,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,99,97,58,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,86,40,97,41,59,10,32,32,32,32,32,32,32,32,32,32,74,97,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,119,98,40,97,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,116,58,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,97,32,61,32,122,98,40,97,44,32,34,95,101,109,118,97,108,95,116,97,107,101,95,118,97,108,117,101,34,41,59,10,32,32,32,32,32,32,32,32,32,32,97,32,61,32,97,46,114,101,97,100,86,97,108,117,101,70,114,111,109,80,111,105,110,116,101,114,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,103,98,40,97,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,71,58,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,81,98,91,97,93,32,38,38,32,40,99,108,101,97,114,84,105,109,101,111,117,116,40,81,98,91,97,93,46,105,100,41,44,32,100,101,108,101,116,101,32,81,98,91,97,93,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,33,98,41,32,114,101,116,117,114,110,32,48,59,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,100,101,108,101,116,101,32,81,98,91,97,93,59,10,32,32,32,32,32,32,32,32,32,32,32,32,84,98,40,40,41,32,61,62,32,98,99,40,97,44,32,112,101,114,102,111,114,109,97,110,99,101,46,110,111,119,40,41,41,41,59,10,32,32,32,32,32,32,32,32,32,32,125,44,32,98,41,59,10,32,32,32,32,32,32,32,32,32,32,81,98,91,97,93,32,61,32,123,32,105,100,58,32,99,44,32,113,98,58,32,98,32,125,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,48,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,72,58,32,40,97,44,32,98,44,32,99,44,32,100,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,101,32,61,32,40,47,42,32,64,95,95,80,85,82,69,95,95,32,42,47,32,110,101,119,32,68,97,116,101,40,41,41,46,103,101,116,70,117,108,108,89,101,97,114,40,41,44,32,102,32,61,32,110,101,119,32,68,97,116,101,40,101,44,32,48,44,32,49,41,46,103,101,116,84,105,109,101,122,111,110,101,79,102,102,115,101,116,40,41,59,10,32,32,32,32,32,32,32,32,32,32,101,32,61,32,110,101,119,32,68,97,116,101,40,101,44,32,54,44,32,49,41,46,103,101,116,84,105,109,101,122,111,110,101,79,102,102,115,101,116,40,41,59,10,32,32,32,32,32,32,32,32,32,32,68,91,97,32,62,62,32,50,93,32,61,32,54,48,32,42,32,77,97,116,104,46,109,97,120,40,102,44,32,101,41,59,10,32,32,32,32,32,32,32,32,32,32,67,91,98,32,62,62,32,50,93,32,61,32,78,117,109,98,101,114,40,102,32,33,61,32,101,41,59,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,40,107,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,103,32,61,32,77,97,116,104,46,97,98,115,40,107,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,96,85,84,67,36,123,48,32,60,61,32,107,32,63,32,34,45,34,32,58,32,34,43,34,125,36,123,83,116,114,105,110,103,40,77,97,116,104,46,102,108,111,111,114,40,103,32,47,32,54,48,41,41,46,112,97,100,83,116,97,114,116,40,50,44,32,34,48,34,41,125,36,123,83,116,114,105,110,103,40,103,32,37,32,54,48,41,46,112,97,100,83,116,97,114,116,40,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,50,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,34,48,34,10,32,32,32,32,32,32,32,32,32,32,32,32,41,125,96,59,10,32,32,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,32,32,32,32,97,32,61,32,98,40,102,41,59,10,32,32,32,32,32,32,32,32,32,32,98,32,61,32,98,40,101,41,59,10,32,32,32,32,32,32,32,32,32,32,101,32,60,32,102,32,63,32,40,72,40,97,44,32,99,44,32,49,55,41,44,32,72,40,98,44,32,100,44,32,49,55,41,41,32,58,32,40,72,40,97,44,32,100,44,32,49,55,41,44,32,72,40,98,44,32,99,44,32,49,55,41,41,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,98,97,58,32,40,41,32,61,62,32,112,101,114,102,111,114,109,97,110,99,101,46,110,111,119,40,41,44,10,32,32,32,32,32,32,32,32,74,58,32,40,97,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,120,46,108,101,110,103,116,104,59,10,32,32,32,32,32,32,32,32,32,32,97,32,62,62,62,61,32,48,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,50,49,52,55,52,56,51,54,52,56,32,60,32,97,41,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,118,97,114,32,99,32,61,32,49,59,32,52,32,62,61,32,99,59,32,99,32,42,61,32,50,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,98,32,42,32,40,49,32,43,32,48,46,50,32,47,32,99,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,100,32,61,32,77,97,116,104,46,109,105,110,40,100,44,32,97,32,43,32,49,48,48,54,54,51,50,57,54,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,97,58,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,100,32,61,32,40,77,97,116,104,46,109,105,110,40,50,49,52,55,52,56,51,54,52,56,44,32,54,53,53,51,54,32,42,32,77,97,116,104,46,99,101,105,108,40,77,97,116,104,46,109,97,120,40,97,44,32,100,41,32,47,32,54,53,53,51,54,41,41,32,45,32,107,97,46,98,117,102,102,101,114,46,98,121,116,101,76,101,110,103,116,104,32,43,32,54,53,53,51,53,41,32,47,32,54,53,53,51,54,32,124,32,48,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,107,97,46,103,114,111,119,40,100,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,112,97,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,101,32,61,32,49,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,98,114,101,97,107,32,97,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,101,32,61,32,118,111,105,100,32,48,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,101,41,32,114,101,116,117,114,110,32,116,114,117,101,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,86,58,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,48,59,10,32,32,32,32,32,32,32,32,32,32,87,98,40,41,46,102,111,114,69,97,99,104,40,40,100,44,32,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,102,32,61,32,98,32,43,32,99,59,10,32,32,32,32,32,32,32,32,32,32,32,32,101,32,61,32,68,91,97,32,43,32,52,32,42,32,101,32,62,62,32,50,93,32,61,32,102,59,10,32,32,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,102,32,61,32,48,59,32,102,32,60,32,100,46,108,101,110,103,116,104,59,32,43,43,102,41,32,117,91,101,43,43,93,32,61,32,100,46,99,104,97,114,67,111,100,101,65,116,40,102,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,117,91,101,93,32,61,32,48,59,10,32,32,32,32,32,32,32,32,32,32,32,32,99,32,43,61,32,100,46,108,101,110,103,116,104,32,43,32,49,59,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,48,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,88,58,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,87,98,40,41,59,10,32,32,32,32,32,32,32,32,32,32,68,91,97,32,62,62,32,50,93,32,61,32,99,46,108,101,110,103,116,104,59,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,48,59,10,32,32,32,32,32,32,32,32,32,32,99,46,102,111,114,69,97,99,104,40,40,101,41,32,61,62,32,100,32,43,61,32,101,46,108,101,110,103,116,104,32,43,32,49,41,59,10,32,32,32,32,32,32,32,32,32,32,68,91,98,32,62,62,32,50,93,32,61,32,100,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,48,59,10,32,32,32,32,32,32,32,32,125,44,10,32,32,32,32,32,32,32,32,83,58,32,40,41,32,61,62,32,53,50,44,10,32,32,32,32,32,32,32,32,81,58,32,40,41,32,61,62,32,53,50,44,10,32,32,32,32,32,32,32,32,107,58,32,99,99,44,10,32,32,32,32,32,32,32,32,102,58,32,100,99,44,10,32,32,32,32,32,32,32,32,101,58,32,101,99,44,10,32,32,32,32,32,32,32,32,66,58,32,102,99,44,10,32,32,32,32,32,32,32,32,97,97,58,32,103,99,44,10,32,32,32,32,32,32,32,32,97,58,32,104,99,44,10,32,32,32,32,32,32,32,32,98,58,32,105,99,44,10,32,32,32,32,32,32,32,32,104,58,32,106,99,44,10,32,32,32,32,32,32,32,32,115,58,32,107,99,44,10,32,32,32,32,32,32,32,32,85,58,32,83,98,44,10,32,32,32,32,32,32,32,32,76,58,32,40,97,44,32,98,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,89,98,40,120,46,115,117,98,97,114,114,97,121,40,97,44,32,97,32,43,32,98,41,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,48,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,44,32,87,59,10,32,32,32,32,32,32,40,97,115,121,110,99,32,102,117,110,99,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,97,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,87,32,61,32,100,46,101,120,112,111,114,116,115,59,10,32,32,32,32,32,32,32,32,32,32,107,97,32,61,32,87,46,100,97,59,10,32,32,32,32,32,32,32,32,32,32,112,97,40,41,59,10,32,32,32,32,32,32,32,32,32,32,82,32,61,32,87,46,103,97,59,10,32,32,32,32,32,32,32,32,32,32,114,97,46,117,110,115,104,105,102,116,40,87,46,101,97,41,59,10,32,32,32,32,32,32,32,32,32,32,70,45,45,59,10,32,32,32,32,32,32,32,32,32,32,104,46,109,111,110,105,116,111,114,82,117,110,68,101,112,101,110,100,101,110,99,105,101,115,63,46,40,70,41,59,10,32,32,32,32,32,32,32,32,32,32,48,32,61,61,32,70,32,38,38,32,71,32,38,38,32,40,100,32,61,32,71,44,32,71,32,61,32,110,117,108,108,44,32,100,40,41,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,87,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,70,43,43,59,10,32,32,32,32,32,32,32,32,104,46,109,111,110,105,116,111,114,82,117,110,68,101,112,101,110,100,101,110,99,105,101,115,63,46,40,70,41,59,10,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,123,32,97,58,32,108,99,32,125,59,10,32,32,32,32,32,32,32,32,105,102,32,40,104,46,105,110,115,116,97,110,116,105,97,116,101,87,97,115,109,41,10,32,32,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,104,46,105,110,115,116,97,110,116,105,97,116,101,87,97,115,109,40,98,44,32,97,41,59,10,32,32,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,40,96,77,111,100,117,108,101,46,105,110,115,116,97,110,116,105,97,116,101,87,97,115,109,32,99,97,108,108,98,97,99,107,32,102,97,105,108,101,100,32,119,105,116,104,32,101,114,114,111,114,58,32,36,123,100,125,96,41,44,32,98,97,40,100,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,119,97,32,63,63,32,40,119,97,32,61,32,118,97,40,34,68,111,116,76,111,116,116,105,101,80,108,97,121,101,114,46,119,97,115,109,34,41,32,63,32,34,68,111,116,76,111,116,116,105,101,80,108,97,121,101,114,46,119,97,115,109,34,32,58,32,104,46,108,111,99,97,116,101,70,105,108,101,32,63,32,104,46,108,111,99,97,116,101,70,105,108,101,40,34,68,111,116,76,111,116,116,105,101,80,108,97,121,101,114,46,119,97,115,109,34,44,32,112,41,32,58,32,112,32,43,32,34,68,111,116,76,111,116,116,105,101,80,108,97,121,101,114,46,119,97,115,109,34,41,59,10,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,97,119,97,105,116,32,122,97,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,97,40,99,46,105,110,115,116,97,110,99,101,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,59,10,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,98,97,40,100,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,41,40,41,59,10,32,32,32,32,32,32,118,97,114,32,97,99,32,61,32,40,97,41,32,61,62,32,40,97,99,32,61,32,87,46,102,97,41,40,97,41,44,32,84,32,61,32,40,97,41,32,61,62,32,40,84,32,61,32,87,46,104,97,41,40,97,41,44,32,110,98,32,61,32,40,97,41,32,61,62,32,40,110,98,32,61,32,87,46,105,97,41,40,97,41,44,32,98,99,32,61,32,40,97,44,32,98,41,32,61,62,32,40,98,99,32,61,32,87,46,106,97,41,40,97,44,32,98,41,44,32,88,32,61,32,40,97,44,32,98,41,32,61,62,32,40,88,32,61,32,87,46,107,97,41,40,97,44,32,98,41,44,32,89,32,61,32,40,97,41,32,61,62,32,40,89,32,61,32,87,46,108,97,41,40,97,41,44,32,90,32,61,32,40,41,32,61,62,32,40,90,32,61,32,87,46,109,97,41,40,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,106,105,105,105,32,61,32,40,97,44,32,98,44,32,99,44,32,100,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,106,105,105,105,32,61,32,87,46,110,97,41,40,97,44,32,98,44,32,99,44,32,100,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,106,105,105,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,106,105,105,32,61,32,87,46,111,97,41,40,97,44,32,98,44,32,99,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,118,106,105,105,32,61,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,118,106,105,105,32,61,32,87,46,112,97,41,40,97,44,32,98,44,32,99,44,32,100,44,32,101,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,118,106,102,105,105,32,61,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,118,106,102,105,105,32,61,32,87,46,113,97,41,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,118,106,105,105,105,32,61,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,118,106,105,105,105,32,61,32,87,46,114,97,41,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,118,106,32,61,32,40,97,44,32,98,44,32,99,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,118,106,32,61,32,87,46,115,97,41,40,97,44,32,98,44,32,99,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,118,106,105,105,105,105,105,32,61,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,118,106,105,105,105,105,105,32,61,32,87,46,116,97,41,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,118,106,105,102,102,105,105,32,61,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,118,106,105,102,102,105,105,32,61,32,87,46,117,97,41,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,118,106,105,105,105,105,32,61,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,118,106,105,105,105,105,32,61,32,87,46,118,97,41,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,118,105,105,106,105,105,32,61,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,118,105,105,106,105,105,32,61,32,87,46,119,97,41,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,105,105,105,105,105,106,32,61,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,105,105,105,105,105,106,32,61,32,87,46,120,97,41,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,105,105,105,105,105,106,106,32,61,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,44,32,108,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,105,105,105,105,105,106,106,32,61,32,87,46,121,97,41,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,44,32,108,41,59,10,32,32,32,32,32,32,104,46,100,121,110,67,97,108,108,95,105,105,105,105,105,105,106,106,32,61,32,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,44,32,108,44,32,110,41,32,61,62,32,40,104,46,100,121,110,67,97,108,108,95,105,105,105,105,105,105,106,106,32,61,32,87,46,122,97,41,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,44,32,107,44,32,103,44,32,108,44,32,110,41,59,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,99,99,40,97,44,32,98,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,90,40,41,59,10,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,82,46,103,101,116,40,97,41,40,98,41,59,10,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,89,40,99,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,100,32,33,61,61,32,100,32,43,32,48,41,32,116,104,114,111,119,32,100,59,10,32,32,32,32,32,32,32,32,32,32,88,40,49,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,102,99,40,97,44,32,98,44,32,99,44,32,100,44,32,101,44,32,102,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,107,32,61,32,90,40,41,59,10,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,82,46,103,101,116,40,97,41,40,98,44,32,99,44,32,100,44,32,101,44,32,102,41,59,10,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,103,41,32,123,10,32,32,32,32,32,32,32,32,32,32,89,40,107,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,103,32,33,61,61,32,103,32,43,32,48,41,32,116,104,114,111,119,32,103,59,10,32,32,32,32,32,32,32,32,32,32,88,40,49,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,104,99,40,97,44,32,98,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,99,32,61,32,90,40,41,59,10,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,82,46,103,101,116,40,97,41,40,98,41,59,10,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,89,40,99,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,100,32,33,61,61,32,100,32,43,32,48,41,32,116,104,114,111,119,32,100,59,10,32,32,32,32,32,32,32,32,32,32,88,40,49,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,106,99,40,97,44,32,98,44,32,99,44,32,100,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,101,32,61,32,90,40,41,59,10,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,82,46,103,101,116,40,97,41,40,98,44,32,99,44,32,100,41,59,10,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,89,40,101,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,102,32,33,61,61,32,102,32,43,32,48,41,32,116,104,114,111,119,32,102,59,10,32,32,32,32,32,32,32,32,32,32,88,40,49,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,101,99,40,97,44,32,98,44,32,99,44,32,100,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,101,32,61,32,90,40,41,59,10,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,82,46,103,101,116,40,97,41,40,98,44,32,99,44,32,100,41,59,10,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,102,41,32,123,10,32,32,32,32,32,32,32,32,32,32,89,40,101,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,102,32,33,61,61,32,102,32,43,32,48,41,32,116,104,114,111,119,32,102,59,10,32,32,32,32,32,32,32,32,32,32,88,40,49,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,105,99,40,97,44,32,98,44,32,99,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,90,40,41,59,10,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,82,46,103,101,116,40,97,41,40,98,44,32,99,41,59,10,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,101,41,32,123,10,32,32,32,32,32,32,32,32,32,32,89,40,100,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,101,32,33,61,61,32,101,32,43,32,48,41,32,116,104,114,111,119,32,101,59,10,32,32,32,32,32,32,32,32,32,32,88,40,49,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,107,99,40,97,44,32,98,44,32,99,44,32,100,44,32,101,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,102,32,61,32,90,40,41,59,10,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,82,46,103,101,116,40,97,41,40,98,44,32,99,44,32,100,44,32,101,41,59,10,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,107,41,32,123,10,32,32,32,32,32,32,32,32,32,32,89,40,102,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,107,32,33,61,61,32,107,32,43,32,48,41,32,116,104,114,111,119,32,107,59,10,32,32,32,32,32,32,32,32,32,32,88,40,49,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,100,99,40,97,44,32,98,44,32,99,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,100,32,61,32,90,40,41,59,10,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,82,46,103,101,116,40,97,41,40,98,44,32,99,41,59,10,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,101,41,32,123,10,32,32,32,32,32,32,32,32,32,32,89,40,100,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,101,32,33,61,61,32,101,32,43,32,48,41,32,116,104,114,111,119,32,101,59,10,32,32,32,32,32,32,32,32,32,32,88,40,49,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,103,99,40,97,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,90,40,41,59,10,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,82,46,103,101,116,40,97,41,40,41,59,10,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,99,41,32,123,10,32,32,32,32,32,32,32,32,32,32,89,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,99,32,33,61,61,32,99,32,43,32,48,41,32,116,104,114,111,119,32,99,59,10,32,32,32,32,32,32,32,32,32,32,88,40,49,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,118,97,114,32,109,99,59,10,32,32,32,32,32,32,71,32,61,32,102,117,110,99,116,105,111,110,32,110,99,40,41,32,123,10,32,32,32,32,32,32,32,32,109,99,32,124,124,32,111,99,40,41,59,10,32,32,32,32,32,32,32,32,109,99,32,124,124,32,40,71,32,61,32,110,99,41,59,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,111,99,40,41,32,123,10,32,32,32,32,32,32,32,32,102,117,110,99,116,105,111,110,32,97,40,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,33,109,99,32,38,38,32,40,109,99,32,61,32,116,114,117,101,44,32,104,46,99,97,108,108,101,100,82,117,110,32,61,32,116,114,117,101,44,32,33,108,97,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,66,97,40,114,97,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,97,97,40,104,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,104,46,111,110,82,117,110,116,105,109,101,73,110,105,116,105,97,108,105,122,101,100,63,46,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,104,46,112,111,115,116,82,117,110,41,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,34,102,117,110,99,116,105,111,110,34,32,61,61,32,116,121,112,101,111,102,32,104,46,112,111,115,116,82,117,110,32,38,38,32,40,104,46,112,111,115,116,82,117,110,32,61,32,91,104,46,112,111,115,116,82,117,110,93,41,59,32,104,46,112,111,115,116,82,117,110,46,108,101,110,103,116,104,59,32,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,118,97,114,32,98,32,61,32,104,46,112,111,115,116,82,117,110,46,115,104,105,102,116,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,115,97,46,117,110,115,104,105,102,116,40,98,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,32,32,66,97,40,115,97,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,33,40,48,32,60,32,70,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,104,46,112,114,101,82,117,110,41,32,102,111,114,32,40,34,102,117,110,99,116,105,111,110,34,32,61,61,32,116,121,112,101,111,102,32,104,46,112,114,101,82,117,110,32,38,38,32,40,104,46,112,114,101,82,117,110,32,61,32,91,104,46,112,114,101,82,117,110,93,41,59,32,104,46,112,114,101,82,117,110,46,108,101,110,103,116,104,59,32,41,32,116,97,40,41,59,10,32,32,32,32,32,32,32,32,32,32,66,97,40,113,97,41,59,10,32,32,32,32,32,32,32,32,32,32,48,32,60,32,70,32,124,124,32,40,104,46,115,101,116,83,116,97,116,117,115,32,63,32,40,104,46,115,101,116,83,116,97,116,117,115,40,34,82,117,110,110,105,110,103,46,46,46,34,41,44,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,104,46,115,101,116,83,116,97,116,117,115,40,34,34,41,44,32,49,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,97,40,41,59,10,32,32,32,32,32,32,32,32,32,32,125,44,32,49,41,41,32,58,32,97,40,41,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,102,32,40,104,46,112,114,101,73,110,105,116,41,10,32,32,32,32,32,32,32,32,102,111,114,32,40,34,102,117,110,99,116,105,111,110,34,32,61,61,32,116,121,112,101,111,102,32,104,46,112,114,101,73,110,105,116,32,38,38,32,40,104,46,112,114,101,73,110,105,116,32,61,32,91,104,46,112,114,101,73,110,105,116,93,41,59,32,48,32,60,32,104,46,112,114,101,73,110,105,116,46,108,101,110,103,116,104,59,32,41,32,104,46,112,114,101,73,110,105,116,46,112,111,112,40,41,40,41,59,10,32,32,32,32,32,32,111,99,40,41,59,10,32,32,32,32,32,32,109,111,100,117,108,101,82,116,110,32,61,32,99,97,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,82,116,110,59,10,32,32,32,32,125,59,10,32,32,125,41,40,41,59,10,32,32,118,97,114,32,100,111,116,108,111,116,116,105,101,95,112,108,97,121,101,114,95,100,101,102,97,117,108,116,32,61,32,99,114,101,97,116,101,68,111,116,76,111,116,116,105,101,80,108,97,121,101,114,77,111,100,117,108,101,59,10,10,32,32,47,47,32,115,114,99,47,99,111,114,101,47,100,111,116,108,111,116,116,105,101,45,119,97,115,109,45,108,111,97,100,101,114,46,116,115,10,32,32,118,97,114,32,68,111,116,76,111,116,116,105,101,87,97,115,109,76,111,97,100,101,114,32,61,32,99,108,97,115,115,32,123,10,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,40,41,32,123,10,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,34,82,101,110,100,101,114,101,114,76,111,97,100,101,114,32,105,115,32,97,32,115,116,97,116,105,99,32,99,108,97,115,115,32,97,110,100,32,99,97,110,110,111,116,32,98,101,32,105,110,115,116,97,110,116,105,97,116,101,100,46,34,41,59,10,32,32,32,32,125,10,32,32,32,32,115,116,97,116,105,99,32,97,115,121,110,99,32,95,116,114,121,76,111,97,100,40,117,114,108,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,109,111,100,117,108,101,32,61,32,97,119,97,105,116,32,100,111,116,108,111,116,116,105,101,95,112,108,97,121,101,114,95,100,101,102,97,117,108,116,40,123,32,108,111,99,97,116,101,70,105,108,101,58,32,40,41,32,61,62,32,117,114,108,32,125,41,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,84,114,105,101,115,32,116,111,32,108,111,97,100,32,116,104,101,32,87,65,83,77,32,109,111,100,117,108,101,32,102,114,111,109,32,116,104,101,32,112,114,105,109,97,114,121,32,85,82,76,44,32,102,97,108,108,105,110,103,32,98,97,99,107,32,116,111,32,97,32,98,97,99,107,117,112,32,85,82,76,32,105,102,32,110,101,99,101,115,115,97,114,121,46,10,32,32,32,32,32,42,32,84,104,114,111,119,115,32,97,110,32,101,114,114,111,114,32,105,102,32,98,111,116,104,32,85,82,76,115,32,102,97,105,108,32,116,111,32,108,111,97,100,32,116,104,101,32,109,111,100,117,108,101,46,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,80,114,111,109,105,115,101,60,77,111,100,117,108,101,62,32,45,32,65,32,112,114,111,109,105,115,101,32,116,104,97,116,32,114,101,115,111,108,118,101,115,32,116,111,32,116,104,101,32,108,111,97,100,101,100,32,109,111,100,117,108,101,46,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,105,99,32,97,115,121,110,99,32,95,108,111,97,100,87,105,116,104,66,97,99,107,117,112,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,77,111,100,117,108,101,80,114,111,109,105,115,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,77,111,100,117,108,101,80,114,111,109,105,115,101,32,61,32,116,104,105,115,46,95,116,114,121,76,111,97,100,40,116,104,105,115,46,95,119,97,115,109,85,82,76,41,46,99,97,116,99,104,40,97,115,121,110,99,32,40,105,110,105,116,105,97,108,69,114,114,111,114,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,99,111,110,115,116,32,98,97,99,107,117,112,85,114,108,32,61,32,96,104,116,116,112,115,58,47,47,117,110,112,107,103,46,99,111,109,47,36,123,80,65,67,75,65,71,69,95,78,65,77,69,125,64,36,123,80,65,67,75,65,71,69,95,86,69,82,83,73,79,78,125,47,100,105,115,116,47,100,111,116,108,111,116,116,105,101,45,112,108,97,121,101,114,46,119,97,115,109,96,59,10,32,32,32,32,32,32,32,32,32,32,99,111,110,115,111,108,101,46,119,97,114,110,40,96,80,114,105,109,97,114,121,32,87,65,83,77,32,108,111,97,100,32,102,97,105,108,101,100,32,102,114,111,109,32,36,123,116,104,105,115,46,95,119,97,115,109,85,82,76,125,46,32,69,114,114,111,114,58,32,36,123,105,110,105,116,105,97,108,69,114,114,111,114,46,109,101,115,115,97,103,101,125,96,41,59,10,32,32,32,32,32,32,32,32,32,32,99,111,110,115,111,108,101,46,119,97,114,110,40,96,65,116,116,101,109,112,116,105,110,103,32,116,111,32,108,111,97,100,32,87,65,83,77,32,102,114,111,109,32,98,97,99,107,117,112,32,85,82,76,58,32,36,123,98,97,99,107,117,112,85,114,108,125,96,41,59,10,32,32,32,32,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,97,119,97,105,116,32,116,104,105,115,46,95,116,114,121,76,111,97,100,40,98,97,99,107,117,112,85,114,108,41,59,10,32,32,32,32,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,98,97,99,107,117,112,69,114,114,111,114,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,99,111,110,115,111,108,101,46,101,114,114,111,114,40,96,80,114,105,109,97,114,121,32,87,65,83,77,32,85,82,76,32,102,97,105,108,101,100,58,32,36,123,105,110,105,116,105,97,108,69,114,114,111,114,46,109,101,115,115,97,103,101,125,96,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,99,111,110,115,111,108,101,46,101,114,114,111,114,40,96,66,97,99,107,117,112,32,87,65,83,77,32,85,82,76,32,102,97,105,108,101,100,58,32,36,123,98,97,99,107,117,112,69,114,114,111,114,46,109,101,115,115,97,103,101,125,96,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,34,87,65,83,77,32,108,111,97,100,105,110,103,32,102,97,105,108,101,100,32,102,114,111,109,32,97,108,108,32,115,111,117,114,99,101,115,46,34,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,77,111,100,117,108,101,80,114,111,109,105,115,101,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,80,117,98,108,105,99,32,109,101,116,104,111,100,32,116,111,32,108,111,97,100,32,116,104,101,32,87,101,98,65,115,115,101,109,98,108,121,32,109,111,100,117,108,101,46,10,32,32,32,32,32,42,32,85,116,105,108,105,122,101,115,32,97,32,112,114,105,109,97,114,121,32,97,110,100,32,98,97,99,107,117,112,32,85,82,76,32,102,111,114,32,114,111,98,117,115,116,110,101,115,115,46,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,80,114,111,109,105,115,101,60,77,111,100,117,108,101,62,32,45,32,65,32,112,114,111,109,105,115,101,32,116,104,97,116,32,114,101,115,111,108,118,101,115,32,116,111,32,116,104,101,32,108,111,97,100,101,100,32,109,111,100,117,108,101,46,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,105,99,32,97,115,121,110,99,32,108,111,97,100,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,108,111,97,100,87,105,116,104,66,97,99,107,117,112,40,41,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,83,101,116,115,32,97,32,110,101,119,32,85,82,76,32,102,111,114,32,116,104,101,32,87,65,83,77,32,102,105,108,101,32,97,110,100,32,105,110,118,97,108,105,100,97,116,101,115,32,116,104,101,32,99,117,114,114,101,110,116,32,109,111,100,117,108,101,32,112,114,111,109,105,115,101,46,10,32,32,32,32,32,42,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,115,116,114,105,110,103,32,45,32,32,84,104,101,32,110,101,119,32,85,82,76,32,102,111,114,32,116,104,101,32,87,65,83,77,32,102,105,108,101,46,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,105,99,32,115,101,116,87,97,115,109,85,114,108,40,117,114,108,41,32,123,10,32,32,32,32,32,32,105,102,32,40,117,114,108,32,61,61,61,32,116,104,105,115,46,95,119,97,115,109,85,82,76,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,119,97,115,109,85,82,76,32,61,32,117,114,108,59,10,32,32,32,32,32,32,116,104,105,115,46,95,77,111,100,117,108,101,80,114,111,109,105,115,101,32,61,32,110,117,108,108,59,10,32,32,32,32,125,10,32,32,125,59,10,32,32,47,47,32,101,115,108,105,110,116,45,100,105,115,97,98,108,101,45,110,101,120,116,45,108,105,110,101,32,64,116,121,112,101,115,99,114,105,112,116,45,101,115,108,105,110,116,47,110,97,109,105,110,103,45,99,111,110,118,101,110,116,105,111,110,10,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,68,111,116,76,111,116,116,105,101,87,97,115,109,76,111,97,100,101,114,44,32,34,95,77,111,100,117,108,101,80,114,111,109,105,115,101,34,44,32,110,117,108,108,41,59,10,32,32,47,47,32,85,82,76,32,102,111,114,32,116,104,101,32,87,65,83,77,32,102,105,108,101,44,32,99,111,110,115,116,114,117,99,116,101,100,32,117,115,105,110,103,32,112,97,99,107,97,103,101,32,105,110,102,111,114,109,97,116,105,111,110,10,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,68,111,116,76,111,116,116,105,101,87,97,115,109,76,111,97,100,101,114,44,32,34,95,119,97,115,109,85,82,76,34,44,32,96,104,116,116,112,115,58,47,47,99,100,110,46,106,115,100,101,108,105,118,114,46,110,101,116,47,110,112,109,47,36,123,80,65,67,75,65,71,69,95,78,65,77,69,125,64,36,123,80,65,67,75,65,71,69,95,86,69,82,83,73,79,78,125,47,100,105,115,116,47,100,111,116,108,111,116,116,105,101,45,112,108,97,121,101,114,46,119,97,115,109,96,41,59,10,10,32,32,47,47,32,115,114,99,47,101,118,101,110,116,45,109,97,110,97,103,101,114,46,116,115,10,32,32,118,97,114,32,69,118,101,110,116,77,97,110,97,103,101,114,32,61,32,99,108,97,115,115,32,123,10,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,40,41,32,123,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,34,44,32,47,42,32,64,95,95,80,85,82,69,95,95,32,42,47,32,110,101,119,32,77,97,112,40,41,41,59,10,32,32,32,32,125,10,32,32,32,32,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,116,121,112,101,44,32,108,105,115,116,101,110,101,114,41,32,123,10,32,32,32,32,32,32,108,101,116,32,108,105,115,116,101,110,101,114,115,32,61,32,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,103,101,116,40,116,121,112,101,41,59,10,32,32,32,32,32,32,105,102,32,40,33,108,105,115,116,101,110,101,114,115,41,32,123,10,32,32,32,32,32,32,32,32,108,105,115,116,101,110,101,114,115,32,61,32,47,42,32,64,95,95,80,85,82,69,95,95,32,42,47,32,110,101,119,32,83,101,116,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,115,101,116,40,116,121,112,101,44,32,108,105,115,116,101,110,101,114,115,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,108,105,115,116,101,110,101,114,115,46,97,100,100,40,108,105,115,116,101,110,101,114,41,59,10,32,32,32,32,125,10,32,32,32,32,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,116,121,112,101,44,32,108,105,115,116,101,110,101,114,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,108,105,115,116,101,110,101,114,115,32,61,32,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,103,101,116,40,116,121,112,101,41,59,10,32,32,32,32,32,32,105,102,32,40,33,108,105,115,116,101,110,101,114,115,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,105,102,32,40,108,105,115,116,101,110,101,114,41,32,123,10,32,32,32,32,32,32,32,32,108,105,115,116,101,110,101,114,115,46,100,101,108,101,116,101,40,108,105,115,116,101,110,101,114,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,108,105,115,116,101,110,101,114,115,46,115,105,122,101,32,61,61,61,32,48,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,100,101,108,101,116,101,40,116,121,112,101,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,100,101,108,101,116,101,40,116,121,112,101,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,100,105,115,112,97,116,99,104,40,101,118,101,110,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,108,105,115,116,101,110,101,114,115,32,61,32,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,103,101,116,40,101,118,101,110,116,46,116,121,112,101,41,59,10,32,32,32,32,32,32,108,105,115,116,101,110,101,114,115,63,46,102,111,114,69,97,99,104,40,40,108,105,115,116,101,110,101,114,41,32,61,62,32,108,105,115,116,101,110,101,114,40,101,118,101,110,116,41,41,59,10,32,32,32,32,125,10,32,32,32,32,114,101,109,111,118,101,65,108,108,69,118,101,110,116,76,105,115,116,101,110,101,114,115,40,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,76,105,115,116,101,110,101,114,115,46,99,108,101,97,114,40,41,59,10,32,32,32,32,125,10,32,32,125,59,10,10,32,32,47,47,32,115,114,99,47,111,102,102,115,99,114,101,101,110,45,111,98,115,101,114,118,101,114,46,116,115,10,32,32,118,97,114,32,79,102,102,115,99,114,101,101,110,79,98,115,101,114,118,101,114,32,61,32,99,108,97,115,115,32,123,10,32,32,32,32,115,116,97,116,105,99,32,95,105,110,105,116,105,97,108,105,122,101,79,98,115,101,114,118,101,114,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,111,98,115,101,114,118,101,114,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,116,101,114,115,101,99,116,105,111,110,79,98,115,101,114,118,101,114,67,97,108,108,98,97,99,107,32,61,32,40,101,110,116,114,105,101,115,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,101,110,116,114,105,101,115,46,102,111,114,69,97,99,104,40,40,101,110,116,114,121,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,116,104,105,115,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,103,101,116,40,101,110,116,114,121,46,116,97,114,103,101,116,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,101,110,116,114,121,46,105,115,73,110,116,101,114,115,101,99,116,105,110,103,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,117,110,102,114,101,101,122,101,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,102,114,101,101,122,101,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,114,32,61,32,110,101,119,32,73,110,116,101,114,115,101,99,116,105,111,110,79,98,115,101,114,118,101,114,40,105,110,116,101,114,115,101,99,116,105,111,110,79,98,115,101,114,118,101,114,67,97,108,108,98,97,99,107,44,32,123,10,32,32,32,32,32,32,32,32,116,104,114,101,115,104,111,108,100,58,32,48,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,125,10,32,32,32,32,115,116,97,116,105,99,32,111,98,115,101,114,118,101,40,99,97,110,118,97,115,44,32,100,111,116,76,111,116,116,105,101,73,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,105,110,105,116,105,97,108,105,122,101,79,98,115,101,114,118,101,114,40,41,59,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,104,97,115,40,99,97,110,118,97,115,41,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,115,101,116,40,99,97,110,118,97,115,44,32,100,111,116,76,111,116,116,105,101,73,110,115,116,97,110,99,101,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,114,63,46,111,98,115,101,114,118,101,40,99,97,110,118,97,115,41,59,10,32,32,32,32,125,10,32,32,32,32,115,116,97,116,105,99,32,117,110,111,98,115,101,114,118,101,40,99,97,110,118,97,115,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,114,63,46,117,110,111,98,115,101,114,118,101,40,99,97,110,118,97,115,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,100,101,108,101,116,101,40,99,97,110,118,97,115,41,59,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,115,105,122,101,32,61,61,61,32,48,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,114,63,46,100,105,115,99,111,110,110,101,99,116,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,114,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,125,59,10,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,79,102,102,115,99,114,101,101,110,79,98,115,101,114,118,101,114,44,32,34,95,111,98,115,101,114,118,101,114,34,44,32,110,117,108,108,41,59,10,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,79,102,102,115,99,114,101,101,110,79,98,115,101,114,118,101,114,44,32,34,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,34,44,32,47,42,32,64,95,95,80,85,82,69,95,95,32,42,47,32,110,101,119,32,77,97,112,40,41,41,59,10,10,32,32,47,47,32,115,114,99,47,114,101,115,105,122,101,45,111,98,115,101,114,118,101,114,46,116,115,10,32,32,118,97,114,32,82,69,83,73,90,69,95,68,69,66,79,85,78,67,69,95,84,73,77,69,32,61,32,49,48,48,59,10,32,32,118,97,114,32,67,97,110,118,97,115,82,101,115,105,122,101,79,98,115,101,114,118,101,114,32,61,32,99,108,97,115,115,32,123,10,32,32,32,32,115,116,97,116,105,99,32,95,105,110,105,116,105,97,108,105,122,101,79,98,115,101,114,118,101,114,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,111,98,115,101,114,118,101,114,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,105,122,101,72,97,110,100,108,101,114,32,61,32,40,101,110,116,114,105,101,115,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,101,110,116,114,105,101,115,46,102,111,114,69,97,99,104,40,40,101,110,116,114,121,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,99,111,110,115,116,32,101,108,101,109,101,110,116,32,61,32,116,104,105,115,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,103,101,116,40,101,110,116,114,121,46,116,97,114,103,101,116,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,33,101,108,101,109,101,110,116,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,32,32,32,32,99,111,110,115,116,32,91,100,111,116,76,111,116,116,105,101,73,110,115,116,97,110,99,101,44,32,116,105,109,101,111,117,116,93,32,61,32,101,108,101,109,101,110,116,59,10,32,32,32,32,32,32,32,32,32,32,99,108,101,97,114,84,105,109,101,111,117,116,40,116,105,109,101,111,117,116,41,59,10,32,32,32,32,32,32,32,32,32,32,99,111,110,115,116,32,110,101,119,84,105,109,101,111,117,116,32,61,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,100,111,116,76,111,116,116,105,101,73,110,115,116,97,110,99,101,46,114,101,115,105,122,101,40,41,59,10,32,32,32,32,32,32,32,32,32,32,125,44,32,82,69,83,73,90,69,95,68,69,66,79,85,78,67,69,95,84,73,77,69,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,115,101,116,40,101,110,116,114,121,46,116,97,114,103,101,116,44,32,91,100,111,116,76,111,116,116,105,101,73,110,115,116,97,110,99,101,44,32,110,101,119,84,105,109,101,111,117,116,93,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,114,32,61,32,110,101,119,32,82,101,115,105,122,101,79,98,115,101,114,118,101,114,40,114,101,115,105,122,101,72,97,110,100,108,101,114,41,59,10,32,32,32,32,125,10,32,32,32,32,115,116,97,116,105,99,32,111,98,115,101,114,118,101,40,99,97,110,118,97,115,44,32,100,111,116,76,111,116,116,105,101,73,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,105,110,105,116,105,97,108,105,122,101,79,98,115,101,114,118,101,114,40,41,59,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,104,97,115,40,99,97,110,118,97,115,41,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,115,101,116,40,99,97,110,118,97,115,44,32,91,100,111,116,76,111,116,116,105,101,73,110,115,116,97,110,99,101,44,32,48,93,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,114,63,46,111,98,115,101,114,118,101,40,99,97,110,118,97,115,41,59,10,32,32,32,32,125,10,32,32,32,32,115,116,97,116,105,99,32,117,110,111,98,115,101,114,118,101,40,99,97,110,118,97,115,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,101,108,101,109,101,110,116,32,61,32,116,104,105,115,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,103,101,116,40,99,97,110,118,97,115,41,59,10,32,32,32,32,32,32,105,102,32,40,101,108,101,109,101,110,116,41,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,116,105,109,101,111,117,116,73,100,32,61,32,101,108,101,109,101,110,116,91,49,93,59,10,32,32,32,32,32,32,32,32,105,102,32,40,116,105,109,101,111,117,116,73,100,41,32,99,108,101,97,114,84,105,109,101,111,117,116,40,116,105,109,101,111,117,116,73,100,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,114,63,46,117,110,111,98,115,101,114,118,101,40,99,97,110,118,97,115,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,100,101,108,101,116,101,40,99,97,110,118,97,115,41,59,10,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,46,115,105,122,101,32,38,38,32,116,104,105,115,46,95,111,98,115,101,114,118,101,114,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,114,46,100,105,115,99,111,110,110,101,99,116,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,111,98,115,101,114,118,101,114,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,125,59,10,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,67,97,110,118,97,115,82,101,115,105,122,101,79,98,115,101,114,118,101,114,44,32,34,95,111,98,115,101,114,118,101,114,34,44,32,110,117,108,108,41,59,10,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,67,97,110,118,97,115,82,101,115,105,122,101,79,98,115,101,114,118,101,114,44,32,34,95,111,98,115,101,114,118,101,100,67,97,110,118,97,115,101,115,34,44,32,47,42,32,64,95,95,80,85,82,69,95,95,32,42,47,32,110,101,119,32,77,97,112,40,41,41,59,10,10,32,32,47,47,32,115,114,99,47,117,116,105,108,115,46,116,115,10,32,32,102,117,110,99,116,105,111,110,32,105,115,72,101,120,67,111,108,111,114,40,99,111,108,111,114,41,32,123,10,32,32,32,32,114,101,116,117,114,110,32,47,94,35,40,91,92,100,97,45,102,93,123,54,125,124,91,92,100,97,45,102,93,123,56,125,41,36,47,105,117,46,116,101,115,116,40,99,111,108,111,114,41,59,10,32,32,125,10,32,32,102,117,110,99,116,105,111,110,32,104,101,120,83,116,114,105,110,103,84,111,82,71,66,65,73,110,116,40,99,111,108,111,114,72,101,120,41,32,123,10,32,32,32,32,105,102,32,40,33,105,115,72,101,120,67,111,108,111,114,40,99,111,108,111,114,72,101,120,41,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,48,59,10,32,32,32,32,125,10,32,32,32,32,108,101,116,32,104,101,120,32,61,32,99,111,108,111,114,72,101,120,46,114,101,112,108,97,99,101,40,34,35,34,44,32,34,34,41,59,10,32,32,32,32,104,101,120,32,61,32,104,101,120,46,108,101,110,103,116,104,32,61,61,61,32,54,32,63,32,96,36,123,104,101,120,125,102,102,96,32,58,32,104,101,120,59,10,32,32,32,32,114,101,116,117,114,110,32,112,97,114,115,101,73,110,116,40,104,101,120,44,32,49,54,41,59,10,32,32,125,10,32,32,102,117,110,99,116,105,111,110,32,105,115,68,111,116,76,111,116,116,105,101,40,102,105,108,101,68,97,116,97,41,32,123,10,32,32,32,32,105,102,32,40,102,105,108,101,68,97,116,97,46,98,121,116,101,76,101,110,103,116,104,32,60,32,52,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,99,111,110,115,116,32,102,105,108,101,83,105,103,110,97,116,117,114,101,32,61,32,110,101,119,32,85,105,110,116,56,65,114,114,97,121,40,102,105,108,101,68,97,116,97,46,115,108,105,99,101,40,48,44,32,90,73,80,95,83,73,71,78,65,84,85,82,69,46,98,121,116,101,76,101,110,103,116,104,41,41,59,10,32,32,32,32,102,111,114,32,40,108,101,116,32,105,32,61,32,48,59,32,105,32,60,32,90,73,80,95,83,73,71,78,65,84,85,82,69,46,108,101,110,103,116,104,59,32,105,32,43,61,32,49,41,32,123,10,32,32,32,32,32,32,105,102,32,40,90,73,80,95,83,73,71,78,65,84,85,82,69,91,105,93,32,33,61,61,32,102,105,108,101,83,105,103,110,97,116,117,114,101,91,105,93,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,114,101,116,117,114,110,32,116,114,117,101,59,10,32,32,125,10,32,32,102,117,110,99,116,105,111,110,32,105,115,76,111,116,116,105,101,74,83,79,78,40,106,115,111,110,41,32,123,10,32,32,32,32,114,101,116,117,114,110,32,76,79,84,84,73,69,95,74,83,79,78,95,77,65,78,68,65,84,79,82,89,95,70,73,69,76,68,83,46,101,118,101,114,121,40,40,102,105,101,108,100,41,32,61,62,32,79,98,106,101,99,116,46,112,114,111,116,111,116,121,112,101,46,104,97,115,79,119,110,80,114,111,112,101,114,116,121,46,99,97,108,108,40,106,115,111,110,44,32,102,105,101,108,100,41,41,59,10,32,32,125,10,32,32,102,117,110,99,116,105,111,110,32,105,115,76,111,116,116,105,101,40,102,105,108,101,68,97,116,97,41,32,123,10,32,32,32,32,105,102,32,40,116,121,112,101,111,102,32,102,105,108,101,68,97,116,97,32,61,61,61,32,34,115,116,114,105,110,103,34,41,32,123,10,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,105,115,76,111,116,116,105,101,74,83,79,78,40,74,83,79,78,46,112,97,114,115,101,40,102,105,108,101,68,97,116,97,41,41,59,10,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,95,101,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,115,76,111,116,116,105,101,74,83,79,78,40,102,105,108,101,68,97,116,97,41,59,10,32,32,32,32,125,10,32,32,125,10,32,32,102,117,110,99,116,105,111,110,32,103,101,116,68,101,102,97,117,108,116,68,80,82,40,41,32,123,10,32,32,32,32,99,111,110,115,116,32,100,112,114,32,61,32,73,83,95,66,82,79,87,83,69,82,32,63,32,119,105,110,100,111,119,46,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,32,58,32,49,59,10,32,32,32,32,114,101,116,117,114,110,32,49,32,43,32,40,100,112,114,32,45,32,49,41,32,42,32,68,69,70,65,85,76,84,95,68,80,82,95,70,65,67,84,79,82,59,10,32,32,125,10,32,32,102,117,110,99,116,105,111,110,32,105,115,69,108,101,109,101,110,116,73,110,86,105,101,119,112,111,114,116,40,101,108,101,109,101,110,116,41,32,123,10,32,32,32,32,99,111,110,115,116,32,114,101,99,116,32,61,32,101,108,101,109,101,110,116,46,103,101,116,66,111,117,110,100,105,110,103,67,108,105,101,110,116,82,101,99,116,40,41,59,10,32,32,32,32,99,111,110,115,116,32,118,105,101,119,112,111,114,116,72,101,105,103,104,116,32,61,32,119,105,110,100,111,119,46,105,110,110,101,114,72,101,105,103,104,116,32,124,124,32,100,111,99,117,109,101,110,116,46,100,111,99,117,109,101,110,116,69,108,101,109,101,110,116,46,99,108,105,101,110,116,72,101,105,103,104,116,59,10,32,32,32,32,99,111,110,115,116,32,118,105,101,119,112,111,114,116,87,105,100,116,104,32,61,32,119,105,110,100,111,119,46,105,110,110,101,114,87,105,100,116,104,32,124,124,32,100,111,99,117,109,101,110,116,46,100,111,99,117,109,101,110,116,69,108,101,109,101,110,116,46,99,108,105,101,110,116,87,105,100,116,104,59,10,32,32,32,32,114,101,116,117,114,110,32,33,40,114,101,99,116,46,98,111,116,116,111,109,32,60,32,48,32,124,124,32,114,101,99,116,46,116,111,112,32,62,32,118,105,101,119,112,111,114,116,72,101,105,103,104,116,32,124,124,32,114,101,99,116,46,114,105,103,104,116,32,60,32,48,32,124,124,32,114,101,99,116,46,108,101,102,116,32,62,32,118,105,101,119,112,111,114,116,87,105,100,116,104,41,59,10,32,32,125,10,32,32,102,117,110,99,116,105,111,110,32,103,101,116,80,111,105,110,116,101,114,80,111,115,105,116,105,111,110,40,101,118,101,110,116,41,32,123,10,32,32,32,32,99,111,110,115,116,32,99,97,110,118,97,115,32,61,32,101,118,101,110,116,46,116,97,114,103,101,116,59,10,32,32,32,32,105,102,32,40,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,99,116,32,61,32,99,97,110,118,97,115,46,103,101,116,66,111,117,110,100,105,110,103,67,108,105,101,110,116,82,101,99,116,40,41,59,10,32,32,32,32,32,32,105,102,32,40,114,101,99,116,46,119,105,100,116,104,32,61,61,61,32,48,32,124,124,32,114,101,99,116,46,104,101,105,103,104,116,32,61,61,61,32,48,32,124,124,32,99,97,110,118,97,115,46,119,105,100,116,104,32,61,61,61,32,48,32,124,124,32,99,97,110,118,97,115,46,104,101,105,103,104,116,32,61,61,61,32,48,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,110,117,108,108,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,99,111,110,115,116,32,115,99,97,108,101,88,32,61,32,99,97,110,118,97,115,46,119,105,100,116,104,32,47,32,114,101,99,116,46,119,105,100,116,104,59,10,32,32,32,32,32,32,99,111,110,115,116,32,115,99,97,108,101,89,32,61,32,99,97,110,118,97,115,46,104,101,105,103,104,116,32,47,32,114,101,99,116,46,104,101,105,103,104,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,120,32,61,32,40,101,118,101,110,116,46,99,108,105,101,110,116,88,32,45,32,114,101,99,116,46,108,101,102,116,41,32,42,32,115,99,97,108,101,88,59,10,32,32,32,32,32,32,99,111,110,115,116,32,121,32,61,32,40,101,118,101,110,116,46,99,108,105,101,110,116,89,32,45,32,114,101,99,116,46,116,111,112,41,32,42,32,115,99,97,108,101,89,59,10,32,32,32,32,32,32,105,102,32,40,33,78,117,109,98,101,114,46,105,115,70,105,110,105,116,101,40,120,41,32,124,124,32,33,78,117,109,98,101,114,46,105,115,70,105,110,105,116,101,40,121,41,32,124,124,32,78,117,109,98,101,114,46,105,115,78,97,78,40,120,41,32,124,124,32,78,117,109,98,101,114,46,105,115,78,97,78,40,121,41,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,110,117,108,108,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,123,32,120,44,32,121,32,125,59,10,32,32,32,32,125,10,32,32,32,32,114,101,116,117,114,110,32,110,117,108,108,59,10,32,32,125,10,32,32,102,117,110,99,116,105,111,110,32,104,97,110,100,108,101,79,112,101,110,85,114,108,40,109,101,115,115,97,103,101,41,32,123,10,32,32,32,32,99,111,110,115,116,32,99,111,110,116,101,110,116,32,61,32,109,101,115,115,97,103,101,46,114,101,112,108,97,99,101,40,34,79,112,101,110,85,114,108,58,32,34,44,32,34,34,41,59,10,32,32,32,32,99,111,110,115,116,32,116,97,114,103,101,116,83,101,112,97,114,97,116,111,114,73,110,100,101,120,32,61,32,99,111,110,116,101,110,116,46,105,110,100,101,120,79,102,40,34,32,124,32,84,97,114,103,101,116,58,32,34,41,59,10,32,32,32,32,108,101,116,32,117,114,108,84,111,79,112,101,110,59,10,32,32,32,32,108,101,116,32,116,97,114,103,101,116,59,10,32,32,32,32,105,102,32,40,116,97,114,103,101,116,83,101,112,97,114,97,116,111,114,73,110,100,101,120,32,61,61,61,32,45,49,41,32,123,10,32,32,32,32,32,32,117,114,108,84,111,79,112,101,110,32,61,32,99,111,110,116,101,110,116,59,10,32,32,32,32,32,32,116,97,114,103,101,116,32,61,32,34,95,98,108,97,110,107,34,59,10,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,117,114,108,84,111,79,112,101,110,32,61,32,99,111,110,116,101,110,116,46,115,117,98,115,116,114,105,110,103,40,48,44,32,116,97,114,103,101,116,83,101,112,97,114,97,116,111,114,73,110,100,101,120,41,59,10,32,32,32,32,32,32,116,97,114,103,101,116,32,61,32,99,111,110,116,101,110,116,46,115,117,98,115,116,114,105,110,103,40,116,97,114,103,101,116,83,101,112,97,114,97,116,111,114,73,110,100,101,120,32,43,32,34,32,124,32,84,97,114,103,101,116,58,32,34,46,108,101,110,103,116,104,41,59,10,32,32,32,32,125,10,32,32,32,32,119,105,110,100,111,119,46,111,112,101,110,40,117,114,108,84,111,79,112,101,110,44,32,116,97,114,103,101,116,41,59,10,32,32,125,10,10,32,32,47,47,32,115,114,99,47,100,111,116,108,111,116,116,105,101,46,116,115,10,32,32,118,97,114,32,99,114,101,97,116,101,67,111,114,101,77,111,100,101,32,61,32,40,109,111,100,101,44,32,109,111,100,117,108,101,41,32,61,62,32,123,10,32,32,32,32,105,102,32,40,109,111,100,101,32,61,61,61,32,34,114,101,118,101,114,115,101,34,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,46,77,111,100,101,46,82,101,118,101,114,115,101,59,10,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,109,111,100,101,32,61,61,61,32,34,98,111,117,110,99,101,34,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,46,77,111,100,101,46,66,111,117,110,99,101,59,10,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,109,111,100,101,32,61,61,61,32,34,114,101,118,101,114,115,101,45,98,111,117,110,99,101,34,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,46,77,111,100,101,46,82,101,118,101,114,115,101,66,111,117,110,99,101,59,10,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,46,77,111,100,101,46,70,111,114,119,97,114,100,59,10,32,32,32,32,125,10,32,32,125,59,10,32,32,118,97,114,32,99,114,101,97,116,101,67,111,114,101,70,105,116,32,61,32,40,102,105,116,44,32,109,111,100,117,108,101,41,32,61,62,32,123,10,32,32,32,32,105,102,32,40,102,105,116,32,61,61,61,32,34,99,111,110,116,97,105,110,34,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,46,70,105,116,46,67,111,110,116,97,105,110,59,10,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,102,105,116,32,61,61,61,32,34,99,111,118,101,114,34,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,46,70,105,116,46,67,111,118,101,114,59,10,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,102,105,116,32,61,61,61,32,34,102,105,108,108,34,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,46,70,105,116,46,70,105,108,108,59,10,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,102,105,116,32,61,61,61,32,34,102,105,116,45,104,101,105,103,104,116,34,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,46,70,105,116,46,70,105,116,72,101,105,103,104,116,59,10,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,102,105,116,32,61,61,61,32,34,102,105,116,45,119,105,100,116,104,34,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,46,70,105,116,46,70,105,116,87,105,100,116,104,59,10,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,46,70,105,116,46,78,111,110,101,59,10,32,32,32,32,125,10,32,32,125,59,10,32,32,118,97,114,32,99,114,101,97,116,101,67,111,114,101,65,108,105,103,110,32,61,32,40,97,108,105,103,110,44,32,109,111,100,117,108,101,41,32,61,62,32,123,10,32,32,32,32,99,111,110,115,116,32,99,111,114,101,65,108,105,103,110,32,61,32,110,101,119,32,109,111,100,117,108,101,46,86,101,99,116,111,114,70,108,111,97,116,40,41,59,10,32,32,32,32,99,111,114,101,65,108,105,103,110,46,112,117,115,104,95,98,97,99,107,40,97,108,105,103,110,91,48,93,41,59,10,32,32,32,32,99,111,114,101,65,108,105,103,110,46,112,117,115,104,95,98,97,99,107,40,97,108,105,103,110,91,49,93,41,59,10,32,32,32,32,114,101,116,117,114,110,32,99,111,114,101,65,108,105,103,110,59,10,32,32,125,59,10,32,32,118,97,114,32,99,114,101,97,116,101,67,111,114,101,83,101,103,109,101,110,116,32,61,32,40,115,101,103,109,101,110,116,44,32,109,111,100,117,108,101,41,32,61,62,32,123,10,32,32,32,32,99,111,110,115,116,32,99,111,114,101,115,101,103,109,101,110,116,32,61,32,110,101,119,32,109,111,100,117,108,101,46,86,101,99,116,111,114,70,108,111,97,116,40,41,59,10,32,32,32,32,105,102,32,40,115,101,103,109,101,110,116,46,108,101,110,103,116,104,32,33,61,61,32,50,41,32,114,101,116,117,114,110,32,99,111,114,101,115,101,103,109,101,110,116,59,10,32,32,32,32,99,111,114,101,115,101,103,109,101,110,116,46,112,117,115,104,95,98,97,99,107,40,115,101,103,109,101,110,116,91,48,93,41,59,10,32,32,32,32,99,111,114,101,115,101,103,109,101,110,116,46,112,117,115,104,95,98,97,99,107,40,115,101,103,109,101,110,116,91,49,93,41,59,10,32,32,32,32,114,101,116,117,114,110,32,99,111,114,101,115,101,103,109,101,110,116,59,10,32,32,125,59,10,32,32,118,97,114,32,99,114,101,97,116,101,67,111,114,101,76,97,121,111,117,116,32,61,32,40,108,97,121,111,117,116,44,32,109,111,100,117,108,101,41,32,61,62,32,123,10,32,32,32,32,105,102,32,40,33,108,97,121,111,117,116,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,111,100,117,108,101,46,99,114,101,97,116,101,68,101,102,97,117,108,116,76,97,121,111,117,116,40,41,59,10,32,32,32,32,125,10,32,32,32,32,114,101,116,117,114,110,32,123,10,32,32,32,32,32,32,97,108,105,103,110,58,32,99,114,101,97,116,101,67,111,114,101,65,108,105,103,110,40,108,97,121,111,117,116,46,97,108,105,103,110,32,63,63,32,91,48,46,53,44,32,48,46,53,93,44,32,109,111,100,117,108,101,41,44,10,32,32,32,32,32,32,102,105,116,58,32,99,114,101,97,116,101,67,111,114,101,70,105,116,40,108,97,121,111,117,116,46,102,105,116,32,63,63,32,34,99,111,110,116,97,105,110,34,44,32,109,111,100,117,108,101,41,10,32,32,32,32,125,59,10,32,32,125,59,10,32,32,118,97,114,32,95,68,111,116,76,111,116,116,105,101,32,61,32,99,108,97,115,115,32,95,68,111,116,76,111,116,116,105,101,32,123,10,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,40,99,111,110,102,105,103,41,32,123,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,99,97,110,118,97,115,34,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,99,111,110,116,101,120,116,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,101,118,101,110,116,77,97,110,97,103,101,114,34,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,102,114,97,109,101,77,97,110,97,103,101,114,34,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,100,111,116,76,111,116,116,105,101,67,111,114,101,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,115,116,97,116,101,77,97,99,104,105,110,101,73,100,34,44,32,34,34,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,115,116,97,116,101,77,97,99,104,105,110,101,67,111,110,102,105,103,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,34,44,32,102,97,108,115,101,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,115,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,100,111,116,76,111,116,116,105,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,114,101,110,100,101,114,67,111,110,102,105,103,34,44,32,123,125,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,105,115,70,114,111,122,101,110,34,44,32,102,97,108,115,101,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,47,47,32,66,111,117,110,100,32,101,118,101,110,116,32,108,105,115,116,101,110,101,114,115,32,102,111,114,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,98,111,117,110,100,79,110,67,108,105,99,107,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,85,112,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,68,111,119,110,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,77,111,118,101,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,69,110,116,101,114,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,116,104,105,115,44,32,34,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,76,101,97,118,101,34,44,32,110,117,108,108,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,32,61,32,99,111,110,102,105,103,46,99,97,110,118,97,115,59,10,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,32,61,32,110,101,119,32,69,118,101,110,116,77,97,110,97,103,101,114,40,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,102,114,97,109,101,77,97,110,97,103,101,114,32,61,32,110,101,119,32,65,110,105,109,97,116,105,111,110,70,114,97,109,101,77,97,110,97,103,101,114,40,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,32,61,32,123,10,32,32,32,32,32,32,32,32,46,46,46,99,111,110,102,105,103,46,114,101,110,100,101,114,67,111,110,102,105,103,44,10,32,32,32,32,32,32,32,32,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,58,32,99,111,110,102,105,103,46,114,101,110,100,101,114,67,111,110,102,105,103,63,46,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,32,124,124,32,103,101,116,68,101,102,97,117,108,116,68,80,82,40,41,44,10,32,32,32,32,32,32,32,32,47,47,32,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,32,105,115,32,116,114,117,101,32,98,121,32,100,101,102,97,117,108,116,32,116,111,32,112,114,101,118,101,110,116,32,117,110,110,101,99,101,115,115,97,114,121,32,114,101,110,100,101,114,105,110,103,32,119,104,101,110,32,116,104,101,32,99,97,110,118,97,115,32,105,115,32,111,102,102,115,99,114,101,101,110,10,32,32,32,32,32,32,32,32,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,58,32,99,111,110,102,105,103,46,114,101,110,100,101,114,67,111,110,102,105,103,63,46,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,32,63,63,32,116,114,117,101,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,68,111,116,76,111,116,116,105,101,87,97,115,109,76,111,97,100,101,114,46,108,111,97,100,40,41,46,116,104,101,110,40,40,109,111,100,117,108,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,32,61,32,109,111,100,117,108,101,59,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,99,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,32,61,32,110,101,119,32,109,111,100,117,108,101,46,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,40,41,59,10,32,32,32,32,32,32,32,32,99,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,76,111,97,100,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,121,112,101,58,32,34,108,111,97,100,34,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,125,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,99,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,76,111,97,100,69,114,114,111,114,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,121,112,101,58,32,34,108,111,97,100,69,114,114,111,114,34,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,101,114,114,111,114,58,32,110,101,119,32,69,114,114,111,114,40,34,102,97,105,108,101,100,32,116,111,32,108,111,97,100,34,41,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,125,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,99,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,80,108,97,121,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,121,112,101,58,32,34,112,108,97,121,34,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,125,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,99,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,80,97,117,115,101,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,121,112,101,58,32,34,112,97,117,115,101,34,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,125,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,99,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,83,116,111,112,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,121,112,101,58,32,34,115,116,111,112,34,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,125,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,99,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,76,111,111,112,40,40,108,111,111,112,67,111,117,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,121,112,101,58,32,34,108,111,111,112,34,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,108,111,111,112,67,111,117,110,116,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,125,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,99,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,67,111,109,112,108,101,116,101,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,121,112,101,58,32,34,99,111,109,112,108,101,116,101,34,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,125,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,99,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,70,114,97,109,101,40,40,99,117,114,114,101,110,116,70,114,97,109,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,121,112,101,58,32,34,102,114,97,109,101,34,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,99,117,114,114,101,110,116,70,114,97,109,101,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,125,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,99,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,82,101,110,100,101,114,40,40,99,117,114,114,101,110,116,70,114,97,109,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,121,112,101,58,32,34,114,101,110,100,101,114,34,44,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,99,117,114,114,101,110,116,70,114,97,109,101,10,32,32,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,125,44,32,48,41,59,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,32,110,101,119,32,109,111,100,117,108,101,46,68,111,116,76,111,116,116,105,101,80,108,97,121,101,114,40,123,10,32,32,32,32,32,32,32,32,32,32,97,110,105,109,97,116,105,111,110,73,100,58,32,99,111,110,102,105,103,46,97,110,105,109,97,116,105,111,110,73,100,32,63,63,32,34,34,44,10,32,32,32,32,32,32,32,32,32,32,116,104,101,109,101,73,100,58,32,99,111,110,102,105,103,46,116,104,101,109,101,73,100,32,63,63,32,34,34,44,10,32,32,32,32,32,32,32,32,32,32,47,47,32,70,73,88,77,69,58,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,105,100,32,105,115,32,110,111,116,32,117,115,101,102,117,108,44,32,115,105,110,99,101,32,116,104,101,32,108,111,97,100,32,97,110,100,32,115,116,97,114,116,32,111,102,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,114,101,113,117,105,114,101,32,116,111,32,98,101,32,99,111,110,116,114,111,108,108,101,100,32,98,121,32,116,104,101,32,102,114,97,109,101,119,111,114,107,10,32,32,32,32,32,32,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,73,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,32,32,97,117,116,111,112,108,97,121,58,32,99,111,110,102,105,103,46,97,117,116,111,112,108,97,121,32,63,63,32,102,97,108,115,101,44,10,32,32,32,32,32,32,32,32,32,32,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,58,32,48,44,10,32,32,32,32,32,32,32,32,32,32,108,111,111,112,65,110,105,109,97,116,105,111,110,58,32,99,111,110,102,105,103,46,108,111,111,112,32,63,63,32,102,97,108,115,101,44,10,32,32,32,32,32,32,32,32,32,32,109,111,100,101,58,32,99,114,101,97,116,101,67,111,114,101,77,111,100,101,40,99,111,110,102,105,103,46,109,111,100,101,32,63,63,32,34,102,111,114,119,97,114,100,34,44,32,109,111,100,117,108,101,41,44,10,32,32,32,32,32,32,32,32,32,32,115,101,103,109,101,110,116,58,32,99,114,101,97,116,101,67,111,114,101,83,101,103,109,101,110,116,40,99,111,110,102,105,103,46,115,101,103,109,101,110,116,32,63,63,32,91,93,44,32,109,111,100,117,108,101,41,44,10,32,32,32,32,32,32,32,32,32,32,115,112,101,101,100,58,32,99,111,110,102,105,103,46,115,112,101,101,100,32,63,63,32,49,44,10,32,32,32,32,32,32,32,32,32,32,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,58,32,99,111,110,102,105,103,46,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,32,63,63,32,116,114,117,101,44,10,32,32,32,32,32,32,32,32,32,32,109,97,114,107,101,114,58,32,99,111,110,102,105,103,46,109,97,114,107,101,114,32,63,63,32,34,34,44,10,32,32,32,32,32,32,32,32,32,32,108,97,121,111,117,116,58,32,99,114,101,97,116,101,67,111,114,101,76,97,121,111,117,116,40,99,111,110,102,105,103,46,108,97,121,111,117,116,44,32,109,111,100,117,108,101,41,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,100,32,61,32,99,111,110,102,105,103,46,115,116,97,116,101,77,97,99,104,105,110,101,73,100,32,63,63,32,34,34,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,67,111,110,102,105,103,32,61,32,99,111,110,102,105,103,46,115,116,97,116,101,77,97,99,104,105,110,101,67,111,110,102,105,103,32,63,63,32,110,117,108,108,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,117,98,115,99,114,105,98,101,40,99,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,114,101,97,100,121,34,32,125,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,99,111,110,102,105,103,46,100,97,116,97,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,108,111,97,100,70,114,111,109,68,97,116,97,40,99,111,110,102,105,103,46,100,97,116,97,41,59,10,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,99,111,110,102,105,103,46,115,114,99,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,108,111,97,100,70,114,111,109,83,114,99,40,99,111,110,102,105,103,46,115,114,99,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,99,111,110,102,105,103,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,115,101,116,66,97,99,107,103,114,111,117,110,100,67,111,108,111,114,40,99,111,110,102,105,103,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,41,46,99,97,116,99,104,40,40,101,114,114,111,114,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,10,32,32,32,32,32,32,32,32,32,32,116,121,112,101,58,32,34,108,111,97,100,69,114,114,111,114,34,44,10,32,32,32,32,32,32,32,32,32,32,101,114,114,111,114,58,32,110,101,119,32,69,114,114,111,114,40,96,70,97,105,108,101,100,32,116,111,32,108,111,97,100,32,119,97,115,109,32,109,111,100,117,108,101,58,32,36,123,101,114,114,111,114,125,96,41,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,125,10,32,32,32,32,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,109,101,115,115,97,103,101,41,32,123,10,32,32,32,32,32,32,99,111,110,115,111,108,101,46,101,114,114,111,114,40,109,101,115,115,97,103,101,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,108,111,97,100,69,114,114,111,114,34,44,32,101,114,114,111,114,58,32,110,101,119,32,69,114,114,111,114,40,109,101,115,115,97,103,101,41,32,125,41,59,10,32,32,32,32,125,10,32,32,32,32,97,115,121,110,99,32,95,102,101,116,99,104,68,97,116,97,40,115,114,99,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,97,119,97,105,116,32,102,101,116,99,104,40,115,114,99,41,59,10,32,32,32,32,32,32,105,102,32,40,33,114,101,115,112,111,110,115,101,46,111,107,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,70,97,105,108,101,100,32,116,111,32,102,101,116,99,104,32,97,110,105,109,97,116,105,111,110,32,100,97,116,97,32,102,114,111,109,32,85,82,76,58,32,36,123,115,114,99,125,46,32,36,123,114,101,115,112,111,110,115,101,46,115,116,97,116,117,115,125,58,32,36,123,114,101,115,112,111,110,115,101,46,115,116,97,116,117,115,84,101,120,116,125,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,99,111,110,115,116,32,100,97,116,97,32,61,32,97,119,97,105,116,32,114,101,115,112,111,110,115,101,46,97,114,114,97,121,66,117,102,102,101,114,40,41,59,10,32,32,32,32,32,32,105,102,32,40,105,115,68,111,116,76,111,116,116,105,101,40,100,97,116,97,41,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,100,97,116,97,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,110,101,119,32,84,101,120,116,68,101,99,111,100,101,114,40,41,46,100,101,99,111,100,101,40,100,97,116,97,41,59,10,32,32,32,32,125,10,32,32,32,32,95,108,111,97,100,70,114,111,109,68,97,116,97,40,100,97,116,97,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,99,111,110,115,116,32,119,105,100,116,104,32,61,32,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,59,10,32,32,32,32,32,32,99,111,110,115,116,32,104,101,105,103,104,116,32,61,32,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,59,10,32,32,32,32,32,32,108,101,116,32,108,111,97,100,101,100,32,61,32,102,97,108,115,101,59,10,32,32,32,32,32,32,105,102,32,40,116,121,112,101,111,102,32,100,97,116,97,32,61,61,61,32,34,115,116,114,105,110,103,34,41,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,33,105,115,76,111,116,116,105,101,40,100,97,116,97,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,10,32,32,32,32,32,32,32,32,32,32,32,32,34,73,110,118,97,108,105,100,32,76,111,116,116,105,101,32,74,83,79,78,32,115,116,114,105,110,103,58,32,84,104,101,32,112,114,111,118,105,100,101,100,32,115,116,114,105,110,103,32,100,111,101,115,32,110,111,116,32,99,111,110,102,111,114,109,32,116,111,32,116,104,101,32,76,111,116,116,105,101,32,74,83,79,78,32,102,111,114,109,97,116,46,34,10,32,32,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,108,111,97,100,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,108,111,97,100,65,110,105,109,97,116,105,111,110,68,97,116,97,40,100,97,116,97,44,32,119,105,100,116,104,44,32,104,101,105,103,104,116,41,59,10,32,32,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,100,97,116,97,32,105,110,115,116,97,110,99,101,111,102,32,65,114,114,97,121,66,117,102,102,101,114,41,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,33,105,115,68,111,116,76,111,116,116,105,101,40,100,97,116,97,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,10,32,32,32,32,32,32,32,32,32,32,32,32,34,73,110,118,97,108,105,100,32,100,111,116,76,111,116,116,105,101,32,65,114,114,97,121,66,117,102,102,101,114,58,32,84,104,101,32,112,114,111,118,105,100,101,100,32,65,114,114,97,121,66,117,102,102,101,114,32,100,111,101,115,32,110,111,116,32,99,111,110,102,111,114,109,32,116,111,32,116,104,101,32,100,111,116,76,111,116,116,105,101,32,102,111,114,109,97,116,46,34,10,32,32,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,108,111,97,100,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,108,111,97,100,68,111,116,76,111,116,116,105,101,68,97,116,97,40,100,97,116,97,44,32,119,105,100,116,104,44,32,104,101,105,103,104,116,41,59,10,32,32,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,116,121,112,101,111,102,32,100,97,116,97,32,61,61,61,32,34,111,98,106,101,99,116,34,41,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,33,105,115,76,111,116,116,105,101,40,100,97,116,97,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,10,32,32,32,32,32,32,32,32,32,32,32,32,34,73,110,118,97,108,105,100,32,76,111,116,116,105,101,32,74,83,79,78,32,111,98,106,101,99,116,58,32,84,104,101,32,112,114,111,118,105,100,101,100,32,111,98,106,101,99,116,32,100,111,101,115,32,110,111,116,32,99,111,110,102,111,114,109,32,116,111,32,116,104,101,32,76,111,116,116,105,101,32,74,83,79,78,32,102,111,114,109,97,116,46,34,10,32,32,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,108,111,97,100,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,108,111,97,100,65,110,105,109,97,116,105,111,110,68,97,116,97,40,74,83,79,78,46,115,116,114,105,110,103,105,102,121,40,100,97,116,97,41,44,32,119,105,100,116,104,44,32,104,101,105,103,104,116,41,59,10,32,32,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,10,32,32,32,32,32,32,32,32,32,32,96,85,110,115,117,112,112,111,114,116,101,100,32,100,97,116,97,32,116,121,112,101,32,102,111,114,32,97,110,105,109,97,116,105,111,110,32,100,97,116,97,46,32,69,120,112,101,99,116,101,100,58,32,10,32,32,32,32,32,32,32,32,32,32,45,32,115,116,114,105,110,103,32,40,76,111,116,116,105,101,32,74,83,79,78,41,44,10,32,32,32,32,32,32,32,32,32,32,45,32,65,114,114,97,121,66,117,102,102,101,114,32,40,100,111,116,76,111,116,116,105,101,41,44,10,32,32,32,32,32,32,32,32,32,32,45,32,111,98,106,101,99,116,32,40,76,111,116,116,105,101,32,74,83,79,78,41,46,32,10,32,32,32,32,32,32,32,32,32,32,82,101,99,101,105,118,101,100,58,32,36,123,116,121,112,101,111,102,32,100,97,116,97,125,96,10,32,32,32,32,32,32,32,32,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,102,32,40,108,111,97,100,101,100,41,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,73,83,95,66,82,79,87,83,69,82,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,114,101,115,105,122,101,40,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,121,112,101,58,32,34,102,114,97,109,101,34,44,10,32,32,32,32,32,32,32,32,32,32,32,32,99,117,114,114,101,110,116,70,114,97,109,101,58,32,116,104,105,115,46,99,117,114,114,101,110,116,70,114,97,109,101,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,125,44,32,48,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,114,97,119,40,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,99,111,110,115,116,32,115,109,76,111,97,100,101,100,32,61,32,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,100,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,115,109,76,111,97,100,101,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,99,111,110,115,116,32,115,109,83,116,97,114,116,101,100,32,61,32,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,115,109,83,116,97,114,116,101,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,105,115,80,108,97,121,105,110,103,40,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,73,83,95,66,82,79,87,83,69,82,32,38,38,32,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,79,102,102,115,99,114,101,101,110,79,98,115,101,114,118,101,114,46,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,44,32,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,105,102,32,40,33,105,115,69,108,101,109,101,110,116,73,110,86,105,101,119,112,111,114,116,40,116,104,105,115,46,95,99,97,110,118,97,115,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,102,114,101,101,122,101,40,41,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,97,117,116,111,82,101,115,105,122,101,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,67,97,110,118,97,115,82,101,115,105,122,101,79,98,115,101,114,118,101,114,46,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,44,32,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,95,108,111,97,100,70,114,111,109,83,114,99,40,115,114,99,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,102,101,116,99,104,68,97,116,97,40,115,114,99,41,46,116,104,101,110,40,40,100,97,116,97,41,32,61,62,32,116,104,105,115,46,95,108,111,97,100,70,114,111,109,68,97,116,97,40,100,97,116,97,41,41,46,99,97,116,99,104,40,40,101,114,114,111,114,41,32,61,62,32,116,104,105,115,46,95,100,105,115,112,97,116,99,104,69,114,114,111,114,40,96,70,97,105,108,101,100,32,116,111,32,108,111,97,100,32,97,110,105,109,97,116,105,111,110,32,100,97,116,97,32,102,114,111,109,32,85,82,76,58,32,36,123,115,114,99,125,46,32,36,123,101,114,114,111,114,125,96,41,41,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,98,117,102,102,101,114,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,32,114,101,116,117,114,110,32,110,117,108,108,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,98,117,102,102,101,114,40,41,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,97,99,116,105,118,101,65,110,105,109,97,116,105,111,110,73,100,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,97,99,116,105,118,101,65,110,105,109,97,116,105,111,110,73,100,40,41,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,97,99,116,105,118,101,84,104,101,109,101,73,100,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,97,99,116,105,118,101,84,104,101,109,101,73,100,40,41,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,108,97,121,111,117,116,40,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,108,97,121,111,117,116,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,99,111,110,102,105,103,40,41,46,108,97,121,111,117,116,59,10,32,32,32,32,32,32,105,102,32,40,108,97,121,111,117,116,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,123,10,32,32,32,32,32,32,32,32,32,32,97,108,105,103,110,58,32,91,108,97,121,111,117,116,46,97,108,105,103,110,46,103,101,116,40,48,41,44,32,108,97,121,111,117,116,46,97,108,105,103,110,46,103,101,116,40,49,41,93,44,10,32,32,32,32,32,32,32,32,32,32,102,105,116,58,32,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,115,119,105,116,99,104,32,40,108,97,121,111,117,116,46,102,105,116,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,63,46,70,105,116,46,67,111,110,116,97,105,110,58,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,34,99,111,110,116,97,105,110,34,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,63,46,70,105,116,46,67,111,118,101,114,58,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,34,99,111,118,101,114,34,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,63,46,70,105,116,46,70,105,108,108,58,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,34,102,105,108,108,34,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,63,46,70,105,116,46,70,105,116,72,101,105,103,104,116,58,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,34,102,105,116,45,104,101,105,103,104,116,34,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,63,46,70,105,116,46,70,105,116,87,105,100,116,104,58,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,34,102,105,116,45,119,105,100,116,104,34,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,99,97,115,101,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,63,46,70,105,116,46,78,111,110,101,58,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,34,110,111,110,101,34,59,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,100,101,102,97,117,108,116,58,10,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,34,99,111,110,116,97,105,110,34,59,10,32,32,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,32,32,125,41,40,41,10,32,32,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,118,111,105,100,32,48,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,109,97,114,107,101,114,40,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,109,97,114,107,101,114,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,99,111,110,102,105,103,40,41,46,109,97,114,107,101,114,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,109,97,114,107,101,114,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,109,97,110,105,102,101,115,116,40,41,32,123,10,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,109,97,110,105,102,101,115,116,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,109,97,110,105,102,101,115,116,83,116,114,105,110,103,40,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,32,124,124,32,33,109,97,110,105,102,101,115,116,41,32,114,101,116,117,114,110,32,110,117,108,108,59,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,109,97,110,105,102,101,115,116,74,115,111,110,32,61,32,74,83,79,78,46,112,97,114,115,101,40,109,97,110,105,102,101,115,116,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,79,98,106,101,99,116,46,107,101,121,115,40,109,97,110,105,102,101,115,116,74,115,111,110,41,46,108,101,110,103,116,104,32,61,61,61,32,48,41,32,114,101,116,117,114,110,32,110,117,108,108,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,109,97,110,105,102,101,115,116,74,115,111,110,59,10,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,95,101,114,114,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,110,117,108,108,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,114,101,110,100,101,114,67,111,110,102,105,103,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,115,101,103,109,101,110,116,40,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,101,103,109,101,110,116,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,99,111,110,102,105,103,40,41,46,115,101,103,109,101,110,116,59,10,32,32,32,32,32,32,105,102,32,40,115,101,103,109,101,110,116,32,38,38,32,115,101,103,109,101,110,116,46,115,105,122,101,40,41,32,61,61,61,32,50,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,91,115,101,103,109,101,110,116,46,103,101,116,40,48,41,44,32,115,101,103,109,101,110,116,46,103,101,116,40,49,41,93,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,118,111,105,100,32,48,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,108,111,111,112,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,99,111,110,102,105,103,40,41,46,108,111,111,112,65,110,105,109,97,116,105,111,110,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,109,111,100,101,40,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,109,111,100,101,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,99,111,110,102,105,103,40,41,46,109,111,100,101,59,10,32,32,32,32,32,32,105,102,32,40,109,111,100,101,32,61,61,61,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,63,46,77,111,100,101,46,82,101,118,101,114,115,101,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,34,114,101,118,101,114,115,101,34,59,10,32,32,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,109,111,100,101,32,61,61,61,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,63,46,77,111,100,101,46,66,111,117,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,34,98,111,117,110,99,101,34,59,10,32,32,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,109,111,100,101,32,61,61,61,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,63,46,77,111,100,101,46,82,101,118,101,114,115,101,66,111,117,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,34,114,101,118,101,114,115,101,45,98,111,117,110,99,101,34,59,10,32,32,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,34,102,111,114,119,97,114,100,34,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,105,115,70,114,111,122,101,110,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,105,115,70,114,111,122,101,110,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,32,63,63,32,34,34,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,97,117,116,111,112,108,97,121,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,99,111,110,102,105,103,40,41,46,97,117,116,111,112,108,97,121,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,99,111,110,102,105,103,40,41,46,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,115,112,101,101,100,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,99,111,110,102,105,103,40,41,46,115,112,101,101,100,32,63,63,32,48,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,105,115,82,101,97,100,121,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,33,61,61,32,110,117,108,108,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,105,115,76,111,97,100,101,100,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,105,115,76,111,97,100,101,100,40,41,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,105,115,80,108,97,121,105,110,103,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,105,115,80,108,97,121,105,110,103,40,41,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,105,115,80,97,117,115,101,100,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,105,115,80,97,117,115,101,100,40,41,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,105,115,83,116,111,112,112,101,100,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,105,115,83,116,111,112,112,101,100,40,41,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,99,117,114,114,101,110,116,70,114,97,109,101,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,32,114,101,116,117,114,110,32,48,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,77,97,116,104,46,114,111,117,110,100,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,117,114,114,101,110,116,70,114,97,109,101,40,41,32,42,32,49,48,48,41,32,47,32,49,48,48,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,108,111,111,112,67,111,117,110,116,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,108,111,111,112,67,111,117,110,116,40,41,32,63,63,32,48,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,116,111,116,97,108,70,114,97,109,101,115,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,116,111,116,97,108,70,114,97,109,101,115,40,41,32,63,63,32,48,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,100,117,114,97,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,100,117,114,97,116,105,111,110,40,41,32,63,63,32,48,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,115,101,103,109,101,110,116,68,117,114,97,116,105,111,110,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,101,103,109,101,110,116,68,117,114,97,116,105,111,110,40,41,32,63,63,32,48,59,10,32,32,32,32,125,10,32,32,32,32,103,101,116,32,99,97,110,118,97,115,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,99,97,110,118,97,115,59,10,32,32,32,32,125,10,32,32,32,32,108,111,97,100,40,99,111,110,102,105,103,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,32,124,124,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,105,102,32,40,73,83,95,66,82,79,87,83,69,82,32,38,38,32,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,41,32,123,10,32,32,32,32,32,32,32,32,79,102,102,115,99,114,101,101,110,79,98,115,101,114,118,101,114,46,117,110,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,41,59,10,32,32,32,32,32,32,32,32,67,97,110,118,97,115,82,101,115,105,122,101,79,98,115,101,114,118,101,114,46,117,110,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,116,104,105,115,46,95,105,115,70,114,111,122,101,110,32,61,32,102,97,108,115,101,59,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,67,111,110,102,105,103,40,123,10,32,32,32,32,32,32,32,32,97,110,105,109,97,116,105,111,110,73,100,58,32,99,111,110,102,105,103,46,97,110,105,109,97,116,105,111,110,73,100,32,63,63,32,34,34,44,10,32,32,32,32,32,32,32,32,116,104,101,109,101,73,100,58,32,99,111,110,102,105,103,46,116,104,101,109,101,73,100,32,63,63,32,34,34,44,10,32,32,32,32,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,73,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,97,117,116,111,112,108,97,121,58,32,99,111,110,102,105,103,46,97,117,116,111,112,108,97,121,32,63,63,32,102,97,108,115,101,44,10,32,32,32,32,32,32,32,32,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,58,32,48,44,10,32,32,32,32,32,32,32,32,108,111,111,112,65,110,105,109,97,116,105,111,110,58,32,99,111,110,102,105,103,46,108,111,111,112,32,63,63,32,102,97,108,115,101,44,10,32,32,32,32,32,32,32,32,109,111,100,101,58,32,99,114,101,97,116,101,67,111,114,101,77,111,100,101,40,99,111,110,102,105,103,46,109,111,100,101,32,63,63,32,34,102,111,114,119,97,114,100,34,44,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,41,44,10,32,32,32,32,32,32,32,32,115,101,103,109,101,110,116,58,32,99,114,101,97,116,101,67,111,114,101,83,101,103,109,101,110,116,40,99,111,110,102,105,103,46,115,101,103,109,101,110,116,32,63,63,32,91,93,44,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,41,44,10,32,32,32,32,32,32,32,32,115,112,101,101,100,58,32,99,111,110,102,105,103,46,115,112,101,101,100,32,63,63,32,49,44,10,32,32,32,32,32,32,32,32,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,58,32,99,111,110,102,105,103,46,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,32,63,63,32,116,114,117,101,44,10,32,32,32,32,32,32,32,32,109,97,114,107,101,114,58,32,99,111,110,102,105,103,46,109,97,114,107,101,114,32,63,63,32,34,34,44,10,32,32,32,32,32,32,32,32,108,97,121,111,117,116,58,32,99,114,101,97,116,101,67,111,114,101,76,97,121,111,117,116,40,99,111,110,102,105,103,46,108,97,121,111,117,116,44,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,41,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,105,102,32,40,99,111,110,102,105,103,46,100,97,116,97,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,108,111,97,100,70,114,111,109,68,97,116,97,40,99,111,110,102,105,103,46,100,97,116,97,41,59,10,32,32,32,32,32,32,125,32,101,108,115,101,32,105,102,32,40,99,111,110,102,105,103,46,115,114,99,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,108,111,97,100,70,114,111,109,83,114,99,40,99,111,110,102,105,103,46,115,114,99,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,116,104,105,115,46,115,101,116,66,97,99,107,103,114,111,117,110,100,67,111,108,111,114,40,99,111,110,102,105,103,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,32,63,63,32,34,34,41,59,10,32,32,32,32,125,10,32,32,32,32,95,100,114,97,119,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,99,111,110,116,101,120,116,32,38,38,32,34,103,101,116,67,111,110,116,101,120,116,34,32,105,110,32,116,104,105,115,46,95,99,97,110,118,97,115,32,38,38,32,116,121,112,101,111,102,32,116,104,105,115,46,95,99,97,110,118,97,115,46,103,101,116,67,111,110,116,101,120,116,32,61,61,61,32,34,102,117,110,99,116,105,111,110,34,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,111,110,116,101,120,116,32,61,32,116,104,105,115,46,95,99,97,110,118,97,115,46,103,101,116,67,111,110,116,101,120,116,40,34,50,100,34,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,99,111,110,116,101,120,116,41,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,98,117,102,102,101,114,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,98,117,102,102,101,114,40,41,59,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,101,120,112,101,99,116,101,100,76,101,110,103,116,104,32,61,32,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,32,42,32,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,32,42,32,66,89,84,69,83,95,80,69,82,95,80,73,88,69,76,59,10,32,32,32,32,32,32,32,32,105,102,32,40,98,117,102,102,101,114,46,98,121,116,101,76,101,110,103,116,104,32,33,61,61,32,101,120,112,101,99,116,101,100,76,101,110,103,116,104,41,32,123,10,32,32,32,32,32,32,32,32,32,32,99,111,110,115,111,108,101,46,119,97,114,110,40,96,66,117,102,102,101,114,32,115,105,122,101,32,109,105,115,109,97,116,99,104,58,32,103,111,116,32,36,123,98,117,102,102,101,114,46,98,121,116,101,76,101,110,103,116,104,125,44,32,101,120,112,101,99,116,101,100,32,36,123,101,120,112,101,99,116,101,100,76,101,110,103,116,104,125,96,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,108,101,116,32,105,109,97,103,101,68,97,116,97,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,99,108,97,109,112,101,100,66,117,102,102,101,114,32,61,32,110,101,119,32,85,105,110,116,56,67,108,97,109,112,101,100,65,114,114,97,121,40,98,117,102,102,101,114,44,32,48,44,32,98,117,102,102,101,114,46,98,121,116,101,76,101,110,103,116,104,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,116,121,112,101,111,102,32,73,109,97,103,101,68,97,116,97,32,61,61,61,32,34,117,110,100,101,102,105,110,101,100,34,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,109,97,103,101,68,97,116,97,32,61,32,116,104,105,115,46,95,99,111,110,116,101,120,116,46,99,114,101,97,116,101,73,109,97,103,101,68,97,116,97,40,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,44,32,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,41,59,10,32,32,32,32,32,32,32,32,32,32,105,109,97,103,101,68,97,116,97,46,100,97,116,97,46,115,101,116,40,99,108,97,109,112,101,100,66,117,102,102,101,114,41,59,10,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,32,32,105,109,97,103,101,68,97,116,97,32,61,32,110,101,119,32,73,109,97,103,101,68,97,116,97,40,99,108,97,109,112,101,100,66,117,102,102,101,114,44,32,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,44,32,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,111,110,116,101,120,116,46,112,117,116,73,109,97,103,101,68,97,116,97,40,105,109,97,103,101,68,97,116,97,44,32,48,44,32,48,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,32,33,61,61,32,110,117,108,108,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,102,114,97,109,101,77,97,110,97,103,101,114,46,99,97,110,99,101,108,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,32,61,61,61,32,110,117,108,108,32,38,38,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,38,38,32,33,116,104,105,115,46,95,105,115,70,114,111,122,101,110,32,38,38,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,105,115,80,108,97,121,105,110,103,40,41,32,124,124,32,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,41,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,32,61,32,116,104,105,115,46,95,102,114,97,109,101,77,97,110,97,103,101,114,46,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,76,111,111,112,46,98,105,110,100,40,116,104,105,115,41,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,95,97,110,105,109,97,116,105,111,110,76,111,111,112,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,105,115,80,108,97,121,105,110,103,40,41,32,38,38,32,33,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,97,100,118,97,110,99,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,116,105,99,107,40,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,97,100,118,97,110,99,101,100,32,124,124,32,47,47,32,70,73,88,77,69,58,32,84,104,105,115,32,105,115,32,97,32,119,111,114,107,97,114,111,117,110,100,32,116,111,32,102,105,120,32,116,104,101,32,83,101,116,70,114,97,109,101,32,97,99,116,105,111,110,32,105,110,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,114,97,119,40,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,32,61,32,116,104,105,115,46,95,102,114,97,109,101,77,97,110,97,103,101,114,46,114,101,113,117,101,115,116,65,110,105,109,97,116,105,111,110,70,114,97,109,101,40,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,76,111,111,112,46,98,105,110,100,40,116,104,105,115,41,41,59,10,32,32,32,32,32,32,125,32,99,97,116,99,104,32,40,101,114,114,111,114,41,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,111,108,101,46,101,114,114,111,114,40,34,69,114,114,111,114,32,105,110,32,97,110,105,109,97,116,105,111,110,32,102,114,97,109,101,58,34,44,32,101,114,114,111,114,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,114,101,110,100,101,114,69,114,114,111,114,34,44,32,101,114,114,111,114,32,125,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,101,114,114,111,114,32,105,110,115,116,97,110,99,101,111,102,32,87,101,98,65,115,115,101,109,98,108,121,46,82,117,110,116,105,109,101,69,114,114,111,114,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,100,101,115,116,114,111,121,40,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,112,108,97,121,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,32,124,124,32,33,116,104,105,115,46,105,115,76,111,97,100,101,100,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,99,111,110,115,116,32,112,108,97,121,105,110,103,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,112,108,97,121,40,41,59,10,32,32,32,32,32,32,105,102,32,40,112,108,97,121,105,110,103,32,124,124,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,105,115,80,108,97,121,105,110,103,40,41,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,105,115,70,114,111,122,101,110,32,61,32,102,97,108,115,101,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,102,32,40,73,83,95,66,82,79,87,83,69,82,32,38,38,32,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,32,38,38,32,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,32,38,38,32,33,105,115,69,108,101,109,101,110,116,73,110,86,105,101,119,112,111,114,116,40,116,104,105,115,46,95,99,97,110,118,97,115,41,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,102,114,101,101,122,101,40,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,112,97,117,115,101,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,112,97,117,115,101,40,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,125,10,32,32,32,32,115,116,111,112,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,99,111,110,115,116,32,111,107,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,116,111,112,40,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,105,102,32,40,111,107,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,102,114,97,109,101,34,44,32,99,117,114,114,101,110,116,70,114,97,109,101,58,32,116,104,105,115,46,99,117,114,114,101,110,116,70,114,97,109,101,32,125,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,114,97,119,40,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,115,101,116,70,114,97,109,101,40,102,114,97,109,101,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,99,111,110,115,116,32,102,114,97,109,101,85,112,100,97,116,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,101,107,40,102,114,97,109,101,41,59,10,32,32,32,32,32,32,105,102,32,40,102,114,97,109,101,85,112,100,97,116,101,100,41,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,114,101,110,100,101,114,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,110,100,101,114,40,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,114,101,110,100,101,114,101,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,114,97,119,40,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,115,101,116,83,112,101,101,100,40,115,112,101,101,100,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,67,111,110,102,105,103,40,123,10,32,32,32,32,32,32,32,32,46,46,46,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,111,110,102,105,103,40,41,44,10,32,32,32,32,32,32,32,32,115,112,101,101,100,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,125,10,32,32,32,32,115,101,116,66,97,99,107,103,114,111,117,110,100,67,111,108,111,114,40,99,111,108,111,114,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,105,102,32,40,73,83,95,66,82,79,87,83,69,82,32,38,38,32,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,115,116,121,108,101,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,32,61,32,99,111,108,111,114,59,10,32,32,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,67,111,110,102,105,103,40,123,10,32,32,32,32,32,32,32,32,32,32,46,46,46,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,111,110,102,105,103,40,41,44,10,32,32,32,32,32,32,32,32,32,32,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,58,32,104,101,120,83,116,114,105,110,103,84,111,82,71,66,65,73,110,116,40,99,111,108,111,114,41,10,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,116,104,105,115,46,95,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,32,61,32,99,111,108,111,114,59,10,32,32,32,32,125,10,32,32,32,32,115,101,116,76,111,111,112,40,108,111,111,112,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,67,111,110,102,105,103,40,123,10,32,32,32,32,32,32,32,32,46,46,46,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,111,110,102,105,103,40,41,44,10,32,32,32,32,32,32,32,32,108,111,111,112,65,110,105,109,97,116,105,111,110,58,32,108,111,111,112,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,125,10,32,32,32,32,115,101,116,85,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,40,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,67,111,110,102,105,103,40,123,10,32,32,32,32,32,32,32,32,46,46,46,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,111,110,102,105,103,40,41,44,10,32,32,32,32,32,32,32,32,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,125,10,32,32,32,32,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,116,121,112,101,44,32,108,105,115,116,101,110,101,114,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,116,121,112,101,44,32,108,105,115,116,101,110,101,114,41,59,10,32,32,32,32,125,10,32,32,32,32,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,116,121,112,101,44,32,108,105,115,116,101,110,101,114,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,116,121,112,101,44,32,108,105,115,116,101,110,101,114,41,59,10,32,32,32,32,125,10,32,32,32,32,100,101,115,116,114,111,121,40,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,32,61,32,102,97,108,115,101,59,10,32,32,32,32,32,32,105,102,32,40,73,83,95,66,82,79,87,83,69,82,32,38,38,32,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,41,32,123,10,32,32,32,32,32,32,32,32,79,102,102,115,99,114,101,101,110,79,98,115,101,114,118,101,114,46,117,110,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,41,59,10,32,32,32,32,32,32,32,32,67,97,110,118,97,115,82,101,115,105,122,101,79,98,115,101,114,118,101,114,46,117,110,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,85,110,115,117,98,115,99,114,105,98,101,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,46,100,101,108,101,116,101,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,85,110,115,117,98,115,99,114,105,98,101,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,46,100,101,108,101,116,101,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,117,110,115,117,98,115,99,114,105,98,101,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,46,100,101,108,101,116,101,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,100,101,108,101,116,101,40,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,116,104,105,115,46,95,99,111,110,116,101,120,116,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,10,32,32,32,32,32,32,32,32,116,121,112,101,58,32,34,100,101,115,116,114,111,121,34,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,114,101,109,111,118,101,65,108,108,69,118,101,110,116,76,105,115,116,101,110,101,114,115,40,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,59,10,32,32,32,32,125,10,32,32,32,32,102,114,101,101,122,101,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,105,115,70,114,111,122,101,110,32,61,32,116,114,117,101,59,10,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,102,114,101,101,122,101,34,32,125,41,59,10,32,32,32,32,125,10,32,32,32,32,117,110,102,114,101,101,122,101,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,97,110,105,109,97,116,105,111,110,70,114,97,109,101,73,100,32,33,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,105,115,70,114,111,122,101,110,32,61,32,102,97,108,115,101,59,10,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,117,110,102,114,101,101,122,101,34,32,125,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,125,10,32,32,32,32,114,101,115,105,122,101,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,124,124,32,33,116,104,105,115,46,105,115,76,111,97,100,101,100,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,105,102,32,40,73,83,95,66,82,79,87,83,69,82,32,38,38,32,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,41,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,100,112,114,32,61,32,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,32,124,124,32,119,105,110,100,111,119,46,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,32,124,124,32,49,59,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,123,32,104,101,105,103,104,116,58,32,99,108,105,101,110,116,72,101,105,103,104,116,44,32,119,105,100,116,104,58,32,99,108,105,101,110,116,87,105,100,116,104,32,125,32,61,32,116,104,105,115,46,95,99,97,110,118,97,115,46,103,101,116,66,111,117,110,100,105,110,103,67,108,105,101,110,116,82,101,99,116,40,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,99,108,105,101,110,116,72,101,105,103,104,116,32,33,61,61,32,48,32,38,38,32,99,108,105,101,110,116,87,105,100,116,104,32,33,61,61,32,48,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,32,61,32,99,108,105,101,110,116,87,105,100,116,104,32,42,32,100,112,114,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,32,61,32,99,108,105,101,110,116,72,101,105,103,104,116,32,42,32,100,112,114,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,105,122,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,115,105,122,101,40,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,44,32,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,41,59,10,32,32,32,32,32,32,105,102,32,40,114,101,115,105,122,101,100,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,114,97,119,40,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,115,101,116,83,101,103,109,101,110,116,40,115,116,97,114,116,70,114,97,109,101,44,32,101,110,100,70,114,97,109,101,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,32,124,124,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,67,111,110,102,105,103,40,123,10,32,32,32,32,32,32,32,32,46,46,46,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,111,110,102,105,103,40,41,44,10,32,32,32,32,32,32,32,32,115,101,103,109,101,110,116,58,32,99,114,101,97,116,101,67,111,114,101,83,101,103,109,101,110,116,40,91,115,116,97,114,116,70,114,97,109,101,44,32,101,110,100,70,114,97,109,101,93,44,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,41,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,125,10,32,32,32,32,115,101,116,77,111,100,101,40,109,111,100,101,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,32,124,124,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,67,111,110,102,105,103,40,123,10,32,32,32,32,32,32,32,32,46,46,46,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,111,110,102,105,103,40,41,44,10,32,32,32,32,32,32,32,32,109,111,100,101,58,32,99,114,101,97,116,101,67,111,114,101,77,111,100,101,40,109,111,100,101,44,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,41,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,125,10,32,32,32,32,115,101,116,82,101,110,100,101,114,67,111,110,102,105,103,40,99,111,110,102,105,103,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,123,32,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,44,32,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,44,32,46,46,46,114,101,115,116,67,111,110,102,105,103,32,125,32,61,32,99,111,110,102,105,103,59,10,32,32,32,32,32,32,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,32,61,32,123,10,32,32,32,32,32,32,32,32,46,46,46,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,44,10,32,32,32,32,32,32,32,32,46,46,46,114,101,115,116,67,111,110,102,105,103,44,10,32,32,32,32,32,32,32,32,47,47,32,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,32,105,115,32,97,32,115,112,101,99,105,97,108,32,99,97,115,101,44,32,105,116,32,115,104,111,117,108,100,32,98,101,32,115,101,116,32,116,111,32,116,104,101,32,100,101,102,97,117,108,116,32,118,97,108,117,101,32,105,102,32,105,116,39,115,32,110,111,116,32,112,114,111,118,105,100,101,100,10,32,32,32,32,32,32,32,32,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,58,32,100,101,118,105,99,101,80,105,120,101,108,82,97,116,105,111,32,124,124,32,103,101,116,68,101,102,97,117,108,116,68,80,82,40,41,44,10,32,32,32,32,32,32,32,32,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,58,32,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,32,63,63,32,116,114,117,101,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,105,102,32,40,73,83,95,66,82,79,87,83,69,82,32,38,38,32,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,41,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,97,117,116,111,82,101,115,105,122,101,41,32,123,10,32,32,32,32,32,32,32,32,32,32,67,97,110,118,97,115,82,101,115,105,122,101,79,98,115,101,114,118,101,114,46,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,44,32,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,32,32,67,97,110,118,97,115,82,101,115,105,122,101,79,98,115,101,114,118,101,114,46,117,110,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,114,101,110,100,101,114,67,111,110,102,105,103,46,102,114,101,101,122,101,79,110,79,102,102,115,99,114,101,101,110,41,32,123,10,32,32,32,32,32,32,32,32,32,32,79,102,102,115,99,114,101,101,110,79,98,115,101,114,118,101,114,46,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,44,32,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,33,105,115,69,108,101,109,101,110,116,73,110,86,105,101,119,112,111,114,116,40,116,104,105,115,46,95,99,97,110,118,97,115,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,102,114,101,101,122,101,40,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,32,32,79,102,102,115,99,114,101,101,110,79,98,115,101,114,118,101,114,46,117,110,111,98,115,101,114,118,101,40,116,104,105,115,46,95,99,97,110,118,97,115,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,105,115,70,114,111,122,101,110,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,117,110,102,114,101,101,122,101,40,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,108,111,97,100,65,110,105,109,97,116,105,111,110,40,97,110,105,109,97,116,105,111,110,73,100,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,32,124,124,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,97,99,116,105,118,101,65,110,105,109,97,116,105,111,110,73,100,40,41,32,61,61,61,32,97,110,105,109,97,116,105,111,110,73,100,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,99,111,110,115,116,32,108,111,97,100,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,108,111,97,100,65,110,105,109,97,116,105,111,110,40,97,110,105,109,97,116,105,111,110,73,100,44,32,116,104,105,115,46,95,99,97,110,118,97,115,46,119,105,100,116,104,44,32,116,104,105,115,46,95,99,97,110,118,97,115,46,104,101,105,103,104,116,41,59,10,32,32,32,32,32,32,105,102,32,40,108,111,97,100,101,100,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,114,101,115,105,122,101,40,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,115,101,116,77,97,114,107,101,114,40,109,97,114,107,101,114,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,67,111,110,102,105,103,40,123,10,32,32,32,32,32,32,32,32,46,46,46,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,111,110,102,105,103,40,41,44,10,32,32,32,32,32,32,32,32,109,97,114,107,101,114,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,125,10,32,32,32,32,109,97,114,107,101,114,115,40,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,109,97,114,107,101,114,115,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,109,97,114,107,101,114,115,40,41,59,10,32,32,32,32,32,32,105,102,32,40,109,97,114,107,101,114,115,41,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,117,108,116,32,61,32,91,93,59,10,32,32,32,32,32,32,32,32,102,111,114,32,40,108,101,116,32,105,32,61,32,48,59,32,105,32,60,32,109,97,114,107,101,114,115,46,115,105,122,101,40,41,59,32,105,32,43,61,32,49,41,32,123,10,32,32,32,32,32,32,32,32,32,32,99,111,110,115,116,32,109,97,114,107,101,114,32,61,32,109,97,114,107,101,114,115,46,103,101,116,40,105,41,59,10,32,32,32,32,32,32,32,32,32,32,114,101,115,117,108,116,46,112,117,115,104,40,123,10,32,32,32,32,32,32,32,32,32,32,32,32,110,97,109,101,58,32,109,97,114,107,101,114,46,110,97,109,101,44,10,32,32,32,32,32,32,32,32,32,32,32,32,116,105,109,101,58,32,109,97,114,107,101,114,46,116,105,109,101,44,10,32,32,32,32,32,32,32,32,32,32,32,32,100,117,114,97,116,105,111,110,58,32,109,97,114,107,101,114,46,100,117,114,97,116,105,111,110,10,32,32,32,32,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,114,101,115,117,108,116,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,91,93,59,10,32,32,32,32,125,10,32,32,32,32,115,101,116,84,104,101,109,101,40,116,104,101,109,101,73,100,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,116,104,101,109,101,76,111,97,100,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,84,104,101,109,101,40,116,104,101,109,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,116,104,101,109,101,76,111,97,100,101,100,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,114,97,119,40,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,101,109,101,76,111,97,100,101,100,59,10,32,32,32,32,125,10,32,32,32,32,114,101,115,101,116,84,104,101,109,101,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,116,104,101,109,101,82,101,115,101,116,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,114,101,115,101,116,84,104,101,109,101,40,41,59,10,32,32,32,32,32,32,105,102,32,40,116,104,101,109,101,82,101,115,101,116,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,114,97,119,40,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,101,109,101,82,101,115,101,116,59,10,32,32,32,32,125,10,32,32,32,32,115,101,116,84,104,101,109,101,68,97,116,97,40,116,104,101,109,101,68,97,116,97,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,116,104,101,109,101,76,111,97,100,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,84,104,101,109,101,68,97,116,97,40,116,104,101,109,101,68,97,116,97,41,59,10,32,32,32,32,32,32,105,102,32,40,116,104,101,109,101,76,111,97,100,101,100,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,114,97,119,40,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,101,109,101,76,111,97,100,101,100,59,10,32,32,32,32,125,10,32,32,32,32,115,101,116,83,108,111,116,115,40,115,108,111,116,115,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,83,108,111,116,115,40,115,108,111,116,115,41,59,10,32,32,32,32,125,10,32,32,32,32,115,101,116,76,97,121,111,117,116,40,108,97,121,111,117,116,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,32,124,124,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,67,111,110,102,105,103,40,123,10,32,32,32,32,32,32,32,32,46,46,46,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,99,111,110,102,105,103,40,41,44,10,32,32,32,32,32,32,32,32,108,97,121,111,117,116,58,32,99,114,101,97,116,101,67,111,114,101,76,97,121,111,117,116,40,108,97,121,111,117,116,44,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,41,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,125,10,32,32,32,32,115,101,116,86,105,101,119,112,111,114,116,40,120,44,32,121,44,32,119,105,100,116,104,44,32,104,101,105,103,104,116,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,101,116,86,105,101,119,112,111,114,116,40,120,44,32,121,44,32,119,105,100,116,104,44,32,104,101,105,103,104,116,41,59,10,32,32,32,32,125,10,32,32,32,32,115,116,97,116,105,99,32,115,101,116,87,97,115,109,85,114,108,40,117,114,108,41,32,123,10,32,32,32,32,32,32,68,111,116,76,111,116,116,105,101,87,97,115,109,76,111,97,100,101,114,46,115,101,116,87,97,115,109,85,114,108,40,117,114,108,41,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,83,116,97,114,116,32,97,32,116,119,101,101,110,32,97,110,105,109,97,116,105,111,110,32,98,101,116,119,101,101,110,32,116,119,111,32,102,114,97,109,101,32,118,97,108,117,101,115,32,119,105,116,104,32,99,117,115,116,111,109,32,101,97,115,105,110,103,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,102,114,97,109,101,32,45,32,83,116,97,114,116,105,110,103,32,102,114,97,109,101,32,118,97,108,117,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,100,117,114,97,116,105,111,110,32,45,32,68,117,114,97,116,105,111,110,32,111,102,32,116,104,101,32,116,119,101,101,110,32,105,110,32,115,101,99,111,110,100,115,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,116,114,117,101,32,105,102,32,116,119,101,101,110,32,119,97,115,32,115,116,97,114,116,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,10,32,32,32,32,32,42,47,10,32,32,32,32,116,119,101,101,110,40,102,114,97,109,101,44,32,100,117,114,97,116,105,111,110,41,32,123,10,32,32,32,32,32,32,105,102,32,40,33,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,41,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,101,97,115,105,110,103,32,61,32,91,48,44,32,48,44,32,49,44,32,49,93,59,10,32,32,32,32,32,32,99,111,110,115,116,32,101,97,115,105,110,103,86,101,99,116,111,114,32,61,32,110,101,119,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,46,86,101,99,116,111,114,70,108,111,97,116,40,41,59,10,32,32,32,32,32,32,102,111,114,32,40,99,111,110,115,116,32,118,97,108,32,111,102,32,101,97,115,105,110,103,41,32,123,10,32,32,32,32,32,32,32,32,101,97,115,105,110,103,86,101,99,116,111,114,46,112,117,115,104,95,98,97,99,107,40,118,97,108,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,116,119,101,101,110,40,102,114,97,109,101,44,32,100,117,114,97,116,105,111,110,44,32,101,97,115,105,110,103,86,101,99,116,111,114,41,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,83,116,97,114,116,32,97,32,116,119,101,101,110,32,97,110,105,109,97,116,105,111,110,32,116,111,32,97,32,115,112,101,99,105,102,105,99,32,109,97,114,107,101,114,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,109,97,114,107,101,114,32,45,32,84,104,101,32,109,97,114,107,101,114,32,110,97,109,101,32,116,111,32,116,119,101,101,110,32,116,111,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,116,114,117,101,32,105,102,32,116,119,101,101,110,32,119,97,115,32,115,116,97,114,116,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,10,32,32,32,32,32,42,47,10,32,32,32,32,116,119,101,101,110,84,111,77,97,114,107,101,114,40,109,97,114,107,101,114,44,32,100,117,114,97,116,105,111,110,41,32,123,10,32,32,32,32,32,32,105,102,32,40,33,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,41,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,101,97,115,105,110,103,32,61,32,91,48,44,32,48,44,32,49,44,32,49,93,59,10,32,32,32,32,32,32,99,111,110,115,116,32,101,97,115,105,110,103,86,101,99,116,111,114,32,61,32,110,101,119,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,46,86,101,99,116,111,114,70,108,111,97,116,40,41,59,10,32,32,32,32,32,32,102,111,114,32,40,99,111,110,115,116,32,118,97,108,32,111,102,32,101,97,115,105,110,103,41,32,123,10,32,32,32,32,32,32,32,32,101,97,115,105,110,103,86,101,99,116,111,114,46,112,117,115,104,95,98,97,99,107,40,118,97,108,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,116,119,101,101,110,84,111,77,97,114,107,101,114,40,109,97,114,107,101,114,44,32,100,117,114,97,116,105,111,110,44,32,101,97,115,105,110,103,86,101,99,116,111,114,41,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,97,110,105,109,97,116,105,111,110,83,105,122,101,40,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,119,105,100,116,104,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,97,110,105,109,97,116,105,111,110,83,105,122,101,40,41,46,103,101,116,40,48,41,32,63,63,32,48,59,10,32,32,32,32,32,32,99,111,110,115,116,32,104,101,105,103,104,116,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,97,110,105,109,97,116,105,111,110,83,105,122,101,40,41,46,103,101,116,40,49,41,32,63,63,32,48,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,123,10,32,32,32,32,32,32,32,32,119,105,100,116,104,44,10,32,32,32,32,32,32,32,32,104,101,105,103,104,116,10,32,32,32,32,32,32,125,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,71,101,116,32,116,104,101,32,79,114,105,101,110,116,101,100,32,66,111,117,110,100,105,110,103,32,66,111,120,32,40,79,66,66,41,32,112,111,105,110,116,115,32,111,102,32,97,32,108,97,121,101,114,32,98,121,32,105,116,115,32,110,97,109,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,108,97,121,101,114,78,97,109,101,32,45,32,84,104,101,32,110,97,109,101,32,111,102,32,116,104,101,32,108,97,121,101,114,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,65,110,32,97,114,114,97,121,32,111,102,32,56,32,110,117,109,98,101,114,115,32,114,101,112,114,101,115,101,110,116,105,110,103,32,52,32,112,111,105,110,116,115,32,40,120,44,121,41,32,111,102,32,116,104,101,32,79,66,66,32,105,110,32,99,108,111,99,107,119,105,115,101,32,111,114,100,101,114,32,115,116,97,114,116,105,110,103,32,102,114,111,109,32,116,111,112,45,108,101,102,116,10,32,32,32,32,32,42,32,32,32,32,32,32,32,32,32,32,91,120,48,44,32,121,48,44,32,120,49,44,32,121,49,44,32,120,50,44,32,121,50,44,32,120,51,44,32,121,51,93,10,32,32,32,32,32,42,10,32,32,32,32,32,42,32,64,101,120,97,109,112,108,101,10,32,32,32,32,32,42,32,96,96,96,116,121,112,101,115,99,114,105,112,116,10,32,32,32,32,32,42,32,47,47,32,68,114,97,119,32,97,32,112,111,108,121,103,111,110,32,97,114,111,117,110,100,32,116,104,101,32,108,97,121,101,114,32,39,76,97,121,101,114,32,49,39,10,32,32,32,32,32,42,32,100,111,116,76,111,116,116,105,101,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,39,114,101,110,100,101,114,39,44,32,40,41,32,61,62,32,123,10,32,32,32,32,32,42,32,32,32,99,111,110,115,116,32,111,98,98,80,111,105,110,116,115,32,61,32,100,111,116,76,111,116,116,105,101,46,103,101,116,76,97,121,101,114,66,111,117,110,100,105,110,103,66,111,120,40,39,76,97,121,101,114,32,49,39,41,59,10,32,32,32,32,32,42,10,32,32,32,32,32,42,32,32,32,105,102,32,40,111,98,98,80,111,105,110,116,115,41,32,123,10,32,32,32,32,32,42,32,32,32,32,32,99,111,110,116,101,120,116,46,98,101,103,105,110,80,97,116,104,40,41,59,10,32,32,32,32,32,42,32,32,32,32,32,99,111,110,116,101,120,116,46,109,111,118,101,84,111,40,111,98,98,80,111,105,110,116,115,91,48,93,44,32,111,98,98,80,111,105,110,116,115,91,49,93,41,59,32,47,47,32,70,105,114,115,116,32,112,111,105,110,116,10,32,32,32,32,32,42,32,32,32,32,32,99,111,110,116,101,120,116,46,108,105,110,101,84,111,40,111,98,98,80,111,105,110,116,115,91,50,93,44,32,111,98,98,80,111,105,110,116,115,91,51,93,41,59,32,47,47,32,83,101,99,111,110,100,32,112,111,105,110,116,10,32,32,32,32,32,42,32,32,32,32,32,99,111,110,116,101,120,116,46,108,105,110,101,84,111,40,111,98,98,80,111,105,110,116,115,91,52,93,44,32,111,98,98,80,111,105,110,116,115,91,53,93,41,59,32,47,47,32,84,104,105,114,100,32,112,111,105,110,116,10,32,32,32,32,32,42,32,32,32,32,32,99,111,110,116,101,120,116,46,108,105,110,101,84,111,40,111,98,98,80,111,105,110,116,115,91,54,93,44,32,111,98,98,80,111,105,110,116,115,91,55,93,41,59,32,47,47,32,70,111,117,114,116,104,32,112,111,105,110,116,10,32,32,32,32,32,42,32,32,32,32,32,99,111,110,116,101,120,116,46,99,108,111,115,101,80,97,116,104,40,41,59,10,32,32,32,32,32,42,32,32,32,32,32,99,111,110,116,101,120,116,46,115,116,114,111,107,101,40,41,59,10,32,32,32,32,32,42,32,32,32,125,10,32,32,32,32,32,42,32,125,41,59,10,32,32,32,32,32,42,32,96,96,96,10,32,32,32,32,32,42,47,10,32,32,32,32,103,101,116,76,97,121,101,114,66,111,117,110,100,105,110,103,66,111,120,40,108,97,121,101,114,78,97,109,101,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,98,111,117,110,100,115,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,103,101,116,76,97,121,101,114,66,111,117,110,100,115,40,108,97,121,101,114,78,97,109,101,41,59,10,32,32,32,32,32,32,105,102,32,40,33,98,111,117,110,100,115,41,32,114,101,116,117,114,110,32,118,111,105,100,32,48,59,10,32,32,32,32,32,32,105,102,32,40,98,111,117,110,100,115,46,115,105,122,101,40,41,32,33,61,61,32,56,41,32,114,101,116,117,114,110,32,118,111,105,100,32,48,59,10,32,32,32,32,32,32,99,111,110,115,116,32,112,111,105,110,116,115,32,61,32,91,93,59,10,32,32,32,32,32,32,102,111,114,32,40,108,101,116,32,105,32,61,32,48,59,32,105,32,60,32,56,59,32,105,32,43,61,32,49,41,32,123,10,32,32,32,32,32,32,32,32,112,111,105,110,116,115,46,112,117,115,104,40,98,111,117,110,100,115,46,103,101,116,40,105,41,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,112,111,105,110,116,115,59,10,32,32,32,32,125,10,32,32,32,32,115,116,97,116,105,99,32,116,114,97,110,115,102,111,114,109,84,104,101,109,101,84,111,76,111,116,116,105,101,83,108,111,116,115,40,116,104,101,109,101,44,32,115,108,111,116,115,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,63,46,116,114,97,110,115,102,111,114,109,84,104,101,109,101,84,111,76,111,116,116,105,101,83,108,111,116,115,40,116,104,101,109,101,44,32,115,108,111,116,115,41,32,63,63,32,34,34,59,10,32,32,32,32,125,10,32,32,32,32,47,47,32,35,114,101,103,105,111,110,32,83,116,97,116,101,32,77,97,99,104,105,110,101,10,32,32,32,32,95,115,101,116,117,112,83,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,115,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,124,124,32,33,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,99,111,110,115,116,32,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,32,61,32,110,101,119,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,46,67,97,108,108,98,97,99,107,83,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,40,41,59,10,32,32,32,32,32,32,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,83,116,97,114,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,32,61,32,116,114,117,101,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,34,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,32,32,125,44,32,48,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,83,116,111,112,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,115,101,116,84,105,109,101,111,117,116,40,40,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,32,61,32,102,97,108,115,101,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,34,32,125,41,59,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,105,115,80,108,97,121,105,110,103,40,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,125,44,32,48,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,67,117,115,116,111,109,69,118,101,110,116,40,40,101,118,101,110,116,78,97,109,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,115,116,97,116,101,77,97,99,104,105,110,101,67,117,115,116,111,109,69,118,101,110,116,34,44,32,101,118,101,110,116,78,97,109,101,32,125,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,66,111,111,108,101,97,110,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,40,40,105,110,112,117,116,78,97,109,101,44,32,110,101,119,86,97,108,117,101,44,32,111,108,100,86,97,108,117,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,115,116,97,116,101,77,97,99,104,105,110,101,66,111,111,108,101,97,110,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,32,105,110,112,117,116,78,97,109,101,44,32,110,101,119,86,97,108,117,101,44,32,111,108,100,86,97,108,117,101,32,125,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,78,117,109,101,114,105,99,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,40,40,105,110,112,117,116,78,97,109,101,44,32,110,101,119,86,97,108,117,101,44,32,111,108,100,86,97,108,117,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,115,116,97,116,101,77,97,99,104,105,110,101,78,117,109,101,114,105,99,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,32,105,110,112,117,116,78,97,109,101,44,32,110,101,119,86,97,108,117,101,44,32,111,108,100,86,97,108,117,101,32,125,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,83,116,114,105,110,103,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,40,40,105,110,112,117,116,78,97,109,101,44,32,110,101,119,86,97,108,117,101,44,32,111,108,100,86,97,108,117,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,114,105,110,103,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,32,105,110,112,117,116,78,97,109,101,44,32,110,101,119,86,97,108,117,101,44,32,111,108,100,86,97,108,117,101,32,125,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,73,110,112,117,116,70,105,114,101,100,40,40,105,110,112,117,116,78,97,109,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,115,116,97,116,101,77,97,99,104,105,110,101,73,110,112,117,116,70,105,114,101,100,34,44,32,105,110,112,117,116,78,97,109,101,32,125,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,84,114,97,110,115,105,116,105,111,110,40,40,102,114,111,109,83,116,97,116,101,44,32,116,111,83,116,97,116,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,115,116,97,116,101,77,97,99,104,105,110,101,84,114,97,110,115,105,116,105,111,110,34,44,32,102,114,111,109,83,116,97,116,101,44,32,116,111,83,116,97,116,101,32,125,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,83,116,97,116,101,69,110,116,101,114,101,100,40,40,115,116,97,116,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,110,116,101,114,101,100,34,44,32,115,116,97,116,101,32,125,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,83,116,97,116,101,69,120,105,116,40,40,115,116,97,116,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,120,105,116,34,44,32,115,116,97,116,101,32,125,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,46,115,101,116,79,110,69,114,114,111,114,40,40,101,114,114,111,114,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,115,116,97,116,101,77,97,99,104,105,110,101,69,114,114,111,114,34,44,32,101,114,114,111,114,32,125,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,99,111,110,115,116,32,115,109,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,32,61,32,110,101,119,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,46,67,97,108,108,98,97,99,107,83,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,79,98,115,101,114,118,101,114,40,41,59,10,32,32,32,32,32,32,115,109,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,46,115,101,116,79,110,77,101,115,115,97,103,101,40,40,109,101,115,115,97,103,101,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,73,83,95,66,82,79,87,83,69,82,41,32,123,10,32,32,32,32,32,32,32,32,32,32,105,102,32,40,109,101,115,115,97,103,101,46,115,116,97,114,116,115,87,105,116,104,40,34,79,112,101,110,85,114,108,58,32,34,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,104,97,110,100,108,101,79,112,101,110,85,114,108,40,109,101,115,115,97,103,101,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,101,118,101,110,116,77,97,110,97,103,101,114,46,100,105,115,112,97,116,99,104,40,123,32,116,121,112,101,58,32,34,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,34,44,32,109,101,115,115,97,103,101,32,125,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,116,97,116,101,77,97,99,104,105,110,101,83,117,98,115,99,114,105,98,101,40,115,109,67,97,108,108,98,97,99,107,79,98,115,101,114,118,101,114,41,59,10,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,83,117,98,115,99,114,105,98,101,40,115,109,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,41,59,10,32,32,32,32,125,10,32,32,32,32,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,115,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,85,110,115,117,98,115,99,114,105,98,101,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,46,100,101,108,101,116,101,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,72,97,110,100,108,101,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,85,110,115,117,98,115,99,114,105,98,101,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,46,100,101,108,101,116,101,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,79,98,115,101,114,118,101,114,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,76,111,97,100,32,97,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,98,121,32,73,68,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,115,116,97,116,101,77,97,99,104,105,110,101,73,100,32,45,32,84,104,101,32,73,68,32,111,102,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,116,111,32,108,111,97,100,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,116,114,117,101,32,105,102,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,119,97,115,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,40,115,116,97,116,101,77,97,99,104,105,110,101,73,100,41,32,123,10,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,124,124,32,33,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,41,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,116,104,105,115,46,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,115,40,41,59,10,32,32,32,32,32,32,99,111,110,115,116,32,108,111,97,100,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,40,115,116,97,116,101,77,97,99,104,105,110,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,108,111,97,100,101,100,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,101,116,117,112,83,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,115,40,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,108,111,97,100,101,100,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,76,111,97,100,32,97,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,102,114,111,109,32,100,97,116,97,32,115,116,114,105,110,103,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,115,116,97,116,101,77,97,99,104,105,110,101,68,97,116,97,32,45,32,84,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,100,97,116,97,32,97,115,32,97,32,115,116,114,105,110,103,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,116,114,117,101,32,105,102,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,119,97,115,32,108,111,97,100,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,68,97,116,97,40,115,116,97,116,101,77,97,99,104,105,110,101,68,97,116,97,41,32,123,10,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,124,124,32,33,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,41,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,116,104,105,115,46,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,115,40,41,59,10,32,32,32,32,32,32,99,111,110,115,116,32,108,111,97,100,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,68,97,116,97,40,115,116,97,116,101,77,97,99,104,105,110,101,68,97,116,97,41,59,10,32,32,32,32,32,32,105,102,32,40,108,111,97,100,101,100,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,101,116,117,112,83,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,115,40,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,108,111,97,100,101,100,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,83,101,116,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,99,111,110,102,105,103,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,99,111,110,102,105,103,32,45,32,84,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,99,111,110,102,105,103,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,67,111,110,102,105,103,40,99,111,110,102,105,103,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,67,111,110,102,105,103,32,61,32,99,111,110,102,105,103,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,83,116,97,114,116,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,116,114,117,101,32,105,102,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,119,97,115,32,115,116,97,114,116,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,32,61,61,61,32,110,117,108,108,32,124,124,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,99,111,114,101,79,112,101,110,85,114,108,32,61,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,46,99,114,101,97,116,101,68,101,102,97,117,108,116,79,112,101,110,85,114,108,80,111,108,105,99,121,40,41,59,10,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,67,111,110,102,105,103,41,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,111,112,101,110,85,114,108,80,111,108,105,99,121,32,61,32,116,104,105,115,46,95,115,116,97,116,101,77,97,99,104,105,110,101,67,111,110,102,105,103,46,111,112,101,110,85,114,108,80,111,108,105,99,121,59,10,32,32,32,32,32,32,32,32,105,102,32,40,111,112,101,110,85,114,108,80,111,108,105,99,121,32,38,38,32,116,121,112,101,111,102,32,111,112,101,110,85,114,108,80,111,108,105,99,121,46,114,101,113,117,105,114,101,85,115,101,114,73,110,116,101,114,97,99,116,105,111,110,32,61,61,61,32,34,98,111,111,108,101,97,110,34,41,32,123,10,32,32,32,32,32,32,32,32,32,32,99,111,114,101,79,112,101,110,85,114,108,46,114,101,113,117,105,114,101,85,115,101,114,73,110,116,101,114,97,99,116,105,111,110,32,61,32,111,112,101,110,85,114,108,80,111,108,105,99,121,46,114,101,113,117,105,114,101,85,115,101,114,73,110,116,101,114,97,99,116,105,111,110,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,111,112,101,110,85,114,108,80,111,108,105,99,121,63,46,119,104,105,116,101,108,105,115,116,41,32,123,10,32,32,32,32,32,32,32,32,32,32,99,111,114,101,79,112,101,110,85,114,108,46,119,104,105,116,101,108,105,115,116,32,61,32,110,101,119,32,95,68,111,116,76,111,116,116,105,101,46,95,119,97,115,109,77,111,100,117,108,101,46,86,101,99,116,111,114,83,116,114,105,110,103,40,41,59,10,32,32,32,32,32,32,32,32,32,32,102,111,114,32,40,99,111,110,115,116,32,117,114,108,32,111,102,32,111,112,101,110,85,114,108,80,111,108,105,99,121,46,119,104,105,116,101,108,105,115,116,41,32,123,10,32,32,32,32,32,32,32,32,32,32,32,32,99,111,114,101,79,112,101,110,85,114,108,46,119,104,105,116,101,108,105,115,116,46,112,117,115,104,95,98,97,99,107,40,117,114,108,41,59,10,32,32,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,114,116,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,40,99,111,114,101,79,112,101,110,85,114,108,41,59,10,32,32,32,32,32,32,105,102,32,40,115,116,97,114,116,101,100,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,32,61,32,116,114,117,101,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,101,116,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,97,114,116,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,115,116,97,114,116,101,100,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,83,116,111,112,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,116,114,117,101,32,105,102,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,119,97,115,32,115,116,111,112,112,101,100,32,115,117,99,99,101,115,115,102,117,108,108,121,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,32,114,101,116,117,114,110,32,102,97,108,115,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,111,112,112,101,100,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,40,41,59,10,32,32,32,32,32,32,105,102,32,40,115,116,111,112,112,101,100,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,79,98,115,101,114,118,101,114,115,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,105,115,83,116,97,116,101,77,97,99,104,105,110,101,82,117,110,110,105,110,103,32,61,32,102,97,108,115,101,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,105,115,80,108,97,121,105,110,103,40,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,115,116,111,112,65,110,105,109,97,116,105,111,110,76,111,111,112,40,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,115,116,111,112,112,101,100,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,71,101,116,32,116,104,101,32,99,117,114,114,101,110,116,32,115,116,97,116,117,115,32,111,102,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,99,117,114,114,101,110,116,32,115,116,97,116,117,115,32,111,102,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,97,115,32,97,32,115,116,114,105,110,103,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,97,116,117,115,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,117,115,40,41,32,63,63,32,34,34,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,71,101,116,32,116,104,101,32,99,117,114,114,101,110,116,32,115,116,97,116,101,32,111,102,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,99,117,114,114,101,110,116,32,115,116,97,116,101,32,111,102,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,97,115,32,97,32,115,116,114,105,110,103,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,67,117,114,114,101,110,116,83,116,97,116,101,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,67,117,114,114,101,110,116,83,116,97,116,101,40,41,32,63,63,32,34,34,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,71,101,116,32,116,104,101,32,97,99,116,105,118,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,73,68,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,97,99,116,105,118,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,73,68,32,97,115,32,97,32,115,116,114,105,110,103,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,65,99,116,105,118,101,73,100,40,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,97,99,116,105,118,101,83,116,97,116,101,77,97,99,104,105,110,101,73,100,40,41,32,63,63,32,34,34,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,79,118,101,114,114,105,100,101,32,116,104,101,32,99,117,114,114,101,110,116,32,115,116,97,116,101,32,111,102,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,115,116,97,116,101,32,45,32,84,104,101,32,115,116,97,116,101,32,116,111,32,111,118,101,114,114,105,100,101,32,116,111,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,105,109,109,101,100,105,97,116,101,32,45,32,87,104,101,116,104,101,114,32,116,111,32,105,109,109,101,100,105,97,116,101,108,121,32,116,114,97,110,115,105,116,105,111,110,32,116,111,32,116,104,101,32,115,116,97,116,101,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,116,114,117,101,32,105,102,32,116,104,101,32,115,116,97,116,101,32,111,118,101,114,114,105,100,101,32,119,97,115,32,115,117,99,99,101,115,115,102,117,108,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,79,118,101,114,114,105,100,101,83,116,97,116,101,40,115,116,97,116,101,44,32,105,109,109,101,100,105,97,116,101,32,61,32,102,97,108,115,101,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,79,118,101,114,114,105,100,101,67,117,114,114,101,110,116,83,116,97,116,101,40,115,116,97,116,101,44,32,105,109,109,101,100,105,97,116,101,41,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,71,101,116,32,97,32,115,112,101,99,105,102,105,99,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,98,121,32,73,68,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,115,116,97,116,101,77,97,99,104,105,110,101,73,100,32,45,32,84,104,101,32,73,68,32,111,102,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,116,111,32,103,101,116,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,100,97,116,97,32,97,115,32,97,32,115,116,114,105,110,103,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,40,115,116,97,116,101,77,97,99,104,105,110,101,73,100,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,103,101,116,83,116,97,116,101,77,97,99,104,105,110,101,40,115,116,97,116,101,77,97,99,104,105,110,101,73,100,41,32,63,63,32,34,34,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,71,101,116,32,116,104,101,32,108,105,115,116,32,111,102,32,115,116,97,116,101,32,109,97,99,104,105,110,101,32,108,105,115,116,101,110,101,114,115,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,65,114,114,97,121,32,111,102,32,108,105,115,116,101,110,101,114,32,110,97,109,101,115,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,76,105,115,116,101,110,101,114,115,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,33,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,41,32,114,101,116,117,114,110,32,91,93,59,10,32,32,32,32,32,32,99,111,110,115,116,32,108,105,115,116,101,110,101,114,115,86,101,99,116,111,114,32,61,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,46,115,116,97,116,101,77,97,99,104,105,110,101,70,114,97,109,101,119,111,114,107,83,101,116,117,112,40,41,59,10,32,32,32,32,32,32,99,111,110,115,116,32,108,105,115,116,101,110,101,114,115,32,61,32,91,93,59,10,32,32,32,32,32,32,102,111,114,32,40,108,101,116,32,105,32,61,32,48,59,32,105,32,60,32,108,105,115,116,101,110,101,114,115,86,101,99,116,111,114,46,115,105,122,101,40,41,59,32,105,32,43,61,32,49,41,32,123,10,32,32,32,32,32,32,32,32,108,105,115,116,101,110,101,114,115,46,112,117,115,104,40,108,105,115,116,101,110,101,114,115,86,101,99,116,111,114,46,103,101,116,40,105,41,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,108,105,115,116,101,110,101,114,115,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,83,101,116,32,97,32,98,111,111,108,101,97,110,32,105,110,112,117,116,32,118,97,108,117,101,32,102,111,114,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,110,97,109,101,32,45,32,84,104,101,32,110,97,109,101,32,111,102,32,116,104,101,32,98,111,111,108,101,97,110,32,105,110,112,117,116,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,118,97,108,117,101,32,45,32,84,104,101,32,98,111,111,108,101,97,110,32,118,97,108,117,101,32,116,111,32,115,101,116,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,66,111,111,108,101,97,110,73,110,112,117,116,40,110,97,109,101,44,32,118,97,108,117,101,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,66,111,111,108,101,97,110,73,110,112,117,116,40,110,97,109,101,44,32,118,97,108,117,101,41,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,83,101,116,32,97,32,110,117,109,101,114,105,99,32,105,110,112,117,116,32,118,97,108,117,101,32,102,111,114,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,110,97,109,101,32,45,32,84,104,101,32,110,97,109,101,32,111,102,32,116,104,101,32,110,117,109,101,114,105,99,32,105,110,112,117,116,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,118,97,108,117,101,32,45,32,84,104,101,32,110,117,109,101,114,105,99,32,118,97,108,117,101,32,116,111,32,115,101,116,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,78,117,109,101,114,105,99,73,110,112,117,116,40,110,97,109,101,44,32,118,97,108,117,101,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,78,117,109,101,114,105,99,73,110,112,117,116,40,110,97,109,101,44,32,118,97,108,117,101,41,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,83,101,116,32,97,32,115,116,114,105,110,103,32,105,110,112,117,116,32,118,97,108,117,101,32,102,111,114,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,110,97,109,101,32,45,32,84,104,101,32,110,97,109,101,32,111,102,32,116,104,101,32,115,116,114,105,110,103,32,105,110,112,117,116,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,118,97,108,117,101,32,45,32,84,104,101,32,115,116,114,105,110,103,32,118,97,108,117,101,32,116,111,32,115,101,116,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,83,116,114,105,110,103,73,110,112,117,116,40,110,97,109,101,44,32,118,97,108,117,101,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,83,116,114,105,110,103,73,110,112,117,116,40,110,97,109,101,44,32,118,97,108,117,101,41,32,63,63,32,102,97,108,115,101,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,71,101,116,32,97,32,98,111,111,108,101,97,110,32,105,110,112,117,116,32,118,97,108,117,101,32,102,114,111,109,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,110,97,109,101,32,45,32,84,104,101,32,110,97,109,101,32,111,102,32,116,104,101,32,98,111,111,108,101,97,110,32,105,110,112,117,116,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,98,111,111,108,101,97,110,32,118,97,108,117,101,32,111,114,32,117,110,100,101,102,105,110,101,100,32,105,102,32,110,111,116,32,102,111,117,110,100,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,66,111,111,108,101,97,110,73,110,112,117,116,40,110,97,109,101,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,66,111,111,108,101,97,110,73,110,112,117,116,40,110,97,109,101,41,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,71,101,116,32,97,32,110,117,109,101,114,105,99,32,105,110,112,117,116,32,118,97,108,117,101,32,102,114,111,109,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,110,97,109,101,32,45,32,84,104,101,32,110,97,109,101,32,111,102,32,116,104,101,32,110,117,109,101,114,105,99,32,105,110,112,117,116,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,110,117,109,101,114,105,99,32,118,97,108,117,101,32,111,114,32,117,110,100,101,102,105,110,101,100,32,105,102,32,110,111,116,32,102,111,117,110,100,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,78,117,109,101,114,105,99,73,110,112,117,116,40,110,97,109,101,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,78,117,109,101,114,105,99,73,110,112,117,116,40,110,97,109,101,41,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,71,101,116,32,97,32,115,116,114,105,110,103,32,105,110,112,117,116,32,118,97,108,117,101,32,102,114,111,109,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,110,97,109,101,32,45,32,84,104,101,32,110,97,109,101,32,111,102,32,116,104,101,32,115,116,114,105,110,103,32,105,110,112,117,116,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,115,116,114,105,110,103,32,118,97,108,117,101,32,111,114,32,117,110,100,101,102,105,110,101,100,32,105,102,32,110,111,116,32,102,111,117,110,100,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,114,105,110,103,73,110,112,117,116,40,110,97,109,101,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,114,105,110,103,73,110,112,117,116,40,110,97,109,101,41,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,70,105,114,101,32,97,110,32,101,118,101,110,116,32,105,110,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,110,97,109,101,32,45,32,84,104,101,32,110,97,109,101,32,111,102,32,116,104,101,32,101,118,101,110,116,32,116,111,32,102,105,114,101,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,70,105,114,101,69,118,101,110,116,40,110,97,109,101,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,70,105,114,101,69,118,101,110,116,40,110,97,109,101,41,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,80,111,115,116,32,97,32,99,108,105,99,107,32,101,118,101,110,116,32,116,111,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,120,32,45,32,84,104,101,32,120,32,99,111,111,114,100,105,110,97,116,101,32,111,102,32,116,104,101,32,99,108,105,99,107,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,121,32,45,32,84,104,101,32,121,32,99,111,111,114,100,105,110,97,116,101,32,111,102,32,116,104,101,32,99,108,105,99,107,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,101,118,101,110,116,32,114,101,115,117,108,116,32,111,114,32,117,110,100,101,102,105,110,101,100,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,67,108,105,99,107,69,118,101,110,116,40,120,44,32,121,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,67,108,105,99,107,69,118,101,110,116,40,120,44,32,121,41,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,80,111,115,116,32,97,32,112,111,105,110,116,101,114,32,117,112,32,101,118,101,110,116,32,116,111,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,120,32,45,32,84,104,101,32,120,32,99,111,111,114,100,105,110,97,116,101,32,111,102,32,116,104,101,32,112,111,105,110,116,101,114,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,121,32,45,32,84,104,101,32,121,32,99,111,111,114,100,105,110,97,116,101,32,111,102,32,116,104,101,32,112,111,105,110,116,101,114,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,101,118,101,110,116,32,114,101,115,117,108,116,32,111,114,32,117,110,100,101,102,105,110,101,100,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,85,112,69,118,101,110,116,40,120,44,32,121,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,85,112,69,118,101,110,116,40,120,44,32,121,41,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,80,111,115,116,32,97,32,112,111,105,110,116,101,114,32,100,111,119,110,32,101,118,101,110,116,32,116,111,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,120,32,45,32,84,104,101,32,120,32,99,111,111,114,100,105,110,97,116,101,32,111,102,32,116,104,101,32,112,111,105,110,116,101,114,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,121,32,45,32,84,104,101,32,121,32,99,111,111,114,100,105,110,97,116,101,32,111,102,32,116,104,101,32,112,111,105,110,116,101,114,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,101,118,101,110,116,32,114,101,115,117,108,116,32,111,114,32,117,110,100,101,102,105,110,101,100,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,68,111,119,110,69,118,101,110,116,40,120,44,32,121,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,68,111,119,110,69,118,101,110,116,40,120,44,32,121,41,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,80,111,115,116,32,97,32,112,111,105,110,116,101,114,32,109,111,118,101,32,101,118,101,110,116,32,116,111,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,120,32,45,32,84,104,101,32,120,32,99,111,111,114,100,105,110,97,116,101,32,111,102,32,116,104,101,32,112,111,105,110,116,101,114,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,121,32,45,32,84,104,101,32,121,32,99,111,111,114,100,105,110,97,116,101,32,111,102,32,116,104,101,32,112,111,105,110,116,101,114,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,101,118,101,110,116,32,114,101,115,117,108,116,32,111,114,32,117,110,100,101,102,105,110,101,100,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,77,111,118,101,69,118,101,110,116,40,120,44,32,121,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,77,111,118,101,69,118,101,110,116,40,120,44,32,121,41,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,80,111,115,116,32,97,32,112,111,105,110,116,101,114,32,101,110,116,101,114,32,101,118,101,110,116,32,116,111,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,120,32,45,32,84,104,101,32,120,32,99,111,111,114,100,105,110,97,116,101,32,111,102,32,116,104,101,32,112,111,105,110,116,101,114,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,121,32,45,32,84,104,101,32,121,32,99,111,111,114,100,105,110,97,116,101,32,111,102,32,116,104,101,32,112,111,105,110,116,101,114,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,101,118,101,110,116,32,114,101,115,117,108,116,32,111,114,32,117,110,100,101,102,105,110,101,100,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,110,116,101,114,69,118,101,110,116,40,120,44,32,121,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,110,116,101,114,69,118,101,110,116,40,120,44,32,121,41,59,10,32,32,32,32,125,10,32,32,32,32,47,42,42,10,32,32,32,32,32,42,32,64,101,120,112,101,114,105,109,101,110,116,97,108,10,32,32,32,32,32,42,32,80,111,115,116,32,97,32,112,111,105,110,116,101,114,32,101,120,105,116,32,101,118,101,110,116,32,116,111,32,116,104,101,32,115,116,97,116,101,32,109,97,99,104,105,110,101,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,120,32,45,32,84,104,101,32,120,32,99,111,111,114,100,105,110,97,116,101,32,111,102,32,116,104,101,32,112,111,105,110,116,101,114,10,32,32,32,32,32,42,32,64,112,97,114,97,109,32,121,32,45,32,84,104,101,32,121,32,99,111,111,114,100,105,110,97,116,101,32,111,102,32,116,104,101,32,112,111,105,110,116,101,114,10,32,32,32,32,32,42,32,64,114,101,116,117,114,110,115,32,84,104,101,32,101,118,101,110,116,32,114,101,115,117,108,116,32,111,114,32,117,110,100,101,102,105,110,101,100,10,32,32,32,32,32,42,47,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,120,105,116,69,118,101,110,116,40,120,44,32,121,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,63,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,120,105,116,69,118,101,110,116,40,120,44,32,121,41,59,10,32,32,32,32,125,10,32,32,32,32,95,111,110,67,108,105,99,107,40,101,118,101,110,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,112,111,115,105,116,105,111,110,32,61,32,103,101,116,80,111,105,110,116,101,114,80,111,115,105,116,105,111,110,40,101,118,101,110,116,41,59,10,32,32,32,32,32,32,105,102,32,40,112,111,115,105,116,105,111,110,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,67,108,105,99,107,69,118,101,110,116,40,112,111,115,105,116,105,111,110,46,120,44,32,112,111,115,105,116,105,111,110,46,121,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,95,111,110,80,111,105,110,116,101,114,85,112,40,101,118,101,110,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,112,111,115,105,116,105,111,110,32,61,32,103,101,116,80,111,105,110,116,101,114,80,111,115,105,116,105,111,110,40,101,118,101,110,116,41,59,10,32,32,32,32,32,32,105,102,32,40,112,111,115,105,116,105,111,110,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,85,112,69,118,101,110,116,40,112,111,115,105,116,105,111,110,46,120,44,32,112,111,115,105,116,105,111,110,46,121,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,95,111,110,80,111,105,110,116,101,114,68,111,119,110,40,101,118,101,110,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,112,111,115,105,116,105,111,110,32,61,32,103,101,116,80,111,105,110,116,101,114,80,111,115,105,116,105,111,110,40,101,118,101,110,116,41,59,10,32,32,32,32,32,32,105,102,32,40,112,111,115,105,116,105,111,110,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,68,111,119,110,69,118,101,110,116,40,112,111,115,105,116,105,111,110,46,120,44,32,112,111,115,105,116,105,111,110,46,121,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,95,111,110,80,111,105,110,116,101,114,77,111,118,101,40,101,118,101,110,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,112,111,115,105,116,105,111,110,32,61,32,103,101,116,80,111,105,110,116,101,114,80,111,115,105,116,105,111,110,40,101,118,101,110,116,41,59,10,32,32,32,32,32,32,105,102,32,40,112,111,115,105,116,105,111,110,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,77,111,118,101,69,118,101,110,116,40,112,111,115,105,116,105,111,110,46,120,44,32,112,111,115,105,116,105,111,110,46,121,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,95,111,110,80,111,105,110,116,101,114,69,110,116,101,114,40,101,118,101,110,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,112,111,115,105,116,105,111,110,32,61,32,103,101,116,80,111,105,110,116,101,114,80,111,115,105,116,105,111,110,40,101,118,101,110,116,41,59,10,32,32,32,32,32,32,105,102,32,40,112,111,115,105,116,105,111,110,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,110,116,101,114,69,118,101,110,116,40,112,111,115,105,116,105,111,110,46,120,44,32,112,111,115,105,116,105,111,110,46,121,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,95,111,110,80,111,105,110,116,101,114,76,101,97,118,101,40,101,118,101,110,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,112,111,115,105,116,105,111,110,32,61,32,103,101,116,80,111,105,110,116,101,114,80,111,115,105,116,105,111,110,40,101,118,101,110,116,41,59,10,32,32,32,32,32,32,105,102,32,40,112,111,115,105,116,105,111,110,41,32,123,10,32,32,32,32,32,32,32,32,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,120,105,116,69,118,101,110,116,40,112,111,115,105,116,105,111,110,46,120,44,32,112,111,115,105,116,105,111,110,46,121,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,95,115,101,116,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,73,83,95,66,82,79,87,83,69,82,32,38,38,32,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,32,38,38,32,116,104,105,115,46,95,100,111,116,76,111,116,116,105,101,67,111,114,101,32,33,61,61,32,110,117,108,108,32,38,38,32,116,104,105,115,46,105,115,76,111,97,100,101,100,41,32,123,10,32,32,32,32,32,32,32,32,99,111,110,115,116,32,108,105,115,116,101,110,101,114,115,32,61,32,116,104,105,115,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,76,105,115,116,101,110,101,114,115,40,41,59,10,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,59,10,32,32,32,32,32,32,32,32,105,102,32,40,108,105,115,116,101,110,101,114,115,46,105,110,99,108,117,100,101,115,40,34,67,108,105,99,107,34,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,98,111,117,110,100,79,110,67,108,105,99,107,32,61,32,116,104,105,115,46,95,111,110,67,108,105,99,107,46,98,105,110,100,40,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,99,108,105,99,107,34,44,32,116,104,105,115,46,95,98,111,117,110,100,79,110,67,108,105,99,107,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,108,105,115,116,101,110,101,114,115,46,105,110,99,108,117,100,101,115,40,34,80,111,105,110,116,101,114,85,112,34,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,85,112,32,61,32,116,104,105,115,46,95,111,110,80,111,105,110,116,101,114,85,112,46,98,105,110,100,40,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,117,112,34,44,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,85,112,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,108,105,115,116,101,110,101,114,115,46,105,110,99,108,117,100,101,115,40,34,80,111,105,110,116,101,114,68,111,119,110,34,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,68,111,119,110,32,61,32,116,104,105,115,46,95,111,110,80,111,105,110,116,101,114,68,111,119,110,46,98,105,110,100,40,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,100,111,119,110,34,44,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,68,111,119,110,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,108,105,115,116,101,110,101,114,115,46,105,110,99,108,117,100,101,115,40,34,80,111,105,110,116,101,114,77,111,118,101,34,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,77,111,118,101,32,61,32,116,104,105,115,46,95,111,110,80,111,105,110,116,101,114,77,111,118,101,46,98,105,110,100,40,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,109,111,118,101,34,44,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,77,111,118,101,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,108,105,115,116,101,110,101,114,115,46,105,110,99,108,117,100,101,115,40,34,80,111,105,110,116,101,114,69,110,116,101,114,34,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,69,110,116,101,114,32,61,32,116,104,105,115,46,95,111,110,80,111,105,110,116,101,114,69,110,116,101,114,46,98,105,110,100,40,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,101,110,116,101,114,34,44,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,69,110,116,101,114,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,108,105,115,116,101,110,101,114,115,46,105,110,99,108,117,100,101,115,40,34,80,111,105,110,116,101,114,69,120,105,116,34,41,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,76,101,97,118,101,32,61,32,116,104,105,115,46,95,111,110,80,111,105,110,116,101,114,76,101,97,118,101,46,98,105,110,100,40,116,104,105,115,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,108,101,97,118,101,34,44,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,76,101,97,118,101,41,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,95,99,108,101,97,110,117,112,83,116,97,116,101,77,97,99,104,105,110,101,76,105,115,116,101,110,101,114,115,40,41,32,123,10,32,32,32,32,32,32,105,102,32,40,73,83,95,66,82,79,87,83,69,82,32,38,38,32,116,104,105,115,46,95,99,97,110,118,97,115,32,105,110,115,116,97,110,99,101,111,102,32,72,84,77,76,67,97,110,118,97,115,69,108,101,109,101,110,116,41,32,123,10,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,98,111,117,110,100,79,110,67,108,105,99,107,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,99,108,105,99,107,34,44,32,116,104,105,115,46,95,98,111,117,110,100,79,110,67,108,105,99,107,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,98,111,117,110,100,79,110,67,108,105,99,107,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,85,112,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,117,112,34,44,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,85,112,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,85,112,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,68,111,119,110,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,100,111,119,110,34,44,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,68,111,119,110,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,68,111,119,110,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,77,111,118,101,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,109,111,118,101,34,44,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,77,111,118,101,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,77,111,118,101,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,69,110,116,101,114,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,101,110,116,101,114,34,44,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,69,110,116,101,114,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,69,110,116,101,114,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,105,102,32,40,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,76,101,97,118,101,41,32,123,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,99,97,110,118,97,115,46,114,101,109,111,118,101,69,118,101,110,116,76,105,115,116,101,110,101,114,40,34,112,111,105,110,116,101,114,108,101,97,118,101,34,44,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,76,101,97,118,101,41,59,10,32,32,32,32,32,32,32,32,32,32,116,104,105,115,46,95,98,111,117,110,100,79,110,80,111,105,110,116,101,114,76,101,97,118,101,32,61,32,110,117,108,108,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,10,32,32,32,32,125,10,32,32,32,32,47,47,32,35,101,110,100,114,101,103,105,111,110,10,32,32,125,59,10,32,32,95,95,112,117,98,108,105,99,70,105,101,108,100,40,95,68,111,116,76,111,116,116,105,101,44,32,34,95,119,97,115,109,77,111,100,117,108,101,34,44,32,110,117,108,108,41,59,10,32,32,118,97,114,32,68,111,116,76,111,116,116,105,101,32,61,32,95,68,111,116,76,111,116,116,105,101,59,10,10,32,32,47,47,32,115,114,99,47,119,111,114,107,101,114,47,100,111,116,108,111,116,116,105,101,46,119,111,114,107,101,114,46,116,115,10,32,32,118,97,114,32,105,110,115,116,97,110,99,101,115,77,97,112,32,61,32,47,42,32,64,95,95,80,85,82,69,95,95,32,42,47,32,110,101,119,32,77,97,112,40,41,59,10,32,32,118,97,114,32,101,118,101,110,116,72,97,110,100,108,101,114,77,97,112,32,61,32,123,10,32,32,32,32,114,101,97,100,121,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,82,101,97,100,121,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,99,111,109,112,108,101,116,101,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,67,111,109,112,108,101,116,101,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,108,111,97,100,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,108,111,97,100,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,76,111,97,100,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,108,111,97,100,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,108,111,97,100,69,114,114,111,114,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,108,111,97,100,69,114,114,111,114,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,76,111,97,100,69,114,114,111,114,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,108,111,97,100,69,114,114,111,114,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,114,101,110,100,101,114,69,114,114,111,114,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,110,100,101,114,69,114,114,111,114,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,82,101,110,100,101,114,69,114,114,111,114,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,114,101,110,100,101,114,69,114,114,111,114,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,108,111,111,112,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,108,111,111,112,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,76,111,111,112,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,108,111,111,112,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,112,108,97,121,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,112,108,97,121,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,80,108,97,121,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,112,108,97,121,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,112,97,117,115,101,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,112,97,117,115,101,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,80,97,117,115,101,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,112,97,117,115,101,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,111,112,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,111,112,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,111,112,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,111,112,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,102,114,97,109,101,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,102,114,97,109,101,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,70,114,97,109,101,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,102,114,97,109,101,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,114,101,110,100,101,114,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,110,100,101,114,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,82,101,110,100,101,114,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,114,101,110,100,101,114,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,102,114,101,101,122,101,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,102,114,101,101,122,101,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,70,114,101,101,122,101,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,102,114,101,101,122,101,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,117,110,102,114,101,101,122,101,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,117,110,102,114,101,101,122,101,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,85,110,102,114,101,101,122,101,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,117,110,102,114,101,101,122,101,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,100,101,115,116,114,111,121,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,100,101,115,116,114,111,121,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,68,101,115,116,114,111,121,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,100,101,115,116,114,111,121,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,84,114,97,110,115,105,116,105,111,110,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,84,114,97,110,115,105,116,105,111,110,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,84,114,97,110,115,105,116,105,111,110,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,97,116,101,77,97,99,104,105,110,101,84,114,97,110,115,105,116,105,111,110,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,110,116,101,114,101,100,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,110,116,101,114,101,100,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,110,116,101,114,101,100,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,110,116,101,114,101,100,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,120,105,116,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,120,105,116,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,120,105,116,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,120,105,116,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,67,117,115,116,111,109,69,118,101,110,116,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,67,117,115,116,111,109,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,67,117,115,116,111,109,69,118,101,110,116,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,97,116,101,77,97,99,104,105,110,101,67,117,115,116,111,109,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,69,114,114,111,114,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,69,114,114,111,114,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,69,114,114,111,114,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,97,116,101,77,97,99,104,105,110,101,69,114,114,111,114,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,66,111,111,108,101,97,110,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,66,111,111,108,101,97,110,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,66,111,111,108,101,97,110,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,97,116,101,77,97,99,104,105,110,101,66,111,111,108,101,97,110,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,78,117,109,101,114,105,99,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,78,117,109,101,114,105,99,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,47,47,32,101,115,108,105,110,116,45,100,105,115,97,98,108,101,45,110,101,120,116,45,108,105,110,101,32,110,111,45,115,101,99,114,101,116,115,47,110,111,45,115,101,99,114,101,116,115,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,78,117,109,101,114,105,99,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,97,116,101,77,97,99,104,105,110,101,78,117,109,101,114,105,99,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,114,105,110,103,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,114,105,110,103,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,83,116,114,105,110,103,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,114,105,110,103,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,73,110,112,117,116,70,105,114,101,100,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,73,110,112,117,116,70,105,114,101,100,69,118,101,110,116,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,73,110,112,117,116,70,105,114,101,100,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,97,116,101,77,97,99,104,105,110,101,73,110,112,117,116,70,105,114,101,100,69,118,101,110,116,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,58,32,40,105,110,115,116,97,110,99,101,73,100,41,32,61,62,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,32,61,32,101,118,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,34,34,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,34,111,110,83,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,34,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,58,32,123,10,32,32,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,44,10,32,32,32,32,32,32,32,32,32,32,101,118,101,110,116,58,32,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,10,32,32,125,59,10,32,32,118,97,114,32,99,111,109,109,97,110,100,115,32,61,32,123,10,32,32,32,32,103,101,116,68,111,116,76,111,116,116,105,101,73,110,115,116,97,110,99,101,83,116,97,116,101,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,32,61,32,123,10,32,32,32,32,32,32,32,32,108,111,111,112,67,111,117,110,116,58,32,105,110,115,116,97,110,99,101,46,108,111,111,112,67,111,117,110,116,44,10,32,32,32,32,32,32,32,32,105,115,76,111,97,100,101,100,58,32,105,110,115,116,97,110,99,101,46,105,115,76,111,97,100,101,100,44,10,32,32,32,32,32,32,32,32,105,115,80,97,117,115,101,100,58,32,105,110,115,116,97,110,99,101,46,105,115,80,97,117,115,101,100,44,10,32,32,32,32,32,32,32,32,105,115,80,108,97,121,105,110,103,58,32,105,110,115,116,97,110,99,101,46,105,115,80,108,97,121,105,110,103,44,10,32,32,32,32,32,32,32,32,105,115,83,116,111,112,112,101,100,58,32,105,110,115,116,97,110,99,101,46,105,115,83,116,111,112,112,101,100,44,10,32,32,32,32,32,32,32,32,105,115,70,114,111,122,101,110,58,32,105,110,115,116,97,110,99,101,46,105,115,70,114,111,122,101,110,44,10,32,32,32,32,32,32,32,32,108,111,111,112,58,32,105,110,115,116,97,110,99,101,46,108,111,111,112,44,10,32,32,32,32,32,32,32,32,109,111,100,101,58,32,105,110,115,116,97,110,99,101,46,109,111,100,101,44,10,32,32,32,32,32,32,32,32,115,112,101,101,100,58,32,105,110,115,116,97,110,99,101,46,115,112,101,101,100,44,10,32,32,32,32,32,32,32,32,99,117,114,114,101,110,116,70,114,97,109,101,58,32,105,110,115,116,97,110,99,101,46,99,117,114,114,101,110,116,70,114,97,109,101,44,10,32,32,32,32,32,32,32,32,116,111,116,97,108,70,114,97,109,101,115,58,32,105,110,115,116,97,110,99,101,46,116,111,116,97,108,70,114,97,109,101,115,44,10,32,32,32,32,32,32,32,32,100,117,114,97,116,105,111,110,58,32,105,110,115,116,97,110,99,101,46,100,117,114,97,116,105,111,110,44,10,32,32,32,32,32,32,32,32,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,58,32,105,110,115,116,97,110,99,101,46,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,44,10,32,32,32,32,32,32,32,32,114,101,110,100,101,114,67,111,110,102,105,103,58,32,105,110,115,116,97,110,99,101,46,114,101,110,100,101,114,67,111,110,102,105,103,44,10,32,32,32,32,32,32,32,32,109,97,114,107,101,114,58,32,105,110,115,116,97,110,99,101,46,109,97,114,107,101,114,44,10,32,32,32,32,32,32,32,32,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,58,32,105,110,115,116,97,110,99,101,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,44,10,32,32,32,32,32,32,32,32,109,97,114,107,101,114,115,58,32,105,110,115,116,97,110,99,101,46,109,97,114,107,101,114,115,40,41,44,10,32,32,32,32,32,32,32,32,97,99,116,105,118,101,65,110,105,109,97,116,105,111,110,73,100,58,32,105,110,115,116,97,110,99,101,46,97,99,116,105,118,101,65,110,105,109,97,116,105,111,110,73,100,44,10,32,32,32,32,32,32,32,32,97,99,116,105,118,101,84,104,101,109,101,73,100,58,32,105,110,115,116,97,110,99,101,46,97,99,116,105,118,101,84,104,101,109,101,73,100,44,10,32,32,32,32,32,32,32,32,97,117,116,111,112,108,97,121,58,32,105,110,115,116,97,110,99,101,46,97,117,116,111,112,108,97,121,44,10,32,32,32,32,32,32,32,32,115,101,103,109,101,110,116,58,32,105,110,115,116,97,110,99,101,46,115,101,103,109,101,110,116,44,10,32,32,32,32,32,32,32,32,108,97,121,111,117,116,58,32,105,110,115,116,97,110,99,101,46,108,97,121,111,117,116,44,10,32,32,32,32,32,32,32,32,115,101,103,109,101,110,116,68,117,114,97,116,105,111,110,58,32,105,110,115,116,97,110,99,101,46,115,101,103,109,101,110,116,68,117,114,97,116,105,111,110,44,10,32,32,32,32,32,32,32,32,105,115,82,101,97,100,121,58,32,105,110,115,116,97,110,99,101,46,105,115,82,101,97,100,121,44,10,32,32,32,32,32,32,32,32,109,97,110,105,102,101,115,116,58,32,105,110,115,116,97,110,99,101,46,109,97,110,105,102,101,115,116,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,123,10,32,32,32,32,32,32,32,32,115,116,97,116,101,10,32,32,32,32,32,32,125,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,76,97,121,111,117,116,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,108,97,121,111,117,116,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,108,97,121,111,117,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,115,101,116,76,97,121,111,117,116,40,108,97,121,111,117,116,41,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,123,10,32,32,32,32,32,32,32,32,115,117,99,99,101,115,115,58,32,116,114,117,101,10,32,32,32,32,32,32,125,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,76,105,115,116,101,110,101,114,115,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,76,105,115,116,101,110,101,114,115,40,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,40,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,40,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,115,116,97,116,101,77,97,99,104,105,110,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,40,115,116,97,116,101,77,97,99,104,105,110,101,73,100,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,68,97,116,97,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,68,97,116,97,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,115,116,97,116,101,77,97,99,104,105,110,101,68,97,116,97,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,76,111,97,100,68,97,116,97,40,115,116,97,116,101,77,97,99,104,105,110,101,68,97,116,97,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,67,108,105,99,107,69,118,101,110,116,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,120,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,120,59,10,32,32,32,32,32,32,99,111,110,115,116,32,121,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,121,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,67,108,105,99,107,69,118,101,110,116,40,120,44,32,121,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,85,112,69,118,101,110,116,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,120,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,120,59,10,32,32,32,32,32,32,99,111,110,115,116,32,121,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,121,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,85,112,69,118,101,110,116,40,120,44,32,121,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,68,111,119,110,69,118,101,110,116,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,120,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,120,59,10,32,32,32,32,32,32,99,111,110,115,116,32,121,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,121,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,68,111,119,110,69,118,101,110,116,40,120,44,32,121,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,77,111,118,101,69,118,101,110,116,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,120,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,120,59,10,32,32,32,32,32,32,99,111,110,115,116,32,121,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,121,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,77,111,118,101,69,118,101,110,116,40,120,44,32,121,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,110,116,101,114,69,118,101,110,116,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,120,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,120,59,10,32,32,32,32,32,32,99,111,110,115,116,32,121,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,121,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,110,116,101,114,69,118,101,110,116,40,120,44,32,121,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,120,105,116,69,118,101,110,116,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,120,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,120,59,10,32,32,32,32,32,32,99,111,110,115,116,32,121,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,121,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,80,111,115,116,80,111,105,110,116,101,114,69,120,105,116,69,118,101,110,116,40,120,44,32,121,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,78,117,109,101,114,105,99,73,110,112,117,116,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,110,97,109,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,110,97,109,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,118,97,108,117,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,118,97,108,117,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,78,117,109,101,114,105,99,73,110,112,117,116,40,110,97,109,101,44,32,118,97,108,117,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,66,111,111,108,101,97,110,73,110,112,117,116,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,110,97,109,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,110,97,109,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,118,97,108,117,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,118,97,108,117,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,66,111,111,108,101,97,110,73,110,112,117,116,40,110,97,109,101,44,32,118,97,108,117,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,67,111,110,102,105,103,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,99,111,110,102,105,103,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,99,111,110,102,105,103,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,67,111,110,102,105,103,40,99,111,110,102,105,103,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,83,116,114,105,110,103,73,110,112,117,116,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,110,97,109,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,110,97,109,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,118,97,108,117,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,118,97,108,117,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,83,101,116,83,116,114,105,110,103,73,110,112,117,116,40,110,97,109,101,44,32,118,97,108,117,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,78,117,109,101,114,105,99,73,110,112,117,116,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,110,97,109,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,110,97,109,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,78,117,109,101,114,105,99,73,110,112,117,116,40,110,97,109,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,66,111,111,108,101,97,110,73,110,112,117,116,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,110,97,109,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,110,97,109,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,66,111,111,108,101,97,110,73,110,112,117,116,40,110,97,109,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,114,105,110,103,73,110,112,117,116,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,110,97,109,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,110,97,109,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,114,105,110,103,73,110,112,117,116,40,110,97,109,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,70,105,114,101,69,118,101,110,116,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,110,97,109,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,110,97,109,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,70,105,114,101,69,118,101,110,116,40,110,97,109,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,97,116,117,115,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,83,116,97,116,117,115,40,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,67,117,114,114,101,110,116,83,116,97,116,101,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,67,117,114,114,101,110,116,83,116,97,116,101,40,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,65,99,116,105,118,101,73,100,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,65,99,116,105,118,101,73,100,40,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,79,118,101,114,114,105,100,101,83,116,97,116,101,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,115,116,97,116,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,109,109,101,100,105,97,116,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,109,109,101,100,105,97,116,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,79,118,101,114,114,105,100,101,83,116,97,116,101,40,115,116,97,116,101,44,32,105,109,109,101,100,105,97,116,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,115,116,97,116,101,77,97,99,104,105,110,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,115,116,97,116,101,77,97,99,104,105,110,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,116,97,116,101,77,97,99,104,105,110,101,71,101,116,40,115,116,97,116,101,77,97,99,104,105,110,101,73,100,41,59,10,32,32,32,32,125,44,10,32,32,32,32,99,114,101,97,116,101,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,99,111,110,102,105,103,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,99,111,110,102,105,103,59,10,32,32,32,32,32,32,99,111,110,115,116,32,119,105,100,116,104,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,119,105,100,116,104,59,10,32,32,32,32,32,32,99,111,110,115,116,32,104,101,105,103,104,116,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,104,101,105,103,104,116,59,10,32,32,32,32,32,32,105,102,32,40,105,110,115,116,97,110,99,101,115,77,97,112,46,104,97,115,40,105,110,115,116,97,110,99,101,73,100,41,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,97,108,114,101,97,100,121,32,101,120,105,115,116,115,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,110,101,119,32,68,111,116,76,111,116,116,105,101,40,99,111,110,102,105,103,41,59,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,99,97,110,118,97,115,46,104,101,105,103,104,116,32,61,32,104,101,105,103,104,116,59,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,99,97,110,118,97,115,46,119,105,100,116,104,32,61,32,119,105,100,116,104,59,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,115,77,97,112,46,115,101,116,40,105,110,115,116,97,110,99,101,73,100,44,32,105,110,115,116,97,110,99,101,41,59,10,32,32,32,32,32,32,99,111,110,115,116,32,101,118,101,110,116,115,32,61,32,91,10,32,32,32,32,32,32,32,32,34,99,111,109,112,108,101,116,101,34,44,10,32,32,32,32,32,32,32,32,34,102,114,97,109,101,34,44,10,32,32,32,32,32,32,32,32,34,108,111,97,100,34,44,10,32,32,32,32,32,32,32,32,34,108,111,97,100,69,114,114,111,114,34,44,10,32,32,32,32,32,32,32,32,34,114,101,110,100,101,114,69,114,114,111,114,34,44,10,32,32,32,32,32,32,32,32,34,108,111,111,112,34,44,10,32,32,32,32,32,32,32,32,34,112,97,117,115,101,34,44,10,32,32,32,32,32,32,32,32,34,112,108,97,121,34,44,10,32,32,32,32,32,32,32,32,34,115,116,111,112,34,44,10,32,32,32,32,32,32,32,32,34,100,101,115,116,114,111,121,34,44,10,32,32,32,32,32,32,32,32,34,102,114,101,101,122,101,34,44,10,32,32,32,32,32,32,32,32,34,117,110,102,114,101,101,122,101,34,44,10,32,32,32,32,32,32,32,32,34,114,101,110,100,101,114,34,44,10,32,32,32,32,32,32,32,32,34,114,101,97,100,121,34,44,10,32,32,32,32,32,32,32,32,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,114,116,34,44,10,32,32,32,32,32,32,32,32,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,111,112,34,44,10,32,32,32,32,32,32,32,32,34,115,116,97,116,101,77,97,99,104,105,110,101,84,114,97,110,115,105,116,105,111,110,34,44,10,32,32,32,32,32,32,32,32,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,110,116,101,114,101,100,34,44,10,32,32,32,32,32,32,32,32,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,97,116,101,69,120,105,116,34,44,10,32,32,32,32,32,32,32,32,34,115,116,97,116,101,77,97,99,104,105,110,101,67,117,115,116,111,109,69,118,101,110,116,34,44,10,32,32,32,32,32,32,32,32,34,115,116,97,116,101,77,97,99,104,105,110,101,69,114,114,111,114,34,44,10,32,32,32,32,32,32,32,32,34,115,116,97,116,101,77,97,99,104,105,110,101,66,111,111,108,101,97,110,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,10,32,32,32,32,32,32,32,32,34,115,116,97,116,101,77,97,99,104,105,110,101,78,117,109,101,114,105,99,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,10,32,32,32,32,32,32,32,32,34,115,116,97,116,101,77,97,99,104,105,110,101,83,116,114,105,110,103,73,110,112,117,116,86,97,108,117,101,67,104,97,110,103,101,34,44,10,32,32,32,32,32,32,32,32,34,115,116,97,116,101,77,97,99,104,105,110,101,73,110,112,117,116,70,105,114,101,100,34,44,10,32,32,32,32,32,32,32,32,34,115,116,97,116,101,77,97,99,104,105,110,101,73,110,116,101,114,110,97,108,77,101,115,115,97,103,101,34,10,32,32,32,32,32,32,93,59,10,32,32,32,32,32,32,101,118,101,110,116,115,46,102,111,114,69,97,99,104,40,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,97,100,100,69,118,101,110,116,76,105,115,116,101,110,101,114,40,101,118,101,110,116,44,32,101,118,101,110,116,72,97,110,100,108,101,114,77,97,112,91,101,118,101,110,116,93,40,105,110,115,116,97,110,99,101,73,100,41,41,59,10,32,32,32,32,32,32,125,41,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,123,10,32,32,32,32,32,32,32,32,105,110,115,116,97,110,99,101,73,100,10,32,32,32,32,32,32,125,59,10,32,32,32,32,125,44,10,32,32,32,32,100,101,115,116,114,111,121,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,114,101,116,117,114,110,59,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,100,101,115,116,114,111,121,40,41,59,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,115,77,97,112,46,100,101,108,101,116,101,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,125,44,10,32,32,32,32,102,114,101,101,122,101,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,102,114,101,101,122,101,40,41,59,10,32,32,32,32,125,44,10,32,32,32,32,108,111,97,100,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,99,111,110,102,105,103,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,99,111,110,102,105,103,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,108,111,97,100,40,99,111,110,102,105,103,41,59,10,32,32,32,32,125,44,10,32,32,32,32,108,111,97,100,65,110,105,109,97,116,105,111,110,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,97,110,105,109,97,116,105,111,110,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,97,110,105,109,97,116,105,111,110,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,108,111,97,100,65,110,105,109,97,116,105,111,110,40,97,110,105,109,97,116,105,111,110,73,100,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,84,104,101,109,101,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,116,104,101,109,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,116,104,101,109,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,101,116,84,104,101,109,101,40,116,104,101,109,101,73,100,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,84,104,101,109,101,68,97,116,97,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,116,104,101,109,101,68,97,116,97,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,116,104,101,109,101,68,97,116,97,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,101,116,84,104,101,109,101,68,97,116,97,40,116,104,101,109,101,68,97,116,97,41,59,10,32,32,32,32,125,44,10,32,32,32,32,112,97,117,115,101,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,112,97,117,115,101,40,41,59,10,32,32,32,32,125,44,10,32,32,32,32,112,108,97,121,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,112,108,97,121,40,41,59,10,32,32,32,32,125,44,10,32,32,32,32,114,101,115,105,122,101,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,119,105,100,116,104,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,119,105,100,116,104,59,10,32,32,32,32,32,32,99,111,110,115,116,32,104,101,105,103,104,116,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,104,101,105,103,104,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,99,97,110,118,97,115,46,104,101,105,103,104,116,32,61,32,104,101,105,103,104,116,59,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,99,97,110,118,97,115,46,119,105,100,116,104,32,61,32,119,105,100,116,104,59,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,114,101,115,105,122,101,40,41,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,123,10,32,32,32,32,32,32,32,32,115,117,99,99,101,115,115,58,32,116,114,117,101,10,32,32,32,32,32,32,125,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,66,97,99,107,103,114,111,117,110,100,67,111,108,111,114,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,115,101,116,66,97,99,107,103,114,111,117,110,100,67,111,108,111,114,40,98,97,99,107,103,114,111,117,110,100,67,111,108,111,114,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,70,114,97,109,101,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,102,114,97,109,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,102,114,97,109,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,115,101,116,70,114,97,109,101,40,102,114,97,109,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,77,111,100,101,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,109,111,100,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,109,111,100,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,115,101,116,77,111,100,101,40,109,111,100,101,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,82,101,110,100,101,114,67,111,110,102,105,103,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,110,100,101,114,67,111,110,102,105,103,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,114,101,110,100,101,114,67,111,110,102,105,103,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,115,101,116,82,101,110,100,101,114,67,111,110,102,105,103,40,114,101,110,100,101,114,67,111,110,102,105,103,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,83,101,103,109,101,110,116,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,115,101,103,109,101,110,116,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,115,101,103,109,101,110,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,115,101,116,83,101,103,109,101,110,116,40,115,101,103,109,101,110,116,91,48,93,44,32,115,101,103,109,101,110,116,91,49,93,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,83,112,101,101,100,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,115,112,101,101,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,115,112,101,101,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,115,101,116,83,112,101,101,100,40,115,112,101,101,100,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,85,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,115,101,116,85,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,40,117,115,101,70,114,97,109,101,73,110,116,101,114,112,111,108,97,116,105,111,110,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,87,97,115,109,85,114,108,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,68,111,116,76,111,116,116,105,101,46,115,101,116,87,97,115,109,85,114,108,40,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,117,114,108,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,116,111,112,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,115,116,111,112,40,41,59,10,32,32,32,32,125,44,10,32,32,32,32,117,110,102,114,101,101,122,101,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,117,110,102,114,101,101,122,101,40,41,59,10,32,32,32,32,125,44,10,32,32,32,32,116,119,101,101,110,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,102,114,97,109,101,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,102,114,97,109,101,59,10,32,32,32,32,32,32,99,111,110,115,116,32,100,117,114,97,116,105,111,110,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,100,117,114,97,116,105,111,110,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,116,119,101,101,110,40,102,114,97,109,101,44,32,100,117,114,97,116,105,111,110,41,59,10,32,32,32,32,125,44,10,32,32,32,32,116,119,101,101,110,84,111,77,97,114,107,101,114,58,32,40,114,101,113,117,101,115,116,41,32,61,62,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,109,97,114,107,101,114,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,109,97,114,107,101,114,59,10,32,32,32,32,32,32,99,111,110,115,116,32,100,117,114,97,116,105,111,110,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,100,117,114,97,116,105,111,110,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,116,119,101,101,110,84,111,77,97,114,107,101,114,40,109,97,114,107,101,114,44,32,100,117,114,97,116,105,111,110,41,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,86,105,101,119,112,111,114,116,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,120,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,120,59,10,32,32,32,32,32,32,99,111,110,115,116,32,121,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,121,59,10,32,32,32,32,32,32,99,111,110,115,116,32,119,105,100,116,104,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,119,105,100,116,104,59,10,32,32,32,32,32,32,99,111,110,115,116,32,104,101,105,103,104,116,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,104,101,105,103,104,116,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,114,101,116,117,114,110,32,105,110,115,116,97,110,99,101,46,115,101,116,86,105,101,119,112,111,114,116,40,120,44,32,121,44,32,119,105,100,116,104,44,32,104,101,105,103,104,116,41,59,10,32,32,32,32,125,44,10,32,32,32,32,97,110,105,109,97,116,105,111,110,83,105,122,101,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,99,111,110,115,116,32,123,32,104,101,105,103,104,116,44,32,119,105,100,116,104,32,125,32,61,32,105,110,115,116,97,110,99,101,46,97,110,105,109,97,116,105,111,110,83,105,122,101,40,41,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,123,10,32,32,32,32,32,32,32,32,104,101,105,103,104,116,44,10,32,32,32,32,32,32,32,32,119,105,100,116,104,10,32,32,32,32,32,32,125,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,77,97,114,107,101,114,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,109,97,114,107,101,114,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,109,97,114,107,101,114,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,115,101,116,77,97,114,107,101,114,40,109,97,114,107,101,114,41,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,123,10,32,32,32,32,32,32,32,32,115,117,99,99,101,115,115,58,32,116,114,117,101,10,32,32,32,32,32,32,125,59,10,32,32,32,32,125,44,10,32,32,32,32,115,101,116,76,111,111,112,40,114,101,113,117,101,115,116,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,73,100,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,105,110,115,116,97,110,99,101,73,100,59,10,32,32,32,32,32,32,99,111,110,115,116,32,108,111,111,112,32,61,32,114,101,113,117,101,115,116,46,112,97,114,97,109,115,46,108,111,111,112,59,10,32,32,32,32,32,32,99,111,110,115,116,32,105,110,115,116,97,110,99,101,32,61,32,105,110,115,116,97,110,99,101,115,77,97,112,46,103,101,116,40,105,110,115,116,97,110,99,101,73,100,41,59,10,32,32,32,32,32,32,105,102,32,40,33,105,110,115,116,97,110,99,101,41,32,123,10,32,32,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,73,110,115,116,97,110,99,101,32,119,105,116,104,32,105,100,32,36,123,105,110,115,116,97,110,99,101,73,100,125,32,100,111,101,115,32,110,111,116,32,101,120,105,115,116,46,96,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,105,110,115,116,97,110,99,101,46,115,101,116,76,111,111,112,40,108,111,111,112,41,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,123,10,32,32,32,32,32,32,32,32,115,117,99,99,101,115,115,58,32,116,114,117,101,10,32,32,32,32,32,32,125,59,10,32,32,32,32,125,10,32,32,125,59,10,32,32,102,117,110,99,116,105,111,110,32,101,120,101,99,117,116,101,67,111,109,109,97,110,100,40,114,112,99,82,101,113,117,101,115,116,41,32,123,10,32,32,32,32,99,111,110,115,116,32,109,101,116,104,111,100,32,61,32,114,112,99,82,101,113,117,101,115,116,46,109,101,116,104,111,100,59,10,32,32,32,32,105,102,32,40,116,121,112,101,111,102,32,99,111,109,109,97,110,100,115,91,109,101,116,104,111,100,93,32,61,61,61,32,34,102,117,110,99,116,105,111,110,34,41,32,123,10,32,32,32,32,32,32,114,101,116,117,114,110,32,99,111,109,109,97,110,100,115,91,109,101,116,104,111,100,93,40,114,112,99,82,101,113,117,101,115,116,41,59,10,32,32,32,32,125,32,101,108,115,101,32,123,10,32,32,32,32,32,32,116,104,114,111,119,32,110,101,119,32,69,114,114,111,114,40,96,77,101,116,104,111,100,32,36,123,109,101,116,104,111,100,125,32,105,115,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,32,105,110,32,99,111,109,109,97,110,100,115,46,96,41,59,10,32,32,32,32,125,10,32,32,125,10,32,32,115,101,108,102,46,111,110,109,101,115,115,97,103,101,32,61,32,40,101,118,101,110,116,41,32,61,62,32,123,10,32,32,32,32,116,114,121,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,117,108,116,32,61,32,101,120,101,99,117,116,101,67,111,109,109,97,110,100,40,101,118,101,110,116,46,100,97,116,97,41,59,10,32,32,32,32,32,32,99,111,110,115,116,32,114,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,101,118,101,110,116,46,100,97,116,97,46,105,100,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,101,118,101,110,116,46,100,97,116,97,46,109,101,116,104,111,100,44,10,32,32,32,32,32,32,32,32,114,101,115,117,108,116,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,114,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,32,99,97,116,99,104,32,40,101,114,114,111,114,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,101,114,114,111,114,82,101,115,112,111,110,115,101,32,61,32,123,10,32,32,32,32,32,32,32,32,105,100,58,32,101,118,101,110,116,46,100,97,116,97,46,105,100,44,10,32,32,32,32,32,32,32,32,109,101,116,104,111,100,58,32,101,118,101,110,116,46,100,97,116,97,46,109,101,116,104,111,100,44,10,32,32,32,32,32,32,32,32,101,114,114,111,114,58,32,101,114,114,111,114,46,109,101,115,115,97,103,101,10,32,32,32,32,32,32,125,59,10,32,32,32,32,32,32,115,101,108,102,46,112,111,115,116,77,101,115,115,97,103,101,40,101,114,114,111,114,82,101,115,112,111,110,115,101,41,59,10,32,32,32,32,125,10,32,32,125,59,10,32,32,118,97,114,32,100,117,109,109,121,32,61,32,34,34,59,10,32,32,118,97,114,32,100,111,116,108,111,116,116,105,101,95,119,111,114,107,101,114,95,100,101,102,97,117,108,116,32,61,32,100,117,109,109,121,59,10,125,41,40,41,59,10])],{type:"application/javascript"}),t=URL.createObjectURL(e),n=new Worker(t);return URL.revokeObjectURL(t),n}},Y3=Q3,Z3=class{constructor(){p(this,"_workers",new Map),p(this,"_animationWorkerMap",new Map)}getWorker(e){return this._workers.has(e)||this._workers.set(e,new Y3),this._workers.get(e)}assignAnimationToWorker(e,t){this._animationWorkerMap.set(e,t)}unassignAnimationFromWorker(e){this._animationWorkerMap.delete(e)}sendMessage(e,t,n){this.getWorker(e).postMessage(t,n||[])}terminateWorker(e){let t=this._workers.get(e);t&&(t.terminate(),this._workers.delete(e))}};function j2(e,t){if(e instanceof HTMLCanvasElement){let{height:n,width:i}=e.getBoundingClientRect();if(n!==0&&i!==0)return{width:i*t,height:n*t}}return{width:e.width,height:e.height}}function N2(){return Date.now().toString(36)+Math.random().toString(36).substr(2,9)}var f2=class le{constructor(t){p(this,"_eventManager",new J2),p(this,"_id"),p(this,"_worker"),p(this,"_canvas"),p(this,"_dotLottieInstanceState",{loopCount:0,markers:[],autoplay:!1,backgroundColor:"",currentFrame:0,duration:0,loop:!1,mode:"forward",segment:[0,0],segmentDuration:0,speed:1,totalFrames:0,isLoaded:!1,isPlaying:!1,isPaused:!1,isStopped:!0,isFrozen:!1,useFrameInterpolation:!1,renderConfig:{devicePixelRatio:c1()},activeAnimationId:"",activeThemeId:"",layout:void 0,marker:void 0,isReady:!1,manifest:null}),p(this,"_created",!1),p(this,"_boundOnClick",null),p(this,"_boundOnPointerUp",null),p(this,"_boundOnPointerDown",null),p(this,"_boundOnPointerMove",null),p(this,"_boundOnPointerEnter",null),p(this,"_boundOnPointerLeave",null),this._canvas=t.canvas,this._id=`dotlottie-${N2()}`;let n=t.workerId||"defaultWorker";this._worker=le._workerManager.getWorker(n),le._workerManager.assignAnimationToWorker(this._id,n),le._wasmUrl&&this._sendMessage("setWasmUrl",{url:le._wasmUrl}),this._create({...t,renderConfig:{...t.renderConfig,devicePixelRatio:t.renderConfig?.devicePixelRatio||c1(),freezeOnOffscreen:t.renderConfig?.freezeOnOffscreen??!0}}),this._worker.addEventListener("message",this._handleWorkerEvent.bind(this))}async _handleWorkerEvent(t){let n=t.data;if(!n.id&&(n.method==="onLoad"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event),E&&this._canvas instanceof HTMLCanvasElement&&(this._dotLottieInstanceState.renderConfig.freezeOnOffscreen&&(j.observe(this._canvas,this),l1(this._canvas)||await this.freeze()),this._dotLottieInstanceState.renderConfig.autoResize&&N.observe(this._canvas,this))),n.method==="onComplete"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onDestroy"&&n.result.instanceId===this._id&&this._eventManager.dispatch(n.result.event),n.method==="onUnfreeze"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._dotLottieInstanceState.isFrozen=!1,this._eventManager.dispatch(n.result.event)),n.method==="onFrame"&&n.result.instanceId===this._id&&(this._dotLottieInstanceState.currentFrame=n.result.event.currentFrame,this._eventManager.dispatch(n.result.event)),n.method==="onRender"&&n.result.instanceId===this._id&&this._eventManager.dispatch(n.result.event),n.method==="onFreeze"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onPause"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onPlay"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onStop"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onLoadError"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onRenderError"&&n.result.instanceId===this._id&&this._eventManager.dispatch(n.result.event),n.method==="onReady"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onLoop"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onStateMachineStart"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._setupStateMachineListeners(),this._eventManager.dispatch(n.result.event)),n.method==="onStateMachineStop"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._cleanupStateMachineListeners(),this._eventManager.dispatch(n.result.event)),n.method==="onStateMachineTransition"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onStateMachineStateEntered"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onStateMachineStateExit"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onStateMachineCustomEvent"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onStateMachineError"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onStateMachineBooleanInputValueChange"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onStateMachineNumericInputValueChange"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onStateMachineStringInputValueChange"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onStateMachineInputFired"&&n.result.instanceId===this._id&&(await this._updateDotLottieInstanceState(),this._eventManager.dispatch(n.result.event)),n.method==="onStateMachineInternalMessage"&&n.result.instanceId===this._id)){await this._updateDotLottieInstanceState();let i=n.result.event;i.message.startsWith("OpenUrl: ")&&q2(i.message)}}async _create(t){let n;this._canvas instanceof HTMLCanvasElement?n=this._canvas.transferControlToOffscreen():n=this._canvas;let{instanceId:i}=await this._sendMessage("create",{instanceId:this._id,config:{...t,canvas:n},...j2(this._canvas,t.renderConfig?.devicePixelRatio||c1())},[n]);if(i!==this._id)throw new Error("Instance ID mismatch");this._created=!0,await this._updateDotLottieInstanceState()}get loopCount(){return this._dotLottieInstanceState.loopCount}get isLoaded(){return this._dotLottieInstanceState.isLoaded}get isPlaying(){return this._dotLottieInstanceState.isPlaying}get isPaused(){return this._dotLottieInstanceState.isPaused}get isStopped(){return this._dotLottieInstanceState.isStopped}get currentFrame(){return this._dotLottieInstanceState.currentFrame}get isFrozen(){return this._dotLottieInstanceState.isFrozen}get segmentDuration(){return this._dotLottieInstanceState.segmentDuration}get totalFrames(){return this._dotLottieInstanceState.totalFrames}get segment(){return this._dotLottieInstanceState.segment}get speed(){return this._dotLottieInstanceState.speed}get duration(){return this._dotLottieInstanceState.duration}get isReady(){return this._dotLottieInstanceState.isReady}get mode(){return this._dotLottieInstanceState.mode}get canvas(){return this._canvas}get autoplay(){return this._dotLottieInstanceState.autoplay}get backgroundColor(){return this._dotLottieInstanceState.backgroundColor}get loop(){return this._dotLottieInstanceState.loop}get useFrameInterpolation(){return this._dotLottieInstanceState.useFrameInterpolation}get renderConfig(){return this._dotLottieInstanceState.renderConfig}get manifest(){return this._dotLottieInstanceState.manifest}get activeAnimationId(){return this._dotLottieInstanceState.activeAnimationId}get marker(){return this._dotLottieInstanceState.marker}get activeThemeId(){return this._dotLottieInstanceState.activeThemeId}get layout(){return this._dotLottieInstanceState.layout}async play(){this._created&&(await this._sendMessage("play",{instanceId:this._id}),await this._updateDotLottieInstanceState(),E&&this._canvas instanceof HTMLCanvasElement&&this._dotLottieInstanceState.renderConfig.freezeOnOffscreen&&!l1(this._canvas)&&await this.freeze())}async pause(){this._created&&(await this._sendMessage("pause",{instanceId:this._id}),await this._updateDotLottieInstanceState())}async stop(){this._created&&(await this._sendMessage("stop",{instanceId:this._id}),await this._updateDotLottieInstanceState())}async setSpeed(t){this._created&&(await this._sendMessage("setSpeed",{instanceId:this._id,speed:t}),await this._updateDotLottieInstanceState())}async setMode(t){this._created&&(await this._sendMessage("setMode",{instanceId:this._id,mode:t}),await this._updateDotLottieInstanceState())}async setFrame(t){this._created&&(await this._sendMessage("setFrame",{frame:t,instanceId:this._id}),await this._updateDotLottieInstanceState())}async setSegment(t,n){this._created&&(await this._sendMessage("setSegment",{instanceId:this._id,segment:[t,n]}),await this._updateDotLottieInstanceState())}async setRenderConfig(t){if(!this._created)return;let{devicePixelRatio:n,freezeOnOffscreen:i,...a}=t;await this._sendMessage("setRenderConfig",{instanceId:this._id,renderConfig:{...this._dotLottieInstanceState.renderConfig,...a,devicePixelRatio:n||c1(),freezeOnOffscreen:i??!0}}),await this._updateDotLottieInstanceState(),E&&this._canvas instanceof HTMLCanvasElement&&(this._dotLottieInstanceState.renderConfig.autoResize?N.observe(this._canvas,this):N.unobserve(this._canvas),this._dotLottieInstanceState.renderConfig.freezeOnOffscreen?(j.observe(this._canvas,this),l1(this._canvas)||await this.freeze()):(j.unobserve(this._canvas),this._dotLottieInstanceState.isFrozen&&await this.unfreeze()))}async setUseFrameInterpolation(t){this._created&&(await this._sendMessage("setUseFrameInterpolation",{instanceId:this._id,useFrameInterpolation:t}),await this._updateDotLottieInstanceState())}async setTheme(t){if(!this._created)return!1;let n=this._sendMessage("setTheme",{instanceId:this._id,themeId:t});return await this._updateDotLottieInstanceState(),n}async load(t){this._created&&(await this._sendMessage("load",{config:t,instanceId:this._id}),await this._updateDotLottieInstanceState())}async setLoop(t){this._created&&(await this._sendMessage("setLoop",{instanceId:this._id,loop:t}),await this._updateDotLottieInstanceState())}async resize(){if(!this._created)return;let{height:t,width:n}=j2(this._canvas,this._dotLottieInstanceState.renderConfig.devicePixelRatio||c1());await this._sendMessage("resize",{height:t,instanceId:this._id,width:n}),await this._updateDotLottieInstanceState()}async destroy(){this._created&&(this._created=!1,await this._sendMessage("destroy",{instanceId:this._id}),this._cleanupStateMachineListeners(),le._workerManager.unassignAnimationFromWorker(this._id),this._eventManager.removeAllEventListeners(),E&&this._canvas instanceof HTMLCanvasElement&&(j.unobserve(this._canvas),N.unobserve(this._canvas)))}async freeze(){this._created&&(await this._sendMessage("freeze",{instanceId:this._id}),await this._updateDotLottieInstanceState())}async unfreeze(){this._created&&(await this._sendMessage("unfreeze",{instanceId:this._id}),await this._updateDotLottieInstanceState())}async setBackgroundColor(t){this._created&&(await this._sendMessage("setBackgroundColor",{instanceId:this._id,backgroundColor:t}),await this._updateDotLottieInstanceState())}async loadAnimation(t){this._created&&(await this._sendMessage("loadAnimation",{animationId:t,instanceId:this._id}),await this._updateDotLottieInstanceState())}async setLayout(t){this._created&&(await this._sendMessage("setLayout",{instanceId:this._id,layout:t}),await this._updateDotLottieInstanceState())}async _updateDotLottieInstanceState(){if(!this._created)return;let t=await this._sendMessage("getDotLottieInstanceState",{instanceId:this._id});this._dotLottieInstanceState=t.state}markers(){return this._dotLottieInstanceState.markers}async setMarker(t){this._created&&(await this._sendMessage("setMarker",{instanceId:this._id,marker:t}),await this._updateDotLottieInstanceState())}async setThemeData(t){if(!this._created)return!1;let n=await this._sendMessage("setThemeData",{instanceId:this._id,themeData:t});return await this._updateDotLottieInstanceState(),n}async setViewport(t,n,i,a){return this._created?this._sendMessage("setViewport",{x:t,y:n,width:i,height:a,instanceId:this._id}):!1}async animationSize(){return this._created?this._sendMessage("animationSize",{instanceId:this._id}):{height:0,width:0}}async tween(t,n){return this._created?this._sendMessage("tween",{instanceId:this._id,frame:t,duration:n}):!1}async tweenToMarker(t,n){return this._created?this._sendMessage("tweenToMarker",{instanceId:this._id,marker:t,duration:n}):!1}async _sendMessage(t,n,i){let a={id:`dotlottie-request-${N2()}`,method:t,params:n};return this._worker.postMessage(a,i||[]),new Promise((o,u)=>{let l=c=>{let f=c.data;f.id===a.id&&(this._worker.removeEventListener("message",l),f.error?u(new Error(`Failed to execute method ${t}: ${f.error}`)):o(f.result))};this._worker.addEventListener("message",l)})}addEventListener(t,n){this._eventManager.addEventListener(t,n)}removeEventListener(t,n){this._eventManager.removeEventListener(t,n)}static setWasmUrl(t){le._wasmUrl=t}async stateMachineLoad(t){if(!this._created)return!1;let n=await this._sendMessage("stateMachineLoad",{instanceId:this._id,stateMachineId:t});return await this._updateDotLottieInstanceState(),n}async stateMachineLoadData(t){if(!this._created)return!1;let n=await this._sendMessage("stateMachineLoadData",{instanceId:this._id,stateMachineData:t});return await this._updateDotLottieInstanceState(),n}async stateMachineStart(){if(!this._created)return!1;let t=await this._sendMessage("stateMachineStart",{instanceId:this._id});return t&&(this._setupStateMachineListeners(),await this._updateDotLottieInstanceState()),t}async stateMachineStop(){return this._created?(this._cleanupStateMachineListeners(),this._sendMessage("stateMachineStop",{instanceId:this._id})):!1}async stateMachineSetNumericInput(t,n){return this._created?this._sendMessage("stateMachineSetNumericInput",{instanceId:this._id,name:t,value:n}):!1}async stateMachineSetBooleanInput(t,n){return this._created?this._sendMessage("stateMachineSetBooleanInput",{instanceId:this._id,name:t,value:n}):!1}async stateMachineSetConfig(t){this._created&&this._sendMessage("stateMachineSetConfig",{instanceId:this._id,config:t})}async stateMachineSetStringInput(t,n){return this._created?this._sendMessage("stateMachineSetStringInput",{instanceId:this._id,name:t,value:n}):!1}async stateMachineGetNumericInput(t){if(this._created)return this._sendMessage("stateMachineGetNumericInput",{instanceId:this._id,name:t})}async stateMachineGetBooleanInput(t){if(this._created)return this._sendMessage("stateMachineGetBooleanInput",{instanceId:this._id,name:t})}async stateMachineGetStringInput(t){if(this._created)return this._sendMessage("stateMachineGetStringInput",{instanceId:this._id,name:t})}async stateMachineFireEvent(t){this._created&&this._sendMessage("stateMachineFireEvent",{instanceId:this._id,name:t})}async stateMachineGetStatus(){return this._created?this._sendMessage("stateMachineGetStatus",{instanceId:this._id}):""}async stateMachineGetCurrentState(){return this._created?this._sendMessage("stateMachineGetCurrentState",{instanceId:this._id}):""}async stateMachineGetActiveId(){return this._created?this._sendMessage("stateMachineGetActiveId",{instanceId:this._id}):""}async stateMachineOverrideState(t,n=!1){return this._created?this._sendMessage("stateMachineOverrideState",{instanceId:this._id,state:t,immediate:n}):!1}async stateMachineGet(t){return this._created?this._sendMessage("stateMachineGet",{instanceId:this._id,stateMachineId:t}):""}async stateMachineGetListeners(){return this._created?this._sendMessage("stateMachineGetListeners",{instanceId:this._id}):[]}async stateMachinePostClickEvent(t,n){if(this._created)return this._sendMessage("stateMachinePostClickEvent",{instanceId:this._id,x:t,y:n})}async stateMachinePostPointerUpEvent(t,n){if(this._created)return this._sendMessage("stateMachinePostPointerUpEvent",{instanceId:this._id,x:t,y:n})}async stateMachinePostPointerDownEvent(t,n){if(this._created)return this._sendMessage("stateMachinePostPointerDownEvent",{instanceId:this._id,x:t,y:n})}async stateMachinePostPointerMoveEvent(t,n){if(this._created)return this._sendMessage("stateMachinePostPointerMoveEvent",{instanceId:this._id,x:t,y:n})}async stateMachinePostPointerEnterEvent(t,n){if(this._created)return this._sendMessage("stateMachinePostPointerEnterEvent",{instanceId:this._id,x:t,y:n})}async stateMachinePostPointerExitEvent(t,n){if(this._created)return this._sendMessage("stateMachinePostPointerExitEvent",{instanceId:this._id,x:t,y:n})}_onClick(t){let n=x(t);n&&this._sendMessage("stateMachinePostClickEvent",{instanceId:this._id,x:n.x,y:n.y})}_onPointerUp(t){let n=x(t);n&&this._sendMessage("stateMachinePostPointerUpEvent",{instanceId:this._id,x:n.x,y:n.y})}_onPointerDown(t){let n=x(t);n&&this._sendMessage("stateMachinePostPointerDownEvent",{instanceId:this._id,x:n.x,y:n.y})}_onPointerMove(t){let n=x(t);n&&this._sendMessage("stateMachinePostPointerMoveEvent",{instanceId:this._id,x:n.x,y:n.y})}_onPointerEnter(t){let n=x(t);n&&this._sendMessage("stateMachinePostPointerEnterEvent",{instanceId:this._id,x:n.x,y:n.y})}_onPointerLeave(t){let n=x(t);n&&this._sendMessage("stateMachinePostPointerExitEvent",{instanceId:this._id,x:n.x,y:n.y})}async _setupStateMachineListeners(){if(E&&this._canvas instanceof HTMLCanvasElement&&this.isLoaded){let t=await this._sendMessage("stateMachineGetListeners",{instanceId:this._id});if(t.length===0)return;this._cleanupStateMachineListeners(),t.includes("Click")&&(this._boundOnClick=this._onClick.bind(this),this._canvas.addEventListener("click",this._boundOnClick)),t.includes("PointerUp")&&(this._boundOnPointerUp=this._onPointerUp.bind(this),this._canvas.addEventListener("pointerup",this._boundOnPointerUp)),t.includes("PointerDown")&&(this._boundOnPointerDown=this._onPointerDown.bind(this),this._canvas.addEventListener("pointerdown",this._boundOnPointerDown)),t.includes("PointerMove")&&(this._boundOnPointerMove=this._onPointerMove.bind(this),this._canvas.addEventListener("pointermove",this._boundOnPointerMove)),t.includes("PointerEnter")&&(this._boundOnPointerEnter=this._onPointerEnter.bind(this),this._canvas.addEventListener("pointerenter",this._boundOnPointerEnter)),t.includes("PointerExit")&&(this._boundOnPointerLeave=this._onPointerLeave.bind(this),this._canvas.addEventListener("pointerleave",this._boundOnPointerLeave))}}_cleanupStateMachineListeners(){E&&this._canvas instanceof HTMLCanvasElement&&(this._boundOnClick&&(this._canvas.removeEventListener("click",this._boundOnClick),this._boundOnClick=null),this._boundOnPointerUp&&(this._canvas.removeEventListener("pointerup",this._boundOnPointerUp),this._boundOnPointerUp=null),this._boundOnPointerDown&&(this._canvas.removeEventListener("pointerdown",this._boundOnPointerDown),this._boundOnPointerDown=null),this._boundOnPointerMove&&(this._canvas.removeEventListener("pointermove",this._boundOnPointerMove),this._boundOnPointerMove=null),this._boundOnPointerEnter&&(this._canvas.removeEventListener("pointerenter",this._boundOnPointerEnter),this._boundOnPointerEnter=null),this._boundOnPointerLeave&&(this._canvas.removeEventListener("pointerleave",this._boundOnPointerLeave),this._boundOnPointerLeave=null))}};p(f2,"_workerManager",new Z3),p(f2,"_wasmUrl","");var G1=({animationId:e,autoplay:t,backgroundColor:n,className:i,createDotLottie:a,data:o,dotLottieRefCallback:u,layout:l,loop:c,mode:f,playOnHover:d,renderConfig:T,segment:m,speed:y,src:S,style:b,themeData:L,themeId:v,useFrameInterpolation:A,workerId:_,...I})=>{let C=React.useRef(null),O=React.useRef(null),B=React.useRef(u),z={speed:y,mode:f,loop:c,useFrameInterpolation:A,segment:m,backgroundColor:n,autoplay:t,themeId:v,workerId:_,src:S,data:o,layout:l,renderConfig:T,animationId:e},q=React.useRef(z);B.current=u,q.current=z;let e1=React.useCallback(X=>{O.current=X,X?C.current=a({...q.current,canvas:X}):(C.current?.destroy(),C.current=null),B.current?.(C.current)},[]);return React.useEffect(()=>{let X=W=>{d&&(W.type==="mouseenter"&&C.current?.play(),W.type==="mouseleave"&&C.current?.pause())};return O.current?.addEventListener("mouseenter",X),O.current?.addEventListener("mouseleave",X),()=>{O.current?.removeEventListener("mouseenter",X),O.current?.removeEventListener("mouseleave",X)}},[d]),React.useEffect(()=>{C.current?.setSpeed(y??1)},[y]),React.useEffect(()=>{C.current?.setMode(f??"forward")},[f]),React.useEffect(()=>{C.current?.setLoop(c??!1)},[c]),React.useEffect(()=>{C.current?.setUseFrameInterpolation(A??!0)},[A]),React.useEffect(()=>{typeof m?.[0]=="number"&&typeof m[1]=="number"&&C.current?.setSegment(m[0],m[1])},[m]),React.useEffect(()=>{C.current?.setBackgroundColor(n??"")},[n]),React.useEffect(()=>{C.current?.setRenderConfig(T??{})},[JSON.stringify(T)]),React.useEffect(()=>{typeof o!="string"&&typeof o!="object"||C.current?.load({data:o,...q.current})},[o]),React.useEffect(()=>{typeof S=="string"&&C.current?.load({src:S,...q.current})},[S]),React.useEffect(()=>{C.current?.setMarker(I.marker??"")},[I.marker]),React.useEffect(()=>{C.current?.loadAnimation(e??"")},[e]),React.useEffect(()=>{typeof v=="string"&&C.current?.setTheme(v)},[v]),React.useEffect(()=>{C.current?.setThemeData(L??"")},[L]),React.useEffect(()=>{C.current?.setLayout(l??{})},[l?.fit,l?.align&&l.align[0],l?.align&&l.align[1]]),jsxRuntime.jsx("div",{className:i,...!i&&{style:{width:"100%",height:"100%",lineHeight:0,...b}},children:jsxRuntime.jsx("canvas",{ref:e1,style:{width:"100%",height:"100%"},...I})})},e0=e=>new H1(e),y0=e=>jsxRuntime.jsx(G1,{...e,createDotLottie:e0});function hasBlob(e){return!!e&&typeof e=="object"&&"blob"in e&&e.blob instanceof Blob}function RemoteLottieWithCache({src:e,autoplay:t=!0,loop:n=!0,className:i,style:a,placeholder:o,fallback:u,onLoaded:l,onError:c}){const[f,d]=React.useState({kind:"loading"});return React.useEffect(()=>{let T=null,m=!1;return d({kind:"loading"}),preloadLottie(e).then(async y=>{if(!m)if(y.kind==="zip"){const S=hasBlob(y)?y.blob:await(await fetch(y.blobUrl)).blob();T=URL.createObjectURL(S),d({kind:"lottieZip",blobUrl:T}),l?.(T)}else d({kind:"json",data:y.data}),l?.(y.data)}).catch(y=>!m&&(d({kind:"error",err:y}),c?.(y))),()=>{m=!0,T&&URL.revokeObjectURL(T)}},[e]),f.kind==="loading"?jsxRuntime.jsx("div",{className:"flex items-center justify-center rounded-xl border border-dashed p-6 text-sm opacity-70 "+(i??""),style:{minHeight:96,...a},children:o??"Loading animation…"}):f.kind==="error"?jsxRuntime.jsx("div",{className:"flex items-center justify-center rounded-xl border p-6 text-sm text-red-600 "+(i??""),style:{minHeight:96,...a},children:u??"Failed to load animation"}):f.kind==="json"?jsxRuntime.jsx(Lottie,{animationData:f.data,loop:n,autoplay:t,className:i,style:a,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}}):jsxRuntime.jsx(y0,{src:f.blobUrl,loop:n,autoplay:t,className:i,style:a})}async function detectGridFromImage(e,t={}){const{minPeriod:n=8,maxPeriod:i=Math.floor(Math.min(e.width,e.height)/2),gutterSearchRadius:a=3,debug:o=!1}=t;if(e.width<n*2||e.height<n*2)return o&&console.warn("detectGrid: image too small"),null;const u=document.createElement("canvas");u.width=e.naturalWidth,u.height=e.naturalHeight;const l=u.getContext("2d");if(!l)return null;l.drawImage(e,0,0);const{data:c}=l.getImageData(0,0,u.width,u.height),f=u.width,d=u.height,T=new Uint8ClampedArray(f*d);for(let e1=0;e1<d;e1++){let X=e1*f;for(let W=0;W<f;W++){const Z=(X+W)*4;T[X+W]=.299*c[Z]+.587*c[Z+1]+.114*c[Z+2]|0}}const m=new Float32Array(f),y=new Float32Array(d);for(let e1=1;e1<f-1;e1++){let X=0;for(let W=0;W<d;W++){const Z=W*f+e1,J=T[Z+1]-T[Z-1];X+=Math.abs(J)}m[e1]=X}for(let e1=1;e1<d-1;e1++){let X=0;for(let W=0;W<f;W++){const Z=e1*f+W,J=T[Z+f]-T[Z-f];X+=Math.abs(J)}y[e1]=X}const S=dominantPeriod(m,n,Math.min(i,f/2)),b=dominantPeriod(y,n,Math.min(i,d/2));if(!S||!b)return o&&console.warn("detectGrid: could not find periods"),null;const L=Math.max(1,Math.round(f/S)),v=Math.max(1,Math.round(d/b)),A=estimateGutter(m,S,L,a),_=estimateGutter(y,b,v,a),I=Math.max(1,S-A),C=Math.max(1,b-_);if(I*L>f+2||C*v>d+2)return o&&console.warn("detectGrid: sanity check failed"),null;const O=percentile(m,60),B=percentile(y,60),z=Math.max(0,firstIndexAbove(m,O)),q=Math.max(0,firstIndexAbove(y,B));return o&&console.log({periodX:S,periodY:b,columns:L,rows:v,gutterX:A,gutterY:_,frameWidth:I,frameHeight:C,originX:z,originY:q}),{columns:L,rows:v,frameWidth:I,frameHeight:C,gutterX:A,gutterY:_,originX:z,originY:q}}function dominantPeriod(e,t,n){const i=avg(e);let a=0;for(let y=0;y<e.length;y++){const S=e[y]-i;a+=S*S}if(a===0)return null;const o=new Float32Array(n+1);let u=0,l=-1/0;for(let y=t;y<=n;y++){let S=0;for(let L=0;L+y<e.length;L++)S+=(e[L]-i)*(e[L+y]-i);const b=S/a;o[y]=b,b>l&&(l=b,u=y)}if(u<=t||u>=n)return u||null;const c=o[u-1],f=o[u],d=o[u+1],T=c-2*f+d,m=T===0?0:.5*(c-d)/T;return u+m}function estimateGutter(e,t,n,i){const a=[];for(let l=1;l<n;l++){const c=l*t;let f=1/0,d=c;for(let T=-i;T<=i;T++){const m=c+T;if(m<=0||m>=e.length)continue;const y=e[m];y<f&&(f=y,d=m)}a.push(d)}if(a.length<1)return 0;let o=[];for(const l of a){const c=e[l]*1.5+percentile(e,10)*.5;let f=l,d=l;for(;f>1&&e[f-1]<=c;)f--;for(;d<e.length-2&&e[d+1]<=c;)d++;o.push(Math.max(0,d-f+1))}const u=Math.round(avg(o));return Math.max(0,Math.min(u,Math.floor(t/4)))}function avg(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function percentile(e,t){const n=Array.from(e);n.sort((a,o)=>a-o);const i=Math.max(0,Math.min(n.length-1,Math.floor(t/100*n.length)));return n[i]}function firstIndexAbove(e,t){for(let n=0;n<e.length;n++)if(e[n]>t)return n;return 0}function isTileEmpty(e,t,n,i,a){const{data:o}=e.getImageData(t,n,i,a);let u=0;for(let l=3;l<o.length;l+=4)u+=o[l];return u/(255*(o.length/4))<.03}const RemoteSpritesheetWithCache=React.forwardRef(function e({src:t,frameWidth:n,frameHeight:i,columns:a,rows:o,gutterX:u=0,gutterY:l=0,frameCount:c,atlasFrames:f,fps:d=12,autoplay:T=!0,loop:m=!0,startFrame:y=0,direction:S="forward",scale:b=1,backgroundColor:L,className:v,style:A,pauseWhenHidden:_=!1,onLoad:I,onEnd:C,onFrame:O},B){const z=React.useRef(null),q=React.useRef(null),[e1,X]=React.useState(null),[W,Z]=React.useState(null),[J,K]=React.useState(null),[k,V]=React.useState(!1),[R,w]=React.useState(!!T),[D,G]=React.useState(y),Q=React.useRef(1),[F,r1]=React.useState(null),o1=Math.max(1,Math.floor(typeof window<"u"&&window.devicePixelRatio||1));React.useEffect(()=>{let _1=!1;return V(!1),preloadSpritesheet(t).then(({imgEl:D1,bitmap:T1})=>{_1||(X(D1),Z(T1),K({w:D1.naturalWidth,h:D1.naturalHeight}),V(!0),I?.())}).catch(()=>{}),()=>{_1=!0}},[t,I]),React.useEffect(()=>{let _1=!1;return(async()=>{if(!e1)return;if(f&&f.length){r1(null);return}if(!(!n||!i||!a||!o)){r1(null);return}const T1=await detectGridFromImage(e1,{debug:!0});_1||(T1?r1({frameWidth:T1.frameWidth,frameHeight:T1.frameHeight,columns:T1.columns,rows:T1.rows,gutterX:T1.gutterX,gutterY:T1.gutterY}):(r1(null),console.warn("RemoteSpritesheet: auto-detect failed; please provide grid props.")))})(),()=>{_1=!0}},[e1,f,n,i,a,o]);const i1=F?.frameWidth??n,p1=F?.frameHeight??i,m1=F?.columns??a,v1=F?.rows??o,g1=F?.gutterX??u,A1=F?.gutterY??l,s1=React.useMemo(()=>{if(f&&f.length>0)return{cols:0,rows:0};if(!J||!i1||!p1)return{cols:0,rows:0};const _1=m1??Math.floor((J.w+g1)/(i1+g1)),D1=v1??Math.floor((J.h+A1)/(p1+A1));return{cols:Math.max(0,_1),rows:Math.max(0,D1)}},[f,J,i1,p1,m1,v1,g1,A1]),E1=React.useMemo(()=>{if(f?.length)return f;if(!i1||!p1)return[];const{cols:_1,rows:D1}=s1;if(!_1||!D1)return[];const T1=Math.min(c??_1*D1,_1*D1),d1=[];for(let R1=0;R1<T1;R1++){const C1=R1%_1,N1=Math.floor(R1/_1),k1=F?.originX??0,z1=F?.originY??0,n1=k1+C1*(i1+g1),u1=z1+N1*(p1+A1);d1.push({x:n1,y:u1,w:i1,h:p1})}if(e1&&d1.length){const R1=document.createElement("canvas");R1.width=e1.naturalWidth,R1.height=e1.naturalHeight;const C1=R1.getContext("2d");if(C1){C1.drawImage(e1,0,0);let N1=d1.length;for(;N1>0&&isTileEmpty(C1,d1[N1-1].x,d1[N1-1].y,d1[N1-1].w,d1[N1-1].h);)N1--;return d1.slice(0,N1)}}return d1},[f,s1,c,i1,p1,g1,A1,e1,F?.originX,F?.originY]),f1=()=>{const _1=z.current;if(!_1||E1.length===0)return;const D1=E1[Math.max(0,Math.min(D,E1.length-1))],T1=Math.max(1,Math.round(D1.w*b)),d1=Math.max(1,Math.round(D1.h*b));_1.style.width=T1+"px",_1.style.height=d1+"px",_1.width=T1*o1,_1.height=d1*o1};React.useEffect(()=>{f1()},[k,b,E1.length,o1,D]);const P1=_1=>{const D1=W??e1??null,T1=z.current;if(!T1||!D1||E1.length===0)return;const d1=T1.getContext("2d");if(!d1)return;d1.save(),d1.setTransform(1,0,0,1,0,0),d1.clearRect(0,0,T1.width,T1.height),L&&(d1.fillStyle=L,d1.fillRect(0,0,T1.width,T1.height));const R1=E1[_1];d1.scale(o1,o1),d1.drawImage(D1,R1.x,R1.y,R1.w,R1.h,0,0,Math.round(R1.w*b),Math.round(R1.h*b)),d1.restore()};return React.useEffect(()=>{if(!k||E1.length===0)return;let _1=performance.now();const D1=1e3/Math.max(1,Math.min(120,d)),T1=d1=>{if(q.current=requestAnimationFrame(T1),!R){P1(D);return}const R1=d1-_1;if(R1<D1){P1(D);return}_1=d1-R1%D1,G(C1=>{const N1=E1.length-1;let k1=C1;return S==="forward"?k1=C1+1:S==="backward"?k1=C1-1:((C1>=N1&&Q.current===1||C1<=0&&Q.current===-1)&&(Q.current*=-1),k1=C1+Q.current),(k1>N1||k1<0)&&(m?k1=S==="backward"?N1:0:(k1=Math.max(0,Math.min(k1,N1)),w(!1),C?.())),k1})};return q.current=requestAnimationFrame(T1),()=>{q.current&&cancelAnimationFrame(q.current)}},[k,d,R,m,S,E1.length,D]),React.useEffect(()=>{P1(D),O?.(D)},[D,k,b,o1]),React.useEffect(()=>{if(!_)return;const _1=()=>{document.hidden&&w(!1)};return document.addEventListener("visibilitychange",_1),()=>document.removeEventListener("visibilitychange",_1)},[_]),React.useImperativeHandle(B,()=>({play:()=>w(!0),pause:()=>w(!1),toggle:()=>w(_1=>!_1),gotoFrame:_1=>G(()=>Math.max(0,Math.min(_1,Math.max(0,E1.length-1)))),isPlaying:()=>R,currentFrame:()=>D}),[R,D,E1.length]),jsxRuntime.jsx("div",{className:v,style:A,children:jsxRuntime.jsx("canvas",{ref:z,"aria-label":"spritesheet animation"})})});function RemoteSvgWithCache({url:e,className:t}){const[n,i]=React.useState(""),[a,o]=React.useState(null);return React.useEffect(()=>{let u=!1;return preloadSvg(e).then(({sanitized:l})=>{u||(i(l),o(null))}).catch(l=>!u&&o(l.message??"Failed to load")),()=>{u=!0}},[e]),a?jsxRuntime.jsxs("div",{className:t,role:"alert",children:["Couldn’t load SVG: ",a]}):n?jsxRuntime.jsx("div",{className:t,dangerouslySetInnerHTML:{__html:n}}):jsxRuntime.jsx("div",{className:t})}const FacetAssetDisplayer=({facet:e})=>{const{mode:t,assetUrl:n}=e;return jsxRuntime.jsxs("div",{className:"assetContainer",children:[t===srcExports.AgentDisplayFacetModeType.LOTTIE&&jsxRuntime.jsx(RemoteLottieWithCache,{src:n,autoplay:!0,onError:i=>console.error(i)}),t===srcExports.AgentDisplayFacetModeType.SVG&&jsxRuntime.jsx("div",{children:jsxRuntime.jsx(RemoteSvgWithCache,{url:n})}),t===srcExports.AgentDisplayFacetModeType.IMAGE&&jsxRuntime.jsx(Image$1,{src:n}),t===srcExports.AgentDisplayFacetModeType.SPRITESHEET&&jsxRuntime.jsx(RemoteSpritesheetWithCache,{src:n})]})},Launcher=({isWidgetOpen:e,setIsWidgetOpen:t})=>{const{companySettings:n}=React.useContext(CompanySettingsContext);return jsxRuntime.jsxs("div",{className:`launcher
36
+ For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function Gc(e,t){var n=Sc(t),r=V(V({},gs),e),a=r.locale,i=r.defaultLocale,u=r.onError;return a?!Intl.NumberFormat.supportedLocalesOf(a).length&&u?u(new xi('Missing locale data for locale: "'.concat(a,'" in Intl.NumberFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(a).length&&u&&u(new xi('Missing locale data for locale: "'.concat(a,'" in Intl.DateTimeFormat. Using default locale: "').concat(i,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(u&&u(new gc('"locale" was not configured, using "'.concat(i,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),Yc(r),V(V({},r),{formatters:n,formatNumber:Uc.bind(null,r,n.getNumberFormat),formatNumberToParts:jc.bind(null,r,n.getNumberFormat),formatRelativeTime:Fc.bind(null,r,n.getRelativeTimeFormat),formatDate:xc.bind(null,r,n.getDateTimeFormat),formatDateToParts:Nc.bind(null,r,n.getDateTimeFormat),formatTime:Cc.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:Ic.bind(null,r,n.getDateTimeFormat),formatTimeToParts:Oc.bind(null,r,n.getDateTimeFormat),formatPlural:wc.bind(null,r,n.getPluralRules),formatMessage:ma.bind(null,r,n),$t:ma.bind(null,r,n),formatList:Dc.bind(null,r,n.getListFormat),formatListToParts:ys.bind(null,r,n.getListFormat),formatDisplayName:Rc.bind(null,r,n.getDisplayNames)})}function xs(e){es(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var Cs=V(V({},gs),{textComponent:Ve.Fragment});function zc(e){return function(t){return e(Ve.Children.toArray(t))}}function Vc(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var i=0;i<a;i++){var u=n[i];if(e[u]!==t[u]||!Object.prototype.hasOwnProperty.call(t,u))return!1}return!0}var ja=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=Ve.createContext(null)):Ve.createContext(null);ja.Consumer;var qc=ja.Provider,Wc=qc,Xc=ja;function hr(){var e=Ve.useContext(Xc);return xs(e),e}var pa;(function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList",e.formatDisplayName="FormattedDisplayName"})(pa||(pa={}));var Ea;(function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"})(Ea||(Ea={}));function Is(e){var t=function(n){var r=hr(),a=n.value,i=n.children,u=fr(n,["value","children"]),o=typeof a=="string"?new Date(a||0):a,l=e==="formatDate"?r.formatDateToParts(o,u):r.formatTimeToParts(o,u);return i(l)};return t.displayName=Ea[e],t}function Rn(e){var t=function(n){var r=hr(),a=n.value,i=n.children,u=fr(n,["value","children"]),o=r[e](a,u);if(typeof i=="function")return i(o);var l=r.textComponent||Ve.Fragment;return Ve.createElement(l,null,o)};return t.displayName=pa[e],t}function Ns(e){return e&&Object.keys(e).reduce(function(t,n){var r=e[n];return t[n]=bs(r)?zc(r):r,t},{})}var Oi=function(e,t,n,r){for(var a=[],i=4;i<arguments.length;i++)a[i-4]=arguments[i];var u=Ns(r),o=ma.apply(void 0,lt([e,t,n,u],a,!1));return Array.isArray(o)?Ve.Children.toArray(o):o},Li=function(e,t){var n=e.defaultRichTextElements,r=fr(e,["defaultRichTextElements"]),a=Ns(n),i=Gc(V(V(V({},Cs),r),{defaultRichTextElements:a}),t),u={locale:i.locale,timeZone:i.timeZone,fallbackOnEmptyString:i.fallbackOnEmptyString,formats:i.formats,defaultLocale:i.defaultLocale,defaultFormats:i.defaultFormats,messages:i.messages,onError:i.onError,defaultRichTextElements:a};return V(V({},i),{formatMessage:Oi.bind(null,u,i.formatters),$t:Oi.bind(null,u,i.formatters)})};function Pr(e){return{locale:e.locale,timeZone:e.timeZone,fallbackOnEmptyString:e.fallbackOnEmptyString,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError,onWarn:e.onWarn,wrapRichTextChunksInFragment:e.wrapRichTextChunksInFragment,defaultRichTextElements:e.defaultRichTextElements}}var Qc=(function(e){tt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.cache=As(),n.state={cache:n.cache,intl:Li(Pr(n.props),n.cache),prevConfig:Pr(n.props)},n}return t.getDerivedStateFromProps=function(n,r){var a=r.prevConfig,i=r.cache,u=Pr(n);return Vc(a,u)?null:{intl:Li(u,i),prevConfig:u}},t.prototype.render=function(){return xs(this.state.intl),Ve.createElement(Wc,{value:this.state.intl},this.props.children)},t.displayName="IntlProvider",t.defaultProps=Cs,t})(Ve.PureComponent);Rn("formatDate");Rn("formatTime");Rn("formatNumber");Rn("formatList");Rn("formatDisplayName");Is("formatDate");Is("formatTime");const Kc={"generic.language.english":"English","generic.language.french":"French","generic.connect.google":"Connect with Google","generic.button.title.save":"Save","page.login.button.login":"Login / Register","page.login.google.login":"Continue with Google","navbar.button.home":"Home","navbar.button.pricing":"Pricing","navbar.button.login":"Login","navbar.button.demo":"Demo","navbar.userMenu.logout":"Log out","navbar.userMenu.profile":"Profile","navbar.userMenu.backOffice":"Back-office","home.header.catchphase":"The catchphrase you wanted","home.header.subcatchphase":"Discover the new software that will change it all","home.header.CTA":"See more","home.section.bulletsPointParagraphe1.title":"Management","home.section.bulletsPointParagraphe1.text":"Take advantage of a complete solution to have a direct point of view on all of your units.","home.section.bulletsPointParagraphe2.title":"Automation","home.section.bulletsPointParagraphe2.text":"In just a few clicks, manage your entire fleet. Implement macros and synergies on your systems.","home.section.bulletsPointParagraphe3.title":"Reporting","home.section.bulletsPointParagraphe3.text":"With its BI module, our software allows you to monitor performance and optimize your costs.","home.realm.title":"See the root of your business in a few clicks","home.realm.text":"The security of your data is at the heart of our concerns. Our software was created in France, we are ISO 27001 certified and all our servers are located in Europe.","home.realm.cta":"Discover our solution","home.testimonials.title":"What our customers say","home.testimonials.1.text":"Since using the software, we have better control of the flow of goods and relevant performance monitoring.","home.testimonials.1.job":"Developer @Wordpress","home.testimonials.1.name":"Loic Martins","home.testimonials.2.text":"Putting the software solution into production allowed us to completely reorganize the teams.","home.testimonials.2.job":"Community Manager @Comet","home.testimonials.2.name":"Anna Wang","home.testimonials.3.text":"Mastery of the logistics subject is obvious with the software solution.","home.testimonials.3.job":"Product Owner @April","home.testimonials.3.name":"Louis Bachant","home.test.section.title":"Try it out now","home.test.section.CTA":"See our solution","pricing.CTA.pleaseLogin":"Login to buy","pricing.page.title":"Choose your plan","pricing.page.subtitle":"No obligation: cancel at any time with one click.","subscribe.paymentRecap.title":"Payment Summary","subscribe.paymentRecap.customerName":"Name","subscribe.paymentRecap.customerMail":"Email","subscribe.paymentRecap.additionnalMention":"Mention to add","subscribe.paymentRecap.totalAmount":"Total Amount","subscribe.paymentForm.title":"Bank card","subscribe.paymentForm.cardNumber":"Card number","subscribe.paymentForm.expiresAt":"Expires at","subscribe.paymentForm.CVCNumber":"CVC number","subscribe.paymentForm.CTA.loading":"Loading ...","subscribe.paymentForm.CTA.pay":"Pay now","subscribe.success.title":"Payment successful","subscribe.success.paragraph1":"Your payment has been processed successfully. You are now suscribed !","subscribe.success.paragraph2":"Your new options are now available.","myAccount.page.leftMenu.general":"General","myAccount.page.leftMenu.profile":"Profile","chatbot.placeholder.content":"Message the assistant...","chatbot.chatline.label.user":"You","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.genericSearchMessage":"I'm looking for products","chatbot.chatline.loading.function.search":"Search","chatbot.chatline.loading.function.extractProductName":"Looking into the cavern","chatbot.chatline.loading.function.suggestProductName":"Consulting the shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Looking for ziboublis","chatbot.chatline.loading.function.searchStock":"Searching Stock","chatbot.chatline.loading.function.step":"Step","chatbot.chatline.loading.cancel":"Cancel","footer.tab.title.general":"General","footer.tab.title.about":"About","footer.tab.title.resources":"Resources","footer.tab.title.legal":"Legal","footer.tab.title.social":"Social","footer.tab.search":"Search","footer.tab.pricing":"Pricing","footer.tab.termsAndConditions":"Terms and conditions","footer.tab.finalCopyright":"Copyright © 2023 Logiciel, Inc. All rights reserved."},Zc={"generic.language.english":"Anglais","generic.language.french":"Français","generic.connect.google":"Se connecter avec Google","generic.button.title.save":"Sauvegarder","page.login.button.login":"Se connecter / S'inscrire","page.login.google.login":"Continuer avec Google","navbar.button.home":"Accueil","navbar.button.pricing":"Tarifs","navbar.button.login":"Se Connecter","navbar.button.demo":"Demo","navbar.userMenu.logout":"Déconnection","navbar.userMenu.profile":"Profil","navbar.userMenu.backOffice":"Back-office","home.header.catchphase":"Catchphrase de l'espace","home.header.subcatchphase":"Découvrez le logiciel qui met fin à vos problèmes","home.header.CTA":"Voir notre solution","home.section.bulletsPointParagraphe1.title":"Management","home.section.bulletsPointParagraphe1.text":"Profitez d'une solution complète pour avoir un point de vue direct sur l'ensemble de vos unités.","home.section.bulletsPointParagraphe2.title":"Automatisation","home.section.bulletsPointParagraphe2.text":"En quelques clicks, gérez l'ensemble de votre flotte. Mettez en place des macros et des synergies sur vos systèmes.","home.section.bulletsPointParagraphe3.title":"Reporting","home.section.bulletsPointParagraphe3.text":"Avec son module BI, notre logiciel vous permet de monitorer la performance et d'optimiser vos coûts. A l'euro prêt","home.realm.title":"Le coeur du métier en quelques clics","home.realm.text":"La sécurité de vos données est au cœur de nos préoccupations. Notre logiciel a été créé en France, nous sommes certifiés ISO 27001 et tous nos serveurs sont situés en Europe.","home.realm.cta":"Voir notre solution","home.testimonials.title":"Nos clients parlent de nous","home.testimonials.1.text":"Depuis notre utilisation du logiciel, nous avons un meilleur contrôle du flux de marchandises et un suivi de performance pertinent.","home.testimonials.1.job":"Developpeur @Wordpress","home.testimonials.1.name":"Loic Martins","home.testimonials.2.text":"La mise en production de la solution logicielle nous a permis de réorganiser complètement les équipes.","home.testimonials.2.job":"Community Manager @Comet","home.testimonials.2.name":"Anna Wang","home.testimonials.3.text":"La maitrise du sujet logistique est une évidence avec la solution logicielle.","home.testimonials.3.job":"Product Owner @April","home.testimonials.3.name":"Louis Bachant","home.test.section.title":"Testez dès maintenant","home.test.section.CTA":"Voir notre solution","pricing.CTA.pleaseLogin":"Connectez-vous","pricing.page.title":"Choisissez votre plan","pricing.page.subtitle":"Sans engagement : annulez à tout moment en un clic.","subscribe.paymentRecap.title":"Récapitulatif de paiement","subscribe.paymentRecap.customerName":"Nom","subscribe.paymentRecap.customerMail":"Email","subscribe.paymentRecap.additionnalMention":"Mention à ajouter","subscribe.paymentRecap.totalAmount":"Total","subscribe.paymentForm.title":"Carte bancaire","subscribe.paymentForm.cardNumber":"Numéro de carte","subscribe.paymentForm.expiresAt":"Expire le","subscribe.paymentForm.CVCNumber":"Numéro CVV","subscribe.paymentForm.CTA.loading":"Chargement ...","subscribe.paymentForm.CTA.pay":"S'abonner","subscribe.success.title":"Paiement effectué avec succès","subscribe.success.paragraph1":"Votre paiement a bien été accepté. Vous êtes désormais abonné !","subscribe.success.paragraph2":"Toutes vos options sont maintenant disponibles.","myAccount.page.leftMenu.general":"Général","myAccount.page.leftMenu.profile":"Profil","chatbot.placeholder.content":"Envoyez un message à l'assistant ...","chatbot.chatline.label.user":"Vous","chatbot.chatline.label.assistant":"Assistant","chatbot.chatline.loading.function.search":"Recherche","chatbot.chatline.loading.function.genericSearchMessage":"Je cherche des produits","chatbot.chatline.loading.function.extractProductName":"Recherche dans la caverne","chatbot.chatline.loading.function.suggestProductName":"Consultation des shadocks","chatbot.chatline.loading.function.criteriaDefinition":"Recherche des ziboublis","chatbot.chatline.loading.function.searchStock":"Recherche en stock","chatbot.chatline.loading.function.step":"Etape","chatbot.chatline.loading.cancel":"Annuler","footer.tab.title.general":"Général","footer.tab.title.about":"A propos","footer.tab.title.resources":"Ressources","footer.tab.title.legal":"Mentions Légales","footer.tab.title.social":"Social","footer.tab.search":"Rechercher","footer.tab.pricing":"Tarifs","footer.tab.termsAndConditions":"Termes et conditions","footer.tab.finalCopyright":"Copyright © 2023 Logiciel, Inc. Tous droits réservés."};var Ke=(e=>(e.FRENCH="fr-FR",e.ENGLISH="en-US",e))(Ke||{});const mr={[Ke.ENGLISH]:{translatedText:Kc,pictureName:Ke.ENGLISH,langID:0,locale:Ke.ENGLISH},[Ke.FRENCH]:{translatedText:Zc,pictureName:Ke.FRENCH,langID:1,locale:Ke.FRENCH}},Jc=Object.keys(mr);Jc.reduce((e,t)=>{const n=mr[t];return[...e,n]},[]);const ef="languageSettings",tf=(e,t)=>{let n,r;return typeof window<"u"&&(r=window.localStorage.getItem(ef)),r&&e?.[r]!==void 0?n=e[r]:(n=e[t],n.isDefault=!0),n},nf=(e,t)=>{const[n,r]=N.useState(e[t]),a=i=>{Object.keys(e).includes(i?.locale)?r(i):r(e[Ke.ENGLISH])};return N.useEffect(()=>{let i=tf(e,t);i.locale!==t&&r(e[i.locale])},[]),{appCurrentLang:n,handleSetContextCurrentLang:a}},Os=N.createContext({appCurrentLang:mr[Ke.ENGLISH],setAppCurrentLang:()=>{}}),Ls=N.createContext({conversation:[],setConversation:()=>{}});var Lt={},Ri;function rf(){if(Ri)return Lt;Ri=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.AgentDisplayFacetRoleType=Lt.AgentDisplayFacetModeType=void 0;var e;(function(n){n.SPRITESHEET="spritesheet",n.LOTTIE="lottie",n.IMAGE="image",n.SVG="svg",n.VIDEO="video"})(e||(Lt.AgentDisplayFacetModeType=e={}));var t;return(function(n){n.LAUNCHER="launcher",n.ASSISTANT="assistant",n.SEARCH="search"})(t||(Lt.AgentDisplayFacetRoleType=t={})),Lt}var Ge=rf();const Dr=e=>({mode:Ge.AgentDisplayFacetModeType.SVG,role:e}),af=()=>({agent:{display:{name:"",CSSRules:"",[Ge.AgentDisplayFacetRoleType.LAUNCHER]:Dr(Ge.AgentDisplayFacetRoleType.LAUNCHER),[Ge.AgentDisplayFacetRoleType.ASSISTANT]:Dr(Ge.AgentDisplayFacetRoleType.ASSISTANT),[Ge.AgentDisplayFacetRoleType.SEARCH]:Dr(Ge.AgentDisplayFacetRoleType.SEARCH)},text:{initialText:""}}}),pr=N.createContext({companySettings:af(),setCompanySettings:()=>{}}),Rs=()=>({hasFetchedSettings:!1,hasDisplayedCSS:!1}),uf=()=>{const[e,t]=N.useState(Rs());return{appInternalContext:e,setAppInternalContext:t,setHasFetchedSettings:()=>{t(a=>({...a,hasFetchedSettings:!0}))},setHasDisplayedCss:()=>{t(a=>({...a,hasDisplayedCSS:!0}))}}},vs=N.createContext({appInternalContext:Rs(),setAppInternalContext:()=>{},setHasFetchedSettings:()=>{}}),sf=e=>Object.values(Ke).includes(e),of=e=>sf(e)?e:(console.log(`Language ${e} not handled for now. Using ${Ke.ENGLISH}.`),Ke.ENGLISH);class Zn{constructor(){}static getApiUrl=()=>process.env.NODE_ENV==="development"?"http://localhost:3001":"https://www.api.chatsystem.ai";static getHeaders=({contentType:t="text/plain"})=>({"Content-Type":t});static getFetchConfig=({contentType:t="text/plain",httpVerb:n="GET",body:r,options:a={}})=>{const i={method:n,headers:this.getHeaders({contentType:t}),...a};return r&&(i.body=JSON.stringify(r)),i}}const lf=({agentId:e,appToken:t,onFetched:n})=>{const[r,a]=N.useState({}),i={companySettings:r,setCompanySettings:a},[u,o]=N.useState([]),l={conversation:u,setConversation:o};return N.useEffect(()=>{const c=Zn.getApiUrl(),f=Zn.getFetchConfig({httpVerb:"GET",contentType:"application/json"});fetch(`${c}/company/settings/${t}/${e}`,f).then(async d=>{const m=await d.json();a(m),o([{userType:"assistant",content:m.agent.text.initialText}]),n?.()}).catch(d=>console.log("error in fetch",d))},[t,e]),{contextCompanySettings:i,contextInitialChatbotStartingText:l}};function cf(e,t={},n){const{id:r,nonce:a,target:i,disableConstructable:u}=t,o=i??document.head,l=N.useRef(null),c=N.useRef(null);N.useEffect(()=>{if(!e)return;if(!u&&"adoptedStyleSheets"in o&&typeof CSSStyleSheet<"u"&&"replaceSync"in CSSStyleSheet.prototype)return l.current||(l.current=new CSSStyleSheet,o.adoptedStyleSheets=[...o.adoptedStyleSheets,l.current]),l.current.replaceSync(e),n?.(),()=>{const d=o.adoptedStyleSheets||[],m=d.indexOf(l.current);if(m>=0){const h=d.slice();h.splice(m,1),o.adoptedStyleSheets=h}l.current=null};if(!c.current){const d=document.createElement("style");d.type="text/css",r&&(d.id=r),a&&(d.nonce=a),(o instanceof Document&&o.head||o).appendChild(d),c.current=d}return c.current.textContent=e,n?.(),()=>{c.current?.parentNode?.removeChild(c.current),c.current=null}},[e,r,a,i,u])}const Zt=globalThis;Zt.__WIDGET_ASSET_CACHE__||(Zt.__WIDGET_ASSET_CACHE__={svg:new Map,img:new Map,lot:new Map,spr:new Map});Zt.__WIDGET_PRELOAD_KEYS__||(Zt.__WIDGET_PRELOAD_KEYS__=new Set);const kr=Zt.__WIDGET_PRELOAD_KEYS__,St=Zt.__WIDGET_ASSET_CACHE__,ff="widget-assets-v1";async function Er(e,t){const n=await caches.open(ff),r=await n.match(e,{ignoreSearch:!1});if(r)return r.clone();const a=await fetch(e,{cache:"force-cache",mode:"cors",keepalive:!0,...t});if(!a.ok)throw new Error(`HTTP ${a.status} for ${e}`);return n.put(e,a.clone()),a}async function Ps(e){const t=St.svg.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await Er(e)).text();if(typeof globalThis.DOMPurify<"u"&&typeof globalThis.DOMPurify.sanitize=="function")try{const u=new DOMParser().parseFromString(a,"image/svg+xml"),o=new XMLSerializer().serializeToString(u.documentElement);return{sanitized:globalThis.DOMPurify.sanitize(o,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}catch{return{sanitized:globalThis.DOMPurify.sanitize(a,{USE_PROFILES:{svg:!0,svgFilters:!0}})}}else return{sanitized:a}})();return St.svg.set(e,{promise:n,ts:Date.now()}),n}function Ds(e){const t=St.img.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await Er(e)).blob();return{blobUrl:URL.createObjectURL(a)}})();return St.img.set(e,{promise:n,ts:Date.now()}),n}function ks(e){const t=St.lot.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await Er(e)).arrayBuffer(),i=new Uint8Array(a);if(i.length>=4&&i[0]===80&&i[1]===75&&i[2]===3&&i[3]===4||e.endsWith(".lottie"))return{kind:"zip",blobUrl:URL.createObjectURL(new Blob([a],{type:"application/zip"}))};const o=new TextDecoder().decode(i);return{kind:"json",data:JSON.parse(o)}})();return St.lot.set(e,{promise:n,ts:Date.now()}),n}function ws(e){const t=St.spr.get(e);if(t)return t.promise;const n=(async()=>{const a=await(await Er(e)).blob();let i=null;try{i=await createImageBitmap(a)}catch{i=null}const{imgEl:u,width:o,height:l}=await new Promise((c,f)=>{const d=URL.createObjectURL(a),m=new Image;m.crossOrigin="anonymous",m.onload=()=>{const h=m.naturalWidth,y=m.naturalHeight;c({imgEl:m,width:h,height:y})},m.onerror=()=>{URL.revokeObjectURL(d),f(new Error("Spritesheet image decode failed"))},m.src=d,m.decode?.().catch(()=>{})});return{imgEl:u,bitmap:i,width:o,height:l}})();return St.spr.set(e,{promise:n,ts:Date.now()}),n}function df(e){e.images?.forEach(t=>void Ds(t)),e.svgs?.forEach(t=>void Ps(t)),e.lotties?.forEach(t=>void ks(t)),e.sprites?.forEach(t=>void ws(t))}function hf(e){try{const t=document.createElement("link");t.rel="preconnect",t.href=e,t.crossOrigin="anonymous",document.head.appendChild(t);const n=document.createElement("link");n.rel="dns-prefetch",n.href=e,document.head.appendChild(n)}catch(t){console.log("error in injectPreconnect",t)}}function Ms(e){return new URL(e,document.baseURI).toString()}function mf(e,t){const n=document.head.querySelectorAll('link[rel="preload"]');for(const r of n)if((e?r.as===e||r.getAttribute("as")===e:!0)&&r.href===t)return!0;return!1}function jn(e,t,n,r){const a=Ms(n),i=`${e}|${t??""}|${a}`;if(kr.has(i))return;if(mf(t,a)){kr.add(i);return}const u=document.createElement("link");u.rel=e,t&&(u.as=t),u.href=a,u.crossOrigin="anonymous",r&&(u.type=r),u.setAttribute("data-chatsystem-preload","1"),document.head.appendChild(u),kr.add(i)}function pf(e){const t=u=>Array.from(new Set((u??[]).map(Ms))),n=t(e.images),r=t(e.svgs),a=t(e.lotties),i=t(e.sprites);n.forEach(u=>jn("preload","image",u)),r.forEach(u=>jn("preload","fetch",u,"image/svg+xml")),a.forEach(u=>jn("preload","fetch",u,"application/zip")),i.forEach(u=>jn("preload","fetch",u))}function Ef(e){const{manifest:t,origins:n}=bf(e);n.forEach(hf),pf(t),df(t)}function bf(e){const t=Tf(e),n=new Set,r=new Set,a=new Set,i=new Set;for(const{url:l,mode:c}of t)switch(gf(c,l)){case"svg":r.add(l);break;case"lottie":a.add(l);break;case"spritesheet":i.add(l);break;case"image":n.add(l);break}const u={images:Array.from(n),svgs:Array.from(r),lotties:Array.from(a),sprites:Array.from(i)},o=Af(u);return{manifest:u,origins:o}}function Tf(e){if(!e?.agent?.display)return[];const t=e.agent.display,n=[t.launcher,t.assistant,t.search].filter(Boolean),r=[];for(const a of n)a?.assetUrl&&r.push({url:a.assetUrl,mode:a.mode});return r}function gf(e,t){if(e)switch(e){case"svg":return"svg";case"lottie":return"lottie";case"spritesheet":return"spritesheet";case"image":return"image";case"video":return"video"}try{const r=new URL(t,document.baseURI).pathname.toLowerCase();if(r.endsWith(".svg"))return"svg";if(r.endsWith(".lottie")||r.endsWith(".zip")||r.endsWith(".json"))return r.endsWith(".json"),"lottie";if(/\.(png|webp|jpg|jpeg|gif|avi,ef)$/.test(r))return"image";if(/\.(mp4|webm|mov|m4v|ogg)$/.test(r))return"video"}catch(n){console.log("error in normalizeKind:",n)}return"unknown"}function Af(e){const t=new Set,n=r=>{if(r)try{const a=new URL(r,document.baseURI);t.add(`${a.protocol}//${a.host}`)}catch(a){console.log("error in uniqueOriginsFromManifest",a)}};return(e.images??[]).forEach(n),(e.svgs??[]).forEach(n),(e.lotties??[]).forEach(n),(e.sprites??[]).forEach(n),Array.from(t)}const _f=({children:e,appToken:t,agentId:n})=>{var r=navigator.language;console.log("App boot"),console.log("Brower language",r);const a=of(r),{appCurrentLang:i,handleSetContextCurrentLang:u}=nf(mr,a),o={appCurrentLang:i,setAppCurrentLang:u},l=uf(),{contextCompanySettings:c,contextInitialChatbotStartingText:f}=lf({agentId:n,appToken:t,onFetched:l.setHasFetchedSettings});return Ef(c.companySettings),cf(c.companySettings?.agent?.display?.CSSRules,{id:`${n}`},l.setHasDisplayedCss),P.jsx(P.Fragment,{children:P.jsx(Qc,{locale:i?.locale,messages:i?.translatedText,children:P.jsx(Os.Provider,{value:o,children:P.jsx(vs.Provider,{value:l,children:P.jsx(pr.Provider,{value:c,children:P.jsx(Ls.Provider,{value:f,children:l.appInternalContext.hasDisplayedCSS&&e})})})})})})},yf=e=>Object.values(tn).includes(e),Sf=e=>yf(e)?e:(console.warn(`Display mode not valid. Using ${tn.LAUNCHER} as default.`),tn.LAUNCHER),xf=e=>Ve.createElement("svg",{fill:"#000000",height:"800px",width:"800px",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 330 330",xmlSpace:"preserve",...e},Ve.createElement("path",{id:"XMLID_102_",d:"M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393 c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393 s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z"})),Cf=({src:e})=>{const[t,n]=N.useState(null);return N.useEffect(()=>{let r=!1;return Ds(e).then(({blobUrl:a})=>{n(a)}).catch(()=>n(null)),()=>{t&&!r&&(URL.revokeObjectURL(t),r=!0)}},[e]),P.jsx("img",{src:t??e,decoding:"async",loading:"eager"})};function If(e){return!!e&&typeof e=="object"&&"blob"in e&&e.blob instanceof Blob}function Nf({src:e,autoplay:t=!0,loop:n=!0,className:r,style:a,placeholder:i,fallback:u,onLoaded:o,onError:l}){const[c,f]=N.useState({kind:"loading"});return N.useEffect(()=>{let d=null,m=!1;return f({kind:"loading"}),ks(e).then(async h=>{if(!m)if(h.kind==="zip"){const y=If(h)?h.blob:await(await fetch(h.blobUrl)).blob();d=URL.createObjectURL(y),f({kind:"lottieZip",blobUrl:d}),o?.(d)}else f({kind:"json",data:h.data}),o?.(h.data)}).catch(h=>!m&&(f({kind:"error",err:h}),l?.(h))),()=>{m=!0,d&&URL.revokeObjectURL(d)}},[e]),c.kind==="loading"?P.jsx("div",{className:"flex items-center justify-center rounded-xl border border-dashed p-6 text-sm opacity-70 "+(r??""),style:{minHeight:96,...a},children:i??"Loading animation…"}):c.kind==="error"?P.jsx("div",{className:"flex items-center justify-center rounded-xl border p-6 text-sm text-red-600 "+(r??""),style:{minHeight:96,...a},children:u??"Failed to load animation"}):c.kind==="json"?P.jsx(xl,{animationData:c.data,loop:n,autoplay:t,className:r,style:a,rendererSettings:{preserveAspectRatio:"xMidYMid meet"}}):P.jsx(Cl.DotLottieReact,{src:c.blobUrl,loop:n,autoplay:t,className:r,style:a})}async function Of(e,t={}){const{minPeriod:n=8,maxPeriod:r=Math.floor(Math.min(e.width,e.height)/2),gutterSearchRadius:a=3,debug:i=!1}=t;if(e.width<n*2||e.height<n*2)return i&&console.warn("detectGrid: image too small"),null;const u=document.createElement("canvas");u.width=e.naturalWidth,u.height=e.naturalHeight;const o=u.getContext("2d");if(!o)return null;o.drawImage(e,0,0);const{data:l}=o.getImageData(0,0,u.width,u.height),c=u.width,f=u.height,d=new Uint8ClampedArray(c*f);for(let Y=0;Y<f;Y++){let F=Y*c;for(let B=0;B<c;B++){const G=(F+B)*4;d[F+B]=.299*l[G]+.587*l[G+1]+.114*l[G+2]|0}}const m=new Float32Array(c),h=new Float32Array(f);for(let Y=1;Y<c-1;Y++){let F=0;for(let B=0;B<f;B++){const G=B*c+Y,$=d[G+1]-d[G-1];F+=Math.abs($)}m[Y]=F}for(let Y=1;Y<f-1;Y++){let F=0;for(let B=0;B<c;B++){const G=Y*c+B,$=d[G+c]-d[G-c];F+=Math.abs($)}h[Y]=F}const y=vi(m,n,Math.min(r,c/2)),A=vi(h,n,Math.min(r,f/2));if(!y||!A)return i&&console.warn("detectGrid: could not find periods"),null;const R=Math.max(1,Math.round(c/y)),S=Math.max(1,Math.round(f/A)),v=Pi(m,y,R,a),O=Pi(h,A,S,a),w=Math.max(1,y-v),C=Math.max(1,A-O);if(w*R>c+2||C*S>f+2)return i&&console.warn("detectGrid: sanity check failed"),null;const I=ba(m,60),W=ba(h,60),se=Math.max(0,Di(m,I)),ne=Math.max(0,Di(h,W));return i&&console.log({periodX:y,periodY:A,columns:R,rows:S,gutterX:v,gutterY:O,frameWidth:w,frameHeight:C,originX:se,originY:ne}),{columns:R,rows:S,frameWidth:w,frameHeight:C,gutterX:v,gutterY:O,originX:se,originY:ne}}function vi(e,t,n){const r=Bs(e);let a=0;for(let h=0;h<e.length;h++){const y=e[h]-r;a+=y*y}if(a===0)return null;const i=new Float32Array(n+1);let u=0,o=-1/0;for(let h=t;h<=n;h++){let y=0;for(let R=0;R+h<e.length;R++)y+=(e[R]-r)*(e[R+h]-r);const A=y/a;i[h]=A,A>o&&(o=A,u=h)}if(u<=t||u>=n)return u||null;const l=i[u-1],c=i[u],f=i[u+1],d=l-2*c+f,m=d===0?0:.5*(l-f)/d;return u+m}function Pi(e,t,n,r){const a=[];for(let o=1;o<n;o++){const l=o*t;let c=1/0,f=l;for(let d=-r;d<=r;d++){const m=l+d;if(m<=0||m>=e.length)continue;const h=e[m];h<c&&(c=h,f=m)}a.push(f)}if(a.length<1)return 0;let i=[];for(const o of a){const l=e[o]*1.5+ba(e,10)*.5;let c=o,f=o;for(;c>1&&e[c-1]<=l;)c--;for(;f<e.length-2&&e[f+1]<=l;)f++;i.push(Math.max(0,f-c+1))}const u=Math.round(Bs(i));return Math.max(0,Math.min(u,Math.floor(t/4)))}function Bs(e){let t=0;for(let n=0;n<e.length;n++)t+=e[n];return t/e.length}function ba(e,t){const n=Array.from(e);n.sort((a,i)=>a-i);const r=Math.max(0,Math.min(n.length-1,Math.floor(t/100*n.length)));return n[r]}function Di(e,t){for(let n=0;n<e.length;n++)if(e[n]>t)return n;return 0}function Lf(e,t,n,r,a){const{data:i}=e.getImageData(t,n,r,a);let u=0;for(let o=3;o<i.length;o+=4)u+=i[o];return u/(255*(i.length/4))<.03}const Rf=N.forwardRef(function({src:t,frameWidth:n,frameHeight:r,columns:a,rows:i,gutterX:u=0,gutterY:o=0,frameCount:l,atlasFrames:c,fps:f=12,autoplay:d=!0,loop:m=!0,startFrame:h=0,direction:y="forward",scale:A=1,backgroundColor:R,className:S,style:v,pauseWhenHidden:O=!1,onLoad:w,onEnd:C,onFrame:I},W){const se=N.useRef(null),ne=N.useRef(null),[Y,F]=N.useState(null),[B,G]=N.useState(null),[$,X]=N.useState(null),[oe,pe]=N.useState(!1),[ve,Le]=N.useState(!!d),[p,H]=N.useState(h),Q=N.useRef(1),[T,q]=N.useState(null),Z=Math.max(1,Math.floor(typeof window<"u"&&window.devicePixelRatio||1));N.useEffect(()=>{let ce=!1;return pe(!1),ws(t).then(({imgEl:Ie,bitmap:Ee})=>{ce||(F(Ie),G(Ee),X({w:Ie.naturalWidth,h:Ie.naturalHeight}),pe(!0),w?.())}).catch(()=>{}),()=>{ce=!0}},[t,w]),N.useEffect(()=>{let ce=!1;return(async()=>{if(!Y)return;if(c&&c.length){q(null);return}if(!(!n||!r||!a||!i)){q(null);return}const Ee=await Of(Y,{debug:!0});ce||(Ee?q({frameWidth:Ee.frameWidth,frameHeight:Ee.frameHeight,columns:Ee.columns,rows:Ee.rows,gutterX:Ee.gutterX,gutterY:Ee.gutterY}):(q(null),console.warn("RemoteSpritesheet: auto-detect failed; please provide grid props.")))})(),()=>{ce=!0}},[Y,c,n,r,a,i]);const z=T?.frameWidth??n,K=T?.frameHeight??r,te=T?.columns??a,ie=T?.rows??i,J=T?.gutterX??u,_e=T?.gutterY??o,j=N.useMemo(()=>{if(c&&c.length>0)return{cols:0,rows:0};if(!$||!z||!K)return{cols:0,rows:0};const ce=te??Math.floor(($.w+J)/(z+J)),Ie=ie??Math.floor(($.h+_e)/(K+_e));return{cols:Math.max(0,ce),rows:Math.max(0,Ie)}},[c,$,z,K,te,ie,J,_e]),xe=N.useMemo(()=>{if(c?.length)return c;if(!z||!K)return[];const{cols:ce,rows:Ie}=j;if(!ce||!Ie)return[];const Ee=Math.min(l??ce*Ie,ce*Ie),be=[];for(let Ne=0;Ne<Ee;Ne++){const Fe=Ne%ce,we=Math.floor(Ne/ce),qe=T?.originX??0,Nr=T?.originY??0,L=qe+Fe*(z+J),U=Nr+we*(K+_e);be.push({x:L,y:U,w:z,h:K})}if(Y&&be.length){const Ne=document.createElement("canvas");Ne.width=Y.naturalWidth,Ne.height=Y.naturalHeight;const Fe=Ne.getContext("2d");if(Fe){Fe.drawImage(Y,0,0);let we=be.length;for(;we>0&&Lf(Fe,be[we-1].x,be[we-1].y,be[we-1].w,be[we-1].h);)we--;return be.slice(0,we)}}return be},[c,j,l,z,K,J,_e,Y,T?.originX,T?.originY]),ke=()=>{const ce=se.current;if(!ce||xe.length===0)return;const Ie=xe[Math.max(0,Math.min(p,xe.length-1))],Ee=Math.max(1,Math.round(Ie.w*A)),be=Math.max(1,Math.round(Ie.h*A));ce.style.width=Ee+"px",ce.style.height=be+"px",ce.width=Ee*Z,ce.height=be*Z};N.useEffect(()=>{ke()},[oe,A,xe.length,Z,p]);const Ce=ce=>{const Ie=B??Y??null,Ee=se.current;if(!Ee||!Ie||xe.length===0)return;const be=Ee.getContext("2d");if(!be)return;be.save(),be.setTransform(1,0,0,1,0,0),be.clearRect(0,0,Ee.width,Ee.height),R&&(be.fillStyle=R,be.fillRect(0,0,Ee.width,Ee.height));const Ne=xe[ce];be.scale(Z,Z),be.drawImage(Ie,Ne.x,Ne.y,Ne.w,Ne.h,0,0,Math.round(Ne.w*A),Math.round(Ne.h*A)),be.restore()};return N.useEffect(()=>{if(!oe||xe.length===0)return;let ce=performance.now();const Ie=1e3/Math.max(1,Math.min(120,f)),Ee=be=>{if(ne.current=requestAnimationFrame(Ee),!ve){Ce(p);return}const Ne=be-ce;if(Ne<Ie){Ce(p);return}ce=be-Ne%Ie,H(Fe=>{const we=xe.length-1;let qe=Fe;return y==="forward"?qe=Fe+1:y==="backward"?qe=Fe-1:((Fe>=we&&Q.current===1||Fe<=0&&Q.current===-1)&&(Q.current*=-1),qe=Fe+Q.current),(qe>we||qe<0)&&(m?qe=y==="backward"?we:0:(qe=Math.max(0,Math.min(qe,we)),Le(!1),C?.())),qe})};return ne.current=requestAnimationFrame(Ee),()=>{ne.current&&cancelAnimationFrame(ne.current)}},[oe,f,ve,m,y,xe.length,p]),N.useEffect(()=>{Ce(p),I?.(p)},[p,oe,A,Z]),N.useEffect(()=>{if(!O)return;const ce=()=>{document.hidden&&Le(!1)};return document.addEventListener("visibilitychange",ce),()=>document.removeEventListener("visibilitychange",ce)},[O]),N.useImperativeHandle(W,()=>({play:()=>Le(!0),pause:()=>Le(!1),toggle:()=>Le(ce=>!ce),gotoFrame:ce=>H(()=>Math.max(0,Math.min(ce,Math.max(0,xe.length-1)))),isPlaying:()=>ve,currentFrame:()=>p}),[ve,p,xe.length]),P.jsx("div",{className:S,style:v,children:P.jsx("canvas",{ref:se,"aria-label":"spritesheet animation"})})});function vf({url:e,className:t}){const[n,r]=N.useState(""),[a,i]=N.useState(null);return N.useEffect(()=>{let u=!1;return Ps(e).then(({sanitized:o})=>{u||(r(o),i(null))}).catch(o=>!u&&i(o.message??"Failed to load")),()=>{u=!0}},[e]),a?P.jsxs("div",{className:t,role:"alert",children:["Couldn’t load SVG: ",a]}):n?P.jsx("div",{className:t,dangerouslySetInnerHTML:{__html:n}}):P.jsx("div",{className:t})}const $a=({facet:e})=>{const{mode:t,assetUrl:n}=e;return P.jsxs("div",{className:"assetContainer",children:[t===Ge.AgentDisplayFacetModeType.LOTTIE&&P.jsx(Nf,{src:n,autoplay:!0,onError:r=>console.error(r)}),t===Ge.AgentDisplayFacetModeType.SVG&&P.jsx("div",{children:P.jsx(vf,{url:n})}),t===Ge.AgentDisplayFacetModeType.IMAGE&&P.jsx(Cf,{src:n}),t===Ge.AgentDisplayFacetModeType.SPRITESHEET&&P.jsx(Rf,{src:n})]})},Pf=({isWidgetOpen:e,setIsWidgetOpen:t})=>{const{companySettings:n}=N.useContext(pr);return P.jsxs("div",{className:`launcher
52
37
  fixed
53
38
  z-[999999999]
54
39
  transition
@@ -59,21 +44,21 @@ i.goToAndStop(b-i.firstFrame-1,!0)}S.type==="loop"&&(d===null||d!==S.frames||i.i
59
44
  flex
60
45
  justify-center
61
46
  items-center
62
- `,onClick:()=>t(!e),children:[!e&&jsxRuntime.jsx(FacetAssetDisplayer,{facet:n.agent.display[srcExports.AgentDisplayFacetRoleType.LAUNCHER]}),e&&jsxRuntime.jsx(SvgDownArrow,{className:"w-6 h-6",fill:"white"})]})},useTranslationChatbox=()=>{const e=useIntl(),t=e.formatMessage({defaultMessage:"Message the assistant...",id:"chatbot.placeholder.content"}),n=e.formatMessage({defaultMessage:"You",id:"chatbot.chatline.label.user"}),i=e.formatMessage({defaultMessage:"Assistant",id:"chatbot.chatline.label.assistant"});return{placeholderTranslation:t,chatlineLabelUserTranslation:n,chatlineLabelAssistantTranslation:i}};function ok$1(){}function unreachable(){}function parse$2(e){const t=[],n=String(e||"");let i=n.indexOf(","),a=0,o=!1;for(;!o;){i===-1&&(i=n.length,o=!0);const u=n.slice(a,i).trim();(u||!o)&&t.push(u),a=i+1,i=n.indexOf(",",a)}return t}function stringify$1(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const nameRe=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,nameReJsx=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,emptyOptions$3={};function name(e,t){return(emptyOptions$3.jsx?nameReJsx:nameRe).test(e)}const re=/[ \t\n\f\r]/g;function whitespace(e){return typeof e=="object"?e.type==="text"?empty$1(e.value):!1:empty$1(e)}function empty$1(e){return e.replace(re,"")===""}class Schema{constructor(t,n,i){this.property=t,this.normal=n,i&&(this.space=i)}}Schema.prototype.property={};Schema.prototype.normal={};Schema.prototype.space=null;function merge(e,t){const n={},i={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(i,e[a].normal);return new Schema(n,i,t)}function normalize$1(e){return e.toLowerCase()}class Info{constructor(t,n){this.property=t,this.attribute=n}}Info.prototype.space=null;Info.prototype.boolean=!1;Info.prototype.booleanish=!1;Info.prototype.overloadedBoolean=!1;Info.prototype.number=!1;Info.prototype.commaSeparated=!1;Info.prototype.spaceSeparated=!1;Info.prototype.commaOrSpaceSeparated=!1;Info.prototype.mustUseProperty=!1;Info.prototype.defined=!1;let powers=0;const boolean=increment(),booleanish=increment(),overloadedBoolean=increment(),number=increment(),spaceSeparated=increment(),commaSeparated=increment(),commaOrSpaceSeparated=increment();function increment(){return 2**++powers}const types=Object.freeze(Object.defineProperty({__proto__:null,boolean,booleanish,commaOrSpaceSeparated,commaSeparated,number,overloadedBoolean,spaceSeparated},Symbol.toStringTag,{value:"Module"})),checks=Object.keys(types);class DefinedInfo extends Info{constructor(t,n,i,a){let o=-1;if(super(t,n),mark(this,"space",a),typeof i=="number")for(;++o<checks.length;){const u=checks[o];mark(this,checks[o],(i&types[u])===types[u])}}}DefinedInfo.prototype.defined=!0;function mark(e,t,n){n&&(e[t]=n)}const own$8={}.hasOwnProperty;function create(e){const t={},n={};let i;for(i in e.properties)if(own$8.call(e.properties,i)){const a=e.properties[i],o=new DefinedInfo(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[normalize$1(i)]=i,n[normalize$1(o.attribute)]=i}return new Schema(t,n,e.space)}const xlink=create({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),xml=create({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function caseSensitiveTransform(e,t){return t in e?e[t]:t}function caseInsensitiveTransform(e,t){return caseSensitiveTransform(e,t.toLowerCase())}const xmlns=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}}),aria=create({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:booleanish,ariaAutoComplete:null,ariaBusy:booleanish,ariaChecked:booleanish,ariaColCount:number,ariaColIndex:number,ariaColSpan:number,ariaControls:spaceSeparated,ariaCurrent:null,ariaDescribedBy:spaceSeparated,ariaDetails:null,ariaDisabled:booleanish,ariaDropEffect:spaceSeparated,ariaErrorMessage:null,ariaExpanded:booleanish,ariaFlowTo:spaceSeparated,ariaGrabbed:booleanish,ariaHasPopup:null,ariaHidden:booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:spaceSeparated,ariaLevel:number,ariaLive:null,ariaModal:booleanish,ariaMultiLine:booleanish,ariaMultiSelectable:booleanish,ariaOrientation:null,ariaOwns:spaceSeparated,ariaPlaceholder:null,ariaPosInSet:number,ariaPressed:booleanish,ariaReadOnly:booleanish,ariaRelevant:null,ariaRequired:booleanish,ariaRoleDescription:spaceSeparated,ariaRowCount:number,ariaRowIndex:number,ariaRowSpan:number,ariaSelected:booleanish,ariaSetSize:number,ariaSort:null,ariaValueMax:number,ariaValueMin:number,ariaValueNow:number,ariaValueText:null,role:null}}),html$2=create({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:commaSeparated,acceptCharset:spaceSeparated,accessKey:spaceSeparated,action:null,allow:null,allowFullScreen:boolean,allowPaymentRequest:boolean,allowUserMedia:boolean,alt:null,as:null,async:boolean,autoCapitalize:null,autoComplete:spaceSeparated,autoFocus:boolean,autoPlay:boolean,blocking:spaceSeparated,capture:null,charSet:null,checked:boolean,cite:null,className:spaceSeparated,cols:number,colSpan:null,content:null,contentEditable:booleanish,controls:boolean,controlsList:spaceSeparated,coords:number|commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:boolean,defer:boolean,dir:null,dirName:null,disabled:boolean,download:overloadedBoolean,draggable:booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:boolean,formTarget:null,headers:spaceSeparated,height:number,hidden:boolean,high:number,href:null,hrefLang:null,htmlFor:spaceSeparated,httpEquiv:spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:boolean,inputMode:null,integrity:null,is:null,isMap:boolean,itemId:null,itemProp:spaceSeparated,itemRef:spaceSeparated,itemScope:boolean,itemType:spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:boolean,low:number,manifest:null,max:null,maxLength:number,media:null,method:null,min:null,minLength:number,multiple:boolean,muted:boolean,name:null,nonce:null,noModule:boolean,noValidate:boolean,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:boolean,optimum:number,pattern:null,ping:spaceSeparated,placeholder:null,playsInline:boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:boolean,referrerPolicy:null,rel:spaceSeparated,required:boolean,reversed:boolean,rows:number,rowSpan:number,sandbox:spaceSeparated,scope:null,scoped:boolean,seamless:boolean,selected:boolean,shadowRootDelegatesFocus:boolean,shadowRootMode:null,shape:null,size:number,sizes:null,slot:null,span:number,spellCheck:booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:number,step:null,style:null,tabIndex:number,target:null,title:null,translate:null,type:null,typeMustMatch:boolean,useMap:null,value:booleanish,width:number,wrap:null,align:null,aLink:null,archive:spaceSeparated,axis:null,background:null,bgColor:null,border:number,borderColor:null,bottomMargin:number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:boolean,declare:boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:number,leftMargin:number,link:null,longDesc:null,lowSrc:null,marginHeight:number,marginWidth:number,noResize:boolean,noHref:boolean,noShade:boolean,noWrap:boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:number,rules:null,scheme:null,scrolling:booleanish,standby:null,summary:null,text:null,topMargin:number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:boolean,disableRemotePlayback:boolean,prefix:null,property:null,results:number,security:null,unselectable:null}}),svg$1=create({space:"svg",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",colorRendering:"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",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-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"},transform:caseSensitiveTransform,properties:{about:commaOrSpaceSeparated,accentHeight:number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:number,amplitude:number,arabicForm:null,ascent:number,attributeName:null,attributeType:null,azimuth:number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:number,by:null,calcMode:null,capHeight:number,className:spaceSeparated,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:number,diffuseConstant:number,direction:null,display:null,dur:null,divisor:number,dominantBaseline:null,download:boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:number,enableBackground:null,end:null,event:null,exponent:number,externalResourcesRequired:null,fill:null,fillOpacity:number,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:commaSeparated,g2:commaSeparated,glyphName:commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:number,horizOriginX:number,horizOriginY:number,id:null,ideographic:number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:number,k:number,k1:number,k2:number,k3:number,k4:number,kernelMatrix:commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:number,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,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:number,overlineThickness:number,paintOrder:null,panose1:null,path:null,pathLength:number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:number,pointsAtY:number,pointsAtZ:number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:commaOrSpaceSeparated,rev:commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:commaOrSpaceSeparated,requiredFeatures:commaOrSpaceSeparated,requiredFonts:commaOrSpaceSeparated,requiredFormats:commaOrSpaceSeparated,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:number,specularExponent:number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:number,strikethroughThickness:number,string:null,stroke:null,strokeDashArray:commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:number,strokeOpacity:number,strokeWidth:null,style:null,surfaceScale:number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:commaOrSpaceSeparated,tabIndex:number,tableValues:null,target:null,targetX:number,targetY:number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:number,underlineThickness:number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:number,values:null,vAlphabetic:number,vMathematical:number,vectorEffect:null,vHanging:number,vIdeographic:number,version:null,vertAdvY:number,vertOriginX:number,vertOriginY:number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),valid=/^data[-\w.:]+$/i,dash=/-[a-z]/g,cap$1=/[A-Z]/g;function find(e,t){const n=normalize$1(t);let i=t,a=Info;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&valid.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(dash,camelcase);i="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!dash.test(o)){let u=o.replace(cap$1,kebab);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}a=DefinedInfo}return new a(i,t)}function kebab(e){return"-"+e.toLowerCase()}function camelcase(e){return e.charAt(1).toUpperCase()}const hastToReact={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"},html$1=merge([xml,xlink,xmlns,aria,html$2],"html"),svg=merge([xml,xlink,xmlns,aria,svg$1],"svg");function parse$1(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function stringify(e){return e.join(" ").trim()}var cjs={},inlineStyleParser,hasRequiredInlineStyleParser;function requireInlineStyleParser(){if(hasRequiredInlineStyleParser)return inlineStyleParser;hasRequiredInlineStyleParser=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,l=/^\s+|\s+$/g,c=`
63
- `,f="/",d="*",T="",m="comment",y="declaration";inlineStyleParser=function(b,L){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];L=L||{};var v=1,A=1;function _(Z){var J=Z.match(t);J&&(v+=J.length);var K=Z.lastIndexOf(c);A=~K?Z.length-K:A+Z.length}function I(){var Z={line:v,column:A};return function(J){return J.position=new C(Z),z(),J}}function C(Z){this.start=Z,this.end={line:v,column:A},this.source=L.source}C.prototype.content=b;function O(Z){var J=new Error(L.source+":"+v+":"+A+": "+Z);if(J.reason=Z,J.filename=L.source,J.line=v,J.column=A,J.source=b,!L.silent)throw J}function B(Z){var J=Z.exec(b);if(J){var K=J[0];return _(K),b=b.slice(K.length),J}}function z(){B(n)}function q(Z){var J;for(Z=Z||[];J=e1();)J!==!1&&Z.push(J);return Z}function e1(){var Z=I();if(!(f!=b.charAt(0)||d!=b.charAt(1))){for(var J=2;T!=b.charAt(J)&&(d!=b.charAt(J)||f!=b.charAt(J+1));)++J;if(J+=2,T===b.charAt(J-1))return O("End of comment missing");var K=b.slice(2,J-2);return A+=2,_(K),b=b.slice(J),A+=2,Z({type:m,comment:K})}}function X(){var Z=I(),J=B(i);if(J){if(e1(),!B(a))return O("property missing ':'");var K=B(o),k=Z({type:y,property:S(J[0].replace(e,T)),value:K?S(K[0].replace(e,T)):T});return B(u),k}}function W(){var Z=[];q(Z);for(var J;J=X();)J!==!1&&(Z.push(J),q(Z));return Z}return z(),W()};function S(b){return b?b.replace(l,T):T}return inlineStyleParser}var hasRequiredCjs;function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var e=cjs&&cjs.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(cjs,"__esModule",{value:!0});var t=e(requireInlineStyleParser());function n(i,a){var o=null;if(!i||typeof i!="string")return o;var u=(0,t.default)(i),l=typeof a=="function";return u.forEach(function(c){if(c.type==="declaration"){var f=c.property,d=c.value;l?a(f,d,c):d&&(o=o||{},o[f]=d)}}),o}return cjs.default=n,cjs}var cjsExports=requireCjs();const StyleToObject=getDefaultExportFromCjs(cjsExports),styleToObject=StyleToObject.default||StyleToObject,pointEnd=point$3("end"),pointStart=point$3("start");function point$3(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 position$2(e){const t=pointStart(e),n=pointEnd(e);if(t&&n)return{start:t,end:n}}function stringifyPosition(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?position$1(e.position):"start"in e||"end"in e?position$1(e):"line"in e||"column"in e?point$2(e):""}function point$2(e){return index(e&&e.line)+":"+index(e&&e.column)}function position$1(e){return point$2(e&&e.start)+"-"+point$2(e&&e.end)}function index(e){return e&&typeof e=="number"?e:1}class VFileMessage extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let a="",o={},u=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?a=t:!o.cause&&t&&(u=!0,a=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof i=="string"){const c=i.indexOf(":");c===-1?o.ruleId=i:(o.source=i.slice(0,c),o.ruleId=i.slice(c+1))}if(!o.place&&o.ancestors&&o.ancestors){const c=o.ancestors[o.ancestors.length-1];c&&(o.place=c.position)}const l=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=stringifyPosition(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=u&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}VFileMessage.prototype.file="";VFileMessage.prototype.name="";VFileMessage.prototype.reason="";VFileMessage.prototype.message="";VFileMessage.prototype.stack="";VFileMessage.prototype.column=void 0;VFileMessage.prototype.line=void 0;VFileMessage.prototype.ancestors=void 0;VFileMessage.prototype.cause=void 0;VFileMessage.prototype.fatal=void 0;VFileMessage.prototype.place=void 0;VFileMessage.prototype.ruleId=void 0;VFileMessage.prototype.source=void 0;const own$7={}.hasOwnProperty,emptyMap=new Map,cap=/[A-Z]/g,dashSomething=/-([a-z])/g,tableElements=new Set(["table","tbody","thead","tfoot","tr"]),tableCellElement=new Set(["td","th"]),docs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function toJsxRuntime(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=developmentCreate(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=productionCreate(n,t.jsx,t.jsxs)}const a={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"?svg:html$1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=one$3(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function one$3(e,t,n){if(t.type==="element")return element$4(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return mdxExpression(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return mdxJsxElement(e,t,n);if(t.type==="mdxjsEsm")return mdxEsm(e,t);if(t.type==="root")return root$3(e,t,n);if(t.type==="text")return text$5(e,t)}function element$4(e,t,n){const i=e.schema;let a=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(a=svg,e.schema=a),e.ancestors.push(t);const o=findComponentFromName(e,t.tagName,!1),u=createElementProps(e,t);let l=createChildren(e,t);return tableElements.has(t.tagName)&&(l=l.filter(function(c){return typeof c=="string"?!whitespace(c):!0})),addNode(e,u,o,t),addChildren(u,l),e.ancestors.pop(),e.schema=i,e.create(t,o,u,n)}function mdxExpression(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)}crashEstree(e,t.position)}function mdxEsm(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);crashEstree(e,t.position)}function mdxJsxElement(e,t,n){const i=e.schema;let a=i;t.name==="svg"&&i.space==="html"&&(a=svg,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:findComponentFromName(e,t.name,!0),u=createJsxElementProps(e,t),l=createChildren(e,t);return addNode(e,u,o,t),addChildren(u,l),e.ancestors.pop(),e.schema=i,e.create(t,o,u,n)}function root$3(e,t,n){const i={};return addChildren(i,createChildren(e,t)),e.create(t,e.Fragment,i,n)}function text$5(e,t){return t.value}function addNode(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function addChildren(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function productionCreate(e,t,n){return i;function i(a,o,u,l){const f=Array.isArray(u.children)?n:t;return l?f(o,u,l):f(o,u)}}function developmentCreate(e,t){return n;function n(i,a,o,u){const l=Array.isArray(o.children),c=pointStart(i);return t(a,o,u,l,{columnNumber:c?c.column-1:void 0,fileName:e,lineNumber:c?c.line:void 0},void 0)}}function createElementProps(e,t){const n={};let i,a;for(a in t.properties)if(a!=="children"&&own$7.call(t.properties,a)){const o=createProperty$1(e,a,t.properties[a]);if(o){const[u,l]=o;e.tableCellAlignToStyle&&u==="align"&&typeof l=="string"&&tableCellElement.has(t.tagName)?i=l:n[u]=l}}if(i){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function createJsxElementProps(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const o=i.data.estree.body[0];o.type;const u=o.expression;u.type;const l=u.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else crashEstree(e,t.position);else{const a=i.name;let o;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const l=i.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else crashEstree(e,t.position);else o=i.value===null?!0:i.value;n[a]=o}return n}function createChildren(e,t){const n=[];let i=-1;const a=e.passKeys?new Map:emptyMap;for(;++i<t.children.length;){const o=t.children[i];let u;if(e.passKeys){const c=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(c){const f=a.get(c)||0;u=c+"-"+f,a.set(c,f+1)}}const l=one$3(e,o,u);l!==void 0&&n.push(l)}return n}function createProperty$1(e,t,n){const i=find(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?stringify$1(n):stringify(n)),i.property==="style"){let a=typeof n=="object"?n:parseStyle(e,String(n));return e.stylePropertyNameCase==="css"&&(a=transformStylesToCssCasing(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?hastToReact[i.property]||i.property:i.attribute,n]}}function parseStyle(e,t){const n={};try{styleToObject(t,i)}catch(a){if(!e.ignoreInvalidStyle){const o=a,u=new VFileMessage("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=e.filePath||void 0,u.url=docs+"#cannot-parse-style-attribute",u}}return n;function i(a,o){let u=a;u.slice(0,2)!=="--"&&(u.slice(0,4)==="-ms-"&&(u="ms-"+u.slice(4)),u=u.replace(dashSomething,toCamel)),n[u]=o}}function findComponentFromName(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,u;for(;++o<a.length;){const l=name(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};u=u?{type:"MemberExpression",object:u,property:l,computed:!!(o&&l.type==="Literal"),optional:!1}:l}i=u}else i=name(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const a=i.value;return own$7.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(i);crashEstree(e)}function crashEstree(e,t){const n=new VFileMessage("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=docs+"#cannot-handle-mdx-estrees-without-createevaluater",n}function transformStylesToCssCasing(e){const t={};let n;for(n in e)own$7.call(e,n)&&(t[transformStyleToCssCasing(n)]=e[n]);return t}function transformStyleToCssCasing(e){let t=e.replace(cap,toDash);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function toCamel(e,t){return t.toUpperCase()}function toDash(e){return"-"+e.toLowerCase()}const urlAttributes={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"]},emptyOptions$2={};function toString$1(e,t){const n=emptyOptions$2,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return one$2(e,i,a)}function one$2(e,t,n){if(node(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 all$3(e.children,t,n)}return Array.isArray(e)?all$3(e,t,n):""}function all$3(e,t,n){const i=[];let a=-1;for(;++a<e.length;)i[a]=one$2(e[a],t,n);return i.join("")}function node(e){return!!(e&&typeof e=="object")}const element$3=document.createElement("i");function decodeNamedCharacterReference(e){const t="&"+e+";";element$3.innerHTML=t;const n=element$3.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function splice(e,t,n,i){const a=e.length;let o=0,u;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,i.length<1e4)u=Array.from(i),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);o<i.length;)u=i.slice(o,o+1e4),u.unshift(t,0),e.splice(...u),o+=1e4,t+=1e4}function push(e,t){return e.length>0?(splice(e,e.length,0,t),e):t}const hasOwnProperty={}.hasOwnProperty;function combineExtensions(e){const t={};let n=-1;for(;++n<e.length;)syntaxExtension(t,e[n]);return t}function syntaxExtension(e,t){let n;for(n in t){const a=(hasOwnProperty.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let u;if(o)for(u in o){hasOwnProperty.call(a,u)||(a[u]=[]);const l=o[u];constructs(a[u],Array.isArray(l)?l:l?[l]:[])}}}function constructs(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);splice(e,0,0,i)}function decodeNumericCharacterReference(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 normalizeIdentifier(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const asciiAlpha=regexCheck(/[A-Za-z]/),asciiAlphanumeric=regexCheck(/[\dA-Za-z]/),asciiAtext=regexCheck(/[#-'*+\--9=?A-Z^-~]/);function asciiControl(e){return e!==null&&(e<32||e===127)}const asciiDigit=regexCheck(/\d/),asciiHexDigit=regexCheck(/[\dA-Fa-f]/),asciiPunctuation=regexCheck(/[!-/:-@[-`{-~]/);function markdownLineEnding(e){return e!==null&&e<-2}function markdownLineEndingOrSpace(e){return e!==null&&(e<0||e===32)}function markdownSpace(e){return e===-2||e===-1||e===32}const unicodePunctuation=regexCheck(new RegExp("\\p{P}|\\p{S}","u")),unicodeWhitespace=regexCheck(/\s/);function regexCheck(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function normalizeUri(e){const t=[];let n=-1,i=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let u="";if(o===37&&asciiAlphanumeric(e.charCodeAt(n+1))&&asciiAlphanumeric(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(u=String.fromCharCode(o));else if(o>55295&&o<57344){const l=e.charCodeAt(n+1);o<56320&&l>56319&&l<57344?(u=String.fromCharCode(o,l),a=1):u="�"}else u=String.fromCharCode(o);u&&(t.push(e.slice(i,n),encodeURIComponent(u)),i=n+a+1,u=""),a&&(n+=a,a=0)}return t.join("")+e.slice(i)}function factorySpace(e,t,n,i){const a=i?i-1:Number.POSITIVE_INFINITY;let o=0;return u;function u(c){return markdownSpace(c)?(e.enter(n),l(c)):t(c)}function l(c){return markdownSpace(c)&&o++<a?(e.consume(c),l):(e.exit(n),t(c))}}const content$1={tokenize:initializeContent};function initializeContent(e){const t=e.attempt(this.parser.constructs.contentInitial,i,a);let n;return t;function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),factorySpace(e,t,"linePrefix")}function a(l){return e.enter("paragraph"),o(l)}function o(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,u(l)}function u(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return markdownLineEnding(l)?(e.consume(l),e.exit("chunkText"),o):(e.consume(l),u)}}const document$2={tokenize:initializeDocument},containerConstruct={tokenize:tokenizeContainer};function initializeDocument(e){const t=this,n=[];let i=0,a,o,u;return l;function l(_){if(i<n.length){const I=n[i];return t.containerState=I[1],e.attempt(I[0].continuation,c,f)(_)}return f(_)}function c(_){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&A();const I=t.events.length;let C=I,O;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){O=t.events[C][1].end;break}v(i);let B=I;for(;B<t.events.length;)t.events[B][1].end=Object.assign({},O),B++;return splice(t.events,C+1,0,t.events.slice(I)),t.events.length=B,f(_)}return l(_)}function f(_){if(i===n.length){if(!a)return m(_);if(a.currentConstruct&&a.currentConstruct.concrete)return S(_);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(containerConstruct,d,T)(_)}function d(_){return a&&A(),v(i),m(_)}function T(_){return t.parser.lazy[t.now().line]=i!==n.length,u=t.now().offset,S(_)}function m(_){return t.containerState={},e.attempt(containerConstruct,y,S)(_)}function y(_){return i++,n.push([t.currentConstruct,t.containerState]),m(_)}function S(_){if(_===null){a&&A(),v(0),e.consume(_);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:a}),b(_)}function b(_){if(_===null){L(e.exit("chunkFlow"),!0),v(0),e.consume(_);return}return markdownLineEnding(_)?(e.consume(_),L(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(_),b)}function L(_,I){const C=t.sliceStream(_);if(I&&C.push(null),_.previous=o,o&&(o.next=_),o=_,a.defineSkip(_.start),a.write(C),t.parser.lazy[_.start.line]){let O=a.events.length;for(;O--;)if(a.events[O][1].start.offset<u&&(!a.events[O][1].end||a.events[O][1].end.offset>u))return;const B=t.events.length;let z=B,q,e1;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){if(q){e1=t.events[z][1].end;break}q=!0}for(v(i),O=B;O<t.events.length;)t.events[O][1].end=Object.assign({},e1),O++;splice(t.events,z+1,0,t.events.slice(B)),t.events.length=O}}function v(_){let I=n.length;for(;I-- >_;){const C=n[I];t.containerState=C[1],C[0].exit.call(t,e)}n.length=_}function A(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}function tokenizeContainer(e,t,n){return factorySpace(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function classifyCharacter(e){if(e===null||markdownLineEndingOrSpace(e)||unicodeWhitespace(e))return 1;if(unicodePunctuation(e))return 2}function resolveAll(e,t,n){const i=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}const attention={name:"attention",tokenize:tokenizeAttention,resolveAll:resolveAllAttention};function resolveAllAttention(e,t){let n=-1,i,a,o,u,l,c,f,d;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;c=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 T=Object.assign({},e[i][1].end),m=Object.assign({},e[n][1].start);movePoint(T,-c),movePoint(m,c),u={type:c>1?"strongSequence":"emphasisSequence",start:T,end:Object.assign({},e[i][1].end)},l={type:c>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},o={type:c>1?"strongText":"emphasisText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[n][1].start)},a={type:c>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},l.end)},e[i][1].end=Object.assign({},u.start),e[n][1].start=Object.assign({},l.end),f=[],e[i][1].end.offset-e[i][1].start.offset&&(f=push(f,[["enter",e[i][1],t],["exit",e[i][1],t]])),f=push(f,[["enter",a,t],["enter",u,t],["exit",u,t],["enter",o,t]]),f=push(f,resolveAll(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),f=push(f,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,f=push(f,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,splice(e,i-1,n-i+3,f),n=i+f.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function tokenizeAttention(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,a=classifyCharacter(i);let o;return u;function u(c){return o=c,e.enter("attentionSequence"),l(c)}function l(c){if(c===o)return e.consume(c),l;const f=e.exit("attentionSequence"),d=classifyCharacter(c),T=!d||d===2&&a||n.includes(c),m=!a||a===2&&d||n.includes(i);return f._open=!!(o===42?T:T&&(a||!m)),f._close=!!(o===42?m:m&&(d||!T)),t(c)}}function movePoint(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const autolink={name:"autolink",tokenize:tokenizeAutolink};function tokenizeAutolink(e,t,n){let i=0;return a;function a(y){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(y){return asciiAlpha(y)?(e.consume(y),u):f(y)}function u(y){return y===43||y===45||y===46||asciiAlphanumeric(y)?(i=1,l(y)):f(y)}function l(y){return y===58?(e.consume(y),i=0,c):(y===43||y===45||y===46||asciiAlphanumeric(y))&&i++<32?(e.consume(y),l):(i=0,f(y))}function c(y){return y===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):y===null||y===32||y===60||asciiControl(y)?n(y):(e.consume(y),c)}function f(y){return y===64?(e.consume(y),d):asciiAtext(y)?(e.consume(y),f):n(y)}function d(y){return asciiAlphanumeric(y)?T(y):n(y)}function T(y){return y===46?(e.consume(y),i=0,d):y===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(y),e.exit("autolinkMarker"),e.exit("autolink"),t):m(y)}function m(y){if((y===45||asciiAlphanumeric(y))&&i++<63){const S=y===45?m:T;return e.consume(y),S}return n(y)}}const blankLine={tokenize:tokenizeBlankLine,partial:!0};function tokenizeBlankLine(e,t,n){return i;function i(o){return markdownSpace(o)?factorySpace(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||markdownLineEnding(o)?t(o):n(o)}}const blockQuote={name:"blockQuote",tokenize:tokenizeBlockQuoteStart,continuation:{tokenize:tokenizeBlockQuoteContinuation},exit};function tokenizeBlockQuoteStart(e,t,n){const i=this;return a;function a(u){if(u===62){const l=i.containerState;return l.open||(e.enter("blockQuote",{_container:!0}),l.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),o}return n(u)}function o(u){return markdownSpace(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function tokenizeBlockQuoteContinuation(e,t,n){const i=this;return a;function a(u){return markdownSpace(u)?factorySpace(e,o,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):o(u)}function o(u){return e.attempt(blockQuote,t,n)(u)}}function exit(e){e.exit("blockQuote")}const characterEscape={name:"characterEscape",tokenize:tokenizeCharacterEscape};function tokenizeCharacterEscape(e,t,n){return i;function i(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),a}function a(o){return asciiPunctuation(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const characterReference={name:"characterReference",tokenize:tokenizeCharacterReference};function tokenizeCharacterReference(e,t,n){const i=this;let a=0,o,u;return l;function l(T){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(T),e.exit("characterReferenceMarker"),c}function c(T){return T===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(T),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),o=31,u=asciiAlphanumeric,d(T))}function f(T){return T===88||T===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(T),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,u=asciiHexDigit,d):(e.enter("characterReferenceValue"),o=7,u=asciiDigit,d(T))}function d(T){if(T===59&&a){const m=e.exit("characterReferenceValue");return u===asciiAlphanumeric&&!decodeNamedCharacterReference(i.sliceSerialize(m))?n(T):(e.enter("characterReferenceMarker"),e.consume(T),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(T)&&a++<o?(e.consume(T),d):n(T)}}const nonLazyContinuation={tokenize:tokenizeNonLazyContinuation,partial:!0},codeFenced={name:"codeFenced",tokenize:tokenizeCodeFenced,concrete:!0};function tokenizeCodeFenced(e,t,n){const i=this,a={tokenize:C,partial:!0};let o=0,u=0,l;return c;function c(O){return f(O)}function f(O){const B=i.events[i.events.length-1];return o=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,l=O,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(O)}function d(O){return O===l?(u++,e.consume(O),d):u<3?n(O):(e.exit("codeFencedFenceSequence"),markdownSpace(O)?factorySpace(e,T,"whitespace")(O):T(O))}function T(O){return O===null||markdownLineEnding(O)?(e.exit("codeFencedFence"),i.interrupt?t(O):e.check(nonLazyContinuation,b,I)(O)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(O))}function m(O){return O===null||markdownLineEnding(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),T(O)):markdownSpace(O)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),factorySpace(e,y,"whitespace")(O)):O===96&&O===l?n(O):(e.consume(O),m)}function y(O){return O===null||markdownLineEnding(O)?T(O):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),S(O))}function S(O){return O===null||markdownLineEnding(O)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),T(O)):O===96&&O===l?n(O):(e.consume(O),S)}function b(O){return e.attempt(a,I,L)(O)}function L(O){return e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),v}function v(O){return o>0&&markdownSpace(O)?factorySpace(e,A,"linePrefix",o+1)(O):A(O)}function A(O){return O===null||markdownLineEnding(O)?e.check(nonLazyContinuation,b,I)(O):(e.enter("codeFlowValue"),_(O))}function _(O){return O===null||markdownLineEnding(O)?(e.exit("codeFlowValue"),A(O)):(e.consume(O),_)}function I(O){return e.exit("codeFenced"),t(O)}function C(O,B,z){let q=0;return e1;function e1(K){return O.enter("lineEnding"),O.consume(K),O.exit("lineEnding"),X}function X(K){return O.enter("codeFencedFence"),markdownSpace(K)?factorySpace(O,W,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(K):W(K)}function W(K){return K===l?(O.enter("codeFencedFenceSequence"),Z(K)):z(K)}function Z(K){return K===l?(q++,O.consume(K),Z):q>=u?(O.exit("codeFencedFenceSequence"),markdownSpace(K)?factorySpace(O,J,"whitespace")(K):J(K)):z(K)}function J(K){return K===null||markdownLineEnding(K)?(O.exit("codeFencedFence"),B(K)):z(K)}}}function tokenizeNonLazyContinuation(e,t,n){const i=this;return a;function a(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o)}function o(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}const codeIndented={name:"codeIndented",tokenize:tokenizeCodeIndented},furtherStart={tokenize:tokenizeFurtherStart,partial:!0};function tokenizeCodeIndented(e,t,n){const i=this;return a;function a(f){return e.enter("codeIndented"),factorySpace(e,o,"linePrefix",5)(f)}function o(f){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?u(f):n(f)}function u(f){return f===null?c(f):markdownLineEnding(f)?e.attempt(furtherStart,u,c)(f):(e.enter("codeFlowValue"),l(f))}function l(f){return f===null||markdownLineEnding(f)?(e.exit("codeFlowValue"),u(f)):(e.consume(f),l)}function c(f){return e.exit("codeIndented"),t(f)}}function tokenizeFurtherStart(e,t,n){const i=this;return a;function a(u){return i.parser.lazy[i.now().line]?n(u):markdownLineEnding(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):factorySpace(e,o,"linePrefix",5)(u)}function o(u){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(u):markdownLineEnding(u)?a(u):n(u)}}const codeText={name:"codeText",tokenize:tokenizeCodeText,resolve:resolveCodeText,previous};function resolveCodeText(e){let t=e.length-4,n=3,i,a;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;)a===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(a=i):(i===t||e[i][1].type==="lineEnding")&&(e[a][1].type="codeTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e}function previous(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function tokenizeCodeText(e,t,n){let i=0,a,o;return u;function u(T){return e.enter("codeText"),e.enter("codeTextSequence"),l(T)}function l(T){return T===96?(e.consume(T),i++,l):(e.exit("codeTextSequence"),c(T))}function c(T){return T===null?n(T):T===32?(e.enter("space"),e.consume(T),e.exit("space"),c):T===96?(o=e.enter("codeTextSequence"),a=0,d(T)):markdownLineEnding(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),c):(e.enter("codeTextData"),f(T))}function f(T){return T===null||T===32||T===96||markdownLineEnding(T)?(e.exit("codeTextData"),c(T)):(e.consume(T),f)}function d(T){return T===96?(e.consume(T),a++,d):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(T)):(o.type="codeTextData",f(T))}}function subtokenize(e){const t={};let n=-1,i,a,o,u,l,c,f;for(;++n<e.length;){for(;n in t;)n=t[n];if(i=e[n],n&&i[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(c=i[1]._tokenizer.events,o=0,o<c.length&&c[o][1].type==="lineEndingBlank"&&(o+=2),o<c.length&&c[o][1].type==="content"))for(;++o<c.length&&c[o][1].type!=="content";)c[o][1].type==="chunkText"&&(c[o][1]._isInFirstContentOfListItem=!0,o++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,subcontent(e,n)),n=t[n],f=!0);else if(i[1]._container){for(o=n,a=void 0;o--&&(u=e[o],u[1].type==="lineEnding"||u[1].type==="lineEndingBlank");)u[0]==="enter"&&(a&&(e[a][1].type="lineEndingBlank"),u[1].type="lineEnding",a=o);a&&(i[1].end=Object.assign({},e[a][1].start),l=e.slice(a,n),l.unshift(i),splice(e,a,n-a+1,l))}}return!f}function subcontent(e,t){const n=e[t][1],i=e[t][2];let a=t-1;const o=[],u=n._tokenizer||i.parser[n.contentType](n.start),l=u.events,c=[],f={};let d,T,m=-1,y=n,S=0,b=0;const L=[b];for(;y;){for(;e[++a][1]!==y;);o.push(a),y._tokenizer||(d=i.sliceStream(y),y.next||d.push(null),T&&u.defineSkip(y.start),y._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(d),y._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),T=y,y=y.next}for(y=n;++m<l.length;)l[m][0]==="exit"&&l[m-1][0]==="enter"&&l[m][1].type===l[m-1][1].type&&l[m][1].start.line!==l[m][1].end.line&&(b=m+1,L.push(b),y._tokenizer=void 0,y.previous=void 0,y=y.next);for(u.events=[],y?(y._tokenizer=void 0,y.previous=void 0):L.pop(),m=L.length;m--;){const v=l.slice(L[m],L[m+1]),A=o.pop();c.unshift([A,A+v.length-1]),splice(e,A,2,v)}for(m=-1;++m<c.length;)f[S+c[m][0]]=S+c[m][1],S+=c[m][1]-c[m][0]-1;return f}const content={tokenize:tokenizeContent,resolve:resolveContent},continuationConstruct={tokenize:tokenizeContinuation,partial:!0};function resolveContent(e){return subtokenize(e),e}function tokenizeContent(e,t){let n;return i;function i(l){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(l)}function a(l){return l===null?o(l):markdownLineEnding(l)?e.check(continuationConstruct,u,o)(l):(e.consume(l),a)}function o(l){return e.exit("chunkContent"),e.exit("content"),t(l)}function u(l){return e.consume(l),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function tokenizeContinuation(e,t,n){const i=this;return a;function a(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),factorySpace(e,o,"linePrefix")}function o(u){if(u===null||markdownLineEnding(u))return n(u);const l=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,n,t)(u)}}function factoryDestination(e,t,n,i,a,o,u,l,c){const f=c||Number.POSITIVE_INFINITY;let d=0;return T;function T(v){return v===60?(e.enter(i),e.enter(a),e.enter(o),e.consume(v),e.exit(o),m):v===null||v===32||v===41||asciiControl(v)?n(v):(e.enter(i),e.enter(u),e.enter(l),e.enter("chunkString",{contentType:"string"}),b(v))}function m(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(a),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),y(v))}function y(v){return v===62?(e.exit("chunkString"),e.exit(l),m(v)):v===null||v===60||markdownLineEnding(v)?n(v):(e.consume(v),v===92?S:y)}function S(v){return v===60||v===62||v===92?(e.consume(v),y):y(v)}function b(v){return!d&&(v===null||v===41||markdownLineEndingOrSpace(v))?(e.exit("chunkString"),e.exit(l),e.exit(u),e.exit(i),t(v)):d<f&&v===40?(e.consume(v),d++,b):v===41?(e.consume(v),d--,b):v===null||v===32||v===40||asciiControl(v)?n(v):(e.consume(v),v===92?L:b)}function L(v){return v===40||v===41||v===92?(e.consume(v),b):b(v)}}function factoryLabel(e,t,n,i,a,o){const u=this;let l=0,c;return f;function f(y){return e.enter(i),e.enter(a),e.consume(y),e.exit(a),e.enter(o),d}function d(y){return l>999||y===null||y===91||y===93&&!c||y===94&&!l&&"_hiddenFootnoteSupport"in u.parser.constructs?n(y):y===93?(e.exit(o),e.enter(a),e.consume(y),e.exit(a),e.exit(i),t):markdownLineEnding(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),T(y))}function T(y){return y===null||y===91||y===93||markdownLineEnding(y)||l++>999?(e.exit("chunkString"),d(y)):(e.consume(y),c||(c=!markdownSpace(y)),y===92?m:T)}function m(y){return y===91||y===92||y===93?(e.consume(y),l++,T):T(y)}}function factoryTitle(e,t,n,i,a,o){let u;return l;function l(m){return m===34||m===39||m===40?(e.enter(i),e.enter(a),e.consume(m),e.exit(a),u=m===40?41:m,c):n(m)}function c(m){return m===u?(e.enter(a),e.consume(m),e.exit(a),e.exit(i),t):(e.enter(o),f(m))}function f(m){return m===u?(e.exit(o),c(u)):m===null?n(m):markdownLineEnding(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),factorySpace(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(m))}function d(m){return m===u||m===null||markdownLineEnding(m)?(e.exit("chunkString"),f(m)):(e.consume(m),m===92?T:d)}function T(m){return m===u||m===92?(e.consume(m),d):d(m)}}function factoryWhitespace(e,t){let n;return i;function i(a){return markdownLineEnding(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,i):markdownSpace(a)?factorySpace(e,i,n?"linePrefix":"lineSuffix")(a):t(a)}}const definition={name:"definition",tokenize:tokenizeDefinition},titleBefore={tokenize:tokenizeTitleBefore,partial:!0};function tokenizeDefinition(e,t,n){const i=this;let a;return o;function o(y){return e.enter("definition"),u(y)}function u(y){return factoryLabel.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(y)}function l(y){return a=normalizeIdentifier(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),c):n(y)}function c(y){return markdownLineEndingOrSpace(y)?factoryWhitespace(e,f)(y):f(y)}function f(y){return factoryDestination(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(y)}function d(y){return e.attempt(titleBefore,T,T)(y)}function T(y){return markdownSpace(y)?factorySpace(e,m,"whitespace")(y):m(y)}function m(y){return y===null||markdownLineEnding(y)?(e.exit("definition"),i.parser.defined.push(a),t(y)):n(y)}}function tokenizeTitleBefore(e,t,n){return i;function i(l){return markdownLineEndingOrSpace(l)?factoryWhitespace(e,a)(l):n(l)}function a(l){return factoryTitle(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function o(l){return markdownSpace(l)?factorySpace(e,u,"whitespace")(l):u(l)}function u(l){return l===null||markdownLineEnding(l)?t(l):n(l)}}const hardBreakEscape={name:"hardBreakEscape",tokenize:tokenizeHardBreakEscape};function tokenizeHardBreakEscape(e,t,n){return i;function i(o){return e.enter("hardBreakEscape"),e.consume(o),a}function a(o){return markdownLineEnding(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const headingAtx={name:"headingAtx",tokenize:tokenizeHeadingAtx,resolve:resolveHeadingAtx};function resolveHeadingAtx(e,t){let n=e.length-2,i=3,a,o;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&&(a={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},splice(e,i,n-i+1,[["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t]])),e}function tokenizeHeadingAtx(e,t,n){let i=0;return a;function a(d){return e.enter("atxHeading"),o(d)}function o(d){return e.enter("atxHeadingSequence"),u(d)}function u(d){return d===35&&i++<6?(e.consume(d),u):d===null||markdownLineEndingOrSpace(d)?(e.exit("atxHeadingSequence"),l(d)):n(d)}function l(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||markdownLineEnding(d)?(e.exit("atxHeading"),t(d)):markdownSpace(d)?factorySpace(e,l,"whitespace")(d):(e.enter("atxHeadingText"),f(d))}function c(d){return d===35?(e.consume(d),c):(e.exit("atxHeadingSequence"),l(d))}function f(d){return d===null||d===35||markdownLineEndingOrSpace(d)?(e.exit("atxHeadingText"),l(d)):(e.consume(d),f)}}const htmlBlockNames=["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"],htmlRawNames=["pre","script","style","textarea"],htmlFlow={name:"htmlFlow",tokenize:tokenizeHtmlFlow,resolveTo:resolveToHtmlFlow,concrete:!0},blankLineBefore={tokenize:tokenizeBlankLineBefore,partial:!0},nonLazyContinuationStart={tokenize:tokenizeNonLazyContinuationStart,partial:!0};function resolveToHtmlFlow(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 tokenizeHtmlFlow(e,t,n){const i=this;let a,o,u,l,c;return f;function f(F){return d(F)}function d(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),T}function T(F){return F===33?(e.consume(F),m):F===47?(e.consume(F),o=!0,b):F===63?(e.consume(F),a=3,i.interrupt?t:D):asciiAlpha(F)?(e.consume(F),u=String.fromCharCode(F),L):n(F)}function m(F){return F===45?(e.consume(F),a=2,y):F===91?(e.consume(F),a=5,l=0,S):asciiAlpha(F)?(e.consume(F),a=4,i.interrupt?t:D):n(F)}function y(F){return F===45?(e.consume(F),i.interrupt?t:D):n(F)}function S(F){const r1="CDATA[";return F===r1.charCodeAt(l++)?(e.consume(F),l===r1.length?i.interrupt?t:W:S):n(F)}function b(F){return asciiAlpha(F)?(e.consume(F),u=String.fromCharCode(F),L):n(F)}function L(F){if(F===null||F===47||F===62||markdownLineEndingOrSpace(F)){const r1=F===47,o1=u.toLowerCase();return!r1&&!o&&htmlRawNames.includes(o1)?(a=1,i.interrupt?t(F):W(F)):htmlBlockNames.includes(u.toLowerCase())?(a=6,r1?(e.consume(F),v):i.interrupt?t(F):W(F)):(a=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(F):o?A(F):_(F))}return F===45||asciiAlphanumeric(F)?(e.consume(F),u+=String.fromCharCode(F),L):n(F)}function v(F){return F===62?(e.consume(F),i.interrupt?t:W):n(F)}function A(F){return markdownSpace(F)?(e.consume(F),A):e1(F)}function _(F){return F===47?(e.consume(F),e1):F===58||F===95||asciiAlpha(F)?(e.consume(F),I):markdownSpace(F)?(e.consume(F),_):e1(F)}function I(F){return F===45||F===46||F===58||F===95||asciiAlphanumeric(F)?(e.consume(F),I):C(F)}function C(F){return F===61?(e.consume(F),O):markdownSpace(F)?(e.consume(F),C):_(F)}function O(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),c=F,B):markdownSpace(F)?(e.consume(F),O):z(F)}function B(F){return F===c?(e.consume(F),c=null,q):F===null||markdownLineEnding(F)?n(F):(e.consume(F),B)}function z(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||markdownLineEndingOrSpace(F)?C(F):(e.consume(F),z)}function q(F){return F===47||F===62||markdownSpace(F)?_(F):n(F)}function e1(F){return F===62?(e.consume(F),X):n(F)}function X(F){return F===null||markdownLineEnding(F)?W(F):markdownSpace(F)?(e.consume(F),X):n(F)}function W(F){return F===45&&a===2?(e.consume(F),k):F===60&&a===1?(e.consume(F),V):F===62&&a===4?(e.consume(F),G):F===63&&a===3?(e.consume(F),D):F===93&&a===5?(e.consume(F),w):markdownLineEnding(F)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(blankLineBefore,Q,Z)(F)):F===null||markdownLineEnding(F)?(e.exit("htmlFlowData"),Z(F)):(e.consume(F),W)}function Z(F){return e.check(nonLazyContinuationStart,J,Q)(F)}function J(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),K}function K(F){return F===null||markdownLineEnding(F)?Z(F):(e.enter("htmlFlowData"),W(F))}function k(F){return F===45?(e.consume(F),D):W(F)}function V(F){return F===47?(e.consume(F),u="",R):W(F)}function R(F){if(F===62){const r1=u.toLowerCase();return htmlRawNames.includes(r1)?(e.consume(F),G):W(F)}return asciiAlpha(F)&&u.length<8?(e.consume(F),u+=String.fromCharCode(F),R):W(F)}function w(F){return F===93?(e.consume(F),D):W(F)}function D(F){return F===62?(e.consume(F),G):F===45&&a===2?(e.consume(F),D):W(F)}function G(F){return F===null||markdownLineEnding(F)?(e.exit("htmlFlowData"),Q(F)):(e.consume(F),G)}function Q(F){return e.exit("htmlFlow"),t(F)}}function tokenizeNonLazyContinuationStart(e,t,n){const i=this;return a;function a(u){return markdownLineEnding(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):n(u)}function o(u){return i.parser.lazy[i.now().line]?n(u):t(u)}}function tokenizeBlankLineBefore(e,t,n){return i;function i(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(blankLine,t,n)}}const htmlText={name:"htmlText",tokenize:tokenizeHtmlText};function tokenizeHtmlText(e,t,n){const i=this;let a,o,u;return l;function l(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),c}function c(D){return D===33?(e.consume(D),f):D===47?(e.consume(D),C):D===63?(e.consume(D),_):asciiAlpha(D)?(e.consume(D),z):n(D)}function f(D){return D===45?(e.consume(D),d):D===91?(e.consume(D),o=0,S):asciiAlpha(D)?(e.consume(D),A):n(D)}function d(D){return D===45?(e.consume(D),y):n(D)}function T(D){return D===null?n(D):D===45?(e.consume(D),m):markdownLineEnding(D)?(u=T,V(D)):(e.consume(D),T)}function m(D){return D===45?(e.consume(D),y):T(D)}function y(D){return D===62?k(D):D===45?m(D):T(D)}function S(D){const G="CDATA[";return D===G.charCodeAt(o++)?(e.consume(D),o===G.length?b:S):n(D)}function b(D){return D===null?n(D):D===93?(e.consume(D),L):markdownLineEnding(D)?(u=b,V(D)):(e.consume(D),b)}function L(D){return D===93?(e.consume(D),v):b(D)}function v(D){return D===62?k(D):D===93?(e.consume(D),v):b(D)}function A(D){return D===null||D===62?k(D):markdownLineEnding(D)?(u=A,V(D)):(e.consume(D),A)}function _(D){return D===null?n(D):D===63?(e.consume(D),I):markdownLineEnding(D)?(u=_,V(D)):(e.consume(D),_)}function I(D){return D===62?k(D):_(D)}function C(D){return asciiAlpha(D)?(e.consume(D),O):n(D)}function O(D){return D===45||asciiAlphanumeric(D)?(e.consume(D),O):B(D)}function B(D){return markdownLineEnding(D)?(u=B,V(D)):markdownSpace(D)?(e.consume(D),B):k(D)}function z(D){return D===45||asciiAlphanumeric(D)?(e.consume(D),z):D===47||D===62||markdownLineEndingOrSpace(D)?q(D):n(D)}function q(D){return D===47?(e.consume(D),k):D===58||D===95||asciiAlpha(D)?(e.consume(D),e1):markdownLineEnding(D)?(u=q,V(D)):markdownSpace(D)?(e.consume(D),q):k(D)}function e1(D){return D===45||D===46||D===58||D===95||asciiAlphanumeric(D)?(e.consume(D),e1):X(D)}function X(D){return D===61?(e.consume(D),W):markdownLineEnding(D)?(u=X,V(D)):markdownSpace(D)?(e.consume(D),X):q(D)}function W(D){return D===null||D===60||D===61||D===62||D===96?n(D):D===34||D===39?(e.consume(D),a=D,Z):markdownLineEnding(D)?(u=W,V(D)):markdownSpace(D)?(e.consume(D),W):(e.consume(D),J)}function Z(D){return D===a?(e.consume(D),a=void 0,K):D===null?n(D):markdownLineEnding(D)?(u=Z,V(D)):(e.consume(D),Z)}function J(D){return D===null||D===34||D===39||D===60||D===61||D===96?n(D):D===47||D===62||markdownLineEndingOrSpace(D)?q(D):(e.consume(D),J)}function K(D){return D===47||D===62||markdownLineEndingOrSpace(D)?q(D):n(D)}function k(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),t):n(D)}function V(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),R}function R(D){return markdownSpace(D)?factorySpace(e,w,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):w(D)}function w(D){return e.enter("htmlTextData"),u(D)}}const labelEnd={name:"labelEnd",tokenize:tokenizeLabelEnd,resolveTo:resolveToLabelEnd,resolveAll:resolveAllLabelEnd},resourceConstruct={tokenize:tokenizeResource},referenceFullConstruct={tokenize:tokenizeReferenceFull},referenceCollapsedConstruct={tokenize:tokenizeReferenceCollapsed};function resolveAllLabelEnd(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function resolveToLabelEnd(e,t){let n=e.length,i=0,a,o,u,l;for(;n--;)if(a=e[n][1],o){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(o=n,a.type!=="labelLink")){i=2;break}}else a.type==="labelEnd"&&(u=n);const c={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},f={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[u][1].end)},d={type:"labelText",start:Object.assign({},e[o+i+2][1].end),end:Object.assign({},e[u-2][1].start)};return l=[["enter",c,t],["enter",f,t]],l=push(l,e.slice(o+1,o+i+3)),l=push(l,[["enter",d,t]]),l=push(l,resolveAll(t.parser.constructs.insideSpan.null,e.slice(o+i+4,u-3),t)),l=push(l,[["exit",d,t],e[u-2],e[u-1],["exit",f,t]]),l=push(l,e.slice(u+1)),l=push(l,[["exit",c,t]]),splice(e,o,e.length,l),e}function tokenizeLabelEnd(e,t,n){const i=this;let a=i.events.length,o,u;for(;a--;)if((i.events[a][1].type==="labelImage"||i.events[a][1].type==="labelLink")&&!i.events[a][1]._balanced){o=i.events[a][1];break}return l;function l(m){return o?o._inactive?T(m):(u=i.parser.defined.includes(normalizeIdentifier(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),c):n(m)}function c(m){return m===40?e.attempt(resourceConstruct,d,u?d:T)(m):m===91?e.attempt(referenceFullConstruct,d,u?f:T)(m):u?d(m):T(m)}function f(m){return e.attempt(referenceCollapsedConstruct,d,T)(m)}function d(m){return t(m)}function T(m){return o._balanced=!0,n(m)}}function tokenizeResource(e,t,n){return i;function i(T){return e.enter("resource"),e.enter("resourceMarker"),e.consume(T),e.exit("resourceMarker"),a}function a(T){return markdownLineEndingOrSpace(T)?factoryWhitespace(e,o)(T):o(T)}function o(T){return T===41?d(T):factoryDestination(e,u,l,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(T)}function u(T){return markdownLineEndingOrSpace(T)?factoryWhitespace(e,c)(T):d(T)}function l(T){return n(T)}function c(T){return T===34||T===39||T===40?factoryTitle(e,f,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(T):d(T)}function f(T){return markdownLineEndingOrSpace(T)?factoryWhitespace(e,d)(T):d(T)}function d(T){return T===41?(e.enter("resourceMarker"),e.consume(T),e.exit("resourceMarker"),e.exit("resource"),t):n(T)}}function tokenizeReferenceFull(e,t,n){const i=this;return a;function a(l){return factoryLabel.call(i,e,o,u,"reference","referenceMarker","referenceString")(l)}function o(l){return i.parser.defined.includes(normalizeIdentifier(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(l):n(l)}function u(l){return n(l)}}function tokenizeReferenceCollapsed(e,t,n){return i;function i(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),a}function a(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const labelStartImage={name:"labelStartImage",tokenize:tokenizeLabelStartImage,resolveAll:labelEnd.resolveAll};function tokenizeLabelStartImage(e,t,n){const i=this;return a;function a(l){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(l),e.exit("labelImageMarker"),o}function o(l){return l===91?(e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelImage"),u):n(l)}function u(l){return l===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(l):t(l)}}const labelStartLink={name:"labelStartLink",tokenize:tokenizeLabelStartLink,resolveAll:labelEnd.resolveAll};function tokenizeLabelStartLink(e,t,n){const i=this;return a;function a(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),o}function o(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(u):t(u)}}const lineEnding={name:"lineEnding",tokenize:tokenizeLineEnding};function tokenizeLineEnding(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),factorySpace(e,t,"linePrefix")}}const thematicBreak$1={name:"thematicBreak",tokenize:tokenizeThematicBreak};function tokenizeThematicBreak(e,t,n){let i=0,a;return o;function o(f){return e.enter("thematicBreak"),u(f)}function u(f){return a=f,l(f)}function l(f){return f===a?(e.enter("thematicBreakSequence"),c(f)):i>=3&&(f===null||markdownLineEnding(f))?(e.exit("thematicBreak"),t(f)):n(f)}function c(f){return f===a?(e.consume(f),i++,c):(e.exit("thematicBreakSequence"),markdownSpace(f)?factorySpace(e,l,"whitespace")(f):l(f))}}const list$1={name:"list",tokenize:tokenizeListStart,continuation:{tokenize:tokenizeListContinuation},exit:tokenizeListEnd},listItemPrefixWhitespaceConstruct={tokenize:tokenizeListItemPrefixWhitespace,partial:!0},indentConstruct={tokenize:tokenizeIndent,partial:!0};function tokenizeListStart(e,t,n){const i=this,a=i.events[i.events.length-1];let o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,u=0;return l;function l(y){const S=i.containerState.type||(y===42||y===43||y===45?"listUnordered":"listOrdered");if(S==="listUnordered"?!i.containerState.marker||y===i.containerState.marker:asciiDigit(y)){if(i.containerState.type||(i.containerState.type=S,e.enter(S,{_container:!0})),S==="listUnordered")return e.enter("listItemPrefix"),y===42||y===45?e.check(thematicBreak$1,n,f)(y):f(y);if(!i.interrupt||y===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(y)}return n(y)}function c(y){return asciiDigit(y)&&++u<10?(e.consume(y),c):(!i.interrupt||u<2)&&(i.containerState.marker?y===i.containerState.marker:y===41||y===46)?(e.exit("listItemValue"),f(y)):n(y)}function f(y){return e.enter("listItemMarker"),e.consume(y),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||y,e.check(blankLine,i.interrupt?n:d,e.attempt(listItemPrefixWhitespaceConstruct,m,T))}function d(y){return i.containerState.initialBlankLine=!0,o++,m(y)}function T(y){return markdownSpace(y)?(e.enter("listItemPrefixWhitespace"),e.consume(y),e.exit("listItemPrefixWhitespace"),m):n(y)}function m(y){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(y)}}function tokenizeListContinuation(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(blankLine,a,o);function a(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,factorySpace(e,t,"listItemIndent",i.containerState.size+1)(l)}function o(l){return i.containerState.furtherBlankLines||!markdownSpace(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(indentConstruct,t,u)(l))}function u(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,factorySpace(e,e.attempt(list$1,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function tokenizeIndent(e,t,n){const i=this;return factorySpace(e,a,"listItemIndent",i.containerState.size+1);function a(o){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(o):n(o)}}function tokenizeListEnd(e){e.exit(this.containerState.type)}function tokenizeListItemPrefixWhitespace(e,t,n){const i=this;return factorySpace(e,a,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(o){const u=i.events[i.events.length-1];return!markdownSpace(o)&&u&&u[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const setextUnderline={name:"setextUnderline",tokenize:tokenizeSetextUnderline,resolveTo:resolveToSetextUnderline};function resolveToSetextUnderline(e,t){let n=e.length,i,a,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const u={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",u,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end=Object.assign({},e[o][1].end)):e[i][1]=u,e.push(["exit",u,t]),e}function tokenizeSetextUnderline(e,t,n){const i=this;let a;return o;function o(f){let d=i.events.length,T;for(;d--;)if(i.events[d][1].type!=="lineEnding"&&i.events[d][1].type!=="linePrefix"&&i.events[d][1].type!=="content"){T=i.events[d][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||T)?(e.enter("setextHeadingLine"),a=f,u(f)):n(f)}function u(f){return e.enter("setextHeadingLineSequence"),l(f)}function l(f){return f===a?(e.consume(f),l):(e.exit("setextHeadingLineSequence"),markdownSpace(f)?factorySpace(e,c,"lineSuffix")(f):c(f))}function c(f){return f===null||markdownLineEnding(f)?(e.exit("setextHeadingLine"),t(f)):n(f)}}const flow$1={tokenize:initializeFlow};function initializeFlow(e){const t=this,n=e.attempt(blankLine,i,e.attempt(this.parser.constructs.flowInitial,a,factorySpace(e,e.attempt(this.parser.constructs.flow,a,e.attempt(content,a)),"linePrefix")));return n;function i(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const resolver={resolveAll:createResolver()},string$1=initializeFactory("string"),text$4=initializeFactory("text");function initializeFactory(e){return{tokenize:t,resolveAll:createResolver(e==="text"?resolveAllLineSuffixes:void 0)};function t(n){const i=this,a=this.parser.constructs[e],o=n.attempt(a,u,l);return u;function u(d){return f(d)?o(d):l(d)}function l(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),c}function c(d){return f(d)?(n.exit("data"),o(d)):(n.consume(d),c)}function f(d){if(d===null)return!0;const T=a[d];let m=-1;if(T)for(;++m<T.length;){const y=T[m];if(!y.previous||y.previous.call(i,i.previous))return!0}return!1}}}function createResolver(e){return t;function t(n,i){let a=-1,o;for(;++a<=n.length;)o===void 0?n[a]&&n[a][1].type==="data"&&(o=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==o+2&&(n[o][1].end=n[a-1][1].end,n.splice(o+2,a-o-2),a=o+2),o=void 0);return e?e(n,i):n}}function resolveAllLineSuffixes(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],a=t.sliceStream(i);let o=a.length,u=-1,l=0,c;for(;o--;){const f=a[o];if(typeof f=="string"){for(u=f.length;f.charCodeAt(u-1)===32;)l++,u--;if(u)break;u=-1}else if(f===-2)c=!0,l++;else if(f!==-1){o++;break}}if(l){const f={type:n===e.length||c||l<2?"lineSuffix":"hardBreakTrailing",start:{line:i.end.line,column:i.end.column-l,offset:i.end.offset-l,_index:i.start._index+o,_bufferIndex:o?u:i.start._bufferIndex+u},end:Object.assign({},i.end)};i.end=Object.assign({},f.start),i.start.offset===i.end.offset?Object.assign(i,f):(e.splice(n,0,["enter",f,t],["exit",f,t]),n+=2)}n++}return e}function createTokenizer(e,t,n){let i=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const a={},o=[];let u=[],l=[];const c={consume:A,enter:_,exit:I,attempt:B(C),check:B(O),interrupt:B(O,{interrupt:!0})},f={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:y,sliceSerialize:m,now:S,defineSkip:b,write:T};let d=t.tokenize.call(f,c);return t.resolveAll&&o.push(t),f;function T(X){return u=push(u,X),L(),u[u.length-1]!==null?[]:(z(t,0),f.events=resolveAll(o,f.events,f),f.events)}function m(X,W){return serializeChunks(y(X),W)}function y(X){return sliceChunks(u,X)}function S(){const{line:X,column:W,offset:Z,_index:J,_bufferIndex:K}=i;return{line:X,column:W,offset:Z,_index:J,_bufferIndex:K}}function b(X){a[X.line]=X.column,e1()}function L(){let X;for(;i._index<u.length;){const W=u[i._index];if(typeof W=="string")for(X=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===X&&i._bufferIndex<W.length;)v(W.charCodeAt(i._bufferIndex));else v(W)}}function v(X){d=d(X)}function A(X){markdownLineEnding(X)?(i.line++,i.column=1,i.offset+=X===-3?2:1,e1()):X!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),f.previous=X}function _(X,W){const Z=W||{};return Z.type=X,Z.start=S(),f.events.push(["enter",Z,f]),l.push(Z),Z}function I(X){const W=l.pop();return W.end=S(),f.events.push(["exit",W,f]),W}function C(X,W){z(X,W.from)}function O(X,W){W.restore()}function B(X,W){return Z;function Z(J,K,k){let V,R,w,D;return Array.isArray(J)?Q(J):"tokenize"in J?Q([J]):G(J);function G(i1){return p1;function p1(m1){const v1=m1!==null&&i1[m1],g1=m1!==null&&i1.null,A1=[...Array.isArray(v1)?v1:v1?[v1]:[],...Array.isArray(g1)?g1:g1?[g1]:[]];return Q(A1)(m1)}}function Q(i1){return V=i1,R=0,i1.length===0?k:F(i1[R])}function F(i1){return p1;function p1(m1){return D=q(),w=i1,i1.partial||(f.currentConstruct=i1),i1.name&&f.parser.constructs.disable.null.includes(i1.name)?o1():i1.tokenize.call(W?Object.assign(Object.create(f),W):f,c,r1,o1)(m1)}}function r1(i1){return X(w,D),K}function o1(i1){return D.restore(),++R<V.length?F(V[R]):k}}}function z(X,W){X.resolveAll&&!o.includes(X)&&o.push(X),X.resolve&&splice(f.events,W,f.events.length-W,X.resolve(f.events.slice(W),f)),X.resolveTo&&(f.events=X.resolveTo(f.events,f))}function q(){const X=S(),W=f.previous,Z=f.currentConstruct,J=f.events.length,K=Array.from(l);return{restore:k,from:J};function k(){i=X,f.previous=W,f.currentConstruct=Z,f.events.length=J,l=K,e1()}}function e1(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}function sliceChunks(e,t){const n=t.start._index,i=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let u;if(n===a)u=[e[n].slice(i,o)];else{if(u=e.slice(n,a),i>-1){const l=u[0];typeof l=="string"?u[0]=l.slice(i):u.shift()}o>0&&u.push(e[a].slice(0,o))}return u}function serializeChunks(e,t){let n=-1;const i=[];let a;for(;++n<e.length;){const o=e[n];let u;if(typeof o=="string")u=o;else switch(o){case-5:{u="\r";break}case-4:{u=`
47
+ `,onClick:()=>t(!e),children:[!e&&P.jsx($a,{facet:n.agent.display[Ge.AgentDisplayFacetRoleType.LAUNCHER]}),e&&P.jsx(xf,{className:"w-6 h-6",fill:"white"})]})},Ya=()=>{const e=hr(),t=e.formatMessage({defaultMessage:"Message the assistant...",id:"chatbot.placeholder.content"}),n=e.formatMessage({defaultMessage:"You",id:"chatbot.chatline.label.user"}),r=e.formatMessage({defaultMessage:"Assistant",id:"chatbot.chatline.label.assistant"});return{placeholderTranslation:t,chatlineLabelUserTranslation:n,chatlineLabelAssistantTranslation:r}};function ki(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,i=!1;for(;!i;){r===-1&&(r=n.length,i=!0);const u=n.slice(a,r).trim();(u||!i)&&t.push(u),a=r+1,r=n.indexOf(",",a)}return t}function Fs(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Df=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kf=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wf={};function wi(e,t){return(wf.jsx?kf:Df).test(e)}const Mf=/[ \t\n\f\r]/g;function Bf(e){return typeof e=="object"?e.type==="text"?Mi(e.value):!1:Mi(e)}function Mi(e){return e.replace(Mf,"")===""}class vn{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}vn.prototype.property={};vn.prototype.normal={};vn.prototype.space=null;function Hs(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new vn(n,r,t)}function In(e){return e.toLowerCase()}class rt{constructor(t,n){this.property=t,this.attribute=n}}rt.prototype.space=null;rt.prototype.boolean=!1;rt.prototype.booleanish=!1;rt.prototype.overloadedBoolean=!1;rt.prototype.number=!1;rt.prototype.commaSeparated=!1;rt.prototype.spaceSeparated=!1;rt.prototype.commaOrSpaceSeparated=!1;rt.prototype.mustUseProperty=!1;rt.prototype.defined=!1;let Ff=0;const ue=Ft(),De=Ft(),Us=Ft(),M=Ft(),ye=Ft(),Xt=Ft(),Xe=Ft();function Ft(){return 2**++Ff}const Ta=Object.freeze(Object.defineProperty({__proto__:null,boolean:ue,booleanish:De,commaOrSpaceSeparated:Xe,commaSeparated:Xt,number:M,overloadedBoolean:Us,spaceSeparated:ye},Symbol.toStringTag,{value:"Module"})),wr=Object.keys(Ta);class Ga extends rt{constructor(t,n,r,a){let i=-1;if(super(t,n),Bi(this,"space",a),typeof r=="number")for(;++i<wr.length;){const u=wr[i];Bi(this,wr[i],(r&Ta[u])===Ta[u])}}}Ga.prototype.defined=!0;function Bi(e,t,n){n&&(e[t]=n)}const Hf={}.hasOwnProperty;function nn(e){const t={},n={};let r;for(r in e.properties)if(Hf.call(e.properties,r)){const a=e.properties[r],i=new Ga(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[In(r)]=r,n[In(i.attribute)]=r}return new vn(t,n,e.space)}const js=nn({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),$s=nn({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Ys(e,t){return t in e?e[t]:t}function Gs(e,t){return Ys(e,t.toLowerCase())}const zs=nn({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Gs,properties:{xmlns:null,xmlnsXLink:null}}),Vs=nn({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:De,ariaAutoComplete:null,ariaBusy:De,ariaChecked:De,ariaColCount:M,ariaColIndex:M,ariaColSpan:M,ariaControls:ye,ariaCurrent:null,ariaDescribedBy:ye,ariaDetails:null,ariaDisabled:De,ariaDropEffect:ye,ariaErrorMessage:null,ariaExpanded:De,ariaFlowTo:ye,ariaGrabbed:De,ariaHasPopup:null,ariaHidden:De,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ye,ariaLevel:M,ariaLive:null,ariaModal:De,ariaMultiLine:De,ariaMultiSelectable:De,ariaOrientation:null,ariaOwns:ye,ariaPlaceholder:null,ariaPosInSet:M,ariaPressed:De,ariaReadOnly:De,ariaRelevant:null,ariaRequired:De,ariaRoleDescription:ye,ariaRowCount:M,ariaRowIndex:M,ariaRowSpan:M,ariaSelected:De,ariaSetSize:M,ariaSort:null,ariaValueMax:M,ariaValueMin:M,ariaValueNow:M,ariaValueText:null,role:null}}),Uf=nn({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Gs,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xt,acceptCharset:ye,accessKey:ye,action:null,allow:null,allowFullScreen:ue,allowPaymentRequest:ue,allowUserMedia:ue,alt:null,as:null,async:ue,autoCapitalize:null,autoComplete:ye,autoFocus:ue,autoPlay:ue,blocking:ye,capture:null,charSet:null,checked:ue,cite:null,className:ye,cols:M,colSpan:null,content:null,contentEditable:De,controls:ue,controlsList:ye,coords:M|Xt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ue,defer:ue,dir:null,dirName:null,disabled:ue,download:Us,draggable:De,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ue,formTarget:null,headers:ye,height:M,hidden:ue,high:M,href:null,hrefLang:null,htmlFor:ye,httpEquiv:ye,id:null,imageSizes:null,imageSrcSet:null,inert:ue,inputMode:null,integrity:null,is:null,isMap:ue,itemId:null,itemProp:ye,itemRef:ye,itemScope:ue,itemType:ye,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ue,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:ue,muted:ue,name:null,nonce:null,noModule:ue,noValidate:ue,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:ue,optimum:M,pattern:null,ping:ye,placeholder:null,playsInline:ue,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ue,referrerPolicy:null,rel:ye,required:ue,reversed:ue,rows:M,rowSpan:M,sandbox:ye,scope:null,scoped:ue,seamless:ue,selected:ue,shadowRootDelegatesFocus:ue,shadowRootMode:null,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:De,src:null,srcDoc:null,srcLang:null,srcSet:null,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:ue,useMap:null,value:De,width:M,wrap:null,align:null,aLink:null,archive:ye,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ue,declare:ue,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:ue,noHref:ue,noShade:ue,noWrap:ue,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:De,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ue,disableRemotePlayback:ue,prefix:null,property:null,results:M,security:null,unselectable:null}}),jf=nn({space:"svg",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",colorRendering:"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",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-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"},transform:Ys,properties:{about:Xe,accentHeight:M,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:M,amplitude:M,arabicForm:null,ascent:M,attributeName:null,attributeType:null,azimuth:M,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:M,by:null,calcMode:null,capHeight:M,className:ye,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:M,diffuseConstant:M,direction:null,display:null,dur:null,divisor:M,dominantBaseline:null,download:ue,dx:null,dy:null,edgeMode:null,editable:null,elevation:M,enableBackground:null,end:null,event:null,exponent:M,externalResourcesRequired:null,fill:null,fillOpacity:M,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:Xt,g2:Xt,glyphName:Xt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:M,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:M,horizOriginX:M,horizOriginY:M,id:null,ideographic:M,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:M,k:M,k1:M,k2:M,k3:M,k4:M,kernelMatrix:Xe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:M,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:M,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,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:M,overlineThickness:M,paintOrder:null,panose1:null,path:null,pathLength:M,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ye,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:M,pointsAtY:M,pointsAtZ:M,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xe,rev:Xe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xe,requiredFeatures:Xe,requiredFonts:Xe,requiredFormats:Xe,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:M,specularExponent:M,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:M,strikethroughThickness:M,string:null,stroke:null,strokeDashArray:Xe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:M,strokeOpacity:M,strokeWidth:null,style:null,surfaceScale:M,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xe,tabIndex:M,tableValues:null,target:null,targetX:M,targetY:M,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:M,underlineThickness:M,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:M,values:null,vAlphabetic:M,vMathematical:M,vectorEffect:null,vHanging:M,vIdeographic:M,version:null,vertAdvY:M,vertOriginX:M,vertOriginY:M,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:M,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),$f=/^data[-\w.:]+$/i,Fi=/-[a-z]/g,Yf=/[A-Z]/g;function br(e,t){const n=In(t);let r=t,a=rt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&$f.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Fi,zf);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Fi.test(i)){let u=i.replace(Yf,Gf);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}a=Ga}return new a(r,t)}function Gf(e){return"-"+e.toLowerCase()}function zf(e){return e.charAt(1).toUpperCase()}const Vf={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"},Pn=Hs([$s,js,zs,Vs,Uf],"html"),Ct=Hs([$s,js,zs,Vs,jf],"svg");function Hi(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function qs(e){return e.join(" ").trim()}var $t={},Mr,Ui;function qf(){if(Ui)return Mr;Ui=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
48
+ `,c="/",f="*",d="",m="comment",h="declaration";Mr=function(A,R){if(typeof A!="string")throw new TypeError("First argument must be a string");if(!A)return[];R=R||{};var S=1,v=1;function O(G){var $=G.match(t);$&&(S+=$.length);var X=G.lastIndexOf(l);v=~X?G.length-X:v+G.length}function w(){var G={line:S,column:v};return function($){return $.position=new C(G),se(),$}}function C(G){this.start=G,this.end={line:S,column:v},this.source=R.source}C.prototype.content=A;function I(G){var $=new Error(R.source+":"+S+":"+v+": "+G);if($.reason=G,$.filename=R.source,$.line=S,$.column=v,$.source=A,!R.silent)throw $}function W(G){var $=G.exec(A);if($){var X=$[0];return O(X),A=A.slice(X.length),$}}function se(){W(n)}function ne(G){var $;for(G=G||[];$=Y();)$!==!1&&G.push($);return G}function Y(){var G=w();if(!(c!=A.charAt(0)||f!=A.charAt(1))){for(var $=2;d!=A.charAt($)&&(f!=A.charAt($)||c!=A.charAt($+1));)++$;if($+=2,d===A.charAt($-1))return I("End of comment missing");var X=A.slice(2,$-2);return v+=2,O(X),A=A.slice($),v+=2,G({type:m,comment:X})}}function F(){var G=w(),$=W(r);if($){if(Y(),!W(a))return I("property missing ':'");var X=W(i),oe=G({type:h,property:y($[0].replace(e,d)),value:X?y(X[0].replace(e,d)):d});return W(u),oe}}function B(){var G=[];ne(G);for(var $;$=F();)$!==!1&&(G.push($),ne(G));return G}return se(),B()};function y(A){return A?A.replace(o,d):d}return Mr}var ji;function Wf(){if(ji)return $t;ji=1;var e=$t&&$t.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty($t,"__esModule",{value:!0});var t=e(qf());function n(r,a){var i=null;if(!r||typeof r!="string")return i;var u=(0,t.default)(r),o=typeof a=="function";return u.forEach(function(l){if(l.type==="declaration"){var c=l.property,f=l.value;o?a(c,f,l):f&&(i=i||{},i[c]=f)}}),i}return $t.default=n,$t}var Xf=Wf();const $i=Ba(Xf),Qf=$i.default||$i,Tr=Ws("end"),mt=Ws("start");function Ws(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Kf(e){const t=mt(e),n=Tr(e);if(t&&n)return{start:t,end:n}}function Tn(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Yi(e.position):"start"in e||"end"in e?Yi(e):"line"in e||"column"in e?ga(e):""}function ga(e){return Gi(e&&e.line)+":"+Gi(e&&e.column)}function Yi(e){return ga(e&&e.start)+"-"+ga(e&&e.end)}function Gi(e){return e&&typeof e=="number"?e:1}class He extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},u=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(u=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=o?o.line:void 0,this.name=Tn(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=u&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}He.prototype.file="";He.prototype.name="";He.prototype.reason="";He.prototype.message="";He.prototype.stack="";He.prototype.column=void 0;He.prototype.line=void 0;He.prototype.ancestors=void 0;He.prototype.cause=void 0;He.prototype.fatal=void 0;He.prototype.place=void 0;He.prototype.ruleId=void 0;He.prototype.source=void 0;const za={}.hasOwnProperty,Zf=new Map,Jf=/[A-Z]/g,e0=/-([a-z])/g,t0=new Set(["table","tbody","thead","tfoot","tr"]),n0=new Set(["td","th"]),Xs="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function r0(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=f0(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=c0(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,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"?Ct:Pn,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Qs(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Qs(e,t,n){if(t.type==="element")return a0(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return i0(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return s0(e,t,n);if(t.type==="mdxjsEsm")return u0(e,t);if(t.type==="root")return o0(e,t,n);if(t.type==="text")return l0(e,t)}function a0(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Ct,e.schema=a),e.ancestors.push(t);const i=Zs(e,t.tagName,!1),u=d0(e,t);let o=qa(e,t);return t0.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!Bf(l):!0})),Ks(e,u,i,t),Va(u,o),e.ancestors.pop(),e.schema=r,e.create(t,i,u,n)}function i0(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Nn(e,t.position)}function u0(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Nn(e,t.position)}function s0(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Ct,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Zs(e,t.name,!0),u=h0(e,t),o=qa(e,t);return Ks(e,u,i,t),Va(u,o),e.ancestors.pop(),e.schema=r,e.create(t,i,u,n)}function o0(e,t,n){const r={};return Va(r,qa(e,t)),e.create(t,e.Fragment,r,n)}function l0(e,t){return t.value}function Ks(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Va(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function c0(e,t,n){return r;function r(a,i,u,o){const c=Array.isArray(u.children)?n:t;return o?c(i,u,o):c(i,u)}}function f0(e,t){return n;function n(r,a,i,u){const o=Array.isArray(i.children),l=mt(r);return t(a,i,u,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function d0(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&za.call(t.properties,a)){const i=m0(e,a,t.properties[a]);if(i){const[u,o]=i;e.tableCellAlignToStyle&&u==="align"&&typeof o=="string"&&n0.has(t.tagName)?r=o:n[u]=o}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function h0(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const u=i.expression;u.type;const o=u.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Nn(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,i=e.evaluater.evaluateExpression(o.expression)}else Nn(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function qa(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Zf;for(;++r<t.children.length;){const i=t.children[r];let u;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=a.get(l)||0;u=l+"-"+c,a.set(l,c+1)}}const o=Qs(e,i,u);o!==void 0&&n.push(o)}return n}function m0(e,t,n){const r=br(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Fs(n):qs(n)),r.property==="style"){let a=typeof n=="object"?n:p0(e,String(n));return e.stylePropertyNameCase==="css"&&(a=E0(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Vf[r.property]||r.property:r.attribute,n]}}function p0(e,t){const n={};try{Qf(t,r)}catch(a){if(!e.ignoreInvalidStyle){const i=a,u=new He("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw u.file=e.filePath||void 0,u.url=Xs+"#cannot-parse-style-attribute",u}}return n;function r(a,i){let u=a;u.slice(0,2)!=="--"&&(u.slice(0,4)==="-ms-"&&(u="ms-"+u.slice(4)),u=u.replace(e0,T0)),n[u]=i}}function Zs(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,u;for(;++i<a.length;){const o=wi(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};u=u?{type:"MemberExpression",object:u,property:o,computed:!!(i&&o.type==="Literal"),optional:!1}:o}r=u}else r=wi(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return za.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Nn(e)}function Nn(e,t){const n=new He("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=Xs+"#cannot-handle-mdx-estrees-without-createevaluater",n}function E0(e){const t={};let n;for(n in e)za.call(e,n)&&(t[b0(n)]=e[n]);return t}function b0(e){let t=e.replace(Jf,g0);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function T0(e,t){return t.toUpperCase()}function g0(e){return"-"+e.toLowerCase()}const Br={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"]},A0={};function _0(e,t){const n=A0,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Js(e,r,a)}function Js(e,t,n){if(y0(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 zi(e.children,t,n)}return Array.isArray(e)?zi(e,t,n):""}function zi(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Js(e[a],t,n);return r.join("")}function y0(e){return!!(e&&typeof e=="object")}const Vi=document.createElement("i");function Wa(e){const t="&"+e+";";Vi.innerHTML=t;const n=Vi.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ht(e,t,n,r){const a=e.length;let i=0,u;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)u=Array.from(r),u.unshift(t,n),e.splice(...u);else for(n&&e.splice(t,n);i<r.length;)u=r.slice(i,i+1e4),u.unshift(t,0),e.splice(...u),i+=1e4,t+=1e4}function Ze(e,t){return e.length>0?(ht(e,e.length,0,t),e):t}const qi={}.hasOwnProperty;function S0(e){const t={};let n=-1;for(;++n<e.length;)x0(t,e[n]);return t}function x0(e,t){let n;for(n in t){const a=(qi.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let u;if(i)for(u in i){qi.call(a,u)||(a[u]=[]);const o=i[u];C0(a[u],Array.isArray(o)?o:o?[o]:[])}}}function C0(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ht(e,0,0,r)}function eo(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 Qt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ft=It(/[A-Za-z]/),Qe=It(/[\dA-Za-z]/),I0=It(/[#-'*+\--9=?A-Z^-~]/);function Aa(e){return e!==null&&(e<32||e===127)}const _a=It(/\d/),N0=It(/[\dA-Fa-f]/),O0=It(/[!-/:-@[-`{-~]/);function ee(e){return e!==null&&e<-2}function ze(e){return e!==null&&(e<0||e===32)}function me(e){return e===-2||e===-1||e===32}const L0=It(new RegExp("\\p{P}|\\p{S}","u")),R0=It(/\s/);function It(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function rn(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let u="";if(i===37&&Qe(e.charCodeAt(n+1))&&Qe(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(u=String.fromCharCode(i));else if(i>55295&&i<57344){const o=e.charCodeAt(n+1);i<56320&&o>56319&&o<57344?(u=String.fromCharCode(i,o),a=1):u="�"}else u=String.fromCharCode(i);u&&(t.push(e.slice(r,n),encodeURIComponent(u)),r=n+a+1,u=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Se(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return u;function u(l){return me(l)?(e.enter(n),o(l)):t(l)}function o(l){return me(l)&&i++<a?(e.consume(l),o):(e.exit(n),t(l))}}const v0={tokenize:P0};function P0(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Se(e,t,"linePrefix")}function a(o){return e.enter("paragraph"),i(o)}function i(o){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,u(o)}function u(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return ee(o)?(e.consume(o),e.exit("chunkText"),i):(e.consume(o),u)}}const D0={tokenize:k0},Wi={tokenize:w0};function k0(e){const t=this,n=[];let r=0,a,i,u;return o;function o(O){if(r<n.length){const w=n[r];return t.containerState=w[1],e.attempt(w[0].continuation,l,c)(O)}return c(O)}function l(O){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&v();const w=t.events.length;let C=w,I;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){I=t.events[C][1].end;break}S(r);let W=w;for(;W<t.events.length;)t.events[W][1].end=Object.assign({},I),W++;return ht(t.events,C+1,0,t.events.slice(w)),t.events.length=W,c(O)}return o(O)}function c(O){if(r===n.length){if(!a)return m(O);if(a.currentConstruct&&a.currentConstruct.concrete)return y(O);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Wi,f,d)(O)}function f(O){return a&&v(),S(r),m(O)}function d(O){return t.parser.lazy[t.now().line]=r!==n.length,u=t.now().offset,y(O)}function m(O){return t.containerState={},e.attempt(Wi,h,y)(O)}function h(O){return r++,n.push([t.currentConstruct,t.containerState]),m(O)}function y(O){if(O===null){a&&v(),S(0),e.consume(O);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:i,_tokenizer:a}),A(O)}function A(O){if(O===null){R(e.exit("chunkFlow"),!0),S(0),e.consume(O);return}return ee(O)?(e.consume(O),R(e.exit("chunkFlow")),r=0,t.interrupt=void 0,o):(e.consume(O),A)}function R(O,w){const C=t.sliceStream(O);if(w&&C.push(null),O.previous=i,i&&(i.next=O),i=O,a.defineSkip(O.start),a.write(C),t.parser.lazy[O.start.line]){let I=a.events.length;for(;I--;)if(a.events[I][1].start.offset<u&&(!a.events[I][1].end||a.events[I][1].end.offset>u))return;const W=t.events.length;let se=W,ne,Y;for(;se--;)if(t.events[se][0]==="exit"&&t.events[se][1].type==="chunkFlow"){if(ne){Y=t.events[se][1].end;break}ne=!0}for(S(r),I=W;I<t.events.length;)t.events[I][1].end=Object.assign({},Y),I++;ht(t.events,se+1,0,t.events.slice(W)),t.events.length=I}}function S(O){let w=n.length;for(;w-- >O;){const C=n[w];t.containerState=C[1],C[0].exit.call(t,e)}n.length=O}function v(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function w0(e,t,n){return Se(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Xi(e){if(e===null||ze(e)||R0(e))return 1;if(L0(e))return 2}function Xa(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const ya={name:"attention",tokenize:B0,resolveAll:M0};function M0(e,t){let n=-1,r,a,i,u,o,l,c,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d=Object.assign({},e[r][1].end),m=Object.assign({},e[n][1].start);Qi(d,-l),Qi(m,l),u={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:m},i={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},a={type:l>1?"strong":"emphasis",start:Object.assign({},u.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},u.start),e[n][1].start=Object.assign({},o.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Ze(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Ze(c,[["enter",a,t],["enter",u,t],["exit",u,t],["enter",i,t]]),c=Ze(c,Xa(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Ze(c,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=Ze(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ht(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function B0(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Xi(r);let i;return u;function u(l){return i=l,e.enter("attentionSequence"),o(l)}function o(l){if(l===i)return e.consume(l),o;const c=e.exit("attentionSequence"),f=Xi(l),d=!f||f===2&&a||n.includes(l),m=!a||a===2&&f||n.includes(r);return c._open=!!(i===42?d:d&&(a||!m)),c._close=!!(i===42?m:m&&(f||!d)),t(l)}}function Qi(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const F0={name:"autolink",tokenize:H0};function H0(e,t,n){let r=0;return a;function a(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(h){return ft(h)?(e.consume(h),u):c(h)}function u(h){return h===43||h===45||h===46||Qe(h)?(r=1,o(h)):c(h)}function o(h){return h===58?(e.consume(h),r=0,l):(h===43||h===45||h===46||Qe(h))&&r++<32?(e.consume(h),o):(r=0,c(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Aa(h)?n(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),f):I0(h)?(e.consume(h),c):n(h)}function f(h){return Qe(h)?d(h):n(h)}function d(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):m(h)}function m(h){if((h===45||Qe(h))&&r++<63){const y=h===45?m:d;return e.consume(h),y}return n(h)}}const gr={tokenize:U0,partial:!0};function U0(e,t,n){return r;function r(i){return me(i)?Se(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||ee(i)?t(i):n(i)}}const to={name:"blockQuote",tokenize:j0,continuation:{tokenize:$0},exit:Y0};function j0(e,t,n){const r=this;return a;function a(u){if(u===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),i}return n(u)}function i(u){return me(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function $0(e,t,n){const r=this;return a;function a(u){return me(u)?Se(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):i(u)}function i(u){return e.attempt(to,t,n)(u)}}function Y0(e){e.exit("blockQuote")}const no={name:"characterEscape",tokenize:G0};function G0(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return O0(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const ro={name:"characterReference",tokenize:z0};function z0(e,t,n){const r=this;let a=0,i,u;return o;function o(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,u=Qe,f(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,u=N0,f):(e.enter("characterReferenceValue"),i=7,u=_a,f(d))}function f(d){if(d===59&&a){const m=e.exit("characterReferenceValue");return u===Qe&&!Wa(r.sliceSerialize(m))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(d)&&a++<i?(e.consume(d),f):n(d)}}const Ki={tokenize:q0,partial:!0},Zi={name:"codeFenced",tokenize:V0,concrete:!0};function V0(e,t,n){const r=this,a={tokenize:C,partial:!0};let i=0,u=0,o;return l;function l(I){return c(I)}function c(I){const W=r.events[r.events.length-1];return i=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,o=I,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(I)}function f(I){return I===o?(u++,e.consume(I),f):u<3?n(I):(e.exit("codeFencedFenceSequence"),me(I)?Se(e,d,"whitespace")(I):d(I))}function d(I){return I===null||ee(I)?(e.exit("codeFencedFence"),r.interrupt?t(I):e.check(Ki,A,w)(I)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(I))}function m(I){return I===null||ee(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(I)):me(I)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Se(e,h,"whitespace")(I)):I===96&&I===o?n(I):(e.consume(I),m)}function h(I){return I===null||ee(I)?d(I):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(I))}function y(I){return I===null||ee(I)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(I)):I===96&&I===o?n(I):(e.consume(I),y)}function A(I){return e.attempt(a,w,R)(I)}function R(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),S}function S(I){return i>0&&me(I)?Se(e,v,"linePrefix",i+1)(I):v(I)}function v(I){return I===null||ee(I)?e.check(Ki,A,w)(I):(e.enter("codeFlowValue"),O(I))}function O(I){return I===null||ee(I)?(e.exit("codeFlowValue"),v(I)):(e.consume(I),O)}function w(I){return e.exit("codeFenced"),t(I)}function C(I,W,se){let ne=0;return Y;function Y(X){return I.enter("lineEnding"),I.consume(X),I.exit("lineEnding"),F}function F(X){return I.enter("codeFencedFence"),me(X)?Se(I,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(X):B(X)}function B(X){return X===o?(I.enter("codeFencedFenceSequence"),G(X)):se(X)}function G(X){return X===o?(ne++,I.consume(X),G):ne>=u?(I.exit("codeFencedFenceSequence"),me(X)?Se(I,$,"whitespace")(X):$(X)):se(X)}function $(X){return X===null||ee(X)?(I.exit("codeFencedFence"),W(X)):se(X)}}}function q0(e,t,n){const r=this;return a;function a(u){return u===null?n(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i)}function i(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}const Fr={name:"codeIndented",tokenize:X0},W0={tokenize:Q0,partial:!0};function X0(e,t,n){const r=this;return a;function a(c){return e.enter("codeIndented"),Se(e,i,"linePrefix",5)(c)}function i(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?u(c):n(c)}function u(c){return c===null?l(c):ee(c)?e.attempt(W0,u,l)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||ee(c)?(e.exit("codeFlowValue"),u(c)):(e.consume(c),o)}function l(c){return e.exit("codeIndented"),t(c)}}function Q0(e,t,n){const r=this;return a;function a(u){return r.parser.lazy[r.now().line]?n(u):ee(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):Se(e,i,"linePrefix",5)(u)}function i(u){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(u):ee(u)?a(u):n(u)}}const K0={name:"codeText",tokenize:ed,resolve:Z0,previous:J0};function Z0(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function J0(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ed(e,t,n){let r=0,a,i;return u;function u(d){return e.enter("codeText"),e.enter("codeTextSequence"),o(d)}function o(d){return d===96?(e.consume(d),r++,o):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(i=e.enter("codeTextSequence"),a=0,f(d)):ee(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(d))}function c(d){return d===null||d===32||d===96||ee(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),c)}function f(d){return d===96?(e.consume(d),a++,f):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(i.type="codeTextData",c(d))}}function ao(e){const t={};let n=-1,r,a,i,u,o,l,c;for(;++n<e.length;){for(;n in t;)n=t[n];if(r=e[n],n&&r[1].type==="chunkFlow"&&e[n-1][1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,td(e,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,a=void 0;i--&&(u=e[i],u[1].type==="lineEnding"||u[1].type==="lineEndingBlank");)u[0]==="enter"&&(a&&(e[a][1].type="lineEndingBlank"),u[1].type="lineEnding",a=i);a&&(r[1].end=Object.assign({},e[a][1].start),o=e.slice(a,n),o.unshift(r),ht(e,a,n-a+1,o))}}return!c}function td(e,t){const n=e[t][1],r=e[t][2];let a=t-1;const i=[],u=n._tokenizer||r.parser[n.contentType](n.start),o=u.events,l=[],c={};let f,d,m=-1,h=n,y=0,A=0;const R=[A];for(;h;){for(;e[++a][1]!==h;);i.push(a),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),d&&u.defineSkip(h.start),h._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(f),h._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),d=h,h=h.next}for(h=n;++m<o.length;)o[m][0]==="exit"&&o[m-1][0]==="enter"&&o[m][1].type===o[m-1][1].type&&o[m][1].start.line!==o[m][1].end.line&&(A=m+1,R.push(A),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(u.events=[],h?(h._tokenizer=void 0,h.previous=void 0):R.pop(),m=R.length;m--;){const S=o.slice(R[m],R[m+1]),v=i.pop();l.unshift([v,v+S.length-1]),ht(e,v,2,S)}for(m=-1;++m<l.length;)c[y+l[m][0]]=y+l[m][1],y+=l[m][1]-l[m][0]-1;return c}const nd={tokenize:id,resolve:ad},rd={tokenize:ud,partial:!0};function ad(e){return ao(e),e}function id(e,t){let n;return r;function r(o){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(o)}function a(o){return o===null?i(o):ee(o)?e.check(rd,u,i)(o):(e.consume(o),a)}function i(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function u(o){return e.consume(o),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function ud(e,t,n){const r=this;return a;function a(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),Se(e,i,"linePrefix")}function i(u){if(u===null||ee(u))return n(u);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(u):e.interrupt(r.parser.constructs.flow,n,t)(u)}}function io(e,t,n,r,a,i,u,o,l){const c=l||Number.POSITIVE_INFINITY;let f=0;return d;function d(S){return S===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(S),e.exit(i),m):S===null||S===32||S===41||Aa(S)?n(S):(e.enter(r),e.enter(u),e.enter(o),e.enter("chunkString",{contentType:"string"}),A(S))}function m(S){return S===62?(e.enter(i),e.consume(S),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===62?(e.exit("chunkString"),e.exit(o),m(S)):S===null||S===60||ee(S)?n(S):(e.consume(S),S===92?y:h)}function y(S){return S===60||S===62||S===92?(e.consume(S),h):h(S)}function A(S){return!f&&(S===null||S===41||ze(S))?(e.exit("chunkString"),e.exit(o),e.exit(u),e.exit(r),t(S)):f<c&&S===40?(e.consume(S),f++,A):S===41?(e.consume(S),f--,A):S===null||S===32||S===40||Aa(S)?n(S):(e.consume(S),S===92?R:A)}function R(S){return S===40||S===41||S===92?(e.consume(S),A):A(S)}}function uo(e,t,n,r,a,i){const u=this;let o=0,l;return c;function c(h){return e.enter(r),e.enter(a),e.consume(h),e.exit(a),e.enter(i),f}function f(h){return o>999||h===null||h===91||h===93&&!l||h===94&&!o&&"_hiddenFootnoteSupport"in u.parser.constructs?n(h):h===93?(e.exit(i),e.enter(a),e.consume(h),e.exit(a),e.exit(r),t):ee(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),d(h))}function d(h){return h===null||h===91||h===93||ee(h)||o++>999?(e.exit("chunkString"),f(h)):(e.consume(h),l||(l=!me(h)),h===92?m:d)}function m(h){return h===91||h===92||h===93?(e.consume(h),o++,d):d(h)}}function so(e,t,n,r,a,i){let u;return o;function o(m){return m===34||m===39||m===40?(e.enter(r),e.enter(a),e.consume(m),e.exit(a),u=m===40?41:m,l):n(m)}function l(m){return m===u?(e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):(e.enter(i),c(m))}function c(m){return m===u?(e.exit(i),l(u)):m===null?n(m):ee(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),Se(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(m))}function f(m){return m===u||m===null||ee(m)?(e.exit("chunkString"),c(m)):(e.consume(m),m===92?d:f)}function d(m){return m===u||m===92?(e.consume(m),f):f(m)}}function gn(e,t){let n;return r;function r(a){return ee(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):me(a)?Se(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const sd={name:"definition",tokenize:ld},od={tokenize:cd,partial:!0};function ld(e,t,n){const r=this;let a;return i;function i(h){return e.enter("definition"),u(h)}function u(h){return uo.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return a=Qt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return ze(h)?gn(e,c)(h):c(h)}function c(h){return io(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(od,d,d)(h)}function d(h){return me(h)?Se(e,m,"whitespace")(h):m(h)}function m(h){return h===null||ee(h)?(e.exit("definition"),r.parser.defined.push(a),t(h)):n(h)}}function cd(e,t,n){return r;function r(o){return ze(o)?gn(e,a)(o):n(o)}function a(o){return so(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function i(o){return me(o)?Se(e,u,"whitespace")(o):u(o)}function u(o){return o===null||ee(o)?t(o):n(o)}}const fd={name:"hardBreakEscape",tokenize:dd};function dd(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return ee(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const hd={name:"headingAtx",tokenize:pd,resolve:md};function md(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ht(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function pd(e,t,n){let r=0;return a;function a(f){return e.enter("atxHeading"),i(f)}function i(f){return e.enter("atxHeadingSequence"),u(f)}function u(f){return f===35&&r++<6?(e.consume(f),u):f===null||ze(f)?(e.exit("atxHeadingSequence"),o(f)):n(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||ee(f)?(e.exit("atxHeading"),t(f)):me(f)?Se(e,o,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),o(f))}function c(f){return f===null||f===35||ze(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),c)}}const Ed=["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"],Ji=["pre","script","style","textarea"],bd={name:"htmlFlow",tokenize:_d,resolveTo:Ad,concrete:!0},Td={tokenize:Sd,partial:!0},gd={tokenize:yd,partial:!0};function Ad(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 _d(e,t,n){const r=this;let a,i,u,o,l;return c;function c(T){return f(T)}function f(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),d}function d(T){return T===33?(e.consume(T),m):T===47?(e.consume(T),i=!0,A):T===63?(e.consume(T),a=3,r.interrupt?t:p):ft(T)?(e.consume(T),u=String.fromCharCode(T),R):n(T)}function m(T){return T===45?(e.consume(T),a=2,h):T===91?(e.consume(T),a=5,o=0,y):ft(T)?(e.consume(T),a=4,r.interrupt?t:p):n(T)}function h(T){return T===45?(e.consume(T),r.interrupt?t:p):n(T)}function y(T){const q="CDATA[";return T===q.charCodeAt(o++)?(e.consume(T),o===q.length?r.interrupt?t:B:y):n(T)}function A(T){return ft(T)?(e.consume(T),u=String.fromCharCode(T),R):n(T)}function R(T){if(T===null||T===47||T===62||ze(T)){const q=T===47,Z=u.toLowerCase();return!q&&!i&&Ji.includes(Z)?(a=1,r.interrupt?t(T):B(T)):Ed.includes(u.toLowerCase())?(a=6,q?(e.consume(T),S):r.interrupt?t(T):B(T)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(T):i?v(T):O(T))}return T===45||Qe(T)?(e.consume(T),u+=String.fromCharCode(T),R):n(T)}function S(T){return T===62?(e.consume(T),r.interrupt?t:B):n(T)}function v(T){return me(T)?(e.consume(T),v):Y(T)}function O(T){return T===47?(e.consume(T),Y):T===58||T===95||ft(T)?(e.consume(T),w):me(T)?(e.consume(T),O):Y(T)}function w(T){return T===45||T===46||T===58||T===95||Qe(T)?(e.consume(T),w):C(T)}function C(T){return T===61?(e.consume(T),I):me(T)?(e.consume(T),C):O(T)}function I(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),l=T,W):me(T)?(e.consume(T),I):se(T)}function W(T){return T===l?(e.consume(T),l=null,ne):T===null||ee(T)?n(T):(e.consume(T),W)}function se(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||ze(T)?C(T):(e.consume(T),se)}function ne(T){return T===47||T===62||me(T)?O(T):n(T)}function Y(T){return T===62?(e.consume(T),F):n(T)}function F(T){return T===null||ee(T)?B(T):me(T)?(e.consume(T),F):n(T)}function B(T){return T===45&&a===2?(e.consume(T),oe):T===60&&a===1?(e.consume(T),pe):T===62&&a===4?(e.consume(T),H):T===63&&a===3?(e.consume(T),p):T===93&&a===5?(e.consume(T),Le):ee(T)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Td,Q,G)(T)):T===null||ee(T)?(e.exit("htmlFlowData"),G(T)):(e.consume(T),B)}function G(T){return e.check(gd,$,Q)(T)}function $(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),X}function X(T){return T===null||ee(T)?G(T):(e.enter("htmlFlowData"),B(T))}function oe(T){return T===45?(e.consume(T),p):B(T)}function pe(T){return T===47?(e.consume(T),u="",ve):B(T)}function ve(T){if(T===62){const q=u.toLowerCase();return Ji.includes(q)?(e.consume(T),H):B(T)}return ft(T)&&u.length<8?(e.consume(T),u+=String.fromCharCode(T),ve):B(T)}function Le(T){return T===93?(e.consume(T),p):B(T)}function p(T){return T===62?(e.consume(T),H):T===45&&a===2?(e.consume(T),p):B(T)}function H(T){return T===null||ee(T)?(e.exit("htmlFlowData"),Q(T)):(e.consume(T),H)}function Q(T){return e.exit("htmlFlow"),t(T)}}function yd(e,t,n){const r=this;return a;function a(u){return ee(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),i):n(u)}function i(u){return r.parser.lazy[r.now().line]?n(u):t(u)}}function Sd(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(gr,t,n)}}const xd={name:"htmlText",tokenize:Cd};function Cd(e,t,n){const r=this;let a,i,u;return o;function o(p){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(p),l}function l(p){return p===33?(e.consume(p),c):p===47?(e.consume(p),C):p===63?(e.consume(p),O):ft(p)?(e.consume(p),se):n(p)}function c(p){return p===45?(e.consume(p),f):p===91?(e.consume(p),i=0,y):ft(p)?(e.consume(p),v):n(p)}function f(p){return p===45?(e.consume(p),h):n(p)}function d(p){return p===null?n(p):p===45?(e.consume(p),m):ee(p)?(u=d,pe(p)):(e.consume(p),d)}function m(p){return p===45?(e.consume(p),h):d(p)}function h(p){return p===62?oe(p):p===45?m(p):d(p)}function y(p){const H="CDATA[";return p===H.charCodeAt(i++)?(e.consume(p),i===H.length?A:y):n(p)}function A(p){return p===null?n(p):p===93?(e.consume(p),R):ee(p)?(u=A,pe(p)):(e.consume(p),A)}function R(p){return p===93?(e.consume(p),S):A(p)}function S(p){return p===62?oe(p):p===93?(e.consume(p),S):A(p)}function v(p){return p===null||p===62?oe(p):ee(p)?(u=v,pe(p)):(e.consume(p),v)}function O(p){return p===null?n(p):p===63?(e.consume(p),w):ee(p)?(u=O,pe(p)):(e.consume(p),O)}function w(p){return p===62?oe(p):O(p)}function C(p){return ft(p)?(e.consume(p),I):n(p)}function I(p){return p===45||Qe(p)?(e.consume(p),I):W(p)}function W(p){return ee(p)?(u=W,pe(p)):me(p)?(e.consume(p),W):oe(p)}function se(p){return p===45||Qe(p)?(e.consume(p),se):p===47||p===62||ze(p)?ne(p):n(p)}function ne(p){return p===47?(e.consume(p),oe):p===58||p===95||ft(p)?(e.consume(p),Y):ee(p)?(u=ne,pe(p)):me(p)?(e.consume(p),ne):oe(p)}function Y(p){return p===45||p===46||p===58||p===95||Qe(p)?(e.consume(p),Y):F(p)}function F(p){return p===61?(e.consume(p),B):ee(p)?(u=F,pe(p)):me(p)?(e.consume(p),F):ne(p)}function B(p){return p===null||p===60||p===61||p===62||p===96?n(p):p===34||p===39?(e.consume(p),a=p,G):ee(p)?(u=B,pe(p)):me(p)?(e.consume(p),B):(e.consume(p),$)}function G(p){return p===a?(e.consume(p),a=void 0,X):p===null?n(p):ee(p)?(u=G,pe(p)):(e.consume(p),G)}function $(p){return p===null||p===34||p===39||p===60||p===61||p===96?n(p):p===47||p===62||ze(p)?ne(p):(e.consume(p),$)}function X(p){return p===47||p===62||ze(p)?ne(p):n(p)}function oe(p){return p===62?(e.consume(p),e.exit("htmlTextData"),e.exit("htmlText"),t):n(p)}function pe(p){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ve}function ve(p){return me(p)?Se(e,Le,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p):Le(p)}function Le(p){return e.enter("htmlTextData"),u(p)}}const Qa={name:"labelEnd",tokenize:vd,resolveTo:Rd,resolveAll:Ld},Id={tokenize:Pd},Nd={tokenize:Dd},Od={tokenize:kd};function Ld(e){let t=-1;for(;++t<e.length;){const n=e[t][1];(n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd")&&(e.splice(t+1,n.type==="labelImage"?4:2),n.type="data",t++)}return e}function Rd(e,t){let n=e.length,r=0,a,i,u,o;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(u){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(u=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[i][1].start),end:Object.assign({},e[u][1].end)},f={type:"labelText",start:Object.assign({},e[i+r+2][1].end),end:Object.assign({},e[u-2][1].start)};return o=[["enter",l,t],["enter",c,t]],o=Ze(o,e.slice(i+1,i+r+3)),o=Ze(o,[["enter",f,t]]),o=Ze(o,Xa(t.parser.constructs.insideSpan.null,e.slice(i+r+4,u-3),t)),o=Ze(o,[["exit",f,t],e[u-2],e[u-1],["exit",c,t]]),o=Ze(o,e.slice(u+1)),o=Ze(o,[["exit",l,t]]),ht(e,i,e.length,o),e}function vd(e,t,n){const r=this;let a=r.events.length,i,u;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return o;function o(m){return i?i._inactive?d(m):(u=r.parser.defined.includes(Qt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),l):n(m)}function l(m){return m===40?e.attempt(Id,f,u?f:d)(m):m===91?e.attempt(Nd,f,u?c:d)(m):u?f(m):d(m)}function c(m){return e.attempt(Od,f,d)(m)}function f(m){return t(m)}function d(m){return i._balanced=!0,n(m)}}function Pd(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return ze(d)?gn(e,i)(d):i(d)}function i(d){return d===41?f(d):io(e,u,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function u(d){return ze(d)?gn(e,l)(d):f(d)}function o(d){return n(d)}function l(d){return d===34||d===39||d===40?so(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):f(d)}function c(d){return ze(d)?gn(e,f)(d):f(d)}function f(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function Dd(e,t,n){const r=this;return a;function a(o){return uo.call(r,e,i,u,"reference","referenceMarker","referenceString")(o)}function i(o){return r.parser.defined.includes(Qt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(o):n(o)}function u(o){return n(o)}}function kd(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const wd={name:"labelStartImage",tokenize:Md,resolveAll:Qa.resolveAll};function Md(e,t,n){const r=this;return a;function a(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),i}function i(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),u):n(o)}function u(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Bd={name:"labelStartLink",tokenize:Fd,resolveAll:Qa.resolveAll};function Fd(e,t,n){const r=this;return a;function a(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),i}function i(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):t(u)}}const Hr={name:"lineEnding",tokenize:Hd};function Hd(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Se(e,t,"linePrefix")}}const Xn={name:"thematicBreak",tokenize:Ud};function Ud(e,t,n){let r=0,a;return i;function i(c){return e.enter("thematicBreak"),u(c)}function u(c){return a=c,o(c)}function o(c){return c===a?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||ee(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===a?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),me(c)?Se(e,o,"whitespace")(c):o(c))}}const Ye={name:"list",tokenize:Yd,continuation:{tokenize:Gd},exit:Vd},jd={tokenize:qd,partial:!0},$d={tokenize:zd,partial:!0};function Yd(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,u=0;return o;function o(h){const y=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:_a(h)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Xn,n,c)(h):c(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return _a(h)&&++u<10?(e.consume(h),l):(!r.interrupt||u<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):n(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(gr,r.interrupt?n:f,e.attempt(jd,m,d))}function f(h){return r.containerState.initialBlankLine=!0,i++,m(h)}function d(h){return me(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),m):n(h)}function m(h){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Gd(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(gr,a,i);function a(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Se(e,t,"listItemIndent",r.containerState.size+1)(o)}function i(o){return r.containerState.furtherBlankLines||!me(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,u(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($d,t,u)(o))}function u(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Se(e,e.attempt(Ye,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function zd(e,t,n){const r=this;return Se(e,a,"listItemIndent",r.containerState.size+1);function a(i){const u=r.events[r.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===r.containerState.size?t(i):n(i)}}function Vd(e){e.exit(this.containerState.type)}function qd(e,t,n){const r=this;return Se(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const u=r.events[r.events.length-1];return!me(i)&&u&&u[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const eu={name:"setextUnderline",tokenize:Xd,resolveTo:Wd};function Wd(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const u={type:"setextHeading",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",u,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[i][1].end)):e[r][1]=u,e.push(["exit",u,t]),e}function Xd(e,t,n){const r=this;let a;return i;function i(c){let f=r.events.length,d;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){d=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=c,u(c)):n(c)}function u(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===a?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),me(c)?Se(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||ee(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Qd={tokenize:Kd};function Kd(e){const t=this,n=e.attempt(gr,r,e.attempt(this.parser.constructs.flowInitial,a,Se(e,e.attempt(this.parser.constructs.flow,a,e.attempt(nd,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Zd={resolveAll:lo()},Jd=oo("string"),eh=oo("text");function oo(e){return{tokenize:t,resolveAll:lo(e==="text"?th:void 0)};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,u,o);return u;function u(f){return c(f)?i(f):o(f)}function o(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),l}function l(f){return c(f)?(n.exit("data"),i(f)):(n.consume(f),l)}function c(f){if(f===null)return!0;const d=a[f];let m=-1;if(d)for(;++m<d.length;){const h=d[m];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function lo(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function th(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 r=e[n-1][1],a=t.sliceStream(r);let i=a.length,u=-1,o=0,l;for(;i--;){const c=a[i];if(typeof c=="string"){for(u=c.length;c.charCodeAt(u-1)===32;)o++,u--;if(u)break;u=-1}else if(c===-2)l=!0,o++;else if(c!==-1){i++;break}}if(o){const c={type:n===e.length||l||o<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-o,offset:r.end.offset-o,_index:r.start._index+i,_bufferIndex:i?u:r.start._bufferIndex+u},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}function nh(e,t,n){let r=Object.assign(n?Object.assign({},n):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const a={},i=[];let u=[],o=[];const l={consume:v,enter:O,exit:w,attempt:W(C),check:W(I),interrupt:W(I,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:m,now:y,defineSkip:A,write:d};let f=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function d(F){return u=Ze(u,F),R(),u[u.length-1]!==null?[]:(se(t,0),c.events=Xa(i,c.events,c),c.events)}function m(F,B){return ah(h(F),B)}function h(F){return rh(u,F)}function y(){const{line:F,column:B,offset:G,_index:$,_bufferIndex:X}=r;return{line:F,column:B,offset:G,_index:$,_bufferIndex:X}}function A(F){a[F.line]=F.column,Y()}function R(){let F;for(;r._index<u.length;){const B=u[r._index];if(typeof B=="string")for(F=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===F&&r._bufferIndex<B.length;)S(B.charCodeAt(r._bufferIndex));else S(B)}}function S(F){f=f(F)}function v(F){ee(F)?(r.line++,r.column=1,r.offset+=F===-3?2:1,Y()):F!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===u[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=F}function O(F,B){const G=B||{};return G.type=F,G.start=y(),c.events.push(["enter",G,c]),o.push(G),G}function w(F){const B=o.pop();return B.end=y(),c.events.push(["exit",B,c]),B}function C(F,B){se(F,B.from)}function I(F,B){B.restore()}function W(F,B){return G;function G($,X,oe){let pe,ve,Le,p;return Array.isArray($)?Q($):"tokenize"in $?Q([$]):H($);function H(z){return K;function K(te){const ie=te!==null&&z[te],J=te!==null&&z.null,_e=[...Array.isArray(ie)?ie:ie?[ie]:[],...Array.isArray(J)?J:J?[J]:[]];return Q(_e)(te)}}function Q(z){return pe=z,ve=0,z.length===0?oe:T(z[ve])}function T(z){return K;function K(te){return p=ne(),Le=z,z.partial||(c.currentConstruct=z),z.name&&c.parser.constructs.disable.null.includes(z.name)?Z():z.tokenize.call(B?Object.assign(Object.create(c),B):c,l,q,Z)(te)}}function q(z){return F(Le,p),X}function Z(z){return p.restore(),++ve<pe.length?T(pe[ve]):oe}}}function se(F,B){F.resolveAll&&!i.includes(F)&&i.push(F),F.resolve&&ht(c.events,B,c.events.length-B,F.resolve(c.events.slice(B),c)),F.resolveTo&&(c.events=F.resolveTo(c.events,c))}function ne(){const F=y(),B=c.previous,G=c.currentConstruct,$=c.events.length,X=Array.from(o);return{restore:oe,from:$};function oe(){r=F,c.previous=B,c.currentConstruct=G,c.events.length=$,o=X,Y()}}function Y(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function rh(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let u;if(n===a)u=[e[n].slice(r,i)];else{if(u=e.slice(n,a),r>-1){const o=u[0];typeof o=="string"?u[0]=o.slice(r):u.shift()}i>0&&u.push(e[a].slice(0,i))}return u}function ah(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let u;if(typeof i=="string")u=i;else switch(i){case-5:{u="\r";break}case-4:{u=`
64
49
  `;break}case-3:{u=`\r
65
- `;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&a)continue;u=" ";break}default:u=String.fromCharCode(o)}a=o===-2,i.push(u)}return i.join("")}const document$1={42:list$1,43:list$1,45:list$1,48:list$1,49:list$1,50:list$1,51:list$1,52:list$1,53:list$1,54:list$1,55:list$1,56:list$1,57:list$1,62:blockQuote},contentInitial={91:definition},flowInitial={[-2]:codeIndented,[-1]:codeIndented,32:codeIndented},flow={35:headingAtx,42:thematicBreak$1,45:[setextUnderline,thematicBreak$1],60:htmlFlow,61:setextUnderline,95:thematicBreak$1,96:codeFenced,126:codeFenced},string={38:characterReference,92:characterEscape},text$3={[-5]:lineEnding,[-4]:lineEnding,[-3]:lineEnding,33:labelStartImage,38:characterReference,42:attention,60:[autolink,htmlText],91:labelStartLink,92:[hardBreakEscape,characterEscape],93:labelEnd,95:attention,96:codeText},insideSpan={null:[attention,resolver]},attentionMarkers={null:[42,95]},disable={null:[]},defaultConstructs=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers,contentInitial,disable,document:document$1,flow,flowInitial,insideSpan,string,text:text$3},Symbol.toStringTag,{value:"Module"}));function parse(e){const n=combineExtensions([defaultConstructs,...(e||{}).extensions||[]]),i={defined:[],lazy:{},constructs:n,content:a(content$1),document:a(document$2),flow:a(flow$1),string:a(string$1),text:a(text$4)};return i;function a(o){return u;function u(l){return createTokenizer(i,o,l)}}}function postprocess(e){for(;!subtokenize(e););return e}const search$1=/[\0\t\n\r]/g;function preprocess(){let e=1,t="",n=!0,i;return a;function a(o,u,l){const c=[];let f,d,T,m,y;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(u||void 0).decode(o)),T=0,t="",n&&(o.charCodeAt(0)===65279&&T++,n=void 0);T<o.length;){if(search$1.lastIndex=T,f=search$1.exec(o),m=f&&f.index!==void 0?f.index:o.length,y=o.charCodeAt(m),!f){t=o.slice(T);break}if(y===10&&T===m&&i)c.push(-3),i=void 0;else switch(i&&(c.push(-5),i=void 0),T<m&&(c.push(o.slice(T,m)),e+=m-T),y){case 0:{c.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,c.push(-2);e++<d;)c.push(-1);break}case 10:{c.push(-4),e=1;break}default:i=!0,e=1}T=m+1}return l&&(i&&c.push(-5),t&&c.push(t),c.push(null)),c}}const characterEscapeOrReference=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decodeString(e){return e.replace(characterEscapeOrReference,decode)}function decode(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),o=a===120||a===88;return decodeNumericCharacterReference(n.slice(o?2:1),o?16:10)}return decodeNamedCharacterReference(n)||e}const own$6={}.hasOwnProperty;function fromMarkdown(e,t,n){return typeof t!="string"&&(n=t,t=void 0),compiler(n)(postprocess(parse(n).document().write(preprocess()(e,t,!0))))}function compiler(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(T1),autolinkProtocol:q,autolinkEmail:q,atxHeading:o(f1),blockQuote:o(v1),characterEscape:q,characterReference:q,codeFenced:o(g1),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:o(g1,u),codeText:o(A1,u),codeTextData:q,data:q,codeFlowValue:q,definition:o(s1),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:o(E1),hardBreakEscape:o(P1),hardBreakTrailing:o(P1),htmlFlow:o(_1,u),htmlFlowData:q,htmlText:o(_1,u),htmlTextData:q,image:o(D1),label:u,link:o(T1),listItem:o(R1),listItemValue:m,listOrdered:o(d1,T),listUnordered:o(d1),paragraph:o(C1),reference:F,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:o(f1),strong:o(N1),thematicBreak:o(z1)},exit:{atxHeading:c(),atxHeadingSequence:C,autolink:c(),autolinkEmail:m1,autolinkProtocol:p1,blockQuote:c(),characterEscapeValue:e1,characterReferenceMarkerHexadecimal:o1,characterReferenceMarkerNumeric:o1,characterReferenceValue:i1,codeFenced:c(L),codeFencedFence:b,codeFencedFenceInfo:y,codeFencedFenceMeta:S,codeFlowValue:e1,codeIndented:c(v),codeText:c(K),codeTextData:e1,data:e1,definition:c(),definitionDestinationString:I,definitionLabelString:A,definitionTitleString:_,emphasis:c(),hardBreakEscape:c(W),hardBreakTrailing:c(W),htmlFlow:c(Z),htmlFlowData:e1,htmlText:c(J),htmlTextData:e1,image:c(V),label:w,labelText:R,lineEnding:X,link:c(k),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:r1,resourceDestinationString:D,resourceTitleString:G,resource:Q,setextHeading:c(z),setextHeadingLineSequence:B,setextHeadingText:O,strong:c(),thematicBreak:c()}};configure(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(n1){let u1={type:"root",children:[]};const b1={stack:[u1],tokenStack:[],config:t,enter:l,exit:f,buffer:u,resume:d,data:n},x1=[];let M1=-1;for(;++M1<n1.length;)if(n1[M1][1].type==="listOrdered"||n1[M1][1].type==="listUnordered")if(n1[M1][0]==="enter")x1.push(M1);else{const $1=x1.pop();M1=a(n1,$1,M1)}for(M1=-1;++M1<n1.length;){const $1=t[n1[M1][0]];own$6.call($1,n1[M1][1].type)&&$1[n1[M1][1].type].call(Object.assign({sliceSerialize:n1[M1][2].sliceSerialize},b1),n1[M1][1])}if(b1.tokenStack.length>0){const $1=b1.tokenStack[b1.tokenStack.length-1];($1[1]||defaultOnError).call(b1,void 0,$1[0])}for(u1.position={start:point$1(n1.length>0?n1[0][1].start:{line:1,column:1,offset:0}),end:point$1(n1.length>0?n1[n1.length-2][1].end:{line:1,column:1,offset:0})},M1=-1;++M1<t.transforms.length;)u1=t.transforms[M1](u1)||u1;return u1}function a(n1,u1,b1){let x1=u1-1,M1=-1,$1=!1,Q1,j1,oe,ie;for(;++x1<=b1;){const W1=n1[x1];switch(W1[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{W1[0]==="enter"?M1++:M1--,ie=void 0;break}case"lineEndingBlank":{W1[0]==="enter"&&(Q1&&!ie&&!M1&&!oe&&(oe=x1),ie=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ie=void 0}if(!M1&&W1[0]==="enter"&&W1[1].type==="listItemPrefix"||M1===-1&&W1[0]==="exit"&&(W1[1].type==="listUnordered"||W1[1].type==="listOrdered")){if(Q1){let ue=x1;for(j1=void 0;ue--;){const q1=n1[ue];if(q1[1].type==="lineEnding"||q1[1].type==="lineEndingBlank"){if(q1[0]==="exit")continue;j1&&(n1[j1][1].type="lineEndingBlank",$1=!0),q1[1].type="lineEnding",j1=ue}else if(!(q1[1].type==="linePrefix"||q1[1].type==="blockQuotePrefix"||q1[1].type==="blockQuotePrefixWhitespace"||q1[1].type==="blockQuoteMarker"||q1[1].type==="listItemIndent"))break}oe&&(!j1||oe<j1)&&(Q1._spread=!0),Q1.end=Object.assign({},j1?n1[j1][1].start:W1[1].end),n1.splice(j1||x1,0,["exit",Q1,W1[2]]),x1++,b1++}if(W1[1].type==="listItemPrefix"){const ue={type:"listItem",_spread:!1,start:Object.assign({},W1[1].start),end:void 0};Q1=ue,n1.splice(x1,0,["enter",ue,W1[2]]),x1++,b1++,oe=void 0,ie=!0}}}return n1[u1][1]._spread=$1,b1}function o(n1,u1){return b1;function b1(x1){l.call(this,n1(x1),x1),u1&&u1.call(this,x1)}}function u(){this.stack.push({type:"fragment",children:[]})}function l(n1,u1,b1){this.stack[this.stack.length-1].children.push(n1),this.stack.push(n1),this.tokenStack.push([u1,b1]),n1.position={start:point$1(u1.start),end:void 0}}function c(n1){return u1;function u1(b1){n1&&n1.call(this,b1),f.call(this,b1)}}function f(n1,u1){const b1=this.stack.pop(),x1=this.tokenStack.pop();if(x1)x1[0].type!==n1.type&&(u1?u1.call(this,n1,x1[0]):(x1[1]||defaultOnError).call(this,n1,x1[0]));else throw new Error("Cannot close `"+n1.type+"` ("+stringifyPosition({start:n1.start,end:n1.end})+"): it’s not open");b1.position.end=point$1(n1.end)}function d(){return toString$1(this.stack.pop())}function T(){this.data.expectingFirstListItemValue=!0}function m(n1){if(this.data.expectingFirstListItemValue){const u1=this.stack[this.stack.length-2];u1.start=Number.parseInt(this.sliceSerialize(n1),10),this.data.expectingFirstListItemValue=void 0}}function y(){const n1=this.resume(),u1=this.stack[this.stack.length-1];u1.lang=n1}function S(){const n1=this.resume(),u1=this.stack[this.stack.length-1];u1.meta=n1}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function L(){const n1=this.resume(),u1=this.stack[this.stack.length-1];u1.value=n1.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const n1=this.resume(),u1=this.stack[this.stack.length-1];u1.value=n1.replace(/(\r?\n|\r)$/g,"")}function A(n1){const u1=this.resume(),b1=this.stack[this.stack.length-1];b1.label=u1,b1.identifier=normalizeIdentifier(this.sliceSerialize(n1)).toLowerCase()}function _(){const n1=this.resume(),u1=this.stack[this.stack.length-1];u1.title=n1}function I(){const n1=this.resume(),u1=this.stack[this.stack.length-1];u1.url=n1}function C(n1){const u1=this.stack[this.stack.length-1];if(!u1.depth){const b1=this.sliceSerialize(n1).length;u1.depth=b1}}function O(){this.data.setextHeadingSlurpLineEnding=!0}function B(n1){const u1=this.stack[this.stack.length-1];u1.depth=this.sliceSerialize(n1).codePointAt(0)===61?1:2}function z(){this.data.setextHeadingSlurpLineEnding=void 0}function q(n1){const b1=this.stack[this.stack.length-1].children;let x1=b1[b1.length-1];(!x1||x1.type!=="text")&&(x1=k1(),x1.position={start:point$1(n1.start),end:void 0},b1.push(x1)),this.stack.push(x1)}function e1(n1){const u1=this.stack.pop();u1.value+=this.sliceSerialize(n1),u1.position.end=point$1(n1.end)}function X(n1){const u1=this.stack[this.stack.length-1];if(this.data.atHardBreak){const b1=u1.children[u1.children.length-1];b1.position.end=point$1(n1.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(u1.type)&&(q.call(this,n1),e1.call(this,n1))}function W(){this.data.atHardBreak=!0}function Z(){const n1=this.resume(),u1=this.stack[this.stack.length-1];u1.value=n1}function J(){const n1=this.resume(),u1=this.stack[this.stack.length-1];u1.value=n1}function K(){const n1=this.resume(),u1=this.stack[this.stack.length-1];u1.value=n1}function k(){const n1=this.stack[this.stack.length-1];if(this.data.inReference){const u1=this.data.referenceType||"shortcut";n1.type+="Reference",n1.referenceType=u1,delete n1.url,delete n1.title}else delete n1.identifier,delete n1.label;this.data.referenceType=void 0}function V(){const n1=this.stack[this.stack.length-1];if(this.data.inReference){const u1=this.data.referenceType||"shortcut";n1.type+="Reference",n1.referenceType=u1,delete n1.url,delete n1.title}else delete n1.identifier,delete n1.label;this.data.referenceType=void 0}function R(n1){const u1=this.sliceSerialize(n1),b1=this.stack[this.stack.length-2];b1.label=decodeString(u1),b1.identifier=normalizeIdentifier(u1).toLowerCase()}function w(){const n1=this.stack[this.stack.length-1],u1=this.resume(),b1=this.stack[this.stack.length-1];if(this.data.inReference=!0,b1.type==="link"){const x1=n1.children;b1.children=x1}else b1.alt=u1}function D(){const n1=this.resume(),u1=this.stack[this.stack.length-1];u1.url=n1}function G(){const n1=this.resume(),u1=this.stack[this.stack.length-1];u1.title=n1}function Q(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function r1(n1){const u1=this.resume(),b1=this.stack[this.stack.length-1];b1.label=u1,b1.identifier=normalizeIdentifier(this.sliceSerialize(n1)).toLowerCase(),this.data.referenceType="full"}function o1(n1){this.data.characterReferenceType=n1.type}function i1(n1){const u1=this.sliceSerialize(n1),b1=this.data.characterReferenceType;let x1;b1?(x1=decodeNumericCharacterReference(u1,b1==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):x1=decodeNamedCharacterReference(u1);const M1=this.stack.pop();M1.value+=x1,M1.position.end=point$1(n1.end)}function p1(n1){e1.call(this,n1);const u1=this.stack[this.stack.length-1];u1.url=this.sliceSerialize(n1)}function m1(n1){e1.call(this,n1);const u1=this.stack[this.stack.length-1];u1.url="mailto:"+this.sliceSerialize(n1)}function v1(){return{type:"blockquote",children:[]}}function g1(){return{type:"code",lang:null,meta:null,value:""}}function A1(){return{type:"inlineCode",value:""}}function s1(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function E1(){return{type:"emphasis",children:[]}}function f1(){return{type:"heading",depth:0,children:[]}}function P1(){return{type:"break"}}function _1(){return{type:"html",value:""}}function D1(){return{type:"image",title:null,url:"",alt:null}}function T1(){return{type:"link",title:null,url:"",children:[]}}function d1(n1){return{type:"list",ordered:n1.type==="listOrdered",start:null,spread:n1._spread,children:[]}}function R1(n1){return{type:"listItem",spread:n1._spread,checked:null,children:[]}}function C1(){return{type:"paragraph",children:[]}}function N1(){return{type:"strong",children:[]}}function k1(){return{type:"text",value:""}}function z1(){return{type:"thematicBreak"}}}function point$1(e){return{line:e.line,column:e.column,offset:e.offset}}function configure(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?configure(e,i):extension(e,i)}}function extension(e,t){let n;for(n in t)if(own$6.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 defaultOnError(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+stringifyPosition({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+stringifyPosition({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+stringifyPosition({start:t.start,end:t.end})+") is still open")}function remarkParse(e){const t=this;t.parser=n;function n(i){return fromMarkdown(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function blockquote(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 hardBreak(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
66
- `}]}function code(e,t){const n=t.value?t.value+`
67
- `:"",i={};t.lang&&(i.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function strikethrough(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function emphasis(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function footnoteReference(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=normalizeUri(i.toLowerCase()),o=e.footnoteOrder.indexOf(i);let u,l=e.footnoteCounts.get(i);l===void 0?(l=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=o+1,l+=1,e.footnoteCounts.set(i,l);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,c);const f={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,f),e.applyData(t,f)}function heading(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 html(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function revert(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 a=e.all(t),o=a[0];o&&o.type==="text"?o.value="["+o.value:a.unshift({type:"text",value:"["});const u=a[a.length-1];return u&&u.type==="text"?u.value+=i:a.push({type:"text",value:i}),a}function imageReference(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return revert(e,t);const a={src:normalizeUri(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(a.title=i.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)}function image(e,t){const n={src:normalizeUri(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 inlineCode(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 linkReference(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return revert(e,t);const a={href:normalizeUri(i.url||"")};i.title!==null&&i.title!==void 0&&(a.title=i.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function link(e,t){const n={href:normalizeUri(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 listItem(e,t,n){const i=e.all(t),a=n?listLoose(n):listItemLoose(t),o={},u=[];if(typeof t.checked=="boolean"){const d=i[0];let T;d&&d.type==="element"&&d.tagName==="p"?T=d:(T={type:"element",tagName:"p",properties:{},children:[]},i.unshift(T)),T.children.length>0&&T.children.unshift({type:"text",value:" "}),T.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<i.length;){const d=i[l];(a||l!==0||d.type!=="element"||d.tagName!=="p")&&u.push({type:"text",value:`
68
- `}),d.type==="element"&&d.tagName==="p"&&!a?u.push(...d.children):u.push(d)}const c=i[i.length-1];c&&(a||c.type!=="element"||c.tagName!=="p")&&u.push({type:"text",value:`
69
- `});const f={type:"element",tagName:"li",properties:o,children:u};return e.patch(t,f),e.applyData(t,f)}function listLoose(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=listItemLoose(n[i])}return t}function listItemLoose(e){const t=e.spread;return t??e.children.length>1}function list(e,t){const n={},i=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<i.length;){const u=i[a];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function paragraph(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function root$2(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function strong(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function table(e,t){const n=e.all(t),i=n.shift(),a=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),a.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=pointStart(t.children[1]),c=pointEnd(t.children[t.children.length-1]);l&&c&&(u.position={start:l,end:c}),a.push(u)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function tableRow(e,t,n){const i=n?n.children:void 0,o=(i?i.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,l=u?u.length:t.children.length;let c=-1;const f=[];for(;++c<l;){const T=t.children[c],m={},y=u?u[c]:void 0;y&&(m.align=y);let S={type:"element",tagName:o,properties:m,children:[]};T&&(S.children=e.all(T),e.patch(T,S),S=e.applyData(T,S)),f.push(S)}const d={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(t,d),e.applyData(t,d)}function tableCell(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const tab=9,space=32;function trimLines(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),a=0;const o=[];for(;i;)o.push(trimLine(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=n.exec(t);return o.push(trimLine(t.slice(a),a>0,!1)),o.join("")}function trimLine(e,t,n){let i=0,a=e.length;if(t){let o=e.codePointAt(i);for(;o===tab||o===space;)i++,o=e.codePointAt(i)}if(n){let o=e.codePointAt(a-1);for(;o===tab||o===space;)a--,o=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}function text$2(e,t){const n={type:"text",value:trimLines(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function thematicBreak(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const handlers={blockquote,break:hardBreak,code,delete:strikethrough,emphasis,footnoteReference,heading,html,imageReference,image,inlineCode,linkReference,link,listItem,list,paragraph,root:root$2,strong,table,tableCell,tableRow,text:text$2,thematicBreak,toml:ignore,yaml:ignore,definition:ignore,footnoteDefinition:ignore};function ignore(){}const VOID=-1,PRIMITIVE=0,ARRAY=1,OBJECT=2,DATE=3,REGEXP=4,MAP=5,SET=6,ERROR=7,BIGINT=8,env=typeof self=="object"?self:globalThis,deserializer=(e,t)=>{const n=(a,o)=>(e.set(o,a),a),i=a=>{if(e.has(a))return e.get(a);const[o,u]=t[a];switch(o){case PRIMITIVE:case VOID:return n(u,a);case ARRAY:{const l=n([],a);for(const c of u)l.push(i(c));return l}case OBJECT:{const l=n({},a);for(const[c,f]of u)l[i(c)]=i(f);return l}case DATE:return n(new Date(u),a);case REGEXP:{const{source:l,flags:c}=u;return n(new RegExp(l,c),a)}case MAP:{const l=n(new Map,a);for(const[c,f]of u)l.set(i(c),i(f));return l}case SET:{const l=n(new Set,a);for(const c of u)l.add(i(c));return l}case ERROR:{const{name:l,message:c}=u;return n(new env[l](c),a)}case BIGINT:return n(BigInt(u),a);case"BigInt":return n(Object(BigInt(u)),a)}return n(new env[o](u),a)};return i},deserialize=e=>deserializer(new Map,e)(0),EMPTY="",{toString}={},{keys}=Object,typeOf=e=>{const t=typeof e;if(t!=="object"||!e)return[PRIMITIVE,t];const n=toString.call(e).slice(8,-1);switch(n){case"Array":return[ARRAY,EMPTY];case"Object":return[OBJECT,EMPTY];case"Date":return[DATE,EMPTY];case"RegExp":return[REGEXP,EMPTY];case"Map":return[MAP,EMPTY];case"Set":return[SET,EMPTY]}return n.includes("Array")?[ARRAY,n]:n.includes("Error")?[ERROR,n]:[OBJECT,n]},shouldSkip=([e,t])=>e===PRIMITIVE&&(t==="function"||t==="symbol"),serializer=(e,t,n,i)=>{const a=(u,l)=>{const c=i.push(u)-1;return n.set(l,c),c},o=u=>{if(n.has(u))return n.get(u);let[l,c]=typeOf(u);switch(l){case PRIMITIVE:{let d=u;switch(c){case"bigint":l=BIGINT,d=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);d=null;break;case"undefined":return a([VOID],u)}return a([l,d],u)}case ARRAY:{if(c)return a([c,[...u]],u);const d=[],T=a([l,d],u);for(const m of u)d.push(o(m));return T}case OBJECT:{if(c)switch(c){case"BigInt":return a([c,u.toString()],u);case"Boolean":case"Number":case"String":return a([c,u.valueOf()],u)}if(t&&"toJSON"in u)return o(u.toJSON());const d=[],T=a([l,d],u);for(const m of keys(u))(e||!shouldSkip(typeOf(u[m])))&&d.push([o(m),o(u[m])]);return T}case DATE:return a([l,u.toISOString()],u);case REGEXP:{const{source:d,flags:T}=u;return a([l,{source:d,flags:T}],u)}case MAP:{const d=[],T=a([l,d],u);for(const[m,y]of u)(e||!(shouldSkip(typeOf(m))||shouldSkip(typeOf(y))))&&d.push([o(m),o(y)]);return T}case SET:{const d=[],T=a([l,d],u);for(const m of u)(e||!shouldSkip(typeOf(m)))&&d.push(o(m));return T}}const{message:f}=u;return a([l,{name:c,message:f}],u)};return o},serialize=(e,{json:t,lossy:n}={})=>{const i=[];return serializer(!(t||n),!!t,new Map,i)(e),i},structuredClone$1=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?deserialize(serialize(e,t)):structuredClone(e):(e,t)=>deserialize(serialize(e,t));function defaultFootnoteBackContent(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 defaultFootnoteBackLabel(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function footer(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||defaultFootnoteBackContent,i=e.options.footnoteBackLabel||defaultFootnoteBackLabel,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[c]);if(!f)continue;const d=e.all(f),T=String(f.identifier).toUpperCase(),m=normalizeUri(T.toLowerCase());let y=0;const S=[],b=e.footnoteCounts.get(T);for(;b!==void 0&&++y<=b;){S.length>0&&S.push({type:"text",value:" "});let A=typeof n=="string"?n:n(c,y);typeof A=="string"&&(A={type:"text",value:A}),S.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(c,y),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const L=d[d.length-1];if(L&&L.type==="element"&&L.tagName==="p"){const A=L.children[L.children.length-1];A&&A.type==="text"?A.value+=" ":L.children.push({type:"text",value:" "}),L.children.push(...S)}else d.push(...S);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(d,!0)};e.patch(f,v),l.push(v)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...structuredClone$1(u),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
70
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
71
- `}]}}const convert=(function(e){if(e==null)return ok;if(typeof e=="function")return castFactory(e);if(typeof e=="object")return Array.isArray(e)?anyFactory(e):propsFactory(e);if(typeof e=="string")return typeFactory(e);throw new Error("Expected function, string, or object as test")});function anyFactory(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=convert(e[n]);return castFactory(i);function i(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function propsFactory(e){const t=e;return castFactory(n);function n(i){const a=i;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function typeFactory(e){return castFactory(t);function t(n){return n&&n.type===e}}function castFactory(e){return t;function t(n,i,a){return!!(looksLikeANode(n)&&e.call(this,n,typeof i=="number"?i:void 0,a||void 0))}}function ok(){return!0}function looksLikeANode(e){return e!==null&&typeof e=="object"&&"type"in e}function color(e){return e}const empty=[],CONTINUE=!0,EXIT=!1,SKIP="skip";function visitParents(e,t,n,i){let a;typeof t=="function"&&typeof n!="function"?(i=n,n=t):a=t;const o=convert(a),u=i?-1:1;l(e,void 0,[])();function l(c,f,d){const T=c&&typeof c=="object"?c:{};if(typeof T.type=="string"){const y=typeof T.tagName=="string"?T.tagName:typeof T.name=="string"?T.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(c.type+(y?"<"+y+">":""))+")"})}return m;function m(){let y=empty,S,b,L;if((!t||o(c,f,d[d.length-1]||void 0))&&(y=toResult(n(c,d)),y[0]===EXIT))return y;if("children"in c&&c.children){const v=c;if(v.children&&y[0]!==SKIP)for(b=(i?v.children.length:-1)+u,L=d.concat(v);b>-1&&b<v.children.length;){const A=v.children[b];if(S=l(A,b,L)(),S[0]===EXIT)return S;b=typeof S[1]=="number"?S[1]:b+u}}return y}}}function toResult(e){return Array.isArray(e)?e:typeof e=="number"?[CONTINUE,e]:e==null?empty:[e]}function visit(e,t,n,i){let a,o,u;typeof t=="function"&&typeof n!="function"?(o=void 0,u=t,a=n):(o=t,u=n,a=i),visitParents(e,o,l,a);function l(c,f){const d=f[f.length-1],T=d?d.children.indexOf(c):void 0;return u(c,T,d)}}const own$5={}.hasOwnProperty,emptyOptions$1={};function createState(e,t){const n=t||emptyOptions$1,i=new Map,a=new Map,o=new Map,u={...handlers,...n.handlers},l={all:f,applyData,definitionById:i,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:u,one:c,options:n,patch:patch$2,wrap:wrap$1};return visit(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const T=d.type==="definition"?i:a,m=String(d.identifier).toUpperCase();T.has(m)||T.set(m,d)}}),l;function c(d,T){const m=d.type,y=l.handlers[m];if(own$5.call(l.handlers,m)&&y)return y(l,d,T);if(l.options.passThrough&&l.options.passThrough.includes(m)){if("children"in d){const{children:b,...L}=d,v=structuredClone$1(L);return v.children=l.all(d),v}return structuredClone$1(d)}return(l.options.unknownHandler||defaultUnknownHandler)(l,d,T)}function f(d){const T=[];if("children"in d){const m=d.children;let y=-1;for(;++y<m.length;){const S=l.one(m[y],d);if(S){if(y&&m[y-1].type==="break"&&(!Array.isArray(S)&&S.type==="text"&&(S.value=trimMarkdownSpaceStart(S.value)),!Array.isArray(S)&&S.type==="element")){const b=S.children[0];b&&b.type==="text"&&(b.value=trimMarkdownSpaceStart(b.value))}Array.isArray(S)?T.push(...S):T.push(S)}}}return T}}function patch$2(e,t){e.position&&(t.position=position$2(e))}function applyData(e,t){let n=t;if(e&&e.data){const i=e.data.hName,a=e.data.hChildren,o=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const u="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:u}}n.type==="element"&&o&&Object.assign(n.properties,structuredClone$1(o)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function defaultUnknownHandler(e,t){const n=t.data||{},i="value"in t&&!(own$5.call(n,"hProperties")||own$5.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 wrap$1(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
72
- `});++i<e.length;)i&&n.push({type:"text",value:`
73
- `}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
74
- `}),n}function trimMarkdownSpaceStart(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function toHast(e,t){const n=createState(e,t),i=n.one(e,void 0),a=footer(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&o.children.push({type:"text",value:`
75
- `},a),o}function remarkRehype(e,t){return e&&"run"in e?async function(n,i){const a=toHast(n,{file:i,...t});await e.run(a,i)}:function(n,i){return toHast(n,{file:i,...t||e})}}function bail(e){if(e)throw e}var extend$1,hasRequiredExtend;function requireExtend(){if(hasRequiredExtend)return extend$1;hasRequiredExtend=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(f){return typeof Array.isArray=="function"?Array.isArray(f):t.call(f)==="[object Array]"},o=function(f){if(!f||t.call(f)!=="[object Object]")return!1;var d=e.call(f,"constructor"),T=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!d&&!T)return!1;var m;for(m in f);return typeof m>"u"||e.call(f,m)},u=function(f,d){n&&d.name==="__proto__"?n(f,d.name,{enumerable:!0,configurable:!0,value:d.newValue,writable:!0}):f[d.name]=d.newValue},l=function(f,d){if(d==="__proto__")if(e.call(f,d)){if(i)return i(f,d).value}else return;return f[d]};return extend$1=function c(){var f,d,T,m,y,S,b=arguments[0],L=1,v=arguments.length,A=!1;for(typeof b=="boolean"&&(A=b,b=arguments[1]||{},L=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});L<v;++L)if(f=arguments[L],f!=null)for(d in f)T=l(b,d),m=l(f,d),b!==m&&(A&&m&&(o(m)||(y=a(m)))?(y?(y=!1,S=T&&a(T)?T:[]):S=T&&o(T)?T:{},u(b,{name:d,newValue:c(A,S,m)})):typeof m<"u"&&u(b,{name:d,newValue:m}));return b},extend$1}var extendExports=requireExtend();const extend=getDefaultExportFromCjs(extendExports);function isPlainObject(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 trough(){const e=[],t={run:n,use:i};return t;function n(...a){let o=-1;const u=a.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);l(null,...a);function l(c,...f){const d=e[++o];let T=-1;if(c){u(c);return}for(;++T<a.length;)(f[T]===null||f[T]===void 0)&&(f[T]=a[T]);a=f,d?wrap(d,l)(...f):u(null,...f)}}function i(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function wrap(e,t){let n;return i;function i(...u){const l=e.length>u.length;let c;l&&u.push(a);try{c=e.apply(this,u)}catch(f){const d=f;if(l&&n)throw d;return a(d)}l||(c&&c.then&&typeof c.then=="function"?c.then(o,a):c instanceof Error?a(c):o(c))}function a(u,...l){n||(n=!0,t(u,...l))}function o(u){a(null,u)}}const path={basename,dirname,extname,join,sep:"/"};function basename(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');assertPath$1(e);let n=0,i=-1,a=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else i<0&&(o=!0,i=a+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let u=-1,l=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else u<0&&(o=!0,u=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(i=a):(l=-1,i=u));return n===i?i=u:i<0&&(i=e.length),e.slice(n,i)}function dirname(e){if(assertPath$1(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 extname(e){assertPath$1(e);let t=e.length,n=-1,i=0,a=-1,o=0,u;for(;t--;){const l=e.codePointAt(t);if(l===47){if(u){i=t+1;break}continue}n<0&&(u=!0,n=t+1),l===46?a<0?a=t:o!==1&&(o=1):a>-1&&(o=-1)}return a<0||n<0||o===0||o===1&&a===n-1&&a===i+1?"":e.slice(a,n)}function join(...e){let t=-1,n;for(;++t<e.length;)assertPath$1(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":normalize(n)}function normalize(e){assertPath$1(e);const t=e.codePointAt(0)===47;let n=normalizeString(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function normalizeString(e,t){let n="",i=0,a=-1,o=0,u=-1,l,c;for(;++u<=e.length;){if(u<e.length)l=e.codePointAt(u);else{if(l===47)break;l=47}if(l===47){if(!(a===u-1||o===1))if(a!==u-1&&o===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",i=0):(n=n.slice(0,c),i=n.length-1-n.lastIndexOf("/")),a=u,o=0;continue}}else if(n.length>0){n="",i=0,a=u,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),i=u-a-1;a=u,o=0}else l===46&&o>-1?o++:o=-1}return n}function assertPath$1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const proc={cwd};function cwd(){return"/"}function isUrl(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function urlToPath(e){if(typeof e=="string")e=new URL(e);else if(!isUrl(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 getPathFromURLPosix(e)}function getPathFromURLPosix(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 a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const order=["history","path","basename","stem","extname","dirname"];class VFile{constructor(t){let n;t?isUrl(t)?n={path:t}:typeof t=="string"||isUint8Array$1(t)?n={value:t}:n=t:n={},this.cwd=proc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<order.length;){const o=order[i];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let a;for(a in n)order.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?path.basename(this.path):void 0}set basename(t){assertNonEmpty(t,"basename"),assertPart(t,"basename"),this.path=path.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?path.dirname(this.path):void 0}set dirname(t){assertPath(this.basename,"dirname"),this.path=path.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?path.extname(this.path):void 0}set extname(t){if(assertPart(t,"extname"),assertPath(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=path.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){isUrl(t)&&(t=urlToPath(t)),assertNonEmpty(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?path.basename(this.path,this.extname):void 0}set stem(t){assertNonEmpty(t,"stem"),assertPart(t,"stem"),this.path=path.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const a=this.message(t,n,i);throw a.fatal=!0,a}info(t,n,i){const a=this.message(t,n,i);return a.fatal=void 0,a}message(t,n,i){const a=new VFileMessage(t,n,i);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function assertPart(e,t){if(e&&e.includes(path.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+path.sep+"`")}function assertNonEmpty(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function assertPath(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function isUint8Array$1(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const CallableInstance=(function(e){const i=this.constructor.prototype,a=i[e],o=function(){return a.apply(o,arguments)};Object.setPrototypeOf(o,i);const u=Object.getOwnPropertyNames(a);for(const l of u){const c=Object.getOwnPropertyDescriptor(a,l);c&&Object.defineProperty(o,l,c)}return o}),own$4={}.hasOwnProperty;class Processor extends CallableInstance{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=trough()}copy(){const t=new Processor;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(extend(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(assertUnfrozen("data",this.frozen),this.namespace[t]=n,this):own$4.call(this.namespace,t)&&this.namespace[t]||void 0:t?(assertUnfrozen("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 a=n.call(t,...i);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=vfile(t),i=this.parser||this.Parser;return assertParser("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),assertParser("process",this.parser||this.Parser),assertCompiler("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(o,u){const l=vfile(t),c=i.parse(l);i.run(c,l,function(d,T,m){if(d||!T||!m)return f(d);const y=T,S=i.stringify(y,m);looksLikeAValue(S)?m.value=S:m.result=S,f(d,m)});function f(d,T){d||!T?u(d):o?o(T):n(void 0,T)}}}processSync(t){let n=!1,i;return this.freeze(),assertParser("processSync",this.parser||this.Parser),assertCompiler("processSync",this.compiler||this.Compiler),this.process(t,a),assertDone("processSync","process",n),i;function a(o,u){n=!0,bail(o),i=u}}run(t,n,i){assertNode(t),this.freeze();const a=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?o(void 0,i):new Promise(o);function o(u,l){const c=vfile(n);a.run(t,c,f);function f(d,T,m){const y=T||t;d?l(d):u?u(y):i(void 0,y,m)}}}runSync(t,n){let i=!1,a;return this.run(t,n,o),assertDone("runSync","run",i),a;function o(u,l){bail(u),a=l,i=!0}}stringify(t,n){this.freeze();const i=vfile(n),a=this.compiler||this.Compiler;return assertCompiler("stringify",a),assertNode(t),a(t,i)}use(t,...n){const i=this.attachers,a=this.namespace;if(assertUnfrozen("use",this.frozen),t!=null)if(typeof t=="function")c(t,n);else if(typeof t=="object")Array.isArray(t)?l(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(f){if(typeof f=="function")c(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[d,...T]=f;c(d,T)}else u(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function u(f){if(!("plugins"in f)&&!("settings"in f))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");l(f.plugins),f.settings&&(a.settings=extend(!0,a.settings,f.settings))}function l(f){let d=-1;if(f!=null)if(Array.isArray(f))for(;++d<f.length;){const T=f[d];o(T)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function c(f,d){let T=-1,m=-1;for(;++T<i.length;)if(i[T][0]===f){m=T;break}if(m===-1)i.push([f,...d]);else if(d.length>0){let[y,...S]=d;const b=i[m][1];isPlainObject(b)&&isPlainObject(y)&&(y=extend(!0,b,y)),i[m]=[f,y,...S]}}}}const unified=new Processor().freeze();function assertParser(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function assertCompiler(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function assertUnfrozen(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 assertNode(e){if(!isPlainObject(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function assertDone(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function vfile(e){return looksLikeAVFile(e)?e:new VFile(e)}function looksLikeAVFile(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function looksLikeAValue(e){return typeof e=="string"||isUint8Array(e)}function isUint8Array(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const changelog="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",emptyPlugins=[],emptyRemarkRehypeOptions={allowDangerousHtml:!0},safeProtocol=/^(https?|ircs?|mailto|xmpp)$/i,deprecations=[{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 Markdown(e){const t=e.allowedElements,n=e.allowElement,i=e.children||"",a=e.className,o=e.components,u=e.disallowedElements,l=e.rehypePlugins||emptyPlugins,c=e.remarkPlugins||emptyPlugins,f=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...emptyRemarkRehypeOptions}:emptyRemarkRehypeOptions,d=e.skipHtml,T=e.unwrapDisallowed,m=e.urlTransform||defaultUrlTransform,y=unified().use(remarkParse).use(c).use(remarkRehype,f).use(l),S=new VFile;typeof i=="string"&&(S.value=i);for(const A of deprecations)Object.hasOwn(e,A.from)&&(""+A.from+(A.to?"use `"+A.to+"` instead":"remove it")+changelog+A.id,void 0);const b=y.parse(S);let L=y.runSync(b,S);return a&&(L={type:"element",tagName:"div",properties:{className:a},children:L.type==="root"?L.children:[L]}),visit(L,v),toJsxRuntime(L,{Fragment:jsxRuntime.Fragment,components:o,ignoreInvalidStyle:!0,jsx:jsxRuntime.jsx,jsxs:jsxRuntime.jsxs,passKeys:!0,passNode:!0});function v(A,_,I){if(A.type==="raw"&&I&&typeof _=="number")return d?I.children.splice(_,1):I.children[_]={type:"text",value:A.value},_;if(A.type==="element"){let C;for(C in urlAttributes)if(Object.hasOwn(urlAttributes,C)&&Object.hasOwn(A.properties,C)){const O=A.properties[C],B=urlAttributes[C];(B===null||B.includes(A.tagName))&&(A.properties[C]=m(String(O||""),C,A))}}if(A.type==="element"){let C=t?!t.includes(A.tagName):u?u.includes(A.tagName):!1;if(!C&&n&&typeof _=="number"&&(C=!n(A,_,I)),C&&I&&typeof _=="number")return T&&A.children?I.children.splice(_,1,...A.children):I.children.splice(_,1),_}}}function defaultUrlTransform(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||i>-1&&t>i||safeProtocol.test(e.slice(0,t))?e:""}const search=/[#.]/g;function parseSelector(e,t){const n=e||"",i={};let a=0,o,u;for(;a<n.length;){search.lastIndex=a;const l=search.exec(n),c=n.slice(a,l?l.index:n.length);c&&(o?o==="#"?i.id=c:Array.isArray(i.className)?i.className.push(c):i.className=[c]:u=c,a+=c.length),l&&(o=l[0],a++)}return{type:"element",tagName:u||t||"div",properties:i,children:[]}}const buttonTypes=new Set(["button","menu","reset","submit"]),own$3={}.hasOwnProperty;function createH(e,t,n){const i=n&&createAdjustMap(n);function a(o,u,...l){let c=-1,f;if(o==null){f={type:"root",children:[]};const d=u;l.unshift(d)}else if(f=parseSelector(o,t),f.tagName=f.tagName.toLowerCase(),i&&own$3.call(i,f.tagName)&&(f.tagName=i[f.tagName]),isProperties(u,f.tagName)){let d;for(d in u)own$3.call(u,d)&&addProperty(e,f.properties,d,u[d])}else l.unshift(u);for(;++c<l.length;)addChild(f.children,l[c]);return f.type==="element"&&f.tagName==="template"&&(f.content={type:"root",children:f.children},f.children=[]),f}return a}function isProperties(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?buttonTypes.has(e.type.toLowerCase()):!("value"in e)}function addProperty(e,t,n,i){const a=find(e,n);let o=-1,u;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;u=i}else typeof i=="boolean"?u=i:typeof i=="string"?a.spaceSeparated?u=parse$1(i):a.commaSeparated?u=parse$2(i):a.commaOrSpaceSeparated?u=parse$1(parse$2(i).join(" ")):u=parsePrimitive(a,a.property,i):Array.isArray(i)?u=i.concat():u=a.property==="style"?style(i):String(i);if(Array.isArray(u)){const l=[];for(;++o<u.length;){const c=parsePrimitive(a,a.property,u[o]);l[o]=c}u=l}if(a.property==="className"&&Array.isArray(t.className)){const l=u;u=t.className.concat(l)}t[a.property]=u}}function addChild(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)addChild(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?addChild(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function parsePrimitive(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||normalize$1(n)===normalize$1(t)))return!0}return n}function style(e){const t=[];let n;for(n in e)own$3.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function createAdjustMap(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const svgCaseSensitiveTagNames=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],h=createH(html$1,"div"),s=createH(svg,"g",svgCaseSensitiveTagNames);function location(e){const t=String(e),n=[];return{toOffset:a,toPoint:i};function i(o){if(typeof o=="number"&&o>-1&&o<=t.length){let u=0;for(;;){let l=n[u];if(l===void 0){const c=next(t,n[u-1]);l=c===-1?t.length+1:c+1,n[u]=l}if(l>o)return{line:u+1,column:o-(u>0?n[u-1]:0)+1,offset:o};u++}}}function a(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length<o.line;){const l=n[n.length-1],c=next(t,l),f=c===-1?t.length+1:c+1;if(l===f)break;n.push(f)}const u=(o.line>1?n[o.line-2]:0)+o.column-1;if(u<n[o.line-1])return u}}}function next(e,t){const n=e.indexOf("\r",t),i=e.indexOf(`
76
- `,t);return i===-1?n:n===-1||n+1===i?i:n<i?n:i}const webNamespaces={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},own$2={}.hasOwnProperty,proto=Object.prototype;function fromParse5(e,t){const n=t||{};return one$1({file:n.file||void 0,location:!1,schema:n.space==="svg"?svg:html$1,verbose:n.verbose||!1},e)}function one$1(e,t){let n;switch(t.nodeName){case"#comment":{const i=t;return n={type:"comment",value:i.data},patch$1(e,i,n),n}case"#document":case"#document-fragment":{const i=t,a="mode"in i?i.mode==="quirks"||i.mode==="limited-quirks":!1;if(n={type:"root",children:all$2(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const o=String(e.file),u=location(o),l=u.toPoint(0),c=u.toPoint(o.length);n.position={start:l,end:c}}return n}case"#documentType":{const i=t;return n={type:"doctype"},patch$1(e,i,n),n}case"#text":{const i=t;return n={type:"text",value:i.value},patch$1(e,i,n),n}default:return n=element$2(e,t),n}}function all$2(e,t){let n=-1;const i=[];for(;++n<t.length;){const a=one$1(e,t[n]);i.push(a)}return i}function element$2(e,t){const n=e.schema;e.schema=t.namespaceURI===webNamespaces.svg?svg:html$1;let i=-1;const a={};for(;++i<t.attrs.length;){const l=t.attrs[i],c=(l.prefix?l.prefix+":":"")+l.name;own$2.call(proto,c)||(a[c]=l.value)}const u=(e.schema.space==="svg"?s:h)(t.tagName,a,all$2(e,t.childNodes));if(patch$1(e,t,u),u.tagName==="template"){const l=t,c=l.sourceCodeLocation,f=c&&c.startTag&&position(c.startTag),d=c&&c.endTag&&position(c.endTag),T=one$1(e,l.content);f&&d&&e.file&&(T.position={start:f.end,end:d.start}),u.content=T}return e.schema=n,u}function patch$1(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const i=createLocation(e,n,t.sourceCodeLocation);i&&(e.location=!0,n.position=i)}}function createLocation(e,t,n){const i=position(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(i&&!n.endTag&&a&&a.position&&a.position.end&&(i.end=Object.assign({},a.position.end)),e.verbose){const o={};let u;if(n.attrs)for(u in n.attrs)own$2.call(n.attrs,u)&&(o[find(e.schema,u).property]=position(n.attrs[u]));n.startTag;const l=position(n.startTag),c=n.endTag?position(n.endTag):void 0,f={opening:l};c&&(f.closing=c),f.properties=o,t.data={position:f}}}return i}function position(e){const t=point({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=point({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function point(e){return e.line&&e.column?e:void 0}const own$1={}.hasOwnProperty;function zwitch(e,t){const n=t||{};function i(a,...o){let u=i.invalid;const l=i.handlers;if(a&&own$1.call(a,e)){const c=String(a[e]);u=own$1.call(l,c)?l[c]:i.unknown}if(u)return u.call(this,a,...o)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}const emptyOptions={},own={}.hasOwnProperty,one=zwitch("type",{handlers:{root:root$1,element:element$1,text:text$1,comment:comment$1,doctype:doctype$1}});function toParse5(e,t){const i=(t||emptyOptions).space;return one(e,i==="svg"?svg:html$1)}function root$1(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=all$1(e.children,n,t),patch(e,n),n}function fragment(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=all$1(e.children,n,t),patch(e,n),n}function doctype$1(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return patch(e,t),t}function text$1(e){const t={nodeName:"#text",value:e.value,parentNode:null};return patch(e,t),t}function comment$1(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return patch(e,t),t}function element$1(e,t){const n=t;let i=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=svg);const a=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&own.call(e.properties,o)){const c=createProperty(i,o,e.properties[o]);c&&a.push(c)}}const u=i.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:webNamespaces[u],childNodes:[],parentNode:null};return l.childNodes=all$1(e.children,l,i),patch(e,l),e.tagName==="template"&&e.content&&(l.content=fragment(e.content,i)),l}function createProperty(e,t,n){const i=find(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&i.boolean)return;Array.isArray(n)&&(n=i.commaSeparated?stringify$1(n):stringify(n));const a={name:i.attribute,value:n===!0?"":String(n)};if(i.space&&i.space!=="html"&&i.space!=="svg"){const o=a.name.indexOf(":");o<0?a.prefix="":(a.name=a.name.slice(o+1),a.prefix=i.attribute.slice(0,o)),a.namespace=webNamespaces[i.space]}return a}function all$1(e,t,n){let i=-1;const a=[];if(e)for(;++i<e.length;){const o=one(e[i],n);o.parentNode=t,a.push(o)}return a}function patch(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const htmlVoidElements=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],UNDEFINED_CODE_POINTS=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),REPLACEMENT_CHARACTER="�";var CODE_POINTS;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(CODE_POINTS||(CODE_POINTS={}));const SEQUENCES={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function isSurrogate(e){return e>=55296&&e<=57343}function isSurrogatePair(e){return e>=56320&&e<=57343}function getSurrogatePairCodePoint(e,t){return(e-55296)*1024+9216+t}function isControlCodePoint(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function isUndefinedCodePoint(e){return e>=64976&&e<=65007||UNDEFINED_CODE_POINTS.has(e)}var ERR;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ERR||(ERR={}));const DEFAULT_BUFFER_WATERLINE=65536;class Preprocessor{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=DEFAULT_BUFFER_WATERLINE,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:i,col:a,offset:o}=this,u=a+n,l=o+n;return{code:t,startLine:i,endLine:i,startCol:u,endCol:u,startOffset:l,endOffset:l}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(isSurrogatePair(n))return this.pos++,this._addGap(),getSurrogatePairCodePoint(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,CODE_POINTS.EOF;return this._err(ERR.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let i=0;i<t.length;i++)if((this.html.charCodeAt(this.pos+i)|32)!==t.charCodeAt(i))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;const i=this.html.charCodeAt(n);return i===CODE_POINTS.CARRIAGE_RETURN?CODE_POINTS.LINE_FEED:i}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,CODE_POINTS.EOF;let t=this.html.charCodeAt(this.pos);return t===CODE_POINTS.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,CODE_POINTS.LINE_FEED):t===CODE_POINTS.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,isSurrogate(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===CODE_POINTS.LINE_FEED||t===CODE_POINTS.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){isControlCodePoint(t)?this._err(ERR.controlCharacterInInputStream):isUndefinedCodePoint(t)&&this._err(ERR.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var TokenType;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(TokenType||(TokenType={}));function getTokenAttr(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const htmlDecodeTree=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),xmlDecodeTree=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var _a;const decodeMap=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),fromCodePoint=(_a=String.fromCodePoint)!==null&&_a!==void 0?_a:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function replaceCodePoint(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=decodeMap.get(e))!==null&&t!==void 0?t:e}var CharCodes;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(CharCodes||(CharCodes={}));const TO_LOWER_BIT=32;var BinTrieFlags;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(BinTrieFlags||(BinTrieFlags={}));function isNumber(e){return e>=CharCodes.ZERO&&e<=CharCodes.NINE}function isHexadecimalCharacter(e){return e>=CharCodes.UPPER_A&&e<=CharCodes.UPPER_F||e>=CharCodes.LOWER_A&&e<=CharCodes.LOWER_F}function isAsciiAlphaNumeric$1(e){return e>=CharCodes.UPPER_A&&e<=CharCodes.UPPER_Z||e>=CharCodes.LOWER_A&&e<=CharCodes.LOWER_Z||isNumber(e)}function isEntityInAttributeInvalidEnd(e){return e===CharCodes.EQUALS||isAsciiAlphaNumeric$1(e)}var EntityDecoderState;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(EntityDecoderState||(EntityDecoderState={}));var DecodingMode;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(DecodingMode||(DecodingMode={}));class EntityDecoder{constructor(t,n,i){this.decodeTree=t,this.emitCodePoint=n,this.errors=i,this.state=EntityDecoderState.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=DecodingMode.Strict}startEntity(t){this.decodeMode=t,this.state=EntityDecoderState.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case EntityDecoderState.EntityStart:return t.charCodeAt(n)===CharCodes.NUM?(this.state=EntityDecoderState.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=EntityDecoderState.NamedEntity,this.stateNamedEntity(t,n));case EntityDecoderState.NumericStart:return this.stateNumericStart(t,n);case EntityDecoderState.NumericDecimal:return this.stateNumericDecimal(t,n);case EntityDecoderState.NumericHex:return this.stateNumericHex(t,n);case EntityDecoderState.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|TO_LOWER_BIT)===CharCodes.LOWER_X?(this.state=EntityDecoderState.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=EntityDecoderState.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,i,a){if(n!==i){const o=i-n;this.result=this.result*Math.pow(a,o)+parseInt(t.substr(n,o),a),this.consumed+=o}}stateNumericHex(t,n){const i=n;for(;n<t.length;){const a=t.charCodeAt(n);if(isNumber(a)||isHexadecimalCharacter(a))n+=1;else return this.addToNumericResult(t,i,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,i,n,16),-1}stateNumericDecimal(t,n){const i=n;for(;n<t.length;){const a=t.charCodeAt(n);if(isNumber(a))n+=1;else return this.addToNumericResult(t,i,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,i,n,10),-1}emitNumericEntity(t,n){var i;if(this.consumed<=n)return(i=this.errors)===null||i===void 0||i.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===CharCodes.SEMI)this.consumed+=1;else if(this.decodeMode===DecodingMode.Strict)return 0;return this.emitCodePoint(replaceCodePoint(this.result),this.consumed),this.errors&&(t!==CharCodes.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:i}=this;let a=i[this.treeIndex],o=(a&BinTrieFlags.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=determineBranch(i,a,this.treeIndex+Math.max(1,o),u),this.treeIndex<0)return this.result===0||this.decodeMode===DecodingMode.Attribute&&(o===0||isEntityInAttributeInvalidEnd(u))?0:this.emitNotTerminatedNamedEntity();if(a=i[this.treeIndex],o=(a&BinTrieFlags.VALUE_LENGTH)>>14,o!==0){if(u===CharCodes.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==DecodingMode.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:i}=this,a=(i[n]&BinTrieFlags.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,i){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~BinTrieFlags.VALUE_LENGTH:a[t+1],i),n===3&&this.emitCodePoint(a[t+2],i),i}end(){var t;switch(this.state){case EntityDecoderState.NamedEntity:return this.result!==0&&(this.decodeMode!==DecodingMode.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case EntityDecoderState.NumericDecimal:return this.emitNumericEntity(0,2);case EntityDecoderState.NumericHex:return this.emitNumericEntity(0,3);case EntityDecoderState.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case EntityDecoderState.EntityStart:return 0}}}function getDecoder(e){let t="";const n=new EntityDecoder(e,i=>t+=fromCodePoint(i));return function(a,o){let u=0,l=0;for(;(l=a.indexOf("&",l))>=0;){t+=a.slice(u,l),n.startEntity(o);const f=n.write(a,l+1);if(f<0){u=l+n.end();break}u=l+f,l=f===0?u+1:u}const c=t+a.slice(u);return t="",c}}function determineBranch(e,t,n,i){const a=(t&BinTrieFlags.BRANCH_LENGTH)>>7,o=t&BinTrieFlags.JUMP_TABLE;if(a===0)return o!==0&&i===o?n:-1;if(o){const c=i-o;return c<0||c>=a?-1:e[n+c]-1}let u=n,l=u+a-1;for(;u<=l;){const c=u+l>>>1,f=e[c];if(f<i)u=c+1;else if(f>i)l=c-1;else return e[c+a]}return-1}getDecoder(htmlDecodeTree);getDecoder(xmlDecodeTree);var NS;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(NS||(NS={}));var ATTRS;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(ATTRS||(ATTRS={}));var DOCUMENT_MODE;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(DOCUMENT_MODE||(DOCUMENT_MODE={}));var TAG_NAMES;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(TAG_NAMES||(TAG_NAMES={}));var TAG_ID;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(TAG_ID||(TAG_ID={}));const TAG_NAME_TO_ID=new Map([[TAG_NAMES.A,TAG_ID.A],[TAG_NAMES.ADDRESS,TAG_ID.ADDRESS],[TAG_NAMES.ANNOTATION_XML,TAG_ID.ANNOTATION_XML],[TAG_NAMES.APPLET,TAG_ID.APPLET],[TAG_NAMES.AREA,TAG_ID.AREA],[TAG_NAMES.ARTICLE,TAG_ID.ARTICLE],[TAG_NAMES.ASIDE,TAG_ID.ASIDE],[TAG_NAMES.B,TAG_ID.B],[TAG_NAMES.BASE,TAG_ID.BASE],[TAG_NAMES.BASEFONT,TAG_ID.BASEFONT],[TAG_NAMES.BGSOUND,TAG_ID.BGSOUND],[TAG_NAMES.BIG,TAG_ID.BIG],[TAG_NAMES.BLOCKQUOTE,TAG_ID.BLOCKQUOTE],[TAG_NAMES.BODY,TAG_ID.BODY],[TAG_NAMES.BR,TAG_ID.BR],[TAG_NAMES.BUTTON,TAG_ID.BUTTON],[TAG_NAMES.CAPTION,TAG_ID.CAPTION],[TAG_NAMES.CENTER,TAG_ID.CENTER],[TAG_NAMES.CODE,TAG_ID.CODE],[TAG_NAMES.COL,TAG_ID.COL],[TAG_NAMES.COLGROUP,TAG_ID.COLGROUP],[TAG_NAMES.DD,TAG_ID.DD],[TAG_NAMES.DESC,TAG_ID.DESC],[TAG_NAMES.DETAILS,TAG_ID.DETAILS],[TAG_NAMES.DIALOG,TAG_ID.DIALOG],[TAG_NAMES.DIR,TAG_ID.DIR],[TAG_NAMES.DIV,TAG_ID.DIV],[TAG_NAMES.DL,TAG_ID.DL],[TAG_NAMES.DT,TAG_ID.DT],[TAG_NAMES.EM,TAG_ID.EM],[TAG_NAMES.EMBED,TAG_ID.EMBED],[TAG_NAMES.FIELDSET,TAG_ID.FIELDSET],[TAG_NAMES.FIGCAPTION,TAG_ID.FIGCAPTION],[TAG_NAMES.FIGURE,TAG_ID.FIGURE],[TAG_NAMES.FONT,TAG_ID.FONT],[TAG_NAMES.FOOTER,TAG_ID.FOOTER],[TAG_NAMES.FOREIGN_OBJECT,TAG_ID.FOREIGN_OBJECT],[TAG_NAMES.FORM,TAG_ID.FORM],[TAG_NAMES.FRAME,TAG_ID.FRAME],[TAG_NAMES.FRAMESET,TAG_ID.FRAMESET],[TAG_NAMES.H1,TAG_ID.H1],[TAG_NAMES.H2,TAG_ID.H2],[TAG_NAMES.H3,TAG_ID.H3],[TAG_NAMES.H4,TAG_ID.H4],[TAG_NAMES.H5,TAG_ID.H5],[TAG_NAMES.H6,TAG_ID.H6],[TAG_NAMES.HEAD,TAG_ID.HEAD],[TAG_NAMES.HEADER,TAG_ID.HEADER],[TAG_NAMES.HGROUP,TAG_ID.HGROUP],[TAG_NAMES.HR,TAG_ID.HR],[TAG_NAMES.HTML,TAG_ID.HTML],[TAG_NAMES.I,TAG_ID.I],[TAG_NAMES.IMG,TAG_ID.IMG],[TAG_NAMES.IMAGE,TAG_ID.IMAGE],[TAG_NAMES.INPUT,TAG_ID.INPUT],[TAG_NAMES.IFRAME,TAG_ID.IFRAME],[TAG_NAMES.KEYGEN,TAG_ID.KEYGEN],[TAG_NAMES.LABEL,TAG_ID.LABEL],[TAG_NAMES.LI,TAG_ID.LI],[TAG_NAMES.LINK,TAG_ID.LINK],[TAG_NAMES.LISTING,TAG_ID.LISTING],[TAG_NAMES.MAIN,TAG_ID.MAIN],[TAG_NAMES.MALIGNMARK,TAG_ID.MALIGNMARK],[TAG_NAMES.MARQUEE,TAG_ID.MARQUEE],[TAG_NAMES.MATH,TAG_ID.MATH],[TAG_NAMES.MENU,TAG_ID.MENU],[TAG_NAMES.META,TAG_ID.META],[TAG_NAMES.MGLYPH,TAG_ID.MGLYPH],[TAG_NAMES.MI,TAG_ID.MI],[TAG_NAMES.MO,TAG_ID.MO],[TAG_NAMES.MN,TAG_ID.MN],[TAG_NAMES.MS,TAG_ID.MS],[TAG_NAMES.MTEXT,TAG_ID.MTEXT],[TAG_NAMES.NAV,TAG_ID.NAV],[TAG_NAMES.NOBR,TAG_ID.NOBR],[TAG_NAMES.NOFRAMES,TAG_ID.NOFRAMES],[TAG_NAMES.NOEMBED,TAG_ID.NOEMBED],[TAG_NAMES.NOSCRIPT,TAG_ID.NOSCRIPT],[TAG_NAMES.OBJECT,TAG_ID.OBJECT],[TAG_NAMES.OL,TAG_ID.OL],[TAG_NAMES.OPTGROUP,TAG_ID.OPTGROUP],[TAG_NAMES.OPTION,TAG_ID.OPTION],[TAG_NAMES.P,TAG_ID.P],[TAG_NAMES.PARAM,TAG_ID.PARAM],[TAG_NAMES.PLAINTEXT,TAG_ID.PLAINTEXT],[TAG_NAMES.PRE,TAG_ID.PRE],[TAG_NAMES.RB,TAG_ID.RB],[TAG_NAMES.RP,TAG_ID.RP],[TAG_NAMES.RT,TAG_ID.RT],[TAG_NAMES.RTC,TAG_ID.RTC],[TAG_NAMES.RUBY,TAG_ID.RUBY],[TAG_NAMES.S,TAG_ID.S],[TAG_NAMES.SCRIPT,TAG_ID.SCRIPT],[TAG_NAMES.SEARCH,TAG_ID.SEARCH],[TAG_NAMES.SECTION,TAG_ID.SECTION],[TAG_NAMES.SELECT,TAG_ID.SELECT],[TAG_NAMES.SOURCE,TAG_ID.SOURCE],[TAG_NAMES.SMALL,TAG_ID.SMALL],[TAG_NAMES.SPAN,TAG_ID.SPAN],[TAG_NAMES.STRIKE,TAG_ID.STRIKE],[TAG_NAMES.STRONG,TAG_ID.STRONG],[TAG_NAMES.STYLE,TAG_ID.STYLE],[TAG_NAMES.SUB,TAG_ID.SUB],[TAG_NAMES.SUMMARY,TAG_ID.SUMMARY],[TAG_NAMES.SUP,TAG_ID.SUP],[TAG_NAMES.TABLE,TAG_ID.TABLE],[TAG_NAMES.TBODY,TAG_ID.TBODY],[TAG_NAMES.TEMPLATE,TAG_ID.TEMPLATE],[TAG_NAMES.TEXTAREA,TAG_ID.TEXTAREA],[TAG_NAMES.TFOOT,TAG_ID.TFOOT],[TAG_NAMES.TD,TAG_ID.TD],[TAG_NAMES.TH,TAG_ID.TH],[TAG_NAMES.THEAD,TAG_ID.THEAD],[TAG_NAMES.TITLE,TAG_ID.TITLE],[TAG_NAMES.TR,TAG_ID.TR],[TAG_NAMES.TRACK,TAG_ID.TRACK],[TAG_NAMES.TT,TAG_ID.TT],[TAG_NAMES.U,TAG_ID.U],[TAG_NAMES.UL,TAG_ID.UL],[TAG_NAMES.SVG,TAG_ID.SVG],[TAG_NAMES.VAR,TAG_ID.VAR],[TAG_NAMES.WBR,TAG_ID.WBR],[TAG_NAMES.XMP,TAG_ID.XMP]]);function getTagID(e){var t;return(t=TAG_NAME_TO_ID.get(e))!==null&&t!==void 0?t:TAG_ID.UNKNOWN}const $=TAG_ID,SPECIAL_ELEMENTS={[NS.HTML]:new Set([$.ADDRESS,$.APPLET,$.AREA,$.ARTICLE,$.ASIDE,$.BASE,$.BASEFONT,$.BGSOUND,$.BLOCKQUOTE,$.BODY,$.BR,$.BUTTON,$.CAPTION,$.CENTER,$.COL,$.COLGROUP,$.DD,$.DETAILS,$.DIR,$.DIV,$.DL,$.DT,$.EMBED,$.FIELDSET,$.FIGCAPTION,$.FIGURE,$.FOOTER,$.FORM,$.FRAME,$.FRAMESET,$.H1,$.H2,$.H3,$.H4,$.H5,$.H6,$.HEAD,$.HEADER,$.HGROUP,$.HR,$.HTML,$.IFRAME,$.IMG,$.INPUT,$.LI,$.LINK,$.LISTING,$.MAIN,$.MARQUEE,$.MENU,$.META,$.NAV,$.NOEMBED,$.NOFRAMES,$.NOSCRIPT,$.OBJECT,$.OL,$.P,$.PARAM,$.PLAINTEXT,$.PRE,$.SCRIPT,$.SECTION,$.SELECT,$.SOURCE,$.STYLE,$.SUMMARY,$.TABLE,$.TBODY,$.TD,$.TEMPLATE,$.TEXTAREA,$.TFOOT,$.TH,$.THEAD,$.TITLE,$.TR,$.TRACK,$.UL,$.WBR,$.XMP]),[NS.MATHML]:new Set([$.MI,$.MO,$.MN,$.MS,$.MTEXT,$.ANNOTATION_XML]),[NS.SVG]:new Set([$.TITLE,$.FOREIGN_OBJECT,$.DESC]),[NS.XLINK]:new Set,[NS.XML]:new Set,[NS.XMLNS]:new Set},NUMBERED_HEADERS=new Set([$.H1,$.H2,$.H3,$.H4,$.H5,$.H6]);TAG_NAMES.STYLE,TAG_NAMES.SCRIPT,TAG_NAMES.XMP,TAG_NAMES.IFRAME,TAG_NAMES.NOEMBED,TAG_NAMES.NOFRAMES,TAG_NAMES.PLAINTEXT;var State;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(State||(State={}));const TokenizerMode={DATA:State.DATA,RCDATA:State.RCDATA,RAWTEXT:State.RAWTEXT,SCRIPT_DATA:State.SCRIPT_DATA,PLAINTEXT:State.PLAINTEXT,CDATA_SECTION:State.CDATA_SECTION};function isAsciiDigit(e){return e>=CODE_POINTS.DIGIT_0&&e<=CODE_POINTS.DIGIT_9}function isAsciiUpper(e){return e>=CODE_POINTS.LATIN_CAPITAL_A&&e<=CODE_POINTS.LATIN_CAPITAL_Z}function isAsciiLower(e){return e>=CODE_POINTS.LATIN_SMALL_A&&e<=CODE_POINTS.LATIN_SMALL_Z}function isAsciiLetter(e){return isAsciiLower(e)||isAsciiUpper(e)}function isAsciiAlphaNumeric(e){return isAsciiLetter(e)||isAsciiDigit(e)}function toAsciiLower(e){return e+32}function isWhitespace(e){return e===CODE_POINTS.SPACE||e===CODE_POINTS.LINE_FEED||e===CODE_POINTS.TABULATION||e===CODE_POINTS.FORM_FEED}function isScriptDataDoubleEscapeSequenceEnd(e){return isWhitespace(e)||e===CODE_POINTS.SOLIDUS||e===CODE_POINTS.GREATER_THAN_SIGN}function getErrorForNumericCharacterReference(e){return e===CODE_POINTS.NULL?ERR.nullCharacterReference:e>1114111?ERR.characterReferenceOutsideUnicodeRange:isSurrogate(e)?ERR.surrogateCharacterReference:isUndefinedCodePoint(e)?ERR.noncharacterCharacterReference:isControlCodePoint(e)||e===CODE_POINTS.CARRIAGE_RETURN?ERR.controlCharacterReference:null}class Tokenizer{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=State.DATA,this.returnState=State.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Preprocessor(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new EntityDecoder(htmlDecodeTree,(i,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(i)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ERR.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:i=>{this._err(ERR.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+i)},validateNumericCharacterReference:i=>{const a=getErrorForNumericCharacterReference(i);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var i,a;(a=(i=this.handler).onParseError)===null||a===void 0||a.call(i,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,i){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||i?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:TokenType.START_TAG,tagName:"",tagID:TAG_ID.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:TokenType.END_TAG,tagName:"",tagID:TAG_ID.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:TokenType.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:TokenType.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const i=this.currentToken;if(getTokenAttr(i,this.currentAttr.name)===null){if(i.attrs.push(this.currentAttr),i.location&&this.currentLocation){const a=(t=(n=i.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ERR.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=getTagID(t.tagName),t.type===TokenType.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ERR.endTagWithAttributes),t.selfClosing&&this._err(ERR.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case TokenType.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case TokenType.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case TokenType.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:TokenType.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=isWhitespace(t)?TokenType.WHITESPACE_CHARACTER:t===CODE_POINTS.NULL?TokenType.NULL_CHARACTER:TokenType.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(TokenType.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=State.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?DecodingMode.Attribute:DecodingMode.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===State.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===State.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===State.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case State.DATA:{this._stateData(t);break}case State.RCDATA:{this._stateRcdata(t);break}case State.RAWTEXT:{this._stateRawtext(t);break}case State.SCRIPT_DATA:{this._stateScriptData(t);break}case State.PLAINTEXT:{this._statePlaintext(t);break}case State.TAG_OPEN:{this._stateTagOpen(t);break}case State.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case State.TAG_NAME:{this._stateTagName(t);break}case State.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case State.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case State.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case State.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case State.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case State.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case State.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case State.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case State.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case State.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case State.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case State.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case State.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case State.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case State.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case State.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case State.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case State.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case State.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case State.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case State.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case State.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case State.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case State.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case State.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case State.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case State.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case State.BOGUS_COMMENT:{this._stateBogusComment(t);break}case State.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case State.COMMENT_START:{this._stateCommentStart(t);break}case State.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case State.COMMENT:{this._stateComment(t);break}case State.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case State.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case State.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case State.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case State.COMMENT_END:{this._stateCommentEnd(t);break}case State.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case State.DOCTYPE:{this._stateDoctype(t);break}case State.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case State.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case State.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case State.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case State.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case State.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case State.CDATA_SECTION:{this._stateCdataSection(t);break}case State.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case State.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case State.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case State.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State.TAG_OPEN;break}case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitCodePoint(t);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State.RCDATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State.RAWTEXT_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case CODE_POINTS.LESS_THAN_SIGN:{this.state=State.SCRIPT_DATA_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(isAsciiLetter(t))this._createStartTagToken(),this.state=State.TAG_NAME,this._stateTagName(t);else switch(t){case CODE_POINTS.EXCLAMATION_MARK:{this.state=State.MARKUP_DECLARATION_OPEN;break}case CODE_POINTS.SOLIDUS:{this.state=State.END_TAG_OPEN;break}case CODE_POINTS.QUESTION_MARK:{this._err(ERR.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=State.BOGUS_COMMENT,this._stateBogusComment(t);break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ERR.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=State.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(isAsciiLetter(t))this._createEndTagToken(),this.state=State.TAG_NAME,this._stateTagName(t);else switch(t){case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingEndTagName),this.state=State.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ERR.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=State.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:{this.state=State.BEFORE_ATTRIBUTE_NAME;break}case CODE_POINTS.SOLIDUS:{this.state=State.SELF_CLOSING_START_TAG;break}case CODE_POINTS.GREATER_THAN_SIGN:{this.state=State.DATA,this.emitCurrentTagToken();break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),n.tagName+=REPLACEMENT_CHARACTER;break}case CODE_POINTS.EOF:{this._err(ERR.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(isAsciiUpper(t)?toAsciiLower(t):t)}}_stateRcdataLessThanSign(t){t===CODE_POINTS.SOLIDUS?this.state=State.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=State.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){isAsciiLetter(t)?(this.state=State.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=State.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=State.BEFORE_ATTRIBUTE_NAME,!1;case CODE_POINTS.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=State.SELF_CLOSING_START_TAG,!1;case CODE_POINTS.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=State.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=State.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===CODE_POINTS.SOLIDUS?this.state=State.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=State.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){isAsciiLetter(t)?(this.state=State.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=State.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=State.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case CODE_POINTS.SOLIDUS:{this.state=State.SCRIPT_DATA_END_TAG_OPEN;break}case CODE_POINTS.EXCLAMATION_MARK:{this.state=State.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=State.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){isAsciiLetter(t)?(this.state=State.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=State.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=State.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===CODE_POINTS.HYPHEN_MINUS?(this.state=State.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=State.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===CODE_POINTS.HYPHEN_MINUS?(this.state=State.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=State.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case CODE_POINTS.HYPHEN_MINUS:{this.state=State.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case CODE_POINTS.HYPHEN_MINUS:{this.state=State.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State.SCRIPT_DATA_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case CODE_POINTS.HYPHEN_MINUS:{this._emitChars("-");break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case CODE_POINTS.GREATER_THAN_SIGN:{this.state=State.SCRIPT_DATA,this._emitChars(">");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State.SCRIPT_DATA_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===CODE_POINTS.SOLIDUS?this.state=State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:isAsciiLetter(t)?(this._emitChars("<"),this.state=State.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=State.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){isAsciiLetter(t)?(this.state=State.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=State.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=State.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(SEQUENCES.SCRIPT,!1)&&isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<SEQUENCES.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=State.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case CODE_POINTS.HYPHEN_MINUS:{this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case CODE_POINTS.HYPHEN_MINUS:{this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case CODE_POINTS.HYPHEN_MINUS:{this._emitChars("-");break}case CODE_POINTS.LESS_THAN_SIGN:{this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case CODE_POINTS.GREATER_THAN_SIGN:{this.state=State.SCRIPT_DATA,this._emitChars(">");break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(REPLACEMENT_CHARACTER);break}case CODE_POINTS.EOF:{this._err(ERR.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===CODE_POINTS.SOLIDUS?(this.state=State.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(SEQUENCES.SCRIPT,!1)&&isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek(SEQUENCES.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<SEQUENCES.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=State.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=State.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.SOLIDUS:case CODE_POINTS.GREATER_THAN_SIGN:case CODE_POINTS.EOF:{this.state=State.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case CODE_POINTS.EQUALS_SIGN:{this._err(ERR.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=State.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=State.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:case CODE_POINTS.SOLIDUS:case CODE_POINTS.GREATER_THAN_SIGN:case CODE_POINTS.EOF:{this._leaveAttrName(),this.state=State.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case CODE_POINTS.EQUALS_SIGN:{this._leaveAttrName(),this.state=State.BEFORE_ATTRIBUTE_VALUE;break}case CODE_POINTS.QUOTATION_MARK:case CODE_POINTS.APOSTROPHE:case CODE_POINTS.LESS_THAN_SIGN:{this._err(ERR.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.currentAttr.name+=REPLACEMENT_CHARACTER;break}default:this.currentAttr.name+=String.fromCodePoint(isAsciiUpper(t)?toAsciiLower(t):t)}}_stateAfterAttributeName(t){switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.SOLIDUS:{this.state=State.SELF_CLOSING_START_TAG;break}case CODE_POINTS.EQUALS_SIGN:{this.state=State.BEFORE_ATTRIBUTE_VALUE;break}case CODE_POINTS.GREATER_THAN_SIGN:{this.state=State.DATA,this.emitCurrentTagToken();break}case CODE_POINTS.EOF:{this._err(ERR.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=State.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.QUOTATION_MARK:{this.state=State.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case CODE_POINTS.APOSTROPHE:{this.state=State.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingAttributeValue),this.state=State.DATA,this.emitCurrentTagToken();break}default:this.state=State.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case CODE_POINTS.QUOTATION_MARK:{this.state=State.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.currentAttr.value+=REPLACEMENT_CHARACTER;break}case CODE_POINTS.EOF:{this._err(ERR.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case CODE_POINTS.APOSTROPHE:{this.state=State.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.currentAttr.value+=REPLACEMENT_CHARACTER;break}case CODE_POINTS.EOF:{this._err(ERR.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:{this._leaveAttrValue(),this.state=State.BEFORE_ATTRIBUTE_NAME;break}case CODE_POINTS.AMPERSAND:{this._startCharacterReference();break}case CODE_POINTS.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=State.DATA,this.emitCurrentTagToken();break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this.currentAttr.value+=REPLACEMENT_CHARACTER;break}case CODE_POINTS.QUOTATION_MARK:case CODE_POINTS.APOSTROPHE:case CODE_POINTS.LESS_THAN_SIGN:case CODE_POINTS.EQUALS_SIGN:case CODE_POINTS.GRAVE_ACCENT:{this._err(ERR.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case CODE_POINTS.EOF:{this._err(ERR.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:{this._leaveAttrValue(),this.state=State.BEFORE_ATTRIBUTE_NAME;break}case CODE_POINTS.SOLIDUS:{this._leaveAttrValue(),this.state=State.SELF_CLOSING_START_TAG;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=State.DATA,this.emitCurrentTagToken();break}case CODE_POINTS.EOF:{this._err(ERR.eofInTag),this._emitEOFToken();break}default:this._err(ERR.missingWhitespaceBetweenAttributes),this.state=State.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case CODE_POINTS.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=State.DATA,this.emitCurrentTagToken();break}case CODE_POINTS.EOF:{this._err(ERR.eofInTag),this._emitEOFToken();break}default:this._err(ERR.unexpectedSolidusInTag),this.state=State.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case CODE_POINTS.GREATER_THAN_SIGN:{this.state=State.DATA,this.emitCurrentComment(n);break}case CODE_POINTS.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),n.data+=REPLACEMENT_CHARACTER;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(SEQUENCES.DASH_DASH,!0)?(this._createCommentToken(SEQUENCES.DASH_DASH.length+1),this.state=State.COMMENT_START):this._consumeSequenceIfMatch(SEQUENCES.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(SEQUENCES.DOCTYPE.length+1),this.state=State.DOCTYPE):this._consumeSequenceIfMatch(SEQUENCES.CDATA_START,!0)?this.inForeignNode?this.state=State.CDATA_SECTION:(this._err(ERR.cdataInHtmlContent),this._createCommentToken(SEQUENCES.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=State.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ERR.incorrectlyOpenedComment),this._createCommentToken(2),this.state=State.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case CODE_POINTS.HYPHEN_MINUS:{this.state=State.COMMENT_START_DASH;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.abruptClosingOfEmptyComment),this.state=State.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=State.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case CODE_POINTS.HYPHEN_MINUS:{this.state=State.COMMENT_END;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.abruptClosingOfEmptyComment),this.state=State.DATA,this.emitCurrentComment(n);break}case CODE_POINTS.EOF:{this._err(ERR.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=State.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case CODE_POINTS.HYPHEN_MINUS:{this.state=State.COMMENT_END_DASH;break}case CODE_POINTS.LESS_THAN_SIGN:{n.data+="<",this.state=State.COMMENT_LESS_THAN_SIGN;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),n.data+=REPLACEMENT_CHARACTER;break}case CODE_POINTS.EOF:{this._err(ERR.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case CODE_POINTS.EXCLAMATION_MARK:{n.data+="!",this.state=State.COMMENT_LESS_THAN_SIGN_BANG;break}case CODE_POINTS.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=State.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===CODE_POINTS.HYPHEN_MINUS?this.state=State.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=State.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===CODE_POINTS.HYPHEN_MINUS?this.state=State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=State.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==CODE_POINTS.GREATER_THAN_SIGN&&t!==CODE_POINTS.EOF&&this._err(ERR.nestedComment),this.state=State.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case CODE_POINTS.HYPHEN_MINUS:{this.state=State.COMMENT_END;break}case CODE_POINTS.EOF:{this._err(ERR.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=State.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case CODE_POINTS.GREATER_THAN_SIGN:{this.state=State.DATA,this.emitCurrentComment(n);break}case CODE_POINTS.EXCLAMATION_MARK:{this.state=State.COMMENT_END_BANG;break}case CODE_POINTS.HYPHEN_MINUS:{n.data+="-";break}case CODE_POINTS.EOF:{this._err(ERR.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=State.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case CODE_POINTS.HYPHEN_MINUS:{n.data+="--!",this.state=State.COMMENT_END_DASH;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.incorrectlyClosedComment),this.state=State.DATA,this.emitCurrentComment(n);break}case CODE_POINTS.EOF:{this._err(ERR.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=State.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:{this.state=State.BEFORE_DOCTYPE_NAME;break}case CODE_POINTS.GREATER_THAN_SIGN:{this.state=State.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ERR.missingWhitespaceBeforeDoctypeName),this.state=State.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(isAsciiUpper(t))this._createDoctypeToken(String.fromCharCode(toAsciiLower(t))),this.state=State.DOCTYPE_NAME;else switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),this._createDoctypeToken(REPLACEMENT_CHARACTER),this.state=State.DOCTYPE_NAME;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=State.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=State.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:{this.state=State.AFTER_DOCTYPE_NAME;break}case CODE_POINTS.GREATER_THAN_SIGN:{this.state=State.DATA,this.emitCurrentDoctype(n);break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),n.name+=REPLACEMENT_CHARACTER;break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(isAsciiUpper(t)?toAsciiLower(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.GREATER_THAN_SIGN:{this.state=State.DATA,this.emitCurrentDoctype(n);break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(SEQUENCES.PUBLIC,!1)?this.state=State.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(SEQUENCES.SYSTEM,!1)?this.state=State.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ERR.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:{this.state=State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case CODE_POINTS.QUOTATION_MARK:{this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case CODE_POINTS.APOSTROPHE:{this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=State.DATA,this.emitCurrentDoctype(n);break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.QUOTATION_MARK:{n.publicId="",this.state=State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case CODE_POINTS.APOSTROPHE:{n.publicId="",this.state=State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=State.DATA,this.emitCurrentDoctype(n);break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case CODE_POINTS.QUOTATION_MARK:{this.state=State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),n.publicId+=REPLACEMENT_CHARACTER;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=State.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case CODE_POINTS.APOSTROPHE:{this.state=State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),n.publicId+=REPLACEMENT_CHARACTER;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=State.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:{this.state=State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case CODE_POINTS.GREATER_THAN_SIGN:{this.state=State.DATA,this.emitCurrentDoctype(n);break}case CODE_POINTS.QUOTATION_MARK:{this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case CODE_POINTS.APOSTROPHE:{this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=State.DATA;break}case CODE_POINTS.QUOTATION_MARK:{n.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case CODE_POINTS.APOSTROPHE:{n.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:{this.state=State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case CODE_POINTS.QUOTATION_MARK:{this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case CODE_POINTS.APOSTROPHE:{this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=State.DATA,this.emitCurrentDoctype(n);break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.QUOTATION_MARK:{n.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case CODE_POINTS.APOSTROPHE:{n.systemId="",this.state=State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=State.DATA,this.emitCurrentDoctype(n);break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case CODE_POINTS.QUOTATION_MARK:{this.state=State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),n.systemId+=REPLACEMENT_CHARACTER;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=State.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case CODE_POINTS.APOSTROPHE:{this.state=State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter),n.systemId+=REPLACEMENT_CHARACTER;break}case CODE_POINTS.GREATER_THAN_SIGN:{this._err(ERR.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=State.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case CODE_POINTS.SPACE:case CODE_POINTS.LINE_FEED:case CODE_POINTS.TABULATION:case CODE_POINTS.FORM_FEED:break;case CODE_POINTS.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=State.DATA;break}case CODE_POINTS.EOF:{this._err(ERR.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ERR.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=State.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case CODE_POINTS.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=State.DATA;break}case CODE_POINTS.NULL:{this._err(ERR.unexpectedNullCharacter);break}case CODE_POINTS.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case CODE_POINTS.RIGHT_SQUARE_BRACKET:{this.state=State.CDATA_SECTION_BRACKET;break}case CODE_POINTS.EOF:{this._err(ERR.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===CODE_POINTS.RIGHT_SQUARE_BRACKET?this.state=State.CDATA_SECTION_END:(this._emitChars("]"),this.state=State.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case CODE_POINTS.GREATER_THAN_SIGN:{this.state=State.DATA;break}case CODE_POINTS.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=State.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(CODE_POINTS.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&isAsciiAlphaNumeric(this.preprocessor.peek(1))?State.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){isAsciiAlphaNumeric(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===CODE_POINTS.SEMICOLON&&this._err(ERR.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const IMPLICIT_END_TAG_REQUIRED=new Set([TAG_ID.DD,TAG_ID.DT,TAG_ID.LI,TAG_ID.OPTGROUP,TAG_ID.OPTION,TAG_ID.P,TAG_ID.RB,TAG_ID.RP,TAG_ID.RT,TAG_ID.RTC]),IMPLICIT_END_TAG_REQUIRED_THOROUGHLY=new Set([...IMPLICIT_END_TAG_REQUIRED,TAG_ID.CAPTION,TAG_ID.COLGROUP,TAG_ID.TBODY,TAG_ID.TD,TAG_ID.TFOOT,TAG_ID.TH,TAG_ID.THEAD,TAG_ID.TR]),SCOPING_ELEMENTS_HTML=new Set([TAG_ID.APPLET,TAG_ID.CAPTION,TAG_ID.HTML,TAG_ID.MARQUEE,TAG_ID.OBJECT,TAG_ID.TABLE,TAG_ID.TD,TAG_ID.TEMPLATE,TAG_ID.TH]),SCOPING_ELEMENTS_HTML_LIST=new Set([...SCOPING_ELEMENTS_HTML,TAG_ID.OL,TAG_ID.UL]),SCOPING_ELEMENTS_HTML_BUTTON=new Set([...SCOPING_ELEMENTS_HTML,TAG_ID.BUTTON]),SCOPING_ELEMENTS_MATHML=new Set([TAG_ID.ANNOTATION_XML,TAG_ID.MI,TAG_ID.MN,TAG_ID.MO,TAG_ID.MS,TAG_ID.MTEXT]),SCOPING_ELEMENTS_SVG=new Set([TAG_ID.DESC,TAG_ID.FOREIGN_OBJECT,TAG_ID.TITLE]),TABLE_ROW_CONTEXT=new Set([TAG_ID.TR,TAG_ID.TEMPLATE,TAG_ID.HTML]),TABLE_BODY_CONTEXT=new Set([TAG_ID.TBODY,TAG_ID.TFOOT,TAG_ID.THEAD,TAG_ID.TEMPLATE,TAG_ID.HTML]),TABLE_CONTEXT=new Set([TAG_ID.TABLE,TAG_ID.TEMPLATE,TAG_ID.HTML]),TABLE_CELLS=new Set([TAG_ID.TD,TAG_ID.TH]);class OpenElementStack{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,i){this.treeAdapter=n,this.handler=i,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=TAG_ID.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===TAG_ID.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===NS.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const i=this._indexOf(t);this.items[i]=n,i===this.stackTop&&(this.current=n)}insertAfter(t,n,i){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,i),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==NS.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const i=this._indexOfTagNames(t,n);this.shortenToLength(i<0?0:i)}popUntilNumberedHeaderPopped(){this.popUntilPopped(NUMBERED_HEADERS,NS.HTML)}popUntilTableCellPopped(){this.popUntilPopped(TABLE_CELLS,NS.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let i=this.stackTop;i>=0;i--)if(t.has(this.tagIDs[i])&&this.treeAdapter.getNamespaceURI(this.items[i])===n)return i;return-1}clearBackTo(t,n){const i=this._indexOfTagNames(t,n);this.shortenToLength(i+1)}clearBackToTableContext(){this.clearBackTo(TABLE_CONTEXT,NS.HTML)}clearBackToTableBodyContext(){this.clearBackTo(TABLE_BODY_CONTEXT,NS.HTML)}clearBackToTableRowContext(){this.clearBackTo(TABLE_ROW_CONTEXT,NS.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===TAG_ID.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===TAG_ID.HTML}hasInDynamicScope(t,n){for(let i=this.stackTop;i>=0;i--){const a=this.tagIDs[i];switch(this.treeAdapter.getNamespaceURI(this.items[i])){case NS.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case NS.SVG:{if(SCOPING_ELEMENTS_SVG.has(a))return!1;break}case NS.MATHML:{if(SCOPING_ELEMENTS_MATHML.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,SCOPING_ELEMENTS_HTML)}hasInListItemScope(t){return this.hasInDynamicScope(t,SCOPING_ELEMENTS_HTML_LIST)}hasInButtonScope(t){return this.hasInDynamicScope(t,SCOPING_ELEMENTS_HTML_BUTTON)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case NS.HTML:{if(NUMBERED_HEADERS.has(n))return!0;if(SCOPING_ELEMENTS_HTML.has(n))return!1;break}case NS.SVG:{if(SCOPING_ELEMENTS_SVG.has(n))return!1;break}case NS.MATHML:{if(SCOPING_ELEMENTS_MATHML.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===NS.HTML)switch(this.tagIDs[n]){case t:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===NS.HTML)switch(this.tagIDs[t]){case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:return!0;case TAG_ID.TABLE:case TAG_ID.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===NS.HTML)switch(this.tagIDs[n]){case t:return!0;case TAG_ID.OPTION:case TAG_ID.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId);)this.pop()}}const NOAH_ARK_CAPACITY=3;var EntryType;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(EntryType||(EntryType={}));const MARKER={type:EntryType.Marker};class FormattingElementList{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const i=[],a=n.length,o=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let l=0;l<this.entries.length;l++){const c=this.entries[l];if(c.type===EntryType.Marker)break;const{element:f}=c;if(this.treeAdapter.getTagName(f)===o&&this.treeAdapter.getNamespaceURI(f)===u){const d=this.treeAdapter.getAttrList(f);d.length===a&&i.push({idx:l,attrs:d})}}return i}_ensureNoahArkCondition(t){if(this.entries.length<NOAH_ARK_CAPACITY)return;const n=this.treeAdapter.getAttrList(t),i=this._getNoahArkConditionCandidates(t,n);if(i.length<NOAH_ARK_CAPACITY)return;const a=new Map(n.map(u=>[u.name,u.value]));let o=0;for(let u=0;u<i.length;u++){const l=i[u];l.attrs.every(c=>a.get(c.name)===c.value)&&(o+=1,o>=NOAH_ARK_CAPACITY&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(MARKER)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:EntryType.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const i=this.entries.indexOf(this.bookmark);this.entries.splice(i,0,{type:EntryType.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(MARKER);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(i=>i.type===EntryType.Marker||this.treeAdapter.getTagName(i.element)===t);return n&&n.type===EntryType.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===EntryType.Element&&n.element===t)}}const defaultTreeAdapter={createDocument(){return{nodeName:"#document",mode:DOCUMENT_MODE.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,i){const a=e.childNodes.find(o=>o.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=i;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null};defaultTreeAdapter.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(defaultTreeAdapter.isTextNode(n)){n.value+=t;return}}defaultTreeAdapter.appendChild(e,defaultTreeAdapter.createTextNode(t))},insertTextBefore(e,t,n){const i=e.childNodes[e.childNodes.indexOf(n)-1];i&&defaultTreeAdapter.isTextNode(i)?i.value+=t:defaultTreeAdapter.insertBefore(e,defaultTreeAdapter.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(i=>i.name));for(let i=0;i<t.length;i++)n.has(t[i].name)||e.attrs.push(t[i])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},VALID_DOCTYPE_NAME="html",VALID_SYSTEM_ID="about:legacy-compat",QUIRKS_MODE_SYSTEM_ID="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",QUIRKS_MODE_PUBLIC_ID_PREFIXES=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES=[...QUIRKS_MODE_PUBLIC_ID_PREFIXES,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],QUIRKS_MODE_PUBLIC_IDS=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),LIMITED_QUIRKS_PUBLIC_ID_PREFIXES=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES=[...LIMITED_QUIRKS_PUBLIC_ID_PREFIXES,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function hasPrefix(e,t){return t.some(n=>e.startsWith(n))}function isConforming(e){return e.name===VALID_DOCTYPE_NAME&&e.publicId===null&&(e.systemId===null||e.systemId===VALID_SYSTEM_ID)}function getDocumentMode(e){if(e.name!==VALID_DOCTYPE_NAME)return DOCUMENT_MODE.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===QUIRKS_MODE_SYSTEM_ID)return DOCUMENT_MODE.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),QUIRKS_MODE_PUBLIC_IDS.has(n))return DOCUMENT_MODE.QUIRKS;let i=t===null?QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES:QUIRKS_MODE_PUBLIC_ID_PREFIXES;if(hasPrefix(n,i))return DOCUMENT_MODE.QUIRKS;if(i=t===null?LIMITED_QUIRKS_PUBLIC_ID_PREFIXES:LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES,hasPrefix(n,i))return DOCUMENT_MODE.LIMITED_QUIRKS}return DOCUMENT_MODE.NO_QUIRKS}const MIME_TYPES={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},DEFINITION_URL_ATTR="definitionurl",ADJUSTED_DEFINITION_URL_ATTR="definitionURL",SVG_ATTRS_ADJUSTMENT_MAP=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),XML_ATTRS_ADJUSTMENT_MAP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:NS.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:NS.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:NS.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:NS.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:NS.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:NS.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:NS.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:NS.XML}],["xml:space",{prefix:"xml",name:"space",namespace:NS.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:NS.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:NS.XMLNS}]]),SVG_TAG_NAMES_ADJUSTMENT_MAP=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),EXITS_FOREIGN_CONTENT=new Set([TAG_ID.B,TAG_ID.BIG,TAG_ID.BLOCKQUOTE,TAG_ID.BODY,TAG_ID.BR,TAG_ID.CENTER,TAG_ID.CODE,TAG_ID.DD,TAG_ID.DIV,TAG_ID.DL,TAG_ID.DT,TAG_ID.EM,TAG_ID.EMBED,TAG_ID.H1,TAG_ID.H2,TAG_ID.H3,TAG_ID.H4,TAG_ID.H5,TAG_ID.H6,TAG_ID.HEAD,TAG_ID.HR,TAG_ID.I,TAG_ID.IMG,TAG_ID.LI,TAG_ID.LISTING,TAG_ID.MENU,TAG_ID.META,TAG_ID.NOBR,TAG_ID.OL,TAG_ID.P,TAG_ID.PRE,TAG_ID.RUBY,TAG_ID.S,TAG_ID.SMALL,TAG_ID.SPAN,TAG_ID.STRONG,TAG_ID.STRIKE,TAG_ID.SUB,TAG_ID.SUP,TAG_ID.TABLE,TAG_ID.TT,TAG_ID.U,TAG_ID.UL,TAG_ID.VAR]);function causesExit(e){const t=e.tagID;return t===TAG_ID.FONT&&e.attrs.some(({name:i})=>i===ATTRS.COLOR||i===ATTRS.SIZE||i===ATTRS.FACE)||EXITS_FOREIGN_CONTENT.has(t)}function adjustTokenMathMLAttrs(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===DEFINITION_URL_ATTR){e.attrs[t].name=ADJUSTED_DEFINITION_URL_ATTR;break}}function adjustTokenSVGAttrs(e){for(let t=0;t<e.attrs.length;t++){const n=SVG_ATTRS_ADJUSTMENT_MAP.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function adjustTokenXMLAttrs(e){for(let t=0;t<e.attrs.length;t++){const n=XML_ATTRS_ADJUSTMENT_MAP.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function adjustTokenSVGTagName(e){const t=SVG_TAG_NAMES_ADJUSTMENT_MAP.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=getTagID(e.tagName))}function isMathMLTextIntegrationPoint(e,t){return t===NS.MATHML&&(e===TAG_ID.MI||e===TAG_ID.MO||e===TAG_ID.MN||e===TAG_ID.MS||e===TAG_ID.MTEXT)}function isHtmlIntegrationPoint(e,t,n){if(t===NS.MATHML&&e===TAG_ID.ANNOTATION_XML){for(let i=0;i<n.length;i++)if(n[i].name===ATTRS.ENCODING){const a=n[i].value.toLowerCase();return a===MIME_TYPES.TEXT_HTML||a===MIME_TYPES.APPLICATION_XML}}return t===NS.SVG&&(e===TAG_ID.FOREIGN_OBJECT||e===TAG_ID.DESC||e===TAG_ID.TITLE)}function isIntegrationPoint(e,t,n,i){return(!i||i===NS.HTML)&&isHtmlIntegrationPoint(e,t,n)||(!i||i===NS.MATHML)&&isMathMLTextIntegrationPoint(e,t)}const HIDDEN_INPUT_TYPE="hidden",AA_OUTER_LOOP_ITER=8,AA_INNER_LOOP_ITER=3;var InsertionMode;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(InsertionMode||(InsertionMode={}));const BASE_LOC={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},TABLE_STRUCTURE_TAGS=new Set([TAG_ID.TABLE,TAG_ID.TBODY,TAG_ID.TFOOT,TAG_ID.THEAD,TAG_ID.TR]),defaultParserOptions={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:defaultTreeAdapter,onParseError:null};class Parser{constructor(t,n,i=null,a=null){this.fragmentContext=i,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=InsertionMode.INITIAL,this.originalInsertionMode=InsertionMode.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...defaultParserOptions,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new Tokenizer(this.options,this),this.activeFormattingElements=new FormattingElementList(this.treeAdapter),this.fragmentContextID=i?getTagID(this.treeAdapter.getTagName(i)):TAG_ID.UNKNOWN,this._setContextModes(i??this.document,this.fragmentContextID),this.openElements=new OpenElementStack(this.document,this.treeAdapter,this)}static parse(t,n){const i=new this(n);return i.tokenizer.write(t,!0),i.document}static getFragmentParser(t,n){const i={...defaultParserOptions,...n};t??(t=i.treeAdapter.createElement(TAG_NAMES.TEMPLATE,NS.HTML,[]));const a=i.treeAdapter.createElement("documentmock",NS.HTML,[]),o=new this(i,a,t);return o.fragmentContextID===TAG_ID.TEMPLATE&&o.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,i){var a;if(!this.onParseError)return;const o=(a=t.location)!==null&&a!==void 0?a:BASE_LOC,u={code:n,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:i?o.startLine:o.endLine,endCol:i?o.startCol:o.endCol,endOffset:i?o.startOffset:o.endOffset};this.onParseError(u)}onItemPush(t,n,i){var a,o;(o=(a=this.treeAdapter).onItemPush)===null||o===void 0||o.call(a,t),i&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var i,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(i=this.treeAdapter).onItemPop)===null||a===void 0||a.call(i,t,this.openElements.current),n){let o,u;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,u=this.fragmentContextID):{current:o,currentTagId:u}=this.openElements,this._setContextModes(o,u)}}_setContextModes(t,n){const i=t===this.document||this.treeAdapter.getNamespaceURI(t)===NS.HTML;this.currentNotInHTML=!i,this.tokenizer.inForeignNode=!i&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,NS.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=InsertionMode.TEXT}switchToPlaintextParsing(){this.insertionMode=InsertionMode.TEXT,this.originalInsertionMode=InsertionMode.IN_BODY,this.tokenizer.state=TokenizerMode.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===TAG_NAMES.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==NS.HTML))switch(this.fragmentContextID){case TAG_ID.TITLE:case TAG_ID.TEXTAREA:{this.tokenizer.state=TokenizerMode.RCDATA;break}case TAG_ID.STYLE:case TAG_ID.XMP:case TAG_ID.IFRAME:case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:case TAG_ID.NOSCRIPT:{this.tokenizer.state=TokenizerMode.RAWTEXT;break}case TAG_ID.SCRIPT:{this.tokenizer.state=TokenizerMode.SCRIPT_DATA;break}case TAG_ID.PLAINTEXT:{this.tokenizer.state=TokenizerMode.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",i=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,i,a),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const i=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,i)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const i=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(i,t)}}_appendElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location)}_insertElement(t,n){const i=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(i,t.location),this.openElements.push(i,t.tagID)}_insertFakeElement(t,n){const i=this.treeAdapter.createElement(t,NS.HTML,[]);this._attachElementToTree(i,null),this.openElements.push(i,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,NS.HTML,t.attrs),i=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,i),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(TAG_NAMES.HTML,NS.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,TAG_ID.HTML)}_appendCommentNode(t,n){const i=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,i),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(i,t.location)}_insertCharacters(t){let n,i;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:i}=this._findFosterParentingLocation(),i?this.treeAdapter.insertTextBefore(n,t.chars,i):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),o=i?a.lastIndexOf(i):a.length,u=a[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:c,endCol:f,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:c,endCol:f,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,n){for(let i=this.treeAdapter.getFirstChild(t);i;i=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(i),this.treeAdapter.appendChild(n,i)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const i=n.location,a=this.treeAdapter.getTagName(t),o=n.type===TokenType.END_TAG&&a===n.tagName?{endTag:{...i},endLine:i.endLine,endCol:i.endCol,endOffset:i.endOffset}:{endLine:i.startLine,endCol:i.startCol,endOffset:i.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,i;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,i=this.fragmentContextID):{current:n,currentTagId:i}=this.openElements,t.tagID===TAG_ID.SVG&&this.treeAdapter.getTagName(n)===TAG_NAMES.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===NS.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===TAG_ID.MGLYPH||t.tagID===TAG_ID.MALIGNMARK)&&!this._isIntegrationPoint(i,n,NS.HTML)}_processToken(t){switch(t.type){case TokenType.CHARACTER:{this.onCharacter(t);break}case TokenType.NULL_CHARACTER:{this.onNullCharacter(t);break}case TokenType.COMMENT:{this.onComment(t);break}case TokenType.DOCTYPE:{this.onDoctype(t);break}case TokenType.START_TAG:{this._processStartTag(t);break}case TokenType.END_TAG:{this.onEndTag(t);break}case TokenType.EOF:{this.onEof(t);break}case TokenType.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,i){const a=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return isIntegrationPoint(t,a,o,i)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===EntryType.Marker||this.openElements.contains(a.element)),i=n<0?t-1:n-1;for(let a=i;a>=0;a--){const o=this.activeFormattingElements.entries[a];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=InsertionMode.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.P),this.openElements.popUntilTagNamePopped(TAG_ID.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case TAG_ID.TR:{this.insertionMode=InsertionMode.IN_ROW;return}case TAG_ID.TBODY:case TAG_ID.THEAD:case TAG_ID.TFOOT:{this.insertionMode=InsertionMode.IN_TABLE_BODY;return}case TAG_ID.CAPTION:{this.insertionMode=InsertionMode.IN_CAPTION;return}case TAG_ID.COLGROUP:{this.insertionMode=InsertionMode.IN_COLUMN_GROUP;return}case TAG_ID.TABLE:{this.insertionMode=InsertionMode.IN_TABLE;return}case TAG_ID.BODY:{this.insertionMode=InsertionMode.IN_BODY;return}case TAG_ID.FRAMESET:{this.insertionMode=InsertionMode.IN_FRAMESET;return}case TAG_ID.SELECT:{this._resetInsertionModeForSelect(t);return}case TAG_ID.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case TAG_ID.HTML:{this.insertionMode=this.headElement?InsertionMode.AFTER_HEAD:InsertionMode.BEFORE_HEAD;return}case TAG_ID.TD:case TAG_ID.TH:{if(t>0){this.insertionMode=InsertionMode.IN_CELL;return}break}case TAG_ID.HEAD:{if(t>0){this.insertionMode=InsertionMode.IN_HEAD;return}break}}this.insertionMode=InsertionMode.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const i=this.openElements.tagIDs[n];if(i===TAG_ID.TEMPLATE)break;if(i===TAG_ID.TABLE){this.insertionMode=InsertionMode.IN_SELECT_IN_TABLE;return}}this.insertionMode=InsertionMode.IN_SELECT}_isElementCausesFosterParenting(t){return TABLE_STRUCTURE_TAGS.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case TAG_ID.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===NS.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case TAG_ID.TABLE:{const i=this.treeAdapter.getParentNode(n);return i?{parent:i,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const i=this.treeAdapter.getNamespaceURI(t);return SPECIAL_ELEMENTS[i].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){characterInForeignContent(this,t);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,t);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,t);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,t);break}case InsertionMode.IN_HEAD:{tokenInHead(this,t);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,t);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,t);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:{characterInBody(this,t);break}case InsertionMode.TEXT:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,t);break}case InsertionMode.IN_TABLE_TEXT:{characterInTableText(this,t);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,t);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,t);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){nullCharacterInForeignContent(this,t);return}switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,t);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,t);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,t);break}case InsertionMode.IN_HEAD:{tokenInHead(this,t);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,t);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,t);break}case InsertionMode.TEXT:{this._insertCharacters(t);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,t);break}case InsertionMode.IN_COLUMN_GROUP:{tokenInColumnGroup(this,t);break}case InsertionMode.AFTER_BODY:{tokenAfterBody(this,t);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){appendComment(this,t);return}switch(this.insertionMode){case InsertionMode.INITIAL:case InsertionMode.BEFORE_HTML:case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_TEMPLATE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{appendComment(this,t);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,t);break}case InsertionMode.AFTER_BODY:{appendCommentToRootHtmlElement(this,t);break}case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{appendCommentToDocument(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case InsertionMode.INITIAL:{doctypeInInitialMode(this,t);break}case InsertionMode.BEFORE_HEAD:case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:{this._err(t,ERR.misplacedDoctype);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ERR.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?startTagInForeignContent(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,t);break}case InsertionMode.BEFORE_HTML:{startTagBeforeHtml(this,t);break}case InsertionMode.BEFORE_HEAD:{startTagBeforeHead(this,t);break}case InsertionMode.IN_HEAD:{startTagInHead(this,t);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{startTagInHeadNoScript(this,t);break}case InsertionMode.AFTER_HEAD:{startTagAfterHead(this,t);break}case InsertionMode.IN_BODY:{startTagInBody(this,t);break}case InsertionMode.IN_TABLE:{startTagInTable(this,t);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,t);break}case InsertionMode.IN_CAPTION:{startTagInCaption(this,t);break}case InsertionMode.IN_COLUMN_GROUP:{startTagInColumnGroup(this,t);break}case InsertionMode.IN_TABLE_BODY:{startTagInTableBody(this,t);break}case InsertionMode.IN_ROW:{startTagInRow(this,t);break}case InsertionMode.IN_CELL:{startTagInCell(this,t);break}case InsertionMode.IN_SELECT:{startTagInSelect(this,t);break}case InsertionMode.IN_SELECT_IN_TABLE:{startTagInSelectInTable(this,t);break}case InsertionMode.IN_TEMPLATE:{startTagInTemplate(this,t);break}case InsertionMode.AFTER_BODY:{startTagAfterBody(this,t);break}case InsertionMode.IN_FRAMESET:{startTagInFrameset(this,t);break}case InsertionMode.AFTER_FRAMESET:{startTagAfterFrameset(this,t);break}case InsertionMode.AFTER_AFTER_BODY:{startTagAfterAfterBody(this,t);break}case InsertionMode.AFTER_AFTER_FRAMESET:{startTagAfterAfterFrameset(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?endTagInForeignContent(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,t);break}case InsertionMode.BEFORE_HTML:{endTagBeforeHtml(this,t);break}case InsertionMode.BEFORE_HEAD:{endTagBeforeHead(this,t);break}case InsertionMode.IN_HEAD:{endTagInHead(this,t);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{endTagInHeadNoScript(this,t);break}case InsertionMode.AFTER_HEAD:{endTagAfterHead(this,t);break}case InsertionMode.IN_BODY:{endTagInBody(this,t);break}case InsertionMode.TEXT:{endTagInText(this,t);break}case InsertionMode.IN_TABLE:{endTagInTable(this,t);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,t);break}case InsertionMode.IN_CAPTION:{endTagInCaption(this,t);break}case InsertionMode.IN_COLUMN_GROUP:{endTagInColumnGroup(this,t);break}case InsertionMode.IN_TABLE_BODY:{endTagInTableBody(this,t);break}case InsertionMode.IN_ROW:{endTagInRow(this,t);break}case InsertionMode.IN_CELL:{endTagInCell(this,t);break}case InsertionMode.IN_SELECT:{endTagInSelect(this,t);break}case InsertionMode.IN_SELECT_IN_TABLE:{endTagInSelectInTable(this,t);break}case InsertionMode.IN_TEMPLATE:{endTagInTemplate(this,t);break}case InsertionMode.AFTER_BODY:{endTagAfterBody(this,t);break}case InsertionMode.IN_FRAMESET:{endTagInFrameset(this,t);break}case InsertionMode.AFTER_FRAMESET:{endTagAfterFrameset(this,t);break}case InsertionMode.AFTER_AFTER_BODY:{tokenAfterAfterBody(this,t);break}}}onEof(t){switch(this.insertionMode){case InsertionMode.INITIAL:{tokenInInitialMode(this,t);break}case InsertionMode.BEFORE_HTML:{tokenBeforeHtml(this,t);break}case InsertionMode.BEFORE_HEAD:{tokenBeforeHead(this,t);break}case InsertionMode.IN_HEAD:{tokenInHead(this,t);break}case InsertionMode.IN_HEAD_NO_SCRIPT:{tokenInHeadNoScript(this,t);break}case InsertionMode.AFTER_HEAD:{tokenAfterHead(this,t);break}case InsertionMode.IN_BODY:case InsertionMode.IN_TABLE:case InsertionMode.IN_CAPTION:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:case InsertionMode.IN_CELL:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:{eofInBody(this,t);break}case InsertionMode.TEXT:{eofInText(this,t);break}case InsertionMode.IN_TABLE_TEXT:{tokenInTableText(this,t);break}case InsertionMode.IN_TEMPLATE:{eofInTemplate(this,t);break}case InsertionMode.AFTER_BODY:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{stopParsing(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===CODE_POINTS.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case InsertionMode.IN_HEAD:case InsertionMode.IN_HEAD_NO_SCRIPT:case InsertionMode.AFTER_HEAD:case InsertionMode.TEXT:case InsertionMode.IN_COLUMN_GROUP:case InsertionMode.IN_SELECT:case InsertionMode.IN_SELECT_IN_TABLE:case InsertionMode.IN_FRAMESET:case InsertionMode.AFTER_FRAMESET:{this._insertCharacters(t);break}case InsertionMode.IN_BODY:case InsertionMode.IN_CAPTION:case InsertionMode.IN_CELL:case InsertionMode.IN_TEMPLATE:case InsertionMode.AFTER_BODY:case InsertionMode.AFTER_AFTER_BODY:case InsertionMode.AFTER_AFTER_FRAMESET:{whitespaceCharacterInBody(this,t);break}case InsertionMode.IN_TABLE:case InsertionMode.IN_TABLE_BODY:case InsertionMode.IN_ROW:{characterInTable(this,t);break}case InsertionMode.IN_TABLE_TEXT:{whitespaceCharacterInTableText(this,t);break}}}}function aaObtainFormattingElementEntry(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):genericEndTagInBody(e,t),n}function aaObtainFurthestBlock(e,t){let n=null,i=e.openElements.stackTop;for(;i>=0;i--){const a=e.openElements.items[i];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[i])&&(n=a)}return n||(e.openElements.shortenToLength(i<0?0:i),e.activeFormattingElements.removeEntry(t)),n}function aaInnerLoop(e,t,n){let i=t,a=e.openElements.getCommonAncestor(t);for(let o=0,u=a;u!==n;o++,u=a){a=e.openElements.getCommonAncestor(u);const l=e.activeFormattingElements.getElementEntry(u),c=l&&o>=AA_INNER_LOOP_ITER;!l||c?(c&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(u)):(u=aaRecreateElementFromEntry(e,l),i===t&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(u,i),i=u)}return i}function aaRecreateElementFromEntry(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}function aaInsertLastNodeInCommonAncestor(e,t,n){const i=e.treeAdapter.getTagName(t),a=getTagID(i);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);a===TAG_ID.TEMPLATE&&o===NS.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function aaReplaceFormattingElement(e,t,n){const i=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,i,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function callAdoptionAgency(e,t){for(let n=0;n<AA_OUTER_LOOP_ITER;n++){const i=aaObtainFormattingElementEntry(e,t);if(!i)break;const a=aaObtainFurthestBlock(e,i);if(!a)break;e.activeFormattingElements.bookmark=i;const o=aaInnerLoop(e,a,i.element),u=e.openElements.getCommonAncestor(i.element);e.treeAdapter.detachNode(o),u&&aaInsertLastNodeInCommonAncestor(e,u,o),aaReplaceFormattingElement(e,a,i)}}function appendComment(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function appendCommentToRootHtmlElement(e,t){e._appendCommentNode(t,e.openElements.items[0])}function appendCommentToDocument(e,t){e._appendCommentNode(t,e.document)}function stopParsing(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const i=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(i);if(a&&!a.endTag&&(e._setEndLocation(i,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(o);u&&!u.endTag&&e._setEndLocation(o,t)}}}}function doctypeInInitialMode(e,t){e._setDocumentType(t);const n=t.forceQuirks?DOCUMENT_MODE.QUIRKS:getDocumentMode(t);isConforming(t)||e._err(t,ERR.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=InsertionMode.BEFORE_HTML}function tokenInInitialMode(e,t){e._err(t,ERR.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,DOCUMENT_MODE.QUIRKS),e.insertionMode=InsertionMode.BEFORE_HTML,e._processToken(t)}function startTagBeforeHtml(e,t){t.tagID===TAG_ID.HTML?(e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.BEFORE_HEAD):tokenBeforeHtml(e,t)}function endTagBeforeHtml(e,t){const n=t.tagID;(n===TAG_ID.HTML||n===TAG_ID.HEAD||n===TAG_ID.BODY||n===TAG_ID.BR)&&tokenBeforeHtml(e,t)}function tokenBeforeHtml(e,t){e._insertFakeRootElement(),e.insertionMode=InsertionMode.BEFORE_HEAD,e._processToken(t)}function startTagBeforeHead(e,t){switch(t.tagID){case TAG_ID.HTML:{startTagInBody(e,t);break}case TAG_ID.HEAD:{e._insertElement(t,NS.HTML),e.headElement=e.openElements.current,e.insertionMode=InsertionMode.IN_HEAD;break}default:tokenBeforeHead(e,t)}}function endTagBeforeHead(e,t){const n=t.tagID;n===TAG_ID.HEAD||n===TAG_ID.BODY||n===TAG_ID.HTML||n===TAG_ID.BR?tokenBeforeHead(e,t):e._err(t,ERR.endTagWithoutMatchingOpenElement)}function tokenBeforeHead(e,t){e._insertFakeElement(TAG_NAMES.HEAD,TAG_ID.HEAD),e.headElement=e.openElements.current,e.insertionMode=InsertionMode.IN_HEAD,e._processToken(t)}function startTagInHead(e,t){switch(t.tagID){case TAG_ID.HTML:{startTagInBody(e,t);break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:{e._appendElement(t,NS.HTML),t.ackSelfClosing=!0;break}case TAG_ID.TITLE:{e._switchToTextParsing(t,TokenizerMode.RCDATA);break}case TAG_ID.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,TokenizerMode.RAWTEXT):(e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_HEAD_NO_SCRIPT);break}case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{e._switchToTextParsing(t,TokenizerMode.RAWTEXT);break}case TAG_ID.SCRIPT:{e._switchToTextParsing(t,TokenizerMode.SCRIPT_DATA);break}case TAG_ID.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=InsertionMode.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(InsertionMode.IN_TEMPLATE);break}case TAG_ID.HEAD:{e._err(t,ERR.misplacedStartTagForHeadElement);break}default:tokenInHead(e,t)}}function endTagInHead(e,t){switch(t.tagID){case TAG_ID.HEAD:{e.openElements.pop(),e.insertionMode=InsertionMode.AFTER_HEAD;break}case TAG_ID.BODY:case TAG_ID.BR:case TAG_ID.HTML:{tokenInHead(e,t);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(e,t);break}default:e._err(t,ERR.endTagWithoutMatchingOpenElement)}}function templateEndTagInHead(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==TAG_ID.TEMPLATE&&e._err(t,ERR.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ERR.endTagWithoutMatchingOpenElement)}function tokenInHead(e,t){e.openElements.pop(),e.insertionMode=InsertionMode.AFTER_HEAD,e._processToken(t)}function startTagInHeadNoScript(e,t){switch(t.tagID){case TAG_ID.HTML:{startTagInBody(e,t);break}case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.HEAD:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.STYLE:{startTagInHead(e,t);break}case TAG_ID.NOSCRIPT:{e._err(t,ERR.nestedNoscriptInHead);break}default:tokenInHeadNoScript(e,t)}}function endTagInHeadNoScript(e,t){switch(t.tagID){case TAG_ID.NOSCRIPT:{e.openElements.pop(),e.insertionMode=InsertionMode.IN_HEAD;break}case TAG_ID.BR:{tokenInHeadNoScript(e,t);break}default:e._err(t,ERR.endTagWithoutMatchingOpenElement)}}function tokenInHeadNoScript(e,t){const n=t.type===TokenType.EOF?ERR.openElementsLeftAfterEof:ERR.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=InsertionMode.IN_HEAD,e._processToken(t)}function startTagAfterHead(e,t){switch(t.tagID){case TAG_ID.HTML:{startTagInBody(e,t);break}case TAG_ID.BODY:{e._insertElement(t,NS.HTML),e.framesetOk=!1,e.insertionMode=InsertionMode.IN_BODY;break}case TAG_ID.FRAMESET:{e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_FRAMESET;break}case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{e._err(t,ERR.abandonedHeadElementChild),e.openElements.push(e.headElement,TAG_ID.HEAD),startTagInHead(e,t),e.openElements.remove(e.headElement);break}case TAG_ID.HEAD:{e._err(t,ERR.misplacedStartTagForHeadElement);break}default:tokenAfterHead(e,t)}}function endTagAfterHead(e,t){switch(t.tagID){case TAG_ID.BODY:case TAG_ID.HTML:case TAG_ID.BR:{tokenAfterHead(e,t);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(e,t);break}default:e._err(t,ERR.endTagWithoutMatchingOpenElement)}}function tokenAfterHead(e,t){e._insertFakeElement(TAG_NAMES.BODY,TAG_ID.BODY),e.insertionMode=InsertionMode.IN_BODY,modeInBody(e,t)}function modeInBody(e,t){switch(t.type){case TokenType.CHARACTER:{characterInBody(e,t);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInBody(e,t);break}case TokenType.COMMENT:{appendComment(e,t);break}case TokenType.START_TAG:{startTagInBody(e,t);break}case TokenType.END_TAG:{endTagInBody(e,t);break}case TokenType.EOF:{eofInBody(e,t);break}}}function whitespaceCharacterInBody(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function characterInBody(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function htmlStartTagInBody(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function bodyStartTagInBody(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function framesetStartTagInBody(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_FRAMESET)}function addressStartTagInBody(e,t){e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._insertElement(t,NS.HTML)}function numberedHeaderStartTagInBody(e,t){e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),NUMBERED_HEADERS.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,NS.HTML)}function preStartTagInBody(e,t){e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._insertElement(t,NS.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function formStartTagInBody(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._insertElement(t,NS.HTML),n||(e.formElement=e.openElements.current))}function listItemStartTagInBody(e,t){e.framesetOk=!1;const n=t.tagID;for(let i=e.openElements.stackTop;i>=0;i--){const a=e.openElements.tagIDs[i];if(n===TAG_ID.LI&&a===TAG_ID.LI||(n===TAG_ID.DD||n===TAG_ID.DT)&&(a===TAG_ID.DD||a===TAG_ID.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==TAG_ID.ADDRESS&&a!==TAG_ID.DIV&&a!==TAG_ID.P&&e._isSpecialElement(e.openElements.items[i],a))break}e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._insertElement(t,NS.HTML)}function plaintextStartTagInBody(e,t){e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._insertElement(t,NS.HTML),e.tokenizer.state=TokenizerMode.PLAINTEXT}function buttonStartTagInBody(e,t){e.openElements.hasInScope(TAG_ID.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(TAG_ID.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML),e.framesetOk=!1}function aStartTagInBody(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(TAG_NAMES.A);n&&(callAdoptionAgency(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function bStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function nobrStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(TAG_ID.NOBR)&&(callAdoptionAgency(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,NS.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function appletStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function tableStartTagInBody(e,t){e.treeAdapter.getDocumentMode(e.document)!==DOCUMENT_MODE.QUIRKS&&e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._insertElement(t,NS.HTML),e.framesetOk=!1,e.insertionMode=InsertionMode.IN_TABLE}function areaStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function isHiddenInput(e){const t=getTokenAttr(e,ATTRS.TYPE);return t!=null&&t.toLowerCase()===HIDDEN_INPUT_TYPE}function inputStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,NS.HTML),isHiddenInput(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function paramStartTagInBody(e,t){e._appendElement(t,NS.HTML),t.ackSelfClosing=!0}function hrStartTagInBody(e,t){e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._appendElement(t,NS.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function imageStartTagInBody(e,t){t.tagName=TAG_NAMES.IMG,t.tagID=TAG_ID.IMG,areaStartTagInBody(e,t)}function textareaStartTagInBody(e,t){e._insertElement(t,NS.HTML),e.skipNextNewLine=!0,e.tokenizer.state=TokenizerMode.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=InsertionMode.TEXT}function xmpStartTagInBody(e,t){e.openElements.hasInButtonScope(TAG_ID.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,TokenizerMode.RAWTEXT)}function iframeStartTagInBody(e,t){e.framesetOk=!1,e._switchToTextParsing(t,TokenizerMode.RAWTEXT)}function rawTextStartTagInBody(e,t){e._switchToTextParsing(t,TokenizerMode.RAWTEXT)}function selectStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===InsertionMode.IN_TABLE||e.insertionMode===InsertionMode.IN_CAPTION||e.insertionMode===InsertionMode.IN_TABLE_BODY||e.insertionMode===InsertionMode.IN_ROW||e.insertionMode===InsertionMode.IN_CELL?InsertionMode.IN_SELECT_IN_TABLE:InsertionMode.IN_SELECT}function optgroupStartTagInBody(e,t){e.openElements.currentTagId===TAG_ID.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML)}function rbStartTagInBody(e,t){e.openElements.hasInScope(TAG_ID.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,NS.HTML)}function rtStartTagInBody(e,t){e.openElements.hasInScope(TAG_ID.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.RTC),e._insertElement(t,NS.HTML)}function mathStartTagInBody(e,t){e._reconstructActiveFormattingElements(),adjustTokenMathMLAttrs(t),adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,NS.MATHML):e._insertElement(t,NS.MATHML),t.ackSelfClosing=!0}function svgStartTagInBody(e,t){e._reconstructActiveFormattingElements(),adjustTokenSVGAttrs(t),adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,NS.SVG):e._insertElement(t,NS.SVG),t.ackSelfClosing=!0}function genericStartTagInBody(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,NS.HTML)}function startTagInBody(e,t){switch(t.tagID){case TAG_ID.I:case TAG_ID.S:case TAG_ID.B:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{bStartTagInBody(e,t);break}case TAG_ID.A:{aStartTagInBody(e,t);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderStartTagInBody(e,t);break}case TAG_ID.P:case TAG_ID.DL:case TAG_ID.OL:case TAG_ID.UL:case TAG_ID.DIV:case TAG_ID.DIR:case TAG_ID.NAV:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.DETAILS:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressStartTagInBody(e,t);break}case TAG_ID.LI:case TAG_ID.DD:case TAG_ID.DT:{listItemStartTagInBody(e,t);break}case TAG_ID.BR:case TAG_ID.IMG:case TAG_ID.WBR:case TAG_ID.AREA:case TAG_ID.EMBED:case TAG_ID.KEYGEN:{areaStartTagInBody(e,t);break}case TAG_ID.HR:{hrStartTagInBody(e,t);break}case TAG_ID.RB:case TAG_ID.RTC:{rbStartTagInBody(e,t);break}case TAG_ID.RT:case TAG_ID.RP:{rtStartTagInBody(e,t);break}case TAG_ID.PRE:case TAG_ID.LISTING:{preStartTagInBody(e,t);break}case TAG_ID.XMP:{xmpStartTagInBody(e,t);break}case TAG_ID.SVG:{svgStartTagInBody(e,t);break}case TAG_ID.HTML:{htmlStartTagInBody(e,t);break}case TAG_ID.BASE:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.STYLE:case TAG_ID.TITLE:case TAG_ID.SCRIPT:case TAG_ID.BGSOUND:case TAG_ID.BASEFONT:case TAG_ID.TEMPLATE:{startTagInHead(e,t);break}case TAG_ID.BODY:{bodyStartTagInBody(e,t);break}case TAG_ID.FORM:{formStartTagInBody(e,t);break}case TAG_ID.NOBR:{nobrStartTagInBody(e,t);break}case TAG_ID.MATH:{mathStartTagInBody(e,t);break}case TAG_ID.TABLE:{tableStartTagInBody(e,t);break}case TAG_ID.INPUT:{inputStartTagInBody(e,t);break}case TAG_ID.PARAM:case TAG_ID.TRACK:case TAG_ID.SOURCE:{paramStartTagInBody(e,t);break}case TAG_ID.IMAGE:{imageStartTagInBody(e,t);break}case TAG_ID.BUTTON:{buttonStartTagInBody(e,t);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletStartTagInBody(e,t);break}case TAG_ID.IFRAME:{iframeStartTagInBody(e,t);break}case TAG_ID.SELECT:{selectStartTagInBody(e,t);break}case TAG_ID.OPTION:case TAG_ID.OPTGROUP:{optgroupStartTagInBody(e,t);break}case TAG_ID.NOEMBED:case TAG_ID.NOFRAMES:{rawTextStartTagInBody(e,t);break}case TAG_ID.FRAMESET:{framesetStartTagInBody(e,t);break}case TAG_ID.TEXTAREA:{textareaStartTagInBody(e,t);break}case TAG_ID.NOSCRIPT:{e.options.scriptingEnabled?rawTextStartTagInBody(e,t):genericStartTagInBody(e,t);break}case TAG_ID.PLAINTEXT:{plaintextStartTagInBody(e,t);break}case TAG_ID.COL:case TAG_ID.TH:case TAG_ID.TD:case TAG_ID.TR:case TAG_ID.HEAD:case TAG_ID.FRAME:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:case TAG_ID.CAPTION:case TAG_ID.COLGROUP:break;default:genericStartTagInBody(e,t)}}function bodyEndTagInBody(e,t){if(e.openElements.hasInScope(TAG_ID.BODY)&&(e.insertionMode=InsertionMode.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function htmlEndTagInBody(e,t){e.openElements.hasInScope(TAG_ID.BODY)&&(e.insertionMode=InsertionMode.AFTER_BODY,endTagAfterBody(e,t))}function addressEndTagInBody(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function formEndTagInBody(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(TAG_ID.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(TAG_ID.FORM):n&&e.openElements.remove(n))}function pEndTagInBody(e){e.openElements.hasInButtonScope(TAG_ID.P)||e._insertFakeElement(TAG_NAMES.P,TAG_ID.P),e._closePElement()}function liEndTagInBody(e){e.openElements.hasInListItemScope(TAG_ID.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(TAG_ID.LI),e.openElements.popUntilTagNamePopped(TAG_ID.LI))}function ddEndTagInBody(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function numberedHeaderEndTagInBody(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function appletEndTagInBody(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function brEndTagInBody(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(TAG_NAMES.BR,TAG_ID.BR),e.openElements.pop(),e.framesetOk=!1}function genericEndTagInBody(e,t){const n=t.tagName,i=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const o=e.openElements.items[a],u=e.openElements.tagIDs[a];if(i===u&&(i!==TAG_ID.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(o,u))break}}function endTagInBody(e,t){switch(t.tagID){case TAG_ID.A:case TAG_ID.B:case TAG_ID.I:case TAG_ID.S:case TAG_ID.U:case TAG_ID.EM:case TAG_ID.TT:case TAG_ID.BIG:case TAG_ID.CODE:case TAG_ID.FONT:case TAG_ID.NOBR:case TAG_ID.SMALL:case TAG_ID.STRIKE:case TAG_ID.STRONG:{callAdoptionAgency(e,t);break}case TAG_ID.P:{pEndTagInBody(e);break}case TAG_ID.DL:case TAG_ID.UL:case TAG_ID.OL:case TAG_ID.DIR:case TAG_ID.DIV:case TAG_ID.NAV:case TAG_ID.PRE:case TAG_ID.MAIN:case TAG_ID.MENU:case TAG_ID.ASIDE:case TAG_ID.BUTTON:case TAG_ID.CENTER:case TAG_ID.FIGURE:case TAG_ID.FOOTER:case TAG_ID.HEADER:case TAG_ID.HGROUP:case TAG_ID.DIALOG:case TAG_ID.ADDRESS:case TAG_ID.ARTICLE:case TAG_ID.DETAILS:case TAG_ID.SEARCH:case TAG_ID.SECTION:case TAG_ID.SUMMARY:case TAG_ID.LISTING:case TAG_ID.FIELDSET:case TAG_ID.BLOCKQUOTE:case TAG_ID.FIGCAPTION:{addressEndTagInBody(e,t);break}case TAG_ID.LI:{liEndTagInBody(e);break}case TAG_ID.DD:case TAG_ID.DT:{ddEndTagInBody(e,t);break}case TAG_ID.H1:case TAG_ID.H2:case TAG_ID.H3:case TAG_ID.H4:case TAG_ID.H5:case TAG_ID.H6:{numberedHeaderEndTagInBody(e);break}case TAG_ID.BR:{brEndTagInBody(e);break}case TAG_ID.BODY:{bodyEndTagInBody(e,t);break}case TAG_ID.HTML:{htmlEndTagInBody(e,t);break}case TAG_ID.FORM:{formEndTagInBody(e);break}case TAG_ID.APPLET:case TAG_ID.OBJECT:case TAG_ID.MARQUEE:{appletEndTagInBody(e,t);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(e,t);break}default:genericEndTagInBody(e,t)}}function eofInBody(e,t){e.tmplInsertionModeStack.length>0?eofInTemplate(e,t):stopParsing(e,t)}function endTagInText(e,t){var n;t.tagID===TAG_ID.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function eofInText(e,t){e._err(t,ERR.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function characterInTable(e,t){if(TABLE_STRUCTURE_TAGS.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=InsertionMode.IN_TABLE_TEXT,t.type){case TokenType.CHARACTER:{characterInTableText(e,t);break}case TokenType.WHITESPACE_CHARACTER:{whitespaceCharacterInTableText(e,t);break}}else tokenInTable(e,t)}function captionStartTagInTable(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_CAPTION}function colgroupStartTagInTable(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_COLUMN_GROUP}function colStartTagInTable(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(TAG_NAMES.COLGROUP,TAG_ID.COLGROUP),e.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(e,t)}function tbodyStartTagInTable(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_TABLE_BODY}function tdStartTagInTable(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(TAG_NAMES.TBODY,TAG_ID.TBODY),e.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(e,t)}function tableStartTagInTable(e,t){e.openElements.hasInTableScope(TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(TAG_ID.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function inputStartTagInTable(e,t){isHiddenInput(t)?e._appendElement(t,NS.HTML):tokenInTable(e,t),t.ackSelfClosing=!0}function formStartTagInTable(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,NS.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function startTagInTable(e,t){switch(t.tagID){case TAG_ID.TD:case TAG_ID.TH:case TAG_ID.TR:{tdStartTagInTable(e,t);break}case TAG_ID.STYLE:case TAG_ID.SCRIPT:case TAG_ID.TEMPLATE:{startTagInHead(e,t);break}case TAG_ID.COL:{colStartTagInTable(e,t);break}case TAG_ID.FORM:{formStartTagInTable(e,t);break}case TAG_ID.TABLE:{tableStartTagInTable(e,t);break}case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{tbodyStartTagInTable(e,t);break}case TAG_ID.INPUT:{inputStartTagInTable(e,t);break}case TAG_ID.CAPTION:{captionStartTagInTable(e,t);break}case TAG_ID.COLGROUP:{colgroupStartTagInTable(e,t);break}default:tokenInTable(e,t)}}function endTagInTable(e,t){switch(t.tagID){case TAG_ID.TABLE:{e.openElements.hasInTableScope(TAG_ID.TABLE)&&(e.openElements.popUntilTagNamePopped(TAG_ID.TABLE),e._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(e,t);break}case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TBODY:case TAG_ID.TD:case TAG_ID.TFOOT:case TAG_ID.TH:case TAG_ID.THEAD:case TAG_ID.TR:break;default:tokenInTable(e,t)}}function tokenInTable(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,modeInBody(e,t),e.fosterParentingEnabled=n}function whitespaceCharacterInTableText(e,t){e.pendingCharacterTokens.push(t)}function characterInTableText(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function tokenInTableText(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)tokenInTable(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const TABLE_VOID_ELEMENTS=new Set([TAG_ID.CAPTION,TAG_ID.COL,TAG_ID.COLGROUP,TAG_ID.TBODY,TAG_ID.TD,TAG_ID.TFOOT,TAG_ID.TH,TAG_ID.THEAD,TAG_ID.TR]);function startTagInCaption(e,t){const n=t.tagID;TABLE_VOID_ELEMENTS.has(n)?e.openElements.hasInTableScope(TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=InsertionMode.IN_TABLE,startTagInTable(e,t)):startTagInBody(e,t)}function endTagInCaption(e,t){const n=t.tagID;switch(n){case TAG_ID.CAPTION:case TAG_ID.TABLE:{e.openElements.hasInTableScope(TAG_ID.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(TAG_ID.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=InsertionMode.IN_TABLE,n===TAG_ID.TABLE&&endTagInTable(e,t));break}case TAG_ID.BODY:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TBODY:case TAG_ID.TD:case TAG_ID.TFOOT:case TAG_ID.TH:case TAG_ID.THEAD:case TAG_ID.TR:break;default:endTagInBody(e,t)}}function startTagInColumnGroup(e,t){switch(t.tagID){case TAG_ID.HTML:{startTagInBody(e,t);break}case TAG_ID.COL:{e._appendElement(t,NS.HTML),t.ackSelfClosing=!0;break}case TAG_ID.TEMPLATE:{startTagInHead(e,t);break}default:tokenInColumnGroup(e,t)}}function endTagInColumnGroup(e,t){switch(t.tagID){case TAG_ID.COLGROUP:{e.openElements.currentTagId===TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE);break}case TAG_ID.TEMPLATE:{templateEndTagInHead(e,t);break}case TAG_ID.COL:break;default:tokenInColumnGroup(e,t)}}function tokenInColumnGroup(e,t){e.openElements.currentTagId===TAG_ID.COLGROUP&&(e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE,e._processToken(t))}function startTagInTableBody(e,t){switch(t.tagID){case TAG_ID.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_ROW;break}case TAG_ID.TH:case TAG_ID.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(TAG_NAMES.TR,TAG_ID.TR),e.insertionMode=InsertionMode.IN_ROW,startTagInRow(e,t);break}case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE,startTagInTable(e,t));break}default:startTagInTable(e,t)}}function endTagInTableBody(e,t){const n=t.tagID;switch(t.tagID){case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE);break}case TAG_ID.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE,endTagInTable(e,t));break}case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TD:case TAG_ID.TH:case TAG_ID.TR:break;default:endTagInTable(e,t)}}function startTagInRow(e,t){switch(t.tagID){case TAG_ID.TH:case TAG_ID.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,NS.HTML),e.insertionMode=InsertionMode.IN_CELL,e.activeFormattingElements.insertMarker();break}case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:case TAG_ID.TR:{e.openElements.hasInTableScope(TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(e,t));break}default:startTagInTable(e,t)}}function endTagInRow(e,t){switch(t.tagID){case TAG_ID.TR:{e.openElements.hasInTableScope(TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE_BODY);break}case TAG_ID.TABLE:{e.openElements.hasInTableScope(TAG_ID.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE_BODY,endTagInTableBody(e,t));break}case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(TAG_ID.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=InsertionMode.IN_TABLE_BODY,endTagInTableBody(e,t));break}case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:case TAG_ID.TD:case TAG_ID.TH:break;default:endTagInTable(e,t)}}function startTagInCell(e,t){const n=t.tagID;TABLE_VOID_ELEMENTS.has(n)?(e.openElements.hasInTableScope(TAG_ID.TD)||e.openElements.hasInTableScope(TAG_ID.TH))&&(e._closeTableCell(),startTagInRow(e,t)):startTagInBody(e,t)}function endTagInCell(e,t){const n=t.tagID;switch(n){case TAG_ID.TD:case TAG_ID.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=InsertionMode.IN_ROW);break}case TAG_ID.TABLE:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:case TAG_ID.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),endTagInRow(e,t));break}case TAG_ID.BODY:case TAG_ID.CAPTION:case TAG_ID.COL:case TAG_ID.COLGROUP:case TAG_ID.HTML:break;default:endTagInBody(e,t)}}function startTagInSelect(e,t){switch(t.tagID){case TAG_ID.HTML:{startTagInBody(e,t);break}case TAG_ID.OPTION:{e.openElements.currentTagId===TAG_ID.OPTION&&e.openElements.pop(),e._insertElement(t,NS.HTML);break}case TAG_ID.OPTGROUP:{e.openElements.currentTagId===TAG_ID.OPTION&&e.openElements.pop(),e.openElements.currentTagId===TAG_ID.OPTGROUP&&e.openElements.pop(),e._insertElement(t,NS.HTML);break}case TAG_ID.HR:{e.openElements.currentTagId===TAG_ID.OPTION&&e.openElements.pop(),e.openElements.currentTagId===TAG_ID.OPTGROUP&&e.openElements.pop(),e._appendElement(t,NS.HTML),t.ackSelfClosing=!0;break}case TAG_ID.INPUT:case TAG_ID.KEYGEN:case TAG_ID.TEXTAREA:case TAG_ID.SELECT:{e.openElements.hasInSelectScope(TAG_ID.SELECT)&&(e.openElements.popUntilTagNamePopped(TAG_ID.SELECT),e._resetInsertionMode(),t.tagID!==TAG_ID.SELECT&&e._processStartTag(t));break}case TAG_ID.SCRIPT:case TAG_ID.TEMPLATE:{startTagInHead(e,t);break}}}function endTagInSelect(e,t){switch(t.tagID){case TAG_ID.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===TAG_ID.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===TAG_ID.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===TAG_ID.OPTGROUP&&e.openElements.pop();break}case TAG_ID.OPTION:{e.openElements.currentTagId===TAG_ID.OPTION&&e.openElements.pop();break}case TAG_ID.SELECT:{e.openElements.hasInSelectScope(TAG_ID.SELECT)&&(e.openElements.popUntilTagNamePopped(TAG_ID.SELECT),e._resetInsertionMode());break}case TAG_ID.TEMPLATE:{templateEndTagInHead(e,t);break}}}function startTagInSelectInTable(e,t){const n=t.tagID;n===TAG_ID.CAPTION||n===TAG_ID.TABLE||n===TAG_ID.TBODY||n===TAG_ID.TFOOT||n===TAG_ID.THEAD||n===TAG_ID.TR||n===TAG_ID.TD||n===TAG_ID.TH?(e.openElements.popUntilTagNamePopped(TAG_ID.SELECT),e._resetInsertionMode(),e._processStartTag(t)):startTagInSelect(e,t)}function endTagInSelectInTable(e,t){const n=t.tagID;n===TAG_ID.CAPTION||n===TAG_ID.TABLE||n===TAG_ID.TBODY||n===TAG_ID.TFOOT||n===TAG_ID.THEAD||n===TAG_ID.TR||n===TAG_ID.TD||n===TAG_ID.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(TAG_ID.SELECT),e._resetInsertionMode(),e.onEndTag(t)):endTagInSelect(e,t)}function startTagInTemplate(e,t){switch(t.tagID){case TAG_ID.BASE:case TAG_ID.BASEFONT:case TAG_ID.BGSOUND:case TAG_ID.LINK:case TAG_ID.META:case TAG_ID.NOFRAMES:case TAG_ID.SCRIPT:case TAG_ID.STYLE:case TAG_ID.TEMPLATE:case TAG_ID.TITLE:{startTagInHead(e,t);break}case TAG_ID.CAPTION:case TAG_ID.COLGROUP:case TAG_ID.TBODY:case TAG_ID.TFOOT:case TAG_ID.THEAD:{e.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE,e.insertionMode=InsertionMode.IN_TABLE,startTagInTable(e,t);break}case TAG_ID.COL:{e.tmplInsertionModeStack[0]=InsertionMode.IN_COLUMN_GROUP,e.insertionMode=InsertionMode.IN_COLUMN_GROUP,startTagInColumnGroup(e,t);break}case TAG_ID.TR:{e.tmplInsertionModeStack[0]=InsertionMode.IN_TABLE_BODY,e.insertionMode=InsertionMode.IN_TABLE_BODY,startTagInTableBody(e,t);break}case TAG_ID.TD:case TAG_ID.TH:{e.tmplInsertionModeStack[0]=InsertionMode.IN_ROW,e.insertionMode=InsertionMode.IN_ROW,startTagInRow(e,t);break}default:e.tmplInsertionModeStack[0]=InsertionMode.IN_BODY,e.insertionMode=InsertionMode.IN_BODY,startTagInBody(e,t)}}function endTagInTemplate(e,t){t.tagID===TAG_ID.TEMPLATE&&templateEndTagInHead(e,t)}function eofInTemplate(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(TAG_ID.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):stopParsing(e,t)}function startTagAfterBody(e,t){t.tagID===TAG_ID.HTML?startTagInBody(e,t):tokenAfterBody(e,t)}function endTagAfterBody(e,t){var n;if(t.tagID===TAG_ID.HTML){if(e.fragmentContext||(e.insertionMode=InsertionMode.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===TAG_ID.HTML){e._setEndLocation(e.openElements.items[0],t);const i=e.openElements.items[1];i&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(i))===null||n===void 0)&&n.endTag)&&e._setEndLocation(i,t)}}else tokenAfterBody(e,t)}function tokenAfterBody(e,t){e.insertionMode=InsertionMode.IN_BODY,modeInBody(e,t)}function startTagInFrameset(e,t){switch(t.tagID){case TAG_ID.HTML:{startTagInBody(e,t);break}case TAG_ID.FRAMESET:{e._insertElement(t,NS.HTML);break}case TAG_ID.FRAME:{e._appendElement(t,NS.HTML),t.ackSelfClosing=!0;break}case TAG_ID.NOFRAMES:{startTagInHead(e,t);break}}}function endTagInFrameset(e,t){t.tagID===TAG_ID.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==TAG_ID.FRAMESET&&(e.insertionMode=InsertionMode.AFTER_FRAMESET))}function startTagAfterFrameset(e,t){switch(t.tagID){case TAG_ID.HTML:{startTagInBody(e,t);break}case TAG_ID.NOFRAMES:{startTagInHead(e,t);break}}}function endTagAfterFrameset(e,t){t.tagID===TAG_ID.HTML&&(e.insertionMode=InsertionMode.AFTER_AFTER_FRAMESET)}function startTagAfterAfterBody(e,t){t.tagID===TAG_ID.HTML?startTagInBody(e,t):tokenAfterAfterBody(e,t)}function tokenAfterAfterBody(e,t){e.insertionMode=InsertionMode.IN_BODY,modeInBody(e,t)}function startTagAfterAfterFrameset(e,t){switch(t.tagID){case TAG_ID.HTML:{startTagInBody(e,t);break}case TAG_ID.NOFRAMES:{startTagInHead(e,t);break}}}function nullCharacterInForeignContent(e,t){t.chars=REPLACEMENT_CHARACTER,e._insertCharacters(t)}function characterInForeignContent(e,t){e._insertCharacters(t),e.framesetOk=!1}function popUntilHtmlOrIntegrationPoint(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==NS.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function startTagInForeignContent(e,t){if(causesExit(t))popUntilHtmlOrIntegrationPoint(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===NS.MATHML?adjustTokenMathMLAttrs(t):i===NS.SVG&&(adjustTokenSVGTagName(t),adjustTokenSVGAttrs(t)),adjustTokenXMLAttrs(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}function endTagInForeignContent(e,t){if(t.tagID===TAG_ID.P||t.tagID===TAG_ID.BR){popUntilHtmlOrIntegrationPoint(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===NS.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(i);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}TAG_NAMES.AREA,TAG_NAMES.BASE,TAG_NAMES.BASEFONT,TAG_NAMES.BGSOUND,TAG_NAMES.BR,TAG_NAMES.COL,TAG_NAMES.EMBED,TAG_NAMES.FRAME,TAG_NAMES.HR,TAG_NAMES.IMG,TAG_NAMES.INPUT,TAG_NAMES.KEYGEN,TAG_NAMES.LINK,TAG_NAMES.META,TAG_NAMES.PARAM,TAG_NAMES.SOURCE,TAG_NAMES.TRACK,TAG_NAMES.WBR;const knownMdxNames=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),parseOptions={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function raw(e,t){const n=documentMode(e),i=zwitch("type",{handlers:{root,element,text,comment,doctype,raw:handleRaw},unknown}),a={parser:n?new Parser(parseOptions):Parser.getFragmentParser(void 0,parseOptions),handle(l){i(l,a)},stitches:!1,options:t||{}};i(e,a),resetTokenizer(a,pointStart());const o=n?a.parser.document:a.parser.getFragment(),u=fromParse5(o,{file:a.options.file});return a.stitches&&visit(u,"comment",function(l,c,f){const d=l;if(d.value.stitch&&f&&c!==void 0){const T=f.children;return T[c]=d.value.stitch,c}}),u.type==="root"&&u.children.length===1&&u.children[0].type===e.type?u.children[0]:u}function all(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function root(e,t){all(e.children,t)}function element(e,t){startTag(e,t),all(e.children,t),endTag(e,t)}function text(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:TokenType.CHARACTER,chars:e.value,location:createParse5Location(e)};resetTokenizer(t,pointStart(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function doctype(e,t){const n={type:TokenType.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:createParse5Location(e)};resetTokenizer(t,pointStart(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function stitch(e,t){t.stitches=!0;const n=cloneWithoutChildren(e);if("children"in e&&"children"in n){const i=raw({type:"root",children:e.children},t.options);n.children=i.children}comment({type:"comment",value:{stitch:n}},t)}function comment(e,t){const n=e.value,i={type:TokenType.COMMENT,data:n,location:createParse5Location(e)};resetTokenizer(t,pointStart(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function handleRaw(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,setPoint(t,pointStart(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function unknown(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))stitch(n,t);else{let i="";throw knownMdxNames.has(n.type)&&(i=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+i)}}function resetTokenizer(e,t){setPoint(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=TokenizerMode.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function setPoint(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function startTag(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===TokenizerMode.PLAINTEXT)return;resetTokenizer(t,pointStart(e));const i=t.parser.openElements.current;let a="namespaceURI"in i?i.namespaceURI:webNamespaces.html;a===webNamespaces.html&&n==="svg"&&(a=webNamespaces.svg);const o=toParse5({...e,children:[]},{space:a===webNamespaces.svg?"svg":"html"}),u={type:TokenType.START_TAG,tagName:n,tagID:getTagID(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:createParse5Location(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function endTag(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&htmlVoidElements.includes(n)||t.parser.tokenizer.state===TokenizerMode.PLAINTEXT)return;resetTokenizer(t,pointEnd(e));const i={type:TokenType.END_TAG,tagName:n,tagID:getTagID(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:createParse5Location(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===TokenizerMode.RCDATA||t.parser.tokenizer.state===TokenizerMode.RAWTEXT||t.parser.tokenizer.state===TokenizerMode.SCRIPT_DATA)&&(t.parser.tokenizer.state=TokenizerMode.DATA)}function documentMode(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function createParse5Location(e){const t=pointStart(e)||{line:void 0,column:void 0,offset:void 0},n=pointEnd(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function cloneWithoutChildren(e){return"children"in e?structuredClone$1({...e,children:[]}):structuredClone$1(e)}function rehypeRaw(e){return function(t,n){return raw(t,{...e,file:n})}}const SvgAccountCircle=e=>React__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},React__namespace.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.95 7.95 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"})),ChatLineUserMessage=({content:e,metaData:t})=>{const{chatlineLabelUserTranslation:n}=useTranslationChatbox();return jsxRuntime.jsxs("div",{className:"flex px-3 justify-between mt-8 bg-gray-200 rounded-lg",children:[jsxRuntime.jsx("div",{className:"w-10 mr-3 flex-col content-center",children:jsxRuntime.jsx("div",{children:jsxRuntime.jsx(SvgAccountCircle,{fill:"#4564d6"})})}),jsxRuntime.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":" text-gray-800"}`,children:[jsxRuntime.jsx("p",{className:"font-bold",children:n}),jsxRuntime.jsx("div",{children:jsxRuntime.jsx(Markdown,{rehypePlugins:[rehypeRaw],children:e&&e})})]})]})},Assistant=({})=>{const{companySettings:e}=React.useContext(CompanySettingsContext);return jsxRuntime.jsx("div",{className:`assistant
50
+ `;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&a)continue;u=" ";break}default:u=String.fromCharCode(i)}a=i===-2,r.push(u)}return r.join("")}const ih={42:Ye,43:Ye,45:Ye,48:Ye,49:Ye,50:Ye,51:Ye,52:Ye,53:Ye,54:Ye,55:Ye,56:Ye,57:Ye,62:to},uh={91:sd},sh={[-2]:Fr,[-1]:Fr,32:Fr},oh={35:hd,42:Xn,45:[eu,Xn],60:bd,61:eu,95:Xn,96:Zi,126:Zi},lh={38:ro,92:no},ch={[-5]:Hr,[-4]:Hr,[-3]:Hr,33:wd,38:ro,42:ya,60:[F0,xd],91:Bd,92:[fd,no],93:Qa,95:ya,96:K0},fh={null:[ya,Zd]},dh={null:[42,95]},hh={null:[]},mh=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:dh,contentInitial:uh,disable:hh,document:ih,flow:oh,flowInitial:sh,insideSpan:fh,string:lh,text:ch},Symbol.toStringTag,{value:"Module"}));function ph(e){const n=S0([mh,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:n,content:a(v0),document:a(D0),flow:a(Qd),string:a(Jd),text:a(eh)};return r;function a(i){return u;function u(o){return nh(r,i,o)}}}function Eh(e){for(;!ao(e););return e}const tu=/[\0\t\n\r]/g;function bh(){let e=1,t="",n=!0,r;return a;function a(i,u,o){const l=[];let c,f,d,m,h;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(u||void 0).decode(i)),d=0,t="",n&&(i.charCodeAt(0)===65279&&d++,n=void 0);d<i.length;){if(tu.lastIndex=d,c=tu.exec(i),m=c&&c.index!==void 0?c.index:i.length,h=i.charCodeAt(m),!c){t=i.slice(d);break}if(h===10&&d===m&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<m&&(l.push(i.slice(d,m)),e+=m-d),h){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=m+1}return o&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Th=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gh(e){return e.replace(Th,Ah)}function Ah(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return eo(n.slice(i?2:1),i?16:10)}return Wa(n)||e}const co={}.hasOwnProperty;function _h(e,t,n){return typeof t!="string"&&(n=t,t=void 0),yh(n)(Eh(ph(n).document().write(bh()(e,t,!0))))}function yh(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Ee),autolinkProtocol:ne,autolinkEmail:ne,atxHeading:i(ke),blockQuote:i(ie),characterEscape:ne,characterReference:ne,codeFenced:i(J),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:i(J,u),codeText:i(_e,u),codeTextData:ne,data:ne,codeFlowValue:ne,definition:i(j),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:i(xe),hardBreakEscape:i(Ce),hardBreakTrailing:i(Ce),htmlFlow:i(ce,u),htmlFlowData:ne,htmlText:i(ce,u),htmlTextData:ne,image:i(Ie),label:u,link:i(Ee),listItem:i(Ne),listItemValue:m,listOrdered:i(be,d),listUnordered:i(be),paragraph:i(Fe),reference:T,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:i(ke),strong:i(we),thematicBreak:i(Nr)},exit:{atxHeading:l(),atxHeadingSequence:C,autolink:l(),autolinkEmail:te,autolinkProtocol:K,blockQuote:l(),characterEscapeValue:Y,characterReferenceMarkerHexadecimal:Z,characterReferenceMarkerNumeric:Z,characterReferenceValue:z,codeFenced:l(R),codeFencedFence:A,codeFencedFenceInfo:h,codeFencedFenceMeta:y,codeFlowValue:Y,codeIndented:l(S),codeText:l(X),codeTextData:Y,data:Y,definition:l(),definitionDestinationString:w,definitionLabelString:v,definitionTitleString:O,emphasis:l(),hardBreakEscape:l(B),hardBreakTrailing:l(B),htmlFlow:l(G),htmlFlowData:Y,htmlText:l($),htmlTextData:Y,image:l(pe),label:Le,labelText:ve,lineEnding:F,link:l(oe),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:q,resourceDestinationString:p,resourceTitleString:H,resource:Q,setextHeading:l(se),setextHeadingLineSequence:W,setextHeadingText:I,strong:l(),thematicBreak:l()}};fo(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(L){let U={type:"root",children:[]};const ae={stack:[U],tokenStack:[],config:t,enter:o,exit:c,buffer:u,resume:f,data:n},fe=[];let Ae=-1;for(;++Ae<L.length;)if(L[Ae][1].type==="listOrdered"||L[Ae][1].type==="listUnordered")if(L[Ae][0]==="enter")fe.push(Ae);else{const at=fe.pop();Ae=a(L,at,Ae)}for(Ae=-1;++Ae<L.length;){const at=t[L[Ae][0]];co.call(at,L[Ae][1].type)&&at[L[Ae][1].type].call(Object.assign({sliceSerialize:L[Ae][2].sliceSerialize},ae),L[Ae][1])}if(ae.tokenStack.length>0){const at=ae.tokenStack[ae.tokenStack.length-1];(at[1]||nu).call(ae,void 0,at[0])}for(U.position={start:gt(L.length>0?L[0][1].start:{line:1,column:1,offset:0}),end:gt(L.length>0?L[L.length-2][1].end:{line:1,column:1,offset:0})},Ae=-1;++Ae<t.transforms.length;)U=t.transforms[Ae](U)||U;return U}function a(L,U,ae){let fe=U-1,Ae=-1,at=!1,Nt,Et,ln,cn;for(;++fe<=ae;){const We=L[fe];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?Ae++:Ae--,cn=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(Nt&&!cn&&!Ae&&!ln&&(ln=fe),cn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:cn=void 0}if(!Ae&&We[0]==="enter"&&We[1].type==="listItemPrefix"||Ae===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(Nt){let jt=fe;for(Et=void 0;jt--;){const bt=L[jt];if(bt[1].type==="lineEnding"||bt[1].type==="lineEndingBlank"){if(bt[0]==="exit")continue;Et&&(L[Et][1].type="lineEndingBlank",at=!0),bt[1].type="lineEnding",Et=jt}else if(!(bt[1].type==="linePrefix"||bt[1].type==="blockQuotePrefix"||bt[1].type==="blockQuotePrefixWhitespace"||bt[1].type==="blockQuoteMarker"||bt[1].type==="listItemIndent"))break}ln&&(!Et||ln<Et)&&(Nt._spread=!0),Nt.end=Object.assign({},Et?L[Et][1].start:We[1].end),L.splice(Et||fe,0,["exit",Nt,We[2]]),fe++,ae++}if(We[1].type==="listItemPrefix"){const jt={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};Nt=jt,L.splice(fe,0,["enter",jt,We[2]]),fe++,ae++,ln=void 0,cn=!0}}}return L[U][1]._spread=at,ae}function i(L,U){return ae;function ae(fe){o.call(this,L(fe),fe),U&&U.call(this,fe)}}function u(){this.stack.push({type:"fragment",children:[]})}function o(L,U,ae){this.stack[this.stack.length-1].children.push(L),this.stack.push(L),this.tokenStack.push([U,ae]),L.position={start:gt(U.start),end:void 0}}function l(L){return U;function U(ae){L&&L.call(this,ae),c.call(this,ae)}}function c(L,U){const ae=this.stack.pop(),fe=this.tokenStack.pop();if(fe)fe[0].type!==L.type&&(U?U.call(this,L,fe[0]):(fe[1]||nu).call(this,L,fe[0]));else throw new Error("Cannot close `"+L.type+"` ("+Tn({start:L.start,end:L.end})+"): it’s not open");ae.position.end=gt(L.end)}function f(){return _0(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function m(L){if(this.data.expectingFirstListItemValue){const U=this.stack[this.stack.length-2];U.start=Number.parseInt(this.sliceSerialize(L),10),this.data.expectingFirstListItemValue=void 0}}function h(){const L=this.resume(),U=this.stack[this.stack.length-1];U.lang=L}function y(){const L=this.resume(),U=this.stack[this.stack.length-1];U.meta=L}function A(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const L=this.resume(),U=this.stack[this.stack.length-1];U.value=L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function S(){const L=this.resume(),U=this.stack[this.stack.length-1];U.value=L.replace(/(\r?\n|\r)$/g,"")}function v(L){const U=this.resume(),ae=this.stack[this.stack.length-1];ae.label=U,ae.identifier=Qt(this.sliceSerialize(L)).toLowerCase()}function O(){const L=this.resume(),U=this.stack[this.stack.length-1];U.title=L}function w(){const L=this.resume(),U=this.stack[this.stack.length-1];U.url=L}function C(L){const U=this.stack[this.stack.length-1];if(!U.depth){const ae=this.sliceSerialize(L).length;U.depth=ae}}function I(){this.data.setextHeadingSlurpLineEnding=!0}function W(L){const U=this.stack[this.stack.length-1];U.depth=this.sliceSerialize(L).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function ne(L){const ae=this.stack[this.stack.length-1].children;let fe=ae[ae.length-1];(!fe||fe.type!=="text")&&(fe=qe(),fe.position={start:gt(L.start),end:void 0},ae.push(fe)),this.stack.push(fe)}function Y(L){const U=this.stack.pop();U.value+=this.sliceSerialize(L),U.position.end=gt(L.end)}function F(L){const U=this.stack[this.stack.length-1];if(this.data.atHardBreak){const ae=U.children[U.children.length-1];ae.position.end=gt(L.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(U.type)&&(ne.call(this,L),Y.call(this,L))}function B(){this.data.atHardBreak=!0}function G(){const L=this.resume(),U=this.stack[this.stack.length-1];U.value=L}function $(){const L=this.resume(),U=this.stack[this.stack.length-1];U.value=L}function X(){const L=this.resume(),U=this.stack[this.stack.length-1];U.value=L}function oe(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=U,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function pe(){const L=this.stack[this.stack.length-1];if(this.data.inReference){const U=this.data.referenceType||"shortcut";L.type+="Reference",L.referenceType=U,delete L.url,delete L.title}else delete L.identifier,delete L.label;this.data.referenceType=void 0}function ve(L){const U=this.sliceSerialize(L),ae=this.stack[this.stack.length-2];ae.label=gh(U),ae.identifier=Qt(U).toLowerCase()}function Le(){const L=this.stack[this.stack.length-1],U=this.resume(),ae=this.stack[this.stack.length-1];if(this.data.inReference=!0,ae.type==="link"){const fe=L.children;ae.children=fe}else ae.alt=U}function p(){const L=this.resume(),U=this.stack[this.stack.length-1];U.url=L}function H(){const L=this.resume(),U=this.stack[this.stack.length-1];U.title=L}function Q(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function q(L){const U=this.resume(),ae=this.stack[this.stack.length-1];ae.label=U,ae.identifier=Qt(this.sliceSerialize(L)).toLowerCase(),this.data.referenceType="full"}function Z(L){this.data.characterReferenceType=L.type}function z(L){const U=this.sliceSerialize(L),ae=this.data.characterReferenceType;let fe;ae?(fe=eo(U,ae==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):fe=Wa(U);const Ae=this.stack.pop();Ae.value+=fe,Ae.position.end=gt(L.end)}function K(L){Y.call(this,L);const U=this.stack[this.stack.length-1];U.url=this.sliceSerialize(L)}function te(L){Y.call(this,L);const U=this.stack[this.stack.length-1];U.url="mailto:"+this.sliceSerialize(L)}function ie(){return{type:"blockquote",children:[]}}function J(){return{type:"code",lang:null,meta:null,value:""}}function _e(){return{type:"inlineCode",value:""}}function j(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function xe(){return{type:"emphasis",children:[]}}function ke(){return{type:"heading",depth:0,children:[]}}function Ce(){return{type:"break"}}function ce(){return{type:"html",value:""}}function Ie(){return{type:"image",title:null,url:"",alt:null}}function Ee(){return{type:"link",title:null,url:"",children:[]}}function be(L){return{type:"list",ordered:L.type==="listOrdered",start:null,spread:L._spread,children:[]}}function Ne(L){return{type:"listItem",spread:L._spread,checked:null,children:[]}}function Fe(){return{type:"paragraph",children:[]}}function we(){return{type:"strong",children:[]}}function qe(){return{type:"text",value:""}}function Nr(){return{type:"thematicBreak"}}}function gt(e){return{line:e.line,column:e.column,offset:e.offset}}function fo(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?fo(e,r):Sh(e,r)}}function Sh(e,t){let n;for(n in t)if(co.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function nu(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Tn({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Tn({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Tn({start:t.start,end:t.end})+") is still open")}function xh(e){const t=this;t.parser=n;function n(r){return _h(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Ch(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 Ih(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
51
+ `}]}function Nh(e,t){const n=t.value?t.value+`
52
+ `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function Oh(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lh(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rh(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=rn(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let u,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),u=e.footnoteOrder.length):u=i+1,o+=1,e.footnoteCounts.set(r,o);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function vh(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 Ph(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ho(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const a=e.all(t),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const u=a[a.length-1];return u&&u.type==="text"?u.value+=r:a.push({type:"text",value:r}),a}function Dh(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ho(e,t);const a={src:rn(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,i),e.applyData(t,i)}function kh(e,t){const n={src:rn(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 r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function wh(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Mh(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ho(e,t);const a={href:rn(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const i={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Bh(e,t){const n={href:rn(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Fh(e,t,n){const r=e.all(t),a=n?Hh(n):mo(t),i={},u=[];if(typeof t.checked=="boolean"){const f=r[0];let d;f&&f.type==="element"&&f.tagName==="p"?d=f:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const f=r[o];(a||o!==0||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
53
+ `}),f.type==="element"&&f.tagName==="p"&&!a?u.push(...f.children):u.push(f)}const l=r[r.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&u.push({type:"text",value:`
54
+ `});const c={type:"element",tagName:"li",properties:i,children:u};return e.patch(t,c),e.applyData(t,c)}function Hh(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=mo(n[r])}return t}function mo(e){const t=e.spread;return t??e.children.length>1}function Uh(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const u=r[a];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function jh(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $h(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Yh(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Gh(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],u),a.push(u)}if(n.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=mt(t.children[1]),l=Tr(t.children[t.children.length-1]);o&&l&&(u.position={start:o,end:l}),a.push(u)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,i),e.applyData(t,i)}function zh(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",u=n&&n.type==="table"?n.align:void 0,o=u?u.length:t.children.length;let l=-1;const c=[];for(;++l<o;){const d=t.children[l],m={},h=u?u[l]:void 0;h&&(m.align=h);let y={type:"element",tagName:i,properties:m,children:[]};d&&(y.children=e.all(d),e.patch(d,y),y=e.applyData(d,y)),c.push(y)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}function Vh(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const ru=9,au=32;function qh(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const i=[];for(;r;)i.push(iu(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return i.push(iu(t.slice(a),a>0,!1)),i.join("")}function iu(e,t,n){let r=0,a=e.length;if(t){let i=e.codePointAt(r);for(;i===ru||i===au;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(a-1);for(;i===ru||i===au;)a--,i=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function Wh(e,t){const n={type:"text",value:qh(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Xh(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Qh={blockquote:Ch,break:Ih,code:Nh,delete:Oh,emphasis:Lh,footnoteReference:Rh,heading:vh,html:Ph,imageReference:Dh,image:kh,inlineCode:wh,linkReference:Mh,link:Bh,listItem:Fh,list:Uh,paragraph:jh,root:$h,strong:Yh,table:Gh,tableCell:Vh,tableRow:zh,text:Wh,thematicBreak:Xh,toml:$n,yaml:$n,definition:$n,footnoteDefinition:$n};function $n(){}const po=-1,Ar=0,Jn=1,er=2,Ka=3,Za=4,Ja=5,ei=6,Eo=7,bo=8,uu=typeof self=="object"?self:globalThis,Kh=(e,t)=>{const n=(a,i)=>(e.set(i,a),a),r=a=>{if(e.has(a))return e.get(a);const[i,u]=t[a];switch(i){case Ar:case po:return n(u,a);case Jn:{const o=n([],a);for(const l of u)o.push(r(l));return o}case er:{const o=n({},a);for(const[l,c]of u)o[r(l)]=r(c);return o}case Ka:return n(new Date(u),a);case Za:{const{source:o,flags:l}=u;return n(new RegExp(o,l),a)}case Ja:{const o=n(new Map,a);for(const[l,c]of u)o.set(r(l),r(c));return o}case ei:{const o=n(new Set,a);for(const l of u)o.add(r(l));return o}case Eo:{const{name:o,message:l}=u;return n(new uu[o](l),a)}case bo:return n(BigInt(u),a);case"BigInt":return n(Object(BigInt(u)),a)}return n(new uu[i](u),a)};return r},su=e=>Kh(new Map,e)(0),Yt="",{toString:Zh}={},{keys:Jh}=Object,fn=e=>{const t=typeof e;if(t!=="object"||!e)return[Ar,t];const n=Zh.call(e).slice(8,-1);switch(n){case"Array":return[Jn,Yt];case"Object":return[er,Yt];case"Date":return[Ka,Yt];case"RegExp":return[Za,Yt];case"Map":return[Ja,Yt];case"Set":return[ei,Yt]}return n.includes("Array")?[Jn,n]:n.includes("Error")?[Eo,n]:[er,n]},Yn=([e,t])=>e===Ar&&(t==="function"||t==="symbol"),em=(e,t,n,r)=>{const a=(u,o)=>{const l=r.push(u)-1;return n.set(o,l),l},i=u=>{if(n.has(u))return n.get(u);let[o,l]=fn(u);switch(o){case Ar:{let f=u;switch(l){case"bigint":o=bo,f=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return a([po],u)}return a([o,f],u)}case Jn:{if(l)return a([l,[...u]],u);const f=[],d=a([o,f],u);for(const m of u)f.push(i(m));return d}case er:{if(l)switch(l){case"BigInt":return a([l,u.toString()],u);case"Boolean":case"Number":case"String":return a([l,u.valueOf()],u)}if(t&&"toJSON"in u)return i(u.toJSON());const f=[],d=a([o,f],u);for(const m of Jh(u))(e||!Yn(fn(u[m])))&&f.push([i(m),i(u[m])]);return d}case Ka:return a([o,u.toISOString()],u);case Za:{const{source:f,flags:d}=u;return a([o,{source:f,flags:d}],u)}case Ja:{const f=[],d=a([o,f],u);for(const[m,h]of u)(e||!(Yn(fn(m))||Yn(fn(h))))&&f.push([i(m),i(h)]);return d}case ei:{const f=[],d=a([o,f],u);for(const m of u)(e||!Yn(fn(m)))&&f.push(i(m));return d}}const{message:c}=u;return a([o,{name:l,message:c}],u)};return i},ou=(e,{json:t,lossy:n}={})=>{const r=[];return em(!(t||n),!!t,new Map,r)(e),r},Jt=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?su(ou(e,t)):structuredClone(e):(e,t)=>su(ou(e,t));function tm(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 nm(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function rm(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||tm,r=e.options.footnoteBackLabel||nm,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const f=e.all(c),d=String(c.identifier).toUpperCase(),m=rn(d.toLowerCase());let h=0;const y=[],A=e.footnoteCounts.get(d);for(;A!==void 0&&++h<=A;){y.length>0&&y.push({type:"text",value:" "});let v=typeof n=="string"?n:n(l,h);typeof v=="string"&&(v={type:"text",value:v}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,h),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const R=f[f.length-1];if(R&&R.type==="element"&&R.tagName==="p"){const v=R.children[R.children.length-1];v&&v.type==="text"?v.value+=" ":R.children.push({type:"text",value:" "}),R.children.push(...y)}else f.push(...y);const S={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(f,!0)};e.patch(c,S),o.push(S)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Jt(u),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
55
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
56
+ `}]}}const To=(function(e){if(e==null)return sm;if(typeof e=="function")return _r(e);if(typeof e=="object")return Array.isArray(e)?am(e):im(e);if(typeof e=="string")return um(e);throw new Error("Expected function, string, or object as test")});function am(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=To(e[n]);return _r(r);function r(...a){let i=-1;for(;++i<t.length;)if(t[i].apply(this,a))return!0;return!1}}function im(e){const t=e;return _r(n);function n(r){const a=r;let i;for(i in e)if(a[i]!==t[i])return!1;return!0}}function um(e){return _r(t);function t(n){return n&&n.type===e}}function _r(e){return t;function t(n,r,a){return!!(om(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function sm(){return!0}function om(e){return e!==null&&typeof e=="object"&&"type"in e}const go=[],lm=!0,lu=!1,cm="skip";function fm(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const i=To(a),u=r?-1:1;o(e,void 0,[])();function o(l,c,f){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const h=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return m;function m(){let h=go,y,A,R;if((!t||i(l,c,f[f.length-1]||void 0))&&(h=dm(n(l,f)),h[0]===lu))return h;if("children"in l&&l.children){const S=l;if(S.children&&h[0]!==cm)for(A=(r?S.children.length:-1)+u,R=f.concat(S);A>-1&&A<S.children.length;){const v=S.children[A];if(y=o(v,A,R)(),y[0]===lu)return y;A=typeof y[1]=="number"?y[1]:A+u}}return h}}}function dm(e){return Array.isArray(e)?e:typeof e=="number"?[lm,e]:e==null?go:[e]}function ti(e,t,n,r){let a,i,u;typeof t=="function"&&typeof n!="function"?(i=void 0,u=t,a=n):(i=t,u=n,a=r),fm(e,i,o,a);function o(l,c){const f=c[c.length-1],d=f?f.children.indexOf(l):void 0;return u(l,d,f)}}const Sa={}.hasOwnProperty,hm={};function mm(e,t){const n=t||hm,r=new Map,a=new Map,i=new Map,u={...Qh,...n.handlers},o={all:c,applyData:Em,definitionById:r,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:u,one:l,options:n,patch:pm,wrap:Tm};return ti(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const d=f.type==="definition"?r:a,m=String(f.identifier).toUpperCase();d.has(m)||d.set(m,f)}}),o;function l(f,d){const m=f.type,h=o.handlers[m];if(Sa.call(o.handlers,m)&&h)return h(o,f,d);if(o.options.passThrough&&o.options.passThrough.includes(m)){if("children"in f){const{children:A,...R}=f,S=Jt(R);return S.children=o.all(f),S}return Jt(f)}return(o.options.unknownHandler||bm)(o,f,d)}function c(f){const d=[];if("children"in f){const m=f.children;let h=-1;for(;++h<m.length;){const y=o.one(m[h],f);if(y){if(h&&m[h-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=cu(y.value)),!Array.isArray(y)&&y.type==="element")){const A=y.children[0];A&&A.type==="text"&&(A.value=cu(A.value))}Array.isArray(y)?d.push(...y):d.push(y)}}}return d}}function pm(e,t){e.position&&(t.position=Kf(e))}function Em(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const u="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:u}}n.type==="element"&&i&&Object.assign(n.properties,Jt(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function bm(e,t){const n=t.data||{},r="value"in t&&!(Sa.call(n,"hProperties")||Sa.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Tm(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
57
+ `});++r<e.length;)r&&n.push({type:"text",value:`
58
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
59
+ `}),n}function cu(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function fu(e,t){const n=mm(e,t),r=n.one(e,void 0),a=rm(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
60
+ `},a),i}function gm(e,t){return e&&"run"in e?async function(n,r){const a=fu(n,{file:r,...t});await e.run(a,r)}:function(n,r){return fu(n,{file:r,...t||e})}}function du(e){if(e)throw e}var Ur,hu;function Am(){if(hu)return Ur;hu=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},i=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var f=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!f&&!d)return!1;var m;for(m in c);return typeof m>"u"||e.call(c,m)},u=function(c,f){n&&f.name==="__proto__"?n(c,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):c[f.name]=f.newValue},o=function(c,f){if(f==="__proto__")if(e.call(c,f)){if(r)return r(c,f).value}else return;return c[f]};return Ur=function l(){var c,f,d,m,h,y,A=arguments[0],R=1,S=arguments.length,v=!1;for(typeof A=="boolean"&&(v=A,A=arguments[1]||{},R=2),(A==null||typeof A!="object"&&typeof A!="function")&&(A={});R<S;++R)if(c=arguments[R],c!=null)for(f in c)d=o(A,f),m=o(c,f),A!==m&&(v&&m&&(i(m)||(h=a(m)))?(h?(h=!1,y=d&&a(d)?d:[]):y=d&&i(d)?d:{},u(A,{name:f,newValue:l(v,y,m)})):typeof m<"u"&&u(A,{name:f,newValue:m}));return A},Ur}var _m=Am();const jr=Ba(_m);function xa(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 ym(){const e=[],t={run:n,use:r};return t;function n(...a){let i=-1;const u=a.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);o(null,...a);function o(l,...c){const f=e[++i];let d=-1;if(l){u(l);return}for(;++d<a.length;)(c[d]===null||c[d]===void 0)&&(c[d]=a[d]);a=c,f?Sm(f,o)(...c):u(null,...c)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function Sm(e,t){let n;return r;function r(...u){const o=e.length>u.length;let l;o&&u.push(a);try{l=e.apply(this,u)}catch(c){const f=c;if(o&&n)throw f;return a(f)}o||(l&&l.then&&typeof l.then=="function"?l.then(i,a):l instanceof Error?a(l):i(l))}function a(u,...o){n||(n=!0,t(u,...o))}function i(u){a(null,u)}}const ut={basename:xm,dirname:Cm,extname:Im,join:Nm,sep:"/"};function xm(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Dn(e);let n=0,r=-1,a=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else r<0&&(i=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let u=-1,o=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else u<0&&(i=!0,u=a+1),o>-1&&(e.codePointAt(a)===t.codePointAt(o--)?o<0&&(r=a):(o=-1,r=u));return n===r?r=u:r<0&&(r=e.length),e.slice(n,r)}function Cm(e){if(Dn(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Im(e){Dn(e);let t=e.length,n=-1,r=0,a=-1,i=0,u;for(;t--;){const o=e.codePointAt(t);if(o===47){if(u){r=t+1;break}continue}n<0&&(u=!0,n=t+1),o===46?a<0?a=t:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function Nm(...e){let t=-1,n;for(;++t<e.length;)Dn(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Om(n)}function Om(e){Dn(e);const t=e.codePointAt(0)===47;let n=Lm(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Lm(e,t){let n="",r=0,a=-1,i=0,u=-1,o,l;for(;++u<=e.length;){if(u<e.length)o=e.codePointAt(u);else{if(o===47)break;o=47}if(o===47){if(!(a===u-1||i===1))if(a!==u-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=u,i=0;continue}}else if(n.length>0){n="",r=0,a=u,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),r=u-a-1;a=u,i=0}else o===46&&i>-1?i++:i=-1}return n}function Dn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Rm={cwd:vm};function vm(){return"/"}function Ca(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Pm(e){if(typeof e=="string")e=new URL(e);else if(!Ca(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 Dm(e)}function Dm(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const $r=["history","path","basename","stem","extname","dirname"];class Ao{constructor(t){let n;t?Ca(t)?n={path:t}:typeof t=="string"||km(t)?n={value:t}:n=t:n={},this.cwd=Rm.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<$r.length;){const i=$r[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let a;for(a in n)$r.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?ut.basename(this.path):void 0}set basename(t){Gr(t,"basename"),Yr(t,"basename"),this.path=ut.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ut.dirname(this.path):void 0}set dirname(t){mu(this.basename,"dirname"),this.path=ut.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ut.extname(this.path):void 0}set extname(t){if(Yr(t,"extname"),mu(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=ut.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ca(t)&&(t=Pm(t)),Gr(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ut.basename(this.path,this.extname):void 0}set stem(t){Gr(t,"stem"),Yr(t,"stem"),this.path=ut.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new He(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Yr(e,t){if(e&&e.includes(ut.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ut.sep+"`")}function Gr(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function mu(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function km(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wm=(function(e){const r=this.constructor.prototype,a=r[e],i=function(){return a.apply(i,arguments)};Object.setPrototypeOf(i,r);const u=Object.getOwnPropertyNames(a);for(const o of u){const l=Object.getOwnPropertyDescriptor(a,o);l&&Object.defineProperty(i,o,l)}return i}),Mm={}.hasOwnProperty;class ni extends wm{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=ym()}copy(){const t=new ni;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(jr(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(qr("data",this.frozen),this.namespace[t]=n,this):Mm.call(this.namespace,t)&&this.namespace[t]||void 0:t?(qr("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,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Gn(t),r=this.parser||this.Parser;return zr("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),zr("process",this.parser||this.Parser),Vr("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,u){const o=Gn(t),l=r.parse(o);r.run(l,o,function(f,d,m){if(f||!d||!m)return c(f);const h=d,y=r.stringify(h,m);Hm(y)?m.value=y:m.result=y,c(f,m)});function c(f,d){f||!d?u(f):i?i(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),zr("processSync",this.parser||this.Parser),Vr("processSync",this.compiler||this.Compiler),this.process(t,a),Eu("processSync","process",n),r;function a(i,u){n=!0,du(i),r=u}}run(t,n,r){pu(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(u,o){const l=Gn(n);a.run(t,l,c);function c(f,d,m){const h=d||t;f?o(f):u?u(h):r(void 0,h,m)}}}runSync(t,n){let r=!1,a;return this.run(t,n,i),Eu("runSync","run",r),a;function i(u,o){du(u),a=o,r=!0}}stringify(t,n){this.freeze();const r=Gn(n),a=this.compiler||this.Compiler;return Vr("stringify",a),pu(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(qr("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?o(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...d]=c;l(f,d)}else u(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function u(c){if(!("plugins"in c)&&!("settings"in c))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");o(c.plugins),c.settings&&(a.settings=jr(!0,a.settings,c.settings))}function o(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const d=c[f];i(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,f){let d=-1,m=-1;for(;++d<r.length;)if(r[d][0]===c){m=d;break}if(m===-1)r.push([c,...f]);else if(f.length>0){let[h,...y]=f;const A=r[m][1];xa(A)&&xa(h)&&(h=jr(!0,A,h)),r[m]=[c,h,...y]}}}}const Bm=new ni().freeze();function zr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Vr(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function qr(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 pu(e){if(!xa(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Eu(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Gn(e){return Fm(e)?e:new Ao(e)}function Fm(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Hm(e){return typeof e=="string"||Um(e)}function Um(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const jm="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",bu=[],Tu={allowDangerousHtml:!0},$m=/^(https?|ircs?|mailto|xmpp)$/i,Ym=[{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 _o(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,i=e.components,u=e.disallowedElements,o=e.rehypePlugins||bu,l=e.remarkPlugins||bu,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Tu}:Tu,f=e.skipHtml,d=e.unwrapDisallowed,m=e.urlTransform||Gm,h=Bm().use(xh).use(l).use(gm,c).use(o),y=new Ao;typeof r=="string"&&(y.value=r);for(const v of Ym)Object.hasOwn(e,v.from)&&(""+v.from+(v.to?"use `"+v.to+"` instead":"remove it")+jm+v.id,void 0);const A=h.parse(y);let R=h.runSync(A,y);return a&&(R={type:"element",tagName:"div",properties:{className:a},children:R.type==="root"?R.children:[R]}),ti(R,S),r0(R,{Fragment:P.Fragment,components:i,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function S(v,O,w){if(v.type==="raw"&&w&&typeof O=="number")return f?w.children.splice(O,1):w.children[O]={type:"text",value:v.value},O;if(v.type==="element"){let C;for(C in Br)if(Object.hasOwn(Br,C)&&Object.hasOwn(v.properties,C)){const I=v.properties[C],W=Br[C];(W===null||W.includes(v.tagName))&&(v.properties[C]=m(String(I||""),C,v))}}if(v.type==="element"){let C=t?!t.includes(v.tagName):u?u.includes(v.tagName):!1;if(!C&&n&&typeof O=="number"&&(C=!n(v,O,w)),C&&w&&typeof O=="number")return d&&v.children?w.children.splice(O,1,...v.children):w.children.splice(O,1),O}}}function Gm(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t<0||a>-1&&t>a||n>-1&&t>n||r>-1&&t>r||$m.test(e.slice(0,t))?e:""}const gu=/[#.]/g;function zm(e,t){const n=e||"",r={};let a=0,i,u;for(;a<n.length;){gu.lastIndex=a;const o=gu.exec(n),l=n.slice(a,o?o.index:n.length);l&&(i?i==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:u=l,a+=l.length),o&&(i=o[0],a++)}return{type:"element",tagName:u||t||"div",properties:r,children:[]}}const Vm=new Set(["button","menu","reset","submit"]),Ia={}.hasOwnProperty;function yo(e,t,n){const r=n&&Qm(n);function a(i,u,...o){let l=-1,c;if(i==null){c={type:"root",children:[]};const f=u;o.unshift(f)}else if(c=zm(i,t),c.tagName=c.tagName.toLowerCase(),r&&Ia.call(r,c.tagName)&&(c.tagName=r[c.tagName]),qm(u,c.tagName)){let f;for(f in u)Ia.call(u,f)&&Wm(e,c.properties,f,u[f])}else o.unshift(u);for(;++l<o.length;)Na(c.children,o[l]);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function qm(e,t){return e==null||typeof e!="object"||Array.isArray(e)?!1:t==="input"||!e.type||typeof e.type!="string"?!0:"children"in e&&Array.isArray(e.children)?!1:t==="button"?Vm.has(e.type.toLowerCase()):!("value"in e)}function Wm(e,t,n,r){const a=br(e,n);let i=-1,u;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;u=r}else typeof r=="boolean"?u=r:typeof r=="string"?a.spaceSeparated?u=Hi(r):a.commaSeparated?u=ki(r):a.commaOrSpaceSeparated?u=Hi(ki(r).join(" ")):u=Au(a,a.property,r):Array.isArray(r)?u=r.concat():u=a.property==="style"?Xm(r):String(r);if(Array.isArray(u)){const o=[];for(;++i<u.length;){const l=Au(a,a.property,u[i]);o[i]=l}u=o}if(a.property==="className"&&Array.isArray(t.className)){const o=u;u=t.className.concat(o)}t[a.property]=u}}function Na(e,t){let n=-1;if(t!=null)if(typeof t=="string"||typeof t=="number")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(;++n<t.length;)Na(e,t[n]);else if(typeof t=="object"&&"type"in t)t.type==="root"?Na(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Au(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||In(n)===In(t)))return!0}return n}function Xm(e){const t=[];let n;for(n in e)Ia.call(e,n)&&t.push([n,e[n]].join(": "));return t.join("; ")}function Qm(e){const t={};let n=-1;for(;++n<e.length;)t[e[n].toLowerCase()]=e[n];return t}const Km=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],Zm=yo(Pn,"div"),Jm=yo(Ct,"g",Km);function ep(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(i){if(typeof i=="number"&&i>-1&&i<=t.length){let u=0;for(;;){let o=n[u];if(o===void 0){const l=_u(t,n[u-1]);o=l===-1?t.length+1:l+1,n[u]=o}if(o>i)return{line:u+1,column:i-(u>0?n[u-1]:0)+1,offset:i};u++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length<i.line;){const o=n[n.length-1],l=_u(t,o),c=l===-1?t.length+1:l+1;if(o===c)break;n.push(c)}const u=(i.line>1?n[i.line-2]:0)+i.column-1;if(u<n[i.line-1])return u}}}function _u(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
61
+ `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Pt={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},So={}.hasOwnProperty,tp=Object.prototype;function np(e,t){const n=t||{};return ri({file:n.file||void 0,location:!1,schema:n.space==="svg"?Ct:Pn,verbose:n.verbose||!1},e)}function ri(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Qn(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:xo(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),u=ep(i),o=u.toPoint(0),l=u.toPoint(i.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Qn(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Qn(e,r,n),n}default:return n=rp(e,t),n}}function xo(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=ri(e,t[n]);r.push(a)}return r}function rp(e,t){const n=e.schema;e.schema=t.namespaceURI===Pt.svg?Ct:Pn;let r=-1;const a={};for(;++r<t.attrs.length;){const o=t.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;So.call(tp,l)||(a[l]=o.value)}const u=(e.schema.space==="svg"?Jm:Zm)(t.tagName,a,xo(e,t.childNodes));if(Qn(e,t,u),u.tagName==="template"){const o=t,l=o.sourceCodeLocation,c=l&&l.startTag&&Wt(l.startTag),f=l&&l.endTag&&Wt(l.endTag),d=ri(e,o.content);c&&f&&e.file&&(d.position={start:c.end,end:f.start}),u.content=d}return e.schema=n,u}function Qn(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=ap(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function ap(e,t,n){const r=Wt(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const i={};let u;if(n.attrs)for(u in n.attrs)So.call(n.attrs,u)&&(i[br(e.schema,u).property]=Wt(n.attrs[u]));n.startTag;const o=Wt(n.startTag),l=n.endTag?Wt(n.endTag):void 0,c={opening:o};l&&(c.closing=l),c.properties=i,t.data={position:c}}}return r}function Wt(e){const t=yu({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=yu({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function yu(e){return e.line&&e.column?e:void 0}const Su={}.hasOwnProperty;function Co(e,t){const n=t||{};function r(a,...i){let u=r.invalid;const o=r.handlers;if(a&&Su.call(a,e)){const l=String(a[e]);u=Su.call(o,l)?o[l]:r.unknown}if(u)return u.call(this,a,...i)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const ip={},up={}.hasOwnProperty,Io=Co("type",{handlers:{root:op,element:hp,text:fp,comment:dp,doctype:cp}});function sp(e,t){const r=(t||ip).space;return Io(e,r==="svg"?Ct:Pn)}function op(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=ai(e.children,n,t),an(e,n),n}function lp(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=ai(e.children,n,t),an(e,n),n}function cp(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return an(e,t),t}function fp(e){const t={nodeName:"#text",value:e.value,parentNode:null};return an(e,t),t}function dp(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return an(e,t),t}function hp(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=Ct);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&up.call(e.properties,i)){const l=mp(r,i,e.properties[i]);l&&a.push(l)}}const u=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Pt[u],childNodes:[],parentNode:null};return o.childNodes=ai(e.children,o,r),an(e,o),e.tagName==="template"&&e.content&&(o.content=lp(e.content,r)),o}function mp(e,t,n){const r=br(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?Fs(n):qs(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=r.attribute.slice(0,i)),a.namespace=Pt[r.space]}return a}function ai(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const i=Io(e[r],n);i.parentNode=t,a.push(i)}return a}function an(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const pp=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ep=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Re="�";var E;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(E||(E={}));const $e={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function No(e){return e>=55296&&e<=57343}function bp(e){return e>=56320&&e<=57343}function Tp(e,t){return(e-55296)*1024+9216+t}function Oo(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function Lo(e){return e>=64976&&e<=65007||Ep.has(e)}var x;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(x||(x={}));const gp=65536;class Ap{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=gp,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:i}=this,u=a+n,o=i+n;return{code:t,startLine:r,endLine:r,startCol:u,endCol:u,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(bp(n))return this.pos++,this._addGap(),Tp(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,E.EOF;return this._err(x.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;const r=this.html.charCodeAt(n);return r===E.CARRIAGE_RETURN?E.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,E.EOF;let t=this.html.charCodeAt(this.pos);return t===E.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,E.LINE_FEED):t===E.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,No(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===E.LINE_FEED||t===E.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){Oo(t)?this._err(x.controlCharacterInInputStream):Lo(t)&&this._err(x.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var le;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(le||(le={}));function Ro(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const vo=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),_p=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Wr;const yp=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Sp=(Wr=String.fromCodePoint)!==null&&Wr!==void 0?Wr:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function xp(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=yp.get(e))!==null&&t!==void 0?t:e}var Be;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Be||(Be={}));const Cp=32;var yt;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(yt||(yt={}));function Oa(e){return e>=Be.ZERO&&e<=Be.NINE}function Ip(e){return e>=Be.UPPER_A&&e<=Be.UPPER_F||e>=Be.LOWER_A&&e<=Be.LOWER_F}function Np(e){return e>=Be.UPPER_A&&e<=Be.UPPER_Z||e>=Be.LOWER_A&&e<=Be.LOWER_Z||Oa(e)}function Op(e){return e===Be.EQUALS||Np(e)}var Me;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Me||(Me={}));var Tt;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Tt||(Tt={}));class Po{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Me.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Tt.Strict}startEntity(t){this.decodeMode=t,this.state=Me.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Me.EntityStart:return t.charCodeAt(n)===Be.NUM?(this.state=Me.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Me.NamedEntity,this.stateNamedEntity(t,n));case Me.NumericStart:return this.stateNumericStart(t,n);case Me.NumericDecimal:return this.stateNumericDecimal(t,n);case Me.NumericHex:return this.stateNumericHex(t,n);case Me.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Cp)===Be.LOWER_X?(this.state=Me.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Me.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const i=r-n;this.result=this.result*Math.pow(a,i)+parseInt(t.substr(n,i),a),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Oa(a)||Ip(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(Oa(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Be.SEMI)this.consumed+=1;else if(this.decodeMode===Tt.Strict)return 0;return this.emitCodePoint(xp(this.result),this.consumed),this.errors&&(t!==Be.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],i=(a&yt.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const u=t.charCodeAt(n);if(this.treeIndex=Lp(r,a,this.treeIndex+Math.max(1,i),u),this.treeIndex<0)return this.result===0||this.decodeMode===Tt.Attribute&&(i===0||Op(u))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],i=(a&yt.VALUE_LENGTH)>>14,i!==0){if(u===Be.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Tt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&yt.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~yt.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Me.NamedEntity:return this.result!==0&&(this.decodeMode!==Tt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Me.NumericDecimal:return this.emitNumericEntity(0,2);case Me.NumericHex:return this.emitNumericEntity(0,3);case Me.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Me.EntityStart:return 0}}}function Do(e){let t="";const n=new Po(e,r=>t+=Sp(r));return function(a,i){let u=0,o=0;for(;(o=a.indexOf("&",o))>=0;){t+=a.slice(u,o),n.startEntity(i);const c=n.write(a,o+1);if(c<0){u=o+n.end();break}u=o+c,o=c===0?u+1:u}const l=t+a.slice(u);return t="",l}}function Lp(e,t,n,r){const a=(t&yt.BRANCH_LENGTH)>>7,i=t&yt.JUMP_TABLE;if(a===0)return i!==0&&r===i?n:-1;if(i){const l=r-i;return l<0||l>=a?-1:e[n+l]-1}let u=n,o=u+a-1;for(;u<=o;){const l=u+o>>>1,c=e[l];if(c<r)u=l+1;else if(c>r)o=l-1;else return e[l+a]}return-1}Do(vo);Do(_p);var D;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(D||(D={}));var Dt;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Dt||(Dt={}));var Je;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Je||(Je={}));var _;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(_||(_={}));var s;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(s||(s={}));const Rp=new Map([[_.A,s.A],[_.ADDRESS,s.ADDRESS],[_.ANNOTATION_XML,s.ANNOTATION_XML],[_.APPLET,s.APPLET],[_.AREA,s.AREA],[_.ARTICLE,s.ARTICLE],[_.ASIDE,s.ASIDE],[_.B,s.B],[_.BASE,s.BASE],[_.BASEFONT,s.BASEFONT],[_.BGSOUND,s.BGSOUND],[_.BIG,s.BIG],[_.BLOCKQUOTE,s.BLOCKQUOTE],[_.BODY,s.BODY],[_.BR,s.BR],[_.BUTTON,s.BUTTON],[_.CAPTION,s.CAPTION],[_.CENTER,s.CENTER],[_.CODE,s.CODE],[_.COL,s.COL],[_.COLGROUP,s.COLGROUP],[_.DD,s.DD],[_.DESC,s.DESC],[_.DETAILS,s.DETAILS],[_.DIALOG,s.DIALOG],[_.DIR,s.DIR],[_.DIV,s.DIV],[_.DL,s.DL],[_.DT,s.DT],[_.EM,s.EM],[_.EMBED,s.EMBED],[_.FIELDSET,s.FIELDSET],[_.FIGCAPTION,s.FIGCAPTION],[_.FIGURE,s.FIGURE],[_.FONT,s.FONT],[_.FOOTER,s.FOOTER],[_.FOREIGN_OBJECT,s.FOREIGN_OBJECT],[_.FORM,s.FORM],[_.FRAME,s.FRAME],[_.FRAMESET,s.FRAMESET],[_.H1,s.H1],[_.H2,s.H2],[_.H3,s.H3],[_.H4,s.H4],[_.H5,s.H5],[_.H6,s.H6],[_.HEAD,s.HEAD],[_.HEADER,s.HEADER],[_.HGROUP,s.HGROUP],[_.HR,s.HR],[_.HTML,s.HTML],[_.I,s.I],[_.IMG,s.IMG],[_.IMAGE,s.IMAGE],[_.INPUT,s.INPUT],[_.IFRAME,s.IFRAME],[_.KEYGEN,s.KEYGEN],[_.LABEL,s.LABEL],[_.LI,s.LI],[_.LINK,s.LINK],[_.LISTING,s.LISTING],[_.MAIN,s.MAIN],[_.MALIGNMARK,s.MALIGNMARK],[_.MARQUEE,s.MARQUEE],[_.MATH,s.MATH],[_.MENU,s.MENU],[_.META,s.META],[_.MGLYPH,s.MGLYPH],[_.MI,s.MI],[_.MO,s.MO],[_.MN,s.MN],[_.MS,s.MS],[_.MTEXT,s.MTEXT],[_.NAV,s.NAV],[_.NOBR,s.NOBR],[_.NOFRAMES,s.NOFRAMES],[_.NOEMBED,s.NOEMBED],[_.NOSCRIPT,s.NOSCRIPT],[_.OBJECT,s.OBJECT],[_.OL,s.OL],[_.OPTGROUP,s.OPTGROUP],[_.OPTION,s.OPTION],[_.P,s.P],[_.PARAM,s.PARAM],[_.PLAINTEXT,s.PLAINTEXT],[_.PRE,s.PRE],[_.RB,s.RB],[_.RP,s.RP],[_.RT,s.RT],[_.RTC,s.RTC],[_.RUBY,s.RUBY],[_.S,s.S],[_.SCRIPT,s.SCRIPT],[_.SEARCH,s.SEARCH],[_.SECTION,s.SECTION],[_.SELECT,s.SELECT],[_.SOURCE,s.SOURCE],[_.SMALL,s.SMALL],[_.SPAN,s.SPAN],[_.STRIKE,s.STRIKE],[_.STRONG,s.STRONG],[_.STYLE,s.STYLE],[_.SUB,s.SUB],[_.SUMMARY,s.SUMMARY],[_.SUP,s.SUP],[_.TABLE,s.TABLE],[_.TBODY,s.TBODY],[_.TEMPLATE,s.TEMPLATE],[_.TEXTAREA,s.TEXTAREA],[_.TFOOT,s.TFOOT],[_.TD,s.TD],[_.TH,s.TH],[_.THEAD,s.THEAD],[_.TITLE,s.TITLE],[_.TR,s.TR],[_.TRACK,s.TRACK],[_.TT,s.TT],[_.U,s.U],[_.UL,s.UL],[_.SVG,s.SVG],[_.VAR,s.VAR],[_.WBR,s.WBR],[_.XMP,s.XMP]]);function un(e){var t;return(t=Rp.get(e))!==null&&t!==void 0?t:s.UNKNOWN}const k=s,vp={[D.HTML]:new Set([k.ADDRESS,k.APPLET,k.AREA,k.ARTICLE,k.ASIDE,k.BASE,k.BASEFONT,k.BGSOUND,k.BLOCKQUOTE,k.BODY,k.BR,k.BUTTON,k.CAPTION,k.CENTER,k.COL,k.COLGROUP,k.DD,k.DETAILS,k.DIR,k.DIV,k.DL,k.DT,k.EMBED,k.FIELDSET,k.FIGCAPTION,k.FIGURE,k.FOOTER,k.FORM,k.FRAME,k.FRAMESET,k.H1,k.H2,k.H3,k.H4,k.H5,k.H6,k.HEAD,k.HEADER,k.HGROUP,k.HR,k.HTML,k.IFRAME,k.IMG,k.INPUT,k.LI,k.LINK,k.LISTING,k.MAIN,k.MARQUEE,k.MENU,k.META,k.NAV,k.NOEMBED,k.NOFRAMES,k.NOSCRIPT,k.OBJECT,k.OL,k.P,k.PARAM,k.PLAINTEXT,k.PRE,k.SCRIPT,k.SECTION,k.SELECT,k.SOURCE,k.STYLE,k.SUMMARY,k.TABLE,k.TBODY,k.TD,k.TEMPLATE,k.TEXTAREA,k.TFOOT,k.TH,k.THEAD,k.TITLE,k.TR,k.TRACK,k.UL,k.WBR,k.XMP]),[D.MATHML]:new Set([k.MI,k.MO,k.MN,k.MS,k.MTEXT,k.ANNOTATION_XML]),[D.SVG]:new Set([k.TITLE,k.FOREIGN_OBJECT,k.DESC]),[D.XLINK]:new Set,[D.XML]:new Set,[D.XMLNS]:new Set},La=new Set([k.H1,k.H2,k.H3,k.H4,k.H5,k.H6]);_.STYLE,_.SCRIPT,_.XMP,_.IFRAME,_.NOEMBED,_.NOFRAMES,_.PLAINTEXT;var b;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(b||(b={}));const Pe={DATA:b.DATA,RCDATA:b.RCDATA,RAWTEXT:b.RAWTEXT,SCRIPT_DATA:b.SCRIPT_DATA,PLAINTEXT:b.PLAINTEXT,CDATA_SECTION:b.CDATA_SECTION};function Pp(e){return e>=E.DIGIT_0&&e<=E.DIGIT_9}function pn(e){return e>=E.LATIN_CAPITAL_A&&e<=E.LATIN_CAPITAL_Z}function Dp(e){return e>=E.LATIN_SMALL_A&&e<=E.LATIN_SMALL_Z}function At(e){return Dp(e)||pn(e)}function xu(e){return At(e)||Pp(e)}function zn(e){return e+32}function ko(e){return e===E.SPACE||e===E.LINE_FEED||e===E.TABULATION||e===E.FORM_FEED}function Cu(e){return ko(e)||e===E.SOLIDUS||e===E.GREATER_THAN_SIGN}function kp(e){return e===E.NULL?x.nullCharacterReference:e>1114111?x.characterReferenceOutsideUnicodeRange:No(e)?x.surrogateCharacterReference:Lo(e)?x.noncharacterCharacterReference:Oo(e)||e===E.CARRIAGE_RETURN?x.controlCharacterReference:null}class wp{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=b.DATA,this.returnState=b.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Ap(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Po(vo,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(x.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(x.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=kp(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:le.START_TAG,tagName:"",tagID:s.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:le.END_TAG,tagName:"",tagID:s.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:le.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:le.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(Ro(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(x.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=un(t.tagName),t.type===le.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(x.endTagWithAttributes),t.selfClosing&&this._err(x.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case le.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case le.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case le.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:le.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=ko(t)?le.WHITESPACE_CHARACTER:t===E.NULL?le.NULL_CHARACTER:le.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(le.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=b.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Tt.Attribute:Tt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===b.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===b.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case b.DATA:{this._stateData(t);break}case b.RCDATA:{this._stateRcdata(t);break}case b.RAWTEXT:{this._stateRawtext(t);break}case b.SCRIPT_DATA:{this._stateScriptData(t);break}case b.PLAINTEXT:{this._statePlaintext(t);break}case b.TAG_OPEN:{this._stateTagOpen(t);break}case b.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case b.TAG_NAME:{this._stateTagName(t);break}case b.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case b.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case b.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case b.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case b.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case b.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case b.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case b.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case b.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case b.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case b.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case b.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case b.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case b.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case b.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case b.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case b.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case b.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case b.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case b.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case b.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case b.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case b.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case b.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case b.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case b.BOGUS_COMMENT:{this._stateBogusComment(t);break}case b.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case b.COMMENT_START:{this._stateCommentStart(t);break}case b.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case b.COMMENT:{this._stateComment(t);break}case b.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case b.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case b.COMMENT_END:{this._stateCommentEnd(t);break}case b.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case b.DOCTYPE:{this._stateDoctype(t);break}case b.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case b.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case b.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case b.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case b.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case b.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case b.CDATA_SECTION:{this._stateCdataSection(t);break}case b.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case b.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case b.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case b.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=b.TAG_OPEN;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(x.unexpectedNullCharacter),this._emitCodePoint(t);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case E.AMPERSAND:{this._startCharacterReference();break}case E.LESS_THAN_SIGN:{this.state=b.RCDATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(x.unexpectedNullCharacter),this._emitChars(Re);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case E.LESS_THAN_SIGN:{this.state=b.RAWTEXT_LESS_THAN_SIGN;break}case E.NULL:{this._err(x.unexpectedNullCharacter),this._emitChars(Re);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_LESS_THAN_SIGN;break}case E.NULL:{this._err(x.unexpectedNullCharacter),this._emitChars(Re);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case E.NULL:{this._err(x.unexpectedNullCharacter),this._emitChars(Re);break}case E.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(At(t))this._createStartTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case E.EXCLAMATION_MARK:{this.state=b.MARKUP_DECLARATION_OPEN;break}case E.SOLIDUS:{this.state=b.END_TAG_OPEN;break}case E.QUESTION_MARK:{this._err(x.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t);break}case E.EOF:{this._err(x.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(x.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=b.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(At(t))this._createEndTagToken(),this.state=b.TAG_NAME,this._stateTagName(t);else switch(t){case E.GREATER_THAN_SIGN:{this._err(x.missingEndTagName),this.state=b.DATA;break}case E.EOF:{this._err(x.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(x.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(x.unexpectedNullCharacter),n.tagName+=Re;break}case E.EOF:{this._err(x.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(pn(t)?zn(t):t)}}_stateRcdataLessThanSign(t){t===E.SOLIDUS?this.state=b.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){At(t)?(this.state=b.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=b.BEFORE_ATTRIBUTE_NAME,!1;case E.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=b.SELF_CLOSING_START_TAG,!1;case E.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=b.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===E.SOLIDUS?this.state=b.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){At(t)?(this.state=b.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case E.SOLIDUS:{this.state=b.SCRIPT_DATA_END_TAG_OPEN;break}case E.EXCLAMATION_MARK:{this.state=b.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=b.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){At(t)?(this.state=b.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===E.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===E.HYPHEN_MINUS?(this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=b.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(x.unexpectedNullCharacter),this._emitChars(Re);break}case E.EOF:{this._err(x.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.NULL:{this._err(x.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(Re);break}case E.EOF:{this._err(x.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case E.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(x.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_ESCAPED,this._emitChars(Re);break}case E.EOF:{this._err(x.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===E.SOLIDUS?this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:At(t)?(this._emitChars("<"),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){At(t)?(this.state=b.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith($e.SCRIPT,!1)&&Cu(this.preprocessor.peek($e.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<$e.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(x.unexpectedNullCharacter),this._emitChars(Re);break}case E.EOF:{this._err(x.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.NULL:{this._err(x.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Re);break}case E.EOF:{this._err(x.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case E.HYPHEN_MINUS:{this._emitChars("-");break}case E.LESS_THAN_SIGN:{this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case E.GREATER_THAN_SIGN:{this.state=b.SCRIPT_DATA,this._emitChars(">");break}case E.NULL:{this._err(x.unexpectedNullCharacter),this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Re);break}case E.EOF:{this._err(x.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===E.SOLIDUS?(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith($e.SCRIPT,!1)&&Cu(this.preprocessor.peek($e.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<$e.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=b.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=b.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._err(x.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=b.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:case E.SOLIDUS:case E.GREATER_THAN_SIGN:case E.EOF:{this._leaveAttrName(),this.state=b.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case E.EQUALS_SIGN:{this._leaveAttrName(),this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:{this._err(x.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case E.NULL:{this._err(x.unexpectedNullCharacter),this.currentAttr.name+=Re;break}default:this.currentAttr.name+=String.fromCodePoint(pn(t)?zn(t):t)}}_stateAfterAttributeName(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.SOLIDUS:{this.state=b.SELF_CLOSING_START_TAG;break}case E.EQUALS_SIGN:{this.state=b.BEFORE_ATTRIBUTE_VALUE;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(x.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=b.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{this.state=b.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this.state=b.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(x.missingAttributeValue),this.state=b.DATA,this.emitCurrentTagToken();break}default:this.state=b.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case E.QUOTATION_MARK:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(x.unexpectedNullCharacter),this.currentAttr.value+=Re;break}case E.EOF:{this._err(x.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case E.APOSTROPHE:{this.state=b.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.NULL:{this._err(x.unexpectedNullCharacter),this.currentAttr.value+=Re;break}case E.EOF:{this._err(x.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case E.AMPERSAND:{this._startCharacterReference();break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case E.NULL:{this._err(x.unexpectedNullCharacter),this.currentAttr.value+=Re;break}case E.QUOTATION_MARK:case E.APOSTROPHE:case E.LESS_THAN_SIGN:case E.EQUALS_SIGN:case E.GRAVE_ACCENT:{this._err(x.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case E.EOF:{this._err(x.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this._leaveAttrValue(),this.state=b.BEFORE_ATTRIBUTE_NAME;break}case E.SOLIDUS:{this._leaveAttrValue(),this.state=b.SELF_CLOSING_START_TAG;break}case E.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(x.eofInTag),this._emitEOFToken();break}default:this._err(x.missingWhitespaceBetweenAttributes),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case E.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=b.DATA,this.emitCurrentTagToken();break}case E.EOF:{this._err(x.eofInTag),this._emitEOFToken();break}default:this._err(x.unexpectedSolidusInTag),this.state=b.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case E.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case E.NULL:{this._err(x.unexpectedNullCharacter),n.data+=Re;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch($e.DASH_DASH,!0)?(this._createCommentToken($e.DASH_DASH.length+1),this.state=b.COMMENT_START):this._consumeSequenceIfMatch($e.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation($e.DOCTYPE.length+1),this.state=b.DOCTYPE):this._consumeSequenceIfMatch($e.CDATA_START,!0)?this.inForeignNode?this.state=b.CDATA_SECTION:(this._err(x.cdataInHtmlContent),this._createCommentToken($e.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=b.BOGUS_COMMENT):this._ensureHibernation()||(this._err(x.incorrectlyOpenedComment),this._createCommentToken(2),this.state=b.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_START_DASH;break}case E.GREATER_THAN_SIGN:{this._err(x.abruptClosingOfEmptyComment),this.state=b.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case E.GREATER_THAN_SIGN:{this._err(x.abruptClosingOfEmptyComment),this.state=b.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(x.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_END_DASH;break}case E.LESS_THAN_SIGN:{n.data+="<",this.state=b.COMMENT_LESS_THAN_SIGN;break}case E.NULL:{this._err(x.unexpectedNullCharacter),n.data+=Re;break}case E.EOF:{this._err(x.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case E.EXCLAMATION_MARK:{n.data+="!",this.state=b.COMMENT_LESS_THAN_SIGN_BANG;break}case E.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=b.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===E.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=b.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===E.HYPHEN_MINUS?this.state=b.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=b.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==E.GREATER_THAN_SIGN&&t!==E.EOF&&this._err(x.nestedComment),this.state=b.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{this.state=b.COMMENT_END;break}case E.EOF:{this._err(x.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentComment(n);break}case E.EXCLAMATION_MARK:{this.state=b.COMMENT_END_BANG;break}case E.HYPHEN_MINUS:{n.data+="-";break}case E.EOF:{this._err(x.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=b.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case E.HYPHEN_MINUS:{n.data+="--!",this.state=b.COMMENT_END_DASH;break}case E.GREATER_THAN_SIGN:{this._err(x.incorrectlyClosedComment),this.state=b.DATA,this.emitCurrentComment(n);break}case E.EOF:{this._err(x.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=b.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case E.EOF:{this._err(x.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(x.missingWhitespaceBeforeDoctypeName),this.state=b.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(pn(t))this._createDoctypeToken(String.fromCharCode(zn(t))),this.state=b.DOCTYPE_NAME;else switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.NULL:{this._err(x.unexpectedNullCharacter),this._createDoctypeToken(Re),this.state=b.DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this._err(x.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(x.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=b.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.AFTER_DOCTYPE_NAME;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.NULL:{this._err(x.unexpectedNullCharacter),n.name+=Re;break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(pn(t)?zn(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch($e.PUBLIC,!1)?this.state=b.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch($e.SYSTEM,!1)?this.state=b.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(x.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(x.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(x.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(x.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(x.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.publicId="",this.state=b.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(x.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(x.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(x.unexpectedNullCharacter),n.publicId+=Re;break}case E.GREATER_THAN_SIGN:{this._err(x.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case E.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case E.NULL:{this._err(x.unexpectedNullCharacter),n.publicId+=Re;break}case E.GREATER_THAN_SIGN:{this._err(x.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case E.GREATER_THAN_SIGN:{this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.QUOTATION_MARK:{this._err(x.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(x.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(x.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(x.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:{this.state=b.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.QUOTATION_MARK:{this._err(x.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{this._err(x.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(x.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(x.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.QUOTATION_MARK:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case E.APOSTROPHE:{n.systemId="",this.state=b.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case E.GREATER_THAN_SIGN:{this._err(x.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.DATA,this.emitCurrentDoctype(n);break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(x.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case E.QUOTATION_MARK:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(x.unexpectedNullCharacter),n.systemId+=Re;break}case E.GREATER_THAN_SIGN:{this._err(x.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case E.APOSTROPHE:{this.state=b.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case E.NULL:{this._err(x.unexpectedNullCharacter),n.systemId+=Re;break}case E.GREATER_THAN_SIGN:{this._err(x.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case E.SPACE:case E.LINE_FEED:case E.TABULATION:case E.FORM_FEED:break;case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.EOF:{this._err(x.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(x.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=b.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case E.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=b.DATA;break}case E.NULL:{this._err(x.unexpectedNullCharacter);break}case E.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case E.RIGHT_SQUARE_BRACKET:{this.state=b.CDATA_SECTION_BRACKET;break}case E.EOF:{this._err(x.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===E.RIGHT_SQUARE_BRACKET?this.state=b.CDATA_SECTION_END:(this._emitChars("]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case E.GREATER_THAN_SIGN:{this.state=b.DATA;break}case E.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=b.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(E.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&xu(this.preprocessor.peek(1))?b.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){xu(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===E.SEMICOLON&&this._err(x.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const wo=new Set([s.DD,s.DT,s.LI,s.OPTGROUP,s.OPTION,s.P,s.RB,s.RP,s.RT,s.RTC]),Iu=new Set([...wo,s.CAPTION,s.COLGROUP,s.TBODY,s.TD,s.TFOOT,s.TH,s.THEAD,s.TR]),tr=new Set([s.APPLET,s.CAPTION,s.HTML,s.MARQUEE,s.OBJECT,s.TABLE,s.TD,s.TEMPLATE,s.TH]),Mp=new Set([...tr,s.OL,s.UL]),Bp=new Set([...tr,s.BUTTON]),Nu=new Set([s.ANNOTATION_XML,s.MI,s.MN,s.MO,s.MS,s.MTEXT]),Ou=new Set([s.DESC,s.FOREIGN_OBJECT,s.TITLE]),Fp=new Set([s.TR,s.TEMPLATE,s.HTML]),Hp=new Set([s.TBODY,s.TFOOT,s.THEAD,s.TEMPLATE,s.HTML]),Up=new Set([s.TABLE,s.TEMPLATE,s.HTML]),jp=new Set([s.TD,s.TH]);class $p{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=s.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===s.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===D.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==D.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(n<0?0:n)}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r<0?0:r)}popUntilNumberedHeaderPopped(){this.popUntilPopped(La,D.HTML)}popUntilTableCellPopped(){this.popUntilPopped(jp,D.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Up,D.HTML)}clearBackToTableBodyContext(){this.clearBackTo(Hp,D.HTML)}clearBackToTableRowContext(){this.clearBackTo(Fp,D.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===s.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===s.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case D.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case D.SVG:{if(Ou.has(a))return!1;break}case D.MATHML:{if(Nu.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,tr)}hasInListItemScope(t){return this.hasInDynamicScope(t,Mp)}hasInButtonScope(t){return this.hasInDynamicScope(t,Bp)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case D.HTML:{if(La.has(n))return!0;if(tr.has(n))return!1;break}case D.SVG:{if(Ou.has(n))return!1;break}case D.MATHML:{if(Nu.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===D.HTML)switch(this.tagIDs[n]){case t:return!0;case s.TABLE:case s.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===D.HTML)switch(this.tagIDs[t]){case s.TBODY:case s.THEAD:case s.TFOOT:return!0;case s.TABLE:case s.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===D.HTML)switch(this.tagIDs[n]){case t:return!0;case s.OPTION:case s.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;wo.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;Iu.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&Iu.has(this.currentTagId);)this.pop()}}const Xr=3;var ct;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ct||(ct={}));const Lu={type:ct.Marker};class Yp{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,i=this.treeAdapter.getTagName(t),u=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===ct.Marker)break;const{element:c}=l;if(this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===u){const f=this.treeAdapter.getAttrList(c);f.length===a&&r.push({idx:o,attrs:f})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Xr)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Xr)return;const a=new Map(n.map(u=>[u.name,u.value]));let i=0;for(let u=0;u<r.length;u++){const o=r[u];o.attrs.every(l=>a.get(l.name)===l.value)&&(i+=1,i>=Xr&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Lu)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ct.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ct.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Lu);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ct.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ct.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ct.Element&&n.element===t)}}const _t={createDocument(){return{nodeName:"#document",mode:Je.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};_t.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(_t.isTextNode(n)){n.value+=t;return}}_t.appendChild(e,_t.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&_t.isTextNode(r)?r.value+=t:_t.insertBefore(e,_t.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},Mo="html",Gp="about:legacy-compat",zp="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Bo=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Vp=[...Bo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],qp=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),Fo=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Wp=[...Fo,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Ru(e,t){return t.some(n=>e.startsWith(n))}function Xp(e){return e.name===Mo&&e.publicId===null&&(e.systemId===null||e.systemId===Gp)}function Qp(e){if(e.name!==Mo)return Je.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===zp)return Je.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),qp.has(n))return Je.QUIRKS;let r=t===null?Vp:Bo;if(Ru(n,r))return Je.QUIRKS;if(r=t===null?Fo:Wp,Ru(n,r))return Je.LIMITED_QUIRKS}return Je.NO_QUIRKS}const vu={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Kp="definitionurl",Zp="definitionURL",Jp=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),eE=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:D.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:D.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:D.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:D.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:D.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:D.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:D.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:D.XML}],["xml:space",{prefix:"xml",name:"space",namespace:D.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:D.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:D.XMLNS}]]),tE=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),nE=new Set([s.B,s.BIG,s.BLOCKQUOTE,s.BODY,s.BR,s.CENTER,s.CODE,s.DD,s.DIV,s.DL,s.DT,s.EM,s.EMBED,s.H1,s.H2,s.H3,s.H4,s.H5,s.H6,s.HEAD,s.HR,s.I,s.IMG,s.LI,s.LISTING,s.MENU,s.META,s.NOBR,s.OL,s.P,s.PRE,s.RUBY,s.S,s.SMALL,s.SPAN,s.STRONG,s.STRIKE,s.SUB,s.SUP,s.TABLE,s.TT,s.U,s.UL,s.VAR]);function rE(e){const t=e.tagID;return t===s.FONT&&e.attrs.some(({name:r})=>r===Dt.COLOR||r===Dt.SIZE||r===Dt.FACE)||nE.has(t)}function Ho(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===Kp){e.attrs[t].name=Zp;break}}function Uo(e){for(let t=0;t<e.attrs.length;t++){const n=Jp.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function ii(e){for(let t=0;t<e.attrs.length;t++){const n=eE.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function aE(e){const t=tE.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=un(e.tagName))}function iE(e,t){return t===D.MATHML&&(e===s.MI||e===s.MO||e===s.MN||e===s.MS||e===s.MTEXT)}function uE(e,t,n){if(t===D.MATHML&&e===s.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===Dt.ENCODING){const a=n[r].value.toLowerCase();return a===vu.TEXT_HTML||a===vu.APPLICATION_XML}}return t===D.SVG&&(e===s.FOREIGN_OBJECT||e===s.DESC||e===s.TITLE)}function sE(e,t,n,r){return(!r||r===D.HTML)&&uE(e,t,n)||(!r||r===D.MATHML)&&iE(e,t)}const oE="hidden",lE=8,cE=3;var g;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(g||(g={}));const fE={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},jo=new Set([s.TABLE,s.TBODY,s.TFOOT,s.THEAD,s.TR]),Pu={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:_t,onParseError:null};class Du{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=g.INITIAL,this.originalInsertionMode=g.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...Pu,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new wp(this.options,this),this.activeFormattingElements=new Yp(this.treeAdapter),this.fragmentContextID=r?un(this.treeAdapter.getTagName(r)):s.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new $p(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...Pu,...n};t??(t=r.treeAdapter.createElement(_.TEMPLATE,D.HTML,[]));const a=r.treeAdapter.createElement("documentmock",D.HTML,[]),i=new this(r,a,t);return i.fragmentContextID===s.TEMPLATE&&i.tmplInsertionModeStack.unshift(g.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const i=(a=t.location)!==null&&a!==void 0?a:fE,u={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(u)}onItemPush(t,n,r){var a,i;(i=(a=this.treeAdapter).onItemPush)===null||i===void 0||i.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let i,u;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,u=this.fragmentContextID):{current:i,currentTagId:u}=this.openElements,this._setContextModes(i,u)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===D.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,D.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=g.TEXT}switchToPlaintextParsing(){this.insertionMode=g.TEXT,this.originalInsertionMode=g.IN_BODY,this.tokenizer.state=Pe.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===_.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==D.HTML))switch(this.fragmentContextID){case s.TITLE:case s.TEXTAREA:{this.tokenizer.state=Pe.RCDATA;break}case s.STYLE:case s.XMP:case s.IFRAME:case s.NOEMBED:case s.NOFRAMES:case s.NOSCRIPT:{this.tokenizer.state=Pe.RAWTEXT;break}case s.SCRIPT:{this.tokenizer.state=Pe.SCRIPT_DATA;break}case s.PLAINTEXT:{this.tokenizer.state=Pe.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const u=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));u&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,D.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,D.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(_.HTML,D.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,s.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const a=this.treeAdapter.getChildNodes(n),i=r?a.lastIndexOf(r):a.length,u=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(u)){const{endLine:l,endCol:c,endOffset:f}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(u,{endLine:l,endCol:c,endOffset:f})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(u,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,a=this.treeAdapter.getTagName(t),i=n.type===le.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===s.SVG&&this.treeAdapter.getTagName(n)===_.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===D.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===s.MGLYPH||t.tagID===s.MALIGNMARK)&&!this._isIntegrationPoint(r,n,D.HTML)}_processToken(t){switch(t.type){case le.CHARACTER:{this.onCharacter(t);break}case le.NULL_CHARACTER:{this.onNullCharacter(t);break}case le.COMMENT:{this.onComment(t);break}case le.DOCTYPE:{this.onDoctype(t);break}case le.START_TAG:{this._processStartTag(t);break}case le.END_TAG:{this.onEndTag(t);break}case le.EOF:{this.onEof(t);break}case le.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return sE(t,a,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===ct.Marker||this.openElements.contains(a.element)),r=n<0?t-1:n-1;for(let a=r;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=g.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(s.P),this.openElements.popUntilTagNamePopped(s.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case s.TR:{this.insertionMode=g.IN_ROW;return}case s.TBODY:case s.THEAD:case s.TFOOT:{this.insertionMode=g.IN_TABLE_BODY;return}case s.CAPTION:{this.insertionMode=g.IN_CAPTION;return}case s.COLGROUP:{this.insertionMode=g.IN_COLUMN_GROUP;return}case s.TABLE:{this.insertionMode=g.IN_TABLE;return}case s.BODY:{this.insertionMode=g.IN_BODY;return}case s.FRAMESET:{this.insertionMode=g.IN_FRAMESET;return}case s.SELECT:{this._resetInsertionModeForSelect(t);return}case s.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case s.HTML:{this.insertionMode=this.headElement?g.AFTER_HEAD:g.BEFORE_HEAD;return}case s.TD:case s.TH:{if(t>0){this.insertionMode=g.IN_CELL;return}break}case s.HEAD:{if(t>0){this.insertionMode=g.IN_HEAD;return}break}}this.insertionMode=g.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===s.TEMPLATE)break;if(r===s.TABLE){this.insertionMode=g.IN_SELECT_IN_TABLE;return}}this.insertionMode=g.IN_SELECT}_isElementCausesFosterParenting(t){return jo.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case s.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===D.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case s.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return vp[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){j1(this,t);return}switch(this.insertionMode){case g.INITIAL:{dn(this,t);break}case g.BEFORE_HTML:{An(this,t);break}case g.BEFORE_HEAD:{_n(this,t);break}case g.IN_HEAD:{yn(this,t);break}case g.IN_HEAD_NO_SCRIPT:{Sn(this,t);break}case g.AFTER_HEAD:{xn(this,t);break}case g.IN_BODY:case g.IN_CAPTION:case g.IN_CELL:case g.IN_TEMPLATE:{Yo(this,t);break}case g.TEXT:case g.IN_SELECT:case g.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case g.IN_TABLE:case g.IN_TABLE_BODY:case g.IN_ROW:{Qr(this,t);break}case g.IN_TABLE_TEXT:{Xo(this,t);break}case g.IN_COLUMN_GROUP:{nr(this,t);break}case g.AFTER_BODY:{rr(this,t);break}case g.AFTER_AFTER_BODY:{Kn(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){U1(this,t);return}switch(this.insertionMode){case g.INITIAL:{dn(this,t);break}case g.BEFORE_HTML:{An(this,t);break}case g.BEFORE_HEAD:{_n(this,t);break}case g.IN_HEAD:{yn(this,t);break}case g.IN_HEAD_NO_SCRIPT:{Sn(this,t);break}case g.AFTER_HEAD:{xn(this,t);break}case g.TEXT:{this._insertCharacters(t);break}case g.IN_TABLE:case g.IN_TABLE_BODY:case g.IN_ROW:{Qr(this,t);break}case g.IN_COLUMN_GROUP:{nr(this,t);break}case g.AFTER_BODY:{rr(this,t);break}case g.AFTER_AFTER_BODY:{Kn(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Ra(this,t);return}switch(this.insertionMode){case g.INITIAL:case g.BEFORE_HTML:case g.BEFORE_HEAD:case g.IN_HEAD:case g.IN_HEAD_NO_SCRIPT:case g.AFTER_HEAD:case g.IN_BODY:case g.IN_TABLE:case g.IN_CAPTION:case g.IN_COLUMN_GROUP:case g.IN_TABLE_BODY:case g.IN_ROW:case g.IN_CELL:case g.IN_SELECT:case g.IN_SELECT_IN_TABLE:case g.IN_TEMPLATE:case g.IN_FRAMESET:case g.AFTER_FRAMESET:{Ra(this,t);break}case g.IN_TABLE_TEXT:{hn(this,t);break}case g.AFTER_BODY:{TE(this,t);break}case g.AFTER_AFTER_BODY:case g.AFTER_AFTER_FRAMESET:{gE(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case g.INITIAL:{AE(this,t);break}case g.BEFORE_HEAD:case g.IN_HEAD:case g.IN_HEAD_NO_SCRIPT:case g.AFTER_HEAD:{this._err(t,x.misplacedDoctype);break}case g.IN_TABLE_TEXT:{hn(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,x.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?$1(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case g.INITIAL:{dn(this,t);break}case g.BEFORE_HTML:{_E(this,t);break}case g.BEFORE_HEAD:{SE(this,t);break}case g.IN_HEAD:{it(this,t);break}case g.IN_HEAD_NO_SCRIPT:{IE(this,t);break}case g.AFTER_HEAD:{OE(this,t);break}case g.IN_BODY:{Ue(this,t);break}case g.IN_TABLE:{en(this,t);break}case g.IN_TABLE_TEXT:{hn(this,t);break}case g.IN_CAPTION:{x1(this,t);break}case g.IN_COLUMN_GROUP:{oi(this,t);break}case g.IN_TABLE_BODY:{xr(this,t);break}case g.IN_ROW:{Cr(this,t);break}case g.IN_CELL:{N1(this,t);break}case g.IN_SELECT:{Zo(this,t);break}case g.IN_SELECT_IN_TABLE:{L1(this,t);break}case g.IN_TEMPLATE:{v1(this,t);break}case g.AFTER_BODY:{D1(this,t);break}case g.IN_FRAMESET:{k1(this,t);break}case g.AFTER_FRAMESET:{M1(this,t);break}case g.AFTER_AFTER_BODY:{F1(this,t);break}case g.AFTER_AFTER_FRAMESET:{H1(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?Y1(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case g.INITIAL:{dn(this,t);break}case g.BEFORE_HTML:{yE(this,t);break}case g.BEFORE_HEAD:{xE(this,t);break}case g.IN_HEAD:{CE(this,t);break}case g.IN_HEAD_NO_SCRIPT:{NE(this,t);break}case g.AFTER_HEAD:{LE(this,t);break}case g.IN_BODY:{Sr(this,t);break}case g.TEXT:{m1(this,t);break}case g.IN_TABLE:{On(this,t);break}case g.IN_TABLE_TEXT:{hn(this,t);break}case g.IN_CAPTION:{C1(this,t);break}case g.IN_COLUMN_GROUP:{I1(this,t);break}case g.IN_TABLE_BODY:{va(this,t);break}case g.IN_ROW:{Ko(this,t);break}case g.IN_CELL:{O1(this,t);break}case g.IN_SELECT:{Jo(this,t);break}case g.IN_SELECT_IN_TABLE:{R1(this,t);break}case g.IN_TEMPLATE:{P1(this,t);break}case g.AFTER_BODY:{tl(this,t);break}case g.IN_FRAMESET:{w1(this,t);break}case g.AFTER_FRAMESET:{B1(this,t);break}case g.AFTER_AFTER_BODY:{Kn(this,t);break}}}onEof(t){switch(this.insertionMode){case g.INITIAL:{dn(this,t);break}case g.BEFORE_HTML:{An(this,t);break}case g.BEFORE_HEAD:{_n(this,t);break}case g.IN_HEAD:{yn(this,t);break}case g.IN_HEAD_NO_SCRIPT:{Sn(this,t);break}case g.AFTER_HEAD:{xn(this,t);break}case g.IN_BODY:case g.IN_TABLE:case g.IN_CAPTION:case g.IN_COLUMN_GROUP:case g.IN_TABLE_BODY:case g.IN_ROW:case g.IN_CELL:case g.IN_SELECT:case g.IN_SELECT_IN_TABLE:{qo(this,t);break}case g.TEXT:{p1(this,t);break}case g.IN_TABLE_TEXT:{hn(this,t);break}case g.IN_TEMPLATE:{el(this,t);break}case g.AFTER_BODY:case g.IN_FRAMESET:case g.AFTER_FRAMESET:case g.AFTER_AFTER_BODY:case g.AFTER_AFTER_FRAMESET:{si(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===E.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case g.IN_HEAD:case g.IN_HEAD_NO_SCRIPT:case g.AFTER_HEAD:case g.TEXT:case g.IN_COLUMN_GROUP:case g.IN_SELECT:case g.IN_SELECT_IN_TABLE:case g.IN_FRAMESET:case g.AFTER_FRAMESET:{this._insertCharacters(t);break}case g.IN_BODY:case g.IN_CAPTION:case g.IN_CELL:case g.IN_TEMPLATE:case g.AFTER_BODY:case g.AFTER_AFTER_BODY:case g.AFTER_AFTER_FRAMESET:{$o(this,t);break}case g.IN_TABLE:case g.IN_TABLE_BODY:case g.IN_ROW:{Qr(this,t);break}case g.IN_TABLE_TEXT:{Wo(this,t);break}}}}function dE(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Vo(e,t),n}function hE(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function mE(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let i=0,u=a;u!==n;i++,u=a){a=e.openElements.getCommonAncestor(u);const o=e.activeFormattingElements.getElementEntry(u),l=o&&i>=cE;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(u)):(u=pE(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(u,r),r=u)}return r}function pE(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function EE(e,t,n){const r=e.treeAdapter.getTagName(t),a=un(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);a===s.TEMPLATE&&i===D.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function bE(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,a.tagID)}function ui(e,t){for(let n=0;n<lE;n++){const r=dE(e,t);if(!r)break;const a=hE(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const i=mE(e,a,r.element),u=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),u&&EE(e,u,i),bE(e,a,r)}}function Ra(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function TE(e,t){e._appendCommentNode(t,e.openElements.items[0])}function gE(e,t){e._appendCommentNode(t,e.document)}function si(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],u=e.treeAdapter.getNodeSourceCodeLocation(i);u&&!u.endTag&&e._setEndLocation(i,t)}}}}function AE(e,t){e._setDocumentType(t);const n=t.forceQuirks?Je.QUIRKS:Qp(t);Xp(t)||e._err(t,x.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=g.BEFORE_HTML}function dn(e,t){e._err(t,x.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Je.QUIRKS),e.insertionMode=g.BEFORE_HTML,e._processToken(t)}function _E(e,t){t.tagID===s.HTML?(e._insertElement(t,D.HTML),e.insertionMode=g.BEFORE_HEAD):An(e,t)}function yE(e,t){const n=t.tagID;(n===s.HTML||n===s.HEAD||n===s.BODY||n===s.BR)&&An(e,t)}function An(e,t){e._insertFakeRootElement(),e.insertionMode=g.BEFORE_HEAD,e._processToken(t)}function SE(e,t){switch(t.tagID){case s.HTML:{Ue(e,t);break}case s.HEAD:{e._insertElement(t,D.HTML),e.headElement=e.openElements.current,e.insertionMode=g.IN_HEAD;break}default:_n(e,t)}}function xE(e,t){const n=t.tagID;n===s.HEAD||n===s.BODY||n===s.HTML||n===s.BR?_n(e,t):e._err(t,x.endTagWithoutMatchingOpenElement)}function _n(e,t){e._insertFakeElement(_.HEAD,s.HEAD),e.headElement=e.openElements.current,e.insertionMode=g.IN_HEAD,e._processToken(t)}function it(e,t){switch(t.tagID){case s.HTML:{Ue(e,t);break}case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:{e._appendElement(t,D.HTML),t.ackSelfClosing=!0;break}case s.TITLE:{e._switchToTextParsing(t,Pe.RCDATA);break}case s.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Pe.RAWTEXT):(e._insertElement(t,D.HTML),e.insertionMode=g.IN_HEAD_NO_SCRIPT);break}case s.NOFRAMES:case s.STYLE:{e._switchToTextParsing(t,Pe.RAWTEXT);break}case s.SCRIPT:{e._switchToTextParsing(t,Pe.SCRIPT_DATA);break}case s.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=g.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(g.IN_TEMPLATE);break}case s.HEAD:{e._err(t,x.misplacedStartTagForHeadElement);break}default:yn(e,t)}}function CE(e,t){switch(t.tagID){case s.HEAD:{e.openElements.pop(),e.insertionMode=g.AFTER_HEAD;break}case s.BODY:case s.BR:case s.HTML:{yn(e,t);break}case s.TEMPLATE:{Ht(e,t);break}default:e._err(t,x.endTagWithoutMatchingOpenElement)}}function Ht(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==s.TEMPLATE&&e._err(t,x.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(s.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,x.endTagWithoutMatchingOpenElement)}function yn(e,t){e.openElements.pop(),e.insertionMode=g.AFTER_HEAD,e._processToken(t)}function IE(e,t){switch(t.tagID){case s.HTML:{Ue(e,t);break}case s.BASEFONT:case s.BGSOUND:case s.HEAD:case s.LINK:case s.META:case s.NOFRAMES:case s.STYLE:{it(e,t);break}case s.NOSCRIPT:{e._err(t,x.nestedNoscriptInHead);break}default:Sn(e,t)}}function NE(e,t){switch(t.tagID){case s.NOSCRIPT:{e.openElements.pop(),e.insertionMode=g.IN_HEAD;break}case s.BR:{Sn(e,t);break}default:e._err(t,x.endTagWithoutMatchingOpenElement)}}function Sn(e,t){const n=t.type===le.EOF?x.openElementsLeftAfterEof:x.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=g.IN_HEAD,e._processToken(t)}function OE(e,t){switch(t.tagID){case s.HTML:{Ue(e,t);break}case s.BODY:{e._insertElement(t,D.HTML),e.framesetOk=!1,e.insertionMode=g.IN_BODY;break}case s.FRAMESET:{e._insertElement(t,D.HTML),e.insertionMode=g.IN_FRAMESET;break}case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:case s.NOFRAMES:case s.SCRIPT:case s.STYLE:case s.TEMPLATE:case s.TITLE:{e._err(t,x.abandonedHeadElementChild),e.openElements.push(e.headElement,s.HEAD),it(e,t),e.openElements.remove(e.headElement);break}case s.HEAD:{e._err(t,x.misplacedStartTagForHeadElement);break}default:xn(e,t)}}function LE(e,t){switch(t.tagID){case s.BODY:case s.HTML:case s.BR:{xn(e,t);break}case s.TEMPLATE:{Ht(e,t);break}default:e._err(t,x.endTagWithoutMatchingOpenElement)}}function xn(e,t){e._insertFakeElement(_.BODY,s.BODY),e.insertionMode=g.IN_BODY,yr(e,t)}function yr(e,t){switch(t.type){case le.CHARACTER:{Yo(e,t);break}case le.WHITESPACE_CHARACTER:{$o(e,t);break}case le.COMMENT:{Ra(e,t);break}case le.START_TAG:{Ue(e,t);break}case le.END_TAG:{Sr(e,t);break}case le.EOF:{qo(e,t);break}}}function $o(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function Yo(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function RE(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function vE(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function PE(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,D.HTML),e.insertionMode=g.IN_FRAMESET)}function DE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML)}function kE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),La.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,D.HTML)}function wE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function ME(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML),n||(e.formElement=e.openElements.current))}function BE(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===s.LI&&a===s.LI||(n===s.DD||n===s.DT)&&(a===s.DD||a===s.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==s.ADDRESS&&a!==s.DIV&&a!==s.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML)}function FE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML),e.tokenizer.state=Pe.PLAINTEXT}function HE(e,t){e.openElements.hasInScope(s.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.framesetOk=!1}function UE(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(_.A);n&&(ui(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function jE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function $E(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(s.NOBR)&&(ui(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,D.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function YE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function GE(e,t){e.treeAdapter.getDocumentMode(e.document)!==Je.QUIRKS&&e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._insertElement(t,D.HTML),e.framesetOk=!1,e.insertionMode=g.IN_TABLE}function Go(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,D.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function zo(e){const t=Ro(e,Dt.TYPE);return t!=null&&t.toLowerCase()===oE}function zE(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,D.HTML),zo(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function VE(e,t){e._appendElement(t,D.HTML),t.ackSelfClosing=!0}function qE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._appendElement(t,D.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function WE(e,t){t.tagName=_.IMG,t.tagID=s.IMG,Go(e,t)}function XE(e,t){e._insertElement(t,D.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Pe.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=g.TEXT}function QE(e,t){e.openElements.hasInButtonScope(s.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Pe.RAWTEXT)}function KE(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Pe.RAWTEXT)}function ku(e,t){e._switchToTextParsing(t,Pe.RAWTEXT)}function ZE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===g.IN_TABLE||e.insertionMode===g.IN_CAPTION||e.insertionMode===g.IN_TABLE_BODY||e.insertionMode===g.IN_ROW||e.insertionMode===g.IN_CELL?g.IN_SELECT_IN_TABLE:g.IN_SELECT}function JE(e,t){e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML)}function e1(e,t){e.openElements.hasInScope(s.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,D.HTML)}function t1(e,t){e.openElements.hasInScope(s.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(s.RTC),e._insertElement(t,D.HTML)}function n1(e,t){e._reconstructActiveFormattingElements(),Ho(t),ii(t),t.selfClosing?e._appendElement(t,D.MATHML):e._insertElement(t,D.MATHML),t.ackSelfClosing=!0}function r1(e,t){e._reconstructActiveFormattingElements(),Uo(t),ii(t),t.selfClosing?e._appendElement(t,D.SVG):e._insertElement(t,D.SVG),t.ackSelfClosing=!0}function wu(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,D.HTML)}function Ue(e,t){switch(t.tagID){case s.I:case s.S:case s.B:case s.U:case s.EM:case s.TT:case s.BIG:case s.CODE:case s.FONT:case s.SMALL:case s.STRIKE:case s.STRONG:{jE(e,t);break}case s.A:{UE(e,t);break}case s.H1:case s.H2:case s.H3:case s.H4:case s.H5:case s.H6:{kE(e,t);break}case s.P:case s.DL:case s.OL:case s.UL:case s.DIV:case s.DIR:case s.NAV:case s.MAIN:case s.MENU:case s.ASIDE:case s.CENTER:case s.FIGURE:case s.FOOTER:case s.HEADER:case s.HGROUP:case s.DIALOG:case s.DETAILS:case s.ADDRESS:case s.ARTICLE:case s.SEARCH:case s.SECTION:case s.SUMMARY:case s.FIELDSET:case s.BLOCKQUOTE:case s.FIGCAPTION:{DE(e,t);break}case s.LI:case s.DD:case s.DT:{BE(e,t);break}case s.BR:case s.IMG:case s.WBR:case s.AREA:case s.EMBED:case s.KEYGEN:{Go(e,t);break}case s.HR:{qE(e,t);break}case s.RB:case s.RTC:{e1(e,t);break}case s.RT:case s.RP:{t1(e,t);break}case s.PRE:case s.LISTING:{wE(e,t);break}case s.XMP:{QE(e,t);break}case s.SVG:{r1(e,t);break}case s.HTML:{RE(e,t);break}case s.BASE:case s.LINK:case s.META:case s.STYLE:case s.TITLE:case s.SCRIPT:case s.BGSOUND:case s.BASEFONT:case s.TEMPLATE:{it(e,t);break}case s.BODY:{vE(e,t);break}case s.FORM:{ME(e,t);break}case s.NOBR:{$E(e,t);break}case s.MATH:{n1(e,t);break}case s.TABLE:{GE(e,t);break}case s.INPUT:{zE(e,t);break}case s.PARAM:case s.TRACK:case s.SOURCE:{VE(e,t);break}case s.IMAGE:{WE(e,t);break}case s.BUTTON:{HE(e,t);break}case s.APPLET:case s.OBJECT:case s.MARQUEE:{YE(e,t);break}case s.IFRAME:{KE(e,t);break}case s.SELECT:{ZE(e,t);break}case s.OPTION:case s.OPTGROUP:{JE(e,t);break}case s.NOEMBED:case s.NOFRAMES:{ku(e,t);break}case s.FRAMESET:{PE(e,t);break}case s.TEXTAREA:{XE(e,t);break}case s.NOSCRIPT:{e.options.scriptingEnabled?ku(e,t):wu(e,t);break}case s.PLAINTEXT:{FE(e,t);break}case s.COL:case s.TH:case s.TD:case s.TR:case s.HEAD:case s.FRAME:case s.TBODY:case s.TFOOT:case s.THEAD:case s.CAPTION:case s.COLGROUP:break;default:wu(e,t)}}function a1(e,t){if(e.openElements.hasInScope(s.BODY)&&(e.insertionMode=g.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function i1(e,t){e.openElements.hasInScope(s.BODY)&&(e.insertionMode=g.AFTER_BODY,tl(e,t))}function u1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function s1(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(s.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(s.FORM):n&&e.openElements.remove(n))}function o1(e){e.openElements.hasInButtonScope(s.P)||e._insertFakeElement(_.P,s.P),e._closePElement()}function l1(e){e.openElements.hasInListItemScope(s.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(s.LI),e.openElements.popUntilTagNamePopped(s.LI))}function c1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function f1(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function d1(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function h1(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(_.BR,s.BR),e.openElements.pop(),e.framesetOk=!1}function Vo(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],u=e.openElements.tagIDs[a];if(r===u&&(r!==s.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,u))break}}function Sr(e,t){switch(t.tagID){case s.A:case s.B:case s.I:case s.S:case s.U:case s.EM:case s.TT:case s.BIG:case s.CODE:case s.FONT:case s.NOBR:case s.SMALL:case s.STRIKE:case s.STRONG:{ui(e,t);break}case s.P:{o1(e);break}case s.DL:case s.UL:case s.OL:case s.DIR:case s.DIV:case s.NAV:case s.PRE:case s.MAIN:case s.MENU:case s.ASIDE:case s.BUTTON:case s.CENTER:case s.FIGURE:case s.FOOTER:case s.HEADER:case s.HGROUP:case s.DIALOG:case s.ADDRESS:case s.ARTICLE:case s.DETAILS:case s.SEARCH:case s.SECTION:case s.SUMMARY:case s.LISTING:case s.FIELDSET:case s.BLOCKQUOTE:case s.FIGCAPTION:{u1(e,t);break}case s.LI:{l1(e);break}case s.DD:case s.DT:{c1(e,t);break}case s.H1:case s.H2:case s.H3:case s.H4:case s.H5:case s.H6:{f1(e);break}case s.BR:{h1(e);break}case s.BODY:{a1(e,t);break}case s.HTML:{i1(e,t);break}case s.FORM:{s1(e);break}case s.APPLET:case s.OBJECT:case s.MARQUEE:{d1(e,t);break}case s.TEMPLATE:{Ht(e,t);break}default:Vo(e,t)}}function qo(e,t){e.tmplInsertionModeStack.length>0?el(e,t):si(e,t)}function m1(e,t){var n;t.tagID===s.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function p1(e,t){e._err(t,x.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function Qr(e,t){if(jo.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=g.IN_TABLE_TEXT,t.type){case le.CHARACTER:{Xo(e,t);break}case le.WHITESPACE_CHARACTER:{Wo(e,t);break}}else kn(e,t)}function E1(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,D.HTML),e.insertionMode=g.IN_CAPTION}function b1(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,D.HTML),e.insertionMode=g.IN_COLUMN_GROUP}function T1(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.COLGROUP,s.COLGROUP),e.insertionMode=g.IN_COLUMN_GROUP,oi(e,t)}function g1(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,D.HTML),e.insertionMode=g.IN_TABLE_BODY}function A1(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(_.TBODY,s.TBODY),e.insertionMode=g.IN_TABLE_BODY,xr(e,t)}function _1(e,t){e.openElements.hasInTableScope(s.TABLE)&&(e.openElements.popUntilTagNamePopped(s.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function y1(e,t){zo(t)?e._appendElement(t,D.HTML):kn(e,t),t.ackSelfClosing=!0}function S1(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,D.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function en(e,t){switch(t.tagID){case s.TD:case s.TH:case s.TR:{A1(e,t);break}case s.STYLE:case s.SCRIPT:case s.TEMPLATE:{it(e,t);break}case s.COL:{T1(e,t);break}case s.FORM:{S1(e,t);break}case s.TABLE:{_1(e,t);break}case s.TBODY:case s.TFOOT:case s.THEAD:{g1(e,t);break}case s.INPUT:{y1(e,t);break}case s.CAPTION:{E1(e,t);break}case s.COLGROUP:{b1(e,t);break}default:kn(e,t)}}function On(e,t){switch(t.tagID){case s.TABLE:{e.openElements.hasInTableScope(s.TABLE)&&(e.openElements.popUntilTagNamePopped(s.TABLE),e._resetInsertionMode());break}case s.TEMPLATE:{Ht(e,t);break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TBODY:case s.TD:case s.TFOOT:case s.TH:case s.THEAD:case s.TR:break;default:kn(e,t)}}function kn(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,yr(e,t),e.fosterParentingEnabled=n}function Wo(e,t){e.pendingCharacterTokens.push(t)}function Xo(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function hn(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)kn(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const Qo=new Set([s.CAPTION,s.COL,s.COLGROUP,s.TBODY,s.TD,s.TFOOT,s.TH,s.THEAD,s.TR]);function x1(e,t){const n=t.tagID;Qo.has(n)?e.openElements.hasInTableScope(s.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=g.IN_TABLE,en(e,t)):Ue(e,t)}function C1(e,t){const n=t.tagID;switch(n){case s.CAPTION:case s.TABLE:{e.openElements.hasInTableScope(s.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(s.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=g.IN_TABLE,n===s.TABLE&&On(e,t));break}case s.BODY:case s.COL:case s.COLGROUP:case s.HTML:case s.TBODY:case s.TD:case s.TFOOT:case s.TH:case s.THEAD:case s.TR:break;default:Sr(e,t)}}function oi(e,t){switch(t.tagID){case s.HTML:{Ue(e,t);break}case s.COL:{e._appendElement(t,D.HTML),t.ackSelfClosing=!0;break}case s.TEMPLATE:{it(e,t);break}default:nr(e,t)}}function I1(e,t){switch(t.tagID){case s.COLGROUP:{e.openElements.currentTagId===s.COLGROUP&&(e.openElements.pop(),e.insertionMode=g.IN_TABLE);break}case s.TEMPLATE:{Ht(e,t);break}case s.COL:break;default:nr(e,t)}}function nr(e,t){e.openElements.currentTagId===s.COLGROUP&&(e.openElements.pop(),e.insertionMode=g.IN_TABLE,e._processToken(t))}function xr(e,t){switch(t.tagID){case s.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,D.HTML),e.insertionMode=g.IN_ROW;break}case s.TH:case s.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(_.TR,s.TR),e.insertionMode=g.IN_ROW,Cr(e,t);break}case s.CAPTION:case s.COL:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE,en(e,t));break}default:en(e,t)}}function va(e,t){const n=t.tagID;switch(t.tagID){case s.TBODY:case s.TFOOT:case s.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE);break}case s.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE,On(e,t));break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TD:case s.TH:case s.TR:break;default:On(e,t)}}function Cr(e,t){switch(t.tagID){case s.TH:case s.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,D.HTML),e.insertionMode=g.IN_CELL,e.activeFormattingElements.insertMarker();break}case s.CAPTION:case s.COL:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:case s.TR:{e.openElements.hasInTableScope(s.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE_BODY,xr(e,t));break}default:en(e,t)}}function Ko(e,t){switch(t.tagID){case s.TR:{e.openElements.hasInTableScope(s.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE_BODY);break}case s.TABLE:{e.openElements.hasInTableScope(s.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE_BODY,va(e,t));break}case s.TBODY:case s.TFOOT:case s.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(s.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=g.IN_TABLE_BODY,va(e,t));break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:case s.TD:case s.TH:break;default:On(e,t)}}function N1(e,t){const n=t.tagID;Qo.has(n)?(e.openElements.hasInTableScope(s.TD)||e.openElements.hasInTableScope(s.TH))&&(e._closeTableCell(),Cr(e,t)):Ue(e,t)}function O1(e,t){const n=t.tagID;switch(n){case s.TD:case s.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=g.IN_ROW);break}case s.TABLE:case s.TBODY:case s.TFOOT:case s.THEAD:case s.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),Ko(e,t));break}case s.BODY:case s.CAPTION:case s.COL:case s.COLGROUP:case s.HTML:break;default:Sr(e,t)}}function Zo(e,t){switch(t.tagID){case s.HTML:{Ue(e,t);break}case s.OPTION:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e._insertElement(t,D.HTML);break}case s.OPTGROUP:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e.openElements.currentTagId===s.OPTGROUP&&e.openElements.pop(),e._insertElement(t,D.HTML);break}case s.HR:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop(),e.openElements.currentTagId===s.OPTGROUP&&e.openElements.pop(),e._appendElement(t,D.HTML),t.ackSelfClosing=!0;break}case s.INPUT:case s.KEYGEN:case s.TEXTAREA:case s.SELECT:{e.openElements.hasInSelectScope(s.SELECT)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),t.tagID!==s.SELECT&&e._processStartTag(t));break}case s.SCRIPT:case s.TEMPLATE:{it(e,t);break}}}function Jo(e,t){switch(t.tagID){case s.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===s.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===s.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===s.OPTGROUP&&e.openElements.pop();break}case s.OPTION:{e.openElements.currentTagId===s.OPTION&&e.openElements.pop();break}case s.SELECT:{e.openElements.hasInSelectScope(s.SELECT)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode());break}case s.TEMPLATE:{Ht(e,t);break}}}function L1(e,t){const n=t.tagID;n===s.CAPTION||n===s.TABLE||n===s.TBODY||n===s.TFOOT||n===s.THEAD||n===s.TR||n===s.TD||n===s.TH?(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),e._processStartTag(t)):Zo(e,t)}function R1(e,t){const n=t.tagID;n===s.CAPTION||n===s.TABLE||n===s.TBODY||n===s.TFOOT||n===s.THEAD||n===s.TR||n===s.TD||n===s.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(s.SELECT),e._resetInsertionMode(),e.onEndTag(t)):Jo(e,t)}function v1(e,t){switch(t.tagID){case s.BASE:case s.BASEFONT:case s.BGSOUND:case s.LINK:case s.META:case s.NOFRAMES:case s.SCRIPT:case s.STYLE:case s.TEMPLATE:case s.TITLE:{it(e,t);break}case s.CAPTION:case s.COLGROUP:case s.TBODY:case s.TFOOT:case s.THEAD:{e.tmplInsertionModeStack[0]=g.IN_TABLE,e.insertionMode=g.IN_TABLE,en(e,t);break}case s.COL:{e.tmplInsertionModeStack[0]=g.IN_COLUMN_GROUP,e.insertionMode=g.IN_COLUMN_GROUP,oi(e,t);break}case s.TR:{e.tmplInsertionModeStack[0]=g.IN_TABLE_BODY,e.insertionMode=g.IN_TABLE_BODY,xr(e,t);break}case s.TD:case s.TH:{e.tmplInsertionModeStack[0]=g.IN_ROW,e.insertionMode=g.IN_ROW,Cr(e,t);break}default:e.tmplInsertionModeStack[0]=g.IN_BODY,e.insertionMode=g.IN_BODY,Ue(e,t)}}function P1(e,t){t.tagID===s.TEMPLATE&&Ht(e,t)}function el(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(s.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):si(e,t)}function D1(e,t){t.tagID===s.HTML?Ue(e,t):rr(e,t)}function tl(e,t){var n;if(t.tagID===s.HTML){if(e.fragmentContext||(e.insertionMode=g.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===s.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else rr(e,t)}function rr(e,t){e.insertionMode=g.IN_BODY,yr(e,t)}function k1(e,t){switch(t.tagID){case s.HTML:{Ue(e,t);break}case s.FRAMESET:{e._insertElement(t,D.HTML);break}case s.FRAME:{e._appendElement(t,D.HTML),t.ackSelfClosing=!0;break}case s.NOFRAMES:{it(e,t);break}}}function w1(e,t){t.tagID===s.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==s.FRAMESET&&(e.insertionMode=g.AFTER_FRAMESET))}function M1(e,t){switch(t.tagID){case s.HTML:{Ue(e,t);break}case s.NOFRAMES:{it(e,t);break}}}function B1(e,t){t.tagID===s.HTML&&(e.insertionMode=g.AFTER_AFTER_FRAMESET)}function F1(e,t){t.tagID===s.HTML?Ue(e,t):Kn(e,t)}function Kn(e,t){e.insertionMode=g.IN_BODY,yr(e,t)}function H1(e,t){switch(t.tagID){case s.HTML:{Ue(e,t);break}case s.NOFRAMES:{it(e,t);break}}}function U1(e,t){t.chars=Re,e._insertCharacters(t)}function j1(e,t){e._insertCharacters(t),e.framesetOk=!1}function nl(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==D.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function $1(e,t){if(rE(t))nl(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===D.MATHML?Ho(t):r===D.SVG&&(aE(t),Uo(t)),ii(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function Y1(e,t){if(t.tagID===s.P||t.tagID===s.BR){nl(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===D.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}_.AREA,_.BASE,_.BASEFONT,_.BGSOUND,_.BR,_.COL,_.EMBED,_.FRAME,_.HR,_.IMG,_.INPUT,_.KEYGEN,_.LINK,_.META,_.PARAM,_.SOURCE,_.TRACK,_.WBR;const G1=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Mu={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function rl(e,t){const n=eb(e),r=Co("type",{handlers:{root:z1,element:V1,text:q1,comment:il,doctype:W1,raw:Q1},unknown:K1}),a={parser:n?new Du(Mu):Du.getFragmentParser(void 0,Mu),handle(o){r(o,a)},stitches:!1,options:t||{}};r(e,a),sn(a,mt());const i=n?a.parser.document:a.parser.getFragment(),u=np(i,{file:a.options.file});return a.stitches&&ti(u,"comment",function(o,l,c){const f=o;if(f.value.stitch&&c&&l!==void 0){const d=c.children;return d[l]=f.value.stitch,l}}),u.type==="root"&&u.children.length===1&&u.children[0].type===e.type?u.children[0]:u}function al(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function z1(e,t){al(e.children,t)}function V1(e,t){Z1(e,t),al(e.children,t),J1(e,t)}function q1(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:le.CHARACTER,chars:e.value,location:wn(e)};sn(t,mt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function W1(e,t){const n={type:le.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:wn(e)};sn(t,mt(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function X1(e,t){t.stitches=!0;const n=tb(e);if("children"in e&&"children"in n){const r=rl({type:"root",children:e.children},t.options);n.children=r.children}il({type:"comment",value:{stitch:n}},t)}function il(e,t){const n=e.value,r={type:le.COMMENT,data:n,location:wn(e)};sn(t,mt(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Q1(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,ul(t,mt(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function K1(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))X1(n,t);else{let r="";throw G1.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function sn(e,t){ul(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Pe.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function ul(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function Z1(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Pe.PLAINTEXT)return;sn(t,mt(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Pt.html;a===Pt.html&&n==="svg"&&(a=Pt.svg);const i=sp({...e,children:[]},{space:a===Pt.svg?"svg":"html"}),u={type:le.START_TAG,tagName:n,tagID:un(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:wn(e)};t.parser.currentToken=u,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function J1(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&pp.includes(n)||t.parser.tokenizer.state===Pe.PLAINTEXT)return;sn(t,Tr(e));const r={type:le.END_TAG,tagName:n,tagID:un(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:wn(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Pe.RCDATA||t.parser.tokenizer.state===Pe.RAWTEXT||t.parser.tokenizer.state===Pe.SCRIPT_DATA)&&(t.parser.tokenizer.state=Pe.DATA)}function eb(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function wn(e){const t=mt(e)||{line:void 0,column:void 0,offset:void 0},n=Tr(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function tb(e){return"children"in e?Jt({...e,children:[]}):Jt(e)}function sl(e){return function(t,n){return rl(t,{...e,file:n})}}const nb=e=>Ve.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",...e},Ve.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10s10-4.48 10-10S17.52 2 12 2zM7.07 18.28c.43-.9 3.05-1.78 4.93-1.78s4.51.88 4.93 1.78C15.57 19.36 13.86 20 12 20s-3.57-.64-4.93-1.72zm11.29-1.45c-1.43-1.74-4.9-2.33-6.36-2.33s-4.93.59-6.36 2.33A7.95 7.95 0 0 1 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.82-.62 3.49-1.64 4.83zM12 6c-1.94 0-3.5 1.56-3.5 3.5S10.06 13 12 13s3.5-1.56 3.5-3.5S13.94 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"})),rb=({content:e,metaData:t})=>{const{chatlineLabelUserTranslation:n}=Ya();return P.jsxs("div",{className:"flex px-3 justify-between mt-8 bg-gray-200 rounded-lg",children:[P.jsx("div",{className:"w-10 mr-3 flex-col content-center",children:P.jsx("div",{children:P.jsx(nb,{fill:"#4564d6"})})}),P.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":" text-gray-800"}`,children:[P.jsx("p",{className:"font-bold",children:n}),P.jsx("div",{children:P.jsx(_o,{rehypePlugins:[sl],children:e&&e})})]})]})},ab=({})=>{const{companySettings:e}=N.useContext(pr);return P.jsx("div",{className:`assistant
77
62
  transition
78
63
  ease-in-out
79
64
  delay-50
@@ -81,8 +66,8 @@ i.goToAndStop(b-i.firstFrame-1,!0)}S.type==="loop"&&(d===null||d!==S.frames||i.i
81
66
  flex
82
67
  justify-center
83
68
  items-center
84
- `,children:jsxRuntime.jsx(FacetAssetDisplayer,{facet:e.agent.display[srcExports.AgentDisplayFacetRoleType.ASSISTANT]})})},ChatLineAssistantMessage=({content:e,metaData:t})=>{const{chatlineLabelAssistantTranslation:n}=useTranslationChatbox();return jsxRuntime.jsxs("div",{className:"flex justify-between mt-8 px-3",children:[jsxRuntime.jsx("div",{className:"w-10 mr-3 mt-6",children:jsxRuntime.jsx("div",{children:jsxRuntime.jsx(Assistant,{})})}),jsxRuntime.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":"bg-white text-gray-800"}`,children:[jsxRuntime.jsx("p",{className:"font-bold",children:n}),jsxRuntime.jsx("div",{children:jsxRuntime.jsx(Markdown,{rehypePlugins:[rehypeRaw],children:e&&e})})]})]})},Chatline=({userType:e,content:t,metaData:n})=>{const i=e==="user",a=e==="assistant";return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[i&&jsxRuntime.jsx(ChatLineUserMessage,{content:t,metaData:n}),a&&jsxRuntime.jsx(ChatLineAssistantMessage,{content:t,metaData:n})]})};function $458b0a5536c1a7cf$export$40bfa8c7b0832715(e,t,n){let[i,a]=React.useState(e||t),o=React.useRef(e!==void 0),u=e!==void 0;React.useEffect(()=>{let f=o.current;f!==u&&console.warn(`WARN: A component changed from ${f?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}.`),o.current=u},[u]);let l=u?e:i,c=React.useCallback((f,...d)=>{let T=(m,...y)=>{n&&(Object.is(l,m)||n(m,...y)),u||(l=m)};typeof f=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),a((y,...S)=>{let b=f(u?l:y,...S);return T(b,...d),u?y:b})):(u||a(f),T(f,...d))},[u,l,n]);return[l,c]}const $b5e257d569688ac6$var$defaultContext={prefix:String(Math.round(Math.random()*1e10)),current:0},$b5e257d569688ac6$var$SSRContext=React.createContext($b5e257d569688ac6$var$defaultContext),$b5e257d569688ac6$var$IsSSRContext=React.createContext(!1);let $b5e257d569688ac6$var$canUseDOM=!!(typeof window<"u"&&window.document&&window.document.createElement),$b5e257d569688ac6$var$componentIds=new WeakMap;function $b5e257d569688ac6$var$useCounter(e=!1){let t=React.useContext($b5e257d569688ac6$var$SSRContext),n=React.useRef(null);if(n.current===null&&!e){var i,a;let o=(a=React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(i=a.ReactCurrentOwner)===null||i===void 0?void 0:i.current;if(o){let u=$b5e257d569688ac6$var$componentIds.get(o);u==null?$b5e257d569688ac6$var$componentIds.set(o,{id:t.current,state:o.memoizedState}):o.memoizedState!==u.state&&(t.current=u.id,$b5e257d569688ac6$var$componentIds.delete(o))}n.current=++t.current}return n.current}function $b5e257d569688ac6$var$useLegacySSRSafeId(e){let t=React.useContext($b5e257d569688ac6$var$SSRContext);t===$b5e257d569688ac6$var$defaultContext&&!$b5e257d569688ac6$var$canUseDOM&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=$b5e257d569688ac6$var$useCounter(!!e),i=t===$b5e257d569688ac6$var$defaultContext&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${i}-${n}`}function $b5e257d569688ac6$var$useModernSSRSafeId(e){let t=React.useId(),[n]=React.useState($b5e257d569688ac6$export$535bd6ca7f90a273()),i=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${$b5e257d569688ac6$var$defaultContext.prefix}`;return e||`${i}-${t}`}const $b5e257d569688ac6$export$619500959fc48b26=typeof React.useId=="function"?$b5e257d569688ac6$var$useModernSSRSafeId:$b5e257d569688ac6$var$useLegacySSRSafeId;function $b5e257d569688ac6$var$getSnapshot(){return!1}function $b5e257d569688ac6$var$getServerSnapshot(){return!0}function $b5e257d569688ac6$var$subscribe(e){return()=>{}}function $b5e257d569688ac6$export$535bd6ca7f90a273(){return typeof React.useSyncExternalStore=="function"?React.useSyncExternalStore($b5e257d569688ac6$var$subscribe,$b5e257d569688ac6$var$getSnapshot,$b5e257d569688ac6$var$getServerSnapshot):React.useContext($b5e257d569688ac6$var$IsSSRContext)}function r(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function clsx(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}const $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c=typeof document<"u"?React.useLayoutEffect:()=>{};function $8ae05eaa5c114e9c$export$7f54fc3180508a52(e){const t=React.useRef(null);return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{t.current=e},[e]),React.useCallback((...n)=>{const i=t.current;return i?.(...n)},[])}function $1dbecbe27a04f9af$export$14d238f342723f25(e){let[t,n]=React.useState(e),i=React.useRef(null),a=$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{if(!i.current)return;let u=i.current.next();if(u.done){i.current=null;return}t===u.value?a():n(u.value)});$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{i.current&&a()});let o=$8ae05eaa5c114e9c$export$7f54fc3180508a52(u=>{i.current=u(t),a()});return[t,o]}let $bdb11010cef70236$var$canUseDOM=!!(typeof window<"u"&&window.document&&window.document.createElement),$bdb11010cef70236$var$idsUpdaterMap=new Map;function $bdb11010cef70236$export$f680877a34711e37(e){let[t,n]=React.useState(e),i=React.useRef(null),a=$b5e257d569688ac6$export$619500959fc48b26(t),o=React.useCallback(u=>{i.current=u},[]);return $bdb11010cef70236$var$canUseDOM&&$bdb11010cef70236$var$idsUpdaterMap.set(a,o),$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{let u=a;return()=>{$bdb11010cef70236$var$idsUpdaterMap.delete(u)}},[a]),React.useEffect(()=>{let u=i.current;u&&(i.current=null,n(u))}),a}function $bdb11010cef70236$export$cd8c9cb68f842629(e,t){if(e===t)return e;let n=$bdb11010cef70236$var$idsUpdaterMap.get(e);if(n)return n(t),t;let i=$bdb11010cef70236$var$idsUpdaterMap.get(t);return i?(i(e),e):t}function $bdb11010cef70236$export$b4cc09c592e8fdb8(e=[]){let t=$bdb11010cef70236$export$f680877a34711e37(),[n,i]=$1dbecbe27a04f9af$export$14d238f342723f25(t),a=React.useCallback(()=>{i(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,i]);return $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(a,[t,a,...e]),n}function $ff5963eb1fccf552$export$e08e3b67e392101e(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const $431fbd86ca7dc216$export$b204af158042fbac=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},$431fbd86ca7dc216$export$f21a1ffae260145a=e=>e&&"window"in e&&e.window===e?e:$431fbd86ca7dc216$export$b204af158042fbac(e).defaultView||window;function $3ef42575df84b30b$export$9d1611c77c2fe928(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let i=e[n];for(let a in i){let o=t[a],u=i[a];typeof o=="function"&&typeof u=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=$ff5963eb1fccf552$export$e08e3b67e392101e(o,u):(a==="className"||a==="UNSAFE_className")&&typeof o=="string"&&typeof u=="string"?t[a]=clsx(o,u):a==="id"&&o&&u?t.id=$bdb11010cef70236$export$cd8c9cb68f842629(o,u):t[a]=u!==void 0?u:o}}return t}const $65484d02dcb7eb3e$var$DOMPropNames=new Set(["id"]),$65484d02dcb7eb3e$var$labelablePropNames=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),$65484d02dcb7eb3e$var$linkPropNames=new Set(["href","target","rel","download","ping","referrerPolicy"]),$65484d02dcb7eb3e$var$propRe=/^(data-.*)$/;function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,t={}){let{labelable:n,isLink:i,propNames:a}=t,o={};for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&($65484d02dcb7eb3e$var$DOMPropNames.has(u)||n&&$65484d02dcb7eb3e$var$labelablePropNames.has(u)||i&&$65484d02dcb7eb3e$var$linkPropNames.has(u)||a?.has(u)||$65484d02dcb7eb3e$var$propRe.test(u))&&(o[u]=e[u]);return o}function $7215afc6de606d6b$export$de79e2c695e052f3(e){if($7215afc6de606d6b$var$supportsPreventScroll())e.focus({preventScroll:!0});else{let t=$7215afc6de606d6b$var$getScrollableElements(e);e.focus(),$7215afc6de606d6b$var$restoreScrollPosition(t)}}let $7215afc6de606d6b$var$supportsPreventScrollCached=null;function $7215afc6de606d6b$var$supportsPreventScroll(){if($7215afc6de606d6b$var$supportsPreventScrollCached==null){$7215afc6de606d6b$var$supportsPreventScrollCached=!1;try{document.createElement("div").focus({get preventScroll(){return $7215afc6de606d6b$var$supportsPreventScrollCached=!0,!0}})}catch{}}return $7215afc6de606d6b$var$supportsPreventScrollCached}function $7215afc6de606d6b$var$getScrollableElements(e){let t=e.parentNode,n=[],i=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==i;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return i instanceof HTMLElement&&n.push({element:i,scrollTop:i.scrollTop,scrollLeft:i.scrollLeft}),n}function $7215afc6de606d6b$var$restoreScrollPosition(e){for(let{element:t,scrollTop:n,scrollLeft:i}of e)t.scrollTop=n,t.scrollLeft=i}function $c87311424ea30a05$var$testUserAgent(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function $c87311424ea30a05$var$testPlatform(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function $c87311424ea30a05$export$9ac100e40613ea10(){return $c87311424ea30a05$var$testPlatform(/^Mac/i)}function $c87311424ea30a05$export$a11b0059900ceec8(){return $c87311424ea30a05$var$testUserAgent(/Android/i)}let $bbed8b41f857bcc0$var$transitionsByElement=new Map,$bbed8b41f857bcc0$var$transitionCallbacks=new Set;function $bbed8b41f857bcc0$var$setupGlobalEvents(){if(typeof window>"u")return;function e(i){return"propertyName"in i}let t=i=>{if(!e(i)||!i.target)return;let a=$bbed8b41f857bcc0$var$transitionsByElement.get(i.target);a||(a=new Set,$bbed8b41f857bcc0$var$transitionsByElement.set(i.target,a),i.target.addEventListener("transitioncancel",n,{once:!0})),a.add(i.propertyName)},n=i=>{if(!e(i)||!i.target)return;let a=$bbed8b41f857bcc0$var$transitionsByElement.get(i.target);if(a&&(a.delete(i.propertyName),a.size===0&&(i.target.removeEventListener("transitioncancel",n),$bbed8b41f857bcc0$var$transitionsByElement.delete(i.target)),$bbed8b41f857bcc0$var$transitionsByElement.size===0)){for(let o of $bbed8b41f857bcc0$var$transitionCallbacks)o();$bbed8b41f857bcc0$var$transitionCallbacks.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?$bbed8b41f857bcc0$var$setupGlobalEvents():document.addEventListener("DOMContentLoaded",$bbed8b41f857bcc0$var$setupGlobalEvents));function $bbed8b41f857bcc0$export$24490316f764c430(e){requestAnimationFrame(()=>{$bbed8b41f857bcc0$var$transitionsByElement.size===0?e():$bbed8b41f857bcc0$var$transitionCallbacks.add(e)})}function $313b98861ee5dd6c$export$d6875122194c7b44(e,t){let{id:n,"aria-label":i,"aria-labelledby":a}=e;return n=$bdb11010cef70236$export$f680877a34711e37(n),a&&i?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!i&&!a&&t&&(i=t),{id:n,"aria-label":i,"aria-labelledby":a}}function $e7801be82b4b2a53$export$4debdb1a3f0fa79e(e,t){$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function $6a7db85432448f7f$export$60278871457622de(e){return e.mozInputSource===0&&e.isTrusted?!0:$c87311424ea30a05$export$a11b0059900ceec8()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function $99facab73266f662$export$5add1d006293d136(e,t,n){let i=React.useRef(t),a=$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{n&&n(i.current)});React.useEffect(()=>{var o;let u=e==null||(o=e.current)===null||o===void 0?void 0:o.form;return u?.addEventListener("reset",a),()=>{u?.removeEventListener("reset",a)}},[e,a])}const $ae1eeba8b9eafd08$export$5165eccb35aaadb5=React.createContext({register:()=>{}});$ae1eeba8b9eafd08$export$5165eccb35aaadb5.displayName="PressResponderContext";class $8a9cb279dc87e130$export$905e7fc544a71f36{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function $8a9cb279dc87e130$export$715c682d09d639cc(e){let t=React.useRef({isFocused:!1,observer:null});$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{const i=t.current;return()=>{i.observer&&(i.observer.disconnect(),i.observer=null)}},[]);let n=$8ae05eaa5c114e9c$export$7f54fc3180508a52(i=>{e?.(i)});return React.useCallback(i=>{if(i.target instanceof HTMLButtonElement||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement||i.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=i.target,o=u=>{t.current.isFocused=!1,a.disabled&&n(new $8a9cb279dc87e130$export$905e7fc544a71f36("blur",u)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var u;(u=t.current.observer)===null||u===void 0||u.disconnect();let l=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(e){let{isDisabled:t,onFocus:n,onBlur:i,onFocusChange:a}=e;const o=React.useCallback(c=>{if(c.target===c.currentTarget)return i&&i(c),a&&a(!1),!0},[i,a]),u=$8a9cb279dc87e130$export$715c682d09d639cc(o),l=React.useCallback(c=>{c.target===c.currentTarget&&document.activeElement===c.target&&(n&&n(c),a&&a(!0),u(c))},[a,n,u]);return{focusProps:{onFocus:!t&&(n||a||i)?l:void 0,onBlur:!t&&(i||a)?o:void 0}}}let $507fabe10e71c6fb$var$currentModality=null,$507fabe10e71c6fb$var$changeHandlers=new Set,$507fabe10e71c6fb$export$d90243b58daecda7=new Map,$507fabe10e71c6fb$var$hasEventBeforeFocus=!1,$507fabe10e71c6fb$var$hasBlurredWindowRecently=!1;function $507fabe10e71c6fb$var$triggerChangeHandlers(e,t){for(let n of $507fabe10e71c6fb$var$changeHandlers)n(e,t)}function $507fabe10e71c6fb$var$isValidKey(e){return!(e.metaKey||!$c87311424ea30a05$export$9ac100e40613ea10()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function $507fabe10e71c6fb$var$handleKeyboardEvent(e){$507fabe10e71c6fb$var$hasEventBeforeFocus=!0,$507fabe10e71c6fb$var$isValidKey(e)&&($507fabe10e71c6fb$var$currentModality="keyboard",$507fabe10e71c6fb$var$triggerChangeHandlers("keyboard",e))}function $507fabe10e71c6fb$var$handlePointerEvent(e){$507fabe10e71c6fb$var$currentModality="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&($507fabe10e71c6fb$var$hasEventBeforeFocus=!0,$507fabe10e71c6fb$var$triggerChangeHandlers("pointer",e))}function $507fabe10e71c6fb$var$handleClickEvent(e){$6a7db85432448f7f$export$60278871457622de(e)&&($507fabe10e71c6fb$var$hasEventBeforeFocus=!0,$507fabe10e71c6fb$var$currentModality="virtual")}function $507fabe10e71c6fb$var$handleFocusEvent(e){e.target===window||e.target===document||(!$507fabe10e71c6fb$var$hasEventBeforeFocus&&!$507fabe10e71c6fb$var$hasBlurredWindowRecently&&($507fabe10e71c6fb$var$currentModality="virtual",$507fabe10e71c6fb$var$triggerChangeHandlers("virtual",e)),$507fabe10e71c6fb$var$hasEventBeforeFocus=!1,$507fabe10e71c6fb$var$hasBlurredWindowRecently=!1)}function $507fabe10e71c6fb$var$handleWindowBlur(){$507fabe10e71c6fb$var$hasEventBeforeFocus=!1,$507fabe10e71c6fb$var$hasBlurredWindowRecently=!0}function $507fabe10e71c6fb$var$setupGlobalFocusEvents(e){if(typeof window>"u"||$507fabe10e71c6fb$export$d90243b58daecda7.get($431fbd86ca7dc216$export$f21a1ffae260145a(e)))return;const t=$431fbd86ca7dc216$export$f21a1ffae260145a(e),n=$431fbd86ca7dc216$export$b204af158042fbac(e);let i=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){$507fabe10e71c6fb$var$hasEventBeforeFocus=!0,i.apply(this,arguments)},n.addEventListener("keydown",$507fabe10e71c6fb$var$handleKeyboardEvent,!0),n.addEventListener("keyup",$507fabe10e71c6fb$var$handleKeyboardEvent,!0),n.addEventListener("click",$507fabe10e71c6fb$var$handleClickEvent,!0),t.addEventListener("focus",$507fabe10e71c6fb$var$handleFocusEvent,!0),t.addEventListener("blur",$507fabe10e71c6fb$var$handleWindowBlur,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",$507fabe10e71c6fb$var$handlePointerEvent,!0),n.addEventListener("pointermove",$507fabe10e71c6fb$var$handlePointerEvent,!0),n.addEventListener("pointerup",$507fabe10e71c6fb$var$handlePointerEvent,!0)):(n.addEventListener("mousedown",$507fabe10e71c6fb$var$handlePointerEvent,!0),n.addEventListener("mousemove",$507fabe10e71c6fb$var$handlePointerEvent,!0),n.addEventListener("mouseup",$507fabe10e71c6fb$var$handlePointerEvent,!0)),t.addEventListener("beforeunload",()=>{$507fabe10e71c6fb$var$tearDownWindowFocusTracking(e)},{once:!0}),$507fabe10e71c6fb$export$d90243b58daecda7.set(t,{focus:i})}const $507fabe10e71c6fb$var$tearDownWindowFocusTracking=(e,t)=>{const n=$431fbd86ca7dc216$export$f21a1ffae260145a(e),i=$431fbd86ca7dc216$export$b204af158042fbac(e);t&&i.removeEventListener("DOMContentLoaded",t),$507fabe10e71c6fb$export$d90243b58daecda7.has(n)&&(n.HTMLElement.prototype.focus=$507fabe10e71c6fb$export$d90243b58daecda7.get(n).focus,i.removeEventListener("keydown",$507fabe10e71c6fb$var$handleKeyboardEvent,!0),i.removeEventListener("keyup",$507fabe10e71c6fb$var$handleKeyboardEvent,!0),i.removeEventListener("click",$507fabe10e71c6fb$var$handleClickEvent,!0),n.removeEventListener("focus",$507fabe10e71c6fb$var$handleFocusEvent,!0),n.removeEventListener("blur",$507fabe10e71c6fb$var$handleWindowBlur,!1),typeof PointerEvent<"u"?(i.removeEventListener("pointerdown",$507fabe10e71c6fb$var$handlePointerEvent,!0),i.removeEventListener("pointermove",$507fabe10e71c6fb$var$handlePointerEvent,!0),i.removeEventListener("pointerup",$507fabe10e71c6fb$var$handlePointerEvent,!0)):(i.removeEventListener("mousedown",$507fabe10e71c6fb$var$handlePointerEvent,!0),i.removeEventListener("mousemove",$507fabe10e71c6fb$var$handlePointerEvent,!0),i.removeEventListener("mouseup",$507fabe10e71c6fb$var$handlePointerEvent,!0)),$507fabe10e71c6fb$export$d90243b58daecda7.delete(n))};function $507fabe10e71c6fb$export$2f1888112f558a7d(e){const t=$431fbd86ca7dc216$export$b204af158042fbac(e);let n;return t.readyState!=="loading"?$507fabe10e71c6fb$var$setupGlobalFocusEvents(e):(n=()=>{$507fabe10e71c6fb$var$setupGlobalFocusEvents(e)},t.addEventListener("DOMContentLoaded",n)),()=>$507fabe10e71c6fb$var$tearDownWindowFocusTracking(e,n)}typeof document<"u"&&$507fabe10e71c6fb$export$2f1888112f558a7d();function $507fabe10e71c6fb$export$630ff653c5ada6a9(){return $507fabe10e71c6fb$var$currentModality}function $507fabe10e71c6fb$export$8397ddfc504fdb9a(e){$507fabe10e71c6fb$var$currentModality=e,$507fabe10e71c6fb$var$triggerChangeHandlers(e,null)}function $93925083ecbb358c$export$48d1ea6320830260(e){if(!e)return;let t=!0;return n=>{let i={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(i),t&&n.stopPropagation()}}function $46d819fcbaf35654$export$8f71654801c2f7cd(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:$93925083ecbb358c$export$48d1ea6320830260(e.onKeyDown),onKeyUp:$93925083ecbb358c$export$48d1ea6320830260(e.onKeyUp)}}}function $6a99195332edec8b$export$80f3e147d781571c(e){const t=$431fbd86ca7dc216$export$b204af158042fbac(e);if($507fabe10e71c6fb$export$630ff653c5ada6a9()==="virtual"){let n=t.activeElement;$bbed8b41f857bcc0$export$24490316f764c430(()=>{t.activeElement===n&&e.isConnected&&$7215afc6de606d6b$export$de79e2c695e052f3(e)})}else $7215afc6de606d6b$export$de79e2c695e052f3(e)}function $9bf71ea28793e738$var$isElementInScope(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}class $9bf71ea28793e738$var$Tree{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,i){let a=this.fastMap.get(n??null);if(!a)return;let o=new $9bf71ea28793e738$var$TreeNode({scopeRef:t});a.addChild(o),o.parent=a,this.fastMap.set(t,o),i&&(o.nodeToRestore=i)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let i=n.parent;for(let o of this.traverse())o!==n&&n.nodeToRestore&&o.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&$9bf71ea28793e738$var$isElementInScope(o.nodeToRestore,n.scopeRef.current)&&(o.nodeToRestore=n.nodeToRestore);let a=n.children;i&&(i.removeChild(n),a.size>0&&a.forEach(o=>i&&i.addChild(o))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new $9bf71ea28793e738$var$Tree;var i;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(i=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&i!==void 0?i:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new $9bf71ea28793e738$var$TreeNode({scopeRef:null}),this.fastMap.set(null,this.root)}}class $9bf71ea28793e738$var$TreeNode{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new $9bf71ea28793e738$var$Tree;let $e6afbd83fe6ebbd2$var$FocusableContext=React.createContext(null);function $e6afbd83fe6ebbd2$var$useFocusableContext(e){let t=React.useContext($e6afbd83fe6ebbd2$var$FocusableContext)||{};$e7801be82b4b2a53$export$4debdb1a3f0fa79e(t,e);let{ref:n,...i}=t;return i}function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(e,t){let{focusProps:n}=$a1ea59d68270f0dd$export$f8168d8dd8fd66e6(e),{keyboardProps:i}=$46d819fcbaf35654$export$8f71654801c2f7cd(e),a=$3ef42575df84b30b$export$9d1611c77c2fe928(n,i),o=$e6afbd83fe6ebbd2$var$useFocusableContext(t),u=e.isDisabled?{}:o,l=React.useRef(e.autoFocus);return React.useEffect(()=>{l.current&&t.current&&$6a99195332edec8b$export$80f3e147d781571c(t.current),l.current=!1},[t]),{focusableProps:$3ef42575df84b30b$export$9d1611c77c2fe928({...a,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},u)}}function $e93e671b31057976$export$b8473d3665f3a75a(e,t,n){let{validationBehavior:i,focus:a}=e;$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(i==="native"&&n?.current){let c=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(c),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation($e93e671b31057976$var$getNativeValidity(n.current))}});let o=$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{t.resetValidation()}),u=$8ae05eaa5c114e9c$export$7f54fc3180508a52(c=>{var f;t.displayValidation.isInvalid||t.commitValidation();let d=n==null||(f=n.current)===null||f===void 0?void 0:f.form;if(!c.defaultPrevented&&n&&d&&$e93e671b31057976$var$getFirstInvalidInput(d)===n.current){var T;a?a():(T=n.current)===null||T===void 0||T.focus(),$507fabe10e71c6fb$export$8397ddfc504fdb9a("keyboard")}c.preventDefault()}),l=$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{t.commitValidation()});React.useEffect(()=>{let c=n?.current;if(!c)return;let f=c.form;return c.addEventListener("invalid",u),c.addEventListener("change",l),f?.addEventListener("reset",o),()=>{c.removeEventListener("invalid",u),c.removeEventListener("change",l),f?.removeEventListener("reset",o)}},[n,u,l,o,i])}function $e93e671b31057976$var$getValidity(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function $e93e671b31057976$var$getNativeValidity(e){return{isInvalid:!e.validity.valid,validationDetails:$e93e671b31057976$var$getValidity(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function $e93e671b31057976$var$getFirstInvalidInput(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const $e5be200c675c3b3a$export$aca958c65c314e6c={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},$e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE={...$e5be200c675c3b3a$export$aca958c65c314e6c,customError:!0,valid:!1},$e5be200c675c3b3a$export$dad6ae84456c676a={isInvalid:!1,validationDetails:$e5be200c675c3b3a$export$aca958c65c314e6c,validationErrors:[]},$e5be200c675c3b3a$export$571b5131b7e65c11=React.createContext({}),$e5be200c675c3b3a$export$a763b9476acd3eb="__formValidationState"+Date.now();function $e5be200c675c3b3a$export$fc1a364ae1f3ff10(e){if(e[$e5be200c675c3b3a$export$a763b9476acd3eb]){let{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:a,commitValidation:o}=e[$e5be200c675c3b3a$export$a763b9476acd3eb];return{realtimeValidation:t,displayValidation:n,updateValidation:i,resetValidation:a,commitValidation:o}}return $e5be200c675c3b3a$var$useFormValidationStateImpl(e)}function $e5be200c675c3b3a$var$useFormValidationStateImpl(e){let{isInvalid:t,validationState:n,name:i,value:a,builtinValidation:o,validate:u,validationBehavior:l="aria"}=e;n&&(t||(t=n==="invalid"));let c=t?{isInvalid:!0,validationErrors:[],validationDetails:$e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE}:null,f=React.useMemo(()=>$e5be200c675c3b3a$var$getValidationResult($e5be200c675c3b3a$var$runValidate(u,a)),[u,a]);o?.validationDetails.valid&&(o=null);let d=React.useContext($e5be200c675c3b3a$export$571b5131b7e65c11),T=React.useMemo(()=>i?Array.isArray(i)?i.flatMap(e1=>$e5be200c675c3b3a$var$asArray(d[e1])):$e5be200c675c3b3a$var$asArray(d[i]):[],[d,i]),[m,y]=React.useState(d),[S,b]=React.useState(!1);d!==m&&(y(d),b(!1));let L=React.useMemo(()=>$e5be200c675c3b3a$var$getValidationResult(S?[]:T),[S,T]),v=React.useRef($e5be200c675c3b3a$export$dad6ae84456c676a),[A,_]=React.useState($e5be200c675c3b3a$export$dad6ae84456c676a),I=React.useRef($e5be200c675c3b3a$export$dad6ae84456c676a),C=()=>{if(!O)return;B(!1);let e1=f||o||v.current;$e5be200c675c3b3a$var$isEqualValidation(e1,I.current)||(I.current=e1,_(e1))},[O,B]=React.useState(!1);return React.useEffect(C),{realtimeValidation:c||L||f||o||$e5be200c675c3b3a$export$dad6ae84456c676a,displayValidation:l==="native"?c||L||A:c||L||f||o||A,updateValidation(e1){l==="aria"&&!$e5be200c675c3b3a$var$isEqualValidation(A,e1)?_(e1):v.current=e1},resetValidation(){let e1=$e5be200c675c3b3a$export$dad6ae84456c676a;$e5be200c675c3b3a$var$isEqualValidation(e1,I.current)||(I.current=e1,_(e1)),l==="native"&&B(!1),b(!0)},commitValidation(){l==="native"&&B(!0),b(!0)}}}function $e5be200c675c3b3a$var$asArray(e){return e?Array.isArray(e)?e:[e]:[]}function $e5be200c675c3b3a$var$runValidate(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return $e5be200c675c3b3a$var$asArray(n)}return[]}function $e5be200c675c3b3a$var$getValidationResult(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:$e5be200c675c3b3a$var$CUSTOM_VALIDITY_STATE}:null}function $e5be200c675c3b3a$var$isEqualValidation(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,i)=>n===t.validationErrors[i])&&Object.entries(e.validationDetails).every(([n,i])=>t.validationDetails[n]===i)}function $d191a55c9702f145$export$8467354a121f1b9f(e){let{id:t,label:n,"aria-labelledby":i,"aria-label":a,labelElementType:o="label"}=e;t=$bdb11010cef70236$export$f680877a34711e37(t);let u=$bdb11010cef70236$export$f680877a34711e37(),l={};n?(i=i?`${u} ${i}`:u,l={id:u,htmlFor:o==="label"?t:void 0}):!i&&!a&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=$313b98861ee5dd6c$export$d6875122194c7b44({id:t,"aria-label":a,"aria-labelledby":i});return{labelProps:l,fieldProps:c}}function $2baaea4c71418dea$export$294aa081a6c6f55d(e){let{description:t,errorMessage:n,isInvalid:i,validationState:a}=e,{labelProps:o,fieldProps:u}=$d191a55c9702f145$export$8467354a121f1b9f(e),l=$bdb11010cef70236$export$b4cc09c592e8fdb8([!!t,!!n,i,a]),c=$bdb11010cef70236$export$b4cc09c592e8fdb8([!!t,!!n,i,a]);return u=$3ef42575df84b30b$export$9d1611c77c2fe928(u,{"aria-describedby":[l,c,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:u,descriptionProps:{id:l},errorMessageProps:{id:c}}}function $2d73ec29415bd339$export$712718f7aec83d5(e,t){let{inputElementType:n="input",isDisabled:i=!1,isRequired:a=!1,isReadOnly:o=!1,type:u="text",validationBehavior:l="aria"}=e,[c,f]=$458b0a5536c1a7cf$export$40bfa8c7b0832715(e.value,e.defaultValue||"",e.onChange),{focusableProps:d}=$e6afbd83fe6ebbd2$export$4c014de7c8940b4c(e,t),T=$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...e,value:c}),{isInvalid:m,validationErrors:y,validationDetails:S}=T.displayValidation,{labelProps:b,fieldProps:L,descriptionProps:v,errorMessageProps:A}=$2baaea4c71418dea$export$294aa081a6c6f55d({...e,isInvalid:m,errorMessage:e.errorMessage||y}),_=$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,{labelable:!0});const I={type:u,pattern:e.pattern};return $99facab73266f662$export$5add1d006293d136(t,c,f),$e93e671b31057976$export$b8473d3665f3a75a(e,T,t),React.useEffect(()=>{if(t.current instanceof $431fbd86ca7dc216$export$f21a1ffae260145a(t.current).HTMLTextAreaElement){let C=t.current;Object.defineProperty(C,"defaultValue",{get:()=>C.value,set:()=>{},configurable:!0})}},[t]),{labelProps:b,inputProps:$3ef42575df84b30b$export$9d1611c77c2fe928(_,n==="input"&&I,{disabled:i,readOnly:o,required:a&&l==="native","aria-required":a&&l==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:c,onChange:C=>f(C.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...L}),descriptionProps:v,errorMessageProps:A,isInvalid:m,validationErrors:y,validationDetails:S}}const isLastTypedKeyEnter=e=>e.charCodeAt(e.length-1)===10,TextAreaComponent=e=>{const[t,n]=React.useState(""),i=()=>{m.current&&(m.current.style.height=m.current.scrollHeight+"px")},a=()=>{m.current&&(m.current.style.height="48px")},o=I=>{n(I)};React.useEffect(i,[t]);let{label:u,SubmitComponent:l,onSubmit:c,isLoadingStream:f,LoadingComponent:d,onPressLoadingButton:T}=e,m=React.useRef(null),{labelProps:y,inputProps:S}=$2d73ec29415bd339$export$712718f7aec83d5({...e,inputElementType:"textarea"},m);const b=I=>{isLastTypedKeyEnter(I.target.value)||o(I.target.value)},L=I=>{(I.code==="Enter"||I.code==="NumpadEnter")&&(I.shiftKey?o(t+`
85
- `):A())};let v=e.isDisabled;e.shouldDisableIfInputIsEmpty&&(v=e.isDisabled||t.length===0);const A=()=>{a(),c&&c(t),o("")},_=()=>{T&&T()};return jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column"},className:`${e.classNameContainer} w-fu`,children:[jsxRuntime.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[jsxRuntime.jsx("label",{...y,className:e.classNameLabel,children:u}),jsxRuntime.jsx("textarea",{...S,ref:m,className:`${e.classNameTextarea} p-3`,onChange:b,value:t,rows:1,style:{overflow:"hidden",outlineColor:"#a8a8a8",border:"none",outline:"none",width:"calc(100% - 30px)",resize:"none"},onKeyDown:L})]}),!f&&l&&jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsx(l,{onSubmitButton:A,isDisabled:v})}),f&&d&&jsxRuntime.jsx("div",{className:"relative",children:jsxRuntime.jsx(d,{onPressLoadingButton:_})})]})},ArrowButton=({onSubmitButton:e,isDisabled:t})=>jsxRuntime.jsx("div",{children:jsxRuntime.jsx("button",{className:`absolute
69
+ `,children:P.jsx($a,{facet:e.agent.display[Ge.AgentDisplayFacetRoleType.ASSISTANT]})})},ib=({content:e,metaData:t})=>{const{chatlineLabelAssistantTranslation:n}=Ya();return P.jsxs("div",{className:"flex justify-between mt-8 px-3",children:[P.jsx("div",{className:"w-10 mr-3 mt-6",children:P.jsx("div",{children:P.jsx(ab,{})})}),P.jsxs("div",{className:`w-full p-4 rounded-lg transition-all duration-300 ${t?.isErrorMessage?"bg-red-100 border-l-4 border-red-400 text-red-800 shadow-md animate-fade-in":"bg-white text-gray-800"}`,children:[P.jsx("p",{className:"font-bold",children:n}),P.jsx("div",{children:P.jsx(_o,{rehypePlugins:[sl],children:e&&e})})]})]})},ub=({userType:e,content:t,metaData:n})=>{const r=e==="user",a=e==="assistant";return P.jsxs(P.Fragment,{children:[r&&P.jsx(rb,{content:t,metaData:n}),a&&P.jsx(ib,{content:t,metaData:n})]})};function sb(e,t,n){let[r,a]=N.useState(e||t),i=N.useRef(e!==void 0),u=e!==void 0;N.useEffect(()=>{let c=i.current;c!==u&&console.warn(`WARN: A component changed from ${c?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}.`),i.current=u},[u]);let o=u?e:r,l=N.useCallback((c,...f)=>{let d=(m,...h)=>{n&&(Object.is(o,m)||n(m,...h)),u||(o=m)};typeof c=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),a((h,...y)=>{let A=c(u?o:h,...y);return d(A,...f),u?h:A})):(u||a(c),d(c,...f))},[u,o,n]);return[o,l]}const ar={prefix:String(Math.round(Math.random()*1e10)),current:0},ol=N.createContext(ar),ob=N.createContext(!1);let lb=!!(typeof window<"u"&&window.document&&window.document.createElement),Kr=new WeakMap;function cb(e=!1){let t=N.useContext(ol),n=N.useRef(null);if(n.current===null&&!e){var r,a;let i=(a=N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let u=Kr.get(i);u==null?Kr.set(i,{id:t.current,state:i.memoizedState}):i.memoizedState!==u.state&&(t.current=u.id,Kr.delete(i))}n.current=++t.current}return n.current}function fb(e){let t=N.useContext(ol);t===ar&&!lb&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=cb(!!e),r=t===ar&&process.env.NODE_ENV==="test"?"react-aria":`react-aria${t.prefix}`;return e||`${r}-${n}`}function db(e){let t=N.useId(),[n]=N.useState(bb()),r=n||process.env.NODE_ENV==="test"?"react-aria":`react-aria${ar.prefix}`;return e||`${r}-${t}`}const hb=typeof N.useId=="function"?db:fb;function mb(){return!1}function pb(){return!0}function Eb(e){return()=>{}}function bb(){return typeof N.useSyncExternalStore=="function"?N.useSyncExternalStore(Eb,mb,pb):N.useContext(ob)}function ll(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=ll(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Tb(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=ll(e))&&(r&&(r+=" "),r+=t);return r}const Ut=typeof document<"u"?N.useLayoutEffect:()=>{};function kt(e){const t=N.useRef(null);return Ut(()=>{t.current=e},[e]),N.useCallback((...n)=>{const r=t.current;return r?.(...n)},[])}function gb(e){let[t,n]=N.useState(e),r=N.useRef(null),a=kt(()=>{if(!r.current)return;let u=r.current.next();if(u.done){r.current=null;return}t===u.value?a():n(u.value)});Ut(()=>{r.current&&a()});let i=kt(u=>{r.current=u(t),a()});return[t,i]}let Ab=!!(typeof window<"u"&&window.document&&window.document.createElement),ir=new Map;function ur(e){let[t,n]=N.useState(e),r=N.useRef(null),a=hb(t),i=N.useCallback(u=>{r.current=u},[]);return Ab&&ir.set(a,i),Ut(()=>{let u=a;return()=>{ir.delete(u)}},[a]),N.useEffect(()=>{let u=r.current;u&&(r.current=null,n(u))}),a}function _b(e,t){if(e===t)return e;let n=ir.get(e);if(n)return n(t),t;let r=ir.get(t);return r?(r(e),e):t}function Bu(e=[]){let t=ur(),[n,r]=gb(t),a=N.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return Ut(a,[t,a,...e]),n}function yb(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const Mn=e=>{var t;return(t=e?.ownerDocument)!==null&&t!==void 0?t:document},sr=e=>e&&"window"in e&&e.window===e?e:Mn(e).defaultView||window;function or(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let a in r){let i=t[a],u=r[a];typeof i=="function"&&typeof u=="function"&&a[0]==="o"&&a[1]==="n"&&a.charCodeAt(2)>=65&&a.charCodeAt(2)<=90?t[a]=yb(i,u):(a==="className"||a==="UNSAFE_className")&&typeof i=="string"&&typeof u=="string"?t[a]=Tb(i,u):a==="id"&&i&&u?t.id=_b(i,u):t[a]=u!==void 0?u:i}}return t}const Sb=new Set(["id"]),xb=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),Cb=new Set(["href","target","rel","download","ping","referrerPolicy"]),Ib=/^(data-.*)$/;function Nb(e,t={}){let{labelable:n,isLink:r,propNames:a}=t,i={};for(const u in e)Object.prototype.hasOwnProperty.call(e,u)&&(Sb.has(u)||n&&xb.has(u)||r&&Cb.has(u)||a?.has(u)||Ib.test(u))&&(i[u]=e[u]);return i}function Fu(e){if(Ob())e.focus({preventScroll:!0});else{let t=Lb(e);e.focus(),Rb(t)}}let Vn=null;function Ob(){if(Vn==null){Vn=!1;try{document.createElement("div").focus({get preventScroll(){return Vn=!0,!0}})}catch{}}return Vn}function Lb(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function Rb(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function vb(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Pb(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Db(){return Pb(/^Mac/i)}function kb(){return vb(/Android/i)}let Vt=new Map,Pa=new Set;function Hu(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let a=Vt.get(r.target);a||(a=new Set,Vt.set(r.target,a),r.target.addEventListener("transitioncancel",n,{once:!0})),a.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let a=Vt.get(r.target);if(a&&(a.delete(r.propertyName),a.size===0&&(r.target.removeEventListener("transitioncancel",n),Vt.delete(r.target)),Vt.size===0)){for(let i of Pa)i();Pa.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?Hu():document.addEventListener("DOMContentLoaded",Hu));function wb(e){requestAnimationFrame(()=>{Vt.size===0?e():Pa.add(e)})}function Mb(e,t){let{id:n,"aria-label":r,"aria-labelledby":a}=e;return n=ur(n),a&&r?a=[...new Set([n,...a.trim().split(/\s+/)])].join(" "):a&&(a=a.trim().split(/\s+/).join(" ")),!r&&!a&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":a}}function Bb(e,t){Ut(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function Fb(e){return e.mozInputSource===0&&e.isTrusted?!0:kb()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function Hb(e,t,n){let r=N.useRef(t),a=kt(()=>{n&&n(r.current)});N.useEffect(()=>{var i;let u=e==null||(i=e.current)===null||i===void 0?void 0:i.form;return u?.addEventListener("reset",a),()=>{u?.removeEventListener("reset",a)}},[e,a])}const Ub=N.createContext({register:()=>{}});Ub.displayName="PressResponderContext";class jb{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function $b(e){let t=N.useRef({isFocused:!1,observer:null});Ut(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=kt(r=>{e?.(r)});return N.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let a=r.target,i=u=>{t.current.isFocused=!1,a.disabled&&n(new jb("blur",u)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};a.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&a.disabled){var u;(u=t.current.observer)===null||u===void 0||u.disconnect();let o=a===document.activeElement?null:document.activeElement;a.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),a.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o}))}}),t.current.observer.observe(a,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Yb(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:a}=e;const i=N.useCallback(l=>{if(l.target===l.currentTarget)return r&&r(l),a&&a(!1),!0},[r,a]),u=$b(i),o=N.useCallback(l=>{l.target===l.currentTarget&&document.activeElement===l.target&&(n&&n(l),a&&a(!0),u(l))},[a,n,u]);return{focusProps:{onFocus:!t&&(n||a||r)?o:void 0,onBlur:!t&&(r||a)?i:void 0}}}let on=null,Gb=new Set,Cn=new Map,Mt=!1,Da=!1;function Ir(e,t){for(let n of Gb)n(e,t)}function zb(e){return!(e.metaKey||!Db()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function lr(e){Mt=!0,zb(e)&&(on="keyboard",Ir("keyboard",e))}function et(e){on="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Mt=!0,Ir("pointer",e))}function cl(e){Fb(e)&&(Mt=!0,on="virtual")}function fl(e){e.target===window||e.target===document||(!Mt&&!Da&&(on="virtual",Ir("virtual",e)),Mt=!1,Da=!1)}function dl(){Mt=!1,Da=!0}function Uu(e){if(typeof window>"u"||Cn.get(sr(e)))return;const t=sr(e),n=Mn(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Mt=!0,r.apply(this,arguments)},n.addEventListener("keydown",lr,!0),n.addEventListener("keyup",lr,!0),n.addEventListener("click",cl,!0),t.addEventListener("focus",fl,!0),t.addEventListener("blur",dl,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",et,!0),n.addEventListener("pointermove",et,!0),n.addEventListener("pointerup",et,!0)):(n.addEventListener("mousedown",et,!0),n.addEventListener("mousemove",et,!0),n.addEventListener("mouseup",et,!0)),t.addEventListener("beforeunload",()=>{hl(e)},{once:!0}),Cn.set(t,{focus:r})}const hl=(e,t)=>{const n=sr(e),r=Mn(e);t&&r.removeEventListener("DOMContentLoaded",t),Cn.has(n)&&(n.HTMLElement.prototype.focus=Cn.get(n).focus,r.removeEventListener("keydown",lr,!0),r.removeEventListener("keyup",lr,!0),r.removeEventListener("click",cl,!0),n.removeEventListener("focus",fl,!0),n.removeEventListener("blur",dl,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",et,!0),r.removeEventListener("pointermove",et,!0),r.removeEventListener("pointerup",et,!0)):(r.removeEventListener("mousedown",et,!0),r.removeEventListener("mousemove",et,!0),r.removeEventListener("mouseup",et,!0)),Cn.delete(n))};function Vb(e){const t=Mn(e);let n;return t.readyState!=="loading"?Uu(e):(n=()=>{Uu(e)},t.addEventListener("DOMContentLoaded",n)),()=>hl(e,n)}typeof document<"u"&&Vb();function qb(){return on}function Wb(e){on=e,Ir(e,null)}function ju(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function Xb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:ju(e.onKeyDown),onKeyUp:ju(e.onKeyUp)}}}function Qb(e){const t=Mn(e);if(qb()==="virtual"){let n=t.activeElement;wb(()=>{t.activeElement===n&&e.isConnected&&Fu(e)})}else Fu(e)}function Kb(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}class li{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let a=this.fastMap.get(n??null);if(!a)return;let i=new $u({scopeRef:t});a.addChild(i),i.parent=a,this.fastMap.set(t,i),r&&(i.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let i of this.traverse())i!==n&&n.nodeToRestore&&i.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Kb(i.nodeToRestore,n.scopeRef.current)&&(i.nodeToRestore=n.nodeToRestore);let a=n.children;r&&(r.removeChild(n),a.size>0&&a.forEach(i=>r&&r.addChild(i))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new li;var r;for(let a of this.traverse())n.addTreeNode(a.scopeRef,(r=(t=a.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,a.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new $u({scopeRef:null}),this.fastMap.set(null,this.root)}}class $u{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}new li;let Zb=N.createContext(null);function Jb(e){let t=N.useContext(Zb)||{};Bb(t,e);let{ref:n,...r}=t;return r}function eT(e,t){let{focusProps:n}=Yb(e),{keyboardProps:r}=Xb(e),a=or(n,r),i=Jb(t),u=e.isDisabled?{}:i,o=N.useRef(e.autoFocus);return N.useEffect(()=>{o.current&&t.current&&Qb(t.current),o.current=!1},[t]),{focusableProps:or({...a,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},u)}}function tT(e,t,n){let{validationBehavior:r,focus:a}=e;Ut(()=>{if(r==="native"&&n?.current){let l=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(l),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(rT(n.current))}});let i=kt(()=>{t.resetValidation()}),u=kt(l=>{var c;t.displayValidation.isInvalid||t.commitValidation();let f=n==null||(c=n.current)===null||c===void 0?void 0:c.form;if(!l.defaultPrevented&&n&&f&&aT(f)===n.current){var d;a?a():(d=n.current)===null||d===void 0||d.focus(),Wb("keyboard")}l.preventDefault()}),o=kt(()=>{t.commitValidation()});N.useEffect(()=>{let l=n?.current;if(!l)return;let c=l.form;return l.addEventListener("invalid",u),l.addEventListener("change",o),c?.addEventListener("reset",i),()=>{l.removeEventListener("invalid",u),l.removeEventListener("change",o),c?.removeEventListener("reset",i)}},[n,u,o,i,r])}function nT(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function rT(e){return{isInvalid:!e.validity.valid,validationDetails:nT(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function aT(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}const ml={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},pl={...ml,customError:!0,valid:!1},mn={isInvalid:!1,validationDetails:ml,validationErrors:[]},iT=N.createContext({}),Yu="__formValidationState"+Date.now();function uT(e){if(e[Yu]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}=e[Yu];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:a,commitValidation:i}}return sT(e)}function sT(e){let{isInvalid:t,validationState:n,name:r,value:a,builtinValidation:i,validate:u,validationBehavior:o="aria"}=e;n&&(t||(t=n==="invalid"));let l=t?{isInvalid:!0,validationErrors:[],validationDetails:pl}:null,c=N.useMemo(()=>Gu(oT(u,a)),[u,a]);i?.validationDetails.valid&&(i=null);let f=N.useContext(iT),d=N.useMemo(()=>r?Array.isArray(r)?r.flatMap(Y=>ka(f[Y])):ka(f[r]):[],[f,r]),[m,h]=N.useState(f),[y,A]=N.useState(!1);f!==m&&(h(f),A(!1));let R=N.useMemo(()=>Gu(y?[]:d),[y,d]),S=N.useRef(mn),[v,O]=N.useState(mn),w=N.useRef(mn),C=()=>{if(!I)return;W(!1);let Y=c||i||S.current;Zr(Y,w.current)||(w.current=Y,O(Y))},[I,W]=N.useState(!1);return N.useEffect(C),{realtimeValidation:l||R||c||i||mn,displayValidation:o==="native"?l||R||v:l||R||c||i||v,updateValidation(Y){o==="aria"&&!Zr(v,Y)?O(Y):S.current=Y},resetValidation(){let Y=mn;Zr(Y,w.current)||(w.current=Y,O(Y)),o==="native"&&W(!1),A(!0)},commitValidation(){o==="native"&&W(!0),A(!0)}}}function ka(e){return e?Array.isArray(e)?e:[e]:[]}function oT(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return ka(n)}return[]}function Gu(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:pl}:null}function Zr(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}function lT(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":a,labelElementType:i="label"}=e;t=ur(t);let u=ur(),o={};n?(r=r?`${u} ${r}`:u,o={id:u,htmlFor:i==="label"?t:void 0}):!r&&!a&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let l=Mb({id:t,"aria-label":a,"aria-labelledby":r});return{labelProps:o,fieldProps:l}}function cT(e){let{description:t,errorMessage:n,isInvalid:r,validationState:a}=e,{labelProps:i,fieldProps:u}=lT(e),o=Bu([!!t,!!n,r,a]),l=Bu([!!t,!!n,r,a]);return u=or(u,{"aria-describedby":[o,l,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:i,fieldProps:u,descriptionProps:{id:o},errorMessageProps:{id:l}}}function fT(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:a=!1,isReadOnly:i=!1,type:u="text",validationBehavior:o="aria"}=e,[l,c]=sb(e.value,e.defaultValue||"",e.onChange),{focusableProps:f}=eT(e,t),d=uT({...e,value:l}),{isInvalid:m,validationErrors:h,validationDetails:y}=d.displayValidation,{labelProps:A,fieldProps:R,descriptionProps:S,errorMessageProps:v}=cT({...e,isInvalid:m,errorMessage:e.errorMessage||h}),O=Nb(e,{labelable:!0});const w={type:u,pattern:e.pattern};return Hb(t,l,c),tT(e,d,t),N.useEffect(()=>{if(t.current instanceof sr(t.current).HTMLTextAreaElement){let C=t.current;Object.defineProperty(C,"defaultValue",{get:()=>C.value,set:()=>{},configurable:!0})}},[t]),{labelProps:A,inputProps:or(O,n==="input"&&w,{disabled:r,readOnly:i,required:a&&o==="native","aria-required":a&&o==="aria"||void 0,"aria-invalid":m||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:l,onChange:C=>c(C.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...f,...R}),descriptionProps:S,errorMessageProps:v,isInvalid:m,validationErrors:h,validationDetails:y}}const dT=e=>e.charCodeAt(e.length-1)===10,hT=e=>{const[t,n]=N.useState(""),r=()=>{m.current&&(m.current.style.height=m.current.scrollHeight+"px")},a=()=>{m.current&&(m.current.style.height="48px")},i=w=>{n(w)};N.useEffect(r,[t]);let{label:u,SubmitComponent:o,onSubmit:l,isLoadingStream:c,LoadingComponent:f,onPressLoadingButton:d}=e,m=N.useRef(null),{labelProps:h,inputProps:y}=fT({...e,inputElementType:"textarea"},m);const A=w=>{dT(w.target.value)||i(w.target.value)},R=w=>{(w.code==="Enter"||w.code==="NumpadEnter")&&(w.shiftKey?i(t+`
70
+ `):v())};let S=e.isDisabled;e.shouldDisableIfInputIsEmpty&&(S=e.isDisabled||t.length===0);const v=()=>{a(),l&&l(t),i("")},O=()=>{d&&d()};return P.jsxs("div",{style:{display:"flex",flexDirection:"column"},className:`${e.classNameContainer} w-fu`,children:[P.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[P.jsx("label",{...h,className:e.classNameLabel,children:u}),P.jsx("textarea",{...y,ref:m,className:`${e.classNameTextarea} p-3`,onChange:A,value:t,rows:1,style:{overflow:"hidden",outlineColor:"#a8a8a8",border:"none",outline:"none",width:"calc(100% - 30px)",resize:"none"},onKeyDown:R})]}),!c&&o&&P.jsx("div",{className:"relative",children:P.jsx(o,{onSubmitButton:v,isDisabled:S})}),c&&f&&P.jsx("div",{className:"relative",children:P.jsx(f,{onPressLoadingButton:O})})]})},mT=({onSubmitButton:e,isDisabled:t})=>P.jsx("div",{children:P.jsx("button",{className:`absolute
86
71
  bg-black
87
72
  md:bottom-2
88
73
  md:right-3
@@ -98,19 +83,19 @@ i.goToAndStop(b-i.firstFrame-1,!0)}S.type==="loop"&&(d===null||d!==S.frames||i.i
98
83
  rounded-lg
99
84
  dark:border-white
100
85
  dark:bg-white
101
- transition-colors`,"data-testid":"send-button",onClick:e,disabled:t,children:jsxRuntime.jsx("span",{className:"","data-state":"closed",children:jsxRuntime.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-white dark:text-black",children:jsxRuntime.jsx("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}),containsOpeningTag=e=>/(\[.*|\!\[.*)$/.test(e),containsClosingTag=e=>/\)/.test(e);var CONSOLE_BEHAVIORS=(e=>(e.GET_DISCUSSION_ID="/id",e))(CONSOLE_BEHAVIORS||{});const isConsoleMessage=e=>!!e.startsWith("/"),handleConsoleMessage=(e,t)=>e===CONSOLE_BEHAVIORS.GET_DISCUSSION_ID?t?`Votre ID de discussion est ${t}`:"Votre ID de discussion n'est pas encore défini. Envoyez un premier message pour que ce soit le cas.":`La commande ${e} n'est pas prise en compte.`;var OutputStreamTypesEnum=(e=>(e.OUTPUT_STREAM_TEXT_TYPE="text",e.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE="number_of_steps",e.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE="current_step_number",e.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE="current_step_name",e))(OutputStreamTypesEnum||{});class StreamHandler{constructor(){}static transformStringifiedObjectIntoArrayOfObjects=t=>{const i=t.split("}").map(u=>u.startsWith("{")?u+="}":null),a=i.filter(u=>!!u);let o;try{o=a.map(u=>JSON.parse(u))}catch{console.warn("Could not parse the objects. Objects received :"),console.warn("Initial objects :",t),console.warn("objectsCompleted :",i),console.warn("objectsCleaned :",a)}return o};static isObjectOutputstreamTextDTO=t=>t.type===OutputStreamTypesEnum.OUTPUT_STREAM_TEXT_TYPE;static isObjectOutputstreamLoadingNumberOfStepsDTO=t=>t.type===OutputStreamTypesEnum.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE;static isObjectOutputstreamLoadingCurrentStepNumberDTO=t=>t.type===OutputStreamTypesEnum.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE;static isObjectOutputstreamLoadingCurrentStepNameDTO=t=>t.type===OutputStreamTypesEnum.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE;static containsObjectWithLastAnswerToTrue=t=>{for(const n of t)if(this.isObjectOutputstreamTextDTO(n)&&n.isLastAnswer)return!0;return!1}}const useTranslationLoadingPart=()=>{const e=useIntl(),t=e.formatMessage({defaultMessage:"Search",id:"chatbot.chatline.loading.function.search"}),n=e.formatMessage({defaultMessage:"Looking into the cavern",id:"chatbot.chatline.loading.function.extractProductName"}),i=e.formatMessage({defaultMessage:"Consulting the shadocks",id:"chatbot.chatline.loading.function.suggestProductName"}),a=e.formatMessage({defaultMessage:"Looking for ziboublis",id:"chatbot.chatline.loading.function.criteriaDefinition"}),o=e.formatMessage({defaultMessage:"Searching Stock",id:"chatbot.chatline.loading.function.searchStock"}),u=e.formatMessage({defaultMessage:"Step",id:"chatbot.chatline.loading.function.step"}),l=e.formatMessage({defaultMessage:"I'm looking for products",id:"chatbot.chatline.loading.function.genericSearchMessage"}),c=e.formatMessage({defaultMessage:"Cancel",id:"chatbot.chatline.loading.cancel"}),f=T=>T?T.includes("ExtractProductNames")?n:T.includes("SuggestProductNames")?i:T.includes("CreateCriteriasFromProductNames")||T.includes("CreateCriteriasOrProductNamesFromDiscussion")?a:T.includes("SearchStock")?o:"":t,d=f();return{searchTranslation:t,extractProductNameTranslation:n,criteriaDefinitionTranslation:a,searchStockTranslation:o,stepTranslation:u,getFunctionTranslated:f,defaultStartingStep:d,lookingForProductTranslation:l,cancelTranslation:c}},Search=({})=>{const{companySettings:e}=React.useContext(CompanySettingsContext);return jsxRuntime.jsx("div",{className:`search
86
+ transition-colors`,"data-testid":"send-button",onClick:e,disabled:t,children:P.jsx("span",{className:"","data-state":"closed",children:P.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"text-white dark:text-black",children:P.jsx("path",{d:"M7 11L12 6L17 11M12 18V7",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})})}),pT=e=>/(\[.*|\!\[.*)$/.test(e),ET=e=>/\)/.test(e);var El=(e=>(e.GET_DISCUSSION_ID="/id",e))(El||{});const bT=e=>!!e.startsWith("/"),TT=(e,t)=>e===El.GET_DISCUSSION_ID?t?`Votre ID de discussion est ${t}`:"Votre ID de discussion n'est pas encore défini. Envoyez un premier message pour que ce soit le cas.":`La commande ${e} n'est pas prise en compte.`;var En=(e=>(e.OUTPUT_STREAM_TEXT_TYPE="text",e.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE="number_of_steps",e.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE="current_step_number",e.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE="current_step_name",e))(En||{});class Gt{constructor(){}static transformStringifiedObjectIntoArrayOfObjects=t=>{const r=t.split("}").map(u=>u.startsWith("{")?u+="}":null),a=r.filter(u=>!!u);let i;try{i=a.map(u=>JSON.parse(u))}catch{console.warn("Could not parse the objects. Objects received :"),console.warn("Initial objects :",t),console.warn("objectsCompleted :",r),console.warn("objectsCleaned :",a)}return i};static isObjectOutputstreamTextDTO=t=>t.type===En.OUTPUT_STREAM_TEXT_TYPE;static isObjectOutputstreamLoadingNumberOfStepsDTO=t=>t.type===En.OUTPUT_STREAM_NUMBER_OF_STEPS_TYPE;static isObjectOutputstreamLoadingCurrentStepNumberDTO=t=>t.type===En.OUTPUT_STREAM_CURRENT_STEP_NUMBER_TYPE;static isObjectOutputstreamLoadingCurrentStepNameDTO=t=>t.type===En.OUTPUT_STREAM_CURRENT_STEP_NAME_TYPE;static containsObjectWithLastAnswerToTrue=t=>{for(const n of t)if(this.isObjectOutputstreamTextDTO(n)&&n.isLastAnswer)return!0;return!1}}const bl=()=>{const e=hr(),t=e.formatMessage({defaultMessage:"Search",id:"chatbot.chatline.loading.function.search"}),n=e.formatMessage({defaultMessage:"Looking into the cavern",id:"chatbot.chatline.loading.function.extractProductName"}),r=e.formatMessage({defaultMessage:"Consulting the shadocks",id:"chatbot.chatline.loading.function.suggestProductName"}),a=e.formatMessage({defaultMessage:"Looking for ziboublis",id:"chatbot.chatline.loading.function.criteriaDefinition"}),i=e.formatMessage({defaultMessage:"Searching Stock",id:"chatbot.chatline.loading.function.searchStock"}),u=e.formatMessage({defaultMessage:"Step",id:"chatbot.chatline.loading.function.step"}),o=e.formatMessage({defaultMessage:"I'm looking for products",id:"chatbot.chatline.loading.function.genericSearchMessage"}),l=e.formatMessage({defaultMessage:"Cancel",id:"chatbot.chatline.loading.cancel"}),c=d=>d?d.includes("ExtractProductNames")?n:d.includes("SuggestProductNames")?r:d.includes("CreateCriteriasFromProductNames")||d.includes("CreateCriteriasOrProductNamesFromDiscussion")?a:d.includes("SearchStock")?i:"":t,f=c();return{searchTranslation:t,extractProductNameTranslation:n,criteriaDefinitionTranslation:a,searchStockTranslation:i,stepTranslation:u,getFunctionTranslated:c,defaultStartingStep:f,lookingForProductTranslation:o,cancelTranslation:l}},gT=({})=>{const{companySettings:e}=N.useContext(pr);return P.jsx("div",{className:`search
102
87
  transition
103
88
  ease-in-out
104
89
  delay-50
105
90
  flex
106
91
  justify-center
107
92
  items-center
108
- `,children:jsxRuntime.jsx(FacetAssetDisplayer,{facet:e.agent.display[srcExports.AgentDisplayFacetRoleType.SEARCH]})})},LoadingPart=({loadingStatus:e,currentStepName:t,currentStepNumber:n,numberOfSteps:i})=>{const{getFunctionTranslated:a,stepTranslation:o,lookingForProductTranslation:u}=useTranslationLoadingPart();return jsxRuntime.jsx(jsxRuntime.Fragment,{children:e==="loadingIntermediaryStates"&&jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("div",{children:[jsxRuntime.jsxs("p",{className:"text-center my-2 text-lg",children:[u,"..."]}),jsxRuntime.jsx("p",{className:"text-center my-1 text-md",children:t&&`${a(t)}`}),n&&jsxRuntime.jsxs("p",{className:"text-center my-2",children:[o,jsxRuntime.jsx("span",{children:" "}),n,"/",i]})]}),jsxRuntime.jsx("div",{className:"flex justify-center",children:jsxRuntime.jsx(Search,{})})]})})},StopButton=({onPressLoadingButton:e})=>jsxRuntime.jsx("div",{children:jsxRuntime.jsx("button",{className:"absolute bg-white md:bottom-2 md:right-3 dark:hover:bg-white right-2 bottom-1.5 disabled:opacity-10 disabled:text-gray-400 enabled:bg-white text-white p-0.5 border border-white rounded-lg dark:border-white dark:bg-white transition-colors","data-testid":"send-button",onClick:e,children:jsxRuntime.jsx("span",{className:"","data-state":"closed",children:jsxRuntime.jsxs("svg",{fill:"#000000",height:"24",width:"24",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 297 297",children:[jsxRuntime.jsx("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),jsxRuntime.jsx("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),jsxRuntime.jsxs("g",{id:"SVGRepo_iconCarrier",children:[" ",jsxRuntime.jsx("path",{d:"M148.5,0C66.486,0,0,66.486,0,148.5S66.486,297,148.5,297S297,230.514,297,148.5S230.514,0,148.5,0z M213.292,190.121 c0,12.912-10.467,23.379-23.378,23.379H106.67c-12.911,0-23.378-10.467-23.378-23.379v-83.242c0-12.912,10.467-23.379,23.378-23.379 h83.244c12.911,0,23.378,10.467,23.378,23.379V190.121z"})," "]})]})})})}),useScrollingBehaviour=e=>{const t=React.useRef(null),[n,i]=React.useState(!1),a=React.useRef(!0),o=React.useRef(!1),u=React.useRef(0),l=()=>{const d=t.current,T=4;if(d){d.scrollTop<u.current-1&&(o.current=!1);const y=d.scrollHeight>d.clientHeight,S=d.scrollHeight-d.scrollTop<=d.clientHeight+T;i(y&&!S),a.current=S,u.current=d.scrollTop}},c=({smooth:d=!1,sticky:T=!1})=>{const m=t.current;T?(o.current=!0,a.current=!0):m&&m.scrollTo({top:m.scrollHeight,behavior:d?"smooth":"auto"}),m&&o.current&&m.scrollTo({top:m.scrollHeight,behavior:d?"smooth":"auto"})};return React.useEffect(()=>{l()},[e]),React.useEffect(()=>{const d=t.current;if(d)return d.addEventListener("scroll",l),l(),()=>{d.removeEventListener("scroll",l)}},[]),React.useLayoutEffect(()=>{o.current&&c({smooth:!1})},[e]),{scrollToBottom:c,removeStickyNess:()=>{o.current=!1},messagesContainerRef:t,showScrollButton:n}};let abortController=new AbortController;const ChatBox=({appToken:e,containerClassName:t})=>{e||console.log("Dev - Admin settings");const n=React.useRef(null),{placeholderTranslation:i}=useTranslationChatbox(),{conversation:a,setConversation:o}=React.useContext(chatbotInitialConversationContext),[u,l]=React.useState("notLoading"),[c,f]=React.useState(null),{defaultStartingStep:d}=useTranslationLoadingPart(),[T,m]=React.useState(null),[y,S]=React.useState(d),[b,L]=React.useState(null),{appCurrentLang:v}=React.useContext(appCurrentLangContext),_={...u!=="notLoading"||(a?.length??0)>0?{maxHeight:"100vh"}:{height:"250px"}},{scrollToBottom:I,showScrollButton:C,messagesContainerRef:O,removeStickyNess:B}=useScrollingBehaviour(a),z=X=>{o(W=>[...W,{content:X,userType:"user"}])},q=()=>{abortController.abort("cancelling"),console.log("Stream request aborted"),l("notLoading"),o(X=>X.filter(W=>!(W.content?.length===0&&W.userType==="assistant")))},e1=async X=>{l("loadingIntermediaryStates");const W=ApiService.getApiUrl(),Z={query:X,language:v.locale};o(k=>[...k,{userType:"assistant",content:""}]),requestAnimationFrame(()=>I({smooth:!1,sticky:!1})),c&&(Z.discussionId=c);const J=abortController.signal,K=ApiService.getFetchConfig({httpVerb:"POST",body:Z,contentType:"application/json",options:{signal:J}});fetch(`${W}/ai/prompt/${e}`,K).then(async k=>{const V=k?.body?.getReader(),R=new TextDecoder;let w="",D="",G=!1,Q=!1,F=null;await new ReadableStream({start(i1){return p1();function p1(){return V?.read().then(m1=>{const{done:v1,value:g1}=m1,A1=R.decode(g1),s1=StreamHandler.transformStringifiedObjectIntoArrayOfObjects(A1);StreamHandler.containsObjectWithLastAnswerToTrue(s1)&&l("loadingFinalAnswer");for(const f1 of s1)if(StreamHandler.isObjectOutputstreamTextDTO(f1)){const{content:P1,isLastAnswer:_1,streamSourceUuid:D1,shouldStopStream:T1}=f1;F&&F!==D1&&(w+='<span style="display:block;height:1rem;"></span>'),F=D1,(_1||T1)&&(Q=!0),i1.enqueue(P1),containsClosingTag(P1)?(D+=P1,w+=D,D="",G=!1):G||containsOpeningTag(P1)?(D+=P1,G=!0):w+=P1,o(d1=>{const R1=[...d1],C1=R1.length-1,N1=R1[C1];return R1[C1]={...N1,content:N1.content=w,metaData:{isErrorMessage:T1}},[...R1]})}else if(StreamHandler.isObjectOutputstreamLoadingCurrentStepNumberDTO(f1)){const{content:P1}=f1;i1.enqueue(P1),L(P1)}else if(StreamHandler.isObjectOutputstreamLoadingCurrentStepNameDTO(f1)){const{content:P1}=f1;i1.enqueue(P1),S(P1)}else if(StreamHandler.isObjectOutputstreamLoadingNumberOfStepsDTO(f1)){const{content:P1}=f1;i1.enqueue(P1),m(P1)}else console.warn(`Object not handled - ${f1}`);if(v1&&Q){i1.close(),l("notLoading"),S(d),L(null);return}return p1()})}}}).pipeTo(new WritableStream);const o1=k.headers.get("discussionId");f(o1)}).catch(()=>{console.log("Cancelling stream"),abortController=new AbortController})};return jsxRuntime.jsxs("div",{className:["relative p-2","flex flex-col min-h-0 overflow-hidden","h-auto",t??"max-w-[90%] mx-auto"].join(" "),ref:n,style:_,children:[jsxRuntime.jsxs("div",{className:"flex-1 overflow-y-auto min-h-0 messagesContainer",ref:O,children:[a.map((X,W)=>jsxRuntime.jsx(Chatline,{content:X.content,userType:X.userType,metaData:X.metaData},W)),jsxRuntime.jsx(LoadingPart,{currentStepName:y,currentStepNumber:b,loadingStatus:u,numberOfSteps:T})]}),C&&jsxRuntime.jsx("button",{onClick:()=>I({smooth:!0,sticky:!0}),className:"absolute bottom-[120px] right-4 bg-blue-500 hover:bg-blue-600 text-white p-3 rounded-full shadow-lg transition-all duration-300 z-10","aria-label":"Scroll to bottom",children:jsxRuntime.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntime.jsx("path",{d:"M12 16L6 10L7.4 8.6L12 13.2L16.6 8.6L18 10L12 16Z",fill:"currentColor"})})}),jsxRuntime.jsx("div",{className:"flex-shrink-0",children:jsxRuntime.jsx(TextAreaComponent,{classNameTextarea:"",classNameContainer:"relative mt-6 mt-3 border-slate-400 border-[1px] rounded-lg p-1",SubmitComponent:ArrowButton,isDisabled:u!=="notLoading",shouldDisableIfInputIsEmpty:!0,"aria-label":"TextArea For Bot Conversation",onSubmit:X=>{if(isConsoleMessage(X)){const W=handleConsoleMessage(X,c);z(W),B(),I({smooth:!0,sticky:!1})}else z(X),B(),I({smooth:!0,sticky:!1}),e1(X)},placeholder:i,autoFocus:!0,isLoadingStream:u==="loadingFinalAnswer"||u==="loadingIntermediaryStates",LoadingComponent:StopButton,onPressLoadingButton:q})})]})};function _extends(){return _extends=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},_extends.apply(this,arguments)}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var n={},i=Object.keys(e),a,o;for(o=0;o<i.length;o++)a=i[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},_setPrototypeOf(e,t)}function _inheritsLoose(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,_setPrototypeOf(e,t)}var propTypes={exports:{}};/*
93
+ `,children:P.jsx($a,{facet:e.agent.display[Ge.AgentDisplayFacetRoleType.SEARCH]})})},AT=({loadingStatus:e,currentStepName:t,currentStepNumber:n,numberOfSteps:r})=>{const{getFunctionTranslated:a,stepTranslation:i,lookingForProductTranslation:u}=bl();return P.jsx(P.Fragment,{children:e==="loadingIntermediaryStates"&&P.jsxs("div",{children:[P.jsxs("div",{children:[P.jsxs("p",{className:"text-center my-2 text-lg",children:[u,"..."]}),P.jsx("p",{className:"text-center my-1 text-md",children:t&&`${a(t)}`}),n&&P.jsxs("p",{className:"text-center my-2",children:[i,P.jsx("span",{children:" "}),n,"/",r]})]}),P.jsx("div",{className:"flex justify-center",children:P.jsx(gT,{})})]})})},_T=({onPressLoadingButton:e})=>P.jsx("div",{children:P.jsx("button",{className:"absolute bg-white md:bottom-2 md:right-3 dark:hover:bg-white right-2 bottom-1.5 disabled:opacity-10 disabled:text-gray-400 enabled:bg-white text-white p-0.5 border border-white rounded-lg dark:border-white dark:bg-white transition-colors","data-testid":"send-button",onClick:e,children:P.jsx("span",{className:"","data-state":"closed",children:P.jsxs("svg",{fill:"#000000",height:"24",width:"24",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 297 297",children:[P.jsx("g",{id:"SVGRepo_bgCarrier","stroke-width":"0"}),P.jsx("g",{id:"SVGRepo_tracerCarrier","stroke-linecap":"round","stroke-linejoin":"round"}),P.jsxs("g",{id:"SVGRepo_iconCarrier",children:[" ",P.jsx("path",{d:"M148.5,0C66.486,0,0,66.486,0,148.5S66.486,297,148.5,297S297,230.514,297,148.5S230.514,0,148.5,0z M213.292,190.121 c0,12.912-10.467,23.379-23.378,23.379H106.67c-12.911,0-23.378-10.467-23.378-23.379v-83.242c0-12.912,10.467-23.379,23.378-23.379 h83.244c12.911,0,23.378,10.467,23.378,23.379V190.121z"})," "]})]})})})}),yT=e=>{const t=N.useRef(null),[n,r]=N.useState(!1),a=N.useRef(!0),i=N.useRef(!1),u=N.useRef(0),o=()=>{const f=t.current,d=4;if(f){f.scrollTop<u.current-1&&(i.current=!1);const h=f.scrollHeight>f.clientHeight,y=f.scrollHeight-f.scrollTop<=f.clientHeight+d;r(h&&!y),a.current=y,u.current=f.scrollTop}},l=({smooth:f=!1,sticky:d=!1})=>{const m=t.current;d?(i.current=!0,a.current=!0):m&&m.scrollTo({top:m.scrollHeight,behavior:f?"smooth":"auto"}),m&&i.current&&m.scrollTo({top:m.scrollHeight,behavior:f?"smooth":"auto"})};return N.useEffect(()=>{o()},[e]),N.useEffect(()=>{const f=t.current;if(f)return f.addEventListener("scroll",o),o(),()=>{f.removeEventListener("scroll",o)}},[]),N.useLayoutEffect(()=>{i.current&&l({smooth:!1})},[e]),{scrollToBottom:l,removeStickyNess:()=>{i.current=!1},messagesContainerRef:t,showScrollButton:n}};let Jr=new AbortController;const Tl=({appToken:e,containerClassName:t})=>{e||console.log("Dev - Admin settings");const n=N.useRef(null),{placeholderTranslation:r}=Ya(),{conversation:a,setConversation:i}=N.useContext(Ls),[u,o]=N.useState("notLoading"),[l,c]=N.useState(null),{defaultStartingStep:f}=bl(),[d,m]=N.useState(null),[h,y]=N.useState(f),[A,R]=N.useState(null),{appCurrentLang:S}=N.useContext(Os),O={...u!=="notLoading"||(a?.length??0)>0?{maxHeight:"100vh"}:{height:"250px"}},{scrollToBottom:w,showScrollButton:C,messagesContainerRef:I,removeStickyNess:W}=yT(a),se=F=>{i(B=>[...B,{content:F,userType:"user"}])},ne=()=>{Jr.abort("cancelling"),console.log("Stream request aborted"),o("notLoading"),i(F=>F.filter(B=>!(B.content?.length===0&&B.userType==="assistant")))},Y=async F=>{o("loadingIntermediaryStates");const B=Zn.getApiUrl(),G={query:F,language:S.locale};i(oe=>[...oe,{userType:"assistant",content:""}]),requestAnimationFrame(()=>w({smooth:!1,sticky:!1})),l&&(G.discussionId=l);const $=Jr.signal,X=Zn.getFetchConfig({httpVerb:"POST",body:G,contentType:"application/json",options:{signal:$}});fetch(`${B}/ai/prompt/${e}`,X).then(async oe=>{const pe=oe?.body?.getReader(),ve=new TextDecoder;let Le="",p="",H=!1,Q=!1,T=null;await new ReadableStream({start(z){return K();function K(){return pe?.read().then(te=>{const{done:ie,value:J}=te,_e=ve.decode(J),j=Gt.transformStringifiedObjectIntoArrayOfObjects(_e);Gt.containsObjectWithLastAnswerToTrue(j)&&o("loadingFinalAnswer");for(const ke of j)if(Gt.isObjectOutputstreamTextDTO(ke)){const{content:Ce,isLastAnswer:ce,streamSourceUuid:Ie,shouldStopStream:Ee}=ke;T&&T!==Ie&&(Le+='<span style="display:block;height:1rem;"></span>'),T=Ie,(ce||Ee)&&(Q=!0),z.enqueue(Ce),ET(Ce)?(p+=Ce,Le+=p,p="",H=!1):H||pT(Ce)?(p+=Ce,H=!0):Le+=Ce,i(be=>{const Ne=[...be],Fe=Ne.length-1,we=Ne[Fe];return Ne[Fe]={...we,content:we.content=Le,metaData:{isErrorMessage:Ee}},[...Ne]})}else if(Gt.isObjectOutputstreamLoadingCurrentStepNumberDTO(ke)){const{content:Ce}=ke;z.enqueue(Ce),R(Ce)}else if(Gt.isObjectOutputstreamLoadingCurrentStepNameDTO(ke)){const{content:Ce}=ke;z.enqueue(Ce),y(Ce)}else if(Gt.isObjectOutputstreamLoadingNumberOfStepsDTO(ke)){const{content:Ce}=ke;z.enqueue(Ce),m(Ce)}else console.warn(`Object not handled - ${ke}`);if(ie&&Q){z.close(),o("notLoading"),y(f),R(null);return}return K()})}}}).pipeTo(new WritableStream);const Z=oe.headers.get("discussionId");c(Z)}).catch(()=>{console.log("Cancelling stream"),Jr=new AbortController})};return P.jsxs("div",{className:["relative p-2","flex flex-col min-h-0 overflow-hidden","h-auto",t??"max-w-[90%] mx-auto"].join(" "),ref:n,style:O,children:[P.jsxs("div",{className:"flex-1 overflow-y-auto min-h-0 messagesContainer",ref:I,children:[a.map((F,B)=>P.jsx(ub,{content:F.content,userType:F.userType,metaData:F.metaData},B)),P.jsx(AT,{currentStepName:h,currentStepNumber:A,loadingStatus:u,numberOfSteps:d})]}),C&&P.jsx("button",{onClick:()=>w({smooth:!0,sticky:!0}),className:"absolute bottom-[120px] right-4 bg-blue-500 hover:bg-blue-600 text-white p-3 rounded-full shadow-lg transition-all duration-300 z-10","aria-label":"Scroll to bottom",children:P.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:P.jsx("path",{d:"M12 16L6 10L7.4 8.6L12 13.2L16.6 8.6L18 10L12 16Z",fill:"currentColor"})})}),P.jsx("div",{className:"flex-shrink-0",children:P.jsx(hT,{classNameTextarea:"",classNameContainer:"relative mt-6 mt-3 border-slate-400 border-[1px] rounded-lg p-1",SubmitComponent:mT,isDisabled:u!=="notLoading",shouldDisableIfInputIsEmpty:!0,"aria-label":"TextArea For Bot Conversation",onSubmit:F=>{if(bT(F)){const B=TT(F,l);se(B),W(),w({smooth:!0,sticky:!1})}else se(F),W(),w({smooth:!0,sticky:!1}),Y(F)},placeholder:r,autoFocus:!0,isLoadingStream:u==="loadingFinalAnswer"||u==="loadingIntermediaryStates",LoadingComponent:_T,onPressLoadingButton:ne})})]})};function cr(){return cr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cr.apply(this,arguments)}function gl(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function wa(e,t){return wa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},wa(e,t)}function Al(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wa(e,t)}var qn={exports:{}};/*
109
94
  object-assign
110
95
  (c) Sindre Sorhus
111
96
  @license MIT
112
- */var objectAssign,hasRequiredObjectAssign;function requireObjectAssign(){if(hasRequiredObjectAssign)return objectAssign;hasRequiredObjectAssign=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function i(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function a(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var u={},l=0;l<10;l++)u["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(u).map(function(d){return u[d]});if(c.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(d){f[d]=d}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return objectAssign=a()?Object.assign:function(o,u){for(var l,c=i(o),f,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var T in l)t.call(l,T)&&(c[T]=l[T]);if(e){f=e(l);for(var m=0;m<f.length;m++)n.call(l,f[m])&&(c[f[m]]=l[f[m]])}}return c},objectAssign}var ReactPropTypesSecret_1,hasRequiredReactPropTypesSecret;function requireReactPropTypesSecret(){if(hasRequiredReactPropTypesSecret)return ReactPropTypesSecret_1;hasRequiredReactPropTypesSecret=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ReactPropTypesSecret_1=e,ReactPropTypesSecret_1}var has,hasRequiredHas;function requireHas(){return hasRequiredHas||(hasRequiredHas=1,has=Function.call.bind(Object.prototype.hasOwnProperty)),has}var checkPropTypes_1,hasRequiredCheckPropTypes;function requireCheckPropTypes(){if(hasRequiredCheckPropTypes)return checkPropTypes_1;hasRequiredCheckPropTypes=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=requireReactPropTypesSecret(),n={},i=requireHas();e=function(o){var u="Warning: "+o;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function a(o,u,l,c,f){if(process.env.NODE_ENV!=="production"){for(var d in o)if(i(o,d)){var T;try{if(typeof o[d]!="function"){var m=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}T=o[d](u,d,c,l,null,t)}catch(S){T=S}if(T&&!(T instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof T+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),T instanceof Error&&!(T.message in n)){n[T.message]=!0;var y=f?f():"";e("Failed "+l+" type: "+T.message+(y??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},checkPropTypes_1=a,checkPropTypes_1}var factoryWithTypeCheckers,hasRequiredFactoryWithTypeCheckers;function requireFactoryWithTypeCheckers(){if(hasRequiredFactoryWithTypeCheckers)return factoryWithTypeCheckers;hasRequiredFactoryWithTypeCheckers=1;var e=requireReactIs(),t=requireObjectAssign(),n=requireReactPropTypesSecret(),i=requireHas(),a=requireCheckPropTypes(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function u(){return null}return factoryWithTypeCheckers=function(l,c){var f=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function T(D){var G=D&&(f&&D[f]||D[d]);if(typeof G=="function")return G}var m="<<anonymous>>",y={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:A(),arrayOf:_,element:I(),elementType:C(),instanceOf:O,node:e1(),objectOf:z,oneOf:B,oneOfType:q,shape:W,exact:Z};function S(D,G){return D===G?D!==0||1/D===1/G:D!==D&&G!==G}function b(D,G){this.message=D,this.data=G&&typeof G=="object"?G:{},this.stack=""}b.prototype=Error.prototype;function L(D){if(process.env.NODE_ENV!=="production")var G={},Q=0;function F(o1,i1,p1,m1,v1,g1,A1){if(m1=m1||m,g1=g1||p1,A1!==n){if(c){var s1=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw s1.name="Invariant Violation",s1}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var E1=m1+":"+p1;!G[E1]&&Q<3&&(o("You are manually calling a React.PropTypes validation function for the `"+g1+"` prop on `"+m1+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),G[E1]=!0,Q++)}}return i1[p1]==null?o1?i1[p1]===null?new b("The "+v1+" `"+g1+"` is marked as required "+("in `"+m1+"`, but its value is `null`.")):new b("The "+v1+" `"+g1+"` is marked as required in "+("`"+m1+"`, but its value is `undefined`.")):null:D(i1,p1,m1,v1,g1)}var r1=F.bind(null,!1);return r1.isRequired=F.bind(null,!0),r1}function v(D){function G(Q,F,r1,o1,i1,p1){var m1=Q[F],v1=k(m1);if(v1!==D){var g1=V(m1);return new b("Invalid "+o1+" `"+i1+"` of type "+("`"+g1+"` supplied to `"+r1+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return L(G)}function A(){return L(u)}function _(D){function G(Q,F,r1,o1,i1){if(typeof D!="function")return new b("Property `"+i1+"` of component `"+r1+"` has invalid PropType notation inside arrayOf.");var p1=Q[F];if(!Array.isArray(p1)){var m1=k(p1);return new b("Invalid "+o1+" `"+i1+"` of type "+("`"+m1+"` supplied to `"+r1+"`, expected an array."))}for(var v1=0;v1<p1.length;v1++){var g1=D(p1,v1,r1,o1,i1+"["+v1+"]",n);if(g1 instanceof Error)return g1}return null}return L(G)}function I(){function D(G,Q,F,r1,o1){var i1=G[Q];if(!l(i1)){var p1=k(i1);return new b("Invalid "+r1+" `"+o1+"` of type "+("`"+p1+"` supplied to `"+F+"`, expected a single ReactElement."))}return null}return L(D)}function C(){function D(G,Q,F,r1,o1){var i1=G[Q];if(!e.isValidElementType(i1)){var p1=k(i1);return new b("Invalid "+r1+" `"+o1+"` of type "+("`"+p1+"` supplied to `"+F+"`, expected a single ReactElement type."))}return null}return L(D)}function O(D){function G(Q,F,r1,o1,i1){if(!(Q[F]instanceof D)){var p1=D.name||m,m1=w(Q[F]);return new b("Invalid "+o1+" `"+i1+"` of type "+("`"+m1+"` supplied to `"+r1+"`, expected ")+("instance of `"+p1+"`."))}return null}return L(G)}function B(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),u;function G(Q,F,r1,o1,i1){for(var p1=Q[F],m1=0;m1<D.length;m1++)if(S(p1,D[m1]))return null;var v1=JSON.stringify(D,function(A1,s1){var E1=V(s1);return E1==="symbol"?String(s1):s1});return new b("Invalid "+o1+" `"+i1+"` of value `"+String(p1)+"` "+("supplied to `"+r1+"`, expected one of "+v1+"."))}return L(G)}function z(D){function G(Q,F,r1,o1,i1){if(typeof D!="function")return new b("Property `"+i1+"` of component `"+r1+"` has invalid PropType notation inside objectOf.");var p1=Q[F],m1=k(p1);if(m1!=="object")return new b("Invalid "+o1+" `"+i1+"` of type "+("`"+m1+"` supplied to `"+r1+"`, expected an object."));for(var v1 in p1)if(i(p1,v1)){var g1=D(p1,v1,r1,o1,i1+"."+v1,n);if(g1 instanceof Error)return g1}return null}return L(G)}function q(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var G=0;G<D.length;G++){var Q=D[G];if(typeof Q!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+R(Q)+" at index "+G+"."),u}function F(r1,o1,i1,p1,m1){for(var v1=[],g1=0;g1<D.length;g1++){var A1=D[g1],s1=A1(r1,o1,i1,p1,m1,n);if(s1==null)return null;s1.data&&i(s1.data,"expectedType")&&v1.push(s1.data.expectedType)}var E1=v1.length>0?", expected one of type ["+v1.join(", ")+"]":"";return new b("Invalid "+p1+" `"+m1+"` supplied to "+("`"+i1+"`"+E1+"."))}return L(F)}function e1(){function D(G,Q,F,r1,o1){return J(G[Q])?null:new b("Invalid "+r1+" `"+o1+"` supplied to "+("`"+F+"`, expected a ReactNode."))}return L(D)}function X(D,G,Q,F,r1){return new b((D||"React class")+": "+G+" type `"+Q+"."+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r1+"`.")}function W(D){function G(Q,F,r1,o1,i1){var p1=Q[F],m1=k(p1);if(m1!=="object")return new b("Invalid "+o1+" `"+i1+"` of type `"+m1+"` "+("supplied to `"+r1+"`, expected `object`."));for(var v1 in D){var g1=D[v1];if(typeof g1!="function")return X(r1,o1,i1,v1,V(g1));var A1=g1(p1,v1,r1,o1,i1+"."+v1,n);if(A1)return A1}return null}return L(G)}function Z(D){function G(Q,F,r1,o1,i1){var p1=Q[F],m1=k(p1);if(m1!=="object")return new b("Invalid "+o1+" `"+i1+"` of type `"+m1+"` "+("supplied to `"+r1+"`, expected `object`."));var v1=t({},Q[F],D);for(var g1 in v1){var A1=D[g1];if(i(D,g1)&&typeof A1!="function")return X(r1,o1,i1,g1,V(A1));if(!A1)return new b("Invalid "+o1+" `"+i1+"` key `"+g1+"` supplied to `"+r1+"`.\nBad object: "+JSON.stringify(Q[F],null," ")+`
113
- Valid keys: `+JSON.stringify(Object.keys(D),null," "));var s1=A1(p1,g1,r1,o1,i1+"."+g1,n);if(s1)return s1}return null}return L(G)}function J(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(J);if(D===null||l(D))return!0;var G=T(D);if(G){var Q=G.call(D),F;if(G!==D.entries){for(;!(F=Q.next()).done;)if(!J(F.value))return!1}else for(;!(F=Q.next()).done;){var r1=F.value;if(r1&&!J(r1[1]))return!1}}else return!1;return!0;default:return!1}}function K(D,G){return D==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function k(D){var G=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":K(G,D)?"symbol":G}function V(D){if(typeof D>"u"||D===null)return""+D;var G=k(D);if(G==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return G}function R(D){var G=V(D);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function w(D){return!D.constructor||!D.constructor.name?m:D.constructor.name}return y.checkPropTypes=a,y.resetWarningCache=a.resetWarningCache,y.PropTypes=y,y},factoryWithTypeCheckers}var factoryWithThrowingShims,hasRequiredFactoryWithThrowingShims;function requireFactoryWithThrowingShims(){if(hasRequiredFactoryWithThrowingShims)return factoryWithThrowingShims;hasRequiredFactoryWithThrowingShims=1;var e=requireReactPropTypesSecret();function t(){}function n(){}return n.resetWarningCache=t,factoryWithThrowingShims=function(){function i(u,l,c,f,d,T){if(T!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}i.isRequired=i;function a(){return i}var o={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,elementType:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},factoryWithThrowingShims}var hasRequiredPropTypes;function requirePropTypes(){if(hasRequiredPropTypes)return propTypes.exports;if(hasRequiredPropTypes=1,process.env.NODE_ENV!=="production"){var e=requireReactIs(),t=!0;propTypes.exports=requireFactoryWithTypeCheckers()(e.isElement,t)}else propTypes.exports=requireFactoryWithThrowingShims()();return propTypes.exports}var propTypesExports=requirePropTypes();const PropTypes=getDefaultExportFromCjs(propTypesExports);function hasClass(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function addClass(e,t){e.classList?e.classList.add(t):hasClass(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function replaceClassName(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function removeClass$1(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=replaceClassName(e.className,t):e.setAttribute("class",replaceClassName(e.className&&e.className.baseVal||"",t))}const config={disabled:!1};var timeoutsShape=process.env.NODE_ENV!=="production"?PropTypes.oneOfType([PropTypes.number,PropTypes.shape({enter:PropTypes.number,exit:PropTypes.number,appear:PropTypes.number}).isRequired]):null,classNamesShape=process.env.NODE_ENV!=="production"?PropTypes.oneOfType([PropTypes.string,PropTypes.shape({enter:PropTypes.string,exit:PropTypes.string,active:PropTypes.string}),PropTypes.shape({enter:PropTypes.string,enterDone:PropTypes.string,enterActive:PropTypes.string,exit:PropTypes.string,exitDone:PropTypes.string,exitActive:PropTypes.string})]):null;const TransitionGroupContext=React.createContext(null);var forceReflow=function e(t){return t.scrollTop},UNMOUNTED="unmounted",EXITED="exited",ENTERING="entering",ENTERED="entered",EXITING="exiting",Transition=(function(e){_inheritsLoose(t,e);function t(i,a){var o;o=e.call(this,i,a)||this;var u=a,l=u&&!u.isMounting?i.enter:i.appear,c;return o.appearStatus=null,i.in?l?(c=EXITED,o.appearStatus=ENTERING):c=ENTERED:i.unmountOnExit||i.mountOnEnter?c=UNMOUNTED:c=EXITED,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var u=a.in;return u&&o.status===UNMOUNTED?{status:EXITED}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var o=null;if(a!==this.props){var u=this.state.status;this.props.in?u!==ENTERING&&u!==ENTERED&&(o=ENTERING):(u===ENTERING||u===ENTERED)&&(o=EXITING)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,o,u,l;return o=u=l=a,a!=null&&typeof a!="number"&&(o=a.exit,u=a.enter,l=a.appear!==void 0?a.appear:u),{exit:o,enter:u,appear:l}},n.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===ENTERING){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this);u&&forceReflow(u)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===EXITED&&this.setState({status:UNMOUNTED})},n.performEnter=function(a){var o=this,u=this.props.enter,l=this.context?this.context.isMounting:a,c=this.props.nodeRef?[l]:[ReactDOM.findDOMNode(this),l],f=c[0],d=c[1],T=this.getTimeouts(),m=l?T.appear:T.enter;if(!a&&!u||config.disabled){this.safeSetState({status:ENTERED},function(){o.props.onEntered(f)});return}this.props.onEnter(f,d),this.safeSetState({status:ENTERING},function(){o.props.onEntering(f,d),o.onTransitionEnd(m,function(){o.safeSetState({status:ENTERED},function(){o.props.onEntered(f,d)})})})},n.performExit=function(){var a=this,o=this.props.exit,u=this.getTimeouts(),l=this.props.nodeRef?void 0:ReactDOM.findDOMNode(this);if(!o||config.disabled){this.safeSetState({status:EXITED},function(){a.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:EXITING},function(){a.props.onExiting(l),a.onTransitionEnd(u.exit,function(){a.safeSetState({status:EXITED},function(){a.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},n.setNextCallback=function(a){var o=this,u=!0;return this.nextCallback=function(l){u&&(u=!1,o.nextCallback=null,a(l))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(a,o){this.setNextCallback(o);var u=this.props.nodeRef?this.props.nodeRef.current:ReactDOM.findDOMNode(this),l=a==null&&!this.props.addEndListener;if(!u||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],f=c[0],d=c[1];this.props.addEndListener(f,d)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===UNMOUNTED)return null;var o=this.props,u=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var l=_objectWithoutPropertiesLoose(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return React.createElement(TransitionGroupContext.Provider,{value:null},typeof u=="function"?u(a,l):React.cloneElement(React.Children.only(u),l))},t})(React.Component);Transition.contextType=TransitionGroupContext;Transition.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:PropTypes.shape({current:typeof Element>"u"?PropTypes.any:function(e,t,n,i,a,o){var u=e[t];return PropTypes.instanceOf(u&&"ownerDocument"in u?u.ownerDocument.defaultView.Element:Element)(e,t,n,i,a,o)}}),children:PropTypes.oneOfType([PropTypes.func.isRequired,PropTypes.element.isRequired]).isRequired,in:PropTypes.bool,mountOnEnter:PropTypes.bool,unmountOnExit:PropTypes.bool,appear:PropTypes.bool,enter:PropTypes.bool,exit:PropTypes.bool,timeout:function e(t){var n=timeoutsShape;t.addEndListener||(n=n.isRequired);for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return n.apply(void 0,[t].concat(a))},addEndListener:PropTypes.func,onEnter:PropTypes.func,onEntering:PropTypes.func,onEntered:PropTypes.func,onExit:PropTypes.func,onExiting:PropTypes.func,onExited:PropTypes.func}:{};function noop(){}Transition.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop};Transition.UNMOUNTED=UNMOUNTED;Transition.EXITED=EXITED;Transition.ENTERING=ENTERING;Transition.ENTERED=ENTERED;Transition.EXITING=EXITING;var _addClass=function e(t,n){return t&&n&&n.split(" ").forEach(function(i){return addClass(t,i)})},removeClass=function e(t,n){return t&&n&&n.split(" ").forEach(function(i){return removeClass$1(t,i)})},CSSTransition=(function(e){_inheritsLoose(t,e);function t(){for(var i,a=arguments.length,o=new Array(a),u=0;u<a;u++)o[u]=arguments[u];return i=e.call.apply(e,[this].concat(o))||this,i.appliedClasses={appear:{},enter:{},exit:{}},i.onEnter=function(l,c){var f=i.resolveArguments(l,c),d=f[0],T=f[1];i.removeClasses(d,"exit"),i.addClass(d,T?"appear":"enter","base"),i.props.onEnter&&i.props.onEnter(l,c)},i.onEntering=function(l,c){var f=i.resolveArguments(l,c),d=f[0],T=f[1],m=T?"appear":"enter";i.addClass(d,m,"active"),i.props.onEntering&&i.props.onEntering(l,c)},i.onEntered=function(l,c){var f=i.resolveArguments(l,c),d=f[0],T=f[1],m=T?"appear":"enter";i.removeClasses(d,m),i.addClass(d,m,"done"),i.props.onEntered&&i.props.onEntered(l,c)},i.onExit=function(l){var c=i.resolveArguments(l),f=c[0];i.removeClasses(f,"appear"),i.removeClasses(f,"enter"),i.addClass(f,"exit","base"),i.props.onExit&&i.props.onExit(l)},i.onExiting=function(l){var c=i.resolveArguments(l),f=c[0];i.addClass(f,"exit","active"),i.props.onExiting&&i.props.onExiting(l)},i.onExited=function(l){var c=i.resolveArguments(l),f=c[0];i.removeClasses(f,"exit"),i.addClass(f,"exit","done"),i.props.onExited&&i.props.onExited(l)},i.resolveArguments=function(l,c){return i.props.nodeRef?[i.props.nodeRef.current,l]:[l,c]},i.getClassNames=function(l){var c=i.props.classNames,f=typeof c=="string",d=f&&c?c+"-":"",T=f?""+d+l:c[l],m=f?T+"-active":c[l+"Active"],y=f?T+"-done":c[l+"Done"];return{baseClassName:T,activeClassName:m,doneClassName:y}},i}var n=t.prototype;return n.addClass=function(a,o,u){var l=this.getClassNames(o)[u+"ClassName"],c=this.getClassNames("enter"),f=c.doneClassName;o==="appear"&&u==="done"&&f&&(l+=" "+f),u==="active"&&a&&forceReflow(a),l&&(this.appliedClasses[o][u]=l,_addClass(a,l))},n.removeClasses=function(a,o){var u=this.appliedClasses[o],l=u.base,c=u.active,f=u.done;this.appliedClasses[o]={},l&&removeClass(a,l),c&&removeClass(a,c),f&&removeClass(a,f)},n.render=function(){var a=this.props;a.classNames;var o=_objectWithoutPropertiesLoose(a,["classNames"]);return React.createElement(Transition,_extends({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(React.Component);CSSTransition.defaultProps={classNames:""};CSSTransition.propTypes=process.env.NODE_ENV!=="production"?_extends({},Transition.propTypes,{classNames:classNamesShape,onEnter:PropTypes.func,onEntering:PropTypes.func,onEntered:PropTypes.func,onExit:PropTypes.func,onExiting:PropTypes.func,onExited:PropTypes.func}):{};const Widget=React.forwardRef(({props:e},t)=>jsxRuntime.jsxs("div",{ref:t,className:`chatBox
97
+ */var ea,zu;function ST(){if(zu)return ea;zu=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var u={},o=0;o<10;o++)u["_"+String.fromCharCode(o)]=o;var l=Object.getOwnPropertyNames(u).map(function(f){return u[f]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(f){c[f]=f}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ea=a()?Object.assign:function(i,u){for(var o,l=r(i),c,f=1;f<arguments.length;f++){o=Object(arguments[f]);for(var d in o)t.call(o,d)&&(l[d]=o[d]);if(e){c=e(o);for(var m=0;m<c.length;m++)n.call(o,c[m])&&(l[c[m]]=o[c[m]])}}return l},ea}var ta,Vu;function ci(){if(Vu)return ta;Vu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ta=e,ta}var na,qu;function _l(){return qu||(qu=1,na=Function.call.bind(Object.prototype.hasOwnProperty)),na}var ra,Wu;function xT(){if(Wu)return ra;Wu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ci(),n={},r=_l();e=function(i){var u="Warning: "+i;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function a(i,u,o,l,c){if(process.env.NODE_ENV!=="production"){for(var f in i)if(r(i,f)){var d;try{if(typeof i[f]!="function"){var m=Error((l||"React class")+": "+o+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}d=i[f](u,f,l,o,null,t)}catch(y){d=y}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+o+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=c?c():"";e("Failed "+o+" type: "+d.message+(h??""))}}}}return a.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ra=a,ra}var aa,Xu;function CT(){if(Xu)return aa;Xu=1;var e=Fa(),t=ST(),n=ci(),r=_l(),a=xT(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(o){var l="Warning: "+o;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function u(){return null}return aa=function(o,l){var c=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function d(p){var H=p&&(c&&p[c]||p[f]);if(typeof H=="function")return H}var m="<<anonymous>>",h={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:v(),arrayOf:O,element:w(),elementType:C(),instanceOf:I,node:Y(),objectOf:se,oneOf:W,oneOfType:ne,shape:B,exact:G};function y(p,H){return p===H?p!==0||1/p===1/H:p!==p&&H!==H}function A(p,H){this.message=p,this.data=H&&typeof H=="object"?H:{},this.stack=""}A.prototype=Error.prototype;function R(p){if(process.env.NODE_ENV!=="production")var H={},Q=0;function T(Z,z,K,te,ie,J,_e){if(te=te||m,J=J||K,_e!==n){if(l){var j=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw j.name="Invariant Violation",j}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var xe=te+":"+K;!H[xe]&&Q<3&&(i("You are manually calling a React.PropTypes validation function for the `"+J+"` prop on `"+te+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),H[xe]=!0,Q++)}}return z[K]==null?Z?z[K]===null?new A("The "+ie+" `"+J+"` is marked as required "+("in `"+te+"`, but its value is `null`.")):new A("The "+ie+" `"+J+"` is marked as required in "+("`"+te+"`, but its value is `undefined`.")):null:p(z,K,te,ie,J)}var q=T.bind(null,!1);return q.isRequired=T.bind(null,!0),q}function S(p){function H(Q,T,q,Z,z,K){var te=Q[T],ie=oe(te);if(ie!==p){var J=pe(te);return new A("Invalid "+Z+" `"+z+"` of type "+("`"+J+"` supplied to `"+q+"`, expected ")+("`"+p+"`."),{expectedType:p})}return null}return R(H)}function v(){return R(u)}function O(p){function H(Q,T,q,Z,z){if(typeof p!="function")return new A("Property `"+z+"` of component `"+q+"` has invalid PropType notation inside arrayOf.");var K=Q[T];if(!Array.isArray(K)){var te=oe(K);return new A("Invalid "+Z+" `"+z+"` of type "+("`"+te+"` supplied to `"+q+"`, expected an array."))}for(var ie=0;ie<K.length;ie++){var J=p(K,ie,q,Z,z+"["+ie+"]",n);if(J instanceof Error)return J}return null}return R(H)}function w(){function p(H,Q,T,q,Z){var z=H[Q];if(!o(z)){var K=oe(z);return new A("Invalid "+q+" `"+Z+"` of type "+("`"+K+"` supplied to `"+T+"`, expected a single ReactElement."))}return null}return R(p)}function C(){function p(H,Q,T,q,Z){var z=H[Q];if(!e.isValidElementType(z)){var K=oe(z);return new A("Invalid "+q+" `"+Z+"` of type "+("`"+K+"` supplied to `"+T+"`, expected a single ReactElement type."))}return null}return R(p)}function I(p){function H(Q,T,q,Z,z){if(!(Q[T]instanceof p)){var K=p.name||m,te=Le(Q[T]);return new A("Invalid "+Z+" `"+z+"` of type "+("`"+te+"` supplied to `"+q+"`, expected ")+("instance of `"+K+"`."))}return null}return R(H)}function W(p){if(!Array.isArray(p))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),u;function H(Q,T,q,Z,z){for(var K=Q[T],te=0;te<p.length;te++)if(y(K,p[te]))return null;var ie=JSON.stringify(p,function(_e,j){var xe=pe(j);return xe==="symbol"?String(j):j});return new A("Invalid "+Z+" `"+z+"` of value `"+String(K)+"` "+("supplied to `"+q+"`, expected one of "+ie+"."))}return R(H)}function se(p){function H(Q,T,q,Z,z){if(typeof p!="function")return new A("Property `"+z+"` of component `"+q+"` has invalid PropType notation inside objectOf.");var K=Q[T],te=oe(K);if(te!=="object")return new A("Invalid "+Z+" `"+z+"` of type "+("`"+te+"` supplied to `"+q+"`, expected an object."));for(var ie in K)if(r(K,ie)){var J=p(K,ie,q,Z,z+"."+ie,n);if(J instanceof Error)return J}return null}return R(H)}function ne(p){if(!Array.isArray(p))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var H=0;H<p.length;H++){var Q=p[H];if(typeof Q!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ve(Q)+" at index "+H+"."),u}function T(q,Z,z,K,te){for(var ie=[],J=0;J<p.length;J++){var _e=p[J],j=_e(q,Z,z,K,te,n);if(j==null)return null;j.data&&r(j.data,"expectedType")&&ie.push(j.data.expectedType)}var xe=ie.length>0?", expected one of type ["+ie.join(", ")+"]":"";return new A("Invalid "+K+" `"+te+"` supplied to "+("`"+z+"`"+xe+"."))}return R(T)}function Y(){function p(H,Q,T,q,Z){return $(H[Q])?null:new A("Invalid "+q+" `"+Z+"` supplied to "+("`"+T+"`, expected a ReactNode."))}return R(p)}function F(p,H,Q,T,q){return new A((p||"React class")+": "+H+" type `"+Q+"."+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+q+"`.")}function B(p){function H(Q,T,q,Z,z){var K=Q[T],te=oe(K);if(te!=="object")return new A("Invalid "+Z+" `"+z+"` of type `"+te+"` "+("supplied to `"+q+"`, expected `object`."));for(var ie in p){var J=p[ie];if(typeof J!="function")return F(q,Z,z,ie,pe(J));var _e=J(K,ie,q,Z,z+"."+ie,n);if(_e)return _e}return null}return R(H)}function G(p){function H(Q,T,q,Z,z){var K=Q[T],te=oe(K);if(te!=="object")return new A("Invalid "+Z+" `"+z+"` of type `"+te+"` "+("supplied to `"+q+"`, expected `object`."));var ie=t({},Q[T],p);for(var J in ie){var _e=p[J];if(r(p,J)&&typeof _e!="function")return F(q,Z,z,J,pe(_e));if(!_e)return new A("Invalid "+Z+" `"+z+"` key `"+J+"` supplied to `"+q+"`.\nBad object: "+JSON.stringify(Q[T],null," ")+`
98
+ Valid keys: `+JSON.stringify(Object.keys(p),null," "));var j=_e(K,J,q,Z,z+"."+J,n);if(j)return j}return null}return R(H)}function $(p){switch(typeof p){case"number":case"string":case"undefined":return!0;case"boolean":return!p;case"object":if(Array.isArray(p))return p.every($);if(p===null||o(p))return!0;var H=d(p);if(H){var Q=H.call(p),T;if(H!==p.entries){for(;!(T=Q.next()).done;)if(!$(T.value))return!1}else for(;!(T=Q.next()).done;){var q=T.value;if(q&&!$(q[1]))return!1}}else return!1;return!0;default:return!1}}function X(p,H){return p==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function oe(p){var H=typeof p;return Array.isArray(p)?"array":p instanceof RegExp?"object":X(H,p)?"symbol":H}function pe(p){if(typeof p>"u"||p===null)return""+p;var H=oe(p);if(H==="object"){if(p instanceof Date)return"date";if(p instanceof RegExp)return"regexp"}return H}function ve(p){var H=pe(p);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function Le(p){return!p.constructor||!p.constructor.name?m:p.constructor.name}return h.checkPropTypes=a,h.resetWarningCache=a.resetWarningCache,h.PropTypes=h,h},aa}var ia,Qu;function IT(){if(Qu)return ia;Qu=1;var e=ci();function t(){}function n(){}return n.resetWarningCache=t,ia=function(){function r(u,o,l,c,f,d){if(d!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},ia}var Ku;function NT(){if(Ku)return qn.exports;if(Ku=1,process.env.NODE_ENV!=="production"){var e=Fa(),t=!0;qn.exports=CT()(e.isElement,t)}else qn.exports=IT()();return qn.exports}var OT=NT();const re=Ba(OT);function LT(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function RT(e,t){e.classList?e.classList.add(t):LT(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Zu(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function vT(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Zu(e.className,t):e.setAttribute("class",Zu(e.className&&e.className.baseVal||"",t))}const Ju={disabled:!1};var PT=process.env.NODE_ENV!=="production"?re.oneOfType([re.number,re.shape({enter:re.number,exit:re.number,appear:re.number}).isRequired]):null,DT=process.env.NODE_ENV!=="production"?re.oneOfType([re.string,re.shape({enter:re.string,exit:re.string,active:re.string}),re.shape({enter:re.string,enterDone:re.string,enterActive:re.string,exit:re.string,exitDone:re.string,exitActive:re.string})]):null;const yl=N.createContext(null);var Sl=function(t){return t.scrollTop},bn="unmounted",Rt="exited",vt="entering",qt="entered",Ma="exiting",pt=(function(e){Al(t,e);function t(r,a){var i;i=e.call(this,r,a)||this;var u=a,o=u&&!u.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?o?(l=Rt,i.appearStatus=vt):l=qt:r.unmountOnExit||r.mountOnEnter?l=bn:l=Rt,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var u=a.in;return u&&i.status===bn?{status:Rt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var i=null;if(a!==this.props){var u=this.state.status;this.props.in?u!==vt&&u!==qt&&(i=vt):(u===vt||u===qt)&&(i=Ma)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,i,u,o;return i=u=o=a,a!=null&&typeof a!="number"&&(i=a.exit,u=a.enter,o=a.appear!==void 0?a.appear:u),{exit:i,enter:u,appear:o}},n.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===vt){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:Bn.findDOMNode(this);u&&Sl(u)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Rt&&this.setState({status:bn})},n.performEnter=function(a){var i=this,u=this.props.enter,o=this.context?this.context.isMounting:a,l=this.props.nodeRef?[o]:[Bn.findDOMNode(this),o],c=l[0],f=l[1],d=this.getTimeouts(),m=o?d.appear:d.enter;if(!a&&!u||Ju.disabled){this.safeSetState({status:qt},function(){i.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:vt},function(){i.props.onEntering(c,f),i.onTransitionEnd(m,function(){i.safeSetState({status:qt},function(){i.props.onEntered(c,f)})})})},n.performExit=function(){var a=this,i=this.props.exit,u=this.getTimeouts(),o=this.props.nodeRef?void 0:Bn.findDOMNode(this);if(!i||Ju.disabled){this.safeSetState({status:Rt},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:Ma},function(){a.props.onExiting(o),a.onTransitionEnd(u.exit,function(){a.safeSetState({status:Rt},function(){a.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},n.setNextCallback=function(a){var i=this,u=!0;return this.nextCallback=function(o){u&&(u=!1,i.nextCallback=null,a(o))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},n.onTransitionEnd=function(a,i){this.setNextCallback(i);var u=this.props.nodeRef?this.props.nodeRef.current:Bn.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!u||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],c=l[0],f=l[1];this.props.addEndListener(c,f)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===bn)return null;var i=this.props,u=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=gl(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return N.createElement(yl.Provider,{value:null},typeof u=="function"?u(a,o):N.cloneElement(N.Children.only(u),o))},t})(N.Component);pt.contextType=yl;pt.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:re.shape({current:typeof Element>"u"?re.any:function(e,t,n,r,a,i){var u=e[t];return re.instanceOf(u&&"ownerDocument"in u?u.ownerDocument.defaultView.Element:Element)(e,t,n,r,a,i)}}),children:re.oneOfType([re.func.isRequired,re.element.isRequired]).isRequired,in:re.bool,mountOnEnter:re.bool,unmountOnExit:re.bool,appear:re.bool,enter:re.bool,exit:re.bool,timeout:function(t){var n=PT;t.addEndListener||(n=n.isRequired);for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return n.apply(void 0,[t].concat(a))},addEndListener:re.func,onEnter:re.func,onEntering:re.func,onEntered:re.func,onExit:re.func,onExiting:re.func,onExited:re.func}:{};function zt(){}pt.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:zt,onEntering:zt,onEntered:zt,onExit:zt,onExiting:zt,onExited:zt};pt.UNMOUNTED=bn;pt.EXITED=Rt;pt.ENTERING=vt;pt.ENTERED=qt;pt.EXITING=Ma;var kT=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return RT(t,r)})},ua=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return vT(t,r)})},fi=(function(e){Al(t,e);function t(){for(var r,a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(o,l){var c=r.resolveArguments(o,l),f=c[0],d=c[1];r.removeClasses(f,"exit"),r.addClass(f,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(o,l)},r.onEntering=function(o,l){var c=r.resolveArguments(o,l),f=c[0],d=c[1],m=d?"appear":"enter";r.addClass(f,m,"active"),r.props.onEntering&&r.props.onEntering(o,l)},r.onEntered=function(o,l){var c=r.resolveArguments(o,l),f=c[0],d=c[1],m=d?"appear":"enter";r.removeClasses(f,m),r.addClass(f,m,"done"),r.props.onEntered&&r.props.onEntered(o,l)},r.onExit=function(o){var l=r.resolveArguments(o),c=l[0];r.removeClasses(c,"appear"),r.removeClasses(c,"enter"),r.addClass(c,"exit","base"),r.props.onExit&&r.props.onExit(o)},r.onExiting=function(o){var l=r.resolveArguments(o),c=l[0];r.addClass(c,"exit","active"),r.props.onExiting&&r.props.onExiting(o)},r.onExited=function(o){var l=r.resolveArguments(o),c=l[0];r.removeClasses(c,"exit"),r.addClass(c,"exit","done"),r.props.onExited&&r.props.onExited(o)},r.resolveArguments=function(o,l){return r.props.nodeRef?[r.props.nodeRef.current,o]:[o,l]},r.getClassNames=function(o){var l=r.props.classNames,c=typeof l=="string",f=c&&l?l+"-":"",d=c?""+f+o:l[o],m=c?d+"-active":l[o+"Active"],h=c?d+"-done":l[o+"Done"];return{baseClassName:d,activeClassName:m,doneClassName:h}},r}var n=t.prototype;return n.addClass=function(a,i,u){var o=this.getClassNames(i)[u+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&u==="done"&&c&&(o+=" "+c),u==="active"&&a&&Sl(a),o&&(this.appliedClasses[i][u]=o,kT(a,o))},n.removeClasses=function(a,i){var u=this.appliedClasses[i],o=u.base,l=u.active,c=u.done;this.appliedClasses[i]={},o&&ua(a,o),l&&ua(a,l),c&&ua(a,c)},n.render=function(){var a=this.props;a.classNames;var i=gl(a,["classNames"]);return N.createElement(pt,cr({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(N.Component);fi.defaultProps={classNames:""};fi.propTypes=process.env.NODE_ENV!=="production"?cr({},pt.propTypes,{classNames:DT,onEnter:re.func,onEntering:re.func,onEntered:re.func,onExit:re.func,onExiting:re.func,onExited:re.func}):{};const wT=N.forwardRef(({props:e},t)=>P.jsxs("div",{ref:t,className:`chatBox
114
99
  fixed
115
100
  z-[99999999]
116
101
  md:bottom-[110px]
@@ -130,5 +115,5 @@ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var s1=A1(p1,g1,r1,o1,i1
130
115
  shadow-lg
131
116
  pb-2
132
117
  bg-white
133
- `,children:[jsxRuntime.jsx("div",{className:"bg-violet-700 py-2 text-white text-center flex justify-center items-center",children:"Assistant"}),jsxRuntime.jsx(ChatBox,{appToken:e.appToken})]})),WidgetContainer=({isWidgetOpen:e,appToken:t})=>{const n=React.useRef(null);return jsxRuntime.jsx("div",{children:jsxRuntime.jsx(CSSTransition,{nodeRef:n,in:e,timeout:200,classNames:"menuTransition",unmountOnExit:!0,children:jsxRuntime.jsx(Widget,{ref:n,props:{appToken:t}})})})},ChatDisplay=({displayMode:e,appToken:t})=>{const[n,i]=React.useState(!1),{appInternalContext:a}=React.useContext(AppInternalContext);return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[e===DisplayModeEnum.LAUNCHER&&a.hasFetchedSettings&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(Launcher,{isWidgetOpen:n,setIsWidgetOpen:i}),jsxRuntime.jsx(WidgetContainer,{isWidgetOpen:n,appToken:t})]}),e===DisplayModeEnum.CHATBOX&&a.hasFetchedSettings&&jsxRuntime.jsx("div",{className:"chatBox",children:jsxRuntime.jsx(ChatBox,{appToken:t})})]})};var DisplayModeEnum=(e=>(e.LAUNCHER="launcher",e.CHATBOX="chatbox",e))(DisplayModeEnum||{});function App({appToken:e,displayMode:t="launcher",agentId:n}){e||console.warn("appToken not defined in ai-client. Please see the documentation at URL_ERROR_IN_DOC");const i=adjustDisplayMode(t);return jsxRuntime.jsx(ContextWrapper,{appToken:e,agentId:n,children:jsxRuntime.jsx(ChatDisplay,{displayMode:i,appToken:e})})}exports.App=App;
118
+ `,children:[P.jsx("div",{className:"bg-violet-700 py-2 text-white text-center flex justify-center items-center",children:"Assistant"}),P.jsx(Tl,{appToken:e.appToken})]})),MT=({isWidgetOpen:e,appToken:t})=>{const n=N.useRef(null);return P.jsx("div",{children:P.jsx(fi,{nodeRef:n,in:e,timeout:200,classNames:"menuTransition",unmountOnExit:!0,children:P.jsx(wT,{ref:n,props:{appToken:t}})})})},BT=({displayMode:e,appToken:t})=>{const[n,r]=N.useState(!1),{appInternalContext:a}=N.useContext(vs);return P.jsxs(P.Fragment,{children:[e===tn.LAUNCHER&&a.hasFetchedSettings&&P.jsxs(P.Fragment,{children:[P.jsx(Pf,{isWidgetOpen:n,setIsWidgetOpen:r}),P.jsx(MT,{isWidgetOpen:n,appToken:t})]}),e===tn.CHATBOX&&a.hasFetchedSettings&&P.jsx("div",{className:"chatBox",children:P.jsx(Tl,{appToken:t})})]})};var tn=(e=>(e.LAUNCHER="launcher",e.CHATBOX="chatbox",e))(tn||{});function FT({appToken:e,displayMode:t="launcher",agentId:n}){e||console.warn("appToken not defined in ai-client. Please see the documentation at URL_ERROR_IN_DOC");const r=Sf(t);return P.jsx(_f,{appToken:e,agentId:n,children:P.jsx(BT,{displayMode:r,appToken:e})})}exports.App=FT;
134
119
  //# sourceMappingURL=index.cjs.map