@pie-element/math-templated 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/author/defaults.d.ts +174 -0
- package/dist/author/defaults.d.ts.map +1 -0
- package/dist/author/defaults.js +123 -0
- package/dist/author/design.d.ts +36 -0
- package/dist/author/design.d.ts.map +1 -0
- package/dist/author/design.js +494 -0
- package/dist/author/index.d.ts +43 -0
- package/dist/author/index.d.ts.map +1 -0
- package/dist/author/index.js +98 -0
- package/dist/author/markupUtils.d.ts +12 -0
- package/dist/author/markupUtils.d.ts.map +1 -0
- package/dist/author/markupUtils.js +10 -0
- package/dist/author/response.d.ts +42 -0
- package/dist/author/response.d.ts.map +1 -0
- package/dist/author/response.js +342 -0
- package/dist/author/utils.d.ts +10 -0
- package/dist/author/utils.d.ts.map +1 -0
- package/dist/author/utils.js +7 -0
- package/dist/controller/defaults.d.ts +30 -0
- package/dist/controller/defaults.d.ts.map +1 -0
- package/dist/controller/defaults.js +23 -0
- package/dist/controller/index.d.ts +38 -0
- package/dist/controller/index.d.ts.map +1 -0
- package/dist/controller/index.js +125 -0
- package/dist/delivery/index.d.ts +21 -0
- package/dist/delivery/index.d.ts.map +1 -0
- package/dist/delivery/index.js +51 -0
- package/dist/delivery/main.d.ts +40 -0
- package/dist/delivery/main.d.ts.map +1 -0
- package/dist/delivery/main.js +538 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.iife.d.ts +9 -0
- package/dist/index.iife.d.ts.map +1 -0
- package/dist/index.iife.js +224 -0
- package/dist/index.js +2 -0
- package/dist/math-templated.css +2 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_DataView.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Hash.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_ListCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Map.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_MapCache.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Promise.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Set.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_SetCache.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Stack.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_WeakMap.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_apply.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayEach.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayLikeKeys.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arrayPush.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_arraySome.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assignValue.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_assocIndexOf.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssign.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseClone.js +57 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseCreate.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGet.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsEqualDeep.js +30 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsNative.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseIsTypedArray.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeys.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseKeysIn.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_basePick.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_basePickBy.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSet.js +22 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTimes.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseToString.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_baseUnary.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_castPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneBuffer.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copyObject.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbols.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_coreJsData.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_defineProperty.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalArrays.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalByTag.js +35 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_equalObjects.js +32 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_flatRest.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getMapData.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getNative.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getPrototype.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getRawTag.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbols.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getSymbolsIn.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getTag.js +23 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_getValue.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hasPath.js +18 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashGet.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashHas.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_hashSet.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneByTag.js +33 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isIterateeCall.js +12 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKey.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isKeyable.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isMasked.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_isPrototype.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheDelete.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_mapToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nativeKeysIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_nodeUtil.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overArg.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_overRest.js +13 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToArray.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_setToString.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_shortOut.js +14 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackClear.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackDelete.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackGet.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackHas.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stackSet.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_stringToPath.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toKey.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_toSource.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/_trimmedEndIndex.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/cloneDeep.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/constant.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/debounce.js +50 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/defaults.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/eq.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/flatten.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/hasIn.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/identity.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArguments.js +10 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArray.js +4 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isArrayLike.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isBuffer.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEmpty.js +21 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isEqual.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isFunction.js +11 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isLength.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isMap.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSet.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/isTypedArray.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keys.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/keysIn.js +9 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/memoize.js +16 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/now.js +7 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/pick.js +8 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubArray.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/stubFalse.js +6 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/throttle.js +15 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toNumber.js +19 -0
- package/dist/node_modules/.bun/lodash-es@4.17.23/node_modules/lodash-es/toString.js +7 -0
- package/dist/print/index.d.ts +16 -0
- package/dist/print/index.d.ts.map +1 -0
- package/dist/print/index.js +47 -0
- package/package.json +80 -0
- package/src/author/defaults.ts +133 -0
- package/src/author/design.tsx +526 -0
- package/src/author/index.ts +195 -0
- package/src/author/markupUtils.tsx +55 -0
- package/src/author/response.tsx +397 -0
- package/src/author/utils.ts +24 -0
- package/src/controller/defaults.ts +31 -0
- package/src/controller/index.ts +294 -0
- package/src/delivery/index.ts +94 -0
- package/src/delivery/main.tsx +800 -0
- package/src/index.iife.ts +16 -0
- package/src/index.ts +1 -0
- package/src/print/index.tsx +99 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
this.MathTemplatedElement=(function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=o((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function ee(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function A(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+ee(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),A(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+ee(s,l);c+=A(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+ee(s,l++),c+=A(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function j(e,t,n){if(e==null)return e;var r=[],i=0;return A(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function te(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var M={current:null},N={transition:null},ne={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:N,ReactCurrentOwner:C};function re(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:j,forEach:function(e,t,n){j(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return j(e,function(){t++}),t},toArray:function(e){return j(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,e.act=re,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:te}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},e.unstable_act=re,e.useCallback=function(e,t){return M.current.useCallback(e,t)},e.useContext=function(e){return M.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return M.current.useDeferredValue(e)},e.useEffect=function(e,t){return M.current.useEffect(e,t)},e.useId=function(){return M.current.useId()},e.useImperativeHandle=function(e,t,n){return M.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return M.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return M.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return M.current.useMemo(e,t)},e.useReducer=function(e,t,n){return M.current.useReducer(e,t,n)},e.useRef=function(e){return M.current.useRef(e)},e.useState=function(e){return M.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return M.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return M.current.useTransition()},e.version=`18.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,j(x);else{var t=n(l);t!==null&&te(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&te(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}var k;if(typeof v==`function`)k=function(){v(O)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,A=ee.port2;ee.port1.onmessage=O,k=function(){A.postMessage(null)}}else k=function(){g(O,0)};function j(e){C=e,S||(S=!0,k())}function te(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,j(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,te(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,j(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d(),n=p();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function h(e){return l.call(m,e)?!0:l.call(f,e)?!1:u.test(e)?m[e]=!0:(f[e]=!0,!1)}function g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?h(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),E=Symbol.for(`react.fragment`),D=Symbol.for(`react.strict_mode`),O=Symbol.for(`react.profiler`),k=Symbol.for(`react.provider`),ee=Symbol.for(`react.context`),A=Symbol.for(`react.forward_ref`),j=Symbol.for(`react.suspense`),te=Symbol.for(`react.suspense_list`),M=Symbol.for(`react.memo`),N=Symbol.for(`react.lazy`),ne=Symbol.for(`react.offscreen`),re=Symbol.iterator;function P(e){return typeof e!=`object`||!e?null:(e=re&&e[re]||e[`@@iterator`],typeof e==`function`?e:null)}var F=Object.assign,ie;function ae(e){if(ie===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ie=t&&t[1]||``}return`
|
|
2
|
+
`+ie+e}var oe=!1;function I(e,t){if(!e||oe)return``;oe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
|
|
3
|
+
`),a=r.stack.split(`
|
|
4
|
+
`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
|
|
5
|
+
`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{oe=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ae(e):``}function se(e){switch(e.tag){case 5:return ae(e.type);case 16:return ae(`Lazy`);case 13:return ae(`Suspense`);case 19:return ae(`SuspenseList`);case 0:case 2:case 15:return e=I(e.type,!1),e;case 11:return e=I(e.type.render,!1),e;case 1:return e=I(e.type,!0),e;default:return``}}function L(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case E:return`Fragment`;case T:return`Portal`;case O:return`Profiler`;case D:return`StrictMode`;case j:return`Suspense`;case te:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case ee:return(e.displayName||`Context`)+`.Consumer`;case k:return(e._context.displayName||`Context`)+`.Provider`;case A:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case M:return t=e.displayName||null,t===null?L(e.type)||`Memo`:t;case N:t=e._payload,e=e._init;try{return L(e(t))}catch{}}return null}function R(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return L(t);case 8:return t===D?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function z(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function ce(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function le(e){var t=ce(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ue(e){e._valueTracker||=le(e)}function de(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ce(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function fe(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function pe(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function B(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=z(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function me(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function he(e,t){me(e,t);var n=z(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?_e(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&_e(e,t.type,z(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ge(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function _e(e,t,n){(t!==`number`||fe(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var ve=Array.isArray;function V(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+z(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ye(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return F({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function be(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(ve(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:z(n)}}function xe(e,t){var n=z(t.value),r=z(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Se(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Ce(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function we(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Ce(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Te,Ee=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Te||=document.createElement(`div`),Te.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Te.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function De(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Oe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ke=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Oe).forEach(function(e){ke.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Oe[t]=Oe[e]})});function Ae(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Oe.hasOwnProperty(e)&&Oe[e]?(``+t).trim():t+`px`}function je(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Ae(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Me=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ne(e,t){if(t){if(Me[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Pe(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Fe=null;function Ie(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Le=null,Re=null,ze=null;function Be(e){if(e=Hi(e)){if(typeof Le!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Wi(t),Le(e.stateNode,e.type,t))}}function Ve(e){Re?ze?ze.push(e):ze=[e]:Re=e}function He(){if(Re){var e=Re,t=ze;if(ze=Re=null,Be(e),t)for(e=0;e<t.length;e++)Be(t[e])}}function Ue(e,t){return e(t)}function We(){}var Ge=!1;function Ke(e,t,n){if(Ge)return e(t,n);Ge=!0;try{return Ue(e,t,n)}finally{Ge=!1,(Re!==null||ze!==null)&&(We(),He())}}function qe(e,t){var n=e.stateNode;if(n===null)return null;var i=Wi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var Je=!1;if(c)try{var Ye={};Object.defineProperty(Ye,`passive`,{get:function(){Je=!0}}),window.addEventListener(`test`,Ye,Ye),window.removeEventListener(`test`,Ye,Ye)}catch{Je=!1}function Xe(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var Ze=!1,Qe=null,$e=!1,et=null,tt={onError:function(e){Ze=!0,Qe=e}};function nt(e,t,n,r,i,a,o,s,c){Ze=!1,Qe=null,Xe.apply(tt,arguments)}function rt(e,t,n,i,a,o,s,c,l){if(nt.apply(this,arguments),Ze){if(Ze){var u=Qe;Ze=!1,Qe=null}else throw Error(r(198));$e||($e=!0,et=u)}}function it(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function at(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ot(e){if(it(e)!==e)throw Error(r(188))}function st(e){var t=e.alternate;if(!t){if(t=it(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return ot(a),e;if(o===i)return ot(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function ct(e){return e=st(e),e===null?null:lt(e)}function lt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=lt(e);if(t!==null)return t;e=e.sibling}return null}var ut=n.unstable_scheduleCallback,dt=n.unstable_cancelCallback,ft=n.unstable_shouldYield,pt=n.unstable_requestPaint,mt=n.unstable_now,ht=n.unstable_getCurrentPriorityLevel,gt=n.unstable_ImmediatePriority,_t=n.unstable_UserBlockingPriority,vt=n.unstable_NormalPriority,yt=n.unstable_LowPriority,bt=n.unstable_IdlePriority,xt=null,St=null;function Ct(e){if(St&&typeof St.onCommitFiberRoot==`function`)try{St.onCommitFiberRoot(xt,e,void 0,(e.current.flags&128)==128)}catch{}}var wt=Math.clz32?Math.clz32:Dt,Tt=Math.log,Et=Math.LN2;function Dt(e){return e>>>=0,e===0?32:31-(Tt(e)/Et|0)|0}var Ot=64,kt=4194304;function At(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function jt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=At(a))):r=At(s)}else o=n&~i,o===0?a!==0&&(r=At(a)):r=At(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-wt(t),i=1<<n,r|=e[n],t&=~i;return r}function Mt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Nt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-wt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Mt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Pt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Ft(){var e=Ot;return Ot<<=1,!(Ot&4194240)&&(Ot=64),e}function It(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Lt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-wt(t),e[t]=n}function Rt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-wt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function zt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-wt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Bt=0;function Vt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Ht,Ut,Wt,Gt,Kt,qt=!1,Jt=[],Yt=null,Xt=null,Zt=null,Qt=new Map,$t=new Map,en=[],tn=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function nn(e,t){switch(e){case`focusin`:case`focusout`:Yt=null;break;case`dragenter`:case`dragleave`:Xt=null;break;case`mouseover`:case`mouseout`:Zt=null;break;case`pointerover`:case`pointerout`:Qt.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:$t.delete(t.pointerId)}}function rn(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Hi(t),t!==null&&Ut(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function an(e,t,n,r,i){switch(t){case`focusin`:return Yt=rn(Yt,e,t,n,r,i),!0;case`dragenter`:return Xt=rn(Xt,e,t,n,r,i),!0;case`mouseover`:return Zt=rn(Zt,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Qt.set(a,rn(Qt.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,$t.set(a,rn($t.get(a)||null,e,t,n,r,i)),!0}return!1}function on(e){var t=Vi(e.target);if(t!==null){var n=it(t);if(n!==null){if(t=n.tag,t===13){if(t=at(n),t!==null){e.blockedOn=t,Kt(e.priority,function(){Wt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function sn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=vn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Fe=r,n.target.dispatchEvent(r),Fe=null}else return t=Hi(n),t!==null&&Ut(t),e.blockedOn=n,!1;t.shift()}return!0}function cn(e,t,n){sn(e)&&n.delete(t)}function ln(){qt=!1,Yt!==null&&sn(Yt)&&(Yt=null),Xt!==null&&sn(Xt)&&(Xt=null),Zt!==null&&sn(Zt)&&(Zt=null),Qt.forEach(cn),$t.forEach(cn)}function un(e,t){e.blockedOn===t&&(e.blockedOn=null,qt||(qt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ln)))}function dn(e){function t(t){return un(t,e)}if(0<Jt.length){un(Jt[0],e);for(var n=1;n<Jt.length;n++){var r=Jt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Yt!==null&&un(Yt,e),Xt!==null&&un(Xt,e),Zt!==null&&un(Zt,e),Qt.forEach(t),$t.forEach(t),n=0;n<en.length;n++)r=en[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<en.length&&(n=en[0],n.blockedOn===null);)on(n),n.blockedOn===null&&en.shift()}var fn=C.ReactCurrentBatchConfig,pn=!0;function mn(e,t,n,r){var i=Bt,a=fn.transition;fn.transition=null;try{Bt=1,gn(e,t,n,r)}finally{Bt=i,fn.transition=a}}function hn(e,t,n,r){var i=Bt,a=fn.transition;fn.transition=null;try{Bt=4,gn(e,t,n,r)}finally{Bt=i,fn.transition=a}}function gn(e,t,n,r){if(pn){var i=vn(e,t,n,r);if(i===null)fi(e,t,r,_n,n),nn(e,r);else if(an(i,e,t,n,r))r.stopPropagation();else if(nn(e,r),t&4&&-1<tn.indexOf(e)){for(;i!==null;){var a=Hi(i);if(a!==null&&Ht(a),a=vn(e,t,n,r),a===null&&fi(e,t,r,_n,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else fi(e,t,r,null,n)}}var _n=null;function vn(e,t,n,r){if(_n=null,e=Ie(r),e=Vi(e),e!==null)if(t=it(e),t===null)e=null;else if(n=t.tag,n===13){if(e=at(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return _n=e,null}function yn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(ht()){case gt:return 1;case _t:return 4;case vt:case yt:return 16;case bt:return 536870912;default:return 16}default:return 16}}var bn=null,xn=null,Sn=null;function Cn(){if(Sn)return Sn;var e,t=xn,n=t.length,r,i=`value`in bn?bn.value:bn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Sn=i.slice(e,1<r?1-r:void 0)}function wn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Tn(){return!0}function En(){return!1}function Dn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Tn:En,this.isPropagationStopped=En,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Tn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Tn)},persist:function(){},isPersistent:Tn}),t}var On={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kn=Dn(On),An=F({},On,{view:0,detail:0}),jn=Dn(An),Mn,Nn,Pn,Fn=F({},An,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Kn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Pn&&(Pn&&e.type===`mousemove`?(Mn=e.screenX-Pn.screenX,Nn=e.screenY-Pn.screenY):Nn=Mn=0,Pn=e),Mn)},movementY:function(e){return`movementY`in e?e.movementY:Nn}}),In=Dn(Fn),Ln=Dn(F({},Fn,{dataTransfer:0})),Rn=Dn(F({},An,{relatedTarget:0})),zn=Dn(F({},On,{animationName:0,elapsedTime:0,pseudoElement:0})),Bn=Dn(F({},On,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Vn=Dn(F({},On,{data:0})),Hn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Un={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Wn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Gn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Wn[e])?!!t[e]:!1}function Kn(){return Gn}var qn=Dn(F({},An,{key:function(e){if(e.key){var t=Hn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=wn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Un[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Kn,charCode:function(e){return e.type===`keypress`?wn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?wn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Jn=Dn(F({},Fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Yn=Dn(F({},An,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Kn})),Xn=Dn(F({},On,{propertyName:0,elapsedTime:0,pseudoElement:0})),Zn=Dn(F({},Fn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Qn=[9,13,27,32],$n=c&&`CompositionEvent`in window,er=null;c&&`documentMode`in document&&(er=document.documentMode);var tr=c&&`TextEvent`in window&&!er,nr=c&&(!$n||er&&8<er&&11>=er),rr=` `,ir=!1;function ar(e,t){switch(e){case`keyup`:return Qn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function or(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var sr=!1;function cr(e,t){switch(e){case`compositionend`:return or(t);case`keypress`:return t.which===32?(ir=!0,rr):null;case`textInput`:return e=t.data,e===rr&&ir?null:e;default:return null}}function lr(e,t){if(sr)return e===`compositionend`||!$n&&ar(e,t)?(e=Cn(),Sn=xn=bn=null,sr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return nr&&t.locale!==`ko`?null:t.data;default:return null}}var ur={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ur[e.type]:t===`textarea`}function fr(e,t,n,r){Ve(r),t=mi(t,`onChange`),0<t.length&&(n=new kn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var pr=null,mr=null;function hr(e){oi(e,0)}function gr(e){if(de(Ui(e)))return e}function _r(e,t){if(e===`change`)return t}var vr=!1;if(c){var yr;if(c){var br=`oninput`in document;if(!br){var xr=document.createElement(`div`);xr.setAttribute(`oninput`,`return;`),br=typeof xr.oninput==`function`}yr=br}else yr=!1;vr=yr&&(!document.documentMode||9<document.documentMode)}function Sr(){pr&&(pr.detachEvent(`onpropertychange`,Cr),mr=pr=null)}function Cr(e){if(e.propertyName===`value`&&gr(mr)){var t=[];fr(t,mr,e,Ie(e)),Ke(hr,t)}}function wr(e,t,n){e===`focusin`?(Sr(),pr=t,mr=n,pr.attachEvent(`onpropertychange`,Cr)):e===`focusout`&&Sr()}function Tr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return gr(mr)}function Er(e,t){if(e===`click`)return gr(t)}function Dr(e,t){if(e===`input`||e===`change`)return gr(t)}function Or(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var kr=typeof Object.is==`function`?Object.is:Or;function Ar(e,t){if(kr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!kr(e[i],t[i]))return!1}return!0}function jr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Mr(e,t){var n=jr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=jr(n)}}function Nr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Nr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pr(){for(var e=window,t=fe();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=fe(e.document)}return t}function Fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Ir(e){var t=Pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Nr(n.ownerDocument.documentElement,n)){if(r!==null&&Fr(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Mr(n,a);var o=Mr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Lr=c&&`documentMode`in document&&11>=document.documentMode,Rr=null,zr=null,Br=null,Vr=!1;function Hr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vr||Rr==null||Rr!==fe(r)||(r=Rr,`selectionStart`in r&&Fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Br&&Ar(Br,r)||(Br=r,r=mi(zr,`onSelect`),0<r.length&&(t=new kn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Rr)))}function Ur(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Wr={animationend:Ur(`Animation`,`AnimationEnd`),animationiteration:Ur(`Animation`,`AnimationIteration`),animationstart:Ur(`Animation`,`AnimationStart`),transitionend:Ur(`Transition`,`TransitionEnd`)},Gr={},Kr={};c&&(Kr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Wr.animationend.animation,delete Wr.animationiteration.animation,delete Wr.animationstart.animation),`TransitionEvent`in window||delete Wr.transitionend.transition);function qr(e){if(Gr[e])return Gr[e];if(!Wr[e])return e;var t=Wr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Kr)return Gr[e]=t[n];return e}var Jr=qr(`animationend`),Yr=qr(`animationiteration`),Xr=qr(`animationstart`),Zr=qr(`transitionend`),Qr=new Map,$r=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function ei(e,t){Qr.set(e,t),o(t,[e])}for(var ti=0;ti<$r.length;ti++){var ni=$r[ti];ei(ni.toLowerCase(),`on`+(ni[0].toUpperCase()+ni.slice(1)))}ei(Jr,`onAnimationEnd`),ei(Yr,`onAnimationIteration`),ei(Xr,`onAnimationStart`),ei(`dblclick`,`onDoubleClick`),ei(`focusin`,`onFocus`),ei(`focusout`,`onBlur`),ei(Zr,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ri=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),ii=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ri));function ai(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,rt(r,t,void 0,e),e.currentTarget=null}function oi(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ai(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ai(i,s,l),a=c}}}if($e)throw e=et,$e=!1,et=null,e}function si(e,t){var n=t[Ri];n===void 0&&(n=t[Ri]=new Set);var r=e+`__bubble`;n.has(r)||(di(t,e,2,!1),n.add(r))}function ci(e,t,n){var r=0;t&&(r|=4),di(n,e,r,t)}var li=`_reactListening`+Math.random().toString(36).slice(2);function ui(e){if(!e[li]){e[li]=!0,i.forEach(function(t){t!==`selectionchange`&&(ii.has(t)||ci(t,!1,e),ci(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[li]||(t[li]=!0,ci(`selectionchange`,!1,t))}}function di(e,t,n,r){switch(yn(t)){case 1:var i=mn;break;case 4:i=hn;break;default:i=gn}n=i.bind(null,t,n,e),i=void 0,!Je||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function fi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Vi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}Ke(function(){var r=a,i=Ie(n),o=[];a:{var s=Qr.get(e);if(s!==void 0){var c=kn,l=e;switch(e){case`keypress`:if(wn(n)===0)break a;case`keydown`:case`keyup`:c=qn;break;case`focusin`:l=`focus`,c=Rn;break;case`focusout`:l=`blur`,c=Rn;break;case`beforeblur`:case`afterblur`:c=Rn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=In;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Ln;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Yn;break;case Jr:case Yr:case Xr:c=zn;break;case Zr:c=Xn;break;case`scroll`:c=jn;break;case`wheel`:c=Zn;break;case`copy`:case`cut`:case`paste`:c=Bn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Jn}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=qe(p,f),h!=null&&u.push(pi(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Fe&&(l=n.relatedTarget||n.fromElement)&&(Vi(l)||l[Li]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Vi(l):null,l!==null&&(d=it(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=In,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Jn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Ui(c),m=l==null?s:Ui(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Vi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=hi(m))p++;for(m=0,h=f;h;h=hi(h))m++;for(;0<p-m;)u=hi(u),p--;for(;0<m-p;)f=hi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=hi(u),f=hi(f)}u=null}else u=null;c!==null&&gi(o,s,c,u,!1),l!==null&&d!==null&&gi(o,d,l,u,!0)}}a:{if(s=r?Ui(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=_r;else if(dr(s))if(vr)g=Dr;else{g=Tr;var _=wr}else (c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Er);if(g&&=g(e,r)){fr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&_e(s,`number`,s.value)}switch(_=r?Ui(r):window,e){case`focusin`:(dr(_)||_.contentEditable===`true`)&&(Rr=_,zr=r,Br=null);break;case`focusout`:Br=zr=Rr=null;break;case`mousedown`:Vr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Vr=!1,Hr(o,n,i);break;case`selectionchange`:if(Lr)break;case`keydown`:case`keyup`:Hr(o,n,i)}var v;if($n)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else sr?ar(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(nr&&n.locale!==`ko`&&(sr||y!==`onCompositionStart`?y===`onCompositionEnd`&&sr&&(v=Cn()):(bn=i,xn=`value`in bn?bn.value:bn.textContent,sr=!0)),_=mi(r,y),0<_.length&&(y=new Vn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=or(n),v!==null&&(y.data=v)))),(v=tr?cr(e,n):lr(e,n))&&(r=mi(r,`onBeforeInput`),0<r.length&&(i=new Vn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}oi(o,t)})}function pi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function mi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=qe(e,n),a!=null&&r.unshift(pi(e,a,i)),a=qe(e,t),a!=null&&r.push(pi(e,a,i))),e=e.return}return r}function hi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function gi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=qe(n,a),c!=null&&o.unshift(pi(n,c,s))):i||(c=qe(n,a),c!=null&&o.push(pi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var _i=/\r\n?/g,yi=/\u0000|\uFFFD/g;function bi(e){return(typeof e==`string`?e:``+e).replace(_i,`
|
|
6
|
+
`).replace(yi,``)}function xi(e,t,n){if(t=bi(t),bi(e)!==t&&n)throw Error(r(425))}function Si(){}var Ci=null,wi=null;function Ti(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Ei=typeof setTimeout==`function`?setTimeout:void 0,Di=typeof clearTimeout==`function`?clearTimeout:void 0,Oi=typeof Promise==`function`?Promise:void 0,ki=typeof queueMicrotask==`function`?queueMicrotask:Oi===void 0?Ei:function(e){return Oi.resolve(null).then(e).catch(Ai)};function Ai(e){setTimeout(function(){throw e})}function ji(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),dn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);dn(t)}function Mi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Ni(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Pi=Math.random().toString(36).slice(2),Fi=`__reactFiber$`+Pi,Ii=`__reactProps$`+Pi,Li=`__reactContainer$`+Pi,Ri=`__reactEvents$`+Pi,zi=`__reactListeners$`+Pi,Bi=`__reactHandles$`+Pi;function Vi(e){var t=e[Fi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Li]||n[Fi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ni(e);e!==null;){if(n=e[Fi])return n;e=Ni(e)}return t}e=n,n=e.parentNode}return null}function Hi(e){return e=e[Fi]||e[Li],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Ui(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Wi(e){return e[Ii]||null}var Gi=[],Ki=-1;function qi(e){return{current:e}}function Ji(e){0>Ki||(e.current=Gi[Ki],Gi[Ki]=null,Ki--)}function Yi(e,t){Ki++,Gi[Ki]=e.current,e.current=t}var Xi={},Zi=qi(Xi),Qi=qi(!1),$i=Xi;function ea(e,t){var n=e.type.contextTypes;if(!n)return Xi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ta(e){return e=e.childContextTypes,e!=null}function na(){Ji(Qi),Ji(Zi)}function ra(e,t,n){if(Zi.current!==Xi)throw Error(r(168));Yi(Zi,t),Yi(Qi,n)}function ia(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,R(e)||`Unknown`,a));return F({},n,i)}function aa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xi,$i=Zi.current,Yi(Zi,e),Yi(Qi,Qi.current),!0}function oa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ia(e,t,$i),i.__reactInternalMemoizedMergedChildContext=e,Ji(Qi),Ji(Zi),Yi(Zi,e)):Ji(Qi),Yi(Qi,n)}var sa=null,ca=!1,la=!1;function ua(e){sa===null?sa=[e]:sa.push(e)}function da(e){ca=!0,ua(e)}function fa(){if(!la&&sa!==null){la=!0;var e=0,t=Bt;try{var n=sa;for(Bt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}sa=null,ca=!1}catch(t){throw sa!==null&&(sa=sa.slice(e+1)),ut(gt,fa),t}finally{Bt=t,la=!1}}return null}var pa=[],ma=0,ha=null,ga=0,_a=[],va=0,ya=null,ba=1,xa=``;function Sa(e,t){pa[ma++]=ga,pa[ma++]=ha,ha=e,ga=t}function Ca(e,t,n){_a[va++]=ba,_a[va++]=xa,_a[va++]=ya,ya=e;var r=ba;e=xa;var i=32-wt(r)-1;r&=~(1<<i),n+=1;var a=32-wt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ba=1<<32-wt(t)+i|n<<i|r,xa=a+e}else ba=1<<a|n<<i|r,xa=e}function wa(e){e.return!==null&&(Sa(e,1),Ca(e,1,0))}function Ta(e){for(;e===ha;)ha=pa[--ma],pa[ma]=null,ga=pa[--ma],pa[ma]=null;for(;e===ya;)ya=_a[--va],_a[va]=null,xa=_a[--va],_a[va]=null,ba=_a[--va],_a[va]=null}var Ea=null,Da=null,Oa=!1,ka=null;function Aa(e,t){var n=tu(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function ja(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,Ea=e,Da=Mi(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Ea=e,Da=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=ya===null?null:{id:ba,overflow:xa},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=tu(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ea=e,Da=null,!0);default:return!1}}function Ma(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Na(e){if(Oa){var t=Da;if(t){var n=t;if(!ja(e,t)){if(Ma(e))throw Error(r(418));t=Mi(n.nextSibling);var i=Ea;t&&ja(e,t)?Aa(i,n):(e.flags=e.flags&-4097|2,Oa=!1,Ea=e)}}else{if(Ma(e))throw Error(r(418));e.flags=e.flags&-4097|2,Oa=!1,Ea=e}}}function Pa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ea=e}function Fa(e){if(e!==Ea)return!1;if(!Oa)return Pa(e),Oa=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Ti(e.type,e.memoizedProps)),t&&=Da){if(Ma(e))throw Ia(),Error(r(418));for(;t;)Aa(e,t),t=Mi(t.nextSibling)}if(Pa(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Da=Mi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Da=null}}else Da=Ea?Mi(e.stateNode.nextSibling):null;return!0}function Ia(){for(var e=Da;e;)e=Mi(e.nextSibling)}function La(){Da=Ea=null,Oa=!1}function Ra(e){ka===null?ka=[e]:ka.push(e)}var za=C.ReactCurrentBatchConfig;function Ba(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Va(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ha(e){var t=e._init;return t(e._payload)}function Ua(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=iu(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=cu(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===N&&Ha(i)===t.type)?(r=a(t,n.props),r.ref=Ba(e,t,n),r.return=e,r):(r=au(n.type,n.key,n.props,null,e.mode,r),r.ref=Ba(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=lu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ou(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=cu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=au(t.type,t.key,t.props,null,e.mode,n),n.ref=Ba(e,null,t),n.return=e,n;case T:return t=lu(t,e.mode,n),t.return=e,t;case N:var r=t._init;return f(e,r(t._payload),n)}if(ve(t)||P(t))return t=ou(t,e.mode,n,null),t.return=e,t;Va(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case N:return i=n._init,p(e,t,i(n._payload),r)}if(ve(n)||P(n))return i===null?d(e,t,n,r,null):null;Va(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case N:var a=r._init;return m(e,t,n,a(r._payload),i)}if(ve(r)||P(r))return e=e.get(n)||null,d(t,e,r,i,null);Va(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Oa&&Sa(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Oa&&Sa(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Oa&&Sa(r,h),l}function g(a,s,c,l){var u=P(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Oa&&Sa(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Oa&&Sa(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Oa&&Sa(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===N&&Ha(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ba(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===E?(r=ou(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=au(i.type,i.key,i.props,null,e.mode,o),o.ref=Ba(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=lu(i,e.mode,o),r.return=e,e=r}return s(e);case N:return l=i._init,_(e,r,l(i._payload),o)}if(ve(i))return h(e,r,i,o);if(P(i))return g(e,r,i,o);Va(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=cu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Wa=Ua(!0),Ga=Ua(!1),Ka=qi(null),qa=null,Ja=null,Ya=null;function Xa(){Ya=Ja=qa=null}function Za(e){var t=Ka.current;Ji(Ka),e._currentValue=t}function Qa(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function $a(e,t){qa=e,Ya=Ja=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Vs=!0),e.firstContext=null)}function eo(e){var t=e._currentValue;if(Ya!==e)if(e={context:e,memoizedValue:t,next:null},Ja===null){if(qa===null)throw Error(r(308));Ja=e,qa.dependencies={lanes:0,firstContext:e}}else Ja=Ja.next=e;return t}var to=null;function no(e){to===null?to=[e]:to.push(e)}function ro(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,no(t)):(n.next=i.next,i.next=n),t.interleaved=n,io(e,r)}function io(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ao=!1;function oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function so(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function co(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function lo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xc&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,io(e,n)}return i=r.interleaved,i===null?(t.next=t,no(r)):(t.next=i.next,i.next=t),r.interleaved=t,io(e,n)}function uo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zt(e,n)}}function fo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function po(e,t,n,r){var i=e.updateQueue;ao=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=F({},d,f);break a;case 2:ao=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);il|=o,e.lanes=o,e.memoizedState=d}}function mo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var ho={},go=qi(ho),_o=qi(ho),vo=qi(ho);function yo(e){if(e===ho)throw Error(r(174));return e}function bo(e,t){switch(Yi(vo,t),Yi(_o,e),Yi(go,ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:we(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=we(t,e)}Ji(go),Yi(go,t)}function xo(){Ji(go),Ji(_o),Ji(vo)}function So(e){yo(vo.current);var t=yo(go.current),n=we(t,e.type);t!==n&&(Yi(_o,e),Yi(go,n))}function Co(e){_o.current===e&&(Ji(go),Ji(_o))}var wo=qi(0);function To(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Eo=[];function Do(){for(var e=0;e<Eo.length;e++)Eo[e]._workInProgressVersionPrimary=null;Eo.length=0}var Oo=C.ReactCurrentDispatcher,ko=C.ReactCurrentBatchConfig,Ao=0,jo=null,Mo=null,No=null,Po=!1,Fo=!1,Io=0,Lo=0;function H(){throw Error(r(321))}function Ro(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!kr(e[n],t[n]))return!1;return!0}function zo(e,t,n,i,a,o){if(Ao=o,jo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Oo.current=e===null||e.memoizedState===null?Ss:Cs,e=n(i,a),Fo){o=0;do{if(Fo=!1,Io=0,25<=o)throw Error(r(301));o+=1,No=Mo=null,t.updateQueue=null,Oo.current=ws,e=n(i,a)}while(Fo)}if(Oo.current=xs,t=Mo!==null&&Mo.next!==null,Ao=0,No=Mo=jo=null,Po=!1,t)throw Error(r(300));return e}function Bo(){var e=Io!==0;return Io=0,e}function Vo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return No===null?jo.memoizedState=No=e:No=No.next=e,No}function Ho(){if(Mo===null){var e=jo.alternate;e=e===null?null:e.memoizedState}else e=Mo.next;var t=No===null?jo.memoizedState:No.next;if(t!==null)No=t,Mo=e;else{if(e===null)throw Error(r(310));Mo=e,e={memoizedState:Mo.memoizedState,baseState:Mo.baseState,baseQueue:Mo.baseQueue,queue:Mo.queue,next:null},No===null?jo.memoizedState=No=e:No=No.next=e}return No}function Uo(e,t){return typeof t==`function`?t(e):t}function Wo(e){var t=Ho(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Mo,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Ao&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,jo.lanes|=d,il|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,kr(i,t.memoizedState)||(Vs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,jo.lanes|=o,il|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Go(e){var t=Ho(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);kr(o,t.memoizedState)||(Vs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Ko(){}function qo(e,t){var n=jo,i=Ho(),a=t(),o=!kr(i.memoizedState,a);if(o&&(i.memoizedState=a,Vs=!0),i=i.queue,as(Xo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||No!==null&&No.memoizedState.tag&1){if(n.flags|=2048,es(9,Yo.bind(null,n,i,a,t),void 0,null),Zc===null)throw Error(r(349));Ao&30||Jo(n,t,a)}return a}function Jo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=jo.updateQueue,t===null?(t={lastEffect:null,stores:null},jo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Yo(e,t,n,r){t.value=n,t.getSnapshot=r,Zo(t)&&Qo(e)}function Xo(e,t,n){return n(function(){Zo(t)&&Qo(e)})}function Zo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!kr(e,n)}catch{return!0}}function Qo(e){var t=io(e,1);t!==null&&Cl(t,e,1,-1)}function $o(e){var t=Vo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Uo,lastRenderedState:e},t.queue=e,e=e.dispatch=_s.bind(null,jo,e),[t.memoizedState,e]}function es(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=jo.updateQueue,t===null?(t={lastEffect:null,stores:null},jo.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ts(){return Ho().memoizedState}function ns(e,t,n,r){var i=Vo();jo.flags|=e,i.memoizedState=es(1|t,n,void 0,r===void 0?null:r)}function rs(e,t,n,r){var i=Ho();r=r===void 0?null:r;var a=void 0;if(Mo!==null){var o=Mo.memoizedState;if(a=o.destroy,r!==null&&Ro(r,o.deps)){i.memoizedState=es(t,n,a,r);return}}jo.flags|=e,i.memoizedState=es(1|t,n,a,r)}function is(e,t){return ns(8390656,8,e,t)}function as(e,t){return rs(2048,8,e,t)}function os(e,t){return rs(4,2,e,t)}function ss(e,t){return rs(4,4,e,t)}function cs(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ls(e,t,n){return n=n==null?null:n.concat([e]),rs(4,4,cs.bind(null,t,e),n)}function us(){}function ds(e,t){var n=Ho();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ro(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function fs(e,t){var n=Ho();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Ro(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ps(e,t,n){return Ao&21?(kr(n,t)||(n=Ft(),jo.lanes|=n,il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Vs=!0),e.memoizedState=n)}function ms(e,t){var n=Bt;Bt=n!==0&&4>n?n:4,e(!0);var r=ko.transition;ko.transition={};try{e(!1),t()}finally{Bt=n,ko.transition=r}}function hs(){return Ho().memoizedState}function gs(e,t,n){var r=Sl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},vs(e))ys(t,n);else if(n=ro(e,t,n,r),n!==null){var i=xl();Cl(n,e,r,i),bs(n,t,r)}}function _s(e,t,n){var r=Sl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(vs(e))ys(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,kr(s,o)){var c=t.interleaved;c===null?(i.next=i,no(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=ro(e,t,i,r),n!==null&&(i=xl(),Cl(n,e,r,i),bs(n,t,r))}}function vs(e){var t=e.alternate;return e===jo||t!==null&&t===jo}function ys(e,t){Fo=Po=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function bs(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,zt(e,n)}}var xs={readContext:eo,useCallback:H,useContext:H,useEffect:H,useImperativeHandle:H,useInsertionEffect:H,useLayoutEffect:H,useMemo:H,useReducer:H,useRef:H,useState:H,useDebugValue:H,useDeferredValue:H,useTransition:H,useMutableSource:H,useSyncExternalStore:H,useId:H,unstable_isNewReconciler:!1},Ss={readContext:eo,useCallback:function(e,t){return Vo().memoizedState=[e,t===void 0?null:t],e},useContext:eo,useEffect:is,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),ns(4194308,4,cs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return ns(4,2,e,t)},useMemo:function(e,t){var n=Vo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Vo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=gs.bind(null,jo,e),[r.memoizedState,e]},useRef:function(e){var t=Vo();return e={current:e},t.memoizedState=e},useState:$o,useDebugValue:us,useDeferredValue:function(e){return Vo().memoizedState=e},useTransition:function(){var e=$o(!1),t=e[0];return e=ms.bind(null,e[1]),Vo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=jo,a=Vo();if(Oa){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Zc===null)throw Error(r(349));Ao&30||Jo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,is(Xo.bind(null,i,o,e),[e]),i.flags|=2048,es(9,Yo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Vo(),t=Zc.identifierPrefix;if(Oa){var n=xa,r=ba;n=(r&~(1<<32-wt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Io++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Lo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Cs={readContext:eo,useCallback:ds,useContext:eo,useEffect:as,useImperativeHandle:ls,useInsertionEffect:os,useLayoutEffect:ss,useMemo:fs,useReducer:Wo,useRef:ts,useState:function(){return Wo(Uo)},useDebugValue:us,useDeferredValue:function(e){return ps(Ho(),Mo.memoizedState,e)},useTransition:function(){return[Wo(Uo)[0],Ho().memoizedState]},useMutableSource:Ko,useSyncExternalStore:qo,useId:hs,unstable_isNewReconciler:!1},ws={readContext:eo,useCallback:ds,useContext:eo,useEffect:as,useImperativeHandle:ls,useInsertionEffect:os,useLayoutEffect:ss,useMemo:fs,useReducer:Go,useRef:ts,useState:function(){return Go(Uo)},useDebugValue:us,useDeferredValue:function(e){var t=Ho();return Mo===null?t.memoizedState=e:ps(t,Mo.memoizedState,e)},useTransition:function(){return[Go(Uo)[0],Ho().memoizedState]},useMutableSource:Ko,useSyncExternalStore:qo,useId:hs,unstable_isNewReconciler:!1};function Ts(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Es(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:F({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ds={isMounted:function(e){return(e=e._reactInternals)?it(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=xl(),i=Sl(e),a=co(r,i);a.payload=t,n!=null&&(a.callback=n),t=lo(e,a,i),t!==null&&(Cl(t,e,i,r),uo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=xl(),i=Sl(e),a=co(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=lo(e,a,i),t!==null&&(Cl(t,e,i,r),uo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xl(),r=Sl(e),i=co(n,r);i.tag=2,t!=null&&(i.callback=t),t=lo(e,i,r),t!==null&&(Cl(t,e,r,n),uo(t,e,r))}};function Os(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Ar(n,r)||!Ar(i,a):!0}function ks(e,t,n){var r=!1,i=Xi,a=t.contextType;return typeof a==`object`&&a?a=eo(a):(i=ta(t)?$i:Zi.current,r=t.contextTypes,a=(r=r!=null)?ea(e,i):Xi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ds,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function As(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ds.enqueueReplaceState(t,t.state,null)}function U(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},oo(e);var a=t.contextType;typeof a==`object`&&a?i.context=eo(a):(a=ta(t)?$i:Zi.current,i.context=ea(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Es(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Ds.enqueueReplaceState(i,i.state,null),po(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function js(e,t){try{var n=``,r=t;do n+=se(r),r=r.return;while(r);var i=n}catch(e){i=`
|
|
7
|
+
Error generating stack: `+e.message+`
|
|
8
|
+
`+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ms(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ns(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ps=typeof WeakMap==`function`?WeakMap:Map;function Fs(e,t,n){n=co(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fl||(fl=!0,pl=r),Ns(e,t)},n}function Is(e,t,n){n=co(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ns(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ns(e,t),typeof r!=`function`&&(ml===null?ml=new Set([this]):ml.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Ls(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ps;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Jl.bind(null,e,t,n),t.then(e,e))}function Rs(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null?!0:t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function zs(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=co(-1,1),t.tag=2,lo(n,t,1))),n.lanes|=1),e)}var Bs=C.ReactCurrentOwner,Vs=!1;function Hs(e,t,n,r){t.child=e===null?Ga(t,null,n,r):Wa(t,e.child,n,r)}function Us(e,t,n,r,i){n=n.render;var a=t.ref;return $a(t,i),r=zo(e,t,n,r,a,i),n=Bo(),e!==null&&!Vs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,lc(e,t,i)):(Oa&&n&&wa(t),t.flags|=1,Hs(e,t,r,i),t.child)}function Ws(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!nu(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Gs(e,t,a,r,i)):(e=au(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Ar:n,n(o,r)&&e.ref===t.ref)return lc(e,t,i)}return t.flags|=1,e=iu(a,r),e.ref=t.ref,e.return=t,t.child=e}function Gs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Ar(a,r)&&e.ref===t.ref)if(Vs=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Vs=!0);else return t.lanes=e.lanes,lc(e,t,i)}return Js(e,t,n,r,i)}function Ks(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Yi(tl,el),el|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Yi(tl,el),el|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Yi(tl,el),el|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Yi(tl,el),el|=r;return Hs(e,t,i,n),t.child}function qs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Js(e,t,n,r,i){var a=ta(n)?$i:Zi.current;return a=ea(t,a),$a(t,i),n=zo(e,t,n,r,a,i),r=Bo(),e!==null&&!Vs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,lc(e,t,i)):(Oa&&r&&wa(t),t.flags|=1,Hs(e,t,n,i),t.child)}function Ys(e,t,n,r,i){if(ta(n)){var a=!0;aa(t)}else a=!1;if($a(t,i),t.stateNode===null)cc(e,t),ks(t,n,r),U(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=eo(l):(l=ta(n)?$i:Zi.current,l=ea(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&As(t,o,r,l),ao=!1;var f=t.memoizedState;o.state=f,po(t,r,o,i),c=t.memoizedState,s!==r||f!==c||Qi.current||ao?(typeof u==`function`&&(Es(t,n,u,r),c=t.memoizedState),(s=ao||Os(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,so(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Ts(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=eo(c):(c=ta(n)?$i:Zi.current,c=ea(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&As(t,o,r,c),ao=!1,f=t.memoizedState,o.state=f,po(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||Qi.current||ao?(typeof p==`function`&&(Es(t,n,p,r),m=t.memoizedState),(l=ao||Os(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Xs(e,t,n,r,a,i)}function Xs(e,t,n,r,i,a){qs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&oa(t,n,!1),lc(e,t,a);r=t.stateNode,Bs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Wa(t,e.child,null,a),t.child=Wa(t,null,s,a)):Hs(e,t,s,a),t.memoizedState=r.state,i&&oa(t,n,!0),t.child}function Zs(e){var t=e.stateNode;t.pendingContext?ra(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ra(e,t.context,!1),bo(e,t.containerInfo)}function Qs(e,t,n,r,i){return La(),Ra(i),t.flags|=256,Hs(e,t,n,r),t.child}var $s={dehydrated:null,treeContext:null,retryLane:0};function ec(e){return{baseLanes:e,cachePool:null,transitions:null}}function tc(e,t,n){var r=t.pendingProps,i=wo.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Yi(wo,i&1),e===null)return Na(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=su(o,r,0,null),e=ou(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ec(n),t.memoizedState=$s,e):nc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return ic(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=iu(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=ou(a,o,n,null),a.flags|=2):a=iu(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?ec(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=$s,r}return a=e.child,e=a.sibling,r=iu(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function nc(e,t){return t=su({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function rc(e,t,n,r){return r!==null&&Ra(r),Wa(t,e.child,null,n),e=nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ic(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ms(Error(r(422))),rc(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=su({mode:`visible`,children:i.children},a,0,null),o=ou(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Wa(t,e.child,null,s),t.child.memoizedState=ec(s),t.memoizedState=$s,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return rc(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Ms(o,i,void 0),rc(e,t,s,i)}if(c=(s&e.childLanes)!==0,Vs||c){if(i=Zc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,io(e,a),Cl(i,e,a,-1))}return Ll(),i=Ms(Error(r(421))),rc(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Xl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Da=Mi(a.nextSibling),Ea=t,Oa=!0,ka=null,e!==null&&(_a[va++]=ba,_a[va++]=xa,_a[va++]=ya,ba=e.id,xa=e.overflow,ya=t),t=nc(t,i.children),t.flags|=4096,t)}function ac(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qa(e.return,t,n)}function oc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Hs(e,t,r.children,n),r=wo.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ac(e,n,t);else if(e.tag===19)ac(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Yi(wo,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&To(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),oc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&To(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}oc(t,!0,n,null,a);break;case`together`:oc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),il|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=iu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=iu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function uc(e,t,n){switch(t.tag){case 3:Zs(t),La();break;case 5:So(t);break;case 1:ta(t.type)&&aa(t);break;case 4:bo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Yi(Ka,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Yi(wo,wo.current&1),e=lc(e,t,n),e===null?null:e.sibling):tc(e,t,n):(Yi(wo,wo.current&1),t.flags|=128,null);Yi(wo,wo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Yi(wo,wo.current),r)break;return null;case 22:case 23:return t.lanes=0,Ks(e,t,n)}return lc(e,t,n)}var dc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},fc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,yo(go.current);var o=null;switch(n){case`input`:i=pe(e,i),r=pe(e,r),o=[];break;case`select`:i=F({},i,{value:void 0}),r=F({},r,{value:void 0}),o=[];break;case`textarea`:i=ye(e,i),r=ye(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Si)}Ne(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&si(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},pc=function(e,t,n,r){n!==r&&(t.flags|=4)};function mc(e,t){if(!Oa)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gc(e,t,n){var i=t.pendingProps;switch(Ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hc(t),null;case 1:return ta(t.type)&&na(),hc(t),null;case 3:return i=t.stateNode,xo(),Ji(Qi),Ji(Zi),Do(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Fa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ka!==null&&(Dl(ka),ka=null))),hc(t),null;case 5:Co(t);var o=yo(vo.current);if(n=t.type,e!==null&&t.stateNode!=null)fc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return hc(t),null}if(e=yo(go.current),Fa(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Fi]=t,i[Ii]=s,e=(t.mode&1)!=0,n){case`dialog`:si(`cancel`,i),si(`close`,i);break;case`iframe`:case`object`:case`embed`:si(`load`,i);break;case`video`:case`audio`:for(o=0;o<ri.length;o++)si(ri[o],i);break;case`source`:si(`error`,i);break;case`img`:case`image`:case`link`:si(`error`,i),si(`load`,i);break;case`details`:si(`toggle`,i);break;case`input`:B(i,s),si(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},si(`invalid`,i);break;case`textarea`:be(i,s),si(`invalid`,i)}for(var c in Ne(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&xi(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&xi(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&si(`scroll`,i)}switch(n){case`input`:ue(i),ge(i,s,!0);break;case`textarea`:ue(i),Se(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Si)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Ce(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Fi]=t,e[Ii]=i,dc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Pe(n,i),n){case`dialog`:si(`cancel`,e),si(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:si(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ri.length;o++)si(ri[o],e);o=i;break;case`source`:si(`error`,e),o=i;break;case`img`:case`image`:case`link`:si(`error`,e),si(`load`,e),o=i;break;case`details`:si(`toggle`,e),o=i;break;case`input`:B(e,i),o=pe(e,i),si(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=F({},i,{value:void 0}),si(`invalid`,e);break;case`textarea`:be(e,i),o=ye(e,i),si(`invalid`,e);break;default:o=i}for(s in Ne(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?je(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Ee(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&De(e,u):typeof u==`number`&&De(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&si(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:ue(e),ge(e,i,!1);break;case`textarea`:ue(e),Se(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+z(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&V(e,!!i.multiple,i.defaultValue,!0):V(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Si)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return hc(t),null;case 6:if(e&&t.stateNode!=null)pc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=yo(vo.current),yo(go.current),Fa(t)){if(i=t.stateNode,n=t.memoizedProps,i[Fi]=t,(s=i.nodeValue!==n)&&(e=Ea,e!==null))switch(e.tag){case 3:xi(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&xi(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Fi]=t,t.stateNode=i}return hc(t),null;case 13:if(Ji(wo),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Oa&&Da!==null&&t.mode&1&&!(t.flags&128))Ia(),La(),t.flags|=98560,s=!1;else if(s=Fa(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Fi]=t}else La(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hc(t),s=!1}else ka!==null&&(Dl(ka),ka=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||wo.current&1?nl===0&&(nl=3):Ll())),t.updateQueue!==null&&(t.flags|=4),hc(t),null);case 4:return xo(),e===null&&ui(t.stateNode.containerInfo),hc(t),null;case 10:return Za(t.type._context),hc(t),null;case 17:return ta(t.type)&&na(),hc(t),null;case 19:if(Ji(wo),s=t.memoizedState,s===null)return hc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)mc(s,!1);else{if(nl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=To(e),c!==null){for(t.flags|=128,mc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Yi(wo,wo.current&1|2),t.child}e=e.sibling}s.tail!==null&&mt()>ul&&(t.flags|=128,i=!0,mc(s,!1),t.lanes=4194304)}else{if(!i)if(e=To(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Oa)return hc(t),null}else 2*mt()-s.renderingStartTime>ul&&n!==1073741824&&(t.flags|=128,i=!0,mc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(hc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=mt(),t.sibling=null,n=wo.current,Yi(wo,i?n&1|2:n&1),t);case 22:case 23:return Nl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?el&1073741824&&(hc(t),t.subtreeFlags&6&&(t.flags|=8192)):hc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function _c(e,t){switch(Ta(t),t.tag){case 1:return ta(t.type)&&na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xo(),Ji(Qi),Ji(Zi),Do(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Co(t),null;case 13:if(Ji(wo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));La()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ji(wo),null;case 4:return xo(),null;case 10:return Za(t.type._context),null;case 22:case 23:return Nl(),null;case 24:return null;default:return null}}var vc=!1,yc=!1,bc=typeof WeakSet==`function`?WeakSet:Set,W=null;function xc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){ql(e,t,n)}else n.current=null}function Sc(e,t,n){try{n()}catch(n){ql(e,t,n)}}var Cc=!1;function wc(e,t){if(Ci=pn,e=Pr(),Fr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(wi={focusedElem:e,selectionRange:n},pn=!1,W=t;W!==null;)if(t=W,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,W=e;else for(;W!==null;){t=W;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ts(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){ql(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,W=e;break}W=t.return}return h=Cc,Cc=!1,h}function Tc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Sc(t,n,a)}i=i.next}while(i!==r)}}function Ec(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Dc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Oc(e){var t=e.alternate;t!==null&&(e.alternate=null,Oc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fi],delete t[Ii],delete t[Ri],delete t[zi],delete t[Bi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kc(e){return e.tag===5||e.tag===3||e.tag===4}function Ac(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||kc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Si));else if(r!==4&&(e=e.child,e!==null))for(jc(e,t,n),e=e.sibling;e!==null;)jc(e,t,n),e=e.sibling}function Mc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}var Nc=null,Pc=!1;function Fc(e,t,n){for(n=n.child;n!==null;)Ic(e,t,n),n=n.sibling}function Ic(e,t,n){if(St&&typeof St.onCommitFiberUnmount==`function`)try{St.onCommitFiberUnmount(xt,n)}catch{}switch(n.tag){case 5:yc||xc(n,t);case 6:var r=Nc,i=Pc;Nc=null,Fc(e,t,n),Nc=r,Pc=i,Nc!==null&&(Pc?(e=Nc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nc.removeChild(n.stateNode));break;case 18:Nc!==null&&(Pc?(e=Nc,n=n.stateNode,e.nodeType===8?ji(e.parentNode,n):e.nodeType===1&&ji(e,n),dn(e)):ji(Nc,n.stateNode));break;case 4:r=Nc,i=Pc,Nc=n.stateNode.containerInfo,Pc=!0,Fc(e,t,n),Nc=r,Pc=i;break;case 0:case 11:case 14:case 15:if(!yc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Sc(n,t,o),i=i.next}while(i!==r)}Fc(e,t,n);break;case 1:if(!yc&&(xc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){ql(n,t,e)}Fc(e,t,n);break;case 21:Fc(e,t,n);break;case 22:n.mode&1?(yc=(r=yc)||n.memoizedState!==null,Fc(e,t,n),yc=r):Fc(e,t,n);break;default:Fc(e,t,n)}}function Lc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bc),t.forEach(function(t){var r=Zl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Rc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Nc=c.stateNode,Pc=!1;break a;case 3:Nc=c.stateNode.containerInfo,Pc=!0;break a;case 4:Nc=c.stateNode.containerInfo,Pc=!0;break a}c=c.return}if(Nc===null)throw Error(r(160));Ic(o,s,a),Nc=null,Pc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){ql(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zc(t,e),t=t.sibling}function zc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rc(t,e),Bc(e),i&4){try{Tc(3,e,e.return),Ec(3,e)}catch(t){ql(e,e.return,t)}try{Tc(5,e,e.return)}catch(t){ql(e,e.return,t)}}break;case 1:Rc(t,e),Bc(e),i&512&&n!==null&&xc(n,n.return);break;case 5:if(Rc(t,e),Bc(e),i&512&&n!==null&&xc(n,n.return),e.flags&32){var a=e.stateNode;try{De(a,``)}catch(t){ql(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&me(a,o),Pe(c,s);var u=Pe(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?je(a,f):d===`dangerouslySetInnerHTML`?Ee(a,f):d===`children`?De(a,f):S(a,d,f,u)}switch(c){case`input`:he(a,o);break;case`textarea`:xe(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?V(a,!!o.multiple,o.multiple?[]:``,!1):V(a,!!o.multiple,o.defaultValue,!0)):V(a,!!o.multiple,m,!1)}a[Ii]=o}catch(t){ql(e,e.return,t)}}break;case 6:if(Rc(t,e),Bc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){ql(e,e.return,t)}}break;case 3:if(Rc(t,e),Bc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{dn(t.containerInfo)}catch(t){ql(e,e.return,t)}break;case 4:Rc(t,e),Bc(e);break;case 13:Rc(t,e),Bc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(ll=mt())),i&4&&Lc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(yc=(u=yc)||d,Rc(t,e),yc=u):Rc(t,e),Bc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(W=e,d=e.child;d!==null;){for(f=W=d;W!==null;){switch(p=W,m=p.child,p.tag){case 0:case 11:case 14:case 15:Tc(4,p,p.return);break;case 1:xc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){ql(i,n,e)}}break;case 5:xc(p,p.return);break;case 22:if(p.memoizedState!==null){Wc(f);continue}}m===null?Wc(f):(m.return=p,W=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Ae(`display`,s))}catch(t){ql(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){ql(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Rc(t,e),Bc(e),i&4&&Lc(e);break;case 21:break;default:Rc(t,e),Bc(e)}}function Bc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(kc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(De(a,``),i.flags&=-33),Mc(e,Ac(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;jc(e,Ac(e),o);break;default:throw Error(r(161))}}catch(t){ql(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vc(e,t,n){W=e,Hc(e,t,n)}function Hc(e,t,n){for(var r=(e.mode&1)!=0;W!==null;){var i=W,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||vc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||yc;s=vc;var l=yc;if(vc=o,(yc=c)&&!l)for(W=i;W!==null;)o=W,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Gc(i):(c.return=o,W=c);for(;a!==null;)W=a,Hc(a,t,n),a=a.sibling;W=i,vc=s,yc=l}Uc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,W=a):Uc(e,t,n)}}function Uc(e){for(;W!==null;){var t=W;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:yc||Ec(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!yc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Ts(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&mo(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}mo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&dn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}yc||t.flags&512&&Dc(t)}catch(e){ql(t,t.return,e)}}if(t===e){W=null;break}if(n=t.sibling,n!==null){n.return=t.return,W=n;break}W=t.return}}function Wc(e){for(;W!==null;){var t=W;if(t===e){W=null;break}var n=t.sibling;if(n!==null){n.return=t.return,W=n;break}W=t.return}}function Gc(e){for(;W!==null;){var t=W;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ec(4,t)}catch(e){ql(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){ql(t,i,e)}}var a=t.return;try{Dc(t)}catch(e){ql(t,a,e)}break;case 5:var o=t.return;try{Dc(t)}catch(e){ql(t,o,e)}}}catch(e){ql(t,t.return,e)}if(t===e){W=null;break}var s=t.sibling;if(s!==null){s.return=t.return,W=s;break}W=t.return}}var Kc=Math.ceil,qc=C.ReactCurrentDispatcher,Jc=C.ReactCurrentOwner,Yc=C.ReactCurrentBatchConfig,Xc=0,Zc=null,Qc=null,$c=0,el=0,tl=qi(0),nl=0,rl=null,il=0,al=0,ol=0,sl=null,cl=null,ll=0,ul=1/0,dl=null,fl=!1,pl=null,ml=null,hl=!1,gl=null,_l=0,G=0,vl=null,yl=-1,bl=0;function xl(){return Xc&6?mt():yl===-1?yl=mt():yl}function Sl(e){return e.mode&1?Xc&2&&$c!==0?$c&-$c:za.transition===null?(e=Bt,e===0?(e=window.event,e=e===void 0?16:yn(e.type),e):e):(bl===0&&(bl=Ft()),bl):1}function Cl(e,t,n,i){if(50<G)throw G=0,vl=null,Error(r(185));Lt(e,n,i),(!(Xc&2)||e!==Zc)&&(e===Zc&&(!(Xc&2)&&(al|=n),nl===4&&kl(e,$c)),wl(e,i),n===1&&Xc===0&&!(t.mode&1)&&(ul=mt()+500,ca&&fa()))}function wl(e,t){var n=e.callbackNode;Nt(e,t);var r=jt(e,e===Zc?$c:0);if(r===0)n!==null&&dt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&dt(n),t===1)e.tag===0?da(Al.bind(null,e)):ua(Al.bind(null,e)),ki(function(){!(Xc&6)&&fa()}),n=null;else{switch(Vt(r)){case 1:n=gt;break;case 4:n=_t;break;case 16:n=vt;break;case 536870912:n=bt;break;default:n=vt}n=$l(n,Tl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Tl(e,t){if(yl=-1,bl=0,Xc&6)throw Error(r(327));var n=e.callbackNode;if(Gl()&&e.callbackNode!==n)return null;var i=jt(e,e===Zc?$c:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Rl(e,i);else{t=i;var a=Xc;Xc|=2;var o=Il();(Zc!==e||$c!==t)&&(dl=null,ul=mt()+500,Pl(e,t));do try{Bl();break}catch(t){Fl(e,t)}while(1);Xa(),qc.current=o,Xc=a,Qc===null?(Zc=null,$c=0,t=nl):t=0}if(t!==0){if(t===2&&(a=Pt(e),a!==0&&(i=a,t=El(e,a))),t===1)throw n=rl,Pl(e,0),kl(e,i),wl(e,mt()),n;if(t===6)kl(e,i);else{if(a=e.current.alternate,!(i&30)&&!Ol(a)&&(t=Rl(e,i),t===2&&(o=Pt(e),o!==0&&(i=o,t=El(e,o))),t===1))throw n=rl,Pl(e,0),kl(e,i),wl(e,mt()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Ul(e,cl,dl);break;case 3:if(kl(e,i),(i&130023424)===i&&(t=ll+500-mt(),10<t)){if(jt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){xl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ei(Ul.bind(null,e,cl,dl),t);break}Ul(e,cl,dl);break;case 4:if(kl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-wt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=mt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Kc(i/1960))-i,10<i){e.timeoutHandle=Ei(Ul.bind(null,e,cl,dl),i);break}Ul(e,cl,dl);break;case 5:Ul(e,cl,dl);break;default:throw Error(r(329))}}}return wl(e,mt()),e.callbackNode===n?Tl.bind(null,e):null}function El(e,t){var n=sl;return e.current.memoizedState.isDehydrated&&(Pl(e,t).flags|=256),e=Rl(e,t),e!==2&&(t=cl,cl=n,t!==null&&Dl(t)),e}function Dl(e){cl===null?cl=e:cl.push.apply(cl,e)}function Ol(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!kr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function kl(e,t){for(t&=~ol,t&=~al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-wt(t),r=1<<n;e[n]=-1,t&=~r}}function Al(e){if(Xc&6)throw Error(r(327));Gl();var t=jt(e,0);if(!(t&1))return wl(e,mt()),null;var n=Rl(e,t);if(e.tag!==0&&n===2){var i=Pt(e);i!==0&&(t=i,n=El(e,i))}if(n===1)throw n=rl,Pl(e,0),kl(e,t),wl(e,mt()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ul(e,cl,dl),wl(e,mt()),null}function jl(e,t){var n=Xc;Xc|=1;try{return e(t)}finally{Xc=n,Xc===0&&(ul=mt()+500,ca&&fa())}}function Ml(e){gl!==null&&gl.tag===0&&!(Xc&6)&&Gl();var t=Xc;Xc|=1;var n=Yc.transition,r=Bt;try{if(Yc.transition=null,Bt=1,e)return e()}finally{Bt=r,Yc.transition=n,Xc=t,!(Xc&6)&&fa()}}function Nl(){el=tl.current,Ji(tl)}function Pl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Di(n)),Qc!==null)for(n=Qc.return;n!==null;){var r=n;switch(Ta(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&na();break;case 3:xo(),Ji(Qi),Ji(Zi),Do();break;case 5:Co(r);break;case 4:xo();break;case 13:Ji(wo);break;case 19:Ji(wo);break;case 10:Za(r.type._context);break;case 22:case 23:Nl()}n=n.return}if(Zc=e,Qc=e=iu(e.current,null),$c=el=t,nl=0,rl=null,ol=al=il=0,cl=sl=null,to!==null){for(t=0;t<to.length;t++)if(n=to[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}to=null}return e}function Fl(e,t){do{var n=Qc;try{if(Xa(),Oo.current=xs,Po){for(var i=jo.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Po=!1}if(Ao=0,No=Mo=jo=null,Fo=!1,Io=0,Jc.current=null,n===null||n.return===null){nl=1,rl=t,Qc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=$c,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Rs(s);if(m!==null){m.flags&=-257,zs(m,s,c,o,t),m.mode&1&&Ls(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Ls(o,u,t),Ll();break a}l=Error(r(426))}}else if(Oa&&c.mode&1){var _=Rs(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),zs(_,s,c,o,t),Ra(js(l,c));break a}}o=l=js(l,c),nl!==4&&(nl=2),sl===null?sl=[o]:sl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Fs(o,l,t);fo(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(ml===null||!ml.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Is(o,c,t);fo(o,x);break a}}o=o.return}while(o!==null)}Hl(n)}catch(e){t=e,Qc===n&&n!==null&&(Qc=n=n.return);continue}break}while(1)}function Il(){var e=qc.current;return qc.current=xs,e===null?xs:e}function Ll(){(nl===0||nl===3||nl===2)&&(nl=4),Zc===null||!(il&268435455)&&!(al&268435455)||kl(Zc,$c)}function Rl(e,t){var n=Xc;Xc|=2;var i=Il();(Zc!==e||$c!==t)&&(dl=null,Pl(e,t));do try{zl();break}catch(t){Fl(e,t)}while(1);if(Xa(),Xc=n,qc.current=i,Qc!==null)throw Error(r(261));return Zc=null,$c=0,nl}function zl(){for(;Qc!==null;)Vl(Qc)}function Bl(){for(;Qc!==null&&!ft();)Vl(Qc)}function Vl(e){var t=Ql(e.alternate,e,el);e.memoizedProps=e.pendingProps,t===null?Hl(e):Qc=t,Jc.current=null}function Hl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=_c(n,t),n!==null){n.flags&=32767,Qc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{nl=6,Qc=null;return}}else if(n=gc(n,t,el),n!==null){Qc=n;return}if(t=t.sibling,t!==null){Qc=t;return}Qc=t=e}while(t!==null);nl===0&&(nl=5)}function Ul(e,t,n){var r=Bt,i=Yc.transition;try{Yc.transition=null,Bt=1,Wl(e,t,n,r)}finally{Yc.transition=i,Bt=r}return null}function Wl(e,t,n,i){do Gl();while(gl!==null);if(Xc&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Rt(e,o),e===Zc&&(Qc=Zc=null,$c=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||hl||(hl=!0,$l(vt,function(){return Gl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Yc.transition,Yc.transition=null;var s=Bt;Bt=1;var c=Xc;Xc|=4,Jc.current=null,wc(e,n),zc(n,e),Ir(wi),pn=!!Ci,wi=Ci=null,e.current=n,Vc(n,e,a),pt(),Xc=c,Bt=s,Yc.transition=o}else e.current=n;if(hl&&(hl=!1,gl=e,_l=a),o=e.pendingLanes,o===0&&(ml=null),Ct(n.stateNode,i),wl(e,mt()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(fl)throw fl=!1,e=pl,pl=null,e;return _l&1&&e.tag!==0&&Gl(),o=e.pendingLanes,o&1?e===vl?G++:(G=0,vl=e):G=0,fa(),null}function Gl(){if(gl!==null){var e=Vt(_l),t=Yc.transition,n=Bt;try{if(Yc.transition=null,Bt=16>e?16:e,gl===null)var i=!1;else{if(e=gl,gl=null,_l=0,Xc&6)throw Error(r(331));var a=Xc;for(Xc|=4,W=e.current;W!==null;){var o=W,s=o.child;if(W.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(W=u;W!==null;){var d=W;switch(d.tag){case 0:case 11:case 15:Tc(8,d,o)}var f=d.child;if(f!==null)f.return=d,W=f;else for(;W!==null;){d=W;var p=d.sibling,m=d.return;if(Oc(d),d===u){W=null;break}if(p!==null){p.return=m,W=p;break}W=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}W=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,W=s;else b:for(;W!==null;){if(o=W,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Tc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,W=v;break b}W=o.return}}var y=e.current;for(W=y;W!==null;){s=W;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,W=b;else b:for(s=y;W!==null;){if(c=W,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Ec(9,c)}}catch(e){ql(c,c.return,e)}if(c===s){W=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,W=x;break b}W=c.return}}if(Xc=a,fa(),St&&typeof St.onPostCommitFiberRoot==`function`)try{St.onPostCommitFiberRoot(xt,e)}catch{}i=!0}return i}finally{Bt=n,Yc.transition=t}}return!1}function Kl(e,t,n){t=js(n,t),t=Fs(e,t,1),e=lo(e,t,1),t=xl(),e!==null&&(Lt(e,1,t),wl(e,t))}function ql(e,t,n){if(e.tag===3)Kl(e,e,n);else for(;t!==null;){if(t.tag===3){Kl(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ml===null||!ml.has(r))){e=js(n,e),e=Is(t,e,1),t=lo(t,e,1),e=xl(),t!==null&&(Lt(t,1,e),wl(t,e));break}}t=t.return}}function Jl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=xl(),e.pingedLanes|=e.suspendedLanes&n,Zc===e&&($c&n)===n&&(nl===4||nl===3&&($c&130023424)===$c&&500>mt()-ll?Pl(e,0):ol|=n),wl(e,t)}function Yl(e,t){t===0&&(e.mode&1?(t=kt,kt<<=1,!(kt&130023424)&&(kt=4194304)):t=1);var n=xl();e=io(e,t),e!==null&&(Lt(e,t,n),wl(e,n))}function Xl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yl(e,n)}function Zl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Yl(e,n)}var Ql=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qi.current)Vs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Vs=!1,uc(e,t,n);Vs=!!(e.flags&131072)}else Vs=!1,Oa&&t.flags&1048576&&Ca(t,ga,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;cc(e,t),e=t.pendingProps;var a=ea(t,Zi.current);$a(t,n),a=zo(null,t,i,e,a,n);var o=Bo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ta(i)?(o=!0,aa(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,oo(t),a.updater=Ds,t.stateNode=a,a._reactInternals=t,U(t,i,e,n),t=Xs(null,t,i,!0,o,n)):(t.tag=0,Oa&&o&&wa(t),Hs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(cc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=ru(i),e=Ts(i,e),a){case 0:t=Js(null,t,i,e,n);break a;case 1:t=Ys(null,t,i,e,n);break a;case 11:t=Us(null,t,i,e,n);break a;case 14:t=Ws(null,t,i,Ts(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(i,a),Js(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(i,a),Ys(e,t,i,a,n);case 3:a:{if(Zs(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,so(e,t),po(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=js(Error(r(423)),t),t=Qs(e,t,i,n,a);break a}else if(i!==a){a=js(Error(r(424)),t),t=Qs(e,t,i,n,a);break a}else for(Da=Mi(t.stateNode.containerInfo.firstChild),Ea=t,Oa=!0,ka=null,n=Ga(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(La(),i===a){t=lc(e,t,n);break a}Hs(e,t,i,n)}t=t.child}return t;case 5:return So(t),e===null&&Na(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ti(i,a)?s=null:o!==null&&Ti(i,o)&&(t.flags|=32),qs(e,t),Hs(e,t,s,n),t.child;case 6:return e===null&&Na(t),null;case 13:return tc(e,t,n);case 4:return bo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Wa(t,null,i,n):Hs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(i,a),Us(e,t,i,a,n);case 7:return Hs(e,t,t.pendingProps,n),t.child;case 8:return Hs(e,t,t.pendingProps.children,n),t.child;case 12:return Hs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Yi(Ka,i._currentValue),i._currentValue=s,o!==null)if(kr(o.value,s)){if(o.children===a.children&&!Qi.current){t=lc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=co(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Qa(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),Qa(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Hs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,$a(t,n),a=eo(a),i=i(a),t.flags|=1,Hs(e,t,i,n),t.child;case 14:return i=t.type,a=Ts(i,t.pendingProps),a=Ts(i.type,a),Ws(e,t,i,a,n);case 15:return Gs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ts(i,a),cc(e,t),t.tag=1,ta(i)?(e=!0,aa(t)):e=!1,$a(t,n),ks(t,i,a),U(t,i,a,n),Xs(null,t,i,!0,e,n);case 19:return sc(e,t,n);case 22:return Ks(e,t,n)}throw Error(r(156,t.tag))};function $l(e,t){return ut(e,t)}function eu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tu(e,t,n,r){return new eu(e,t,n,r)}function nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ru(e){if(typeof e==`function`)return nu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===A)return 11;if(e===M)return 14}return 2}function iu(e,t){var n=e.alternate;return n===null?(n=tu(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function au(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)nu(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return ou(n.children,a,o,t);case D:s=8,a|=8;break;case O:return e=tu(12,n,t,a|2),e.elementType=O,e.lanes=o,e;case j:return e=tu(13,n,t,a),e.elementType=j,e.lanes=o,e;case te:return e=tu(19,n,t,a),e.elementType=te,e.lanes=o,e;case ne:return su(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case k:s=10;break a;case ee:s=9;break a;case A:s=11;break a;case M:s=14;break a;case N:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=tu(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function ou(e,t,n,r){return e=tu(7,e,r,t),e.lanes=n,e}function su(e,t,n,r){return e=tu(22,e,r,t),e.elementType=ne,e.lanes=n,e.stateNode={isHidden:!1},e}function cu(e,t,n){return e=tu(6,e,null,t),e.lanes=n,e}function lu(e,t,n){return t=tu(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=It(0),this.expirationTimes=It(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=It(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function du(e,t,n,r,i,a,o,s,c){return e=new uu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=tu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},oo(a),e}function fu(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function pu(e){if(!e)return Xi;e=e._reactInternals;a:{if(it(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(ta(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(ta(n))return ia(e,n,t)}return t}function mu(e,t,n,r,i,a,o,s,c){return e=du(n,r,!0,e,i,a,o,s,c),e.context=pu(null),n=e.current,r=xl(),i=Sl(n),a=co(r,i),a.callback=t??null,lo(n,a,i),e.current.lanes=i,Lt(e,i,r),wl(e,r),e}function hu(e,t,n,r){var i=t.current,a=xl(),o=Sl(i);return n=pu(n),t.context===null?t.context=n:t.pendingContext=n,t=co(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=lo(i,t,o),e!==null&&(Cl(e,i,o,a),uo(e,i,o)),o}function gu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function _u(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function vu(e,t){_u(e,t),(e=e.alternate)&&_u(e,t)}function yu(){return null}var bu=typeof reportError==`function`?reportError:function(e){console.error(e)};function xu(e){this._internalRoot=e}Su.prototype.render=xu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));hu(e,t,null,null)},Su.prototype.unmount=xu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ml(function(){hu(null,e,null,null)}),t[Li]=null}};function Su(e){this._internalRoot=e}Su.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<en.length&&t!==0&&t<en[n].priority;n++);en.splice(n,0,e),n===0&&on(e)}};function Cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Tu(){}function Eu(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=gu(o);a.call(e)}}var o=mu(t,r,e,0,null,!1,!1,``,Tu);return e._reactRootContainer=o,e[Li]=o.current,ui(e.nodeType===8?e.parentNode:e),Ml(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=gu(c);s.call(e)}}var c=du(e,0,!1,null,null,!1,!1,``,Tu);return e._reactRootContainer=c,e[Li]=c.current,ui(e.nodeType===8?e.parentNode:e),Ml(function(){hu(t,c,n,r)}),c}function Du(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=gu(o);s.call(e)}}hu(t,o,e,i)}else o=Eu(n,t,e,i,r);return gu(o)}Ht=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=At(t.pendingLanes);n!==0&&(zt(t,n|1),wl(t,mt()),!(Xc&6)&&(ul=mt()+500,fa()))}break;case 13:Ml(function(){var t=io(e,1);t!==null&&Cl(t,e,1,xl())}),vu(e,1)}},Ut=function(e){if(e.tag===13){var t=io(e,134217728);t!==null&&Cl(t,e,134217728,xl()),vu(e,134217728)}},Wt=function(e){if(e.tag===13){var t=Sl(e),n=io(e,t);n!==null&&Cl(n,e,t,xl()),vu(e,t)}},Gt=function(){return Bt},Kt=function(e,t){var n=Bt;try{return Bt=e,t()}finally{Bt=n}},Le=function(e,t,n){switch(t){case`input`:if(he(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Wi(i);if(!a)throw Error(r(90));de(i),he(i,a)}}}break;case`textarea`:xe(e,n);break;case`select`:t=n.value,t!=null&&V(e,!!n.multiple,t,!1)}},Ue=jl,We=Ml;var Ou={usingClientEntryPoint:!1,Events:[Hi,Ui,Wi,Ve,He,jl]},ku={findFiberByHostInstance:Vi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},Au={bundleType:ku.bundleType,version:ku.version,rendererPackageName:ku.rendererPackageName,rendererConfig:ku.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ct(e),e===null?null:e.stateNode},findFiberByHostInstance:ku.findFiberByHostInstance||yu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ju.isDisabled&&ju.supportsFiber)try{xt=ju.inject(Au),St=ju}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ou,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Cu(t))throw Error(r(200));return fu(e,t,null,n)},e.createRoot=function(e,t){if(!Cu(e))throw Error(r(299));var n=!1,i=``,a=bu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=du(e,1,!1,null,null,n,!1,i,a),e[Li]=t.current,ui(e.nodeType===8?e.parentNode:e),new xu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=ct(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Ml(e)},e.hydrate=function(e,t,n){if(!wu(t))throw Error(r(200));return Du(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!Cu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=bu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=mu(t,null,e,1,n??null,a,!1,o,s),e[Li]=t.current,ui(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Su(t)},e.render=function(e,t,n){if(!wu(t))throw Error(r(200));return Du(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!wu(e))throw Error(r(40));return e._reactRootContainer?(Ml(function(){Du(null,null,e,!1,function(){e._reactRootContainer=null,e[Li]=null})}),!0):!1},e.unstable_batchedUpdates=jl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!wu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Du(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=h();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),_=class e extends CustomEvent{static{this.TYPE=`model-set`}constructor(t,n,r){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t,hasModel:r}}),this.component=t,this.complete=n}},v=class e extends CustomEvent{static{this.TYPE=`session-changed`}constructor(t,n){super(e.TYPE,{bubbles:!0,composed:!0,detail:{complete:n,component:t}}),this.component=t,this.complete=n}},y=()=>null,b=new Proxy(y,{get:()=>y}),x=typeof global==`object`&&global&&global.Object===Object&&global,S=typeof self==`object`&&self&&self.Object===Object&&self,C=x||S||Function(`return this`)(),w=C.Symbol,T=Object.prototype,E=T.hasOwnProperty,D=T.toString,O=w?w.toStringTag:void 0;function k(e){var t=E.call(e,O),n=e[O];try{e[O]=void 0;var r=!0}catch{}var i=D.call(e);return r&&(t?e[O]=n:delete e[O]),i}var ee=Object.prototype.toString;function A(e){return ee.call(e)}var j=`[object Null]`,te=`[object Undefined]`,M=w?w.toStringTag:void 0;function N(e){return e==null?e===void 0?te:j:M&&M in Object(e)?k(e):A(e)}function ne(e){return typeof e==`object`&&!!e}var re=`[object Symbol]`;function P(e){return typeof e==`symbol`||ne(e)&&N(e)==re}function F(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ie=Array.isArray,ae=1/0,oe=w?w.prototype:void 0,I=oe?oe.toString:void 0;function se(e){if(typeof e==`string`)return e;if(ie(e))return F(e,se)+``;if(P(e))return I?I.call(e):``;var t=e+``;return t==`0`&&1/e==-ae?`-0`:t}var L=/\s/;function R(e){for(var t=e.length;t--&&L.test(e.charAt(t)););return t}var z=/^\s+/;function ce(e){return e&&e.slice(0,R(e)+1).replace(z,``)}function le(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}var ue=NaN,de=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,pe=/^0o[0-7]+$/i,B=parseInt;function me(e){if(typeof e==`number`)return e;if(P(e))return ue;if(le(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=le(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=ce(e);var n=fe.test(e);return n||pe.test(e)?B(e.slice(2),n?2:8):de.test(e)?ue:+e}var he=1/0,ge=17976931348623157e292;function _e(e){return e?(e=me(e),e===he||e===-he?(e<0?-1:1)*ge:e===e?e:0):e===0?e:0}function ve(e){var t=_e(e),n=t%1;return t===t?n?t-n:t:0}function V(e){return e}var ye=`[object AsyncFunction]`,be=`[object Function]`,xe=`[object GeneratorFunction]`,Se=`[object Proxy]`;function Ce(e){if(!le(e))return!1;var t=N(e);return t==be||t==xe||t==ye||t==Se}var we=C[`__core-js_shared__`],Te=function(){var e=/[^.]+$/.exec(we&&we.keys&&we.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function Ee(e){return!!Te&&Te in e}var De=Function.prototype.toString;function Oe(e){if(e!=null){try{return De.call(e)}catch{}try{return e+``}catch{}}return``}var ke=/[\\^$.*+?()[\]{}|]/g,Ae=/^\[object .+?Constructor\]$/,je=Function.prototype,Me=Object.prototype,Ne=je.toString,Pe=Me.hasOwnProperty,Fe=RegExp(`^`+Ne.call(Pe).replace(ke,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Ie(e){return!le(e)||Ee(e)?!1:(Ce(e)?Fe:Ae).test(Oe(e))}function Le(e,t){return e?.[t]}function Re(e,t){var n=Le(e,t);return Ie(n)?n:void 0}var ze=Re(C,`WeakMap`);function Be(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Ve=800,He=16,Ue=Date.now;function We(e){var t=0,n=0;return function(){var r=Ue(),i=He-(r-n);if(n=r,i>0){if(++t>=Ve)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Ge(e){return function(){return e}}var Ke=function(){try{var e=Re(Object,`defineProperty`);return e({},``,{}),e}catch{}}(),qe=We(Ke?function(e,t){return Ke(e,`toString`,{configurable:!0,enumerable:!1,value:Ge(t),writable:!0})}:V),Je=9007199254740991,Ye=/^(?:0|[1-9]\d*)$/;function Xe(e,t){var n=typeof e;return t??=Je,!!t&&(n==`number`||n!=`symbol`&&Ye.test(e))&&e>-1&&e%1==0&&e<t}function Ze(e,t){return e===t||e!==e&&t!==t}var Qe=Math.max;function $e(e,t,n){return t=Qe(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Qe(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),Be(e,this,s)}}function et(e,t){return qe($e(e,t,V),e+``)}var tt=9007199254740991;function nt(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=tt}function rt(e){return e!=null&&nt(e.length)&&!Ce(e)}var it=Object.prototype;function at(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||it)}function ot(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var st=`[object Arguments]`;function ct(e){return ne(e)&&N(e)==st}var lt=Object.prototype,ut=lt.hasOwnProperty,dt=lt.propertyIsEnumerable,ft=ct(function(){return arguments}())?ct:function(e){return ne(e)&&ut.call(e,`callee`)&&!dt.call(e,`callee`)};function pt(){return!1}var mt=typeof exports==`object`&&exports&&!exports.nodeType&&exports,ht=mt&&typeof module==`object`&&module&&!module.nodeType&&module,gt=ht&&ht.exports===mt?C.Buffer:void 0,_t=(gt?gt.isBuffer:void 0)||pt,vt=`[object Arguments]`,yt=`[object Array]`,bt=`[object Boolean]`,xt=`[object Date]`,St=`[object Error]`,Ct=`[object Function]`,wt=`[object Map]`,Tt=`[object Number]`,Et=`[object Object]`,Dt=`[object RegExp]`,Ot=`[object Set]`,kt=`[object String]`,At=`[object WeakMap]`,jt=`[object ArrayBuffer]`,Mt=`[object DataView]`,Nt=`[object Float32Array]`,Pt=`[object Float64Array]`,Ft=`[object Int8Array]`,It=`[object Int16Array]`,Lt=`[object Int32Array]`,Rt=`[object Uint8Array]`,zt=`[object Uint8ClampedArray]`,Bt=`[object Uint16Array]`,Vt=`[object Uint32Array]`,Ht={};Ht[Nt]=Ht[Pt]=Ht[Ft]=Ht[It]=Ht[Lt]=Ht[Rt]=Ht[zt]=Ht[Bt]=Ht[Vt]=!0,Ht[vt]=Ht[yt]=Ht[jt]=Ht[bt]=Ht[Mt]=Ht[xt]=Ht[St]=Ht[Ct]=Ht[wt]=Ht[Tt]=Ht[Et]=Ht[Dt]=Ht[Ot]=Ht[kt]=Ht[At]=!1;function Ut(e){return ne(e)&&nt(e.length)&&!!Ht[N(e)]}function Wt(e){return function(t){return e(t)}}var Gt=typeof exports==`object`&&exports&&!exports.nodeType&&exports,Kt=Gt&&typeof module==`object`&&module&&!module.nodeType&&module,qt=Kt&&Kt.exports===Gt&&x.process,Jt=function(){try{return Kt&&Kt.require&&Kt.require(`util`).types||qt&&qt.binding&&qt.binding(`util`)}catch{}}(),Yt=Jt&&Jt.isTypedArray,Xt=Yt?Wt(Yt):Ut,Zt=Object.prototype.hasOwnProperty;function Qt(e,t){var n=ie(e),r=!n&&ft(e),i=!n&&!r&&_t(e),a=!n&&!r&&!i&&Xt(e),o=n||r||i||a,s=o?ot(e.length,String):[],c=s.length;for(var l in e)(t||Zt.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Xe(l,c)))&&s.push(l);return s}function $t(e,t){return function(n){return e(t(n))}}var en=$t(Object.keys,Object),tn=Object.prototype.hasOwnProperty;function nn(e){if(!at(e))return en(e);var t=[];for(var n in Object(e))tn.call(e,n)&&n!=`constructor`&&t.push(n);return t}function rn(e){return rt(e)?Qt(e):nn(e)}var an=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,on=/^\w*$/;function sn(e,t){if(ie(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||P(e)?!0:on.test(e)||!an.test(e)||t!=null&&e in Object(t)}var cn=Re(Object,`create`);function ln(){this.__data__=cn?cn(null):{},this.size=0}function un(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var dn=`__lodash_hash_undefined__`,fn=Object.prototype.hasOwnProperty;function pn(e){var t=this.__data__;if(cn){var n=t[e];return n===dn?void 0:n}return fn.call(t,e)?t[e]:void 0}var mn=Object.prototype.hasOwnProperty;function hn(e){var t=this.__data__;return cn?t[e]!==void 0:mn.call(t,e)}var gn=`__lodash_hash_undefined__`;function _n(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=cn&&t===void 0?gn:t,this}function vn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vn.prototype.clear=ln,vn.prototype.delete=un,vn.prototype.get=pn,vn.prototype.has=hn,vn.prototype.set=_n;function yn(){this.__data__=[],this.size=0}function bn(e,t){for(var n=e.length;n--;)if(Ze(e[n][0],t))return n;return-1}var xn=Array.prototype.splice;function Sn(e){var t=this.__data__,n=bn(t,e);return n<0?!1:(n==t.length-1?t.pop():xn.call(t,n,1),--this.size,!0)}function Cn(e){var t=this.__data__,n=bn(t,e);return n<0?void 0:t[n][1]}function wn(e){return bn(this.__data__,e)>-1}function Tn(e,t){var n=this.__data__,r=bn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function En(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}En.prototype.clear=yn,En.prototype.delete=Sn,En.prototype.get=Cn,En.prototype.has=wn,En.prototype.set=Tn;var Dn=Re(C,`Map`);function On(){this.size=0,this.__data__={hash:new vn,map:new(Dn||En),string:new vn}}function kn(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function An(e,t){var n=e.__data__;return kn(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function jn(e){var t=An(this,e).delete(e);return this.size-=t?1:0,t}function Mn(e){return An(this,e).get(e)}function Nn(e){return An(this,e).has(e)}function Pn(e,t){var n=An(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Fn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fn.prototype.clear=On,Fn.prototype.delete=jn,Fn.prototype.get=Mn,Fn.prototype.has=Nn,Fn.prototype.set=Pn;var In=`Expected a function`;function Ln(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(In);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Ln.Cache||Fn),n}Ln.Cache=Fn;var Rn=500;function zn(e){var t=Ln(e,function(e){return n.size===Rn&&n.clear(),e}),n=t.cache;return t}var Bn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vn=/\\(\\)?/g,Hn=zn(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Bn,function(e,n,r,i){t.push(r?i.replace(Vn,`$1`):n||e)}),t});function Un(e){return e==null?``:se(e)}function Wn(e,t){return ie(e)?e:sn(e,t)?[e]:Hn(Un(e))}var Gn=1/0;function Kn(e){if(typeof e==`string`||P(e))return e;var t=e+``;return t==`0`&&1/e==-Gn?`-0`:t}function qn(e,t){t=Wn(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Kn(t[n++])];return n&&n==r?e:void 0}function Jn(e,t,n){var r=e==null?void 0:qn(e,t);return r===void 0?n:r}function Yn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Xn=w?w.isConcatSpreadable:void 0;function Zn(e){return ie(e)||ft(e)||!!(Xn&&e&&e[Xn])}function Qn(e,t,n,r,i){var a=-1,o=e.length;for(n||=Zn,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Qn(s,t-1,n,r,i):Yn(i,s):r||(i[i.length]=s)}return i}function $n(e){return e!=null&&e.length?Qn(e,1):[]}function er(){this.__data__=new En,this.size=0}function tr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function nr(e){return this.__data__.get(e)}function rr(e){return this.__data__.has(e)}var ir=200;function ar(e,t){var n=this.__data__;if(n instanceof En){var r=n.__data__;if(!Dn||r.length<ir-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Fn(r)}return n.set(e,t),this.size=n.size,this}function or(e){this.size=(this.__data__=new En(e)).size}or.prototype.clear=er,or.prototype.delete=tr,or.prototype.get=nr,or.prototype.has=rr,or.prototype.set=ar;function sr(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function cr(){return[]}var lr=Object.prototype.propertyIsEnumerable,ur=Object.getOwnPropertySymbols,dr=ur?function(e){return e==null?[]:(e=Object(e),sr(ur(e),function(t){return lr.call(e,t)}))}:cr;function fr(e,t,n){var r=t(e);return ie(e)?r:Yn(r,n(e))}function pr(e){return fr(e,rn,dr)}var mr=Re(C,`DataView`),hr=Re(C,`Promise`),gr=Re(C,`Set`),_r=`[object Map]`,vr=`[object Object]`,yr=`[object Promise]`,br=`[object Set]`,xr=`[object WeakMap]`,Sr=`[object DataView]`,Cr=Oe(mr),wr=Oe(Dn),Tr=Oe(hr),Er=Oe(gr),Dr=Oe(ze),Or=N;(mr&&Or(new mr(new ArrayBuffer(1)))!=Sr||Dn&&Or(new Dn)!=_r||hr&&Or(hr.resolve())!=yr||gr&&Or(new gr)!=br||ze&&Or(new ze)!=xr)&&(Or=function(e){var t=N(e),n=t==vr?e.constructor:void 0,r=n?Oe(n):``;if(r)switch(r){case Cr:return Sr;case wr:return _r;case Tr:return yr;case Er:return br;case Dr:return xr}return t});var kr=Or,Ar=C.Uint8Array,jr=`__lodash_hash_undefined__`;function Mr(e){return this.__data__.set(e,jr),this}function Nr(e){return this.__data__.has(e)}function Pr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Fn;++t<n;)this.add(e[t])}Pr.prototype.add=Pr.prototype.push=Mr,Pr.prototype.has=Nr;function Fr(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Ir(e,t){return e.has(t)}var Lr=1,Rr=2;function zr(e,t,n,r,i,a){var o=n&Lr,s=e.length,c=t.length;if(s!=c&&!(o&&c>s))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&Rr?new Pr:void 0;for(a.set(e,t),a.set(t,e);++d<s;){var m=e[d],h=t[d];if(r)var g=o?r(h,m,d,t,e,a):r(m,h,d,e,t,a);if(g!==void 0){if(g)continue;f=!1;break}if(p){if(!Fr(t,function(e,t){if(!Ir(p,t)&&(m===e||i(m,e,n,r,a)))return p.push(t)})){f=!1;break}}else if(!(m===h||i(m,h,n,r,a))){f=!1;break}}return a.delete(e),a.delete(t),f}function Br(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Vr(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Hr=1,Ur=2,Wr=`[object Boolean]`,Gr=`[object Date]`,Kr=`[object Error]`,qr=`[object Map]`,Jr=`[object Number]`,Yr=`[object RegExp]`,Xr=`[object Set]`,Zr=`[object String]`,Qr=`[object Symbol]`,$r=`[object ArrayBuffer]`,ei=`[object DataView]`,ti=w?w.prototype:void 0,ni=ti?ti.valueOf:void 0;function ri(e,t,n,r,i,a,o){switch(n){case ei:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case $r:return!(e.byteLength!=t.byteLength||!a(new Ar(e),new Ar(t)));case Wr:case Gr:case Jr:return Ze(+e,+t);case Kr:return e.name==t.name&&e.message==t.message;case Yr:case Zr:return e==t+``;case qr:var s=Br;case Xr:var c=r&Hr;if(s||=Vr,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=Ur,o.set(e,t);var u=zr(s(e),s(t),r,i,a,o);return o.delete(e),u;case Qr:if(ni)return ni.call(e)==ni.call(t)}return!1}var ii=1,ai=Object.prototype.hasOwnProperty;function oi(e,t,n,r,i,a){var o=n&ii,s=pr(e),c=s.length;if(c!=pr(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:ai.call(t,u)))return!1}var d=a.get(e),f=a.get(t);if(d&&f)return d==t&&f==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++l<c;){u=s[l];var h=e[u],g=t[u];if(r)var _=o?r(g,h,u,t,e,a):r(h,g,u,e,t,a);if(!(_===void 0?h===g||i(h,g,n,r,a):_)){p=!1;break}m||=u==`constructor`}if(p&&!m){var v=e.constructor,y=t.constructor;v!=y&&`constructor`in e&&`constructor`in t&&!(typeof v==`function`&&v instanceof v&&typeof y==`function`&&y instanceof y)&&(p=!1)}return a.delete(e),a.delete(t),p}var si=1,ci=`[object Arguments]`,li=`[object Array]`,ui=`[object Object]`,di=Object.prototype.hasOwnProperty;function fi(e,t,n,r,i,a){var o=ie(e),s=ie(t),c=o?li:kr(e),l=s?li:kr(t);c=c==ci?ui:c,l=l==ci?ui:l;var u=c==ui,d=l==ui,f=c==l;if(f&&_t(e)){if(!_t(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new or,o||Xt(e)?zr(e,t,n,r,i,a):ri(e,t,c,n,r,i,a);if(!(n&si)){var p=u&&di.call(e,`__wrapped__`),m=d&&di.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new or,i(h,g,n,r,a)}}return f?(a||=new or,oi(e,t,n,r,i,a)):!1}function pi(e,t,n,r,i){return e===t?!0:e==null||t==null||!ne(e)&&!ne(t)?e!==e&&t!==t:fi(e,t,n,r,pi,i)}function mi(e){return function(t){return t?.[e]}}var hi=function(){return C.Date.now()},gi=`Expected a function`,_i=Math.max,yi=Math.min;function bi(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(gi);t=me(t)||0,le(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?_i(me(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?yi(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=hi();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(hi())}function x(){var e=hi(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}function xi(e){return ne(e)&&rt(e)}function Si(e){return typeof e==`function`?e:V}var Ci=`[object Map]`,wi=`[object Set]`,Ti=Object.prototype.hasOwnProperty;function Ei(e){if(e==null)return!0;if(rt(e)&&(ie(e)||typeof e==`string`||typeof e.splice==`function`||_t(e)||Xt(e)||ft(e)))return!e.length;var t=kr(e);if(t==Ci||t==wi)return!e.size;if(at(e))return!nn(e).length;for(var n in e)if(Ti.call(e,n))return!1;return!0}function Di(e,t){return pi(e,t)}var Oi=9007199254740991,ki=4294967295,Ai=Math.min;function ji(e,t){if(e=ve(e),e<1||e>Oi)return[];var n=ki,r=Ai(e,ki);t=Si(t),e-=ki;for(var i=ot(r,t);++n<e;)t(n);return i}var Mi=Math.max;function Ni(e){if(!(e&&e.length))return[];var t=0;return e=sr(e,function(e){if(xi(e))return t=Mi(e.length,t),!0}),ot(t,function(t){return F(e,mi(t))})}var Pi=et(Ni);function Fi(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Ii=`$$material`;function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Li.apply(null,arguments)}var Ri=!0;function zi(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Bi(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var Vi=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0?!Ri:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Bi(this));var t=this.tags[this.tags.length-1],n=e.charCodeAt(0)===64&&e.charCodeAt(1)===105;if(n&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
9
|
+
`+e+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!n,this.isSpeedy){var r=zi(t);try{r.insertRule(e,r.cssRules.length)}catch(t){/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(e)||console.error(`There was a problem inserting the following rule: "`+e+`"`,t)}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0,this._alreadyInsertedOrderInsensitiveRule=!1},e}(),Hi=`-ms-`,Ui=`-moz-`,Wi=`-webkit-`,Gi=`comm`,Ki=`rule`,qi=`decl`,Ji=`@import`,Yi=`@keyframes`,Xi=`@layer`,Zi=Math.abs,Qi=String.fromCharCode,$i=Object.assign;function ea(e,t){return aa(e,0)^45?(((t<<2^aa(e,0))<<2^aa(e,1))<<2^aa(e,2))<<2^aa(e,3):0}function ta(e){return e.trim()}function na(e,t){return(e=t.exec(e))?e[0]:e}function ra(e,t,n){return e.replace(t,n)}function ia(e,t){return e.indexOf(t)}function aa(e,t){return e.charCodeAt(t)|0}function oa(e,t,n){return e.slice(t,n)}function sa(e){return e.length}function ca(e){return e.length}function la(e,t){return t.push(e),e}function ua(e,t){return e.map(t).join(``)}var da=1,fa=1,pa=0,ma=0,ha=0,ga=``;function _a(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:da,column:fa,length:o,return:``}}function va(e,t){return $i(_a(``,null,null,``,null,null,0),e,{length:-e.length},t)}function ya(){return ha}function ba(){return ha=ma>0?aa(ga,--ma):0,fa--,ha===10&&(fa=1,da--),ha}function xa(){return ha=ma<pa?aa(ga,ma++):0,fa++,ha===10&&(fa=1,da++),ha}function Sa(){return aa(ga,ma)}function Ca(){return ma}function wa(e,t){return oa(ga,e,t)}function Ta(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ea(e){return da=fa=1,pa=sa(ga=e),ma=0,[]}function Da(e){return ga=``,e}function Oa(e){return ta(wa(ma-1,ja(e===91?e+2:e===40?e+1:e)))}function ka(e){for(;(ha=Sa())&&ha<33;)xa();return Ta(e)>2||Ta(ha)>3?``:` `}function Aa(e,t){for(;--t&&xa()&&!(ha<48||ha>102||ha>57&&ha<65||ha>70&&ha<97););return wa(e,Ca()+(t<6&&Sa()==32&&xa()==32))}function ja(e){for(;xa();)switch(ha){case e:return ma;case 34:case 39:e!==34&&e!==39&&ja(ha);break;case 40:e===41&&ja(e);break;case 92:xa();break}return ma}function Ma(e,t){for(;xa()&&e+ha!==57&&!(e+ha===84&&Sa()===47););return`/*`+wa(t,ma-1)+`*`+Qi(e===47?e:xa())}function Na(e){for(;!Ta(Sa());)xa();return wa(e,ma)}function Pa(e){return Da(Fa(``,null,null,null,[``],e=Ea(e),0,[0],e))}function Fa(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=xa()){case 40:if(m!=108&&aa(C,d-1)==58){ia(C+=ra(Oa(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Oa(v);break;case 9:case 10:case 13:case 32:C+=ka(m);break;case 92:C+=Aa(Ca()-1,7);continue;case 47:switch(Sa()){case 42:case 47:la(La(Ma(xa(),Ca()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=sa(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=ra(C,/\f/g,``)),p>0&&sa(C)-d&&la(p>32?Ra(C+`;`,r,n,d-1):Ra(ra(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(la(S=Ia(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123)if(u===0)Fa(C,t,S,S,b,a,d,s,x);else switch(f===99&&aa(C,3)===110?100:f){case 100:case 108:case 109:case 115:Fa(e,S,S,r&&la(Ia(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Fa(C,S,S,S,[``],x,0,s,x)}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+sa(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&ba()==125)continue}switch(C+=Qi(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(sa(C)-1)*_,_=1;break;case 64:Sa()===45&&(C+=Oa(xa())),f=Sa(),u=d=sa(y=C+=Na(Ca())),v++;break;case 45:m===45&&sa(C)==2&&(h=0)}}return a}function Ia(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=ca(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=oa(e,d+1,d=Zi(h=o[m])),y=e;_<p;++_)(y=ta(h>0?f[_]+` `+v:ra(v,/&\f/g,f[_])))&&(c[g++]=y);return _a(e,t,n,i===0?Ki:s,c,l,u)}function La(e,t,n){return _a(e,t,n,Gi,Qi(ya()),oa(e,2,-2),0)}function Ra(e,t,n,r){return _a(e,t,n,qi,oa(e,0,r),oa(e,r+1,-1),r)}function za(e,t){for(var n=``,r=ca(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Ba(e,t,n,r){switch(e.type){case Xi:if(e.children.length)break;case Ji:case qi:return e.return=e.return||e.value;case Gi:return``;case Yi:return e.return=e.value+`{`+za(e.children,r)+`}`;case Ki:e.value=e.props.join(`,`)}return sa(n=za(e.children,r))?e.return=e.value+`{`+n+`}`:``}function Va(e){var t=ca(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function Ha(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ua=function(e,t,n){for(var r=0,i=0;r=i,i=Sa(),r===38&&i===12&&(t[n]=1),!Ta(i);)xa();return wa(e,ma)},Wa=function(e,t){var n=-1,r=44;do switch(Ta(r)){case 0:r===38&&Sa()===12&&(t[n]=1),e[n]+=Ua(ma-1,t,n);break;case 2:e[n]+=Oa(r);break;case 4:if(r===44){e[++n]=Sa()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=Qi(r)}while(r=xa());return e},Ga=function(e,t){return Da(Wa(Ea(e),t))},Ka=new WeakMap,qa=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ka.get(n))&&!r){Ka.set(e,!0);for(var i=[],a=Ga(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},Ja=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}},Ya=`emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason`,Xa=function(e){return e.type===`comm`&&e.children.indexOf(Ya)>-1},Za=function(e){return function(t,n,r){if(!(t.type!==`rule`||e.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var a=t.parent?t.parent.children:r,o=a.length-1;o>=0;o--){var s=a[o];if(s.line<t.line)break;if(s.column<t.column){if(Xa(s))return;break}}i.forEach(function(e){console.error(`The pseudo class "`+e+`" is potentially unsafe when doing server-side rendering. Try changing it to "`+e.split(`-child`)[0]+`-of-type".`)})}}}},Qa=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},$a=function(e,t){for(var n=e-1;n>=0;n--)if(!Qa(t[n]))return!0;return!1},eo=function(e){e.type=``,e.value=``,e.return=``,e.children=``,e.props=``},to=function(e,t,n){Qa(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),eo(e)):$a(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),eo(e)))};function no(e,t){switch(ea(e,t)){case 5103:return Wi+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Wi+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Wi+e+Ui+e+Hi+e+e;case 6828:case 4268:return Wi+e+Hi+e+e;case 6165:return Wi+e+Hi+`flex-`+e+e;case 5187:return Wi+e+ra(e,/(\w+).+(:[^]+)/,Wi+`box-$1$2`+Hi+`flex-$1$2`)+e;case 5443:return Wi+e+Hi+`flex-item-`+ra(e,/flex-|-self/,``)+e;case 4675:return Wi+e+Hi+`flex-line-pack`+ra(e,/align-content|flex-|-self/,``)+e;case 5548:return Wi+e+Hi+ra(e,`shrink`,`negative`)+e;case 5292:return Wi+e+Hi+ra(e,`basis`,`preferred-size`)+e;case 6060:return Wi+`box-`+ra(e,`-grow`,``)+Wi+e+Hi+ra(e,`grow`,`positive`)+e;case 4554:return Wi+ra(e,/([^-])(transform)/g,`$1`+Wi+`$2`)+e;case 6187:return ra(ra(ra(e,/(zoom-|grab)/,Wi+`$1`),/(image-set)/,Wi+`$1`),e,``)+e;case 5495:case 3959:return ra(e,/(image-set\([^]*)/,Wi+"$1$`$1");case 4968:return ra(ra(e,/(.+:)(flex-)?(.*)/,Wi+`box-pack:$3`+Hi+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+Wi+e+e;case 4095:case 3583:case 4068:case 2532:return ra(e,/(.+)-inline(.+)/,Wi+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(sa(e)-1-t>6)switch(aa(e,t+1)){case 109:if(aa(e,t+4)!==45)break;case 102:return ra(e,/(.+:)(.+)-([^]+)/,`$1`+Wi+`$2-$3$1`+Ui+(aa(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~ia(e,`stretch`)?no(ra(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(aa(e,t+1)!==115)break;case 6444:switch(aa(e,sa(e)-3-(~ia(e,`!important`)&&10))){case 107:return ra(e,`:`,`:`+Wi)+e;case 101:return ra(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+Wi+(aa(e,14)===45?`inline-`:``)+`box$3$1`+Wi+`$2$3$1`+Hi+`$2box$3`)+e}break;case 5936:switch(aa(e,t+11)){case 114:return Wi+e+Hi+ra(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return Wi+e+Hi+ra(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return Wi+e+Hi+ra(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return Wi+e+Hi+e+e}return e}var ro=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case qi:e.return=no(e.value,e.length);break;case Yi:return za([va(e,{value:ra(e.value,`@`,`@`+Wi)})],r);case Ki:if(e.length)return ua(e.props,function(t){switch(na(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return za([va(e,{props:[ra(t,/:(read-\w+)/,`:`+Ui+`$1`)]})],r);case`::placeholder`:return za([va(e,{props:[ra(t,/:(plac\w+)/,`:`+Wi+`input-$1`)]}),va(e,{props:[ra(t,/:(plac\w+)/,`:`+Ui+`$1`)]}),va(e,{props:[ra(t,/:(plac\w+)/,Hi+`input-$1`)]})],r)}return``})}}],io,ao=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;io=function(e){var t=e.match(ao);if(t)return t[t.length-1]};var oo=function(e){var t=e.key;if(!t)throw Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
10
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||ro;if(/[^a-z-]/.test(t))throw Error(`Emotion key must only contain lower case alphabetical characters and - but "`+t+`" was passed`);var i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[qa,Ja];c.push(Za({get compat(){return p.compat}}),to);var l,u=[Ba,function(e){e.root||(e.return?l.insert(e.return):e.value&&e.type!==`comm`&&l.insert(e.value+`{}`))}],d=Va(c.concat(r,u)),f=function(e){return za(Pa(e),d)};s=function(e,t,n,r){if(l=n,io){var i=io(t.styles);i&&(l={insert:function(e){n.insert(e+i)}})}f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Vi({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},so=o((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),co=o(((e,t)=>{t.exports=so()})),lo=o(((e,t)=>{var n=co(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h})),uo=!0;function fo(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var po=function(e,t,n){var r=e.key+`-`+t.name;(n===!1||uo===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},mo=function(e,t,n){po(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function ho(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var go={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},_o=!0,vo=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
11
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
12
|
+
You can read more about this here:
|
|
13
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,yo=`You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).`,bo=/[A-Z]|^ms/g,xo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,So=function(e){return e.charCodeAt(1)===45},Co=function(e){return e!=null&&typeof e!=`boolean`},wo=Ha(function(e){return So(e)?e:e.replace(bo,`-$&`).toLowerCase()}),To=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(xo,function(e,t,n){return Io={name:t,styles:n,next:Io},t})}return go[e]!==1&&!So(e)&&typeof t==`number`&&t!==0?t+`px`:t},Eo=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Do=[`normal`,`none`,`initial`,`inherit`,`unset`],Oo=To,ko=/^-ms-/,Ao=/-(.)/g,jo={};To=function(e,t){if(e===`content`&&(typeof t!=`string`||Do.indexOf(t)===-1&&!Eo.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!==`"`&&t.charAt(0)!==`'`)))throw Error(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"`+t+`"'\``);var n=Oo(e,t);return n!==``&&!So(e)&&e.indexOf(`-`)!==-1&&jo[e]===void 0&&(jo[e]=!0,console.error(`Using kebab-case for css properties in objects is not supported. Did you mean `+e.replace(ko,`ms-`).replace(Ao,function(e,t){return t.toUpperCase()})+`?`)),n};var Mo=`Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.`;function No(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0){if(String(r)===`NO_COMPONENT_SELECTOR`)throw Error(Mo);return r}switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return Io={name:i.name,styles:i.styles,next:Io},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Io={name:o.name,styles:o.styles,next:Io},o=o.next;return a.styles+`;`}return Po(e,t,n);case`function`:if(e!==void 0){var s=Io,c=n(e);return Io=s,No(e,t,c)}else console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case`string`:var l=[],u=n.replace(xo,function(e,t,n){var r=`animation`+l.length;return l.push(`const `+r+" = keyframes`"+n.replace(/^@keyframes animation-\w+/,``)+"`"),"${"+r+`}`});l.length&&console.error(`\`keyframes\` output got interpolated into plain string, please wrap it with \`css\`.
|
|
14
|
+
|
|
15
|
+
Instead of doing this:
|
|
16
|
+
|
|
17
|
+
`+[].concat(l,["`"+u+"`"]).join(`
|
|
18
|
+
`)+`
|
|
19
|
+
|
|
20
|
+
You should wrap it with \`css\` like this:
|
|
21
|
+
|
|
22
|
+
css\``+u+"`");break}var d=n;if(t==null)return d;var f=t[d];return f===void 0?d:f}function Po(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=No(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Co(s)&&(r+=wo(a)+`:`+To(a,s)+`;`)}else{if(a===`NO_COMPONENT_SELECTOR`&&_o)throw Error(Mo);if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Co(o[c])&&(r+=wo(a)+`:`+To(a,o[c])+`;`);else{var l=No(e,t,o);switch(a){case`animation`:case`animationName`:r+=wo(a)+`:`+l+`;`;break;default:a===`undefined`&&console.error(yo),r+=a+`{`+l+`}`}}}}return r}var Fo=/label:\s*([^\s;{]+)\s*(;|$)/g,Io;function Lo(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;Io=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=No(n,t,a);else{var o=a;o[0]===void 0&&console.error(vo),i+=o[0]}for(var s=1;s<e.length;s++)if(i+=No(n,t,e[s]),r){var c=a;c[s]===void 0&&console.error(vo),i+=c[s]}Fo.lastIndex=0;for(var l=``,u;(u=Fo.exec(i))!==null;)l+=`-`+u[1];return{name:ho(i)+l,styles:i,next:Io,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}}var H=l(d()),Ro=function(e){return e()},zo=H.useInsertionEffect?H.useInsertionEffect:!1,Bo=zo||Ro,Vo=zo||H.useLayoutEffect,Ho=H.createContext(typeof HTMLElement<`u`?oo({key:`css`}):null);Ho.displayName=`EmotionCacheContext`;var Uo=Ho.Provider,Wo=function(e){return(0,H.forwardRef)(function(t,n){return e(t,(0,H.useContext)(Ho),n)})},Go=H.createContext({});Go.displayName=`EmotionThemeContext`;var Ko={}.hasOwnProperty,qo=function(e){var t=e.split(`.`);return t[t.length-1]},Jo=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(e),t))return qo(t[1])},Yo=new Set([`renderWithHooks`,`processChild`,`finishClassComponent`,`renderToString`]),Xo=function(e){return e.replace(/\$/g,`-`)},Zo=function(e){if(e)for(var t=e.split(`
|
|
23
|
+
`),n=0;n<t.length;n++){var r=Jo(t[n]);if(r){if(Yo.has(r))break;if(/^[A-Z]/.test(r))return Xo(r)}}},Qo=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,$o=`__EMOTION_LABEL_PLEASE_DO_NOT_USE__`,es=function(e,t){if(typeof t.css==`string`&&t.css.indexOf(`:`)!==-1)throw Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var r in t)Ko.call(t,r)&&(n[r]=t[r]);if(n[Qo]=e,typeof globalThis<`u`&&globalThis.EMOTION_RUNTIME_AUTO_LABEL&&t.css&&(typeof t.css!=`object`||!(`name`in t.css)||typeof t.css.name!=`string`||t.css.name.indexOf(`-`)===-1)){var i=Zo(Error().stack);i&&(n[$o]=i)}return n},ts=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return po(t,n,r),Bo(function(){return mo(t,n,r)}),null},ns=Wo(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Qo],a=[r],o=``;typeof e.className==`string`?o=fo(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Lo(a,void 0,H.useContext(Go));if(s.name.indexOf(`-`)===-1){var c=e[$o];c&&(s=Lo([s,`label:`+c+`;`]))}o+=t.key+`-`+s.name;var l={};for(var u in e)Ko.call(e,u)&&u!==`css`&&u!==Qo&&u!==$o&&(l[u]=e[u]);return l.className=o,n&&(l.ref=n),H.createElement(H.Fragment,null,H.createElement(ts,{cache:t,serialized:s,isStringTag:typeof i==`string`}),H.createElement(i,l))});ns.displayName=`EmotionCssPropInternal`;var rs=ns;lo();var is=!0,as={name:`@emotion/react`,version:`11.14.0`,main:`dist/emotion-react.cjs.js`,module:`dist/emotion-react.esm.js`,types:`dist/emotion-react.cjs.d.ts`,exports:{".":{types:{import:`./dist/emotion-react.cjs.mjs`,default:`./dist/emotion-react.cjs.js`},development:{"edge-light":{module:`./dist/emotion-react.development.edge-light.esm.js`,import:`./dist/emotion-react.development.edge-light.cjs.mjs`,default:`./dist/emotion-react.development.edge-light.cjs.js`},worker:{module:`./dist/emotion-react.development.edge-light.esm.js`,import:`./dist/emotion-react.development.edge-light.cjs.mjs`,default:`./dist/emotion-react.development.edge-light.cjs.js`},workerd:{module:`./dist/emotion-react.development.edge-light.esm.js`,import:`./dist/emotion-react.development.edge-light.cjs.mjs`,default:`./dist/emotion-react.development.edge-light.cjs.js`},browser:{module:`./dist/emotion-react.browser.development.esm.js`,import:`./dist/emotion-react.browser.development.cjs.mjs`,default:`./dist/emotion-react.browser.development.cjs.js`},module:`./dist/emotion-react.development.esm.js`,import:`./dist/emotion-react.development.cjs.mjs`,default:`./dist/emotion-react.development.cjs.js`},"edge-light":{module:`./dist/emotion-react.edge-light.esm.js`,import:`./dist/emotion-react.edge-light.cjs.mjs`,default:`./dist/emotion-react.edge-light.cjs.js`},worker:{module:`./dist/emotion-react.edge-light.esm.js`,import:`./dist/emotion-react.edge-light.cjs.mjs`,default:`./dist/emotion-react.edge-light.cjs.js`},workerd:{module:`./dist/emotion-react.edge-light.esm.js`,import:`./dist/emotion-react.edge-light.cjs.mjs`,default:`./dist/emotion-react.edge-light.cjs.js`},browser:{module:`./dist/emotion-react.browser.esm.js`,import:`./dist/emotion-react.browser.cjs.mjs`,default:`./dist/emotion-react.browser.cjs.js`},module:`./dist/emotion-react.esm.js`,import:`./dist/emotion-react.cjs.mjs`,default:`./dist/emotion-react.cjs.js`},"./jsx-runtime":{types:{import:`./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs`,default:`./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js`},development:{"edge-light":{module:`./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js`,import:`./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs`,default:`./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js`},worker:{module:`./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js`,import:`./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs`,default:`./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js`},workerd:{module:`./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.esm.js`,import:`./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.mjs`,default:`./jsx-runtime/dist/emotion-react-jsx-runtime.development.edge-light.cjs.js`},browser:{module:`./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.esm.js`,import:`./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.mjs`,default:`./jsx-runtime/dist/emotion-react-jsx-runtime.browser.development.cjs.js`},module:`./jsx-runtime/dist/emotion-react-jsx-runtime.development.esm.js`,import:`./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.mjs`,default:`./jsx-runtime/dist/emotion-react-jsx-runtime.development.cjs.js`},"edge-light":{module:`./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js`,import:`./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs`,default:`./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js`},worker:{module:`./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js`,import:`./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs`,default:`./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js`},workerd:{module:`./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.esm.js`,import:`./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.mjs`,default:`./jsx-runtime/dist/emotion-react-jsx-runtime.edge-light.cjs.js`},browser:{module:`./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js`,import:`./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.mjs`,default:`./jsx-runtime/dist/emotion-react-jsx-runtime.browser.cjs.js`},module:`./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js`,import:`./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs`,default:`./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js`},"./_isolated-hnrs":{types:{import:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs`,default:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js`},development:{"edge-light":{module:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js`,import:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs`,default:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js`},worker:{module:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js`,import:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs`,default:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js`},workerd:{module:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.esm.js`,import:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.mjs`,default:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.edge-light.cjs.js`},browser:{module:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.esm.js`,import:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.mjs`,default:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.development.cjs.js`},module:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.esm.js`,import:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.mjs`,default:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.development.cjs.js`},"edge-light":{module:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js`,import:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs`,default:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js`},worker:{module:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js`,import:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs`,default:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js`},workerd:{module:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.esm.js`,import:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.mjs`,default:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.edge-light.cjs.js`},browser:{module:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js`,import:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.mjs`,default:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.cjs.js`},module:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js`,import:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs`,default:`./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js`},"./jsx-dev-runtime":{types:{import:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs`,default:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js`},development:{"edge-light":{module:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js`,import:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs`,default:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js`},worker:{module:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js`,import:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs`,default:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js`},workerd:{module:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.esm.js`,import:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.mjs`,default:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.edge-light.cjs.js`},browser:{module:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.esm.js`,import:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.mjs`,default:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.development.cjs.js`},module:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.esm.js`,import:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.mjs`,default:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.development.cjs.js`},"edge-light":{module:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js`,import:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs`,default:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js`},worker:{module:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js`,import:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs`,default:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js`},workerd:{module:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.esm.js`,import:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.mjs`,default:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.edge-light.cjs.js`},browser:{module:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js`,import:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.mjs`,default:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.cjs.js`},module:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js`,import:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs`,default:`./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js`},"./package.json":`./package.json`,"./types/css-prop":`./types/css-prop.d.ts`,"./macro":{types:{import:`./macro.d.mts`,default:`./macro.d.ts`},default:`./macro.js`}},imports:{"#is-development":{development:`./src/conditions/true.ts`,default:`./src/conditions/false.ts`},"#is-browser":{"edge-light":`./src/conditions/false.ts`,workerd:`./src/conditions/false.ts`,worker:`./src/conditions/false.ts`,browser:`./src/conditions/true.ts`,default:`./src/conditions/is-browser.ts`}},files:[`src`,`dist`,`jsx-runtime`,`jsx-dev-runtime`,`_isolated-hnrs`,`types/css-prop.d.ts`,`macro.*`],sideEffects:!1,author:`Emotion Contributors`,license:`MIT`,scripts:{"test:typescript":`dtslint types`},dependencies:{"@babel/runtime":`^7.18.3`,"@emotion/babel-plugin":`^11.13.5`,"@emotion/cache":`^11.14.0`,"@emotion/serialize":`^1.3.3`,"@emotion/use-insertion-effect-with-fallbacks":`^1.2.0`,"@emotion/utils":`^1.4.2`,"@emotion/weak-memoize":`^0.4.0`,"hoist-non-react-statics":`^3.3.1`},peerDependencies:{react:`>=16.8.0`},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":`0.0.112`,"@emotion/css":`11.13.5`,"@emotion/css-prettifier":`1.2.0`,"@emotion/server":`11.11.0`,"@emotion/styled":`11.14.0`,"@types/hoist-non-react-statics":`^3.3.5`,"html-tag-names":`^1.1.2`,react:`16.14.0`,"svg-tag-names":`^1.1.1`,typescript:`^5.4.5`},repository:`https://github.com/emotion-js/emotion/tree/main/packages/react`,publishConfig:{access:`public`},"umd:main":`dist/emotion-react.umd.min.js`,preconstruct:{entrypoints:[`./index.ts`,`./jsx-runtime.ts`,`./jsx-dev-runtime.ts`,`./_isolated-hnrs.ts`],umdName:`emotionReact`,exports:{extra:{"./types/css-prop":`./types/css-prop.d.ts`,"./macro":{types:{import:`./macro.d.mts`,default:`./macro.d.ts`},default:`./macro.js`}}}}},os=function(e,t){var n=arguments;if(t==null||!Ko.call(t,`css`))return H.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=rs,i[1]=es(e,t);for(var a=2;a<r;a++)i[a]=n[a];return H.createElement.apply(null,i)};(function(e){var t;(function(e){})(t||=e.JSX||={})})(os||={});var ss=!1,cs=Wo(function(e,t){!ss&&(`className`in e&&e.className||`css`in e&&e.css)&&(console.error(`It looks like you're using the css prop on Global, did you mean to use the styles prop instead?`),ss=!0);var n=e.styles,r=Lo([n],void 0,H.useContext(Go)),i=H.useRef();return Vo(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Vo(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&mo(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});cs.displayName=`EmotionGlobal`;function ls(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Lo(t)}function us(){var e=ls.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var ds=function e(t){for(var n=t.length,r=0,i=``;r<n;r++){var a=t[r];if(a!=null){var o=void 0;switch(typeof a){case`boolean`:break;case`object`:if(Array.isArray(a))o=e(a);else for(var s in a.styles!==void 0&&a.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),o=``,a)a[s]&&s&&(o&&(o+=` `),o+=s);break;default:o=a}o&&(i&&(i+=` `),i+=o)}}return i};function fs(e,t,n){var r=[],i=fo(e,r,n);return r.length<2?n:i+t(r)}var ps=function(e){var t=e.cache,n=e.serializedArr;return Bo(function(){for(var e=0;e<n.length;e++)mo(t,n[e],!1)}),null},ms=Wo(function(e,t){var n=!1,r=[],i=function(){if(n&&is)throw Error(`css can only be used during render`);for(var e=arguments.length,i=Array(e),a=0;a<e;a++)i[a]=arguments[a];var o=Lo(i,t.registered);return r.push(o),po(t,o,!1),t.key+`-`+o.name},a={css:i,cx:function(){if(n&&is)throw Error(`cx can only be used during render`);for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return fs(t.registered,i,ds(r))},theme:H.useContext(Go)},o=e.children(a);return n=!0,H.createElement(H.Fragment,null,H.createElement(ps,{cache:t,serializedArr:r}),o)});ms.displayName=`EmotionClassNames`;var hs=typeof document<`u`;if(hs&&!(typeof jest<`u`||typeof vi<`u`)){var gs=typeof globalThis<`u`?globalThis:hs?window:global,_s=`__EMOTION_REACT_`+as.version.split(`.`)[0]+`__`;gs[_s]&&console.warn(`You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used.`),gs[_s]=!0}var vs=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,ys=Ha(function(e){return vs.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),bs=!0,xs=ys,Ss=function(e){return e!==`theme`},Cs=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?xs:Ss},ws=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},Ts=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
24
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
25
|
+
You can read more about this here:
|
|
26
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Es=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return po(t,n,r),Bo(function(){return mo(t,n,r)}),null},Ds=function e(t,n){if(t===void 0)throw Error(`You are trying to create a styled element with an undefined component.
|
|
27
|
+
You may have forgotten to import it.`);var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=ws(t,n,r),c=s||Cs(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];f[0]===void 0&&console.error(Ts),d.push(f[0]);for(var p=u.length,m=1;m<p;m++)f[m]===void 0&&console.error(Ts),d.push(u[m],f[m])}var h=Wo(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=H.useContext(Go)}typeof e.className==`string`?a=fo(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Lo(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?Cs(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),H.createElement(H.Fragment,null,H.createElement(Es,{cache:t,serialized:m,isStringTag:typeof r==`string`}),H.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,`toString`,{value:function(){return o===void 0&&bs?`NO_COMPONENT_SELECTOR`:`.`+o}}),h.withComponent=function(t,r){return e(t,Li({},n,r,{shouldForwardProp:ws(h,r,!0)})).apply(void 0,d)},h}},Os=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),ks=Ds.bind(null);Os.forEach(function(e){ks[e]=ks(e)});var As=o((e=>{var t=d(),n=Symbol.for(`react.element`),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(e,t,o){var s,c={},l=null,u=null;for(s in o!==void 0&&(l=``+o),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)r.call(t,s)&&!a.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}e.jsx=o,e.jsxs=o})),U=o(((e,t)=>{t.exports=As()}))(),js=new Map,Ms={insert:void 0},Ns=(e,t)=>{let n=oo(e);return n.sheet=new t({key:n.key,nonce:n.sheet.nonce,container:n.sheet.container,speedy:n.sheet.isSpeedy,prepend:n.sheet.prepend,insertionPoint:n.sheet.insertionPoint}),n},Ps;if(typeof document==`object`&&(Ps=document.querySelector(`[name="emotion-insertion-point"]`),!Ps)){Ps=document.createElement(`meta`),Ps.setAttribute(`name`,`emotion-insertion-point`),Ps.setAttribute(`content`,``);let e=document.querySelector(`head`);e&&e.prepend(Ps)}function Fs(e,t){if(e||t){class n extends Vi{insert(e,t){return Ms.insert?Ms.insert(e,t):(this.key&&this.key.endsWith(`global`)&&(this.before=Ps),super.insert(e,t))}}let r=Ns({key:`css`,insertionPoint:e?Ps:void 0},n);if(t){let e=r.insert;r.insert=(...t)=>(t[1].styles.match(/^@layer\s+[^{]*$/)||(t[1].styles=`@layer mui {${t[1].styles}}`),e(...t))}return r}}function Is(e){let{injectFirst:t,enableCssLayer:n,children:r}=e,i=H.useMemo(()=>{let e=`${t}-${n}`;if(typeof document==`object`&&js.has(e))return js.get(e);let r=Fs(t,n);return js.set(e,r),r},[t,n]);return i?(0,U.jsx)(Uo,{value:i,children:r}):r}function Ls(e){return e==null||Object.keys(e).length===0}function Rs(e){let{styles:t,defaultTheme:n={}}=e;return(0,U.jsx)(cs,{styles:typeof t==`function`?e=>t(Ls(e)?n:e):t})}function zs(e,t){return ks(e,t)}function Bs(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var Vs=[];function Hs(e){return Vs[0]=e,Lo(Vs)}var Us=o((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===d||e.getModuleId!==void 0))}})),Ws=o(((e,t)=>{t.exports=Us()}))();function Gs(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ks(e){if(H.isValidElement(e)||(0,Ws.isValidElementType)(e)||!Gs(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=Ks(e[n])}),t}function qs(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Gs(e)&&Gs(t)&&Object.keys(t).forEach(i=>{H.isValidElement(t[i])||(0,Ws.isValidElementType)(t[i])?r[i]=t[i]:Gs(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Gs(e[i])?r[i]=qs(e[i],t[i],n):n.clone?r[i]=Gs(t[i])?Ks(t[i]):t[i]:r[i]=t[i]}),r}var Js=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function Ys(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=Js(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,...i}}function Xs(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(e=>e.startsWith(`@container`)).sort((e,t)=>{let n=/min-width:\s*([0-9.]+)/;return(e.match(n)?.[1]||0)-+(t.match(n)?.[1]||0)});return n.length?n.reduce((e,n)=>{let r=t[n];return delete e[n],e[n]=r,e},{...t}):t}function Zs(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function Qs(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function $s(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var ec={borderRadius:4};function tc(e,t){return t?qs(e,t,{clone:!1}):e}var nc={xs:0,sm:600,md:900,lg:1200,xl:1536},rc={keys:[`xs`,`sm`,`md`,`lg`,`xl`],up:e=>`@media (min-width:${nc[e]}px)`},ic={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:nc[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ac(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let e=r.breakpoints||rc;return t.reduce((r,i,a)=>(r[e.up(e.keys[a])]=n(t[a]),r),{})}if(typeof t==`object`){let e=r.breakpoints||rc;return Object.keys(t).reduce((i,a)=>{if(Zs(e.keys,a)){let e=Qs(r.containerQueries?r:ic,a);e&&(i[e]=n(t[a],a))}else if(Object.keys(e.values||nc).includes(a)){let r=e.up(a);i[r]=n(t[a],a)}else{let e=a;i[e]=t[e]}return i},{})}return n(t)}function oc(e={}){return e.keys?.reduce((t,n)=>{let r=e.up(n);return t[r]={},t},{})||{}}function sc(e,t){return e.reduce((e,t)=>{let n=e[t];return(!n||Object.keys(n).length===0)&&delete e[t],e},t)}function cc(e){if(typeof e!=`string`)throw Error(Fi(7));return e.charAt(0).toUpperCase()+e.slice(1)}function lc(e,t,n=!0){if(!t||typeof t!=`string`)return null;if(e&&e.vars&&n){let n=`vars.${t}`.split(`.`).reduce((e,t)=>e&&e[t]?e[t]:null,e);if(n!=null)return n}return t.split(`.`).reduce((e,t)=>e&&e[t]!=null?e[t]:null,e)}function uc(e,t,n,r=n){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||r:lc(e,n)||r,t&&(i=t(i,r,e)),i}function dc(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=lc(o,r)||{};return ac(e,a,e=>{let r=uc(s,i,e);return e===r&&typeof e==`string`&&(r=uc(s,i,`${t}${e===`default`?``:cc(e)}`,e)),n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}function fc(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var pc={m:`margin`,p:`padding`},mc={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},hc={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},gc=fc(e=>{if(e.length>2)if(hc[e])e=hc[e];else return[e];let[t,n]=e.split(``),r=pc[t],i=mc[n]||``;return Array.isArray(i)?i.map(e=>r+e):[r+i]}),_c=[`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`],vc=[`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`],yc=[..._c,...vc];function bc(e,t,n,r){let i=lc(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function W(e){return bc(e,`spacing`,8,`spacing`)}function xc(e,t){return typeof t==`string`||t==null?t:e(t)}function Sc(e,t){return n=>e.reduce((e,r)=>(e[r]=xc(t,n),e),{})}function Cc(e,t,n,r){if(!t.includes(n))return null;let i=Sc(gc(n),r),a=e[n];return ac(e,a,i)}function wc(e,t){let n=W(e.theme);return Object.keys(e).map(r=>Cc(e,t,r,n)).reduce(tc,{})}function Tc(e){return wc(e,_c)}Tc.propTypes={},Tc.filterProps=_c;function Ec(e){return wc(e,vc)}Ec.propTypes={},Ec.filterProps=vc;function Dc(e){return wc(e,yc)}Dc.propTypes={},Dc.filterProps=yc;function Oc(e=8,t=W({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function kc(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>Object.keys(e).reduce((n,r)=>t[r]?tc(n,t[r](e)):n,{});return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function Ac(e){return typeof e==`number`?`${e}px solid`:e}function jc(e,t){return dc({prop:e,themeKey:`borders`,transform:t})}var Mc=jc(`border`,Ac),Nc=jc(`borderTop`,Ac),Pc=jc(`borderRight`,Ac),Fc=jc(`borderBottom`,Ac),Ic=jc(`borderLeft`,Ac),Lc=jc(`borderColor`),Rc=jc(`borderTopColor`),zc=jc(`borderRightColor`),Bc=jc(`borderBottomColor`),Vc=jc(`borderLeftColor`),Hc=jc(`outline`,Ac),Uc=jc(`outlineColor`),Wc=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=bc(e.theme,`shape.borderRadius`,4,`borderRadius`);return ac(e,e.borderRadius,e=>({borderRadius:xc(t,e)}))}return null};Wc.propTypes={},Wc.filterProps=[`borderRadius`],kc(Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Wc,Hc,Uc);var Gc=e=>{if(e.gap!==void 0&&e.gap!==null){let t=bc(e.theme,`spacing`,8,`gap`);return ac(e,e.gap,e=>({gap:xc(t,e)}))}return null};Gc.propTypes={},Gc.filterProps=[`gap`];var Kc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=bc(e.theme,`spacing`,8,`columnGap`);return ac(e,e.columnGap,e=>({columnGap:xc(t,e)}))}return null};Kc.propTypes={},Kc.filterProps=[`columnGap`];var qc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=bc(e.theme,`spacing`,8,`rowGap`);return ac(e,e.rowGap,e=>({rowGap:xc(t,e)}))}return null};qc.propTypes={},qc.filterProps=[`rowGap`],kc(Gc,Kc,qc,dc({prop:`gridColumn`}),dc({prop:`gridRow`}),dc({prop:`gridAutoFlow`}),dc({prop:`gridAutoColumns`}),dc({prop:`gridAutoRows`}),dc({prop:`gridTemplateColumns`}),dc({prop:`gridTemplateRows`}),dc({prop:`gridTemplateAreas`}),dc({prop:`gridArea`}));function Jc(e,t){return t===`grey`?t:e}kc(dc({prop:`color`,themeKey:`palette`,transform:Jc}),dc({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Jc}),dc({prop:`backgroundColor`,themeKey:`palette`,transform:Jc}));function Yc(e){return e<=1&&e!==0?`${e*100}%`:e}var Xc=dc({prop:`width`,transform:Yc}),Zc=e=>e.maxWidth!==void 0&&e.maxWidth!==null?ac(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||nc[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Yc(t)}}):null;Zc.filterProps=[`maxWidth`];var Qc=dc({prop:`minWidth`,transform:Yc}),$c=dc({prop:`height`,transform:Yc}),el=dc({prop:`maxHeight`,transform:Yc}),tl=dc({prop:`minHeight`,transform:Yc});dc({prop:`size`,cssProperty:`width`,transform:Yc}),dc({prop:`size`,cssProperty:`height`,transform:Yc}),kc(Xc,Zc,Qc,$c,el,tl,dc({prop:`boxSizing`}));var nl={border:{themeKey:`borders`,transform:Ac},borderTop:{themeKey:`borders`,transform:Ac},borderRight:{themeKey:`borders`,transform:Ac},borderBottom:{themeKey:`borders`,transform:Ac},borderLeft:{themeKey:`borders`,transform:Ac},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:Ac},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:Wc},color:{themeKey:`palette`,transform:Jc},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Jc},backgroundColor:{themeKey:`palette`,transform:Jc},p:{style:Ec},pt:{style:Ec},pr:{style:Ec},pb:{style:Ec},pl:{style:Ec},px:{style:Ec},py:{style:Ec},padding:{style:Ec},paddingTop:{style:Ec},paddingRight:{style:Ec},paddingBottom:{style:Ec},paddingLeft:{style:Ec},paddingX:{style:Ec},paddingY:{style:Ec},paddingInline:{style:Ec},paddingInlineStart:{style:Ec},paddingInlineEnd:{style:Ec},paddingBlock:{style:Ec},paddingBlockStart:{style:Ec},paddingBlockEnd:{style:Ec},m:{style:Tc},mt:{style:Tc},mr:{style:Tc},mb:{style:Tc},ml:{style:Tc},mx:{style:Tc},my:{style:Tc},margin:{style:Tc},marginTop:{style:Tc},marginRight:{style:Tc},marginBottom:{style:Tc},marginLeft:{style:Tc},marginX:{style:Tc},marginY:{style:Tc},marginInline:{style:Tc},marginInlineStart:{style:Tc},marginInlineEnd:{style:Tc},marginBlock:{style:Tc},marginBlockStart:{style:Tc},marginBlockEnd:{style:Tc},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Gc},rowGap:{style:qc},columnGap:{style:Kc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:Yc},maxWidth:{style:Zc},minWidth:{transform:Yc},height:{transform:Yc},maxHeight:{transform:Yc},minHeight:{transform:Yc},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}};function rl(...e){let t=e.reduce((e,t)=>e.concat(Object.keys(t)),[]),n=new Set(t);return e.every(e=>n.size===Object.keys(e).length)}function il(e,t){return typeof e==`function`?e(t):e}function al(){function e(e,t,n,r){let i={[e]:t,theme:n},a=r[e];if(!a)return{[e]:t};let{cssProperty:o=e,themeKey:s,transform:c,style:l}=a;if(t==null)return null;if(s===`typography`&&t===`inherit`)return{[e]:t};let u=lc(n,s)||{};return l?l(i):ac(i,t,t=>{let n=uc(u,c,t);return t===n&&typeof t==`string`&&(n=uc(u,c,`${e}${t===`default`?``:cc(t)}`,t)),o===!1?n:{[o]:n}})}function t(n){let{sx:r,theme:i={},nested:a}=n||{};if(!r)return null;let o=i.unstable_sxConfig??nl;function s(n){let r=n;if(typeof n==`function`)r=n(i);else if(typeof n!=`object`)return n;if(!r)return null;let s=oc(i.breakpoints),c=Object.keys(s),l=s;return Object.keys(r).forEach(n=>{let a=il(r[n],i);if(a!=null)if(typeof a==`object`)if(o[n])l=tc(l,e(n,a,i,o));else{let e=ac({theme:i},a,e=>({[n]:e}));rl(e,a)?l[n]=t({sx:a,theme:i,nested:!0}):l=tc(l,e)}else l=tc(l,e(n,a,i,o))}),!a&&i.modularCssLayers?{"@layer sx":Xs(i,sc(c,l))}:Xs(i,sc(c,l))}return Array.isArray(r)?r.map(s):s(r)}return t}var ol=al();ol.filterProps=[`sx`];function sl(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function cl(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=Ys(n),c=Oc(i),l=qs({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...ec,...a}},o);return l=$s(l),l.applyStyles=sl,l=t.reduce((e,t)=>qs(e,t),l),l.unstable_sxConfig={...nl,...o?.unstable_sxConfig},l.unstable_sx=function(e){return ol({sx:e,theme:this})},l}function ll(e){return Object.keys(e).length===0}function ul(e=null){let t=H.useContext(Go);return!t||ll(t)?e:t}var dl=cl();function fl(e=dl){return ul(e)}function pl(e){let t=Hs(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function ml({styles:e,themeId:t,defaultTheme:n={}}){let r=fl(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>pl(typeof e==`function`?e(i):e)):pl(a)),(0,U.jsx)(Rs,{styles:a})}var hl=e=>e,gl=(()=>{let e=hl;return{configure(t){e=t},generate(t){return e(t)},reset(){e=hl}}})();function _l(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=_l(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function G(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=_l(e))&&(r&&(r+=` `),r+=t);return r}var vl={active:`active`,checked:`checked`,completed:`completed`,disabled:`disabled`,error:`error`,expanded:`expanded`,focused:`focused`,focusVisible:`focusVisible`,open:`open`,readOnly:`readOnly`,required:`required`,selected:`selected`};function yl(e,t,n=`Mui`){let r=vl[t];return r?`${n}-${r}`:`${gl.generate(e)}-${t}`}function bl(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=yl(e,t,n)}),r}function xl(e){let{variants:t,...n}=e,r={variants:t,style:Hs(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=Hs(e.style))}),r}var Sl=cl();function Cl(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function wl(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function Tl(e){return e?(t,n)=>n[e]:null}function El(e,t,n){e.theme=Al(e.theme)?n:e.theme[t]||e.theme}function Dl(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>Dl(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?wl(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?wl(Hs(i),n):i}return Ol(e,r.variants,[t],n)}return r?.isProcessed?n?wl(Hs(r.style),n):r.style:n?wl(Hs(r),n):r}function Ol(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?wl(Hs(o.style(i)),r):o.style(i))):n.push(r?wl(Hs(o.style),r):o.style)}return n}function kl(e={}){let{themeId:t,defaultTheme:n=Sl,rootShouldForwardProp:r=Cl,slotShouldForwardProp:i=Cl}=e;function a(e){El(e,t,n)}return(e,t={})=>{Bs(e,e=>e.filter(e=>e!==ol));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=Tl(Ml(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=Cl;o===`Root`||o===`root`?m=r:o?m=i:jl(e)&&(m=void 0);let h=zs(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return Dl(t,e,t.theme.modularCssLayers?d:void 0)};if(Gs(e)){let t=xl(e);return function(e){return t.variants?Dl(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?wl(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=Dl(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?Ol(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(ol),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=h(...r,...i,...o);return e.muiName&&(s.muiName=e.muiName),s};return h.withConfig&&(_.withConfig=h.withConfig),_}}function Al(e){for(let t in e)return!1;return!0}function jl(e){return typeof e==`string`&&e.charCodeAt(0)>96}function Ml(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Nl(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e;r[a][t]=Nl(i[t],o[t],n)}}}else a===`className`&&n&&t.className?r.className=G(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}var Pl=typeof window<`u`?H.useLayoutEffect:H.useEffect;function Fl(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function Il(e,t=0,n=1){return Fl(e,t,n)}function Ll(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function Rl(e){if(e.type)return e;if(e.charAt(0)===`#`)return Rl(Ll(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(Fi(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(Fi(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var zl=e=>{let t=Rl(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},Bl=(e,t)=>{try{return zl(e)}catch{return e}};function Vl(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function Hl(e){e=Rl(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),Vl({type:s,values:c})}function Ul(e){e=Rl(e);let t=e.type===`hsl`||e.type===`hsla`?Rl(Hl(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Wl(e,t){let n=Ul(e),r=Ul(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Gl(e,t){return e=Rl(e),t=Il(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,Vl(e)}function Kl(e,t,n){try{return Gl(e,t)}catch{return e}}function ql(e,t){if(e=Rl(e),t=Il(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Vl(e)}function Jl(e,t,n){try{return ql(e,t)}catch{return e}}function Yl(e,t){if(e=Rl(e),t=Il(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Vl(e)}function Xl(e,t,n){try{return Yl(e,t)}catch{return e}}function Zl(e,t=.15){return Ul(e)>.5?ql(e,t):Yl(e,t)}function Ql(e,t,n){try{return Zl(e,t)}catch{return e}}var $l=H.createContext(null);function eu(){return H.useContext($l)}var tu=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function nu(e,t){return typeof t==`function`?t(e):{...e,...t}}function ru(e){let{children:t,theme:n}=e,r=eu(),i=H.useMemo(()=>{let e=r===null?{...n}:nu(r,n);return e!=null&&(e[tu]=r!==null),e},[n,r]);return(0,U.jsx)($l.Provider,{value:i,children:t})}var iu=H.createContext();function au({value:e,...t}){return(0,U.jsx)(iu.Provider,{value:e??!0,...t})}var ou=()=>H.useContext(iu)??!1,su=H.createContext(void 0);function cu({value:e,children:t}){return(0,U.jsx)(su.Provider,{value:e,children:t})}function lu(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?Nl(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?Nl(i,r,t.components.mergeClassNameAndStyle):r}function uu({props:e,name:t}){return lu({props:e,name:t,theme:{components:H.useContext(su)}})}var du=0;function fu(e){let[t,n]=H.useState(e),r=e||t;return H.useEffect(()=>{t??(du+=1,n(`mui-${du}`))},[t]),r}var pu={...H}.useId;function mu(e){if(pu!==void 0){let t=pu();return e??t}return fu(e)}function hu(e){let t=ul(),n=mu()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,Pl(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,U.jsx)(ml,{styles:i}):null}var gu={};function _u(e,t,n,r=!1){return H.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function vu(e){let{children:t,theme:n,themeId:r}=e,i=ul(gu),a=eu()||gu,o=_u(r,i,n),s=_u(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=hu(o);return(0,U.jsx)(ru,{theme:s,children:(0,U.jsx)(Go.Provider,{value:o,children:(0,U.jsx)(au,{value:c,children:(0,U.jsxs)(cu,{value:r?o[r].components:o.components,children:[l,t]})})})})}var yu={theme:void 0};function bu(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(yu.theme=r.theme,i=xl(e(yu)),t=i,n=r.theme),i}}var xu=`mode`,Su=`color-scheme`,Cu=`data-color-scheme`;function wu(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=xu,colorSchemeStorageKey:a=Su,attribute:o=Cu,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
|
|
28
|
+
${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
|
|
29
|
+
${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
|
|
30
|
+
${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,U.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
|
|
31
|
+
try {
|
|
32
|
+
let colorScheme = '';
|
|
33
|
+
const mode = localStorage.getItem('${i}') || '${t}';
|
|
34
|
+
const dark = localStorage.getItem('${a}-dark') || '${r}';
|
|
35
|
+
const light = localStorage.getItem('${a}-light') || '${n}';
|
|
36
|
+
if (mode === 'system') {
|
|
37
|
+
// handle system mode
|
|
38
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
39
|
+
if (mql.matches) {
|
|
40
|
+
colorScheme = dark
|
|
41
|
+
} else {
|
|
42
|
+
colorScheme = light
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (mode === 'light') {
|
|
46
|
+
colorScheme = light;
|
|
47
|
+
}
|
|
48
|
+
if (mode === 'dark') {
|
|
49
|
+
colorScheme = dark;
|
|
50
|
+
}
|
|
51
|
+
if (colorScheme) {
|
|
52
|
+
${l}
|
|
53
|
+
}
|
|
54
|
+
} catch(e){}})();`}},`mui-color-scheme-init`)}function Tu(){}var Eu=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Tu;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function Du(){}function Ou(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function ku(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Au(e){return ku(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function ju(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=xu,colorSchemeStorageKey:o=Su,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=Eu,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=H.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=H.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=H.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=H.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Ou(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=H.useState(l||!d);H.useEffect(()=>{v(!0)},[]);let y=Au(h),b=H.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Ou(r)}})},[f,t]),x=H.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return ku(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=H.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=H.useRef(S);return C.current=S,H.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),H.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||Du,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||Du,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||Du;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var Mu=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function Nu(e){let{themeId:t,theme:n={},modeStorageKey:r=xu,colorSchemeStorageKey:i=Su,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=H.createContext(void 0),u=()=>H.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=H.useRef(!1),E=eu(),D=H.useContext(l),O=!!D&&!b,k=H.useMemo(()=>u||(typeof n==`function`?n():n),[u]),ee=k[t],A=ee||k,{colorSchemes:j=d,components:te=f,cssVarPrefix:M}=A,N=Object.keys(j).filter(e=>!!j[e]).join(`,`),ne=H.useMemo(()=>N.split(`,`),[N]),re=typeof o==`string`?o:o.light,P=typeof o==`string`?o:o.dark,{mode:F,setMode:ie,systemMode:ae,lightColorScheme:oe,darkColorScheme:I,colorScheme:se,setColorScheme:L}=ju({supportedColorSchemes:ne,defaultLightColorScheme:re,defaultDarkColorScheme:P,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:j[re]&&j[P]?S:j[A.defaultColorScheme]?.palette?.mode||A.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),R=F,z=se;O&&(R=D.mode,z=D.colorScheme);let ce=z||A.defaultColorScheme;A.vars&&!C&&(ce=A.defaultColorScheme);let le=H.useMemo(()=>{let e=A.generateThemeVars?.()||A.vars,t={...A,components:te,colorSchemes:j,cssVarPrefix:M,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),ce){let e=j[ce];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[A,ce,te,j,M]),ue=A.colorSchemeSelector;Pl(()=>{if(z&&y&&ue&&ue!==`media`){let e=ue,t=ue;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...ne.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,z));else{let e=t.replace(`%s`,z).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||ne.forEach(e=>{y.removeAttribute(t.replace(z,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,z)}}},[z,ue,y,ne]),H.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(Mu)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[z,h,v]),H.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let de=H.useMemo(()=>({allColorSchemes:ne,colorScheme:z,darkColorScheme:I,lightColorScheme:oe,mode:R,setColorScheme:L,setMode:ie,systemMode:ae}),[ne,z,I,oe,R,L,ie,ae,le.colorSchemeSelector]),fe=!0;(x||A.cssVariables===!1||O&&E?.cssVarPrefix===M)&&(fe=!1);let pe=(0,U.jsxs)(H.Fragment,{children:[(0,U.jsx)(vu,{themeId:ee?t:void 0,theme:le,children:c}),fe&&(0,U.jsx)(Rs,{styles:le.generateStyleSheets?.()||[]})]});return O?pe:(0,U.jsx)(l.Provider,{value:de,children:pe})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>wu({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function Pu(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var Fu=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},Iu=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Lu=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Ru(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Iu(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Lu(e,t);Object.assign(i,{[r]:c}),Fu(a,e,`var(${r})`,s),Fu(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function zu(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Ru(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Ru(n,t);p=qs(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Ru(h,t);p=qs(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=qs(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function Bu(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function Vu(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function Hu(e,t){return H.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var Uu={black:`#000`,white:`#fff`},Wu={50:`#fafafa`,100:`#f5f5f5`,200:`#eeeeee`,300:`#e0e0e0`,400:`#bdbdbd`,500:`#9e9e9e`,600:`#757575`,700:`#616161`,800:`#424242`,900:`#212121`,A100:`#f5f5f5`,A200:`#eeeeee`,A400:`#bdbdbd`,A700:`#616161`},Gu={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},Ku={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},qu={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},Ju={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},Yu={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},Xu={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`};function Zu(){return{text:{primary:`rgba(0, 0, 0, 0.87)`,secondary:`rgba(0, 0, 0, 0.6)`,disabled:`rgba(0, 0, 0, 0.38)`},divider:`rgba(0, 0, 0, 0.12)`,background:{paper:Uu.white,default:Uu.white},action:{active:`rgba(0, 0, 0, 0.54)`,hover:`rgba(0, 0, 0, 0.04)`,hoverOpacity:.04,selected:`rgba(0, 0, 0, 0.08)`,selectedOpacity:.08,disabled:`rgba(0, 0, 0, 0.26)`,disabledBackground:`rgba(0, 0, 0, 0.12)`,disabledOpacity:.38,focus:`rgba(0, 0, 0, 0.12)`,focusOpacity:.12,activatedOpacity:.12}}}var Qu=Zu();function $u(){return{text:{primary:Uu.white,secondary:`rgba(255, 255, 255, 0.7)`,disabled:`rgba(255, 255, 255, 0.5)`,icon:`rgba(255, 255, 255, 0.5)`},divider:`rgba(255, 255, 255, 0.12)`,background:{paper:`#121212`,default:`#121212`},action:{active:Uu.white,hover:`rgba(255, 255, 255, 0.08)`,hoverOpacity:.08,selected:`rgba(255, 255, 255, 0.16)`,selectedOpacity:.16,disabled:`rgba(255, 255, 255, 0.3)`,disabledBackground:`rgba(255, 255, 255, 0.12)`,disabledOpacity:.38,focus:`rgba(255, 255, 255, 0.12)`,focusOpacity:.12,activatedOpacity:.24}}}var ed=$u();function td(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=Yl(e.main,i):t===`dark`&&(e.dark=ql(e.main,a)))}function nd(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function rd(e=`light`){return e===`dark`?{main:Ju[200],light:Ju[50],dark:Ju[400]}:{main:Ju[700],light:Ju[400],dark:Ju[800]}}function id(e=`light`){return e===`dark`?{main:Gu[200],light:Gu[50],dark:Gu[400]}:{main:Gu[500],light:Gu[300],dark:Gu[700]}}function ad(e=`light`){return e===`dark`?{main:Ku[500],light:Ku[300],dark:Ku[700]}:{main:Ku[700],light:Ku[400],dark:Ku[800]}}function od(e=`light`){return e===`dark`?{main:Yu[400],light:Yu[300],dark:Yu[700]}:{main:Yu[700],light:Yu[500],dark:Yu[900]}}function sd(e=`light`){return e===`dark`?{main:Xu[400],light:Xu[300],dark:Xu[700]}:{main:Xu[800],light:Xu[500],dark:Xu[900]}}function cd(e=`light`){return e===`dark`?{main:qu[400],light:qu[300],dark:qu[700]}:{main:`#ed6c02`,light:qu[500],dark:qu[900]}}function ld(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function ud(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||rd(t),s=e.secondary||id(t),c=e.error||ad(t),l=e.info||od(t),u=e.success||sd(t),d=e.warning||cd(t);function f(e){return i?ld(e):Wl(e,ed.text.primary)>=n?ed.text.primary:Qu.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(Fi(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(Fi(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(nd(i,e,`light`,a,r),nd(i,e,`dark`,o,r)):(td(e,`light`,a,r),td(e,`dark`,o,r)),e.contrastText||=f(e.main),e},m;return t===`light`?m=Zu():t===`dark`&&(m=$u()),qs({common:{...Uu},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:Wu,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}function dd(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function fd(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function pd(e){return Math.round(e*1e5)/1e5}var md={textTransform:`uppercase`},hd=`"Roboto", "Helvetica", "Arial", sans-serif`;function gd(e,t){let{fontFamily:n=hd,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===hd?{letterSpacing:`${pd(i/t)}em`}:{},...a,...l});return qs({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,md),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,md),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var _d=.2,vd=.14,yd=.12;function bd(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_d})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${vd})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${yd})`].join(`,`)}var xd=[`none`,bd(0,2,1,-1,0,1,1,0,0,1,3,0),bd(0,3,1,-2,0,2,2,0,0,1,5,0),bd(0,3,3,-2,0,3,4,0,0,1,8,0),bd(0,2,4,-1,0,4,5,0,0,1,10,0),bd(0,3,5,-1,0,5,8,0,0,1,14,0),bd(0,3,5,-1,0,6,10,0,0,1,18,0),bd(0,4,5,-2,0,7,10,1,0,2,16,1),bd(0,5,5,-3,0,8,10,1,0,3,14,2),bd(0,5,6,-3,0,9,12,1,0,3,16,2),bd(0,6,6,-3,0,10,14,1,0,4,18,3),bd(0,6,7,-4,0,11,15,1,0,4,20,3),bd(0,7,8,-4,0,12,17,2,0,5,22,4),bd(0,7,8,-4,0,13,19,2,0,5,24,4),bd(0,7,9,-4,0,14,21,2,0,5,26,4),bd(0,8,9,-5,0,15,22,2,0,6,28,5),bd(0,8,10,-5,0,16,24,2,0,6,30,5),bd(0,8,11,-5,0,17,26,2,0,6,32,5),bd(0,9,11,-5,0,18,28,2,0,7,34,6),bd(0,9,12,-6,0,19,29,2,0,7,36,6),bd(0,10,13,-6,0,20,31,3,0,8,38,7),bd(0,10,13,-6,0,21,33,3,0,8,40,7),bd(0,10,14,-6,0,22,35,3,0,8,42,7),bd(0,11,14,-7,0,23,36,3,0,9,44,8),bd(0,11,15,-7,0,24,38,3,0,9,46,8)],Sd={easeInOut:`cubic-bezier(0.4, 0, 0.2, 1)`,easeOut:`cubic-bezier(0.0, 0, 0.2, 1)`,easeIn:`cubic-bezier(0.4, 0, 1, 1)`,sharp:`cubic-bezier(0.4, 0, 0.6, 1)`},Cd={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wd(e){return`${Math.round(e)}ms`}function Td(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Ed(e){let t={...Sd,...e.easing},n={...Cd,...e.duration};return{getAutoHeightDuration:Td,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:wd(i)} ${a} ${typeof o==`string`?o:wd(o)}`).join(`,`)},...e,easing:t,duration:n}}var Dd={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Od(e){return Gs(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function kd(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!Od(a)||i.startsWith(`unstable_`)?delete e[i]:Gs(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
55
|
+
|
|
56
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
57
|
+
|
|
58
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
59
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
60
|
+
|
|
61
|
+
export default theme;`}function Ad(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var jd=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function Md(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:Gl(t,jd(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Ad(n)})`:Yl(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Ad(n)})`:ql(t,n)}})}function Nd(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(Fi(20));let d=ud({...a,colorSpace:l}),f=cl(e),p=qs(f,{mixins:fd(f.breakpoints,r),palette:d,shadows:xd.slice(),typography:gd(d,s),transitions:Ed(o),zIndex:{...Dd}});return p=qs(p,u),p=t.reduce((e,t)=>qs(e,t),p),p.unstable_sxConfig={...nl,...u?.unstable_sxConfig},p.unstable_sx=function(e){return ol({sx:e,theme:this})},p.toRuntimeSource=kd,Md(p),p}function Pd(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var Fd=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=Pd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Id(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function Ld(e){return e===`dark`?Fd:[]}function Rd(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=ud({...t,colorSpace:i});return{palette:o,opacity:{...Id(o.mode),...n},overlays:r||Ld(o.mode),...a}}function zd(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var Bd=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],Vd=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return Bd(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function Hd(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function K(e,t,n){!e[t]&&n&&(e[t]=n)}function Ud(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:Hl(e)}function Wd(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Bl(Ud(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
62
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Gd(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var Kd=e=>{try{return e()}catch{}},qd=(e=`mui`)=>Pu(e);function Jd(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=Rd({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=Nd({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...Id(a),...n?.opacity},overlays:n?.overlays||Ld(a)},s}function Yd(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=zd,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=qd(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(Fi(21,f));let b;o&&(b=`oklch`);let x=Jd(b,v,y,u,f);h&&!v.light&&Jd(b,v,h,void 0,`light`),g&&!v.dark&&Jd(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...dd(x.typography),...x.font},spacing:Gd(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(K(t.common,`background`,`#fff`),K(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(K(t.common,`background`,`#000`),K(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===Kl&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===Jl&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Xl&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(Hd(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){K(t.Alert,`errorColor`,r(Jl,t.error.light,.6)),K(t.Alert,`infoColor`,r(Jl,t.info.light,.6)),K(t.Alert,`successColor`,r(Jl,t.success.light,.6)),K(t.Alert,`warningColor`,r(Jl,t.warning.light,.6)),K(t.Alert,`errorFilledBg`,n(`palette-error-main`)),K(t.Alert,`infoFilledBg`,n(`palette-info-main`)),K(t.Alert,`successFilledBg`,n(`palette-success-main`)),K(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),K(t.Alert,`errorFilledColor`,Kd(()=>t.getContrastText(t.error.main))),K(t.Alert,`infoFilledColor`,Kd(()=>t.getContrastText(t.info.main))),K(t.Alert,`successFilledColor`,Kd(()=>t.getContrastText(t.success.main))),K(t.Alert,`warningFilledColor`,Kd(()=>t.getContrastText(t.warning.main))),K(t.Alert,`errorStandardBg`,r(Xl,t.error.light,.9)),K(t.Alert,`infoStandardBg`,r(Xl,t.info.light,.9)),K(t.Alert,`successStandardBg`,r(Xl,t.success.light,.9)),K(t.Alert,`warningStandardBg`,r(Xl,t.warning.light,.9)),K(t.Alert,`errorIconColor`,n(`palette-error-main`)),K(t.Alert,`infoIconColor`,n(`palette-info-main`)),K(t.Alert,`successIconColor`,n(`palette-success-main`)),K(t.Alert,`warningIconColor`,n(`palette-warning-main`)),K(t.AppBar,`defaultBg`,n(`palette-grey-100`)),K(t.Avatar,`defaultBg`,n(`palette-grey-400`)),K(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),K(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),K(t.Chip,`defaultBorder`,n(`palette-grey-400`)),K(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),K(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),K(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),K(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),K(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),K(t.LinearProgress,`primaryBg`,r(Xl,t.primary.main,.62)),K(t.LinearProgress,`secondaryBg`,r(Xl,t.secondary.main,.62)),K(t.LinearProgress,`errorBg`,r(Xl,t.error.main,.62)),K(t.LinearProgress,`infoBg`,r(Xl,t.info.main,.62)),K(t.LinearProgress,`successBg`,r(Xl,t.success.main,.62)),K(t.LinearProgress,`warningBg`,r(Xl,t.warning.main,.62)),K(t.Skeleton,`bg`,b?r(Kl,t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),K(t.Slider,`primaryTrack`,r(Xl,t.primary.main,.62)),K(t.Slider,`secondaryTrack`,r(Xl,t.secondary.main,.62)),K(t.Slider,`errorTrack`,r(Xl,t.error.main,.62)),K(t.Slider,`infoTrack`,r(Xl,t.info.main,.62)),K(t.Slider,`successTrack`,r(Xl,t.success.main,.62)),K(t.Slider,`warningTrack`,r(Xl,t.warning.main,.62));let e=b?r(Jl,t.background.default,.6825):Ql(t.background.default,.8);K(t.SnackbarContent,`bg`,e),K(t.SnackbarContent,`color`,Kd(()=>b?ed.text.primary:t.getContrastText(e))),K(t.SpeedDialAction,`fabHoverBg`,Ql(t.background.paper,.15)),K(t.StepConnector,`border`,n(`palette-grey-400`)),K(t.StepContent,`border`,n(`palette-grey-400`)),K(t.Switch,`defaultColor`,n(`palette-common-white`)),K(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),K(t.Switch,`primaryDisabledColor`,r(Xl,t.primary.main,.62)),K(t.Switch,`secondaryDisabledColor`,r(Xl,t.secondary.main,.62)),K(t.Switch,`errorDisabledColor`,r(Xl,t.error.main,.62)),K(t.Switch,`infoDisabledColor`,r(Xl,t.info.main,.62)),K(t.Switch,`successDisabledColor`,r(Xl,t.success.main,.62)),K(t.Switch,`warningDisabledColor`,r(Xl,t.warning.main,.62)),K(t.TableCell,`border`,r(Xl,r(Kl,t.divider,1),.88)),K(t.Tooltip,`bg`,r(Kl,t.grey[700],.92))}if(t.mode===`dark`){K(t.Alert,`errorColor`,r(Xl,t.error.light,.6)),K(t.Alert,`infoColor`,r(Xl,t.info.light,.6)),K(t.Alert,`successColor`,r(Xl,t.success.light,.6)),K(t.Alert,`warningColor`,r(Xl,t.warning.light,.6)),K(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),K(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),K(t.Alert,`successFilledBg`,n(`palette-success-dark`)),K(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),K(t.Alert,`errorFilledColor`,Kd(()=>t.getContrastText(t.error.dark))),K(t.Alert,`infoFilledColor`,Kd(()=>t.getContrastText(t.info.dark))),K(t.Alert,`successFilledColor`,Kd(()=>t.getContrastText(t.success.dark))),K(t.Alert,`warningFilledColor`,Kd(()=>t.getContrastText(t.warning.dark))),K(t.Alert,`errorStandardBg`,r(Jl,t.error.light,.9)),K(t.Alert,`infoStandardBg`,r(Jl,t.info.light,.9)),K(t.Alert,`successStandardBg`,r(Jl,t.success.light,.9)),K(t.Alert,`warningStandardBg`,r(Jl,t.warning.light,.9)),K(t.Alert,`errorIconColor`,n(`palette-error-main`)),K(t.Alert,`infoIconColor`,n(`palette-info-main`)),K(t.Alert,`successIconColor`,n(`palette-success-main`)),K(t.Alert,`warningIconColor`,n(`palette-warning-main`)),K(t.AppBar,`defaultBg`,n(`palette-grey-900`)),K(t.AppBar,`darkBg`,n(`palette-background-paper`)),K(t.AppBar,`darkColor`,n(`palette-text-primary`)),K(t.Avatar,`defaultBg`,n(`palette-grey-600`)),K(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),K(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),K(t.Chip,`defaultBorder`,n(`palette-grey-700`)),K(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),K(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),K(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),K(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),K(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),K(t.LinearProgress,`primaryBg`,r(Jl,t.primary.main,.5)),K(t.LinearProgress,`secondaryBg`,r(Jl,t.secondary.main,.5)),K(t.LinearProgress,`errorBg`,r(Jl,t.error.main,.5)),K(t.LinearProgress,`infoBg`,r(Jl,t.info.main,.5)),K(t.LinearProgress,`successBg`,r(Jl,t.success.main,.5)),K(t.LinearProgress,`warningBg`,r(Jl,t.warning.main,.5)),K(t.Skeleton,`bg`,b?r(Kl,t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),K(t.Slider,`primaryTrack`,r(Jl,t.primary.main,.5)),K(t.Slider,`secondaryTrack`,r(Jl,t.secondary.main,.5)),K(t.Slider,`errorTrack`,r(Jl,t.error.main,.5)),K(t.Slider,`infoTrack`,r(Jl,t.info.main,.5)),K(t.Slider,`successTrack`,r(Jl,t.success.main,.5)),K(t.Slider,`warningTrack`,r(Jl,t.warning.main,.5));let e=b?r(Xl,t.background.default,.985):Ql(t.background.default,.98);K(t.SnackbarContent,`bg`,e),K(t.SnackbarContent,`color`,Kd(()=>b?Qu.text.primary:t.getContrastText(e))),K(t.SpeedDialAction,`fabHoverBg`,Ql(t.background.paper,.15)),K(t.StepConnector,`border`,n(`palette-grey-600`)),K(t.StepContent,`border`,n(`palette-grey-600`)),K(t.Switch,`defaultColor`,n(`palette-grey-300`)),K(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),K(t.Switch,`primaryDisabledColor`,r(Jl,t.primary.main,.55)),K(t.Switch,`secondaryDisabledColor`,r(Jl,t.secondary.main,.55)),K(t.Switch,`errorDisabledColor`,r(Jl,t.error.main,.55)),K(t.Switch,`infoDisabledColor`,r(Jl,t.info.main,.55)),K(t.Switch,`successDisabledColor`,r(Jl,t.success.main,.55)),K(t.Switch,`warningDisabledColor`,r(Jl,t.warning.main,.55)),K(t.TableCell,`border`,r(Jl,r(Kl,t.divider,1),.68)),K(t.Tooltip,`bg`,r(Kl,t.grey[700],.92))}Wd(t.background,`default`),Wd(t.background,`paper`),Wd(t.common,`background`),Wd(t.common,`onBackground`),Wd(t,`divider`),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&n&&typeof n==`object`&&(n.main&&K(t[e],`mainChannel`,Bl(Ud(n.main))),n.light&&K(t[e],`lightChannel`,Bl(Ud(n.light))),n.dark&&K(t[e],`darkChannel`,Bl(Ud(n.dark))),n.contrastText&&K(t[e],`contrastTextChannel`,Bl(Ud(n.contrastText))),e===`text`&&(Wd(t[e],`primary`),Wd(t[e],`secondary`)),e===`action`&&(n.active&&Wd(t[e],`active`),n.selected&&Wd(t[e],`selected`)))})}),S=t.reduce((e,t)=>qs(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Vd(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=zu(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return Oc(u.spacing,W(this))},S.getColorSchemeSelector=Bu(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...nl,...u?.unstable_sxConfig},S.unstable_sx=function(e){return ol({sx:e,theme:this})},S.toRuntimeSource=kd,S}function Xd(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ud({...n===!0?{}:n.palette,mode:t})})}function Zd(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return Nd(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=Nd({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},Xd(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Xd(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Yd({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var Qd=Zd();function $d(){let e=fl(Qd);return e.$$material||e}function ef(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var tf=e=>ef(e)&&e!==`classes`,q=kl({themeId:Ii,defaultTheme:Qd,rootShouldForwardProp:tf});function nf({theme:e,...t}){let n=`$$material`in e?e[Ii]:void 0;return(0,U.jsx)(vu,{...t,themeId:n?Ii:void 0,theme:n||e})}var rf={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:af,useColorScheme:of,getInitColorSchemeScript:sf}=Nu({themeId:Ii,theme:()=>Zd({cssVariables:!0}),colorSchemeStorageKey:rf.colorSchemeStorageKey,modeStorageKey:rf.modeStorageKey,defaultColorScheme:{light:rf.defaultLightColorScheme,dark:rf.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:gd(e.palette,e.typography)};return t.unstable_sx=function(e){return ol({sx:e,theme:this})},t}}),cf=af;function lf({theme:e,...t}){let n=H.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[Ii]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,U.jsx)(nf,{theme:n,...t}):(0,U.jsx)(cf,{theme:e,...t})}var uf={};function df(e,t){let n=H.useRef(uf);return n.current===uf&&(n.current=e(t)),n}var ff=[];function pf(e){H.useEffect(e,ff)}var mf=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function hf(){let e=df(mf.create).current;return pf(e.disposeEffect),e}function gf(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function _f(e){return e?.ref||null}var vf=bu;function yf(e){return uu(e)}var bf=cc;function xf(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Sf(e,t){return Sf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Sf(e,t)}function Cf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Sf(e,t)}function wf(e,t){return e.classList?!!t&&e.classList.contains(t):(` `+(e.className.baseVal||e.className)+` `).indexOf(` `+t+` `)!==-1}function Tf(e,t){e.classList?e.classList.add(t):wf(e,t)||(typeof e.className==`string`?e.className=e.className+` `+t:e.setAttribute(`class`,(e.className&&e.className.baseVal||``)+` `+t))}function Ef(e,t){return e.replace(RegExp(`(^|\\s)`+t+`(?:\\s|$)`,`g`),`$1`).replace(/\s+/g,` `).replace(/^\s*|\s*$/g,``)}function Df(e,t){e.classList?e.classList.remove(t):typeof e.className==`string`?e.className=Ef(e.className,t):e.setAttribute(`class`,Ef(e.className&&e.className.baseVal||``,t))}var Of={disabled:!1},kf=H.createContext(null),Af=function(e){return e.scrollTop},jf=l(h()),Mf=`unmounted`,Nf=`exited`,Pf=`entering`,Ff=`entered`,If=`exiting`,Lf=function(e){Cf(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=Nf,r.appearStatus=Pf):o=Ff:o=t.unmountOnExit||t.mountOnEnter?Mf:Nf,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Nf}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=Pf):(n===`entering`||n===`entered`)&&(t=If)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null)if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:jf.findDOMNode(this);n&&Af(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Mf})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[jf.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||Of.disabled){this.safeSetState({status:Ff},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:Pf},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Ff},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:jf.findDOMNode(this);if(!t||Of.disabled){this.safeSetState({status:Nf},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:If},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Nf},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:jf.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=xf(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return H.createElement(kf.Provider,{value:null},typeof n==`function`?n(e,r):H.cloneElement(H.Children.only(n),r))},t}(H.Component);Lf.contextType=kf,Lf.propTypes={};function Rf(){}Lf.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Rf,onEntering:Rf,onEntered:Rf,onExit:Rf,onExiting:Rf,onExited:Rf},Lf.UNMOUNTED=Mf,Lf.EXITED=Nf,Lf.ENTERING=Pf,Lf.ENTERED=Ff,Lf.EXITING=If;var zf=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Tf(e,t)})},Bf=function(e,t){return e&&t&&t.split(` `).forEach(function(t){return Df(e,t)})},Vf=function(e){Cf(t,e);function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t.appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,`exit`),t.addClass(i,a?`appear`:`enter`,`base`),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.addClass(i,a,`active`),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?`appear`:`enter`;t.removeClasses(i,a),t.addClass(i,a,`done`),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`appear`),t.removeClasses(n,`enter`),t.addClass(n,`exit`,`base`),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,`exit`,`active`),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,`exit`),t.addClass(n,`exit`,`done`),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r=typeof n==`string`,i=r&&n?n+`-`:``,a=r?``+i+e:n[e];return{baseClassName:a,activeClassName:r?a+`-active`:n[e+`Active`],doneClassName:r?a+`-done`:n[e+`Done`]}},t}var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+`ClassName`],i=this.getClassNames(`enter`).doneClassName;t===`appear`&&n===`done`&&i&&(r+=` `+i),n===`active`&&e&&Af(e),r&&(this.appliedClasses[t][n]=r,zf(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Bf(e,r),i&&Bf(e,i),a&&Bf(e,a)},n.render=function(){var e=this.props;e.classNames;var t=xf(e,[`classNames`]);return H.createElement(Lf,Li({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(H.Component);Vf.defaultProps={classNames:``},Vf.propTypes={};function Hf(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Uf(e,t){var n=function(e){return t&&(0,H.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&H.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Wf(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o<r[c].length;o++){var l=r[c][o];s[r[c][o]]=n(l)}s[c]=n(c)}for(o=0;o<i.length;o++)s[i[o]]=n(i[o]);return s}function Gf(e,t,n){return n[t]==null?e.props[t]:n[t]}function Kf(e,t){return Uf(e.children,function(n){return(0,H.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:Gf(n,`appear`,e),enter:Gf(n,`enter`,e),exit:Gf(n,`exit`,e)})})}function qf(e,t,n){var r=Uf(e.children),i=Wf(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if((0,H.isValidElement)(o)){var s=a in t,c=a in r,l=t[a],u=(0,H.isValidElement)(l)&&!l.props.in;c&&(!s||u)?i[a]=(0,H.cloneElement)(o,{onExited:n.bind(null,o),in:!0,exit:Gf(o,`exit`,e),enter:Gf(o,`enter`,e)}):!c&&s&&!u?i[a]=(0,H.cloneElement)(o,{in:!1}):c&&s&&(0,H.isValidElement)(l)&&(i[a]=(0,H.cloneElement)(o,{onExited:n.bind(null,o),in:l.props.in,exit:Gf(o,`exit`,e),enter:Gf(o,`enter`,e)}))}}),i}var Jf=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Yf={component:`div`,childFactory:function(e){return e}},Xf=function(e){Cf(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Hf(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?Kf(e,r):qf(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=Uf(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=Li({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=xf(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Jf(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?H.createElement(kf.Provider,{value:i},a):H.createElement(kf.Provider,{value:i},H.createElement(t,r,a))},t}(H.Component);Xf.propTypes={},Xf.defaultProps=Yf;var Zf=e=>e.scrollTop;function Qf(e,t){let{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function $f(...e){let t=H.useRef(void 0),n=H.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return H.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var ep=$f;function tp(e){return`scale(${e}, ${e**2})`}var np={entering:{opacity:1,transform:tp(1)},entered:{opacity:1,transform:`none`}},rp=typeof navigator<`u`&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ip=H.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,easing:a,in:o,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:f,style:p,timeout:m=`auto`,TransitionComponent:h=Lf,...g}=e,_=hf(),v=H.useRef(),y=$d(),b=H.useRef(null),x=ep(b,_f(i),t),S=e=>t=>{if(e){let n=b.current;t===void 0?e(n):e(n,t)}},C=S(l),w=S((e,t)=>{Zf(e);let{duration:n,delay:r,easing:i}=Qf({style:p,timeout:m,easing:a},{mode:`enter`}),o;m===`auto`?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=n,e.style.transition=[y.transitions.create(`opacity`,{duration:o,delay:r}),y.transitions.create(`transform`,{duration:rp?o:o*.666,delay:r,easing:i})].join(`,`),s&&s(e,t)}),T=S(c),E=S(f),D=S(e=>{let{duration:t,delay:n,easing:r}=Qf({style:p,timeout:m,easing:a},{mode:`exit`}),i;m===`auto`?(i=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=i):i=t,e.style.transition=[y.transitions.create(`opacity`,{duration:i,delay:n}),y.transitions.create(`transform`,{duration:rp?i:i*.666,delay:rp?n:n||i*.333,easing:r})].join(`,`),e.style.opacity=0,e.style.transform=tp(.75),u&&u(e)}),O=S(d);return(0,U.jsx)(h,{appear:r,in:o,nodeRef:b,onEnter:w,onEntered:T,onEntering:C,onExit:D,onExited:O,onExiting:E,addEndListener:e=>{m===`auto`&&_.start(v.current||0,e),n&&n(b.current,e)},timeout:m===`auto`?null:m,...g,children:(e,{ownerState:t,...n})=>H.cloneElement(i,{style:{opacity:0,transform:tp(.75),visibility:e===`exited`&&!o?`hidden`:void 0,...np[e],...p,...i.props.style},ref:x,...n})})});ip&&(ip.muiSupportAuto=!0);function ap(e){return e&&e.ownerDocument||document}var op=`bottom`,sp=`right`,cp=`left`,lp=`auto`,up=[`top`,op,sp,cp],dp=`start`,fp=`clippingParents`,pp=`viewport`,mp=`popper`,hp=`reference`,gp=up.reduce(function(e,t){return e.concat([t+`-`+dp,t+`-end`])},[]),_p=[].concat(up,[lp]).reduce(function(e,t){return e.concat([t,t+`-`+dp,t+`-end`])},[]),vp=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function yp(e){return e?(e.nodeName||``).toLowerCase():null}function bp(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function xp(e){return e instanceof bp(e).Element||e instanceof Element}function Sp(e){return e instanceof bp(e).HTMLElement||e instanceof HTMLElement}function Cp(e){return typeof ShadowRoot>`u`?!1:e instanceof bp(e).ShadowRoot||e instanceof ShadowRoot}function wp(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];!Sp(i)||!yp(i)||(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Tp(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});!Sp(r)||!yp(r)||(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var Ep={name:`applyStyles`,enabled:!0,phase:`write`,fn:wp,effect:Tp,requires:[`computeStyles`]};function Dp(e){return e.split(`-`)[0]}var Op=Math.max,kp=Math.min,Ap=Math.round;function jp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function Mp(){return!/^((?!chrome|android).)*safari/i.test(jp())}function Np(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Sp(e)&&(i=e.offsetWidth>0&&Ap(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ap(r.height)/e.offsetHeight||1);var o=(xp(e)?bp(e):window).visualViewport,s=!Mp()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function Pp(e){var t=Np(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Fp(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Cp(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ip(e){return bp(e).getComputedStyle(e)}function Lp(e){return[`table`,`td`,`th`].indexOf(yp(e))>=0}function Rp(e){return((xp(e)?e.ownerDocument:e.document)||window.document).documentElement}function zp(e){return yp(e)===`html`?e:e.assignedSlot||e.parentNode||(Cp(e)?e.host:null)||Rp(e)}function Bp(e){return!Sp(e)||Ip(e).position===`fixed`?null:e.offsetParent}function Vp(e){var t=/firefox/i.test(jp());if(/Trident/i.test(jp())&&Sp(e)&&Ip(e).position===`fixed`)return null;var n=zp(e);for(Cp(n)&&(n=n.host);Sp(n)&&[`html`,`body`].indexOf(yp(n))<0;){var r=Ip(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function Hp(e){for(var t=bp(e),n=Bp(e);n&&Lp(n)&&Ip(n).position===`static`;)n=Bp(n);return n&&(yp(n)===`html`||yp(n)===`body`&&Ip(n).position===`static`)?t:n||Vp(e)||t}function Up(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function Wp(e,t,n){return Op(e,kp(t,n))}function Gp(e,t,n){var r=Wp(e,t,n);return r>n?n:r}function Kp(){return{top:0,right:0,bottom:0,left:0}}function qp(e){return Object.assign({},Kp(),e)}function Jp(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Yp=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,qp(typeof e==`number`?Jp(e,up):e)};function Xp(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Dp(n.placement),c=Up(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(!(!a||!o)){var u=Yp(i.padding,n),d=Pp(a),f=c===`y`?`top`:cp,p=c===`y`?op:sp,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=Hp(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=Wp(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function Zp(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||Fp(t.elements.popper,r)&&(t.elements.arrow=r))}var Qp={name:`arrow`,enabled:!0,phase:`main`,fn:Xp,effect:Zp,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function $p(e){return e.split(`-`)[1]}var em={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function tm(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Ap(n*i)/i||0,y:Ap(r*i)/i||0}}function nm(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=cp,b=`top`,x=window;if(l){var S=Hp(n),C=`clientHeight`,w=`clientWidth`;if(S===bp(n)&&(S=Rp(n),Ip(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=op;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=sp;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&em),O=u===!0?tm({x:p,y:h},bp(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function rm(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:Dp(t.placement),variation:$p(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nm(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nm(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var im={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:rm,data:{}},am={passive:!0};function om(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,c=bp(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,am)}),s&&c.addEventListener(`resize`,n.update,am),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,am)}),s&&c.removeEventListener(`resize`,n.update,am)}}var sm={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:om,data:{}},cm={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function lm(e){return e.replace(/left|right|bottom|top/g,function(e){return cm[e]})}var um={start:`end`,end:`start`};function dm(e){return e.replace(/start|end/g,function(e){return um[e]})}function fm(e){var t=bp(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function pm(e){return Np(Rp(e)).left+fm(e).scrollLeft}function mm(e,t){var n=bp(e),r=Rp(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=Mp();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+pm(e),y:c}}function hm(e){var t=Rp(e),n=fm(e),r=e.ownerDocument?.body,i=Op(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Op(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+pm(e),s=-n.scrollTop;return Ip(r||t).direction===`rtl`&&(o+=Op(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function gm(e){var t=Ip(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function _m(e){return[`html`,`body`,`#document`].indexOf(yp(e))>=0?e.ownerDocument.body:Sp(e)&&gm(e)?e:_m(zp(e))}function vm(e,t){t===void 0&&(t=[]);var n=_m(e),r=n===e.ownerDocument?.body,i=bp(n),a=r?[i].concat(i.visualViewport||[],gm(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(vm(zp(a)))}function ym(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bm(e,t){var n=Np(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function xm(e,t,n){return t===`viewport`?ym(mm(e,n)):xp(t)?bm(t,n):ym(hm(Rp(e)))}function Sm(e){var t=vm(zp(e)),n=[`absolute`,`fixed`].indexOf(Ip(e).position)>=0&&Sp(e)?Hp(e):e;return xp(n)?t.filter(function(e){return xp(e)&&Fp(e,n)&&yp(e)!==`body`}):[]}function Cm(e,t,n,r){var i=t===`clippingParents`?Sm(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=xm(e,n,r);return t.top=Op(i.top,t.top),t.right=kp(i.right,t.right),t.bottom=kp(i.bottom,t.bottom),t.left=Op(i.left,t.left),t},xm(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function wm(e){var t=e.reference,n=e.element,r=e.placement,i=r?Dp(r):null,a=r?$p(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case op:c={x:o,y:t.y+t.height};break;case sp:c={x:t.x+t.width,y:s};break;case cp:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?Up(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case dp:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2);break;default:}}return c}function Tm(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?fp:s,l=n.rootBoundary,u=l===void 0?pp:l,d=n.elementContext,f=d===void 0?mp:d,p=n.altBoundary,m=p===void 0?!1:p,h=n.padding,g=h===void 0?0:h,_=qp(typeof g==`number`?Jp(g,up):g),v=f===`popper`?hp:mp,y=e.rects.popper,b=e.elements[m?v:f],x=Cm(xp(b)?b:b.contextElement||Rp(e.elements.popper),c,u,o),S=Np(e.elements.reference),C=wm({reference:S,element:y,strategy:`absolute`,placement:i}),w=ym(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function Em(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?_p:c,u=$p(r),d=u?s?gp:gp.filter(function(e){return $p(e)===u}):up,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Tm(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Dp(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Dm(e){if(Dp(e)===`auto`)return[];var t=lm(e);return[dm(e),t,dm(t)]}function Om(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0?!0:p,h=n.allowedAutoPlacements,g=t.options.placement,_=Dp(g)===g,v=c||(_||!m?[lm(g)]:Dm(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(Dp(n)===`auto`?Em(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=Dp(E),O=$p(E)===dp,k=[`top`,op].indexOf(D)>=0,ee=k?`width`:`height`,A=Tm(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),j=k?O?sp:cp:O?op:`top`;b[ee]>x[ee]&&(j=lm(j));var te=lm(j),M=[];if(a&&M.push(A[D]<=0),s&&M.push(A[j]<=0,A[te]<=0),M.every(function(e){return e})){w=E,C=!1;break}S.set(E,M)}if(C)for(var N=m?3:1,ne=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},re=N;re>0&&ne(re)!==`break`;re--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var km={name:`flip`,enabled:!0,phase:`main`,fn:Om,requiresIfExists:[`offset`],data:{_skip:!1}};function Am(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function jm(e){return[`top`,sp,op,cp].some(function(t){return e[t]>=0})}function Mm(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Tm(t,{elementContext:`reference`}),s=Tm(t,{altBoundary:!0}),c=Am(o,r),l=Am(s,i,a),u=jm(c),d=jm(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Nm={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:Mm};function Pm(e,t,n){var r=Dp(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Fm(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=_p.reduce(function(e,n){return e[n]=Pm(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var Im={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:Fm};function Lm(e){var t=e.state,n=e.name;t.modifiersData[n]=wm({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var Rm={name:`popperOffsets`,enabled:!0,phase:`read`,fn:Lm,data:{}};function zm(e){return e===`x`?`y`:`x`}function Bm(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,m=n.tetherOffset,h=m===void 0?0:m,g=Tm(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=Dp(t.placement),v=$p(t.placement),y=!v,b=Up(_),x=zm(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:cp,ee=b===`y`?op:sp,A=b===`y`?`height`:`width`,j=S[b],te=j+g[k],M=j-g[ee],N=p?-w[A]/2:0,ne=v===`start`?C[A]:w[A],re=v===`start`?-w[A]:-C[A],P=t.elements.arrow,F=p&&P?Pp(P):{width:0,height:0},ie=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:Kp(),ae=ie[k],oe=ie[ee],I=Wp(0,C[A],F[A]),se=y?C[A]/2-N-I-ae-E.mainAxis:ne-I-ae-E.mainAxis,L=y?-C[A]/2+N+I+oe+E.mainAxis:re+I+oe+E.mainAxis,R=t.elements.arrow&&Hp(t.elements.arrow),z=R?b===`y`?R.clientTop||0:R.clientLeft||0:0,ce=D?.[b]??0,le=j+se-ce-z,ue=j+L-ce,de=Wp(p?kp(te,le):te,j,p?Op(M,ue):M);S[b]=de,O[b]=de-j}if(s){var fe=b===`x`?`top`:cp,pe=b===`x`?op:sp,B=S[x],me=x===`y`?`height`:`width`,he=B+g[fe],ge=B-g[pe],_e=[`top`,cp].indexOf(_)!==-1,ve=D?.[x]??0,V=_e?he:B-C[me]-w[me]-ve+E.altAxis,ye=_e?B+C[me]+w[me]-ve-E.altAxis:ge,be=p&&_e?Gp(V,B,ye):Wp(p?V:he,B,p?ye:ge);S[x]=be,O[x]=be-B}t.modifiersData[r]=O}}var Vm={name:`preventOverflow`,enabled:!0,phase:`main`,fn:Bm,requiresIfExists:[`offset`]};function Hm(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Um(e){return e===bp(e)||!Sp(e)?fm(e):Hm(e)}function Wm(e){var t=e.getBoundingClientRect(),n=Ap(t.width)/e.offsetWidth||1,r=Ap(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Gm(e,t,n){n===void 0&&(n=!1);var r=Sp(t),i=Sp(t)&&Wm(t),a=Rp(t),o=Np(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((yp(t)!==`body`||gm(a))&&(s=Um(t)),Sp(t)?(c=Np(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=pm(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function Km(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function qm(e){var t=Km(e);return vp.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function Jm(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function Ym(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var Xm={placement:`bottom`,modifiers:[],strategy:`absolute`};function Zm(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function Qm(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?Xm:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},Xm,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:xp(e)?vm(e):e.contextElement?vm(e.contextElement):[],popper:vm(t)};var s=qm(Ym([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(Zm(t,n)){i.rects={reference:Gm(t,Hp(n),i.options.strategy===`fixed`),popper:Pp(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++){if(i.reset===!0){i.reset=!1,r=-1;continue}var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:Jm(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!Zm(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var $m=Qm({defaultModifiers:[sm,Rm,im,Ep,Im,km,Vm,Qp,Nm]});function eh(e){return typeof e==`string`}function th(e,t,n){return e===void 0||eh(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function nh(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function rh(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}function ih(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=G(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=nh({...i,...r}),s=rh(r),c=rh(i),l=t(o),u=G(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}function ah(e,t,n){return typeof e==`function`?e(t,n):e}function oh(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:ah(n,r),{props:s,internalRef:c}=ih({...a,externalSlotProps:o}),l=$f(c,o?.ref,e.additionalProps?.ref);return th(t,{...s,ref:l},r)}function sh(e,t){typeof e==`function`?e(t):e&&(e.current=t)}function ch(e){return typeof e==`function`?e():e}var lh=H.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=H.useState(null),s=$f(H.isValidElement(n)?_f(n):null,t);if(Pl(()=>{i||o(ch(r)||document.body)},[r,i]),Pl(()=>{if(a&&!i)return sh(t,a),()=>{sh(t,null)}},[t,a,i]),i){if(H.isValidElement(n)){let e={ref:s};return H.cloneElement(n,e)}return n}return a&&jf.createPortal(n,a)});function uh(e){return yl(`MuiPopper`,e)}bl(`MuiPopper`,[`root`]);function dh(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function fh(e){return typeof e==`function`?e():e}function ph(e){return e.nodeType!==void 0}var mh=e=>{let{classes:t}=e;return Vu({root:[`root`]},uh,t)},hh={},gh=H.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=H.useRef(null),_=$f(g,t),v=H.useRef(null),y=$f(v,u),b=H.useRef(y);Pl(()=>{b.current=y},[y]),H.useImperativeHandle(u,()=>v.current,[]);let x=dh(c,i),[S,C]=H.useState(x),[w,T]=H.useState(fh(n));H.useEffect(()=>{v.current&&v.current.forceUpdate()}),H.useEffect(()=>{n&&T(fh(n))},[n]),Pl(()=>{if(!w||!s)return;let e=e=>{C(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=$m(w,g.current,{placement:x,...l,modifiers:t});return b.current(n),()=>{n.destroy(),b.current(null)}},[w,a,o,s,l,x]);let E={placement:S};p!==null&&(E.TransitionProps=p);let D=mh(e),O=f.root??`div`;return(0,U.jsx)(O,{...oh({elementType:O,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:D.root}),children:typeof r==`function`?r(E):r})}),_h=q(H.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=hh,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=H.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let S;if(i)S=i;else if(n){let e=fh(n);S=e&&ph(e)?ap(e).body:ap(null).body}let C=!l&&s&&(!m||v)?`none`:void 0,w=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,U.jsx)(lh,{disablePortal:o,container:S,children:(0,U.jsx)(gh,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:C,...p},TransitionProps:w,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),vh=H.forwardRef(function(e,t){let n=ou(),{anchorEl:r,component:i,components:a,componentsProps:o,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,slots:g,slotProps:_,...v}=yf({props:e,name:`MuiPopper`}),y=g?.root??a?.Root,b={anchorEl:r,container:s,disablePortal:c,keepMounted:l,modifiers:u,open:d,placement:f,popperOptions:p,popperRef:m,transition:h,...v};return(0,U.jsx)(_h,{as:i,direction:n?`rtl`:`ltr`,slots:{root:y},slotProps:_??o,...b,ref:t})});function yh(e){let t=H.useRef(e);return Pl(()=>{t.current=e}),H.useRef((...e)=>(0,t.current)(...e)).current}var bh=yh,xh=mu;function Sh(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=H.useRef(t!==void 0),[o,s]=H.useState(n);return[a?t:o,H.useCallback(e=>{a||s(e)},[])]}var Ch=Sh;function wh(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=ah(d[e],i),{props:{component:h,...g},internalRef:_}=ih({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=$f(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,th(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function Th(e){return yl(`MuiTooltip`,e)}var Eh=bl(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function Dh(e){return Math.round(e*1e5)/1e5}var Oh=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e;return Vu({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${bf(a.split(`-`)[0])}`],arrow:[`arrow`]},Th,t)},kh=q(vh,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(vf(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:`none`,variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:`auto`}},{props:({open:e})=>!e,style:{pointerEvents:`none`}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${Eh.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${Eh.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${Eh.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${Eh.arrow}`]:{height:`1em`,width:`0.71em`,"&::before":{transformOrigin:`0 0`}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Eh.arrow}`]:{left:0,marginLeft:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${Eh.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Eh.arrow}`]:{right:0,marginRight:`-0.71em`}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${Eh.arrow}`]:{left:0,marginLeft:`-0.71em`}}}]}))),Ah=q(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${bf(n.placement.split(`-`)[0])}`]]}})(vf(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${Eh.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`},[`.${Eh.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`},[`.${Eh.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${Eh.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:`center top`,marginTop:`14px`},variants:[{props:({ownerState:e})=>e.arrow,style:{position:`relative`,margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:`8px 16px`,fontSize:e.typography.pxToRem(14),lineHeight:`${Dh(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${Eh.popper}[data-popper-placement*="left"] &`]:{marginRight:`14px`},[`.${Eh.popper}[data-popper-placement*="right"] &`]:{marginLeft:`14px`}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${Eh.popper}[data-popper-placement*="left"] &`]:{marginRight:`24px`},[`.${Eh.popper}[data-popper-placement*="right"] &`]:{marginLeft:`24px`}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${Eh.popper}[data-popper-placement*="left"] &`]:{marginLeft:`14px`},[`.${Eh.popper}[data-popper-placement*="right"] &`]:{marginRight:`14px`}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${Eh.popper}[data-popper-placement*="left"] &`]:{marginLeft:`24px`},[`.${Eh.popper}[data-popper-placement*="right"] &`]:{marginRight:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${Eh.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`}}},{props:({ownerState:e})=>e.touch,style:{[`.${Eh.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),jh=q(`span`,{name:`MuiTooltip`,slot:`Arrow`})(vf(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),Mh=!1,Nh=new mf,Ph={x:0,y:0};function Fh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var Ih=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,components:o={},componentsProps:s={},describeChild:c=!1,disableFocusListener:l=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:f=!1,enterDelay:p=100,enterNextDelay:m=0,enterTouchDelay:h=700,followCursor:g=!1,id:_,leaveDelay:v=0,leaveTouchDelay:y=1500,onClose:b,onOpen:x,open:S,placement:C=`bottom`,PopperComponent:w,PopperProps:T={},slotProps:E={},slots:D={},title:O,TransitionComponent:k,TransitionProps:ee,...A}=n,j=H.isValidElement(i)?i:(0,U.jsx)(`span`,{children:i}),te=$d(),M=ou(),[N,ne]=H.useState(),[re,P]=H.useState(null),F=H.useRef(!1),ie=d||g,ae=hf(),oe=hf(),I=hf(),se=hf(),[L,R]=Ch({controlled:S,default:!1,name:`Tooltip`,state:`open`}),z=L,ce=xh(_),le=H.useRef(),ue=bh(()=>{le.current!==void 0&&(document.body.style.WebkitUserSelect=le.current,le.current=void 0),se.clear()});H.useEffect(()=>ue,[ue]);let de=e=>{Nh.clear(),Mh=!0,R(!0),x&&!z&&x(e)},fe=bh(e=>{Nh.start(800+v,()=>{Mh=!1}),R(!1),b&&z&&b(e),ae.start(te.transitions.duration.shortest,()=>{F.current=!1})}),pe=e=>{F.current&&e.type!==`touchstart`||(N&&N.removeAttribute(`title`),oe.clear(),I.clear(),p||Mh&&m?oe.start(Mh?m:p,()=>{de(e)}):de(e))},B=e=>{oe.clear(),I.start(v,()=>{fe(e)})},[,me]=H.useState(!1),he=e=>{gf(e.target)||(me(!1),B(e))},ge=e=>{N||ne(e.currentTarget),gf(e.target)&&(me(!0),pe(e))},_e=e=>{F.current=!0;let t=j.props;t.onTouchStart&&t.onTouchStart(e)},ve=e=>{_e(e),I.clear(),ae.clear(),ue(),le.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,se.start(h,()=>{document.body.style.WebkitUserSelect=le.current,pe(e)})},V=e=>{j.props.onTouchEnd&&j.props.onTouchEnd(e),ue(),I.start(y,()=>{fe(e)})};H.useEffect(()=>{if(!z)return;function e(e){e.key===`Escape`&&fe(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[fe,z]);let ye=ep(_f(j),ne,t);!O&&O!==0&&(z=!1);let be=H.useRef(),xe=e=>{let t=j.props;t.onMouseMove&&t.onMouseMove(e),Ph={x:e.clientX,y:e.clientY},be.current&&be.current.update()},Se={},Ce=typeof O==`string`;c?(Se.title=!z&&Ce&&!u?O:null,Se[`aria-describedby`]=z?ce:null):(Se[`aria-label`]=Ce?O:null,Se[`aria-labelledby`]=z&&!Ce?ce:null);let we={...Se,...A,...j.props,className:G(A.className,j.props.className),onTouchStart:_e,ref:ye,...g?{onMouseMove:xe}:{}},Te={};f||(we.onTouchStart=ve,we.onTouchEnd=V),u||(we.onMouseOver=Fh(pe,we.onMouseOver),we.onMouseLeave=Fh(B,we.onMouseLeave),ie||(Te.onMouseOver=pe,Te.onMouseLeave=B)),l||(we.onFocus=Fh(ge,we.onFocus),we.onBlur=Fh(he,we.onBlur),ie||(Te.onFocus=ge,Te.onBlur=he));let Ee={...n,isRtl:M,arrow:r,disableInteractive:ie,placement:C,PopperComponentProp:w,touch:F.current},De=typeof E.popper==`function`?E.popper(Ee):E.popper,Oe=H.useMemo(()=>{let e=[{name:`arrow`,enabled:!!re,options:{element:re,padding:4}}];return T.popperOptions?.modifiers&&(e=e.concat(T.popperOptions.modifiers)),De?.popperOptions?.modifiers&&(e=e.concat(De.popperOptions.modifiers)),{...T.popperOptions,...De?.popperOptions,modifiers:e}},[re,T.popperOptions,De?.popperOptions]),ke=Oh(Ee),Ae=typeof E.transition==`function`?E.transition(Ee):E.transition,je={slots:{popper:o.Popper,transition:o.Transition??k,tooltip:o.Tooltip,arrow:o.Arrow,...D},slotProps:{arrow:E.arrow??s.arrow,popper:{...T,...De??s.popper},tooltip:E.tooltip??s.tooltip,transition:{...ee,...Ae??s.transition}}},[Me,Ne]=wh(`popper`,{elementType:kh,externalForwardedProps:je,ownerState:Ee,className:G(ke.popper,T?.className)}),[Pe,Fe]=wh(`transition`,{elementType:ip,externalForwardedProps:je,ownerState:Ee}),[Ie,Le]=wh(`tooltip`,{elementType:Ah,className:ke.tooltip,externalForwardedProps:je,ownerState:Ee}),[Re,ze]=wh(`arrow`,{elementType:jh,className:ke.arrow,externalForwardedProps:je,ownerState:Ee,ref:P});return(0,U.jsxs)(H.Fragment,{children:[H.cloneElement(j,we),(0,U.jsx)(Me,{as:w??vh,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:Ph.y,left:Ph.x,right:Ph.x,bottom:Ph.y,width:0,height:0})}:N,popperRef:be,open:N?z:!1,id:ce,transition:!0,...Te,...Ne,popperOptions:Oe,children:({TransitionProps:e})=>(0,U.jsx)(Pe,{timeout:te.transitions.duration.shorter,...e,...Fe,children:(0,U.jsxs)(Ie,{...Le,children:[O,r?(0,U.jsx)(Re,{...ze}):null]})})})]})}),Lh=s({greaterThan:()=>Bh,greaterThanEqual:()=>Hh,lessThan:()=>zh,lessThanEqual:()=>Vh}),Rh=e=>({...e,category:`comparison`}),zh=Rh({name:`Less than`,latex:`<`,command:`\\lt`}),Bh=Rh({name:`Greater than`,latex:`>`,command:`\\gt`}),Vh=Rh({name:`Less than or equal`,latex:`\\le`,symbol:`<=`,command:`\\le`,ariaLabel:`less than or equal to`}),Hh=Rh({name:`Greater than or equal`,symbol:`>=`,command:`\\ge`,latex:`\\ge`}),Uh=e=>t=>({...t,category:e}),Wh=(e=[])=>{let t=[];ji(5,()=>t.push([]));let n=e.length,r=0,i=0;for(;i<n;)t[r++].push(e[i++]),r===5&&(r=0);return t},Gh=e=>t=>{let n=$n(e),r=n.some(e=>e.latex===t.latex),i=n.some(e=>e.name===t.name);return!r&&!i},Kh=(e=[],t=[])=>{t=t.filter(Gh(e));let n=[];ji(5-e.length,()=>e.push([])),ji(5,()=>n.push([]));let r=Wh(t);for(let t=0;t<5;t++)n[t]=[...e[t],...r[t]];return n},qh=s({theta:()=>Zh,x:()=>Yh,y:()=>Xh}),Jh=Uh(`vars`),Yh=Jh({name:`X`,latex:`x`,write:`x`}),Xh=Jh({name:`Y`,latex:`y`,write:`y`}),Zh=Jh({name:`Theta`,latex:`\\theta`,write:`\\theta`}),Qh=s({blankOverBlank:()=>eg,xBlankBlank:()=>ng,xOverBlank:()=>tg}),$h=Uh(`fractions`),eg=$h({name:`blank/blank`,latex:`\\frac{}{}`,command:`\\frac`,ariaLabel:`fraction`}),tg=$h({latex:`\\frac{x}{ }`,name:`X/blank`,label:`x/[]`,command:`/`,ariaLabel:`x over blank fraction`}),ng=$h({name:`X (blank/blank)`,latex:`x\\frac{}{}`,label:`x([]/[])`,command:`\\frac`,ariaLabel:`mixed number`}),rg=s({nthRoot:()=>cg,squareRoot:()=>sg,squared:()=>ag,xToPowerOfN:()=>og}),ig=Uh(`exponent`),ag=ig({name:`Squared`,latex:`x^2`,write:`^2`}),og=ig({name:`X to the power of n`,latex:`x^{}`,command:`^`,ariaLabel:`exponent`}),sg=ig({name:`Square root`,latex:`\\sqrt{}`,command:`\\sqrt`}),cg=ig({name:`Nth root`,latex:`\\sqrt[{}]{}`,command:`\\nthroot`}),lg=s({absValue:()=>fg,approx:()=>gg,brackets:()=>mg,nApprox:()=>_g,notEqual:()=>vg,notSimilar:()=>bg,parenthesis:()=>pg,percentage:()=>hg,plusMinus:()=>dg,similar:()=>yg}),ug=Uh(`misc`),dg=ug({name:`Plus or Minus`,latex:`\\pm`,write:`\\pm`}),fg=ug({name:`Absolute Value`,latex:`\\abs{}`,symbol:`| |`,command:`|`}),pg=ug({name:`Parenthesis`,latex:`\\left(\\right)`,symbol:`( )`,command:`(`}),mg=ug({name:`Brackets`,latex:`\\left[\\right]`,symbol:`[ ]`,command:`[`}),hg=ug({name:`Percent`,latex:`%`,command:`%`}),gg=ug({latex:`\\approx`,command:`\\approx`,ariaLabel:`Approximately equal to`}),_g=ug({latex:`\\napprox`,command:`\\napprox`,ariaLabel:`Not pproximately equal to`}),vg=ug({latex:`\\neq`,command:`\\neq`,ariaLabel:`Not equals`}),yg=ug({latex:`\\sim`,command:`\\sim`,ariaLabel:`Similar`}),bg=ug({latex:`\\nsim`,command:`\\nsim`,ariaLabel:`Not similar`}),xg=s({eulers:()=>wg,halfInfinity:()=>Eg,infinity:()=>Tg,pi:()=>Cg}),Sg=Uh(`constants`),Cg=Sg({name:`Pi`,label:`π`,latex:`\\pi`,command:`\\pi`,category:`constants`}),wg=Sg({name:`Eulers`,label:`e`,latex:`e`,command:`e`,category:`constants`}),Tg=Sg({name:`Infinity`,label:`\\infty`,latex:`\\infty`,command:`\\infty`,category:`constants`}),Eg=Sg({name:`Half Infinity`,label:`\\propto`,latex:`\\propto`,command:`\\propto`,category:`constants`}),Dg=s({cos:()=>Ag,cot:()=>Pg,csc:()=>Ng,sec:()=>Mg,sin:()=>kg,tan:()=>jg}),Og=Uh(`trigonometry`),kg=Og({name:`sine`,label:`sin`,command:`\\sin`,latex:`\\sin`}),Ag=Og({name:`cosine`,label:`cos`,command:`\\cos`,latex:`\\cos`}),jg=Og({name:`tanget`,label:`tan`,command:`\\tan`,latex:`\\tan`}),Mg=Og({name:`secant`,label:`sec`,command:`\\sec`,latex:`\\sec`}),Ng=Og({name:`cosecant`,label:`csc`,command:`\\csc`,latex:`\\csc`}),Pg=Og({name:`cotangent`,label:`cot`,command:`\\cot`,latex:`\\cot`}),Fg=s({angle:()=>Wg,circledDot:()=>Xg,congruentTo:()=>$g,degree:()=>Zg,doublePrimeArcSecond:()=>n_,leftArrow:()=>r_,leftrightArrow:()=>a_,measureOfAngle:()=>Kg,notCongruentTo:()=>e_,notParallel:()=>Hg,overArc:()=>Gg,overLeftRightArrow:()=>zg,overRightArrow:()=>Rg,overline:()=>Lg,parallel:()=>Vg,parallelogram:()=>Yg,perpindicular:()=>Ug,primeArcminute:()=>t_,rightArrow:()=>i_,segment:()=>Bg,similarTo:()=>Qg,square:()=>Jg,triangle:()=>qg}),Ig=e=>({...e,category:`geometry`}),Lg=Ig({name:`Line`,latex:`\\overline{}`,command:`\\overline`}),Rg=Ig({name:`Ray`,latex:`\\overrightarrow{}`,command:`\\overrightarrow`}),zg=Ig({name:`Segment`,latex:`\\overleftrightarrow{\\overline{}}`,symbol:`AB`,command:`\\overleftrightarrow`}),Bg=Ig({name:`Segment`,latex:`\\overleftrightarrow{AB}`,write:`\\overleftrightarrow{AB}`,label:`AB`}),Vg=Ig({name:`Parallel`,latex:`\\parallel`,command:`\\parallel`}),Hg=Ig({name:`Not Parallel`,latex:`\\nparallel`,command:`\\nparallel`}),Ug=Ig({name:`Perpendicular`,latex:`\\perp`,command:`\\perpendicular`}),Wg=Ig({name:`Angle`,latex:`\\angle`,command:`\\angle`}),Gg=Ig({name:`Over arc`,latex:`\\overarc{\\overline{}}`,command:`\\overarc`}),Kg=Ig({name:`Measured Angle`,latex:`\\measuredangle`,command:[`m`,`\\angle`]}),qg=Ig({name:`Triangle`,latex:`\\triangle`,command:`\\triangle`}),Jg=Ig({name:`Square`,latex:`\\square`,command:`\\square`}),Yg=Ig({name:`Parallelogram`,latex:`\\parallelogram`,command:`\\parallelogram`}),Xg=Ig({name:`Circled Dot`,latex:`\\odot`,command:`\\odot`}),Zg=Ig({name:`Degree`,latex:`\\degree`,command:`\\degree`}),Qg=Ig({name:`Similar`,command:`\\sim`,latex:`\\sim`}),$g=Ig({name:`Congruent To`,command:`\\cong`,latex:`\\cong`}),e_=Ig({name:`Not Congruent To`,command:`\\ncong`,latex:`\\ncong`}),t_=Ig({name:`Prime`,label:`pam`,latex:`'`,write:`'`}),n_=Ig({name:`Double Prime`,latex:`''`,write:`''`}),r_=Ig({name:`Left Arrow`,latex:`\\leftarrow`,command:`\\leftarrow`}),i_=Ig({name:`Right Arrow`,latex:`\\rightarrow`,command:`\\rightarrow`}),a_=Ig({name:`Left and Right Arrow`,latex:`\\leftrightarrow`,command:`\\leftrightarrow`}),o_=s({circleDot:()=>s_}),s_=Uh(`operators`)({name:`CircleDot`,label:`⋅`,write:`\\cdot`,ariaLabel:`Dot multiplier`}),c_=s({ln:()=>f_,log:()=>u_,logSubscript:()=>d_}),l_=Uh(`log`),u_=l_({name:`Log`,label:`log`,command:`\\log`,latex:`\\log`}),d_=l_({name:`log base n`,label:`log s`,latex:`\\log_{}`,command:[`\\log`,`_`]}),f_=l_({name:`natural log`,label:`ln`,command:`\\ln`,latex:`\\ln`}),p_=s({subscript:()=>g_,superscript:()=>h_}),m_=Uh(`sub-sup`),h_=m_({name:`Superscript`,latex:`x^{}`,command:`^`}),g_=m_({name:`Subscript`,latex:`x_{}`,command:`_`}),__=s({mu:()=>x_,sigma:()=>S_,smallSigma:()=>C_,xBar:()=>y_,yBar:()=>b_}),v_=Uh(`statistics`),y_=v_({name:`X Bar`,label:`x̄`,latex:`\\overline{x}`,write:`\\overline{x}`}),b_=v_({name:`Y Bar`,latex:`\\overline{y}`,write:`\\overline{y}`}),x_=v_({name:`mu`,label:`mu`,latex:`\\mu`,write:`\\mu`}),S_=v_({name:`Sigma`,ariaLabel:`Uppercase Sigma`,label:`\\Sigma`,latex:`\\Sigma`,write:`\\Sigma`}),C_=v_({name:`sigma`,ariaLabel:`Lowercase Sigma`,label:`\\sigma`,latex:`\\sigma`,write:`\\sigma`}),w_=s({divide:()=>k_,equals:()=>E_,minus:()=>O_,multiply:()=>A_,plus:()=>D_}),T_=Uh(`operators`),E_=T_({write:`=`,label:`=`}),D_=T_({write:`+`,label:`+`}),O_=T_({write:`−`,label:`−`}),k_=T_({name:`divide`,label:`÷`,command:`\\divide`,otherNotation:`\\div`}),A_=T_({name:`multiply`,label:`×`,command:`\\times`}),j_=s({doubleCellMatrix:()=>P_,singleCellMatrix:()=>N_}),M_=Uh(`matrices`),N_=M_({name:`Single Cell Matrix`,label:`[ ]`,write:`\\begin{pmatrix}\\end{pmatrix}`}),P_=M_({name:`Double Cell Matrix`,label:`[ ] [ ] \\\\newline [ ] [ ]`,write:`\\begin{bmatrix}&\\\\&\\end{bmatrix}`}),F_={0:`zero`,1:`one`,2:`two`,3:`three`,4:`four`,5:`five`,6:`six`,7:`seven`,8:`eight`,9:`nine`},J=ji(10,String).map(e=>({name:F_[e],write:e,label:e,category:`digit`})).reduce((e,t)=>(e[t.name]=t,e),{comma:{name:`comma`,label:`,`,write:`,`,category:`digit`},decimalPoint:{name:`decimal-point`,label:`.`,write:`.`,category:`digit`}}),I_=Uh(`logic`),L_=I_({name:`Therefore`,label:`∴`,write:`∴`}),R_=I_({name:`Long division`,latex:`\\longdiv{}`,command:`\\longdiv`}),z_=Uh(`navigation`),B_=z_({label:`◀`,keystroke:`Left`,ariaLabel:`Move cursor left`}),V_=z_({label:`▶`,keystroke:`Right`,ariaLabel:`Move cursor right`}),H_={label:`⌫`,category:`edit`,keystroke:`Backspace`,ariaLabel:`Delete`},U_=[[eg,hg,Yh,ag,sg],[s_,Xh,g_,og,cg],[dg,zh,Bh,Vh,Hh],[Cg,Zh,pg,mg,fg],[vg,kg,Ag,jg,Zg]],W_=(()=>{let e=[...U_.map(e=>[...e])];return e[0].push({name:`i`,latex:`i`,write:`i`}),e[1].push(u_),e[2].push(d_),e[3].push(f_),e[4].push(wg),e})(),G_=(()=>{let e=[...U_.map(e=>[...e])];return e[0].push(x_),e[1].push(y_),e[2].push(b_),e[3].push(S_),e[4].push(C_),e})(),K_=[{predicate:e=>e>=3&&e<=5,set:[[zh,Bh],[tg,ng],[Yh,R_],[ag,og]]},{predicate:e=>e>=6&&e<=7,set:[[Zg,zh,Bh],[s_,Vh,Hh],[Yh,Xh,ag,og],[dg,tg,ng,sg],[Cg,pg,fg,cg]]},{predicate:e=>e>=8||e===`HS`,set:U_},{predicate:`non-negative-integers`,set:[[J.seven,J.eight,J.nine],[J.four,J.five,J.six],[J.one,J.two,J.three],[J.zero,{name:``,latex:``,write:``},{name:``,latex:``,write:``}],[B_,V_,H_]]},{predicate:`integers`,set:[[J.seven,J.eight,J.nine],[J.four,J.five,J.six],[J.one,J.two,J.three],[J.zero,{name:``,latex:``,write:``},O_],[B_,V_,H_]]},{predicate:`decimals`,set:[[J.seven,J.eight,J.nine],[J.four,J.five,J.six],[J.one,J.two,J.three],[J.zero,J.decimalPoint,O_],[B_,V_,H_]]},{predicate:`fractions`,set:[[J.seven,J.eight,J.nine],[J.four,J.five,J.six],[J.one,J.two,J.three],[J.zero,eg,O_],[B_,V_,H_]]},{predicate:`geometry`,set:[[eg,Zg,t_,n_,$g,Qg],[s_,Wg,Kg,qg,e_,bg],[kg,Ag,jg,Cg,sg,cg],[Ng,Mg,Pg,Zh,g_,og],[Lg,Rg,zg,Gg,Ug,Vg]]},{predicate:`advanced-algebra`,set:W_},{predicate:`statistics`,set:G_},{predicate:`item-authoring`,set:[[k_,eg,R_,Eg,ag,sg,Lg,Rg,zg,u_],[A_,s_,{name:``,latex:``,write:``},g_,og,cg,Ug,Vg,Gg,d_],[dg,Cg,Zh,Zg,Wg,r_,i_,qg,Jg,f_],[vg,fg,C_,x_,L_,S_,a_,kg,Ag,jg],[Vh,Hh,{name:``,latex:``,write:``},{name:``,latex:``,write:``},Tg,{name:``,latex:``,write:``},{name:``,latex:``,write:``},Ng,Mg,Pg]]},{predicate:e=>e>=1&&e<=2,set:[]}],q_=e=>{let t=parseInt(e,10);if(e=isNaN(t)?e:t,!e)return[];let n=K_.find(t=>typeof t.predicate==`string`?t.predicate===e:t.predicate(e));if(n)return n.set||[];if(e!==`language`)return K_[2].set},J_=[...Object.values(w_),...Object.values(Lh),...Object.values(xg),...Object.values(J),...Object.values(rg),...Object.values(Qh),...Object.values(Fg),...Object.values(c_),...Object.values(j_),...Object.values(lg),...Object.values(o_),...Object.values(__),...Object.values(p_),...Object.values(Dg),...Object.values(qh)],Y_=e=>(e||[]).map(e=>{let{latex:t}=e,n=(J_||[]).find(e=>t===e.latex||t===e.write||t===e.command||t===e.otherNotation);return t&&n||e}),X_=e=>{let t=e??document;(Array.from(t.querySelectorAll(`span[mathquill-command-id]`))||[]).forEach(e=>{e&&e.innerText===`∥`&&e.className!==`mq-editable-field`&&(e.style.fontSize=`32px`),(e.innerText===`′`||e.innerText===`′′`)&&!e.hasAttribute(`data-prime`)&&e.setAttribute(`data-prime`,`true`)})},{one:Z_,two:Q_,three:$_,four:ev,five:tv,six:nv,seven:rv,eight:iv,nine:av,zero:ov,comma:sv,decimalPoint:cv}=J,lv=[[rv,iv,av,k_],[ev,tv,nv,A_],[Z_,Q_,$_,O_],[ov,cv,sv,D_],[B_,V_,H_,E_]];function uv(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}function dv(e){return yl(`MuiSvgIcon`,e)}bl(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var fv=e=>{let{color:t,fontSize:n,classes:r}=e;return Vu({root:[`root`,t!==`inherit`&&`color${bf(t)}`,`fontSize${bf(n)}`]},dv,r)},pv=q(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${bf(n.color)}`],t[`fontSize${bf(n.fontSize)}`]]}})(vf(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),mv=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=H.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};return l||(h.viewBox=d),(0,U.jsxs)(pv,{as:o,className:G(fv(m).root,i),focusable:`false`,color:c,"aria-hidden":u?void 0:!0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,U.jsx)(`title`,{children:u}):null]})});mv.muiName=`SvgIcon`;function hv(e,t){function n(t,n){return(0,U.jsx)(mv,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=mv.muiName,H.memo(H.forwardRef(n))}function gv(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var _v=gv,vv=Hu,yv=ap;function bv(e){return ap(e).defaultView||window}var xv=bv,Sv=Pl;function Cv(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function wv(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Cv(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=G(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=G(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var Tv=class e{static create(){return new e}static use(){let t=df(e.create).current,[n,r]=H.useState(!1);return t.shouldMount=n,t.setShouldMount=r,H.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Dv(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function Ev(){return Tv.use()}function Dv(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}function Ov(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=H.useState(!1),f=G(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=G(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),H.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,U.jsx)(`span`,{className:f,style:p,children:(0,U.jsx)(`span`,{className:m})})}var kv=bl(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Av=550,jv=us`
|
|
63
|
+
0% {
|
|
64
|
+
transform: scale(0);
|
|
65
|
+
opacity: 0.1;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
100% {
|
|
69
|
+
transform: scale(1);
|
|
70
|
+
opacity: 0.3;
|
|
71
|
+
}
|
|
72
|
+
`,Mv=us`
|
|
73
|
+
0% {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
100% {
|
|
78
|
+
opacity: 0;
|
|
79
|
+
}
|
|
80
|
+
`,Nv=us`
|
|
81
|
+
0% {
|
|
82
|
+
transform: scale(1);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
50% {
|
|
86
|
+
transform: scale(0.92);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
100% {
|
|
90
|
+
transform: scale(1);
|
|
91
|
+
}
|
|
92
|
+
`,Pv=q(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Fv=q(Ov,{name:`MuiTouchRipple`,slot:`Ripple`})`
|
|
93
|
+
opacity: 0;
|
|
94
|
+
position: absolute;
|
|
95
|
+
|
|
96
|
+
&.${kv.rippleVisible} {
|
|
97
|
+
opacity: 0.3;
|
|
98
|
+
transform: scale(1);
|
|
99
|
+
animation-name: ${jv};
|
|
100
|
+
animation-duration: ${Av}ms;
|
|
101
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&.${kv.ripplePulsate} {
|
|
105
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
& .${kv.child} {
|
|
109
|
+
opacity: 1;
|
|
110
|
+
display: block;
|
|
111
|
+
width: 100%;
|
|
112
|
+
height: 100%;
|
|
113
|
+
border-radius: 50%;
|
|
114
|
+
background-color: currentColor;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
& .${kv.childLeaving} {
|
|
118
|
+
opacity: 0;
|
|
119
|
+
animation-name: ${Mv};
|
|
120
|
+
animation-duration: ${Av}ms;
|
|
121
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
& .${kv.childPulsate} {
|
|
125
|
+
position: absolute;
|
|
126
|
+
/* @noflip */
|
|
127
|
+
left: 0px;
|
|
128
|
+
top: 0;
|
|
129
|
+
animation-name: ${Nv};
|
|
130
|
+
animation-duration: 2500ms;
|
|
131
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
132
|
+
animation-iteration-count: infinite;
|
|
133
|
+
animation-delay: 200ms;
|
|
134
|
+
}
|
|
135
|
+
`,Iv=H.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=yf({props:e,name:`MuiTouchRipple`}),[o,s]=H.useState([]),c=H.useRef(0),l=H.useRef(null);H.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=H.useRef(!1),d=hf(),f=H.useRef(null),p=H.useRef(null),m=H.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,U.jsx)(Fv,{classes:{ripple:G(r.ripple,kv.ripple),rippleVisible:G(r.rippleVisible,kv.rippleVisible),ripplePulsate:G(r.ripplePulsate,kv.ripplePulsate),child:G(r.child,kv.child),childLeaving:G(r.childLeaving,kv.childLeaving),childPulsate:G(r.childPulsate,kv.childPulsate)},timeout:Av,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=H.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=H.useCallback(()=>{h({},{pulsate:!0})},[h]),_=H.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return H.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,U.jsx)(Pv,{className:G(kv.root,r.root,i),ref:p,...a,children:(0,U.jsx)(Xf,{component:null,exit:!0,children:o})})});function Lv(e){return yl(`MuiButtonBase`,e)}var Rv=bl(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),zv=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=Vu({root:[`root`,t&&`disabled`,n&&`focusVisible`]},Lv,i);return n&&r&&(a.root+=` ${r}`),a},Bv=q(`button`,{name:`MuiButtonBase`,slot:`Root`})({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${Rv.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),Vv=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p=`a`,onBlur:m,onClick:h,onContextMenu:g,onDragLeave:_,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:O=0,TouchRippleProps:k,touchRippleRef:ee,type:A,...j}=n,te=H.useRef(null),M=Ev(),N=ep(M.ref,ee),[ne,re]=H.useState(!1);c&&ne&&re(!1),H.useImperativeHandle(r,()=>({focusVisible:()=>{re(!0),te.current.focus()}}),[]);let P=M.shouldMount&&!l&&!c;H.useEffect(()=>{ne&&d&&!l&&M.pulsate()},[l,d,ne,M]);let F=Hv(M,`start`,S,u),ie=Hv(M,`stop`,g,u),ae=Hv(M,`stop`,_,u),oe=Hv(M,`stop`,w,u),I=Hv(M,`stop`,e=>{ne&&e.preventDefault(),C&&C(e)},u),se=Hv(M,`start`,D,u),L=Hv(M,`stop`,T,u),R=Hv(M,`stop`,E,u),z=Hv(M,`stop`,e=>{gf(e.target)||re(!1),m&&m(e)},!1),ce=bh(e=>{te.current||=e.currentTarget,gf(e.target)&&(re(!0),y&&y(e)),v&&v(e)}),le=()=>{let e=te.current;return s&&s!==`button`&&!(e.tagName===`A`&&e.href)},ue=bh(e=>{d&&!e.repeat&&ne&&e.key===` `&&M.stop(e,()=>{M.start(e)}),e.target===e.currentTarget&&le()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&le()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),de=bh(e=>{d&&e.key===` `&&ne&&!e.defaultPrevented&&M.stop(e,()=>{M.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&le()&&e.key===` `&&!e.defaultPrevented&&h(e)}),fe=s;fe===`button`&&(j.href||j.to)&&(fe=p);let pe={};if(fe===`button`){let e=!!j.formAction;pe.type=A===void 0&&!e?`button`:A,pe.disabled=c}else !j.href&&!j.to&&(pe.role=`button`),c&&(pe[`aria-disabled`]=c);let B=ep(t,te),me={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:ne},he=zv(me);return(0,U.jsxs)(Bv,{as:fe,className:G(he.root,o),ownerState:me,onBlur:z,onClick:h,onContextMenu:ie,onFocus:ce,onKeyDown:ue,onKeyUp:de,onMouseDown:F,onMouseLeave:I,onMouseUp:oe,onDragLeave:ae,onTouchEnd:L,onTouchMove:R,onTouchStart:se,ref:B,tabIndex:c?-1:O,type:A,...pe,...j,children:[a,P?(0,U.jsx)(Iv,{ref:N,center:i,...k}):null]})});function Hv(e,t,n,r=!1){return bh(i=>(n&&n(i),r||e[t](i),!0))}function Uv(e){return typeof e.main==`string`}function Wv(e,t=[]){if(!Uv(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function Gv(e=[]){return([,t])=>t&&Wv(t,e)}function Kv(e){return yl(`MuiCircularProgress`,e)}bl(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`]);var qv=44,Jv=us`
|
|
136
|
+
0% {
|
|
137
|
+
transform: rotate(0deg);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
100% {
|
|
141
|
+
transform: rotate(360deg);
|
|
142
|
+
}
|
|
143
|
+
`,Yv=us`
|
|
144
|
+
0% {
|
|
145
|
+
stroke-dasharray: 1px, 200px;
|
|
146
|
+
stroke-dashoffset: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
50% {
|
|
150
|
+
stroke-dasharray: 100px, 200px;
|
|
151
|
+
stroke-dashoffset: -15px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
100% {
|
|
155
|
+
stroke-dasharray: 1px, 200px;
|
|
156
|
+
stroke-dashoffset: -126px;
|
|
157
|
+
}
|
|
158
|
+
`,Xv=typeof Jv==`string`?null:ls`
|
|
159
|
+
animation: ${Jv} 1.4s linear infinite;
|
|
160
|
+
`,Zv=typeof Yv==`string`?null:ls`
|
|
161
|
+
animation: ${Yv} 1.4s ease-in-out infinite;
|
|
162
|
+
`,Qv=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return Vu({root:[`root`,n,`color${bf(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${bf(n)}`,i&&`circleDisableShrink`]},Kv,t)},$v=q(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${bf(n.color)}`]]}})(vf(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:Xv||{animation:`${Jv} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Gv()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),ey=q(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),ty=q(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${bf(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(vf(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:Zv||{animation:`${Yv} 1.4s ease-in-out infinite`}}]}))),ny=q(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(vf(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),ry=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d=`indeterminate`,...f}=n,p={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d,enableTrackSlot:o},m=Qv(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((qv-l)/2);h.strokeDasharray=e.toFixed(3),_[`aria-valuenow`]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform=`rotate(-90deg)`}return(0,U.jsx)($v,{className:G(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,U.jsxs)(ey,{className:m.svg,ownerState:p,viewBox:`${qv/2} ${qv/2} ${qv} ${qv}`,children:[o?(0,U.jsx)(ny,{className:m.track,ownerState:p,cx:qv,cy:qv,r:(qv-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,U.jsx)(ty,{className:m.circle,style:h,ownerState:p,cx:qv,cy:qv,r:(qv-l)/2,fill:`none`,strokeWidth:l})]})})});function iy(e){return yl(`MuiButton`,e)}var ay=bl(`MuiButton`,`root.text.textInherit.textPrimary.textSecondary.textSuccess.textError.textInfo.textWarning.outlined.outlinedInherit.outlinedPrimary.outlinedSecondary.outlinedSuccess.outlinedError.outlinedInfo.outlinedWarning.contained.containedInherit.containedPrimary.containedSecondary.containedSuccess.containedError.containedInfo.containedWarning.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.textSizeSmall.textSizeMedium.textSizeLarge.outlinedSizeSmall.outlinedSizeMedium.outlinedSizeLarge.containedSizeSmall.containedSizeMedium.containedSizeLarge.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.iconSizeSmall.iconSizeMedium.iconSizeLarge.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),oy=H.createContext({}),sy=H.createContext(void 0),cy=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=Vu({root:[`root`,o&&`loading`,a,`${a}${bf(t)}`,`size${bf(i)}`,`${a}Size${bf(i)}`,`color${bf(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${bf(s)}`],startIcon:[`icon`,`startIcon`,`iconSize${bf(i)}`],endIcon:[`icon`,`endIcon`,`iconSize${bf(i)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},iy,c);return{...c,...l}},ly=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],uy=q(Vv,{shouldForwardProp:e=>tf(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${bf(n.color)}`],t[`size${bf(n.size)}`],t[`${n.variant}Size${bf(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(vf(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${ay.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ay.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ay.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${ay.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(Gv()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${ay.focusVisible}`]:{boxShadow:`none`},"&:active":{boxShadow:`none`},[`&.${ay.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{transition:e.transitions.create([`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${ay.loading}`]:{color:`transparent`}}}]}})),dy=q(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${bf(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:8,marginLeft:-4,variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...ly]})),fy=q(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${bf(n.size)}`]]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{transition:e.transitions.create([`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ly]})),py=q(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),my=q(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),hy=H.forwardRef(function(e,t){let n=H.useContext(oy),r=H.useContext(sy),i=yf({props:Nl(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...C}=i,w=xh(h),T=_??(0,U.jsx)(ry,{"aria-labelledby":w,color:`inherit`,size:16}),E={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:T,loadingPosition:v,size:y,type:x,variant:S},D=cy(E),O=(b||g&&v===`start`)&&(0,U.jsx)(dy,{className:D.startIcon,ownerState:E,children:b||(0,U.jsx)(my,{className:D.loadingIconPlaceholder,ownerState:E})}),k=(f||g&&v===`end`)&&(0,U.jsx)(fy,{className:D.endIcon,ownerState:E,children:f||(0,U.jsx)(my,{className:D.loadingIconPlaceholder,ownerState:E})}),ee=r||``,A=typeof g==`boolean`?(0,U.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,U.jsx)(py,{className:D.loadingIndicator,ownerState:E,children:T})}):null;return(0,U.jsxs)(uy,{ownerState:E,className:G(n.className,D.root,c,ee),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:G(D.focusVisible,p),ref:t,type:x,id:g?w:h,...C,classes:D,children:[O,v!==`end`&&A,a,v===`end`&&A,k]})});function gy(e){return yl(`MuiIconButton`,e)}var _y=bl(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),vy=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return Vu({root:[`root`,o&&`loading`,n&&`disabled`,r!==`default`&&`color${bf(r)}`,i&&`edge${bf(i)}`,`size${bf(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},gy,t)},yy=q(Vv,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!==`default`&&t[`color${bf(n.color)}`],n.edge&&t[`edge${bf(n.edge)}`],t[`size${bf(n.size)}`]]}})(vf(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,transition:e.transitions.create(`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),vf(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(Gv()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Gv()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${_y.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${_y.loading}`]:{color:`transparent`}}))),by=q(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),xy=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=xh(u),h=f??(0,U.jsx)(ry,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=vy(g);return(0,U.jsxs)(yy,{id:d?m:u,className:G(_.root,a),centerRipple:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,U.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,U.jsx)(by,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})});function Sy(){return()=>{}}var Cy=o((e=>{e.Fragment=Symbol.for(`react.fragment`),e.jsxDEV=void 0})),Y=o(((e,t)=>{t.exports=Cy()}))(),wy=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/icons/src/sized.tsx`,Ty=e=>typeof e==`string`?e:typeof e==`number`?`${e}px`:`30px`,Ey=({size:e,children:t})=>(e=Ty(e),(0,Y.jsxDEV)(`div`,{style:{height:e,width:e,display:`inline-block`,position:`relative`},children:t},void 0,!1,{fileName:wy,lineNumber:28,columnNumber:10},void 0));Ey.propTypes={size:b.number,children:b.oneOfType([b.arrayOf(b.node),b.node]).isRequired};var Dy=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/icons/src/icon-root.tsx`,Oy=({size:e,children:t,sx:n})=>(0,Y.jsxDEV)(Ey,{size:e,children:(0,Y.jsxDEV)(`svg`,{preserveAspectRatio:`xMinYMin meet`,viewBox:`0 0 44 40`,style:{enableBackground:`new 0 0 44 40`,...n},children:t},void 0,!1,{fileName:Dy,lineNumber:21,columnNumber:5},void 0)},void 0,!1,{fileName:Dy,lineNumber:20,columnNumber:3},void 0);Oy.propTypes={size:b.oneOfType([b.string,b.number]),children:b.oneOfType([b.arrayOf(b.node),b.node]).isRequired,sx:b.object};var ky=({fill:e})=>(0,Y.jsxDEV)(`polygon`,{points:`17.4,26.9 10.1,20.6 12.8,17.5 16.3,20.5 22.3,9.7 25.9,11.7`,fill:e},void 0,!1,{fileName:Dy,lineNumber:35,columnNumber:3},void 0);ky.propTypes={fill:b.string.isRequired};var Ay=({fill:e})=>(0,Y.jsxDEV)(`polygon`,{transform:`translate(2, 0)`,points:`34.1,28.6 34.1,2.2 2,2.2 2,34.3 40.1,34.3`,fill:e},void 0,!1,{fileName:Dy,lineNumber:41,columnNumber:3},void 0);Ay.propTypes={fill:b.string.isRequired};var jy=({fill:e})=>(0,Y.jsxDEV)(`path`,{transform:`translate(1, 0)`,d:`M31.2,29.1v-0.3c2.2-2.8,3.6-6.3,3.6-10.1c0-8.9-7.2-16.1-16.1-16.1c-8.8,0.1-16,7.3-16,16.2 s7.2,16.1,16.1,16.1h18.5L31.2,29.1z`,fill:e},void 0,!1,{fileName:Dy,lineNumber:46,columnNumber:3},void 0);jy.propTypes={fill:b.string.isRequired};var My=({fill:e})=>(0,Y.jsxDEV)(`circle`,{transform:`translate(-3,0)`,cx:`23`,cy:`20.4`,r:`16`,fill:e},void 0,!1,{fileName:Dy,lineNumber:54,columnNumber:37},void 0);My.propTypes={fill:b.string.isRequired};var Ny=({fill:e})=>(0,Y.jsxDEV)(`rect`,{x:`3.6`,y:`4.1`,width:`32`,height:`32`,fill:e},void 0,!1,{fileName:Dy,lineNumber:57,columnNumber:37},void 0);Ny.propTypes={fill:b.string.isRequired};var Py=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/icons/src/icon-base.tsx`,Fy=(e,t)=>{class n extends H.Component{static propTypes={iconSet:b.oneOf([`emoji`,`check`]),shape:b.oneOf([`round`,`square`]),category:b.oneOf([`feedback`,void 0]),open:b.bool,size:b.oneOfType([b.number,b.string]),fg:b.string,bg:b.string};static defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,size:30,fg:`#4aaf46`,bg:`#f8ffe2`};render(){let{iconSet:n,shape:r,category:i,open:a,size:o,fg:s,bg:c}=this.props,l=n===`check`?(0,Y.jsxDEV)(e,{fill:s},void 0,!1,{fileName:Py,lineNumber:40,columnNumber:48},this):(0,Y.jsxDEV)(t,{fill:s},void 0,!1,{fileName:Py,lineNumber:40,columnNumber:71},this),u=n===`check`?(0,Y.jsxDEV)(e,{fill:c},void 0,!1,{fileName:Py,lineNumber:41,columnNumber:48},this):(0,Y.jsxDEV)(t,{fill:c},void 0,!1,{fileName:Py,lineNumber:41,columnNumber:71},this);return a?(0,Y.jsxDEV)(Oy,{size:o,children:u},void 0,!1,{fileName:Py,lineNumber:52,columnNumber:16},this):(0,Y.jsxDEV)(Oy,{size:o,children:[i===`feedback`?r===`round`?(0,Y.jsxDEV)(jy,{fill:c},void 0,!1,{fileName:Py,lineNumber:45,columnNumber:38},this):(0,Y.jsxDEV)(Ay,{fill:c},void 0,!1,{fileName:Py,lineNumber:45,columnNumber:71},this):r===`round`?(0,Y.jsxDEV)(My,{fill:c},void 0,!1,{fileName:Py,lineNumber:47,columnNumber:38},this):(0,Y.jsxDEV)(Ny,{fill:c},void 0,!1,{fileName:Py,lineNumber:47,columnNumber:61},this),l]},void 0,!0,{fileName:Py,lineNumber:56,columnNumber:9},this)}}return n},Iy=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/icons/src/correct-icon.tsx`,Ly=({fill:e})=>(0,Y.jsxDEV)(`g`,{transform:`translate(1, 0)`,children:[(0,Y.jsxDEV)(`path`,{d:`M24.7,22.1c-1.5,1.7-3.6,2.7-5.8,2.7s-4.5-1.1-5.8-2.7l-2.8,1.6c2,2.7,5.2,4.2,8.7,4.2
|
|
163
|
+
c3.4,0,6.6-1.6,8.7-4.2L24.7,22.1z`,fill:e},void 0,!1,{fileName:Iy,lineNumber:18,columnNumber:5},void 0),(0,Y.jsxDEV)(`rect`,{x:`21.1`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e},void 0,!1,{fileName:Iy,lineNumber:23,columnNumber:5},void 0),(0,Y.jsxDEV)(`rect`,{x:`12.7`,y:`13.1`,width:`3.7`,height:`4.7`,fill:e},void 0,!1,{fileName:Iy,lineNumber:24,columnNumber:5},void 0)]},void 0,!0,{fileName:Iy,lineNumber:17,columnNumber:3},void 0);Ly.propTypes={fill:b.string.isRequired};var Ry=({fill:e,x:t=0,y:n=0})=>(0,Y.jsxDEV)(`polygon`,{transform:`translate(${t}, ${n})`,points:`19.1,28.6 11.8,22.3 14.4,19.2 17.9,22.1 23.9,11.4 27.5,13.4`,fill:e},void 0,!1,{fileName:Iy,lineNumber:32,columnNumber:3},void 0);Ry.propTypes={fill:b.string.isRequired,x:b.number,y:b.number};var zy=Fy(Ry,Ly);zy.propTypes={iconSet:b.oneOf([`emoji`,`check`]),shape:b.oneOf([`round`,`square`]),category:b.oneOf([`feedback`,void 0]),open:b.bool,fg:b.string,bg:b.string,size:b.oneOfType([b.string,b.number])},zy.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#f8ffe2`,size:30};var By=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/icons/src/correct-response-icon.tsx`,Vy=({bgFill:e,fgFill:t})=>(0,Y.jsxDEV)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-283 359 34 35`,style:{enableBackground:`new -283 359 34 35`},children:[(0,Y.jsxDEV)(`circle`,{cx:`-266`,cy:`375.9`,r:`14`,fill:e},void 0,!1,{fileName:By,lineNumber:23,columnNumber:5},void 0),(0,Y.jsxDEV)(`path`,{d:`M-280.5,375.9c0-8,6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5s-6.5,14.5-14.5,14.5S-280.5,383.9-280.5,375.9z
|
|
164
|
+
M-279.5,375.9c0,7.4,6.1,13.5,13.5,13.5c7.4,0,13.5-6.1,13.5-13.5s-6.1-13.5-13.5-13.5C-273.4,362.4-279.5,368.5-279.5,375.9z`,fill:e},void 0,!1,{fileName:By,lineNumber:24,columnNumber:5},void 0),(0,Y.jsxDEV)(`polygon`,{points:`-265.4,383.1 -258.6,377.2 -261.2,374.2 -264.3,376.9 -268.9,368.7 -272.4,370.6`,fill:t},void 0,!1,{fileName:By,lineNumber:29,columnNumber:5},void 0)]},void 0,!0,{fileName:By,lineNumber:17,columnNumber:3},void 0);Vy.propTypes={bgFill:b.string.isRequired,fgFill:b.string.isRequired};var Hy=({bgFill:e,fgFill:t,borderFill:n})=>(0,Y.jsxDEV)(`svg`,{preserveAspectRatio:`xMinYMin meet`,version:`1.1`,viewBox:`-129.5 127 34 35`,style:{enableBackground:`new -129.5 127 34 35`},children:[(0,Y.jsxDEV)(`path`,{style:{fill:`#D0CAC5`,stroke:`#E6E3E0`,strokeWidth:.75,strokeMiterlimit:10},d:`M-112.9,160.4c-8.5,0-15.5-6.9-15.5-15.5c0-8.5,6.9-15.5,15.5-15.5s15.5,6.9,15.5,15.5
|
|
165
|
+
C-97.4,153.5-104.3,160.4-112.9,160.4z`},void 0,!1,{fileName:By,lineNumber:46,columnNumber:5},void 0),(0,Y.jsxDEV)(`path`,{style:{fill:`#B3ABA4`,stroke:`#CDC7C2`,strokeWidth:.5,strokeMiterlimit:10},d:`M-113.2,159c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-105.2,159-113.2,159z`},void 0,!1,{fileName:By,lineNumber:56,columnNumber:5},void 0),(0,Y.jsxDEV)(`circle`,{cx:`-114.2`,cy:`143.5`,r:`14`,fill:e},void 0,!1,{fileName:By,lineNumber:65,columnNumber:5},void 0),(0,Y.jsxDEV)(`path`,{d:`M-114.2,158c-8,0-14.5-6.5-14.5-14.5s6.5-14.5,14.5-14.5s14.5,6.5,14.5,14.5S-106.2,158-114.2,158z
|
|
166
|
+
M-114.2,130c-7.4,0-13.5,6.1-13.5,13.5s6.1,13.5,13.5,13.5s13.5-6.1,13.5-13.5S-106.8,130-114.2,130z`,fill:n},void 0,!1,{fileName:By,lineNumber:66,columnNumber:5},void 0),(0,Y.jsxDEV)(`polygon`,{points:`-114.8,150.7 -121.6,144.8 -119,141.8 -115.9,144.5 -111.3,136.3 -107.8,138.2`,fill:t},void 0,!1,{fileName:By,lineNumber:71,columnNumber:5},void 0)]},void 0,!0,{fileName:By,lineNumber:40,columnNumber:3},void 0);Hy.propTypes={bgFill:b.string.isRequired,fgFill:b.string.isRequired,borderFill:b.string.isRequired};var Uy=q(`div`)(({size:e})=>({width:e||`25px`,height:e||`25px`})),Wy=({open:e,size:t})=>(0,Y.jsxDEV)(Uy,{size:t,children:e?(0,Y.jsxDEV)(Vy,{bgFill:`#bce2ff`,fgFill:`#1a9cff`},void 0,!1,{fileName:By,lineNumber:99,columnNumber:9},void 0):(0,Y.jsxDEV)(Hy,{bgFill:`white`,fgFill:`#1a9cff`,borderFill:`#bce2ff`},void 0,!1,{fileName:By,lineNumber:101,columnNumber:9},void 0)},void 0,!1,{fileName:By,lineNumber:97,columnNumber:5},void 0);Wy.propTypes={open:b.bool,size:b.string},Wy.defaultProps={open:!1};var Gy=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/icons/src/incorrect-icon.tsx`,Ky=({fill:e})=>(0,Y.jsxDEV)(`g`,{transform:`translate(0.5, 0.5)`,children:[(0,Y.jsxDEV)(`rect`,{x:`11`,y:`17.3`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.852 19.2507)`,width:`16.6`,height:`3.7`,fill:e},void 0,!1,{fileName:Gy,lineNumber:18,columnNumber:5},void 0),(0,Y.jsxDEV)(`rect`,{x:`17.4`,y:`10.7`,transform:`matrix(0.7071 -0.7071 0.7071 0.7071 -7.8175 19.209)`,width:`3.7`,height:`16.6`,fill:e},void 0,!1,{fileName:Gy,lineNumber:26,columnNumber:5},void 0)]},void 0,!0,{fileName:Gy,lineNumber:17,columnNumber:3},void 0);Ky.propTypes={fill:b.string.isRequired};var qy=({fill:e})=>(0,Y.jsxDEV)(`g`,{transform:`translate(1,0)`,children:[(0,Y.jsxDEV)(`rect`,{x:`21`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e},void 0,!1,{fileName:Gy,lineNumber:44,columnNumber:5},void 0),(0,Y.jsxDEV)(`rect`,{x:`12.7`,y:`12.9`,width:`3.7`,height:`4.7`,fill:e},void 0,!1,{fileName:Gy,lineNumber:45,columnNumber:5},void 0),(0,Y.jsxDEV)(`rect`,{x:`12.2`,y:`22.5`,width:`13`,height:`3.3`,fill:e},void 0,!1,{fileName:Gy,lineNumber:46,columnNumber:5},void 0)]},void 0,!0,{fileName:Gy,lineNumber:43,columnNumber:3},void 0);qy.propTypes={fill:b.string.isRequired};var Jy=Fy(Ky,qy);Jy.propTypes={iconSet:b.oneOf([`emoji`,`check`]),shape:b.oneOf([`round`,`square`]),category:b.oneOf([`feedback`,void 0]),open:b.bool,fg:b.string,bg:b.string,size:b.oneOfType([b.string,b.number])},Jy.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#fcb733`,bg:`#fbf2e3`,size:30};var Yy=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/icons/src/nothing-submitted-icon.tsx`,Xy=({fill:e})=>(0,Y.jsxDEV)(`g`,{children:[(0,Y.jsxDEV)(`rect`,{x:`19.3`,y:`10.3`,width:`4.5`,height:`12.7`,fill:e},void 0,!1,{fileName:Yy,lineNumber:18,columnNumber:5},void 0),(0,Y.jsxDEV)(`rect`,{x:`19.3`,y:`26.2`,width:`4.5`,height:`4.5`,fill:e},void 0,!1,{fileName:Yy,lineNumber:19,columnNumber:5},void 0)]},void 0,!0,{fileName:Yy,lineNumber:17,columnNumber:3},void 0);Xy.propTypes={fill:b.string.isRequired};var Zy=({fill:e})=>(0,Y.jsxDEV)(`polygon`,{points:`14.8,4.5 5.6,13.8 5.6,27 14.8,36.5 28.1,36.5 37.6,27 37.6,13.8 28.1,4.5`,fill:e},void 0,!1,{fileName:Yy,lineNumber:27,columnNumber:3},void 0);Zy.propTypes={fill:b.string.isRequired};var Qy=({fill:e})=>(0,Y.jsxDEV)(`g`,{children:[(0,Y.jsxDEV)(`rect`,{x:`23.8`,y:`15`,width:`3.5`,height:`4.4`,fill:e},void 0,!1,{fileName:Yy,lineNumber:35,columnNumber:5},void 0),(0,Y.jsxDEV)(`rect`,{x:`16`,y:`15`,width:`3.5`,height:`4.4`,fill:e},void 0,!1,{fileName:Yy,lineNumber:36,columnNumber:5},void 0),(0,Y.jsxDEV)(`path`,{d:`M24.2,27.1h-5.1c-0.8,0-1.5-0.7-1.5-1.5v0c0-0.8,0.7-1.5,1.5-1.5h5.1c0.8,0,1.5,0.7,1.5,1.5v0
|
|
167
|
+
C25.7,26.4,25,27.1,24.2,27.1z`,fill:e},void 0,!1,{fileName:Yy,lineNumber:37,columnNumber:5},void 0)]},void 0,!0,{fileName:Yy,lineNumber:34,columnNumber:3},void 0);Qy.propTypes={fill:b.string.isRequired};var $y=class extends H.Component{constructor(e){super(e);let{fg:t=`#464146`,bg:n=`white`}=this.props;this.icons={check:(0,Y.jsxDEV)(Oy,{children:[(0,Y.jsxDEV)(Zy,{fill:n},void 0,!1,{fileName:Yy,lineNumber:56,columnNumber:11}),(0,Y.jsxDEV)(Xy,{fill:t},void 0,!1,{fileName:Yy,lineNumber:57,columnNumber:11})]},void 0,!0,{fileName:Yy,lineNumber:55,columnNumber:9}),emoji:(0,Y.jsxDEV)(Oy,{children:[(0,Y.jsxDEV)(Zy,{fill:n},void 0,!1,{fileName:Yy,lineNumber:62,columnNumber:11}),(0,Y.jsxDEV)(Qy,{fill:t},void 0,!1,{fileName:Yy,lineNumber:63,columnNumber:11})]},void 0,!0,{fileName:Yy,lineNumber:61,columnNumber:9}),feedback:{check:(0,Y.jsxDEV)(Oy,{children:[(0,Y.jsxDEV)(Zy,{fill:n},void 0,!1,{fileName:Yy,lineNumber:69,columnNumber:13}),(0,Y.jsxDEV)(Qy,{fill:t},void 0,!1,{fileName:Yy,lineNumber:70,columnNumber:13})]},void 0,!0,{fileName:Yy,lineNumber:68,columnNumber:11}),emoji:(0,Y.jsxDEV)(Oy,{children:[(0,Y.jsxDEV)(Zy,{fill:n},void 0,!1,{fileName:Yy,lineNumber:75,columnNumber:13}),(0,Y.jsxDEV)(Qy,{fill:t},void 0,!1,{fileName:Yy,lineNumber:76,columnNumber:13})]},void 0,!0,{fileName:Yy,lineNumber:74,columnNumber:11}),square:{check:(0,Y.jsxDEV)(Oy,{children:[(0,Y.jsxDEV)(Zy,{fill:n},void 0,!1,{fileName:Yy,lineNumber:82,columnNumber:15}),(0,Y.jsxDEV)(Xy,{fill:t},void 0,!1,{fileName:Yy,lineNumber:83,columnNumber:15})]},void 0,!0,{fileName:Yy,lineNumber:81,columnNumber:13}),emoji:(0,Y.jsxDEV)(Oy,{children:[(0,Y.jsxDEV)(Zy,{fill:n},void 0,!1,{fileName:Yy,lineNumber:88,columnNumber:15}),(0,Y.jsxDEV)(Qy,{fill:t},void 0,!1,{fileName:Yy,lineNumber:89,columnNumber:15})]},void 0,!0,{fileName:Yy,lineNumber:87,columnNumber:13}),open:{check:(0,Y.jsxDEV)(Oy,{children:(0,Y.jsxDEV)(Xy,{fill:n},void 0,!1,{fileName:Yy,lineNumber:95,columnNumber:17})},void 0,!1,{fileName:Yy,lineNumber:94,columnNumber:15}),emoji:(0,Y.jsxDEV)(Oy,{children:(0,Y.jsxDEV)(Qy,{fill:n},void 0,!1,{fileName:Yy,lineNumber:100,columnNumber:17})},void 0,!1,{fileName:Yy,lineNumber:99,columnNumber:15})}}}}}render(){let{iconSet:e,category:t,shape:n,open:r}=this.props;return t===void 0?this.icons[e]:n===void 0?this.icons.feedback[e]:r===!0?this.icons.feedback.square.open[e]:this.icons.feedback.square[e]}};$y.propTypes={iconSet:b.oneOf([`emoji`,`check`,void 0]),shape:b.oneOf([`square`,void 0]),category:b.oneOf([`feedback`,void 0]),open:b.bool,fg:b.string,bg:b.string},$y.defaultProps={iconSet:`check`,shape:void 0,category:void 0,open:!1,fg:`#464146`,bg:`white`};var eb=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/icons/src/partially-correct-icon.tsx`,tb=({fill:e})=>(0,Y.jsxDEV)(`g`,{transform:`translate(0, 0)`,children:[(0,Y.jsxDEV)(`polygon`,{points:`27.5,13.4 23.9,11.4 15.9,25.8 19.1,28.6`,fill:e},void 0,!1,{fileName:eb,lineNumber:18,columnNumber:5},void 0),(0,Y.jsxDEV)(`polygon`,{points:`16.2,20.6 14.4,19.2 11.8,22.3 14.1,24.3`,fill:e},void 0,!1,{fileName:eb,lineNumber:19,columnNumber:5},void 0)]},void 0,!0,{fileName:eb,lineNumber:17,columnNumber:3},void 0);tb.propTypes={fill:b.string.isRequired};var nb=({fill:e})=>(0,Y.jsxDEV)(`g`,{transform:`translate(2, 0)`,children:[(0,Y.jsxDEV)(`rect`,{x:`20.6`,y:`11.8`,width:`4`,height:`5`,fill:e},void 0,!1,{fileName:eb,lineNumber:28,columnNumber:5},void 0),(0,Y.jsxDEV)(`rect`,{x:`11.5`,y:`11.8`,width:`4`,height:`5`,fill:e},void 0,!1,{fileName:eb,lineNumber:29,columnNumber:5},void 0),(0,Y.jsxDEV)(`rect`,{x:`10.9`,y:`22.9`,transform:`matrix(0.9794 -0.2019 0.2019 0.9794 -4.6237 4.1559)`,width:`14.3`,height:`3.7`,fill:e},void 0,!1,{fileName:eb,lineNumber:30,columnNumber:5},void 0)]},void 0,!0,{fileName:eb,lineNumber:27,columnNumber:3},void 0);nb.propTypes={fill:b.string.isRequired};var rb=Fy(tb,nb);rb.propTypes={iconSet:b.oneOf([`emoji`,`check`]),shape:b.oneOf([`round`,`square`]),category:b.oneOf([`feedback`,void 0]),open:b.bool,fg:b.string,bg:b.string,size:b.oneOfType([b.string,b.number])},rb.defaultProps={iconSet:`check`,shape:`round`,category:void 0,open:!1,fg:`#4aaf46`,bg:`#c1e1ac`,size:30};function ib(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ab(e){let t=ap(e);return t.body===e?bv(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ob(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function sb(e){return parseFloat(bv(e).getComputedStyle(e).paddingRight)||0}function cb(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function lb(e,t,n,r,i){let a=[t,n,...r];[].forEach.call(e.children,e=>{let t=!a.includes(e),n=!cb(e);t&&n&&ob(e,i)})}function ub(e,t){let n=-1;return e.some((e,r)=>t(e)?(n=r,!0):!1),n}function db(e,t){let n=[],r=e.container;if(!t.disableScrollLock){if(ab(r)){let e=ib(bv(r));n.push({value:r.style.paddingRight,property:`padding-right`,el:r}),r.style.paddingRight=`${sb(r)+e}px`;let t=ap(r).querySelectorAll(`.mui-fixed`);[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:`padding-right`,el:t}),t.style.paddingRight=`${sb(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=ap(r).body;else{let t=r.parentElement,n=bv(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}function fb(e){let t=[];return[].forEach.call(e.children,e=>{e.getAttribute(`aria-hidden`)===`true`&&t.push(e)}),t}var pb=class{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ob(e.modalRef,!1);let r=fb(t);lb(t,e.mount,e.modalRef,r,!0);let i=ub(this.containers,e=>e.container===t);return i===-1?(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n):(this.containers[i].modals.push(e),n)}mount(e,t){let n=ub(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||=db(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=ub(this.containers,t=>t.modals.includes(e)),i=this.containers[r];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0)i.restore&&i.restore(),e.modalRef&&ob(e.modalRef,t),lb(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(r,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&ob(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function mb(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var hb=mb,gb=[`input`,`select`,`textarea`,`a[href]`,`button`,`[tabindex]`,`audio[controls]`,`video[controls]`,`[contenteditable]:not([contenteditable="false"])`].join(`,`);function _b(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function vb(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function yb(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||vb(e))}function bb(e){let t=[],n=[];return Array.from(e.querySelectorAll(gb)).forEach((e,r)=>{let i=_b(e);i===-1||!yb(e)||(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function xb(){return!0}function Sb(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=bb,isEnabled:o=xb,open:s}=e,c=H.useRef(!1),l=H.useRef(null),u=H.useRef(null),d=H.useRef(null),f=H.useRef(null),p=H.useRef(!1),m=H.useRef(null),h=$f(_f(t),m),g=H.useRef(null);H.useEffect(()=>{!s||!m.current||(p.current=!n)},[n,s]),H.useEffect(()=>{if(!s||!m.current)return;let e=hb(ap(m.current));return m.current.contains(e)||(m.current.hasAttribute(`tabIndex`)||m.current.setAttribute(`tabIndex`,`-1`),p.current&&m.current.focus()),()=>{i||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),H.useEffect(()=>{if(!s||!m.current)return;let e=ap(m.current),t=t=>{g.current=t,!(r||!o()||t.key!==`Tab`)&&hb(e)===m.current&&t.shiftKey&&(c.current=!0,u.current&&u.current.focus())},n=()=>{let t=m.current;if(t===null)return;let n=hb(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(t.contains(n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=hb(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,U.jsxs)(H.Fragment,{children:[(0,U.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),H.cloneElement(t,{ref:h,onFocus:_}),(0,U.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}var Cb={entering:{opacity:1},entered:{opacity:1}},wb=H.forwardRef(function(e,t){let n=$d(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:m,style:h,timeout:g=r,TransitionComponent:_=Lf,...v}=e,y=H.useRef(null),b=ep(y,_f(o),t),x=e=>t=>{if(e){let n=y.current;t===void 0?e(n):e(n,t)}},S=x(d),C=x((e,t)=>{Zf(e);let r=Qf({style:h,timeout:g,easing:s},{mode:`enter`});e.style.webkitTransition=n.transitions.create(`opacity`,r),e.style.transition=n.transitions.create(`opacity`,r),l&&l(e,t)}),w=x(u),T=x(m),E=x(e=>{let t=Qf({style:h,timeout:g,easing:s},{mode:`exit`});e.style.webkitTransition=n.transitions.create(`opacity`,t),e.style.transition=n.transitions.create(`opacity`,t),f&&f(e)}),D=x(p);return(0,U.jsx)(_,{appear:a,in:c,nodeRef:y,onEnter:C,onEntered:w,onEntering:S,onExit:E,onExited:D,onExiting:T,addEndListener:e=>{i&&i(y.current,e)},timeout:g,...v,children:(e,{ownerState:t,...n})=>H.cloneElement(o,{style:{opacity:0,visibility:e===`exited`&&!c?`hidden`:void 0,...Cb[e],...h,...o.props.style},ref:b,...n})})});function Tb(e){return yl(`MuiBackdrop`,e)}bl(`MuiBackdrop`,[`root`,`invisible`]);var Eb=e=>{let{classes:t,invisible:n}=e;return Vu({root:[`root`,n&&`invisible`]},Tb,t)},Db=q(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),Ob=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,components:c={},componentsProps:l={},slotProps:u={},slots:d={},TransitionComponent:f,transitionDuration:p,...m}=n,h={...n,component:a,invisible:o},g=Eb(h),_={component:a,slots:{transition:f,root:c.Root,...d},slotProps:{...l,...u}},[v,y]=wh(`root`,{elementType:Db,externalForwardedProps:_,className:G(g.root,i),ownerState:h}),[b,x]=wh(`transition`,{elementType:wb,externalForwardedProps:_,ownerState:h});return(0,U.jsx)(b,{in:s,timeout:p,...m,...x,children:(0,U.jsx)(v,{"aria-hidden":!0,...y,ref:t,children:r})})});function kb(e){return typeof e==`function`?e():e}function Ab(e){return e?e.props.hasOwnProperty(`in`):!1}var jb=()=>{},Mb=new pb;function Nb(e){let{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:o,children:s,onClose:c,open:l,rootRef:u}=e,d=H.useRef({}),f=H.useRef(null),p=H.useRef(null),m=$f(p,u),[h,g]=H.useState(!l),_=Ab(s),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>ap(f.current),b=()=>(d.current.modalRef=p.current,d.current.mount=f.current,d.current),x=()=>{Mb.mount(b(),{disableScrollLock:r}),p.current&&(p.current.scrollTop=0)},S=yh(()=>{let e=kb(t)||y().body;Mb.add(b(),e),p.current&&x()}),C=()=>Mb.isTopModal(b()),w=yh(e=>{f.current=e,e&&(l&&C()?x():p.current&&ob(p.current,v))}),T=H.useCallback(()=>{Mb.remove(b(),v)},[v]);H.useEffect(()=>()=>{T()},[T]),H.useEffect(()=>{l?S():(!_||!i)&&T()},[l,T,_,i,S]);let E=e=>t=>{e.onKeyDown?.(t),!(t.key!==`Escape`||t.which===229||!C())&&(n||(t.stopPropagation(),c&&c(t,`escapeKeyDown`)))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&c&&c(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=nh(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:l}},getTransitionProps:()=>({onEnter:uv(()=>{g(!1),a&&a()},s?.props.onEnter??jb),onExited:uv(()=>{g(!0),o&&o(),i&&T()},s?.props.onExited??jb)}),rootRef:m,portalRef:w,isTopModal:C,exited:h,hasTransition:_}}function Pb(e){return yl(`MuiModal`,e)}bl(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Fb=e=>{let{open:t,exited:n,classes:r}=e;return Vu({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Pb,r)},Ib=q(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vf(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Lb=q(Ob,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Rb=H.forwardRef(function(e,t){let n=yf({name:`MuiModal`,props:e}),{BackdropComponent:r=Lb,BackdropProps:i,classes:a,className:o,closeAfterTransition:s=!1,children:c,container:l,component:u,components:d={},componentsProps:f={},disableAutoFocus:p=!1,disableEnforceFocus:m=!1,disableEscapeKeyDown:h=!1,disablePortal:g=!1,disableRestoreFocus:_=!1,disableScrollLock:v=!1,hideBackdrop:y=!1,keepMounted:b=!1,onClose:x,onTransitionEnter:S,onTransitionExited:C,open:w,slotProps:T={},slots:E={},theme:D,...O}=n,k={...n,closeAfterTransition:s,disableAutoFocus:p,disableEnforceFocus:m,disableEscapeKeyDown:h,disablePortal:g,disableRestoreFocus:_,disableScrollLock:v,hideBackdrop:y,keepMounted:b},{getRootProps:ee,getBackdropProps:A,getTransitionProps:j,portalRef:te,isTopModal:M,exited:N,hasTransition:ne}=Nb({...k,rootRef:t}),re={...k,exited:N},P=Fb(re),F={};if(c.props.tabIndex===void 0&&(F.tabIndex=`-1`),ne){let{onEnter:e,onExited:t}=j();F.onEnter=e,F.onExited=t}let ie={slots:{root:d.Root,backdrop:d.Backdrop,...E},slotProps:{...f,...T}},[ae,oe]=wh(`root`,{ref:t,elementType:Ib,externalForwardedProps:{...ie,...O,component:u},getSlotProps:ee,ownerState:re,className:G(o,P?.root,!re.open&&re.exited&&P?.hidden)}),[I,se]=wh(`backdrop`,{ref:i?.ref,elementType:r,externalForwardedProps:ie,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:e=>A({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:G(i?.className,P?.backdrop),ownerState:re});return!b&&!w&&(!ne||N)?null:(0,U.jsx)(lh,{ref:te,container:l,disablePortal:g,children:(0,U.jsxs)(ae,{...oe,children:[!y&&r?(0,U.jsx)(I,{...se}):null,(0,U.jsx)(Sb,{disableEnforceFocus:m,disableAutoFocus:p,disableRestoreFocus:_,isEnabled:M,open:w,children:H.cloneElement(c,F)})]})})});function zb(e){return yl(`MuiPaper`,e)}bl(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var Bb=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return Vu({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},zb,i)},Vb=q(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(vf(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create(`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),Hb=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiPaper`}),r=$d(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c};return(0,U.jsx)(Vb,{as:a,ownerState:u,className:G(Bb(u).root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${Gl(`#fff`,Pd(o))}, ${Gl(`#fff`,Pd(o))})`}},...l.style}})});function Ub(e){return yl(`MuiPopover`,e)}bl(`MuiPopover`,[`root`,`paper`]);function Wb(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function Gb(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function Kb(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function qb(e){return typeof e==`function`?e():e}var Jb=e=>{let{classes:t}=e;return Vu({root:[`root`],paper:[`paper`]},Ub,t)},Yb=q(Rb,{name:`MuiPopover`,slot:`Root`})({}),Xb=q(Hb,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),Zb=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,elevation:d=8,marginThreshold:f=16,open:p,PaperProps:m={},slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},TransitionComponent:v,transitionDuration:y=`auto`,TransitionProps:b={},disableScrollLock:x=!1,...S}=n,C=H.useRef(),w={...n,anchorOrigin:a,anchorReference:s,elevation:d,marginThreshold:f,transformOrigin:_,TransitionComponent:v,transitionDuration:y,TransitionProps:b},T=Jb(w),E=H.useCallback(()=>{if(s===`anchorPosition`)return o;let e=qb(i),t=(e&&e.nodeType===1?e:yv(C.current).body).getBoundingClientRect();return{top:t.top+Wb(t,a.vertical),left:t.left+Gb(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),D=H.useCallback(e=>({vertical:Wb(e,_.vertical),horizontal:Gb(e,_.horizontal)}),[_.horizontal,_.vertical]),O=H.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if(s===`none`)return{top:null,left:null,transformOrigin:Kb(n)};let r=E(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=xv(qb(i)),d=u.innerHeight-f,p=u.innerWidth-f;if(f!==null&&a<f){let e=a-f;a-=e,n.vertical+=e}else if(f!==null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(f!==null&&o<f){let e=o-f;o-=e,n.horizontal+=e}else if(l>p){let e=l-p;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:Kb(n)}},[i,s,E,D,f]),[k,ee]=H.useState(p),A=H.useCallback(()=>{let e=C.current;if(!e)return;let t=O(e);t.top!==null&&e.style.setProperty(`top`,t.top),t.left!==null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,ee(!0)},[O]);H.useEffect(()=>(x&&window.addEventListener(`scroll`,A),()=>window.removeEventListener(`scroll`,A)),[i,x,A]);let j=()=>{A()},te=()=>{ee(!1)};H.useEffect(()=>{p&&A()}),H.useImperativeHandle(r,()=>p?{updatePosition:()=>{A()}}:null,[p,A]),H.useEffect(()=>{if(!p)return;let e=_v(()=>{A()}),t=xv(qb(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,p,A]);let M=y,N={slots:{transition:v,...h},slotProps:{transition:b,paper:m,...g}},[ne,re]=wh(`transition`,{elementType:ip,externalForwardedProps:N,ownerState:w,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),j()},onExited:t=>{e.onExited?.(t),te()}}),additionalProps:{appear:!0,in:p}});y===`auto`&&!ne.muiSupportAuto&&(M=void 0);let P=u||(i?yv(qb(i)).body:void 0),[F,{slots:ie,slotProps:ae,...oe}]=wh(`root`,{ref:t,elementType:Yb,externalForwardedProps:{...N,...S},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:wv(typeof g.backdrop==`function`?g.backdrop(w):g.backdrop,{invisible:!0})},container:P,open:p},ownerState:w,className:G(T.root,l)}),[I,se]=wh(`paper`,{ref:C,className:T.paper,elementType:Xb,externalForwardedProps:N,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:k?void 0:{opacity:0}},ownerState:w});return(0,U.jsx)(F,{...oe,...!eh(F)&&{slots:ie,slotProps:ae,disableScrollLock:x},children:(0,U.jsx)(ne,{...re,timeout:M,children:(0,U.jsx)(I,{...se,children:c})})})}),Qb={50:`#fce4ec`,100:`#f8bbd0`,200:`#f48fb1`,300:`#f06292`,400:`#ec407a`,500:`#e91e63`,600:`#d81b60`,700:`#c2185b`,800:`#ad1457`,900:`#880e4f`,A100:`#ff80ab`,A200:`#ff4081`,A400:`#f50057`,A700:`#c51162`},$b={50:`#e8eaf6`,100:`#c5cae9`,200:`#9fa8da`,300:`#7986cb`,400:`#5c6bc0`,500:`#3f51b5`,600:`#3949ab`,700:`#303f9f`,800:`#283593`,900:`#1a237e`,A100:`#8c9eff`,A200:`#536dfe`,A400:`#3d5afe`,A700:`#304ffe`},ex=s({background:()=>Cx,backgroundDark:()=>wx,black:()=>Nx,blueGrey100:()=>Bx,blueGrey300:()=>Vx,blueGrey600:()=>Hx,blueGrey900:()=>Ux,border:()=>kx,borderDark:()=>jx,borderGray:()=>Mx,borderLight:()=>Ax,buttonBorder:()=>Yx,buttonHoverBg:()=>Xx,correct:()=>ax,correctSecondary:()=>ox,correctTertiary:()=>sx,correctWithIcon:()=>cx,defaults:()=>X,disabled:()=>rx,disabledSecondary:()=>ix,dropdownBackground:()=>Ex,fadedPrimary:()=>vx,focusChecked:()=>Ix,focusCheckedBorder:()=>Lx,focusUnchecked:()=>Rx,focusUncheckedBorder:()=>zx,incorrect:()=>lx,incorrectSecondary:()=>dx,incorrectWithIcon:()=>ux,keypadButton:()=>Wx,keypadButtonHover:()=>qx,keypadButtonOperator:()=>Gx,keypadButtonOperatorHover:()=>Jx,keypadEmptyPlaceholder:()=>Kx,missing:()=>fx,missingWithIcon:()=>px,primary:()=>mx,primaryDark:()=>gx,primaryLight:()=>hx,primaryText:()=>_x,secondary:()=>yx,secondaryBackground:()=>Tx,secondaryDark:()=>xx,secondaryLight:()=>bx,secondaryText:()=>Sx,tertiary:()=>Dx,tertiaryLight:()=>Ox,text:()=>nx,transparent:()=>Fx,v:()=>tx,visualElementsColors:()=>Zx,white:()=>Px}),X={TEXT:`black`,DISABLED:`grey`,DISABLED_SECONDARY:`#ABABAB`,CORRECT:Xu[500],CORRECT_SECONDARY:Xu[50],CORRECT_TERTIARY:`#0EA449`,CORRECT_WITH_ICON:`#087D38`,INCORRECT:qu[500],INCORRECT_SECONDARY:Ku[50],INCORRECT_WITH_ICON:`#BF0D00`,MISSING:Ku[700],MISSING_WITH_ICON:`#6A78A1`,PRIMARY:$b[500],PRIMARY_LIGHT:$b[200],PRIMARY_DARK:$b[800],SECONDARY:Qb.A400,SECONDARY_LIGHT:Qb[200],SECONDARY_DARK:Qb[900],TERTIARY:`#146EB3`,TERTIARY_LIGHT:`#D0E2F0`,BACKGROUND:`rgba(255,255,255,0)`,BACKGROUND_DARK:`#ECEDF1`,DROPDOWN_BACKGROUND:`#E0E1E6`,SECONDARY_BACKGROUND:`rgba(241,241,241,1)`,BORDER:`#9A9A9A`,BORDER_LIGHT:`#D1D1D1`,BORDER_DARK:`#646464`,BORDER_GRAY:`#7E8494`,BLACK:`#000000`,WHITE:`#ffffff`,TRANSPARENT:`transparent`,FOCUS_CHECKED:`#BBDEFB`,FOCUS_CHECKED_BORDER:`#1565C0`,FOCUS_UNCHECKED:`#E0E0E0`,FOCUS_UNCHECKED_BORDER:`#757575`,BLUE_GREY100:`#F3F5F7`,BLUE_GREY300:`#C0C3CF`,BLUE_GREY600:`#7E8494`,BLUE_GREY900:`#152452`,FADED_PRIMARY:`#DCDAFB`,KEYPAD_BUTTON:`rgb(188, 194, 229)`,KEYPAD_BUTTON_OPERATOR:`rgb(255, 159, 192)`,KEYPAD_EMPTY_PLACEHOLDER:`rgba(245, 0, 87, 0.4)`,KEYPAD_BUTTON_HOVER:`rgb(214, 218, 239)`,KEYPAD_BUTTON_OPERATOR_HOVER:`rgb(255, 197, 217)`,BUTTON_BORDER:`rgba(0, 0, 0, 0.23)`,BUTTON_HOVER_BG:`rgba(0, 0, 0, 0.08)`};Object.freeze(X);var tx=e=>(...t)=>{let n=t.pop();return t.reduceRight((t,n)=>`var(--${e}-${n}, ${t})`,n)},Z=tx(`pie`),nx=()=>Z(`text`,X.TEXT),rx=()=>Z(`disabled`,X.DISABLED),ix=()=>Z(`disabled-secondary`,X.DISABLED_SECONDARY),ax=()=>Z(`correct`,X.CORRECT),ox=()=>Z(`correct-secondary`,X.CORRECT_SECONDARY),sx=()=>Z(`correct-tertiary`,X.CORRECT_TERTIARY),cx=()=>Z(`correct-icon`,X.CORRECT_WITH_ICON),lx=()=>Z(`incorrect`,X.INCORRECT),ux=()=>Z(`incorrect-icon`,X.INCORRECT_WITH_ICON),dx=()=>Z(`incorrect-secondary`,X.INCORRECT_SECONDARY),fx=()=>Z(`missing`,X.MISSING),px=()=>Z(`missing-icon`,X.MISSING_WITH_ICON),mx=()=>Z(`primary`,X.PRIMARY),hx=()=>Z(`primary-light`,X.PRIMARY_LIGHT),gx=()=>Z(`primary-dark`,X.PRIMARY_DARK),_x=()=>Z(`primary-text`,`text`,X.TEXT),vx=()=>Z(`faded-primary`,X.FADED_PRIMARY),yx=()=>Z(`secondary`,X.SECONDARY),bx=()=>Z(`secondary-light`,X.SECONDARY_LIGHT),xx=()=>Z(`secondary-dark`,X.SECONDARY_DARK),Sx=()=>Z(`secondary-text`,`text`,X.TEXT),Cx=()=>Z(`background`,X.BACKGROUND),wx=()=>Z(`background-dark`,X.BACKGROUND_DARK),Tx=()=>Z(`secondary-background`,X.SECONDARY_BACKGROUND),Ex=()=>Z(`dropdown-background`,X.DROPDOWN_BACKGROUND),Dx=()=>Z(`tertiary`,X.TERTIARY),Ox=()=>Z(`tertiary-light`,X.TERTIARY_LIGHT),kx=()=>Z(`border`,X.BORDER),Ax=()=>Z(`border-light`,X.BORDER_LIGHT),jx=()=>Z(`border-dark`,X.BORDER_DARK),Mx=()=>Z(`border-gray`,X.BORDER_GRAY),Nx=()=>Z(`black`,X.BLACK),Px=()=>Z(`white`,X.WHITE),Fx=()=>X.TRANSPARENT,Ix=()=>Z(`focus-checked`,X.FOCUS_CHECKED),Lx=()=>Z(`focus-checked-border`,X.FOCUS_CHECKED_BORDER),Rx=()=>Z(`focus-unchecked`,X.FOCUS_UNCHECKED),zx=()=>Z(`focus-unchecked-border`,X.FOCUS_UNCHECKED_BORDER),Bx=()=>Z(`blue-grey-100`,X.BLUE_GREY100),Vx=()=>Z(`blue-grey-300`,X.BLUE_GREY300),Hx=()=>Z(`blue-grey-600`,X.BLUE_GREY600),Ux=()=>Z(`blue-grey-900`,X.BLUE_GREY900),Wx=()=>Z(`keypad-button`,X.KEYPAD_BUTTON),Gx=()=>Z(`keypad-button-operator`,X.KEYPAD_BUTTON_OPERATOR),Kx=()=>Z(`keypad-empty-placeholder`,X.KEYPAD_EMPTY_PLACEHOLDER),qx=()=>Z(`keypad-button-hover`,X.KEYPAD_BUTTON_HOVER),Jx=()=>Z(`keypad-button-operator-hover`,X.KEYPAD_BUTTON_OPERATOR_HOVER),Yx=()=>Z(`button-border`,X.BUTTON_BORDER),Xx=()=>Z(`button-hover-bg`,X.BUTTON_HOVER_BG),Zx={AXIS_LINE_COLOR:`#5A53C9`,ROLLOVER_FILL_BAR_COLOR:`#050F2D`,GRIDLINES_COLOR:`#8E88EA`,PLOT_FILL_COLOR:`#1463B3`,SHAPES_FILL_COLOR:`#7986cb`},Qx=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/render-ui/src/feedback.tsx`,$x=q(`div`)({transformOrigin:`0% 0px 0px`,width:`100%`,display:`block`,overflow:`hidden`,"&.incorrect":{color:`#946202`}}),eS=q(`div`)({WebkitFontSmoothing:`antialiased`,backgroundColor:`var(--feedback-bg-color, ${rx()})`,borderRadius:`4px`,lineHeight:`25px`,margin:`0px`,padding:`10px`,verticalAlign:`middle`,color:`var(--feedback-color, white)`,"&.correct":{backgroundColor:`var(--feedback-correct-bg-color, ${ax()})`},"&.incorrect":{backgroundColor:`var(--feedback-incorrect-bg-color, ${lx()})`}}),tS=q(`div`)({"&.feedback-enter":{height:`1px`},"&.feedback-enter-active":{height:`45px`,transition:`height 500ms`},"&.feedback-exit":{height:`45px`},"&.feedback-exit-active":{height:`1px`,transition:`height 200ms`}}),nS=class extends H.Component{static propTypes={correctness:b.string,feedback:b.string};nodeRef=H.createRef();renderFeedback(){let{correctness:e,feedback:t}=this.props;return!e||!t?null:(0,Y.jsxDEV)(Vf,{nodeRef:this.nodeRef,timeout:{enter:500,exit:200},classNames:`feedback`,children:(0,Y.jsxDEV)(tS,{ref:this.nodeRef,children:(0,Y.jsxDEV)($x,{children:(0,Y.jsxDEV)(eS,{className:e,dangerouslySetInnerHTML:{__html:t}},void 0,!1,{fileName:Qx,lineNumber:78,columnNumber:13},this)},void 0,!1,{fileName:Qx,lineNumber:77,columnNumber:11},this)},void 0,!1,{fileName:Qx,lineNumber:76,columnNumber:9},this)},`hasFeedback`,!1,{fileName:Qx,lineNumber:75,columnNumber:7},this)}render(){return(0,Y.jsxDEV)(`div`,{children:(0,Y.jsxDEV)(Xf,{children:this.renderFeedback()},void 0,!1,{fileName:Qx,lineNumber:88,columnNumber:9},this)},void 0,!1,{fileName:Qx,lineNumber:87,columnNumber:7},this)}},rS=s({Correct:()=>uS,Incorrect:()=>dS,NothingSubmitted:()=>pS,PartiallyCorrect:()=>fS}),iS=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/render-ui/src/response-indicators.tsx`,aS=Sy(`pie-libs:render-ui:response-indicators`),oS=q(`div`)(({hasFeedback:e})=>({cursor:e?`pointer`:`default`})),sS=q(Zb)({cursor:`pointer`}),cS=q(`div`)({padding:`0`,borderRadius:`4px`}),lS=(e,t)=>{class n extends H.Component{constructor(e){super(e),this.state={}}handlePopoverOpen=e=>{aS(`[handlePopoverOpen]`,e.target),this.setState({anchorEl:e.target})};handlePopoverClose=()=>{this.setState({anchorEl:null})};render(){let{feedback:n}=this.props,{anchorEl:r}=this.state;return(0,Y.jsxDEV)(oS,{hasFeedback:!!n,children:[(0,Y.jsxDEV)(`span`,{ref:e=>this.icon=e,onClick:this.handlePopoverOpen,children:(0,Y.jsxDEV)(e,{},void 0,!1,{fileName:iS,lineNumber:56,columnNumber:13},this)},void 0,!1,{fileName:iS,lineNumber:55,columnNumber:11},this),n&&(void 0)(sS,{PaperComponent:cS,open:!!r,anchorEl:r,anchorOrigin:{vertical:`bottom`,horizontal:`left`},transformOrigin:{vertical:`top`,horizontal:`left`},onClose:this.handlePopoverClose,children:(void 0)(nS,{feedback:n,correctness:t},void 0,!1,{fileName:iS,lineNumber:74,columnNumber:15},this)},void 0,!1,{fileName:iS,lineNumber:60,columnNumber:13},this)]},void 0,!0,{fileName:iS,lineNumber:54,columnNumber:9},this)}}return n.propTypes={feedback:b.string},n},uS=lS(zy,`correct`),dS=lS(Jy,`incorrect`),fS=lS(rb,`partially-correct`),pS=lS($y,`nothing-submitted`);function mS(e){return yl(`MuiCollapse`,e)}bl(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var hS=e=>{let{orientation:t,classes:n}=e;return Vu({root:[`root`,`${t}`],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,`${t}`],wrapperInner:[`wrapperInner`,`${t}`]},mS,n)},gS=q(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(vf(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),_S=q(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),vS=q(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),yS=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,orientation:g=`vertical`,slots:_={},slotProps:v={},style:y,timeout:b=Cd.standard,TransitionComponent:x=Lf,...S}=n,C={...n,orientation:g,collapsedSize:o},w=hS(C),T=$d(),E=hf(),D=H.useRef(null),O=H.useRef(),k=typeof o==`number`?`${o}px`:o,ee=g===`horizontal`,A=ee?`width`:`height`,j=H.useRef(null),te=ep(t,j),M=e=>t=>{if(e){let n=j.current;t===void 0?e(n):e(n,t)}},N=()=>D.current?D.current[ee?`clientWidth`:`clientHeight`]:0,ne=M((e,t)=>{D.current&&ee&&(D.current.style.position=`absolute`),e.style[A]=k,u&&u(e,t)}),re=M((e,t)=>{let n=N();D.current&&ee&&(D.current.style.position=``);let{duration:r,easing:i}=Qf({style:y,timeout:b,easing:c},{mode:`enter`});if(b===`auto`){let t=T.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,O.current=t}else e.style.transitionDuration=typeof r==`string`?r:`${r}ms`;e.style[A]=`${n}px`,e.style.transitionTimingFunction=i,f&&f(e,t)}),P=M((e,t)=>{e.style[A]=`auto`,d&&d(e,t)}),F=M(e=>{e.style[A]=`${N()}px`,p&&p(e)}),ie=M(m),ae=M(e=>{let t=N(),{duration:n,easing:r}=Qf({style:y,timeout:b,easing:c},{mode:`exit`});if(b===`auto`){let n=T.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,O.current=n}else e.style.transitionDuration=typeof n==`string`?n:`${n}ms`;e.style[A]=k,e.style.transitionTimingFunction=r,h&&h(e)}),oe=e=>{b===`auto`&&E.start(O.current||0,e),r&&r(j.current,e)},I={slots:_,slotProps:v,component:s},[se,L]=wh(`root`,{ref:te,className:G(w.root,a),elementType:gS,externalForwardedProps:I,ownerState:C,additionalProps:{style:{[ee?`minWidth`:`minHeight`]:k,...y}}}),[R,z]=wh(`wrapper`,{ref:D,className:w.wrapper,elementType:_S,externalForwardedProps:I,ownerState:C}),[ce,le]=wh(`wrapperInner`,{className:w.wrapperInner,elementType:vS,externalForwardedProps:I,ownerState:C});return(0,U.jsx)(x,{in:l,onEnter:ne,onEntered:P,onEntering:re,onExit:F,onExited:ie,onExiting:ae,addEndListener:oe,nodeRef:j,timeout:b===`auto`?null:b,...S,children:(e,{ownerState:t,...n})=>{let r={...C,state:e};return(0,U.jsx)(se,{...L,className:G(L.className,{entered:w.entered,exited:!l&&k===`0px`&&w.hidden}[e]),ownerState:r,...n,children:(0,U.jsx)(R,{...z,ownerState:r,children:(0,U.jsx)(ce,{...le,ownerState:r,children:i})})})}})});yS&&(yS.muiSupportAuto=!0);var bS=`https://cdn.jsdelivr.net/npm/mathjax@4/tex-chtml.js`,xS=null;function SS(e){return typeof window>`u`||window.MathJax?.version?Promise.resolve():xS||(xS=new Promise((t,n)=>{let{useSingleDollar:r=!1,accessibility:i=!0,loadFonts:a=!0,srcUrl:o}=e,s={tex:{packages:[`base`,`ams`,`autoload`],macros:{parallelogram:`\\lower.2em{\\Huge\\unicode{x25B1}}`,overarc:`\\overparen`,napprox:`\\not\\approx`,longdiv:`\\enclose{longdiv}`}},options:{enableMenu:i,enableExplorer:i},startup:{ready:()=>{window.MathJax?.startup.defaultReady&&(window.MathJax.startup.defaultReady(),t())},defaultReady:()=>{}}};r&&s.tex&&(s.tex.inlineMath=[[`$`,`$`],[`\\(`,`\\)`]],s.tex.processEscapes=!0),a||(s.chtml={fontURL:``}),window.MathJax=s;let c=document.createElement(`script`);c.src=o||bS,c.async=!0,c.onload=()=>{setTimeout(t,100)},c.onerror=()=>{n(Error(`Failed to load MathJax`))},document.head.appendChild(c)}),xS)}function CS(e={}){return async t=>{if(await SS(e),!window.MathJax?.typesetPromise){console.warn(`[mathjax-renderer] MathJax not loaded or missing typesetPromise.`);return}await window.MathJax.typesetPromise([t])}}var wS=null;function TS(){return wS||=CS({accessibility:!0,useSingleDollar:!0}),wS}var ES=async e=>{if(typeof window>`u`)return;let t=typeof e==`string`,n;return t?(n=document.createElement(`div`),n.innerHTML=e):n=e||document.body,await TS()(n),t?n.innerHTML:void 0},DS=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/render-ui/src/collapsible/index.tsx`,OS=q(`span`)(({theme:e})=>({color:e.palette.primary.light,borderBottom:`1px dotted ${e.palette.primary.light}`,cursor:`pointer`})),kS=q(yS)(({theme:e})=>({paddingTop:e.spacing(2)})),AS=class extends H.Component{static propTypes={className:b.string,children:b.object,labels:b.shape({visible:b.string,hidden:b.string})};static defaultProps={labels:{}};state={expanded:!1};toggleExpanded=()=>{this.setState(e=>({expanded:!e.expanded}))};componentDidMount(){ES(this.root)}componentDidUpdate(){ES(this.root)}render(){let{labels:e,children:t,className:n}=this.props,r=this.state.expanded?e.visible||`Hide`:e.hidden||`Show`;return(0,Y.jsxDEV)(`div`,{className:n,ref:e=>this.root=e,children:[(0,Y.jsxDEV)(`div`,{onClick:this.toggleExpanded,children:(0,Y.jsxDEV)(OS,{children:r},void 0,!1,{fileName:DS,lineNumber:64,columnNumber:11},this)},void 0,!1,{fileName:DS,lineNumber:63,columnNumber:9},this),(0,Y.jsxDEV)(kS,{in:this.state.expanded,timeout:{enter:225,exit:195},unmountOnExit:!0,children:t},void 0,!1,{fileName:DS,lineNumber:66,columnNumber:9},this)]},void 0,!0,{fileName:DS,lineNumber:62,columnNumber:7},this)}},jS=hv((0,U.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`Restore`),MS=hv((0,U.jsx)(`path`,{d:`M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8`}),`Undo`),NS=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/render-ui/src/withUndoReset.tsx`,PS=q(`div`)({display:`flex`,flexDirection:`column`}),FS=q(`div`)({display:`flex`,alignItems:`center`,justifyContent:`center`}),IS=q(`div`)(({theme:e})=>({width:`24px`,height:`24px`,color:`gray`,marginRight:e.spacing(1),display:`flex`,alignItems:`center`})),LS=q(hy)(({theme:e})=>({display:`flex`,alignItems:`center`,marginLeft:e.spacing(3),marginRight:e.spacing(3)})),RS=e=>{class t extends H.Component{static propTypes={session:b.object,onSessionChange:b.func};constructor(e){super(e),this.state={sessionInitialValues:JSON.parse(JSON.stringify(e.session)),session:e.session,changes:[]}}onSessionChange=e=>{this.setState(t=>({session:e,changes:[...t.changes,e]}),()=>this.props.onSessionChange(e))};onUndo=()=>{this.setState(e=>{let t=[...e.changes];return t.pop(),{changes:t,session:t.length?t[t.length-1]:e.sessionInitialValues}},()=>this.props.onSessionChange(this.state.session))};onReset=()=>{this.setState(e=>({session:e.sessionInitialValues,changes:[]}),()=>this.props.onSessionChange(this.state.sessionInitialValues))};render(){let{...t}=this.props,{changes:n,session:r}=this.state;return(0,Y.jsxDEV)(PS,{children:[(0,Y.jsxDEV)(FS,{children:[(0,Y.jsxDEV)(LS,{color:`primary`,disabled:n.length===0,onClick:this.onUndo,children:[(0,Y.jsxDEV)(IS,{children:(0,Y.jsxDEV)(MS,{},void 0,!1,{fileName:NS,lineNumber:104,columnNumber:17},this)},void 0,!1,{fileName:NS,lineNumber:103,columnNumber:15},this),`Undo`]},void 0,!0,{fileName:NS,lineNumber:102,columnNumber:13},this),(0,Y.jsxDEV)(LS,{color:`primary`,disabled:n.length===0,onClick:this.onReset,children:[(0,Y.jsxDEV)(IS,{children:(0,Y.jsxDEV)(jS,{},void 0,!1,{fileName:NS,lineNumber:110,columnNumber:17},this)},void 0,!1,{fileName:NS,lineNumber:109,columnNumber:15},this),`Start Over`]},void 0,!0,{fileName:NS,lineNumber:108,columnNumber:13},this)]},void 0,!0,{fileName:NS,lineNumber:101,columnNumber:11},this),(0,Y.jsxDEV)(e,{...t,session:r,onSessionChange:this.onSessionChange},void 0,!1,{fileName:NS,lineNumber:115,columnNumber:11},this)]},void 0,!0,{fileName:NS,lineNumber:100,columnNumber:9},this)}}return t},zS=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/render-ui/src/ui-layout.tsx`,BS=Zd({typography:{fontFamily:`inherit`},palette:{action:{disabled:`rgba(0, 0, 0, 0.54);`}},components:{MuiTypography:{styleOverrides:{root:{fontFamily:`inherit`}}},MuiButton:{styleOverrides:{contained:{backgroundColor:`#e0e0e0`,color:`#000000`,"&:hover":{backgroundColor:`#bdbdbd`}}}}}}),VS=q(`div`)({"& table, th, td":{fontSize:`inherit`}}),HS=class extends H.Component{static propTypes={className:b.string,children:b.array,extraCSSRules:b.shape({names:b.arrayOf(b.string),rules:b.string}),fontSizeFactor:b.number};static defaultProps={extraCSSRules:{},fontSizeFactor:1};constructor(e){super(e),this.classesSheet=document.createElement(`style`)}computeStyle(e){let t=e=>parseFloat(getComputedStyle(e).fontSize),n=t(document.documentElement),r=t(document.body),i=Math.max(n,r),a=e!=null&&typeof e==`number`?e:1;return a===1?null:{fontSize:`${i*a}px`}}render(){let{children:e,className:t,fontSizeFactor:n,...r}=this.props,{extraCSSRules:i,...a}=r,o=this.computeStyle(n);return(0,Y.jsxDEV)(Is,{injectFirst:!0,children:(0,Y.jsxDEV)(lf,{theme:BS,children:[i?.rules?(0,Y.jsxDEV)(`style`,{dangerouslySetInnerHTML:{__html:`.extraCSSRules { ${i.rules} }`}},void 0,!1,{fileName:zS,lineNumber:94,columnNumber:13},this):null,(0,Y.jsxDEV)(VS,{className:`${t} extraCSSRules`,...a,...o&&{style:o},children:e},void 0,!1,{fileName:zS,lineNumber:97,columnNumber:11},this)]},void 0,!0,{fileName:zS,lineNumber:92,columnNumber:9},this)},void 0,!1,{fileName:zS,lineNumber:91,columnNumber:7},this)}},US=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/render-ui/src/preview-layout.tsx`,WS=q(HS)({display:`flex`,flexDirection:`column`,position:`relative`}),GS=class extends H.Component{static propTypes={ariaLabel:b.string,children:b.oneOfType([b.arrayOf(b.node),b.node]).isRequired,role:b.string,extraCSSRules:b.shape({names:b.arrayOf(b.string),rules:b.string}),fontSizeFactor:b.number};render(){let{children:e,ariaLabel:t,role:n,extraCSSRules:r,fontSizeFactor:i,classes:a}=this.props;return(0,Y.jsxDEV)(WS,{...t?{"aria-label":t,role:n}:{},extraCSSRules:r,fontSizeFactor:i,classes:a,children:e},void 0,!1,{fileName:US,lineNumber:39,columnNumber:7},this)}},KS=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/render-ui/src/html-and-math.tsx`,qS=class extends H.Component{static propTypes={tag:b.string,className:b.string,html:b.string};static defaultProps={tag:`div`,html:``};render(){let{tag:e,className:t,html:n}=this.props;return(0,Y.jsxDEV)(e||`div`,{ref:e=>this.node=e,className:t,dangerouslySetInnerHTML:{__html:n}},void 0,!1,{fileName:KS,lineNumber:29,columnNumber:12},this)}};function JS({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&e[r]===void 0&&(t[r]=n[r]),t),{})}var YS=H.createContext(void 0);function XS(){return H.useContext(YS)}function ZS(e){return yl(`MuiFormLabel`,e)}var QS=bl(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]),$S=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return Vu({root:[`root`,`color${bf(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},ZS,t)},eC=q(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(vf(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(Gv()).map(([t])=>({props:{color:t},style:{[`&.${QS.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${QS.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${QS.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),tC=q(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(vf(({theme:e})=>({[`&.${QS.error}`]:{color:(e.vars||e).palette.error.main}}))),nC=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,p=JS({props:n,muiFormControl:XS(),states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=$S(m);return(0,U.jsxs)(eC,{as:o,ownerState:m,className:G(h.root,i),ref:t,...f,children:[r,p.required&&(0,U.jsxs)(tC,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})});function rC(e){return yl(`MuiInputLabel`,e)}bl(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]);var iC=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=Vu({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${bf(r)}`,o],asterisk:[s&&`asterisk`]},rC,t);return{...t,...c}},aC=q(nC,{shouldForwardProp:e=>tf(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${QS.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(vf(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{transition:e.transitions.create([`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),oC=H.forwardRef(function(e,t){let n=yf({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,l=XS(),u=a;u===void 0&&l&&(u=l.filled||l.focused||l.adornedStart);let d=JS({props:n,muiFormControl:l,states:[`size`,`variant`,`required`,`focused`]}),f={...n,disableAnimation:r,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused},p=iC(f);return(0,U.jsx)(aC,{"data-shrink":u,ref:t,className:G(p.root,s),...c,ownerState:f,classes:p})});function sC(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function cC(e,t=!1){return e&&(sC(e.value)&&e.value!==``||t&&sC(e.defaultValue)&&e.defaultValue!==``)}function lC(e){return e.startAdornment}function uC(e){return yl(`MuiFormControl`,e)}bl(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var dC=e=>{let{classes:t,margin:n,fullWidth:r}=e;return Vu({root:[`root`,n!==`none`&&`margin${bf(n)}`,r&&`fullWidth`]},uC,t)},fC=q(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${bf(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),pC=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=dC(_),[y,b]=H.useState(()=>{let e=!1;return r&&H.Children.forEach(r,t=>{if(!vv(t,[`Input`,`Select`]))return;let n=vv(t,[`Select`])?t.props.input:t;n&&lC(n.props)&&(e=!0)}),e}),[x,S]=H.useState(()=>{let e=!1;return r&&H.Children.forEach(r,t=>{vv(t,[`Input`,`Select`])&&(cC(t.props,!0)||cC(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=H.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C;H.useRef(!1);let E=H.useCallback(()=>{S(!0)},[]),D=H.useCallback(()=>{S(!1)},[]),O=H.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:D,onFilled:E,registerEffect:void 0,required:p,variant:h}),[y,a,s,c,x,T,u,d,void 0,D,E,p,m,h]);return(0,U.jsx)(YS.Provider,{value:O,children:(0,U.jsx)(fC,{as:o,ownerState:_,className:G(v.root,i),ref:t,...g,children:r})})}),mC=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/render-ui/src/input-container.tsx`,hC=q(pC)(({theme:e})=>({margin:0,padding:0,flex:`1 0 auto`,minWidth:e.spacing(4)})),gC=q(oC)(()=>({fontSize:`inherit`,whiteSpace:`nowrap`,margin:0,padding:0,alignSelf:`flex-start`,position:`absolute`,top:0,left:0,transformOrigin:`top left`,pointerEvents:`none`,"&.MuiInputLabel-shrink":{transform:`scale(0.75) translate(0, -0.75em)`},"&:not(.MuiInputLabel-shrink)":{transform:`translate(0, 0)`}})),_C=({label:e,className:t,children:n})=>(0,Y.jsxDEV)(hC,{className:t,children:[(0,Y.jsxDEV)(gC,{shrink:!0,children:e},void 0,!1,{fileName:mC,lineNumber:46,columnNumber:5},void 0),n]},void 0,!0,{fileName:mC,lineNumber:45,columnNumber:3},void 0);_C.propTypes={label:b.oneOfType([b.string,b.object]).isRequired,className:b.string,children:b.oneOfType([b.arrayOf(b.node),b.node]).isRequired};var vC=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/render-ui/src/preview-prompt.tsx`,yC=q(`div`)(({theme:e,tagName:t})=>({"&:not(.MathJax) > table":{borderCollapse:`collapse`},"&:not(.MathJax) > table:has(tbody tr > th:first-child):not(:has(tbody tr > td:first-child)) tbody td:nth-child(even)":{backgroundColor:`#f6f8fa`,color:e.palette.common.black},"&:not(.MathJax) > table:has(tbody tr > td:first-child) tbody tr:nth-child(even) td":{backgroundColor:`#f6f8fa`,color:e.palette.common.black},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:`.6em 1em`,textAlign:`left`},"&:not(.MathJax) > table td > p.kds-indent":{textAlign:`initial`},"&.prompt":{verticalAlign:`middle`,color:nx()},"&.legend":{width:`100%`,fontSize:`inherit !important`},"&.rationale":{paddingLeft:e.spacing(4),paddingBottom:e.spacing(1)},"&.prompt-label":{color:`${nx()} !important`,display:`flex`,flexDirection:`column`,verticalAlign:`middle`,cursor:`pointer`,"& > p":{margin:`0 0 0 0 !important`}}})),bC=/\\embed\{newLine\}\[\]/g,xC=`\\newline `,SC=class extends H.Component{static propTypes={prompt:b.string,tagName:b.string,className:b.string,onClick:b.func,defaultClassName:b.string,autoplayAudioEnabled:b.bool,customAudioButton:b.shape({playImage:b.string,pauseImage:b.string})};static defaultProps={onClick:()=>{}};parsedText=e=>{let{customAudioButton:t}=this.props,n=document.createElement(`div`);n.innerHTML=e;let r=n.querySelector(`audio`);if(r){let e=document.createElement(`source`);if(e.setAttribute(`type`,`audio/mp3`),e.setAttribute(`src`,r.getAttribute(`src`)),r.removeAttribute(`src`),r.setAttribute(`id`,`pie-prompt-audio-player`),r.appendChild(e),t){r.style.display=`none`;let e=document.createElement(`div`);e.id=`play-audio-button`,Object.assign(e.style,{cursor:`pointer`,display:`block`,width:`128px`,height:`128px`,backgroundImage:`url(${t.pauseImage})`,backgroundSize:`cover`,borderRadius:`50%`,border:`1px solid #326295`}),r.parentNode.insertBefore(e,r)}}return n.innerHTML};addCustomAudioButtonControls(){let{autoplayAudioEnabled:e,customAudioButton:t}=this.props,n=document.getElementById(`play-audio-button`),r=document.getElementById(`pie-prompt-audio-player`);if(e&&r&&r.play().then(()=>{n&&t&&r.addEventListener(`ended`,a)}).catch(e=>{console.error(`Error playing audio`,e)}),!n||!r||!t)return;let i=()=>{r.paused&&(n.style.backgroundImage.includes(t.pauseImage)||r.play())},a=()=>{n.style.backgroundImage=`url(${t.playImage})`},o=()=>{Object.assign(n.style,{backgroundImage:`url(${t.pauseImage})`,border:`1px solid #ccc`})},s=()=>{Object.assign(n.style,{backgroundImage:`url(${t.playImage})`,border:`1px solid #326295`})};n.addEventListener(`click`,i),r.addEventListener(`play`,o),r.addEventListener(`pause`,s),r.addEventListener(`ended`,a),this._handlePlayClick=i,this._handleAudioPlay=o,this._handleAudioPause=s,this._handleAudioEnded=a}removeCustomAudioButtonListeners(){let e=document.getElementById(`play-audio-button`),t=document.querySelector(`audio`);!e||!t||(e.removeEventListener(`click`,this._handlePlayClick),t.removeEventListener(`play`,this._handleAudioPlay),t.removeEventListener(`pause`,this._handleAudioPause),t.removeEventListener(`ended`,this._handleAudioEnded))}componentDidMount(){this.alignImages(),this.addCustomAudioButtonControls(),this.setupMathRendering()}componentDidUpdate(e){this.alignImages(),e.prompt!==this.props.prompt&&this.renderMathContent()}componentWillUnmount(){this.removeCustomAudioButtonListeners()}setupMathRendering(){this.renderMathContent()}renderMathContent(){let e=document.getElementById(`preview-prompt`);e&&typeof ES==`function`&&ES(e)}alignImages(){document.querySelectorAll(`#preview-prompt`).forEach(e=>{let t=e.getElementsByTagName(`img`);if(t&&t.length){for(let e of t)if(e.attributes&&e.attributes.alignment&&e.attributes.alignment.value){let t=e.parentElement;if(!(t.tagName===`DIV`&&t.style.display===`flex`&&t.style.width===`100%`)){let n=document.createElement(`div`);n.style.display=`flex`,n.style.width=`100%`;let r=e.cloneNode(!0);n.appendChild(r),t.replaceChild(n,e)}}}})}render(){let{prompt:e,tagName:t,className:n,onClick:r,defaultClassName:i}=this.props,a=`${n||``} ${i||``} ${t===`legend`?`legend`:``}`.trim();return(0,Y.jsxDEV)(yC,{as:t||`div`,id:`preview-prompt`,onClick:r,className:a,tagName:t,dangerouslySetInnerHTML:{__html:this.parsedText(e||``).replace(bC,xC)}},void 0,!1,{fileName:vC,lineNumber:272,columnNumber:7},this)}},CC=e=>(0,Y.jsxDEV)(Y.Fragment,{children:H.Children.map(e.children,t=>H.cloneElement(t,{"data-pie-readable":e.false===void 0}))},void 0,!1);CC.propTypes={children:b.node,false:b.bool};var wC=e=>(0,Y.jsxDEV)(Y.Fragment,{children:H.Children.map(e.children,t=>H.cloneElement(t,{"data-pie-purpose":e.purpose}))},void 0,!1);wC.propTypes={children:b.node,purpose:b.string};var TC;typeof window<`u`&&(TC=new DOMParser);var EC=e=>TC.parseFromString(e,`text/html`).body.textContent,DC=e=>{if(!e)return!1;let t=EC(e);return!!(t&&t.trim())},OC;typeof window<`u`&&(OC=new DOMParser);var kC=e=>{if(!e)return!1;let t=OC.parseFromString(e,`text/html`);return!!t.body.querySelector(`img`)||!!t.body.querySelector(`video`)||!!t.body.querySelector(`audio`)},AC=`data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJYAyADAREAAhEBAxEB/8QAHgABAQABBQEBAQAAAAAAAAAAAAEIAgMGBwkEBQr/xABiEAACAQIDBAMKCAYMCgYLAQAAAQIDEQQFIQYSMUEHCFETFRYiUmFxkdHhCRRjgaGisfAXMjRTcsEjJDY4QmJ1dpKztMQYMzdEVIKyw9PxQ1hmc3SWJzVFRlZXhJOUldJk/8QAGwEBAQADAQEBAAAAAAAAAAAAAAcEBQYCAQP/xABBEQEAAQIDAgkJBgUFAQEBAAAAAQIDBAYRBSESMUFEYXGCscITNDVRcoGRocEUIjJS0eEVI2KSsjNCU6LwFtLx/9oADAMBAAIRAxEAPwD1TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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`,jC=H.createContext({});function MC(e){return yl(`MuiList`,e)}bl(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var NC=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Vu({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},MC,t)},PC=q(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),FC=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=H.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=NC(d);return(0,U.jsx)(jC.Provider,{value:u,children:(0,U.jsxs)(PC,{as:a,className:G(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})}),IC=ib;function LC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function RC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function zC(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function BC(e,t,n,r,i,a){let o=!1,s=i(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=r?!1:s.disabled||s.getAttribute(`aria-disabled`)===`true`;if(!s.hasAttribute(`tabindex`)||!zC(s,a)||t)s=i(e,s,n);else return s.focus(),!0}return!1}var VC=H.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=e,f=H.useRef(null),p=H.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Sv(()=>{r&&f.current.focus()},[r]),H.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=`${IC(xv(e))}px`;f.current.style[t===`rtl`?`paddingLeft`:`paddingRight`]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}}),[]);let m=e=>{let t=f.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey){l&&l(e);return}let r=hb(yv(t));if(n===`ArrowDown`)e.preventDefault(),BC(t,r,c,s,LC);else if(n===`ArrowUp`)e.preventDefault(),BC(t,r,c,s,RC);else if(n===`Home`)e.preventDefault(),BC(t,null,c,s,LC);else if(n===`End`)e.preventDefault(),BC(t,null,c,s,RC);else if(n.length===1){let i=p.current,a=n.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let c=r&&!i.repeating&&zC(r,i);i.previousKeyMatched&&(c||BC(t,r,!1,s,LC,i))?e.preventDefault():i.previousKeyMatched=!1}l&&l(e)},h=ep(f,t),g=-1;H.Children.forEach(a,(e,t)=>{if(!H.isValidElement(e)){g===t&&(g+=1,g>=a.length&&(g=-1));return}e.props.disabled||(u===`selectedMenu`&&e.props.selected||g===-1)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1))});let _=H.Children.map(a,(e,t)=>{if(t===g){let t={};return i&&(t.autoFocus=!0),e.props.tabIndex===void 0&&u===`selectedMenu`&&(t.tabIndex=0),H.cloneElement(e,t)}return e});return(0,U.jsx)(FC,{role:`menu`,ref:h,className:o,onKeyDown:m,tabIndex:r?0:-1,...d,children:_})});function HC(e){return yl(`MuiMenu`,e)}bl(`MuiMenu`,[`root`,`paper`,`list`]);var UC={vertical:`top`,horizontal:`right`},WC={vertical:`top`,horizontal:`left`},GC=e=>{let{classes:t}=e;return Vu({root:[`root`],paper:[`paper`],list:[`list`]},HC,t)},KC=q(Zb,{shouldForwardProp:e=>tf(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),qC=q(Xb,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),JC=q(VC,{name:`MuiMenu`,slot:`List`})({outline:0}),YC=H.forwardRef(function(e,t){let n=yf({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,MenuListProps:s={},onClose:c,open:l,PaperProps:u={},PopoverClasses:d,transitionDuration:f=`auto`,TransitionProps:{onEntering:p,...m}={},variant:h=`selectedMenu`,slots:g={},slotProps:_={},...v}=n,y=ou(),b={...n,autoFocus:r,disableAutoFocusItem:o,MenuListProps:s,onEntering:p,PaperProps:u,transitionDuration:f,TransitionProps:m,variant:h},x=GC(b),S=r&&!o&&l,C=H.useRef(null),w=(e,t)=>{C.current&&C.current.adjustStyleForScrollbar(e,{direction:y?`rtl`:`ltr`}),p&&p(e,t)},T=e=>{e.key===`Tab`&&(e.preventDefault(),c&&c(e,`tabKeyDown`))},E=-1;H.Children.map(i,(e,t)=>{H.isValidElement(e)&&(e.props.disabled||(h===`selectedMenu`&&e.props.selected||E===-1)&&(E=t))});let D={slots:g,slotProps:{list:s,transition:m,paper:u,..._}},O=oh({elementType:g.root,externalSlotProps:_.root,ownerState:b,className:[x.root,a]}),[k,ee]=wh(`paper`,{className:x.paper,elementType:qC,externalForwardedProps:D,shouldForwardComponentProp:!0,ownerState:b}),[A,j]=wh(`list`,{className:G(x.list,s.className),elementType:JC,shouldForwardComponentProp:!0,externalForwardedProps:D,getSlotProps:e=>({...e,onKeyDown:t=>{T(t),e.onKeyDown?.(t)}}),ownerState:b}),te=typeof D.slotProps.transition==`function`?D.slotProps.transition(b):D.slotProps.transition;return(0,U.jsx)(KC,{onClose:c,anchorOrigin:{vertical:`bottom`,horizontal:y?`right`:`left`},transformOrigin:y?UC:WC,slots:{root:g.root,paper:k,backdrop:g.backdrop,...g.transition&&{transition:g.transition}},slotProps:{root:O,paper:ee,backdrop:typeof _.backdrop==`function`?_.backdrop(b):_.backdrop,transition:{...te,onEntering:(...e)=>{w(...e),te?.onEntering?.(...e)}}},open:l,ref:t,transitionDuration:f,ownerState:b,...v,classes:d,children:(0,U.jsx)(A,{actions:C,autoFocus:r&&(E===-1||o),autoFocusItem:S,variant:h,...j,children:i})})}),XC=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/render-ui/src/inline-menu.tsx`,ZC=({slotProps:e,...t})=>(0,Y.jsxDEV)(YC,{...t,disableScrollLock:!0,hideBackdrop:!0,slotProps:{...e,root:{...e?.root,style:{backgroundColor:`transparent`,pointerEvents:`none`,...e?.root?.style}},paper:{...e?.paper,style:{pointerEvents:`auto`,...e?.paper?.style}}}},void 0,!1,{fileName:XC,lineNumber:38,columnNumber:5},void 0),QC=s({Collapsible:()=>AS,EnableAudioAutoplayImage:()=>AC,Feedback:()=>nS,HtmlAndMath:()=>qS,InlineMenu:()=>ZC,InputContainer:()=>_C,PreviewLayout:()=>GS,PreviewPrompt:()=>SC,Purpose:()=>wC,Readable:()=>CC,UiLayout:()=>HS,color:()=>ex,hasMedia:()=>kC,hasText:()=>DC,indicators:()=>rS,withUndoReset:()=>RS}),$C={fontFamily:`MJXZERO, MJXTEX !important`,"-webkit-font-smoothing":`antialiased !important`,"& .mq-math-mode > span > var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode span var":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode .mq-nonSymbola":{fontFamily:`MJXZERO, MJXTEX-I !important`},"& .mq-math-mode > span > var.mq-operator-name":{fontFamily:`MJXZERO, MJXTEX !important`}},ew={"& .mq-longdiv-inner":{marginTop:`-1px`,marginLeft:`5px !important;`,"& > .mq-empty":{padding:`0 !important`,marginLeft:`0px !important`,marginTop:`2px`}},"& .mq-math-mode .mq-longdiv":{display:`inline-flex !important`}},tw={"& *":{...$C,...ew,"& .mq-math-mode .mq-sqrt-prefix":{top:`0 !important`},"& .mq-math-mode .mq-empty":{padding:`9px 1px !important`},"& .mq-math-mode .mq-supsub":{fontSize:`70.7% !important`},"& .mq-math-mode .mq-sqrt-stem":{marginTop:`-5px`,paddingTop:`4px`},"& .mq-math-mode .mq-paren":{verticalAlign:`middle !important`},"& .mq-math-mode .mq-overarrow .mq-overarrow-inner .mq-empty":{padding:`0 !important`},"& .mq-math-mode .mq-overline .mq-overline-inner .mq-empty ":{padding:`0 !important`}}},nw=e=>e.ariaLabel||e.name||e.label||e.latex||`keypad action`,rw=e=>(ji(5-e.length,()=>e.push([])),Pi.apply(null,e)),Q=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/math-input/src/keypad/accessible-keypad.tsx`,iw=Sy(`pie-lib:math-inline:keypad:a11y`),aw=q(`div`)(()=>({...tw,width:`100%`,display:`grid`,gridTemplateRows:`repeat(5, minmax(40px, 60px))`,gridAutoFlow:`column`,border:`1px solid ${Ax()}`,"&.character":{textTransform:`initial !important`,gridTemplateRows:`repeat(5, minmax(40px, 50px)) !important`},"&.language":{gridTemplateRows:`repeat(4, minmax(40px, 50px)) !important`,"& *":{fontFamily:`Roboto, Helvetica, Arial, sans-serif !important`}}}));q(`div`)(({operator:e})=>({flex:e?`0 0 auto`:`1 1 0`,display:`grid`,gridAutoFlow:`column`,gridTemplateRows:`repeat(5, minmax(44px, 56px))`,gridAutoColumns:`minmax(72px, 1fr)`,backgroundColor:e?Vx():Bx()}));var ow=q(hy,{shouldForwardProp:e=>e!==`operator`})(({operator:e})=>({minWidth:`auto`,borderRadius:0,color:nx(),backgroundColor:e?Vx():Bx(),textTransform:`none`,fontSize:`1.6rem`,lineHeight:1,"&:hover":{backgroundColor:e?Hx():Vx()},"&:focus-visible":{outline:`3px solid ${Lx()}`,outlineOffset:-3,zIndex:2}})),sw=q(xy,{shouldForwardProp:e=>e!==`operator`})(({operator:e})=>({minWidth:`auto`,borderRadius:0,color:nx(),backgroundColor:e?Vx():Bx(),"&:hover":{backgroundColor:e?Hx():Vx()},"&:focus-visible":{outline:`3px solid ${Lx()}`,outlineOffset:-3,zIndex:2},"& .icon":{height:`30px`}})),cw=q(`span`)(()=>({pointerEvents:`none`,color:nx(),display:`inline-flex`,alignItems:`center`,justifyContent:`center`,minHeight:40,minWidth:34,"& .MathJax":{fontSize:`1.45rem`,lineHeight:1.1},"& mjx-container":{overflow:`visible !important`,lineHeight:1.1},"& .tpl-root":{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,gap:4,fontSize:`1.5rem`,lineHeight:1,minHeight:34,fontFamily:`"Times New Roman", Times, serif`,textTransform:`none`},"& .mq-keycap":{fontFamily:`"STIX Two Text", MJXZERO, MJXTEX, "Times New Roman", Times, serif`,fontStyle:`normal`},"& .mq-keycap var":{fontFamily:`"STIX Two Text", MJXZERO, MJXTEX-I, "Times New Roman", Times, serif`,fontStyle:`italic`},"& .mq-keycap .mq-operator-name":{fontFamily:`"STIX Two Text", MJXZERO, MJXTEX, "Times New Roman", Times, serif`,fontStyle:`normal`},"& .tpl-fraction":{display:`inline-grid`,gridTemplateRows:`auto 1px auto`,justifyItems:`center`,alignItems:`center`,minWidth:22},"& .tpl-frac-line":{width:`1.05em`,borderTop:`2px solid ${nx()}`,margin:`2px 0`},"& .tpl-mixed-fraction":{display:`inline-flex`,alignItems:`center`,gap:3},"& .tpl-frac-cell":{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,minHeight:`0.55em`},"& .tpl-placeholder":{display:`inline-block`,width:`0.42em`,height:`0.76em`,backgroundColor:bx()},"& .tpl-longdiv":{display:`inline-flex`,alignItems:`center`,gap:3},"& .tpl-longdiv-radicand":{display:`inline-flex`,alignItems:`center`,borderTop:`2px solid ${nx()}`,paddingTop:`0.15em`,minWidth:`0.8em`,justifyContent:`center`},"& .tpl-sup":{display:`inline-flex`,alignItems:`flex-start`},"& .tpl-sup .tpl-placeholder":{width:`0.3em`,height:`0.5em`,marginLeft:`0.05em`,transform:`translateY(-0.35em)`},"& .tpl-sub":{display:`inline-flex`,alignItems:`flex-end`},"& .tpl-sub .tpl-placeholder":{width:`0.3em`,height:`0.5em`,marginLeft:`0.05em`,transform:`translateY(0.3em)`},"& .tpl-root-radical":{display:`inline-flex`,alignItems:`flex-start`},"& .tpl-root-sign":{fontSize:`1.15em`,lineHeight:1},"& .tpl-radicand":{borderTop:`2px solid ${nx()}`,padding:`0.05em 0 0 0.08em`,marginLeft:`0.03em`},"& .tpl-over":{display:`inline-grid`,justifyItems:`center`,gap:2},"& .tpl-over-line":{display:`block`,width:`1em`,borderTop:`2px solid ${nx()}`},"& .tpl-over-arrow":{display:`block`,fontSize:`0.65em`,lineHeight:1},"& .tpl-over-arc":{display:`block`,fontSize:`0.8em`,lineHeight:1,transform:`translateY(0.1em)`}})),lw=q(hy,{shouldForwardProp:e=>e!==`operator`})(({operator:e})=>({minWidth:`auto`,borderRadius:0,padding:`6px`,overflow:`visible`,textTransform:`none`,color:nx(),backgroundColor:e?Vx():Bx(),"&:hover":{backgroundColor:e?Hx():Vx()},"&:focus-visible":{outline:`3px solid ${Lx()}`,outlineOffset:-3,zIndex:2}})),uw={"\\theta":`θ`,"\\pi":`π`,"\\infty":`∞`,"\\propto":`∝`,"\\sin":`sin`,"\\cos":`cos`,"\\tan":`tan`,"\\sec":`sec`,"\\csc":`csc`,"\\cot":`cot`,"\\log":`log`,"\\ln":`ln`,"\\pm":`±`,"\\approx":`≈`,"\\napprox":`≉`,"\\neq":`≠`,"\\sim":`∼`,"\\nsim":`≁`,"\\mu":`μ`,"\\Sigma":`Σ`,"\\sigma":`σ`,"\\parallel":`∥`,"\\nparallel":`∦`,"\\perp":`⟂`,"\\angle":`∠`,"\\measuredangle":`∡`,"\\triangle":`△`,"\\square":`□`,"\\parallelogram":`▱`,"\\odot":`⊙`,"\\degree":`°`,"\\cong":`≅`,"\\ncong":`≇`,"\\leftarrow":`←`,"\\rightarrow":`→`,"\\leftrightarrow":`↔`,"\\le":`≤`,"\\ge":`≥`},dw=new Set([`\\sin`,`\\cos`,`\\tan`,`\\sec`,`\\csc`,`\\cot`,`\\log`,`\\ln`]),fw=new Set([`x`,`y`,`i`,`e`,`AB`]),pw=(e=``)=>fw.has(e)?(0,Y.jsxDEV)(`var`,{children:e},void 0,!1,{fileName:Q,lineNumber:282,columnNumber:12},void 0):(0,Y.jsxDEV)(`span`,{children:e},void 0,!1,{fileName:Q,lineNumber:284,columnNumber:10},void 0),mw=(e=``)=>{if(dw.has(e))return(0,Y.jsxDEV)(`var`,{className:`mq-operator-name`,children:e.replace(/^\\/,``)},void 0,!1,{fileName:Q,lineNumber:289,columnNumber:12},void 0);let t=uw[e];return t?fw.has(t)?(0,Y.jsxDEV)(`var`,{children:t},void 0,!1,{fileName:Q,lineNumber:294,columnNumber:14},void 0):(0,Y.jsxDEV)(`span`,{children:t},void 0,!1,{fileName:Q,lineNumber:296,columnNumber:12},void 0):pw(e.replace(/^\\/,``).replace(/\\(left|right)/g,``).replace(/[{}\\]/g,``).replace(/\s+/g,` `).trim())},hw=({short:e=!1})=>(0,Y.jsxDEV)(`span`,{className:`tpl-placeholder`,style:e?{width:`0.3em`,height:`0.55em`}:void 0},void 0,!1,{fileName:Q,lineNumber:308,columnNumber:3},void 0),gw=({body:e,marker:t})=>(0,Y.jsxDEV)(`span`,{className:`tpl-root tpl-over mq-keycap`,"aria-hidden":!0,children:[(0,Y.jsxDEV)(`span`,{className:t,children:t===`tpl-over-line`?``:t===`tpl-over-arrow`?`↔`:`◠`},void 0,!1,{fileName:Q,lineNumber:313,columnNumber:5},void 0),(0,Y.jsxDEV)(`span`,{children:e},void 0,!1,{fileName:Q,lineNumber:314,columnNumber:5},void 0)]},void 0,!0,{fileName:Q,lineNumber:312,columnNumber:3},void 0),_w=({definition:e})=>{let t=e.key?.latex||``;switch(e.visualType){case`fractionTemplate`:return t===`\\frac{x}{ }`?(0,Y.jsxDEV)(`span`,{className:`tpl-root mq-keycap`,"aria-hidden":!0,children:(0,Y.jsxDEV)(`span`,{className:`tpl-fraction`,children:[(0,Y.jsxDEV)(`var`,{children:`x`},void 0,!1,{fileName:Q,lineNumber:326,columnNumber:15},void 0),(0,Y.jsxDEV)(`span`,{className:`tpl-frac-line`},void 0,!1,{fileName:Q,lineNumber:327,columnNumber:15},void 0),(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:328,columnNumber:15},void 0)]},void 0,!0,{fileName:Q,lineNumber:325,columnNumber:13},void 0)},void 0,!1,{fileName:Q,lineNumber:324,columnNumber:11},void 0):(0,Y.jsxDEV)(`span`,{className:`tpl-root mq-keycap`,"aria-hidden":!0,children:(0,Y.jsxDEV)(`span`,{className:`tpl-fraction`,children:[(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:336,columnNumber:13},void 0),(0,Y.jsxDEV)(`span`,{className:`tpl-frac-line`},void 0,!1,{fileName:Q,lineNumber:337,columnNumber:13},void 0),(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:338,columnNumber:13},void 0)]},void 0,!0,{fileName:Q,lineNumber:335,columnNumber:11},void 0)},void 0,!1,{fileName:Q,lineNumber:334,columnNumber:9},void 0);case`mixedFractionTemplate`:return(0,Y.jsxDEV)(`span`,{className:`tpl-root tpl-mixed-fraction mq-keycap`,"aria-hidden":!0,children:[(0,Y.jsxDEV)(`var`,{children:`x`},void 0,!1,{fileName:Q,lineNumber:345,columnNumber:11},void 0),(0,Y.jsxDEV)(`span`,{className:`tpl-fraction`,style:{minWidth:`0.9em`},children:[(0,Y.jsxDEV)(`span`,{className:`tpl-frac-cell`,children:(0,Y.jsxDEV)(hw,{short:!0},void 0,!1,{fileName:Q,lineNumber:348,columnNumber:15},void 0)},void 0,!1,{fileName:Q,lineNumber:347,columnNumber:13},void 0),(0,Y.jsxDEV)(`span`,{className:`tpl-frac-line`},void 0,!1,{fileName:Q,lineNumber:350,columnNumber:13},void 0),(0,Y.jsxDEV)(`span`,{className:`tpl-frac-cell`,children:(0,Y.jsxDEV)(hw,{short:!0},void 0,!1,{fileName:Q,lineNumber:352,columnNumber:15},void 0)},void 0,!1,{fileName:Q,lineNumber:351,columnNumber:13},void 0)]},void 0,!0,{fileName:Q,lineNumber:346,columnNumber:11},void 0)]},void 0,!0,{fileName:Q,lineNumber:344,columnNumber:9},void 0);case`squaredTemplate`:return(0,Y.jsxDEV)(`span`,{className:`tpl-root tpl-sup mq-keycap`,"aria-hidden":!0,children:[(0,Y.jsxDEV)(`var`,{children:`x`},void 0,!1,{fileName:Q,lineNumber:360,columnNumber:11},void 0),(0,Y.jsxDEV)(`span`,{style:{fontSize:`0.7em`,transform:`translateY(-0.25em)`},children:`2`},void 0,!1,{fileName:Q,lineNumber:361,columnNumber:11},void 0)]},void 0,!0,{fileName:Q,lineNumber:359,columnNumber:9},void 0);case`longdivTemplate`:return(0,Y.jsxDEV)(`span`,{className:`tpl-root mq-keycap`,"aria-hidden":!0,children:(0,Y.jsxDEV)(`span`,{className:`tpl-longdiv`,children:[(0,Y.jsxDEV)(`span`,{children:`)`},void 0,!1,{fileName:Q,lineNumber:368,columnNumber:13},void 0),(0,Y.jsxDEV)(`span`,{className:`tpl-longdiv-radicand`,children:(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:370,columnNumber:15},void 0)},void 0,!1,{fileName:Q,lineNumber:369,columnNumber:13},void 0)]},void 0,!0,{fileName:Q,lineNumber:367,columnNumber:11},void 0)},void 0,!1,{fileName:Q,lineNumber:366,columnNumber:9},void 0);case`supTemplate`:return(0,Y.jsxDEV)(`span`,{className:`tpl-root tpl-sup mq-keycap`,"aria-hidden":!0,children:[(0,Y.jsxDEV)(`var`,{children:`x`},void 0,!1,{fileName:Q,lineNumber:378,columnNumber:11},void 0),(0,Y.jsxDEV)(hw,{short:!0},void 0,!1,{fileName:Q,lineNumber:379,columnNumber:11},void 0)]},void 0,!0,{fileName:Q,lineNumber:377,columnNumber:9},void 0);case`subTemplate`:return(0,Y.jsxDEV)(`span`,{className:`tpl-root tpl-sub mq-keycap`,"aria-hidden":!0,children:[(0,Y.jsxDEV)(`var`,{children:`x`},void 0,!1,{fileName:Q,lineNumber:385,columnNumber:11},void 0),(0,Y.jsxDEV)(hw,{short:!0},void 0,!1,{fileName:Q,lineNumber:386,columnNumber:11},void 0)]},void 0,!0,{fileName:Q,lineNumber:384,columnNumber:9},void 0);case`sqrtTemplate`:return(0,Y.jsxDEV)(`span`,{className:`tpl-root tpl-root-radical mq-keycap`,"aria-hidden":!0,children:[(0,Y.jsxDEV)(`span`,{className:`tpl-root-sign`,children:`√`},void 0,!1,{fileName:Q,lineNumber:392,columnNumber:11},void 0),(0,Y.jsxDEV)(`span`,{className:`tpl-radicand`,children:(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:394,columnNumber:13},void 0)},void 0,!1,{fileName:Q,lineNumber:393,columnNumber:11},void 0)]},void 0,!0,{fileName:Q,lineNumber:391,columnNumber:9},void 0);case`nthRootTemplate`:return(0,Y.jsxDEV)(`span`,{className:`tpl-root tpl-root-radical mq-keycap`,"aria-hidden":!0,children:[(0,Y.jsxDEV)(`span`,{style:{fontSize:`0.55em`,transform:`translate(0.15em,-0.2em)`},children:(0,Y.jsxDEV)(hw,{short:!0},void 0,!1,{fileName:Q,lineNumber:402,columnNumber:13},void 0)},void 0,!1,{fileName:Q,lineNumber:401,columnNumber:11},void 0),(0,Y.jsxDEV)(`span`,{className:`tpl-root-sign`,children:`√`},void 0,!1,{fileName:Q,lineNumber:404,columnNumber:11},void 0),(0,Y.jsxDEV)(`span`,{className:`tpl-radicand`,children:(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:406,columnNumber:13},void 0)},void 0,!1,{fileName:Q,lineNumber:405,columnNumber:11},void 0)]},void 0,!0,{fileName:Q,lineNumber:400,columnNumber:9},void 0);case`parenTemplate`:return(0,Y.jsxDEV)(`span`,{className:`tpl-root mq-keycap`,"aria-hidden":!0,children:[`(`,(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:413,columnNumber:12},void 0),`)`]},void 0,!0,{fileName:Q,lineNumber:412,columnNumber:9},void 0);case`bracketTemplate`:return(0,Y.jsxDEV)(`span`,{className:`tpl-root mq-keycap`,"aria-hidden":!0,children:[`[`,(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:419,columnNumber:12},void 0),`]`]},void 0,!0,{fileName:Q,lineNumber:418,columnNumber:9},void 0);case`absTemplate`:return(0,Y.jsxDEV)(`span`,{className:`tpl-root mq-keycap`,"aria-hidden":!0,children:[`|`,(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:425,columnNumber:12},void 0),`|`]},void 0,!0,{fileName:Q,lineNumber:424,columnNumber:9},void 0);case`logSubTemplate`:return(0,Y.jsxDEV)(`span`,{className:`tpl-root tpl-sub mq-keycap`,"aria-hidden":!0,children:[(0,Y.jsxDEV)(`var`,{className:`mq-operator-name`,children:`log`},void 0,!1,{fileName:Q,lineNumber:431,columnNumber:11},void 0),(0,Y.jsxDEV)(hw,{short:!0},void 0,!1,{fileName:Q,lineNumber:432,columnNumber:11},void 0)]},void 0,!0,{fileName:Q,lineNumber:430,columnNumber:9},void 0);case`overlineTemplate`:return(0,Y.jsxDEV)(gw,{body:t.includes(`y`)?(0,Y.jsxDEV)(`var`,{children:`y`},void 0,!1,{fileName:Q,lineNumber:438,columnNumber:39},void 0):t.includes(`x`)?(0,Y.jsxDEV)(`var`,{children:`x`},void 0,!1,{fileName:Q,lineNumber:438,columnNumber:76},void 0):(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:438,columnNumber:91},void 0),marker:`tpl-over-line`},void 0,!1,{fileName:Q,lineNumber:437,columnNumber:9},void 0);case`overArrowTemplate`:return(0,Y.jsxDEV)(gw,{body:(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:443,columnNumber:32},void 0),marker:`tpl-over-arrow`},void 0,!1,{fileName:Q,lineNumber:443,columnNumber:14},void 0);case`overBiArrowTemplate`:return(0,Y.jsxDEV)(gw,{body:t.includes(`AB`)?(0,Y.jsxDEV)(`var`,{children:`AB`},void 0,!1,{fileName:Q,lineNumber:445,columnNumber:55},void 0):(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:445,columnNumber:71},void 0),marker:`tpl-over-arrow`},void 0,!1,{fileName:Q,lineNumber:445,columnNumber:14},void 0);case`overArcTemplate`:return(0,Y.jsxDEV)(gw,{body:(0,Y.jsxDEV)(hw,{},void 0,!1,{fileName:Q,lineNumber:447,columnNumber:32},void 0),marker:`tpl-over-arc`},void 0,!1,{fileName:Q,lineNumber:447,columnNumber:14},void 0);case`symbolText`:return(0,Y.jsxDEV)(`span`,{className:`tpl-root mq-keycap`,"aria-hidden":!0,children:mw(t)},void 0,!1,{fileName:Q,lineNumber:450,columnNumber:9},void 0);default:return(0,Y.jsxDEV)(`span`,{className:`tpl-root`,"aria-hidden":!0,children:e.key?.label||e.key?.write||e.key?.name},void 0,!1,{fileName:Q,lineNumber:456,columnNumber:9},void 0)}},vw=e=>e&&e.name===``&&e.latex===``&&e.write===``,yw=(e=``)=>e.replace(/\$\$/g,``).replace(/^\$|\$$/g,``).trim(),bw=e=>e?{gridTemplateColumns:`repeat(${e.columns}, minmax(min-content, 150px))`,gridTemplateRows:`repeat(${e.rows}, minmax(40px, 60px))`,gridAutoFlow:`initial`}:{},xw=class extends H.Component{static propTypes={className:b.string,controlledKeypadMode:b.bool,baseSet:b.array,additionalKeys:b.array,layoutForKeyPad:b.object,onPress:b.func.isRequired,onFocus:b.func,noDecimal:b.bool,setKeypadInteraction:b.func,mode:b.oneOfType([b.string,b.number]),onRequestClose:b.func};static defaultProps={baseSet:lv,noDecimal:!1};constructor(e){super(e),this.keypadRef=H.createRef(),this.buttonRefs=[],this.state={activeIndex:0}}componentDidMount(){let e=this.keypadRef?.current,t=e?.closest(`.main-container`),n=e?.closest(`.pie-toolbar`);if(this.props.controlledKeypadMode&&t&&n){let e=t.getBoundingClientRect(),r=n.getBoundingClientRect(),i=e.top+e.height-(r.top+r.height);i<0&&t&&(t.style.height=`${e.height+e.top-i}px`)}e&&(e.addEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.addEventListener(`mousedown`,this.handleKeypadInteraction,!0))}componentWillUnmount(){let e=this.keypadRef?.current;if(this.props.controlledKeypadMode&&e){let t=e.closest(`.main-container`);t&&(t.style.height=`unset`)}e&&(e.removeEventListener(`touchstart`,this.handleKeypadInteraction,!0),e.removeEventListener(`mousedown`,this.handleKeypadInteraction,!0))}handleKeypadInteraction=()=>{this.props.setKeypadInteraction&&this.props.setKeypadInteraction(!0)};keyIsNotAllowed=e=>{let{noDecimal:t}=this.props;return(e.write===`.`&&e.label===`.`||e.write===`,`&&e.label===`,`)&&t};flowKeys=(e,t)=>$n([...rw([...(e||[]).map(e=>[...e])]),...rw([...(t||[]).map(e=>[...e])])]);toRenderModel=()=>{let{baseSet:e,additionalKeys:t,mode:n}=this.props;return([`non-negative-integers`,`integers`,`decimals`,`fractions`,`item-authoring`,`language`].includes(n)?this.flowKeys([],t||[]):this.flowKeys(e,t||[])).filter(e=>e&&!vw(e)).map(e=>e.latex?{...e,latex:yw(e.latex),write:typeof e.write==`string`?yw(e.write):e.write,label:typeof e.label==`string`?yw(e.label):e.label}:e).map((e,t)=>({id:`${e.label||e.latex||e.name||e.command||`key`}-${t}`,ariaLabel:nw(e),key:e}))};pressKey=e=>{!e||this.keyIsNotAllowed(e.key)||(iw(`[pressKey]`,e.id),this.props.onPress(e.key))};moveFocus=e=>{let t=Math.max(0,Math.min(e,this.buttonRefs.length-1));this.setState({activeIndex:t},()=>{let e=this.buttonRefs[t];e&&!e.disabled&&e.focus()})};onButtonKeyDown=(e,t)=>{if(e.key===`ArrowRight`||e.key===`ArrowDown`){e.preventDefault(),this.moveFocus(t+1);return}if(e.key===`ArrowLeft`||e.key===`ArrowUp`){e.preventDefault(),this.moveFocus(t-1);return}if(e.key===`Home`){e.preventDefault(),this.moveFocus(0);return}if(e.key===`End`){e.preventDefault(),this.moveFocus(this.buttonRefs.length-1);return}e.key===`Escape`&&this.props.onRequestClose&&(e.preventDefault(),this.props.onRequestClose())};renderKey=(e,t)=>{let n=e.key,r=n.category===`operators`,i=this.keyIsNotAllowed(n),a={key:`${e.id}-${t}`,onClick:()=>this.pressKey(e),onKeyDown:e=>this.onButtonKeyDown(e,t),onFocus:()=>this.setState({activeIndex:t}),tabIndex:this.state.activeIndex===t?0:-1,disabled:i,"aria-label":e.ariaLabel||nw(n),...n.actions||{},...n.extraProps||{}};if(n.icon){let e=n.icon?n.icon:`div`;return(0,Y.jsxDEV)(sw,{...a,operator:r,children:(0,Y.jsxDEV)(e,{className:`icon`,"aria-hidden":`true`},void 0,!1,{fileName:Q,lineNumber:670,columnNumber:11},this)},void 0,!1,{fileName:Q,lineNumber:666,columnNumber:9},this)}return n.latex?(0,Y.jsxDEV)(lw,{...a,operator:r,children:(0,Y.jsxDEV)(cw,{children:(0,Y.jsxDEV)(_w,{definition:e},void 0,!1,{fileName:Q,lineNumber:682,columnNumber:13},this)},void 0,!1,{fileName:Q,lineNumber:681,columnNumber:11},this)},void 0,!1,{fileName:Q,lineNumber:677,columnNumber:9},this):(0,Y.jsxDEV)(ow,{...a,operator:r,children:n.label||n.write||n.name},void 0,!1,{fileName:Q,lineNumber:689,columnNumber:7},this)};render(){let{className:e,onFocus:t,layoutForKeyPad:n}=this.props;this.buttonRefs=[];let r=this.toRenderModel(),i=r.length%5?1:0,a={gridTemplateColumns:`repeat(${Math.floor(r.length/5)+i}, minmax(min-content, 150px))`,...bw(n)},o=0,s=e=>{let t=o++,n=this.renderKey(e,t);return H.cloneElement(n,{ref:e=>{this.buttonRefs[t]=e}})};return(0,Y.jsxDEV)(aw,{ref:this.keypadRef,className:[e,this.props.mode].filter(Boolean).join(` `),style:a,onFocus:t,role:`grid`,"aria-label":`Math keypad`,children:r.map(e=>s(e))},void 0,!1,{fileName:Q,lineNumber:719,columnNumber:7},this)}},Sw=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/math-input/src/horizontal-keypad.tsx`,Cw=e=>{if(e.command)return{value:e.command,type:`command`};if(e.write)return{value:e.write};if(e.keystroke)return{type:`cursor`,value:e.keystroke}},ww=class extends H.Component{static propTypes={className:b.string,controlledKeypadMode:b.bool,mode:b.oneOfType([b.string,b.number]),layoutForKeyPad:b.object,onClick:b.func.isRequired,onFocus:b.func,noDecimal:b.bool,additionalKeys:b.array,setKeypadInteraction:b.func,onRequestClose:b.func};static defaultProps={mode:`scientific`,noDecimal:!1,additionalKeys:[]};keypadPress=e=>{let{onClick:t}=this.props;t(Cw(e))};render(){let{mode:e,onFocus:t,controlledKeypadMode:n,noDecimal:r,className:i,additionalKeys:a,layoutForKeyPad:o,setKeypadInteraction:s,onRequestClose:c}=this.props,l=Y_(a);return(0,Y.jsxDEV)(xw,{className:i,controlledKeypadMode:n,onFocus:t,noDecimal:r,layoutForKeyPad:o,additionalKeys:Kh(q_(e),l),onPress:this.keypadPress,mode:e,setKeypadInteraction:s,onRequestClose:c},void 0,!1,{fileName:Sw,lineNumber:68,columnNumber:7},this)}},Tw=o(((e,t)=>{(function(e,n){"use strict";typeof t==`object`&&typeof t.exports==`object`?t.exports=e.document?n(e,!0):function(e){if(!e.document)throw Error(`jQuery requires a window with a document`);return n(e)}:n(e)})(typeof window<`u`?window:e,function(e,t){"use strict";var n=[],r=Object.getPrototypeOf,i=n.slice,a=n.flat?function(e){return n.flat.call(e)}:function(e){return n.concat.apply([],e)},o=n.push,s=n.indexOf,c={},l=c.toString,u=c.hasOwnProperty,d=u.toString,f=d.call(Object),p={},m=function(e){return typeof e==`function`&&typeof e.nodeType!=`number`&&typeof e.item!=`function`},h=function(e){return e!=null&&e===e.window},g=e.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function v(e,t,n){n||=g;var r,i,a=n.createElement(`script`);if(a.text=e,t)for(r in _)i=t[r]||t.getAttribute&&t.getAttribute(r),i&&a.setAttribute(r,i);n.head.appendChild(a).parentNode.removeChild(a)}function y(e){return e==null?e+``:typeof e==`object`||typeof e==`function`?c[l.call(e)]||`object`:typeof e}var b=`3.7.1`,x=/HTML$/i,S=function(e,t){return new S.fn.init(e,t)};S.fn=S.prototype={jquery:b,constructor:S,length:0,toArray:function(){return i.call(this)},get:function(e){return e==null?i.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(i.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(S.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(S.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:o,sort:n.sort,splice:n.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,a,o=arguments[0]||{},s=1,c=arguments.length,l=!1;for(typeof o==`boolean`&&(l=o,o=arguments[s]||{},s++),typeof o!=`object`&&!m(o)&&(o={}),s===c&&(o=this,s--);s<c;s++)if((e=arguments[s])!=null)for(t in e)r=e[t],!(t===`__proto__`||o===r)&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=o[t],a=i&&!Array.isArray(n)?[]:!i&&!S.isPlainObject(n)?{}:n,i=!1,o[t]=S.extend(l,a,r)):r!==void 0&&(o[t]=r));return o},S.extend({expando:`jQuery`+(b+Math.random()).replace(/\D/g,``),isReady:!0,error:function(e){throw Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!e||l.call(e)!==`[object Object]`?!1:(t=r(e),t?(n=u.call(t,`constructor`)&&t.constructor,typeof n==`function`&&d.call(n)===f):!0)},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){v(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(C(e))for(n=e.length;r<n&&t.call(e[r],r,e[r])!==!1;r++);else for(r in e)if(t.call(e[r],r,e[r])===!1)break;return e},text:function(e){var t,n=``,r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=S.text(t);return i===1||i===11?e.textContent:i===9?e.documentElement.textContent:i===3||i===4?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return e!=null&&(C(Object(e))?S.merge(n,typeof e==`string`?[e]:e):o.call(n,e)),n},inArray:function(e,t,n){return t==null?-1:s.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!x.test(t||n&&n.nodeName||`HTML`)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],a=0,o=e.length,s=!n;a<o;a++)r=!t(e[a],a),r!==s&&i.push(e[a]);return i},map:function(e,t,n){var r,i,o=0,s=[];if(C(e))for(r=e.length;o<r;o++)i=t(e[o],o,n),i!=null&&s.push(i);else for(o in e)i=t(e[o],o,n),i!=null&&s.push(i);return a(s)},guid:1,support:p}),typeof Symbol==`function`&&(S.fn[Symbol.iterator]=n[Symbol.iterator]),S.each(`Boolean Number String Function Array Date RegExp Object Error Symbol`.split(` `),function(e,t){c[`[object `+t+`]`]=t.toLowerCase()});function C(e){var t=!!e&&`length`in e&&e.length,n=y(e);return m(e)||h(e)?!1:n===`array`||t===0||typeof t==`number`&&t>0&&t-1 in e}function w(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var T=n.pop,E=n.sort,D=n.splice,O=`[\\x20\\t\\r\\n\\f]`,k=RegExp(`^`+O+`+|((?:^|[^\\\\])(?:\\\\.)*)`+O+`+$`,`g`);S.contains=function(e,t){var n=t&&t.parentNode;return e===n||!!(n&&n.nodeType===1&&(e.contains?e.contains(n):e.compareDocumentPosition&&e.compareDocumentPosition(n)&16))};var ee=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function A(e,t){return t?e===`\0`?`�`:e.slice(0,-1)+`\\`+e.charCodeAt(e.length-1).toString(16)+` `:`\\`+e}S.escapeSelector=function(e){return(e+``).replace(ee,A)};var j=g,te=o;(function(){var t,r,a,o,c,l=te,d,f,m,h,g,_=S.expando,v=0,y=0,b=me(),x=me(),C=me(),ee=me(),A=function(e,t){return e===t&&(c=!0),0},M=`checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped`,N=`(?:\\\\[\\da-fA-F]{1,6}`+O+`?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+`,ne=`\\[`+O+`*(`+N+`)(?:`+O+`*([*^$|!~]?=)`+O+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+N+`))|)`+O+`*\\]`,re=`:(`+N+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+ne+`)*)|.*)\\)|)`,P=RegExp(O+`+`,`g`),F=RegExp(`^`+O+`*,`+O+`*`),ie=RegExp(`^`+O+`*([>+~]|`+O+`)`+O+`*`),ae=RegExp(O+`|>`),oe=new RegExp(re),I=RegExp(`^`+N+`$`),se={ID:RegExp(`^#(`+N+`)`),CLASS:RegExp(`^\\.(`+N+`)`),TAG:RegExp(`^(`+N+`|[*])`),ATTR:RegExp(`^`+ne),PSEUDO:RegExp(`^`+re),CHILD:RegExp(`^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(`+O+`*(even|odd|(([+-]|)(\\d*)n|)`+O+`*(?:([+-]|)`+O+`*(\\d+)|))`+O+`*\\)|)`,`i`),bool:RegExp(`^(?:`+M+`)$`,`i`),needsContext:RegExp(`^`+O+`*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(`+O+`*((?:-\\d)?\\d*)`+O+`*\\)|)(?=[^-]|$)`,`i`)},L=/^(?:input|select|textarea|button)$/i,R=/^h\d$/i,z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ce=/[+~]/,le=RegExp(`\\\\[\\da-fA-F]{1,6}`+O+`?|\\\\([^\\r\\n\\f])`,`g`),ue=function(e,t){var n=`0x`+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,n&1023|56320))},de=function(){xe()},fe=Te(function(e){return e.disabled===!0&&w(e,`fieldset`)},{dir:`parentNode`,next:`legend`});function pe(){try{return d.activeElement}catch{}}try{l.apply(n=i.call(j.childNodes),j.childNodes),n[j.childNodes.length].nodeType}catch{l={apply:function(e,t){te.apply(e,i.call(t))},call:function(e){te.apply(e,i.call(arguments,1))}}}function B(e,t,n,r){var i,a,o,s,c,u,f,g=t&&t.ownerDocument,v=t?t.nodeType:9;if(n||=[],typeof e!=`string`||!e||v!==1&&v!==9&&v!==11)return n;if(!r&&(xe(t),t||=d,m)){if(v!==11&&(c=z.exec(e))){if(i=c[1]){if(v===9)if(o=t.getElementById(i)){if(o.id===i)return l.call(n,o),n}else return n;else if(g&&(o=g.getElementById(i))&&B.contains(t,o)&&o.id===i)return l.call(n,o),n}else if(c[2])return l.apply(n,t.getElementsByTagName(e)),n;else if((i=c[3])&&t.getElementsByClassName)return l.apply(n,t.getElementsByClassName(i)),n}if(!ee[e+` `]&&(!h||!h.test(e))){if(f=e,g=t,v===1&&(ae.test(e)||ie.test(e))){for(g=ce.test(e)&&be(t.parentNode)||t,(g!=t||!p.scope)&&((s=t.getAttribute(`id`))?s=S.escapeSelector(s):t.setAttribute(`id`,s=_)),u=Ce(e),a=u.length;a--;)u[a]=(s?`#`+s:`:scope`)+` `+we(u[a]);f=u.join(`,`)}try{return l.apply(n,g.querySelectorAll(f)),n}catch{ee(e,!0)}finally{s===_&&t.removeAttribute(`id`)}}}return Ne(e.replace(k,`$1`),t,n,r)}function me(){var e=[];function t(n,i){return e.push(n+` `)>r.cacheLength&&delete t[e.shift()],t[n+` `]=i}return t}function he(e){return e[_]=!0,e}function ge(e){var t=d.createElement(`fieldset`);try{return!!e(t)}catch{return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function _e(e){return function(t){return w(t,`input`)&&t.type===e}}function ve(e){return function(t){return(w(t,`input`)||w(t,`button`))&&t.type===e}}function V(e){return function(t){return`form`in t?t.parentNode&&t.disabled===!1?`label`in t?`label`in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&fe(t)===e:t.disabled===e:`label`in t?t.disabled===e:!1}}function ye(e){return he(function(t){return t=+t,he(function(n,r){for(var i,a=e([],n.length,t),o=a.length;o--;)n[i=a[o]]&&(n[i]=!(r[i]=n[i]))})})}function be(e){return e&&e.getElementsByTagName!==void 0&&e}function xe(e){var t,n=e?e.ownerDocument||e:j;return n==d||n.nodeType!==9||!n.documentElement?d:(d=n,f=d.documentElement,m=!S.isXMLDoc(d),g=f.matches||f.webkitMatchesSelector||f.msMatchesSelector,f.msMatchesSelector&&j!=d&&(t=d.defaultView)&&t.top!==t&&t.addEventListener(`unload`,de),p.getById=ge(function(e){return f.appendChild(e).id=S.expando,!d.getElementsByName||!d.getElementsByName(S.expando).length}),p.disconnectedMatch=ge(function(e){return g.call(e,`*`)}),p.scope=ge(function(){return d.querySelectorAll(`:scope`)}),p.cssHas=ge(function(){try{return d.querySelector(`:has(*,:jqfake)`),!1}catch{return!0}}),p.getById?(r.filter.ID=function(e){var t=e.replace(le,ue);return function(e){return e.getAttribute(`id`)===t}},r.find.ID=function(e,t){if(t.getElementById!==void 0&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(le,ue);return function(e){var n=e.getAttributeNode!==void 0&&e.getAttributeNode(`id`);return n&&n.value===t}},r.find.ID=function(e,t){if(t.getElementById!==void 0&&m){var n,r,i,a=t.getElementById(e);if(a){if(n=a.getAttributeNode(`id`),n&&n.value===e)return[a];for(i=t.getElementsByName(e),r=0;a=i[r++];)if(n=a.getAttributeNode(`id`),n&&n.value===e)return[a]}return[]}}),r.find.TAG=function(e,t){return t.getElementsByTagName===void 0?t.querySelectorAll(e):t.getElementsByTagName(e)},r.find.CLASS=function(e,t){if(t.getElementsByClassName!==void 0&&m)return t.getElementsByClassName(e)},h=[],ge(function(e){var t;f.appendChild(e).innerHTML=`<a id='`+_+`' href='' disabled='disabled'></a><select id='`+_+`-\r\\' disabled='disabled'><option selected=''></option></select>`,e.querySelectorAll(`[selected]`).length||h.push(`\\[`+O+`*(?:value|`+M+`)`),e.querySelectorAll(`[id~=`+_+`-]`).length||h.push(`~=`),e.querySelectorAll(`a#`+_+`+*`).length||h.push(`.#.+[+~]`),e.querySelectorAll(`:checked`).length||h.push(`:checked`),t=d.createElement(`input`),t.setAttribute(`type`,`hidden`),e.appendChild(t).setAttribute(`name`,`D`),f.appendChild(e).disabled=!0,e.querySelectorAll(`:disabled`).length!==2&&h.push(`:enabled`,`:disabled`),t=d.createElement(`input`),t.setAttribute(`name`,``),e.appendChild(t),e.querySelectorAll(`[name='']`).length||h.push(`\\[`+O+`*name`+O+`*=`+O+`*(?:''|"")`)}),p.cssHas||h.push(`:has`),h=h.length&&new RegExp(h.join(`|`)),A=function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1,n&1||!p.sortDetached&&t.compareDocumentPosition(e)===n?e===d||e.ownerDocument==j&&B.contains(j,e)?-1:t===d||t.ownerDocument==j&&B.contains(j,t)?1:o?s.call(o,e)-s.call(o,t):0:n&4?-1:1)},d)}for(t in B.matches=function(e,t){return B(e,null,null,t)},B.matchesSelector=function(e,t){if(xe(e),m&&!ee[t+` `]&&(!h||!h.test(t)))try{var n=g.call(e,t);if(n||p.disconnectedMatch||e.document&&e.document.nodeType!==11)return n}catch{ee(t,!0)}return B(t,d,null,[e]).length>0},B.contains=function(e,t){return(e.ownerDocument||e)!=d&&xe(e),S.contains(e,t)},B.attr=function(e,t){(e.ownerDocument||e)!=d&&xe(e);var n=r.attrHandle[t.toLowerCase()],i=n&&u.call(r.attrHandle,t.toLowerCase())?n(e,t,!m):void 0;return i===void 0?e.getAttribute(t):i},B.error=function(e){throw Error(`Syntax error, unrecognized expression: `+e)},S.uniqueSort=function(e){var t,n=[],r=0,a=0;if(c=!p.sortStable,o=!p.sortStable&&i.call(e,0),E.call(e,A),c){for(;t=e[a++];)t===e[a]&&(r=n.push(a));for(;r--;)D.call(e,n[r],1)}return o=null,e},S.fn.uniqueSort=function(){return this.pushStack(S.uniqueSort(i.apply(this)))},r=S.expr={cacheLength:50,createPseudo:he,match:se,attrHandle:{},find:{},relative:{">":{dir:`parentNode`,first:!0}," ":{dir:`parentNode`},"+":{dir:`previousSibling`,first:!0},"~":{dir:`previousSibling`}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(le,ue),e[3]=(e[3]||e[4]||e[5]||``).replace(le,ue),e[2]===`~=`&&(e[3]=` `+e[3]+` `),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)===`nth`?(e[3]||B.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]===`even`||e[3]===`odd`)),e[5]=+(e[7]+e[8]||e[3]===`odd`)):e[3]&&B.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return se.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||``:n&&oe.test(n)&&(t=Ce(n,!0))&&(t=n.indexOf(`)`,n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(le,ue).toLowerCase();return e===`*`?function(){return!0}:function(e){return w(e,t)}},CLASS:function(e){var t=b[e+` `];return t||(t=RegExp(`(^|`+O+`)`+e+`(`+O+`|$)`))&&b(e,function(e){return t.test(typeof e.className==`string`&&e.className||e.getAttribute!==void 0&&e.getAttribute(`class`)||``)})},ATTR:function(e,t,n){return function(r){var i=B.attr(r,e);return i==null?t===`!=`:t?(i+=``,t===`=`?i===n:t===`!=`?i!==n:t===`^=`?n&&i.indexOf(n)===0:t===`*=`?n&&i.indexOf(n)>-1:t===`$=`?n&&i.slice(-n.length)===n:t===`~=`?(` `+i.replace(P,` `)+` `).indexOf(n)>-1:t===`|=`?i===n||i.slice(0,n.length+1)===n+`-`:!1):!0}},CHILD:function(e,t,n,r,i){var a=e.slice(0,3)!==`nth`,o=e.slice(-4)!==`last`,s=t===`of-type`;return r===1&&i===0?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,f,p,m=a===o?`previousSibling`:`nextSibling`,h=t.parentNode,g=s&&t.nodeName.toLowerCase(),y=!c&&!s,b=!1;if(h){if(a){for(;m;){for(d=t;d=d[m];)if(s?w(d,g):d.nodeType===1)return!1;p=m=e===`only`&&!p&&`nextSibling`}return!0}if(p=[o?h.firstChild:h.lastChild],o&&y){for(u=h[_]||(h[_]={}),l=u[e]||[],f=l[0]===v&&l[1],b=f&&l[2],d=f&&h.childNodes[f];d=++f&&d&&d[m]||(b=f=0)||p.pop();)if(d.nodeType===1&&++b&&d===t){u[e]=[v,f,b];break}}else if(y&&(u=t[_]||(t[_]={}),l=u[e]||[],f=l[0]===v&&l[1],b=f),b===!1)for(;(d=++f&&d&&d[m]||(b=f=0)||p.pop())&&!((s?w(d,g):d.nodeType===1)&&++b&&(y&&(u=d[_]||(d[_]={}),u[e]=[v,b]),d===t)););return b-=i,b===r||b%r===0&&b/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||B.error(`unsupported pseudo: `+e);return i[_]?i(t):i.length>1?(n=[e,e,``,t],r.setFilters.hasOwnProperty(e.toLowerCase())?he(function(e,n){for(var r,a=i(e,t),o=a.length;o--;)r=s.call(e,a[o]),e[r]=!(n[r]=a[o])}):function(e){return i(e,0,n)}):i}},pseudos:{not:he(function(e){var t=[],n=[],r=Me(e.replace(k,`$1`));return r[_]?he(function(e,t,n,i){for(var a,o=r(e,null,i,[]),s=e.length;s--;)(a=o[s])&&(e[s]=!(t[s]=a))}):function(e,i,a){return t[0]=e,r(t,null,a,n),t[0]=null,!n.pop()}}),has:he(function(e){return function(t){return B(e,t).length>0}}),contains:he(function(e){return e=e.replace(le,ue),function(t){return(t.textContent||S.text(t)).indexOf(e)>-1}}),lang:he(function(e){return I.test(e||``)||B.error(`unsupported lang: `+e),e=e.replace(le,ue).toLowerCase(),function(t){var n;do if(n=m?t.lang:t.getAttribute(`xml:lang`)||t.getAttribute(`lang`))return n=n.toLowerCase(),n===e||n.indexOf(e+`-`)===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===pe()&&d.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:V(!1),disabled:V(!0),checked:function(e){return w(e,`input`)&&!!e.checked||w(e,`option`)&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return R.test(e.nodeName)},input:function(e){return L.test(e.nodeName)},button:function(e){return w(e,`input`)&&e.type===`button`||w(e,`button`)},text:function(e){var t;return w(e,`input`)&&e.type===`text`&&((t=e.getAttribute(`type`))==null||t.toLowerCase()===`text`)},first:ye(function(){return[0]}),last:ye(function(e,t){return[t-1]}),eq:ye(function(e,t,n){return[n<0?n+t:n]}),even:ye(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ye(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ye(function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ye(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=_e(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=ve(t);function Se(){}Se.prototype=r.filters=r.pseudos,r.setFilters=new Se;function Ce(e,t){var n,i,a,o,s,c,l,u=x[e+` `];if(u)return t?0:u.slice(0);for(s=e,c=[],l=r.preFilter;s;){for(o in(!n||(i=F.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),c.push(a=[])),n=!1,(i=ie.exec(s))&&(n=i.shift(),a.push({value:n,type:i[0].replace(k,` `)}),s=s.slice(n.length)),r.filter)(i=se[o].exec(s))&&(!l[o]||(i=l[o](i)))&&(n=i.shift(),a.push({value:n,type:o,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?B.error(e):x(e,c).slice(0)}function we(e){for(var t=0,n=e.length,r=``;t<n;t++)r+=e[t].value;return r}function Te(e,t,n){var r=t.dir,i=t.next,a=i||r,o=n&&a===`parentNode`,s=y++;return t.first?function(t,n,i){for(;t=t[r];)if(t.nodeType===1||o)return e(t,n,i);return!1}:function(t,n,c){var l,u,d=[v,s];if(c){for(;t=t[r];)if((t.nodeType===1||o)&&e(t,n,c))return!0}else for(;t=t[r];)if(t.nodeType===1||o){if(u=t[_]||(t[_]={}),i&&w(t,i))t=t[r]||t;else if((l=u[a])&&l[0]===v&&l[1]===s)return d[2]=l[2];else if(u[a]=d,d[2]=e(t,n,c))return!0}return!1}}function Ee(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function De(e,t,n){for(var r=0,i=t.length;r<i;r++)B(e,t[r],n);return n}function Oe(e,t,n,r,i){for(var a,o=[],s=0,c=e.length,l=t!=null;s<c;s++)(a=e[s])&&(!n||n(a,r,i))&&(o.push(a),l&&t.push(s));return o}function ke(e,t,n,r,i,a){return r&&!r[_]&&(r=ke(r)),i&&!i[_]&&(i=ke(i,a)),he(function(a,o,c,u){var d,f,p,m,h=[],g=[],_=o.length,v=a||De(t||`*`,c.nodeType?[c]:c,[]),y=e&&(a||!t)?Oe(v,h,e,c,u):v;if(n?(m=i||(a?e:_||r)?[]:o,n(y,m,c,u)):m=y,r)for(d=Oe(m,g),r(d,[],c,u),f=d.length;f--;)(p=d[f])&&(m[g[f]]=!(y[g[f]]=p));if(a){if(i||e){if(i){for(d=[],f=m.length;f--;)(p=m[f])&&d.push(y[f]=p);i(null,m=[],d,u)}for(f=m.length;f--;)(p=m[f])&&(d=i?s.call(a,p):h[f])>-1&&(a[d]=!(o[d]=p))}}else m=Oe(m===o?m.splice(_,m.length):m),i?i(null,o,m,u):l.apply(o,m)})}function Ae(e){for(var t,n,i,o=e.length,c=r.relative[e[0].type],l=c||r.relative[` `],u=c?1:0,d=Te(function(e){return e===t},l,!0),f=Te(function(e){return s.call(t,e)>-1},l,!0),p=[function(e,n,r){var i=!c&&(r||n!=a)||((t=n).nodeType?d(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[Te(Ee(p),n)];else{if(n=r.filter[e[u].type].apply(null,e[u].matches),n[_]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return ke(u>1&&Ee(p),u>1&&we(e.slice(0,u-1).concat({value:e[u-2].type===` `?`*`:``})).replace(k,`$1`),n,u<i&&Ae(e.slice(u,i)),i<o&&Ae(e=e.slice(i)),i<o&&we(e))}p.push(n)}return Ee(p)}function je(e,t){var n=t.length>0,i=e.length>0,o=function(o,s,c,u,f){var p,h,g,_=0,y=`0`,b=o&&[],x=[],C=a,w=o||i&&r.find.TAG(`*`,f),E=v+=C==null?1:Math.random()||.1,D=w.length;for(f&&(a=s==d||s||f);y!==D&&(p=w[y])!=null;y++){if(i&&p){for(h=0,!s&&p.ownerDocument!=d&&(xe(p),c=!m);g=e[h++];)if(g(p,s||d,c)){l.call(u,p);break}f&&(v=E)}n&&((p=!g&&p)&&_--,o&&b.push(p))}if(_+=y,n&&y!==_){for(h=0;g=t[h++];)g(b,x,s,c);if(o){if(_>0)for(;y--;)b[y]||x[y]||(x[y]=T.call(u));x=Oe(x)}l.apply(u,x),f&&!o&&x.length>0&&_+t.length>1&&S.uniqueSort(u)}return f&&(v=E,a=C),b};return n?he(o):o}function Me(e,t){var n,r=[],i=[],a=C[e+` `];if(!a){for(t||=Ce(e),n=t.length;n--;)a=Ae(t[n]),a[_]?r.push(a):i.push(a);a=C(e,je(i,r)),a.selector=e}return a}function Ne(e,t,n,i){var a,o,s,c,u,d=typeof e==`function`&&e,f=!i&&Ce(e=d.selector||e);if(n||=[],f.length===1){if(o=f[0]=f[0].slice(0),o.length>2&&(s=o[0]).type===`ID`&&t.nodeType===9&&m&&r.relative[o[1].type]){if(t=(r.find.ID(s.matches[0].replace(le,ue),t)||[])[0],t)d&&(t=t.parentNode);else return n;e=e.slice(o.shift().value.length)}for(a=se.needsContext.test(e)?0:o.length;a--&&(s=o[a],!r.relative[c=s.type]);)if((u=r.find[c])&&(i=u(s.matches[0].replace(le,ue),ce.test(o[0].type)&&be(t.parentNode)||t))){if(o.splice(a,1),e=i.length&&we(o),!e)return l.apply(n,i),n;break}}return(d||Me(e,f))(i,t,!m,n,!t||ce.test(e)&&be(t.parentNode)||t),n}p.sortStable=_.split(``).sort(A).join(``)===_,xe(),p.sortDetached=ge(function(e){return e.compareDocumentPosition(d.createElement(`fieldset`))&1}),S.find=B,S.expr[`:`]=S.expr.pseudos,S.unique=S.uniqueSort,B.compile=Me,B.select=Ne,B.setDocument=xe,B.tokenize=Ce,B.escape=S.escapeSelector,B.getText=S.text,B.isXML=S.isXMLDoc,B.selectors=S.expr,B.support=S.support,B.uniqueSort=S.uniqueSort})();var M=function(e,t,n){for(var r=[],i=n!==void 0;(e=e[t])&&e.nodeType!==9;)if(e.nodeType===1){if(i&&S(e).is(n))break;r.push(e)}return r},N=function(e,t){for(var n=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n},ne=S.expr.match.needsContext,re=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function P(e,t,n){return m(t)?S.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?S.grep(e,function(e){return e===t!==n}):typeof t==`string`?S.filter(t,e,n):S.grep(e,function(e){return s.call(t,e)>-1!==n})}S.filter=function(e,t,n){var r=t[0];return n&&(e=`:not(`+e+`)`),t.length===1&&r.nodeType===1?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,function(e){return e.nodeType===1}))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if(typeof e!=`string`)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(P(this,e||[],!1))},not:function(e){return this.pushStack(P(this,e||[],!0))},is:function(e){return!!P(this,typeof e==`string`&&ne.test(e)?S(e):e||[],!1).length}});var F,ie=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,ae=S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n||=F,typeof e==`string`)if(r=e[0]===`<`&&e[e.length-1]===`>`&&e.length>=3?[null,e,null]:ie.exec(e),r&&(r[1]||!t))if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),re.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}else return i=g.getElementById(r[2]),i&&(this[0]=i,this.length=1),this;else if(!t||t.jquery)return(t||n).find(e);else return this.constructor(t).find(e);else if(e.nodeType)return this[0]=e,this.length=1,this;else if(m(e))return n.ready===void 0?e(S):n.ready(e);return S.makeArray(e,this)};ae.prototype=S.fn,F=S(g);var oe=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,a=[],o=typeof e!=`string`&&S(e);if(!ne.test(e)){for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:n.nodeType===1&&S.find.matchesSelector(n,e))){a.push(n);break}}return this.pushStack(a.length>1?S.uniqueSort(a):a)},index:function(e){return e?typeof e==`string`?s.call(S(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function se(e,t){for(;(e=e[t])&&e.nodeType!==1;);return e}S.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return M(e,`parentNode`)},parentsUntil:function(e,t,n){return M(e,`parentNode`,n)},next:function(e){return se(e,`nextSibling`)},prev:function(e){return se(e,`previousSibling`)},nextAll:function(e){return M(e,`nextSibling`)},prevAll:function(e){return M(e,`previousSibling`)},nextUntil:function(e,t,n){return M(e,`nextSibling`,n)},prevUntil:function(e,t,n){return M(e,`previousSibling`,n)},siblings:function(e){return N((e.parentNode||{}).firstChild,e)},children:function(e){return N(e.firstChild)},contents:function(e){return e.contentDocument!=null&&r(e.contentDocument)?e.contentDocument:(w(e,`template`)&&(e=e.content||e),S.merge([],e.childNodes))}},function(e,t){S.fn[e]=function(n,r){var i=S.map(this,t,n);return e.slice(-5)!==`Until`&&(r=n),r&&typeof r==`string`&&(i=S.filter(r,i)),this.length>1&&(I[e]||S.uniqueSort(i),oe.test(e)&&i.reverse()),this.pushStack(i)}});var L=/[^\x20\t\r\n\f]+/g;function R(e){var t={};return S.each(e.match(L)||[],function(e,n){t[n]=!0}),t}S.Callbacks=function(e){e=typeof e==`string`?R(e):S.extend({},e);var t,n,r,i,a=[],o=[],s=-1,c=function(){for(i||=e.once,r=t=!0;o.length;s=-1)for(n=o.shift();++s<a.length;)a[s].apply(n[0],n[1])===!1&&e.stopOnFalse&&(s=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:``)},l={add:function(){return a&&(n&&!t&&(s=a.length-1,o.push(n)),(function t(n){S.each(n,function(n,r){m(r)?(!e.unique||!l.has(r))&&a.push(r):r&&r.length&&y(r)!==`string`&&t(r)})})(arguments),n&&!t&&c()),this},remove:function(){return S.each(arguments,function(e,t){for(var n;(n=S.inArray(t,a,n))>-1;)a.splice(n,1),n<=s&&s--}),this},has:function(e){return e?S.inArray(e,a)>-1:a.length>0},empty:function(){return a&&=[],this},disable:function(){return i=o=[],a=n=``,this},disabled:function(){return!a},lock:function(){return i=o=[],!n&&!t&&(a=n=``),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n||=[],n=[e,n.slice?n.slice():n],o.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l};function z(e){return e}function ce(e){throw e}function le(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.extend({Deferred:function(t){var n=[[`notify`,`progress`,S.Callbacks(`memory`),S.Callbacks(`memory`),2],[`resolve`,`done`,S.Callbacks(`once memory`),S.Callbacks(`once memory`),0,`resolved`],[`reject`,`fail`,S.Callbacks(`once memory`),S.Callbacks(`once memory`),1,`rejected`]],r=`pending`,i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return S.Deferred(function(t){S.each(n,function(n,r){var i=m(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&m(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+`With`](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var a=0;function o(t,n,r,i){return function(){var s=this,c=arguments,l=function(){var e,l;if(!(t<a)){if(e=r.apply(s,c),e===n.promise())throw TypeError(`Thenable self-resolution`);l=e&&(typeof e==`object`||typeof e==`function`)&&e.then,m(l)?i?l.call(e,o(a,n,z,i),o(a,n,ce,i)):(a++,l.call(e,o(a,n,z,i),o(a,n,ce,i),o(a,n,z,n.notifyWith))):(r!==z&&(s=void 0,c=[e]),(i||n.resolveWith)(s,c))}},u=i?l:function(){try{l()}catch(e){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(e,u.error),t+1>=a&&(r!==ce&&(s=void 0,c=[e]),n.rejectWith(s,c))}};t?u():(S.Deferred.getErrorHook?u.error=S.Deferred.getErrorHook():S.Deferred.getStackHook&&(u.error=S.Deferred.getStackHook()),e.setTimeout(u))}}return S.Deferred(function(e){n[0][3].add(o(0,e,m(i)?i:z,e.notifyWith)),n[1][3].add(o(0,e,m(t)?t:z)),n[2][3].add(o(0,e,m(r)?r:ce))}).promise()},promise:function(e){return e==null?i:S.extend(e,i)}},a={};return S.each(n,function(e,t){var o=t[2],s=t[5];i[t[1]]=o.add,s&&o.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),o.add(t[3].fire),a[t[0]]=function(){return a[t[0]+`With`](this===a?void 0:this,arguments),this},a[t[0]+`With`]=o.fireWith}),i.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),a=i.call(arguments),o=S.Deferred(),s=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?i.call(arguments):n,--t||o.resolveWith(r,a)}};if(t<=1&&(le(e,o.done(s(n)).resolve,o.reject,!t),o.state()===`pending`||m(a[n]&&a[n].then)))return o.then();for(;n--;)le(a[n],s(n),o.reject);return o.promise()}});var ue=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&ue.test(t.name)&&e.console.warn(`jQuery.Deferred exception: `+t.message,t.stack,n)},S.readyException=function(t){e.setTimeout(function(){throw t})};var de=S.Deferred();S.fn.ready=function(e){return de.then(e).catch(function(e){S.readyException(e)}),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(e===!0?--S.readyWait:S.isReady)||(S.isReady=!0,!(e!==!0&&--S.readyWait>0)&&de.resolveWith(g,[S]))}}),S.ready.then=de.then;function fe(){g.removeEventListener(`DOMContentLoaded`,fe),e.removeEventListener(`load`,fe),S.ready()}g.readyState===`complete`||g.readyState!==`loading`&&!g.documentElement.doScroll?e.setTimeout(S.ready):(g.addEventListener(`DOMContentLoaded`,fe),e.addEventListener(`load`,fe));var pe=function(e,t,n,r,i,a,o){var s=0,c=e.length,l=n==null;if(y(n)===`object`)for(s in i=!0,n)pe(e,t,s,n[s],!0,a,o);else if(r!==void 0&&(i=!0,m(r)||(o=!0),l&&(o?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(S(e),n)})),t))for(;s<c;s++)t(e[s],n,o?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):c?t(e[0],n):a},B=/^-ms-/,me=/-([a-z])/g;function he(e,t){return t.toUpperCase()}function ge(e){return e.replace(B,`ms-`).replace(me,he)}var _e=function(e){return e.nodeType===1||e.nodeType===9||!+e.nodeType};function ve(){this.expando=S.expando+ ve.uid++}ve.uid=1,ve.prototype={cache:function(e){var t=e[this.expando];return t||(t={},_e(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if(typeof t==`string`)i[ge(t)]=n;else for(r in t)i[ge(r)]=t[r];return i},get:function(e,t){return t===void 0?this.cache(e):e[this.expando]&&e[this.expando][ge(t)]},access:function(e,t,n){return t===void 0||t&&typeof t==`string`&&n===void 0?this.get(e,t):(this.set(e,t,n),n===void 0?t:n)},remove:function(e,t){var n,r=e[this.expando];if(r!==void 0){if(t!==void 0)for(Array.isArray(t)?t=t.map(ge):(t=ge(t),t=(t in r)?[t]:t.match(L)||[]),n=t.length;n--;)delete r[t[n]];(t===void 0||S.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return t!==void 0&&!S.isEmptyObject(t)}};var V=new ve,ye=new ve,be=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xe=/[A-Z]/g;function Se(e){return e===`true`?!0:e===`false`?!1:e===`null`?null:e===+e+``?+e:be.test(e)?JSON.parse(e):e}function Ce(e,t,n){var r;if(n===void 0&&e.nodeType===1)if(r=`data-`+t.replace(xe,`-$&`).toLowerCase(),n=e.getAttribute(r),typeof n==`string`){try{n=Se(n)}catch{}ye.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return ye.hasData(e)||V.hasData(e)},data:function(e,t,n){return ye.access(e,t,n)},removeData:function(e,t){ye.remove(e,t)},_data:function(e,t,n){return V.access(e,t,n)},_removeData:function(e,t){V.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,r,i,a=this[0],o=a&&a.attributes;if(e===void 0){if(this.length&&(i=ye.get(a),a.nodeType===1&&!V.get(a,`hasDataAttrs`))){for(n=o.length;n--;)o[n]&&(r=o[n].name,r.indexOf(`data-`)===0&&(r=ge(r.slice(5)),Ce(a,r,i[r])));V.set(a,`hasDataAttrs`,!0)}return i}return typeof e==`object`?this.each(function(){ye.set(this,e)}):pe(this,function(t){var n;if(a&&t===void 0)return n=ye.get(a,e),n!==void 0||(n=Ce(a,e),n!==void 0)?n:void 0;this.each(function(){ye.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){ye.remove(this,e)})}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||`fx`)+`queue`,r=V.get(e,t),n&&(!r||Array.isArray(n)?r=V.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t||=`fx`;var n=S.queue(e,t),r=n.length,i=n.shift(),a=S._queueHooks(e,t);i===`inprogress`&&(i=n.shift(),r--),i&&(t===`fx`&&n.unshift(`inprogress`),delete a.stop,i.call(e,function(){S.dequeue(e,t)},a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+`queueHooks`;return V.get(e,n)||V.access(e,n,{empty:S.Callbacks(`once memory`).add(function(){V.remove(e,[t+`queue`,n])})})}}),S.fn.extend({queue:function(e,t){var n=2;return typeof e!=`string`&&(t=e,e=`fx`,n--),arguments.length<n?S.queue(this[0],e):t===void 0?this:this.each(function(){var n=S.queue(this,e,t);S._queueHooks(this,e),e===`fx`&&n[0]!==`inprogress`&&S.dequeue(this,e)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||`fx`,[])},promise:function(e,t){var n,r=1,i=S.Deferred(),a=this,o=this.length,s=function(){--r||i.resolveWith(a,[a])};for(typeof e!=`string`&&(t=e,e=void 0),e||=`fx`;o--;)n=V.get(a[o],e+`queueHooks`),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var we=`[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)`,Te=RegExp(`^(?:([+-])=|)(`+we+`)([a-z%]*)$`,`i`),Ee=[`Top`,`Right`,`Bottom`,`Left`],De=g.documentElement,Oe=function(e){return S.contains(e.ownerDocument,e)},ke={composed:!0};De.getRootNode&&(Oe=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(ke)===e.ownerDocument});var Ae=function(e,t){return e=t||e,e.style.display===`none`||e.style.display===``&&Oe(e)&&S.css(e,`display`)===`none`};function je(e,t,n,r){var i,a,o=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,``)},c=s(),l=n&&n[3]||(S.cssNumber[t]?``:`px`),u=e.nodeType&&(S.cssNumber[t]||l!==`px`&&+c)&&Te.exec(S.css(e,t));if(u&&u[3]!==l){for(c/=2,l||=u[3],u=+c||1;o--;)S.style(e,t,u+l),(1-a)*(1-(a=s()/c||.5))<=0&&(o=0),u/=a;u*=2,S.style(e,t,u+l),n||=[]}return n&&(u=+u||+c||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=u,r.end=i)),i}var Me={};function Ne(e){var t,n=e.ownerDocument,r=e.nodeName,i=Me[r];return i||(t=n.body.appendChild(n.createElement(r)),i=S.css(t,`display`),t.parentNode.removeChild(t),i===`none`&&(i=`block`),Me[r]=i,i)}function Pe(e,t){for(var n,r,i=[],a=0,o=e.length;a<o;a++)r=e[a],r.style&&(n=r.style.display,t?(n===`none`&&(i[a]=V.get(r,`display`)||null,i[a]||(r.style.display=``)),r.style.display===``&&Ae(r)&&(i[a]=Ne(r))):n!==`none`&&(i[a]=`none`,V.set(r,`display`,n)));for(a=0;a<o;a++)i[a]!=null&&(e[a].style.display=i[a]);return e}S.fn.extend({show:function(){return Pe(this,!0)},hide:function(){return Pe(this)},toggle:function(e){return typeof e==`boolean`?e?this.show():this.hide():this.each(function(){Ae(this)?S(this).show():S(this).hide()})}});var Fe=/^(?:checkbox|radio)$/i,Ie=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Le=/^$|^module$|\/(?:java|ecma)script/i;(function(){var e=g.createDocumentFragment().appendChild(g.createElement(`div`)),t=g.createElement(`input`);t.setAttribute(`type`,`radio`),t.setAttribute(`checked`,`checked`),t.setAttribute(`name`,`t`),e.appendChild(t),p.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML=`<textarea>x</textarea>`,p.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML=`<option></option>`,p.option=!!e.lastChild})();var Re={thead:[1,`<table>`,`</table>`],col:[2,`<table><colgroup>`,`</colgroup></table>`],tr:[2,`<table><tbody>`,`</tbody></table>`],td:[3,`<table><tbody><tr>`,`</tr></tbody></table>`],_default:[0,``,``]};Re.tbody=Re.tfoot=Re.colgroup=Re.caption=Re.thead,Re.th=Re.td,p.option||(Re.optgroup=Re.option=[1,`<select multiple='multiple'>`,`</select>`]);function ze(e,t){var n=e.getElementsByTagName===void 0?e.querySelectorAll===void 0?[]:e.querySelectorAll(t||`*`):e.getElementsByTagName(t||`*`);return t===void 0||t&&w(e,t)?S.merge([e],n):n}function Be(e,t){for(var n=0,r=e.length;n<r;n++)V.set(e[n],`globalEval`,!t||V.get(t[n],`globalEval`))}var Ve=/<|&#?\w+;/;function He(e,t,n,r,i){for(var a,o,s,c,l,u,d=t.createDocumentFragment(),f=[],p=0,m=e.length;p<m;p++)if(a=e[p],a||a===0)if(y(a)===`object`)S.merge(f,a.nodeType?[a]:a);else if(!Ve.test(a))f.push(t.createTextNode(a));else{for(o||=d.appendChild(t.createElement(`div`)),s=(Ie.exec(a)||[``,``])[1].toLowerCase(),c=Re[s]||Re._default,o.innerHTML=c[1]+S.htmlPrefilter(a)+c[2],u=c[0];u--;)o=o.lastChild;S.merge(f,o.childNodes),o=d.firstChild,o.textContent=``}for(d.textContent=``,p=0;a=f[p++];){if(r&&S.inArray(a,r)>-1){i&&i.push(a);continue}if(l=Oe(a),o=ze(d.appendChild(a),`script`),l&&Be(o),n)for(u=0;a=o[u++];)Le.test(a.type||``)&&n.push(a)}return d}var Ue=/^([^.]*)(?:\.(.+)|)/;function We(){return!0}function Ge(){return!1}function Ke(e,t,n,r,i,a){var o,s;if(typeof t==`object`){for(s in typeof n!=`string`&&(r||=n,n=void 0),t)Ke(e,s,n,r,t[s],a);return e}if(r==null&&i==null?(i=n,r=n=void 0):i??(typeof n==`string`?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=Ge;else if(!i)return e;return a===1&&(o=i,i=function(e){return S().off(e),o.apply(this,arguments)},i.guid=o.guid||=S.guid++),e.each(function(){S.event.add(this,t,i,r,n)})}S.event={global:{},add:function(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m,h,g=V.get(e);if(_e(e))for(n.handler&&(a=n,n=a.handler,i=a.selector),i&&S.find.matchesSelector(De,i),n.guid||=S.guid++,(c=g.events)||(c=g.events=Object.create(null)),(o=g.handle)||(o=g.handle=function(t){return S!==void 0&&S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),t=(t||``).match(L)||[``],l=t.length;l--;)s=Ue.exec(t[l])||[],p=h=s[1],m=(s[2]||``).split(`.`).sort(),p&&(d=S.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,d=S.event.special[p]||{},u=S.extend({type:p,origType:h,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:m.join(`.`)},a),(f=c[p])||(f=c[p]=[],f.delegateCount=0,(!d.setup||d.setup.call(e,r,m,o)===!1)&&e.addEventListener&&e.addEventListener(p,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?f.splice(f.delegateCount++,0,u):f.push(u),S.event.global[p]=!0)},remove:function(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m,h,g=V.hasData(e)&&V.get(e);if(!(!g||!(c=g.events))){for(t=(t||``).match(L)||[``],l=t.length;l--;){if(s=Ue.exec(t[l])||[],p=h=s[1],m=(s[2]||``).split(`.`).sort(),!p){for(p in c)S.event.remove(e,p+t[l],n,r,!0);continue}for(d=S.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,f=c[p]||[],s=s[2]&&RegExp(`(^|\\.)`+m.join(`\\.(?:.*\\.|)`)+`(\\.|$)`),o=a=f.length;a--;)u=f[a],(i||h===u.origType)&&(!n||n.guid===u.guid)&&(!s||s.test(u.namespace))&&(!r||r===u.selector||r===`**`&&u.selector)&&(f.splice(a,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));o&&!f.length&&((!d.teardown||d.teardown.call(e,m,g.handle)===!1)&&S.removeEvent(e,p,g.handle),delete c[p])}S.isEmptyObject(c)&&V.remove(e,`handle events`)}},dispatch:function(e){var t,n,r,i,a,o,s=Array(arguments.length),c=S.event.fix(e),l=(V.get(this,`events`)||Object.create(null))[c.type]||[],u=S.event.special[c.type]||{};for(s[0]=c,t=1;t<arguments.length;t++)s[t]=arguments[t];if(c.delegateTarget=this,!(u.preDispatch&&u.preDispatch.call(this,c)===!1)){for(o=S.event.handlers.call(this,c,l),t=0;(i=o[t++])&&!c.isPropagationStopped();)for(c.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!c.isImmediatePropagationStopped();)(!c.rnamespace||a.namespace===!1||c.rnamespace.test(a.namespace))&&(c.handleObj=a,c.data=a.data,r=((S.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,s),r!==void 0&&(c.result=r)===!1&&(c.preventDefault(),c.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,c),c.result}},handlers:function(e,t){var n,r,i,a,o,s=[],c=t.delegateCount,l=e.target;if(c&&l.nodeType&&!(e.type===`click`&&e.button>=1)){for(;l!==this;l=l.parentNode||this)if(l.nodeType===1&&!(e.type===`click`&&l.disabled===!0)){for(a=[],o={},n=0;n<c;n++)r=t[n],i=r.selector+` `,o[i]===void 0&&(o[i]=r.needsContext?S(i,this).index(l)>-1:S.find(i,this,null,[l]).length),o[i]&&a.push(r);a.length&&s.push({elem:l,handlers:a})}}return l=this,c<t.length&&s.push({elem:l,handlers:t.slice(c)}),s},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Fe.test(t.type)&&t.click&&w(t,`input`)&&qe(t,`click`,!0),!1},trigger:function(e){var t=this||e;return Fe.test(t.type)&&t.click&&w(t,`input`)&&qe(t,`click`),!0},_default:function(e){var t=e.target;return Fe.test(t.type)&&t.click&&w(t,`input`)&&V.get(t,`click`)||w(t,`a`)}},beforeunload:{postDispatch:function(e){e.result!==void 0&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}};function qe(e,t,n){if(!n){V.get(e,t)===void 0&&S.event.add(e,t,We);return}V.set(e,t,!1),S.event.add(e,t,{namespace:!1,handler:function(e){var n,r=V.get(this,t);if(e.isTrigger&1&&this[t]){if(r)(S.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=i.call(arguments),V.set(this,t,r),this[t](),n=V.get(this,t),V.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(V.set(this,t,S.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=We)}})}S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.defaultPrevented===void 0&&e.returnValue===!1?We:Ge,this.target=e.target&&e.target.nodeType===3?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:Ge,isPropagationStopped:Ge,isImmediatePropagationStopped:Ge,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=We,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=We,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=We,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},S.event.addProp),S.each({focus:`focusin`,blur:`focusout`},function(e,t){function n(e){if(g.documentMode){var n=V.get(this,`handle`),r=S.event.fix(e);r.type=e.type===`focusin`?`focus`:`blur`,r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else S.event.simulate(t,e.target,S.event.fix(e))}S.event.special[e]={setup:function(){var r;if(qe(this,e,!0),g.documentMode)r=V.get(this,t),r||this.addEventListener(t,n),V.set(this,t,(r||0)+1);else return!1},trigger:function(){return qe(this,e),!0},teardown:function(){var e;if(g.documentMode)e=V.get(this,t)-1,e?V.set(this,t,e):(this.removeEventListener(t,n),V.remove(this,t));else return!1},_default:function(t){return V.get(t.target,e)},delegateType:t},S.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=g.documentMode?this:r,a=V.get(i,t);a||(g.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),V.set(i,t,(a||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=g.documentMode?this:r,a=V.get(i,t)-1;a?V.set(i,t,a):(g.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),V.remove(i,t))}}}),S.each({mouseenter:`mouseover`,mouseleave:`mouseout`,pointerenter:`pointerover`,pointerleave:`pointerout`},function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return(!i||i!==r&&!S.contains(r,i))&&(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}}),S.fn.extend({on:function(e,t,n,r){return Ke(this,e,t,n,r)},one:function(e,t,n,r){return Ke(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+`.`+r.namespace:r.origType,r.selector,r.handler),this;if(typeof e==`object`){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||typeof t==`function`)&&(n=t,t=void 0),n===!1&&(n=Ge),this.each(function(){S.event.remove(this,e,n,t)})}});var Je=/<script|<style|<link/i,Ye=/checked\s*(?:[^=]|=\s*.checked.)/i,Xe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ze(e,t){return w(e,`table`)&&w(t.nodeType===11?t.firstChild:t,`tr`)&&S(e).children(`tbody`)[0]||e}function Qe(e){return e.type=(e.getAttribute(`type`)!==null)+`/`+e.type,e}function $e(e){return(e.type||``).slice(0,5)===`true/`?e.type=e.type.slice(5):e.removeAttribute(`type`),e}function et(e,t){var n,r,i,a,o,s,c;if(t.nodeType===1){if(V.hasData(e)&&(a=V.get(e),c=a.events,c))for(i in V.remove(t,`handle events`),c)for(n=0,r=c[i].length;n<r;n++)S.event.add(t,i,c[i][n]);ye.hasData(e)&&(o=ye.access(e),s=S.extend({},o),ye.set(t,s))}}function tt(e,t){var n=t.nodeName.toLowerCase();n===`input`&&Fe.test(e.type)?t.checked=e.checked:(n===`input`||n===`textarea`)&&(t.defaultValue=e.defaultValue)}function nt(e,t,n,r){t=a(t);var i,o,s,c,l,u,d=0,f=e.length,h=f-1,g=t[0],_=m(g);if(_||f>1&&typeof g==`string`&&!p.checkClone&&Ye.test(g))return e.each(function(i){var a=e.eq(i);_&&(t[0]=g.call(this,i,a.html())),nt(a,t,n,r)});if(f&&(i=He(t,e[0].ownerDocument,!1,e,r),o=i.firstChild,i.childNodes.length===1&&(i=o),o||r)){for(s=S.map(ze(i,`script`),Qe),c=s.length;d<f;d++)l=i,d!==h&&(l=S.clone(l,!0,!0),c&&S.merge(s,ze(l,`script`))),n.call(e[d],l,d);if(c)for(u=s[s.length-1].ownerDocument,S.map(s,$e),d=0;d<c;d++)l=s[d],Le.test(l.type||``)&&!V.access(l,`globalEval`)&&S.contains(u,l)&&(l.src&&(l.type||``).toLowerCase()!==`module`?S._evalUrl&&!l.noModule&&S._evalUrl(l.src,{nonce:l.nonce||l.getAttribute(`nonce`)},u):v(l.textContent.replace(Xe,``),l,u))}return e}function rt(e,t,n){for(var r,i=t?S.filter(t,e):e,a=0;(r=i[a])!=null;a++)!n&&r.nodeType===1&&S.cleanData(ze(r)),r.parentNode&&(n&&Oe(r)&&Be(ze(r,`script`)),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,a,o,s=e.cloneNode(!0),c=Oe(e);if(!p.noCloneChecked&&(e.nodeType===1||e.nodeType===11)&&!S.isXMLDoc(e))for(o=ze(s),a=ze(e),r=0,i=a.length;r<i;r++)tt(a[r],o[r]);if(t)if(n)for(a||=ze(e),o||=ze(s),r=0,i=a.length;r<i;r++)et(a[r],o[r]);else et(e,s);return o=ze(s,`script`),o.length>0&&Be(o,!c&&ze(e,`script`)),s},cleanData:function(e){for(var t,n,r,i=S.event.special,a=0;(n=e[a])!==void 0;a++)if(_e(n)){if(t=n[V.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[V.expando]=void 0}n[ye.expando]&&(n[ye.expando]=void 0)}}}),S.fn.extend({detach:function(e){return rt(this,e,!0)},remove:function(e){return rt(this,e)},text:function(e){return pe(this,function(e){return e===void 0?S.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return nt(this,arguments,function(e){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&Ze(this,e).appendChild(e)})},prepend:function(){return nt(this,arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Ze(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return nt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return nt(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;(e=this[t])!=null;t++)e.nodeType===1&&(S.cleanData(ze(e,!1)),e.textContent=``);return this},clone:function(e,t){return e??=!1,t??=e,this.map(function(){return S.clone(this,e,t)})},html:function(e){return pe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(e===void 0&&t.nodeType===1)return t.innerHTML;if(typeof e==`string`&&!Je.test(e)&&!Re[(Ie.exec(e)||[``,``])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},t.nodeType===1&&(S.cleanData(ze(t,!1)),t.innerHTML=e);t=0}catch{}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return nt(this,arguments,function(t){var n=this.parentNode;S.inArray(this,e)<0&&(S.cleanData(ze(this)),n&&n.replaceChild(t,this))},e)}}),S.each({appendTo:`append`,prependTo:`prepend`,insertBefore:`before`,insertAfter:`after`,replaceAll:`replaceWith`},function(e,t){S.fn[e]=function(e){for(var n,r=[],i=S(e),a=i.length-1,s=0;s<=a;s++)n=s===a?this:this.clone(!0),S(i[s])[t](n),o.apply(r,n.get());return this.pushStack(r)}});var it=RegExp(`^(`+we+`)(?!px)[a-z%]+$`,`i`),at=/^--/,ot=function(t){var n=t.ownerDocument.defaultView;return(!n||!n.opener)&&(n=e),n.getComputedStyle(t)},st=function(e,t,n){var r,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=a[i];return r},ct=new RegExp(Ee.join(`|`),`i`);(function(){function t(){if(u){l.style.cssText=`position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0`,u.style.cssText=`position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%`,De.appendChild(l).appendChild(u);var t=e.getComputedStyle(u);r=t.top!==`1%`,c=n(t.marginLeft)===12,u.style.right=`60%`,o=n(t.right)===36,i=n(t.width)===36,u.style.position=`absolute`,a=n(u.offsetWidth/3)===12,De.removeChild(l),u=null}}function n(e){return Math.round(parseFloat(e))}var r,i,a,o,s,c,l=g.createElement(`div`),u=g.createElement(`div`);u.style&&(u.style.backgroundClip=`content-box`,u.cloneNode(!0).style.backgroundClip=``,p.clearCloneStyle=u.style.backgroundClip===`content-box`,S.extend(p,{boxSizingReliable:function(){return t(),i},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),r},reliableMarginLeft:function(){return t(),c},scrollboxSize:function(){return t(),a},reliableTrDimensions:function(){var t,n,r,i;return s??(t=g.createElement(`table`),n=g.createElement(`tr`),r=g.createElement(`div`),t.style.cssText=`position:absolute;left:-11111px;border-collapse:separate`,n.style.cssText=`box-sizing:content-box;border:1px solid`,n.style.height=`1px`,r.style.height=`9px`,r.style.display=`block`,De.appendChild(t).appendChild(n).appendChild(r),i=e.getComputedStyle(n),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===n.offsetHeight,De.removeChild(t)),s}}))})();function lt(e,t,n){var r,i,a,o,s=at.test(t),c=e.style;return n||=ot(e),n&&(o=n.getPropertyValue(t)||n[t],s&&o&&(o=o.replace(k,`$1`)||void 0),o===``&&!Oe(e)&&(o=S.style(e,t)),!p.pixelBoxStyles()&&it.test(o)&&ct.test(t)&&(r=c.width,i=c.minWidth,a=c.maxWidth,c.minWidth=c.maxWidth=c.width=o,o=n.width,c.width=r,c.minWidth=i,c.maxWidth=a)),o===void 0?o:o+``}function ut(e,t){return{get:function(){if(e()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}var dt=[`Webkit`,`Moz`,`ms`],ft=g.createElement(`div`).style,pt={};function mt(e){for(var t=e[0].toUpperCase()+e.slice(1),n=dt.length;n--;)if(e=dt[n]+t,e in ft)return e}function ht(e){return S.cssProps[e]||pt[e]||(e in ft?e:pt[e]=mt(e)||e)}var gt=/^(none|table(?!-c[ea]).+)/,_t={position:`absolute`,visibility:`hidden`,display:`block`},vt={letterSpacing:`0`,fontWeight:`400`};function yt(e,t,n){var r=Te.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||`px`):t}function bt(e,t,n,r,i,a){var o=t===`width`?1:0,s=0,c=0,l=0;if(n===(r?`border`:`content`))return 0;for(;o<4;o+=2)n===`margin`&&(l+=S.css(e,n+Ee[o],!0,i)),r?(n===`content`&&(c-=S.css(e,`padding`+Ee[o],!0,i)),n!==`margin`&&(c-=S.css(e,`border`+Ee[o]+`Width`,!0,i))):(c+=S.css(e,`padding`+Ee[o],!0,i),n===`padding`?s+=S.css(e,`border`+Ee[o]+`Width`,!0,i):c+=S.css(e,`border`+Ee[o]+`Width`,!0,i));return!r&&a>=0&&(c+=Math.max(0,Math.ceil(e[`offset`+t[0].toUpperCase()+t.slice(1)]-a-c-s-.5))||0),c+l}function xt(e,t,n){var r=ot(e),i=(!p.boxSizingReliable()||n)&&S.css(e,`boxSizing`,!1,r)===`border-box`,a=i,o=lt(e,t,r),s=`offset`+t[0].toUpperCase()+t.slice(1);if(it.test(o)){if(!n)return o;o=`auto`}return(!p.boxSizingReliable()&&i||!p.reliableTrDimensions()&&w(e,`tr`)||o===`auto`||!parseFloat(o)&&S.css(e,`display`,!1,r)===`inline`)&&e.getClientRects().length&&(i=S.css(e,`boxSizing`,!1,r)===`border-box`,a=s in e,a&&(o=e[s])),o=parseFloat(o)||0,o+bt(e,t,n||(i?`border`:`content`),a,r,o)+`px`}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=lt(e,`opacity`);return n===``?`1`:n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var i,a,o,s=ge(t),c=at.test(t),l=e.style;if(c||(t=ht(s)),o=S.cssHooks[t]||S.cssHooks[s],n!==void 0){if(a=typeof n,a===`string`&&(i=Te.exec(n))&&i[1]&&(n=je(e,t,i),a=`number`),n==null||n!==n)return;a===`number`&&!c&&(n+=i&&i[3]||(S.cssNumber[s]?``:`px`)),!p.clearCloneStyle&&n===``&&t.indexOf(`background`)===0&&(l[t]=`inherit`),(!o||!(`set`in o)||(n=o.set(e,n,r))!==void 0)&&(c?l.setProperty(t,n):l[t]=n)}else return o&&`get`in o&&(i=o.get(e,!1,r))!==void 0?i:l[t]}},css:function(e,t,n,r){var i,a,o,s=ge(t);return at.test(t)||(t=ht(s)),o=S.cssHooks[t]||S.cssHooks[s],o&&`get`in o&&(i=o.get(e,!0,n)),i===void 0&&(i=lt(e,t,r)),i===`normal`&&t in vt&&(i=vt[t]),n===``||n?(a=parseFloat(i),n===!0||isFinite(a)?a||0:i):i}}),S.each([`height`,`width`],function(e,t){S.cssHooks[t]={get:function(e,n,r){if(n)return gt.test(S.css(e,`display`))&&(!e.getClientRects().length||!e.getBoundingClientRect().width)?st(e,_t,function(){return xt(e,t,r)}):xt(e,t,r)},set:function(e,n,r){var i,a=ot(e),o=!p.scrollboxSize()&&a.position===`absolute`,s=(o||r)&&S.css(e,`boxSizing`,!1,a)===`border-box`,c=r?bt(e,t,r,s,a):0;return s&&o&&(c-=Math.ceil(e[`offset`+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-bt(e,t,`border`,!1,a)-.5)),c&&(i=Te.exec(n))&&(i[3]||`px`)!==`px`&&(e.style[t]=n,n=S.css(e,t)),yt(e,n,c)}}}),S.cssHooks.marginLeft=ut(p.reliableMarginLeft,function(e,t){if(t)return(parseFloat(lt(e,`marginLeft`))||e.getBoundingClientRect().left-st(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+`px`}),S.each({margin:``,padding:``,border:`Width`},function(e,t){S.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a=typeof n==`string`?n.split(` `):[n];r<4;r++)i[e+Ee[r]+t]=a[r]||a[r-2]||a[0];return i}},e!==`margin`&&(S.cssHooks[e+t].set=yt)}),S.fn.extend({css:function(e,t){return pe(this,function(e,t,n){var r,i,a={},o=0;if(Array.isArray(t)){for(r=ot(e),i=t.length;o<i;o++)a[t[o]]=S.css(e,t[o],!1,r);return a}return n===void 0?S.css(e,t):S.style(e,t,n)},e,t,arguments.length>1)}});function St(e,t,n,r,i){return new St.prototype.init(e,t,n,r,i)}S.Tween=St,St.prototype={constructor:St,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(S.cssNumber[n]?``:`px`)},cur:function(){var e=St.propHooks[this.prop];return e&&e.get?e.get(this):St.propHooks._default.get(this)},run:function(e){var t,n=St.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):St.propHooks._default.set(this),this}},St.prototype.init.prototype=St.prototype,St.propHooks={_default:{get:function(e){var t;return e.elem.nodeType!==1||e.elem[e.prop]!=null&&e.elem.style[e.prop]==null?e.elem[e.prop]:(t=S.css(e.elem,e.prop,``),!t||t===`auto`?0:t)},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):e.elem.nodeType===1&&(S.cssHooks[e.prop]||e.elem.style[ht(e.prop)]!=null)?S.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},St.propHooks.scrollTop=St.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2},_default:`swing`},S.fx=St.prototype.init,S.fx.step={};var Ct,wt,Tt=/^(?:toggle|show|hide)$/,Et=/queueHooks$/;function Dt(){wt&&(g.hidden===!1&&e.requestAnimationFrame?e.requestAnimationFrame(Dt):e.setTimeout(Dt,S.fx.interval),S.fx.tick())}function Ot(){return e.setTimeout(function(){Ct=void 0}),Ct=Date.now()}function kt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)n=Ee[r],i[`margin`+n]=i[`padding`+n]=e;return t&&(i.opacity=i.width=e),i}function At(e,t,n){for(var r,i=(Nt.tweeners[t]||[]).concat(Nt.tweeners[`*`]),a=0,o=i.length;a<o;a++)if(r=i[a].call(n,t,e))return r}function jt(e,t,n){var r,i,a,o,s,c,l,u,d=`width`in t||`height`in t,f=this,p={},m=e.style,h=e.nodeType&&Ae(e),g=V.get(e,`fxshow`);for(r in n.queue||(o=S._queueHooks(e,`fx`),o.unqueued??(o.unqueued=0,s=o.empty.fire,o.empty.fire=function(){o.unqueued||s()}),o.unqueued++,f.always(function(){f.always(function(){o.unqueued--,S.queue(e,`fx`).length||o.empty.fire()})})),t)if(i=t[r],Tt.test(i)){if(delete t[r],a||=i===`toggle`,i===(h?`hide`:`show`))if(i===`show`&&g&&g[r]!==void 0)h=!0;else continue;p[r]=g&&g[r]||S.style(e,r)}if(c=!S.isEmptyObject(t),!(!c&&S.isEmptyObject(p)))for(r in d&&e.nodeType===1&&(n.overflow=[m.overflow,m.overflowX,m.overflowY],l=g&&g.display,l??=V.get(e,`display`),u=S.css(e,`display`),u===`none`&&(l?u=l:(Pe([e],!0),l=e.style.display||l,u=S.css(e,`display`),Pe([e]))),(u===`inline`||u===`inline-block`&&l!=null)&&S.css(e,`float`)===`none`&&(c||(f.done(function(){m.display=l}),l??=(u=m.display,u===`none`?``:u)),m.display=`inline-block`)),n.overflow&&(m.overflow=`hidden`,f.always(function(){m.overflow=n.overflow[0],m.overflowX=n.overflow[1],m.overflowY=n.overflow[2]})),c=!1,p)c||(g?`hidden`in g&&(h=g.hidden):g=V.access(e,`fxshow`,{display:l}),a&&(g.hidden=!h),h&&Pe([e],!0),f.done(function(){for(r in h||Pe([e]),V.remove(e,`fxshow`),p)S.style(e,r,p[r])})),c=At(h?g[r]:0,r,f),r in g||(g[r]=c.start,h&&(c.end=c.start,c.start=0))}function Mt(e,t){var n,r,i,a,o;for(n in e)if(r=ge(n),i=t[r],a=e[n],Array.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),o=S.cssHooks[r],o&&`expand`in o)for(n in a=o.expand(a),delete e[r],a)n in e||(e[n]=a[n],t[n]=i);else t[r]=i}function Nt(e,t,n){var r,i,a=0,o=Nt.prefilters.length,s=S.Deferred().always(function(){delete c.elem}),c=function(){if(i)return!1;for(var t=Ct||Ot(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),a=0,o=l.tweens.length;a<o;a++)l.tweens[a].run(r);return s.notifyWith(e,[l,r,n]),r<1&&o?n:(o||s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ct||Ot(),duration:n.duration,tweens:[],createTween:function(t,n){var r=S.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),u=l.props;for(Mt(u,l.opts.specialEasing);a<o;a++)if(r=Nt.prefilters[a].call(l,e,u,l.opts),r)return m(r.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return S.map(u,At,l),m(l.opts.start)&&l.opts.start.call(e,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),S.fx.timer(S.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(Nt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return je(n.elem,e,Te.exec(t),n),n}]},tweener:function(e,t){m(e)?(t=e,e=[`*`]):e=e.match(L);for(var n,r=0,i=e.length;r<i;r++)n=e[r],Nt.tweeners[n]=Nt.tweeners[n]||[],Nt.tweeners[n].unshift(t)},prefilters:[jt],prefilter:function(e,t){t?Nt.prefilters.unshift(e):Nt.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&typeof e==`object`?S.extend({},e):{complete:n||!n&&t||m(e)&&e,duration:e,easing:n&&t||t&&!m(t)&&t};return S.fx.off?r.duration=0:typeof r.duration!=`number`&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),(r.queue==null||r.queue===!0)&&(r.queue=`fx`),r.old=r.complete,r.complete=function(){m(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Ae).css(`opacity`,0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=S.isEmptyObject(e),a=S.speed(t,n,r),o=function(){var t=Nt(this,S.extend({},e),a);(i||V.get(this,`finish`))&&t.stop(!0)};return o.finish=o,i||a.queue===!1?this.each(o):this.queue(a.queue,o)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return typeof e!=`string`&&(n=t,t=e,e=void 0),t&&this.queue(e||`fx`,[]),this.each(function(){var t=!0,i=e!=null&&e+`queueHooks`,a=S.timers,o=V.get(this);if(i)o[i]&&o[i].stop&&r(o[i]);else for(i in o)o[i]&&o[i].stop&&Et.test(i)&&r(o[i]);for(i=a.length;i--;)a[i].elem===this&&(e==null||a[i].queue===e)&&(a[i].anim.stop(n),t=!1,a.splice(i,1));(t||!n)&&S.dequeue(this,e)})},finish:function(e){return e!==!1&&(e||=`fx`),this.each(function(){var t,n=V.get(this),r=n[e+`queue`],i=n[e+`queueHooks`],a=S.timers,o=r?r.length:0;for(n.finish=!0,S.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<o;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),S.each([`toggle`,`show`,`hide`],function(e,t){var n=S.fn[t];S.fn[t]=function(e,r,i){return e==null||typeof e==`boolean`?n.apply(this,arguments):this.animate(kt(t,!0),e,r,i)}}),S.each({slideDown:kt(`show`),slideUp:kt(`hide`),slideToggle:kt(`toggle`),fadeIn:{opacity:`show`},fadeOut:{opacity:`hide`},fadeToggle:{opacity:`toggle`}},function(e,t){S.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(Ct=Date.now();t<n.length;t++)e=n[t],!e()&&n[t]===e&&n.splice(t--,1);n.length||S.fx.stop(),Ct=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){wt||(wt=!0,Dt())},S.fx.stop=function(){wt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(t,n){return t=S.fx&&S.fx.speeds[t]||t,n||=`fx`,this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},(function(){var e=g.createElement(`input`),t=g.createElement(`select`).appendChild(g.createElement(`option`));e.type=`checkbox`,p.checkOn=e.value!==``,p.optSelected=t.selected,e=g.createElement(`input`),e.value=`t`,e.type=`radio`,p.radioValue=e.value===`t`})();var Pt,Ft=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return pe(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(!(a===3||a===8||a===2)){if(e.getAttribute===void 0)return S.prop(e,t,n);if((a!==1||!S.isXMLDoc(e))&&(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?Pt:void 0)),n!==void 0){if(n===null){S.removeAttr(e,t);return}return i&&`set`in i&&(r=i.set(e,n,t))!==void 0?r:(e.setAttribute(t,n+``),n)}return i&&`get`in i&&(r=i.get(e,t))!==null?r:(r=S.find.attr(e,t),r??void 0)}},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&t===`radio`&&w(e,`input`)){var n=e.value;return e.setAttribute(`type`,t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(L);if(i&&e.nodeType===1)for(;n=i[r++];)e.removeAttribute(n)}}),Pt={set:function(e,t,n){return t===!1?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var n=Ft[t]||S.find.attr;Ft[t]=function(e,t,r){var i,a,o=t.toLowerCase();return r||(a=Ft[o],Ft[o]=i,i=n(e,t,r)==null?null:o,Ft[o]=a),i}});var It=/^(?:input|select|textarea|button)$/i,Lt=/^(?:a|area)$/i;S.fn.extend({prop:function(e,t){return pe(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[S.propFix[e]||e]})}}),S.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(!(a===3||a===8||a===2))return(a!==1||!S.isXMLDoc(e))&&(t=S.propFix[t]||t,i=S.propHooks[t]),n===void 0?i&&`get`in i&&(r=i.get(e,t))!==null?r:e[t]:i&&`set`in i&&(r=i.set(e,n,t))!==void 0?r:e[t]=n},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,`tabindex`);return t?parseInt(t,10):It.test(e.nodeName)||Lt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:`htmlFor`,class:`className`}}),p.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each([`tabIndex`,`readOnly`,`maxLength`,`cellSpacing`,`cellPadding`,`rowSpan`,`colSpan`,`useMap`,`frameBorder`,`contentEditable`],function(){S.propFix[this.toLowerCase()]=this});function Rt(e){return(e.match(L)||[]).join(` `)}function zt(e){return e.getAttribute&&e.getAttribute(`class`)||``}function Bt(e){return Array.isArray(e)?e:typeof e==`string`&&e.match(L)||[]}S.fn.extend({addClass:function(e){var t,n,r,i,a,o;return m(e)?this.each(function(t){S(this).addClass(e.call(this,t,zt(this)))}):(t=Bt(e),t.length?this.each(function(){if(r=zt(this),n=this.nodeType===1&&` `+Rt(r)+` `,n){for(a=0;a<t.length;a++)i=t[a],n.indexOf(` `+i+` `)<0&&(n+=i+` `);o=Rt(n),r!==o&&this.setAttribute(`class`,o)}}):this)},removeClass:function(e){var t,n,r,i,a,o;return m(e)?this.each(function(t){S(this).removeClass(e.call(this,t,zt(this)))}):arguments.length?(t=Bt(e),t.length?this.each(function(){if(r=zt(this),n=this.nodeType===1&&` `+Rt(r)+` `,n){for(a=0;a<t.length;a++)for(i=t[a];n.indexOf(` `+i+` `)>-1;)n=n.replace(` `+i+` `,` `);o=Rt(n),r!==o&&this.setAttribute(`class`,o)}}):this):this.attr(`class`,``)},toggleClass:function(e,t){var n,r,i,a,o=typeof e,s=o===`string`||Array.isArray(e);return m(e)?this.each(function(n){S(this).toggleClass(e.call(this,n,zt(this),t),t)}):typeof t==`boolean`&&s?t?this.addClass(e):this.removeClass(e):(n=Bt(e),this.each(function(){if(s)for(a=S(this),i=0;i<n.length;i++)r=n[i],a.hasClass(r)?a.removeClass(r):a.addClass(r);else (e===void 0||o===`boolean`)&&(r=zt(this),r&&V.set(this,`__className__`,r),this.setAttribute&&this.setAttribute(`class`,r||e===!1?``:V.get(this,`__className__`)||``))}))},hasClass:function(e){var t,n,r=0;for(t=` `+e+` `;n=this[r++];)if(n.nodeType===1&&(` `+Rt(zt(n))+` `).indexOf(t)>-1)return!0;return!1}});var Vt=/\r/g;S.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=m(e),this.each(function(n){var i;this.nodeType===1&&(i=r?e.call(this,n,S(this).val()):e,i==null?i=``:typeof i==`number`?i+=``:Array.isArray(i)&&(i=S.map(i,function(e){return e==null?``:e+``})),t=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()],(!t||!(`set`in t)||t.set(this,i,`value`)===void 0)&&(this.value=i))})):i?(t=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()],t&&`get`in t&&(n=t.get(i,`value`))!==void 0?n:(n=i.value,typeof n==`string`?n.replace(Vt,``):n??``)):void 0}}),S.extend({valHooks:{option:{get:function(e){return S.find.attr(e,`value`)??Rt(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,a=e.selectedIndex,o=e.type===`select-one`,s=o?null:[],c=o?a+1:i.length;for(r=a<0?c:o?a:0;r<c;r++)if(n=i[r],(n.selected||r===a)&&!n.disabled&&(!n.parentNode.disabled||!w(n.parentNode,`optgroup`))){if(t=S(n).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=S.makeArray(t),o=i.length;o--;)r=i[o],(r.selected=S.inArray(S.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),S.each([`radio`,`checkbox`],function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=S.inArray(S(e).val(),t)>-1}},p.checkOn||(S.valHooks[this].get=function(e){return e.getAttribute(`value`)===null?`on`:e.value})});var Ht=e.location,Ut={guid:Date.now()},Wt=/\?/;S.parseXML=function(t){var n,r;if(!t||typeof t!=`string`)return null;try{n=new e.DOMParser().parseFromString(t,`text/xml`)}catch{}return r=n&&n.getElementsByTagName(`parsererror`)[0],(!n||r)&&S.error(`Invalid XML: `+(r?S.map(r.childNodes,function(e){return e.textContent}).join(`
|
|
168
|
+
`):t)),n};var Gt=/^(?:focusinfocus|focusoutblur)$/,Kt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(t,n,r,i){var a,o,s,c,l,d,f,p,_=[r||g],v=u.call(t,`type`)?t.type:t,y=u.call(t,`namespace`)?t.namespace.split(`.`):[];if(o=p=s=r||=g,!(r.nodeType===3||r.nodeType===8)&&!Gt.test(v+S.event.triggered)&&(v.indexOf(`.`)>-1&&(y=v.split(`.`),v=y.shift(),y.sort()),l=v.indexOf(`:`)<0&&`on`+v,t=t[S.expando]?t:new S.Event(v,typeof t==`object`&&t),t.isTrigger=i?2:3,t.namespace=y.join(`.`),t.rnamespace=t.namespace?RegExp(`(^|\\.)`+y.join(`\\.(?:.*\\.|)`)+`(\\.|$)`):null,t.result=void 0,t.target||=r,n=n==null?[t]:S.makeArray(n,[t]),f=S.event.special[v]||{},!(!i&&f.trigger&&f.trigger.apply(r,n)===!1))){if(!i&&!f.noBubble&&!h(r)){for(c=f.delegateType||v,Gt.test(c+v)||(o=o.parentNode);o;o=o.parentNode)_.push(o),s=o;s===(r.ownerDocument||g)&&_.push(s.defaultView||s.parentWindow||e)}for(a=0;(o=_[a++])&&!t.isPropagationStopped();)p=o,t.type=a>1?c:f.bindType||v,d=(V.get(o,`events`)||Object.create(null))[t.type]&&V.get(o,`handle`),d&&d.apply(o,n),d=l&&o[l],d&&d.apply&&_e(o)&&(t.result=d.apply(o,n),t.result===!1&&t.preventDefault());return t.type=v,!i&&!t.isDefaultPrevented()&&(!f._default||f._default.apply(_.pop(),n)===!1)&&_e(r)&&l&&m(r[v])&&!h(r)&&(s=r[l],s&&(r[l]=null),S.event.triggered=v,t.isPropagationStopped()&&p.addEventListener(v,Kt),r[v](),t.isPropagationStopped()&&p.removeEventListener(v,Kt),S.event.triggered=void 0,s&&(r[l]=s)),t.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Jt=/\r?\n/g,Yt=/^(?:submit|button|image|reset|file)$/i,Xt=/^(?:input|select|textarea|keygen)/i;function Zt(e,t,n,r){var i;if(Array.isArray(t))S.each(t,function(t,i){n||qt.test(e)?r(e,i):Zt(e+`[`+(typeof i==`object`&&i?t:``)+`]`,i,n,r)});else if(!n&&y(t)===`object`)for(i in t)Zt(e+`[`+i+`]`,t[i],n,r);else r(e,t)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+`=`+encodeURIComponent(n??``)};if(e==null)return``;if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){i(this.name,this.value)});else for(n in e)Zt(n,e[n],t,i);return r.join(`&`)},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,`elements`);return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(`:disabled`)&&Xt.test(this.nodeName)&&!Yt.test(e)&&(this.checked||!Fe.test(e))}).map(function(e,t){var n=S(this).val();return n==null?null:Array.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Jt,`\r
|
|
169
|
+
`)}}):{name:t.name,value:n.replace(Jt,`\r
|
|
170
|
+
`)}}).get()}});var Qt=/%20/g,$t=/#.*$/,en=/([?&])_=[^&]*/,tn=/^(.*?):[ \t]*([^\r\n]*)$/gm,nn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rn=/^(?:GET|HEAD)$/,an=/^\/\//,on={},sn={},cn=`*/*`,ln=g.createElement(`a`);ln.href=Ht.href;function un(e){return function(t,n){typeof t!=`string`&&(n=t,t=`*`);var r,i=0,a=t.toLowerCase().match(L)||[];if(m(n))for(;r=a[i++];)r[0]===`+`?(r=r.slice(1)||`*`,(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function dn(e,t,n,r){var i={},a=e===sn;function o(s){var c;return i[s]=!0,S.each(e[s]||[],function(e,s){var l=s(t,n,r);if(typeof l==`string`&&!a&&!i[l])return t.dataTypes.unshift(l),o(l),!1;if(a)return!(c=l)}),c}return o(t.dataTypes[0])||!i[`*`]&&o(`*`)}function fn(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)t[n]!==void 0&&((i[n]?e:r||={})[n]=t[n]);return r&&S.extend(!0,e,r),e}function pn(e,t,n){for(var r,i,a,o,s=e.contents,c=e.dataTypes;c[0]===`*`;)c.shift(),r===void 0&&(r=e.mimeType||t.getResponseHeader(`Content-Type`));if(r){for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}}if(c[0]in n)a=c[0];else{for(i in n){if(!c[0]||e.converters[i+` `+c[0]]){a=i;break}o||=i}a||=o}if(a)return a!==c[0]&&c.unshift(a),n[a]}function mn(e,t,n,r){var i,a,o,s,c,l={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)l[o.toLowerCase()]=e.converters[o];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=a,a=u.shift(),a){if(a===`*`)a=c;else if(c!==`*`&&c!==a){if(o=l[c+` `+a]||l[`* `+a],!o){for(i in l)if(s=i.split(` `),s[1]===a&&(o=l[c+` `+s[0]]||l[`* `+s[0]],o)){o===!0?o=l[i]:l[i]!==!0&&(a=s[0],u.unshift(s[1]));break}}if(o!==!0)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:`parsererror`,error:o?e:`No conversion from `+c+` to `+a}}}}return{state:`success`,data:t}}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ht.href,type:`GET`,isLocal:nn.test(Ht.protocol),global:!0,processData:!0,async:!0,contentType:`application/x-www-form-urlencoded; charset=UTF-8`,accepts:{"*":cn,text:`text/plain`,html:`text/html`,xml:`application/xml, text/xml`,json:`application/json, text/javascript`},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:`responseXML`,text:`responseText`,json:`responseJSON`},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?fn(fn(e,S.ajaxSettings),t):fn(S.ajaxSettings,e)},ajaxPrefilter:un(on),ajaxTransport:un(sn),ajax:function(t,n){typeof t==`object`&&(n=t,t=void 0),n||={};var r,i,a,o,s,c,l,u,d,f,p=S.ajaxSetup({},n),m=p.context||p,h=p.context&&(m.nodeType||m.jquery)?S(m):S.event,_=S.Deferred(),v=S.Callbacks(`once memory`),y=p.statusCode||{},b={},x={},C=`canceled`,w={readyState:0,getResponseHeader:function(e){var t;if(l){if(!o)for(o={};t=tn.exec(a);)o[t[1].toLowerCase()+` `]=(o[t[1].toLowerCase()+` `]||[]).concat(t[2]);t=o[e.toLowerCase()+` `]}return t==null?null:t.join(`, `)},getAllResponseHeaders:function(){return l?a:null},setRequestHeader:function(e,t){return l??(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return l??(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)w.always(e[w.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),T(0,t),this}};if(_.promise(w),p.url=((t||p.url||Ht.href)+``).replace(an,Ht.protocol+`//`),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||`*`).toLowerCase().match(L)||[``],p.crossDomain==null){c=g.createElement(`a`);try{c.href=p.url,c.href=c.href,p.crossDomain=ln.protocol+`//`+ln.host!=c.protocol+`//`+c.host}catch{p.crossDomain=!0}}if(p.data&&p.processData&&typeof p.data!=`string`&&(p.data=S.param(p.data,p.traditional)),dn(on,p,n,w),l)return w;for(d in u=S.event&&p.global,u&&S.active++===0&&S.event.trigger(`ajaxStart`),p.type=p.type.toUpperCase(),p.hasContent=!rn.test(p.type),i=p.url.replace($t,``),p.hasContent?p.data&&p.processData&&(p.contentType||``).indexOf(`application/x-www-form-urlencoded`)===0&&(p.data=p.data.replace(Qt,`+`)):(f=p.url.slice(i.length),p.data&&(p.processData||typeof p.data==`string`)&&(i+=(Wt.test(i)?`&`:`?`)+p.data,delete p.data),p.cache===!1&&(i=i.replace(en,`$1`),f=(Wt.test(i)?`&`:`?`)+`_=`+ Ut.guid+++f),p.url=i+f),p.ifModified&&(S.lastModified[i]&&w.setRequestHeader(`If-Modified-Since`,S.lastModified[i]),S.etag[i]&&w.setRequestHeader(`If-None-Match`,S.etag[i])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&w.setRequestHeader(`Content-Type`,p.contentType),w.setRequestHeader(`Accept`,p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+(p.dataTypes[0]===`*`?``:`, `+cn+`; q=0.01`):p.accepts[`*`]),p.headers)w.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(p.beforeSend.call(m,w,p)===!1||l))return w.abort();if(C=`abort`,v.add(p.complete),w.done(p.success),w.fail(p.error),r=dn(sn,p,n,w),!r)T(-1,`No Transport`);else{if(w.readyState=1,u&&h.trigger(`ajaxSend`,[w,p]),l)return w;p.async&&p.timeout>0&&(s=e.setTimeout(function(){w.abort(`timeout`)},p.timeout));try{l=!1,r.send(b,T)}catch(e){if(l)throw e;T(-1,e)}}function T(t,n,o,c){var d,f,g,b,x,C=n;l||(l=!0,s&&e.clearTimeout(s),r=void 0,a=c||``,w.readyState=t>0?4:0,d=t>=200&&t<300||t===304,o&&(b=pn(p,w,o)),!d&&S.inArray(`script`,p.dataTypes)>-1&&S.inArray(`json`,p.dataTypes)<0&&(p.converters[`text script`]=function(){}),b=mn(p,b,w,d),d?(p.ifModified&&(x=w.getResponseHeader(`Last-Modified`),x&&(S.lastModified[i]=x),x=w.getResponseHeader(`etag`),x&&(S.etag[i]=x)),t===204||p.type===`HEAD`?C=`nocontent`:t===304?C=`notmodified`:(C=b.state,f=b.data,g=b.error,d=!g)):(g=C,(t||!C)&&(C=`error`,t<0&&(t=0))),w.status=t,w.statusText=(n||C)+``,d?_.resolveWith(m,[f,C,w]):_.rejectWith(m,[w,C,g]),w.statusCode(y),y=void 0,u&&h.trigger(d?`ajaxSuccess`:`ajaxError`,[w,p,d?f:g]),v.fireWith(m,[w,C]),u&&(h.trigger(`ajaxComplete`,[w,p]),--S.active||S.event.trigger(`ajaxStop`)))}return w},getJSON:function(e,t,n){return S.get(e,t,n,`json`)},getScript:function(e,t){return S.get(e,void 0,t,`script`)}}),S.each([`get`,`post`],function(e,t){S[t]=function(e,n,r,i){return m(n)&&(i||=r,r=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:i,data:n,success:r},S.isPlainObject(e)&&e))}}),S.ajaxPrefilter(function(e){for(var t in e.headers)t.toLowerCase()===`content-type`&&(e.contentType=e.headers[t]||``)}),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:`GET`,dataType:`script`,cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=S(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return m(e)?this.each(function(t){S(this).wrapInner(e.call(this,t))}):this.each(function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m(e);return this.each(function(n){S(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not(`body`).each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch{}};var hn={0:200,1223:204},gn=S.ajaxSettings.xhr();p.cors=!!gn&&`withCredentials`in gn,p.ajax=gn=!!gn,S.ajaxTransport(function(t){var n,r;if(p.cors||gn&&!t.crossDomain)return{send:function(i,a){var o,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];for(o in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),!t.crossDomain&&!i[`X-Requested-With`]&&(i[`X-Requested-With`]=`XMLHttpRequest`),i)s.setRequestHeader(o,i[o]);n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,e===`abort`?s.abort():e===`error`?typeof s.status==`number`?a(s.status,s.statusText):a(0,`error`):a(hn[s.status]||s.status,s.statusText,(s.responseType||`text`)!==`text`||typeof s.responseText!=`string`?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n(`error`),s.onabort===void 0?s.onreadystatechange=function(){s.readyState===4&&e.setTimeout(function(){n&&r()})}:s.onabort=r,n=n(`abort`);try{s.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),S.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),S.ajaxSetup({accepts:{script:`text/javascript, application/javascript, application/ecmascript, application/x-ecmascript`},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter(`script`,function(e){e.cache===void 0&&(e.cache=!1),e.crossDomain&&(e.type=`GET`)}),S.ajaxTransport(`script`,function(e){if(e.crossDomain||e.scriptAttrs){var t,n;return{send:function(r,i){t=S(`<script>`).attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on(`load error`,n=function(e){t.remove(),n=null,e&&i(e.type===`error`?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){n&&n()}}}});var _n=[],vn=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:`callback`,jsonpCallback:function(){var e=_n.pop()||S.expando+`_`+ Ut.guid++;return this[e]=!0,e}}),S.ajaxPrefilter(`json jsonp`,function(t,n,r){var i,a,o,s=t.jsonp!==!1&&(vn.test(t.url)?`url`:typeof t.data==`string`&&(t.contentType||``).indexOf(`application/x-www-form-urlencoded`)===0&&vn.test(t.data)&&`data`);if(s||t.dataTypes[0]===`jsonp`)return i=t.jsonpCallback=m(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(vn,`$1`+i):t.jsonp!==!1&&(t.url+=(Wt.test(t.url)?`&`:`?`)+t.jsonp+`=`+i),t.converters[`script json`]=function(){return o||S.error(i+` was not called`),o[0]},t.dataTypes[0]=`json`,a=e[i],e[i]=function(){o=arguments},r.always(function(){a===void 0?S(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,_n.push(i)),o&&m(a)&&a(o[0]),o=a=void 0}),`script`}),p.createHTMLDocument=(function(){var e=g.implementation.createHTMLDocument(``).body;return e.innerHTML=`<form></form><form></form>`,e.childNodes.length===2})(),S.parseHTML=function(e,t,n){if(typeof e!=`string`)return[];typeof t==`boolean`&&(n=t,t=!1);var r,i,a;return t||(p.createHTMLDocument?(t=g.implementation.createHTMLDocument(``),r=t.createElement(`base`),r.href=g.location.href,t.head.appendChild(r)):t=g),i=re.exec(e),a=!n&&[],i?[t.createElement(i[1])]:(i=He([e],t,a),a&&a.length&&S(a).remove(),S.merge([],i.childNodes))},S.fn.load=function(e,t,n){var r,i,a,o=this,s=e.indexOf(` `);return s>-1&&(r=Rt(e.slice(s)),e=e.slice(0,s)),m(t)?(n=t,t=void 0):t&&typeof t==`object`&&(i=`POST`),o.length>0&&S.ajax({url:e,type:i||`GET`,dataType:`html`,data:t}).done(function(e){a=arguments,o.html(r?S(`<div>`).append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,function(t){return e===t.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,a,o,s,c,l,u=S.css(e,`position`),d=S(e),f={};u===`static`&&(e.style.position=`relative`),s=d.offset(),a=S.css(e,`top`),c=S.css(e,`left`),l=(u===`absolute`||u===`fixed`)&&(a+c).indexOf(`auto`)>-1,l?(r=d.position(),o=r.top,i=r.left):(o=parseFloat(a)||0,i=parseFloat(c)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),t.top!=null&&(f.top=t.top-s.top+o),t.left!=null&&(f.left=t.left-s.left+i),`using`in t?t.using.call(e,f):d.css(f)}},S.fn.extend({offset:function(e){if(arguments.length)return e===void 0?this:this.each(function(t){S.offset.setOffset(this,e,t)});var t,n,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if(S.css(r,`position`)===`fixed`)t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&S.css(e,`position`)===`static`;)e=e.parentNode;e&&e!==r&&e.nodeType===1&&(i=S(e).offset(),i.top+=S.css(e,`borderTopWidth`,!0),i.left+=S.css(e,`borderLeftWidth`,!0))}return{top:t.top-i.top-S.css(r,`marginTop`,!0),left:t.left-i.left-S.css(r,`marginLeft`,!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&S.css(e,`position`)===`static`;)e=e.offsetParent;return e||De})}}),S.each({scrollLeft:`pageXOffset`,scrollTop:`pageYOffset`},function(e,t){var n=t===`pageYOffset`;S.fn[e]=function(r){return pe(this,function(e,r,i){var a;if(h(e)?a=e:e.nodeType===9&&(a=e.defaultView),i===void 0)return a?a[t]:e[r];a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i},e,r,arguments.length)}}),S.each([`top`,`left`],function(e,t){S.cssHooks[t]=ut(p.pixelPosition,function(e,n){if(n)return n=lt(e,t),it.test(n)?S(e).position()[t]+`px`:n})}),S.each({Height:`height`,Width:`width`},function(e,t){S.each({padding:`inner`+e,content:t,"":`outer`+e},function(n,r){S.fn[r]=function(i,a){var o=arguments.length&&(n||typeof i!=`boolean`),s=n||(i===!0||a===!0?`margin`:`border`);return pe(this,function(t,n,i){var a;return h(t)?r.indexOf(`outer`)===0?t[`inner`+e]:t.document.documentElement[`client`+e]:t.nodeType===9?(a=t.documentElement,Math.max(t.body[`scroll`+e],a[`scroll`+e],t.body[`offset`+e],a[`offset`+e],a[`client`+e])):i===void 0?S.css(t,n,s):S.style(t,n,i,s)},t,o?i:void 0,o)}})}),S.each([`ajaxStart`,`ajaxStop`,`ajaxComplete`,`ajaxError`,`ajaxSuccess`,`ajaxSend`],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length===1?this.off(e,`**`):this.off(t,e||`**`,n)},hover:function(e,t){return this.on(`mouseenter`,e).on(`mouseleave`,t||e)}}),S.each(`blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu`.split(` `),function(e,t){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var yn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,a;if(typeof t==`string`&&(n=e[t],t=e,e=n),m(e))return r=i.call(arguments,2),a=function(){return e.apply(t||this,r.concat(i.call(arguments)))},a.guid=e.guid=e.guid||S.guid++,a},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=w,S.isFunction=m,S.isWindow=h,S.camelCase=ge,S.type=y,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return(t===`number`||t===`string`)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return e==null?``:(e+``).replace(yn,`$1`)},typeof define==`function`&&define.amd&&define(`jquery`,[],function(){return S});var bn=e.jQuery,xn=e.$;return S.noConflict=function(t){return e.$===S&&(e.$=xn),t&&e.jQuery===S&&(e.jQuery=bn),S},t===void 0&&(e.jQuery=e.$=S),S})})),Ew=o(((e,t)=>{var n=Tw();typeof window<`u`&&!window.jQuery&&(window.jQuery=n),t.exports=n})),Dw=o((()=>{(function(){function e(){}function t(e){var t=e.length-1;return function(){var n=h.call(arguments,0,t),r=h.call(arguments,t);return e.apply(this,n.concat([r]))}}function n(e){return t(function(t,n){return typeof t!=`function`&&(t=g(t)),e.call(this,function(e){return t.apply(e,[e].concat(n))})})}function r(e){var t=h.call(arguments,1);return function(){return e.apply(this,t)}}function i(e,t){if(!t)throw Error(`prayer failed: `+e)}function a(e){i(`a direction was passed`,e===v||e===y)}function o(e,t,n){i(`a parent is always present`,e),i(`leftward is properly set up`,function(){return t?t[y]===n&&t.parent===e:e.ends[v]===n}()),i(`rightward is properly set up`,function(){return n?n[v]===t&&n.parent===e:e.ends[y]===t}())}function s(){window.console&&console.warn(`You are using the MathQuill API without specifying an interface version, which will fail in v1.0.0. Easiest fix is to do the following before doing anything else:
|
|
171
|
+
|
|
172
|
+
MathQuill = MathQuill.getInterface(1);
|
|
173
|
+
// now MathQuill.MathField() works like it used to
|
|
174
|
+
|
|
175
|
+
See also the "\`dev\` branch (2014–2015) → v0.10.0 Migration Guide" at
|
|
176
|
+
https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)}function c(e){return s(),tt(e)}function l(t){function n(e){var t,n;return e&&e.nodeType?(t=b(e).children(`.mq-root-block`).attr(at),n=t&&S.byId[t].controller,n?i[n.KIND_OF_MQ](n):null):null}function r(e,t){var n,r,a;for(n in t&&t.handlers&&(t.handlers={fns:t.handlers,APIClasses:i}),t)t.hasOwnProperty(n)&&(r=t[n],a=j[n],e[n]=a?a(r):r)}var i,a,o;if(!(N<=t&&t<=ne))throw`Only interface versions between `+N+` and `+ne+` supported. You specified: `+t;for(o in i={},n.L=v,n.R=y,n.saneKeyboardEvents=F,n.config=function(e){return r(A.p,e),this},n.registerEmbed=function(e,t){if(!/^[a-z][a-z0-9]*$/i.test(e))throw`Embed name must start with letter and be only letters and digits`;M[e]=t},a=i.AbstractMathQuill=_(te,function(e){e.init=function(e){this.__controller=e,this.__options=e.options,this.id=e.id,this.data=e.data},e.parseLatex=function(e){return this.__controller.parseLatex(e)},e.__mathquillify=function(e){var t,n=this.__controller,r=n.root,i=n.container;n.createTextarea(),t=i.addClass(e).contents().detach(),r.jQ=b(`<span class="mq-root-block"/>`).attr(at,r.id).appendTo(i),this.latex(t.text()),this.revert=function(){return i.empty().unbind(`.mathquill`).removeClass(`mq-editable-field mq-math-mode mq-text-mode`).append(t)}},e.config=function(e){return r(this.__options,e),this},e.el=function(){return this.__controller.container[0]},e.text=function(){return this.__controller.exportText()},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexMath(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()},e.html=function(){return this.__controller.root.jQ.html().replace(/ mathquill-(?:command|block)-id="?\d+"?/g,``).replace(/<span class="?mq-cursor( mq-blink)?"?>.?<\/span>/i,``).replace(/ mq-hasCursor|mq-hasCursor ?/,``).replace(/ class=(""|(?= |>))/g,``)},e.reflow=function(){return this.__controller.root.postOrder(`reflow`),this}}),n.prototype=a.prototype,i.EditableField=_(a,function(t,n){t.__mathquillify=function(){return n.__mathquillify.apply(this,arguments),this.__controller.editable=!0,this.__controller.delegateMouseEvents(),this.__controller.editablesTextareaEvents(),this},t.focus=function(){return this.__controller.textarea.focus(),this},t.blur=function(){return this.__controller.textarea.blur(),this},t.write=function(e){return this.__controller.writeLatex(e),this.__controller.scrollHoriz(),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this},t.empty=function(){var e=this.__controller.root,t=this.__controller.cursor;return e.eachChild(`postOrder`,`dispose`),e.ends[v]=e.ends[y]=0,e.jQ.empty(),delete t.selection,t.insAtRightEnd(e),this},t.cmd=function(e){var t,n=this.__controller.notify(),r=n.cursor;return/^\\[a-z]+$/i.test(e)&&!r.isTooDeep()?(e=e.slice(1),(t=w[e])&&(e=t(e),r.selection&&e.replaces(r.replaceSelection()),e.createLeftOf(r.show()),this.__controller.scrollHoriz())):r.parent.write(r,e),n.blurred&&r.hide().parent.blur(),this},t.select=function(){var e=this.__controller;for(e.notify(`move`).cursor.insAtRightEnd(e.root);e.cursor[v];)e.selectLeft();return this},t.clearSelection=function(){return this.__controller.cursor.clearSelection(),this},t.moveToDirEnd=function(e){return this.__controller.notify(`move`).cursor.insAtDirEnd(e,this.__controller.root),this},t.moveToLeftEnd=function(){return this.moveToDirEnd(v)},t.moveToRightEnd=function(){return this.moveToDirEnd(y)},t.keystroke=function(t){var n;for(t=t.replace(/^\s+|\s+$/g,``).split(/\s+/),n=0;n<t.length;n+=1)this.__controller.keystroke(t[n],{preventDefault:e});return this},t.typedText=function(e){for(var t=0;t<e.length;t+=1)this.__controller.typedText(e.charAt(t));return this},t.dropEmbedded=function(e,t,n){var r,i=e-b(window).scrollLeft(),a=t-b(window).scrollTop(),o=document.elementFromPoint(i,a);this.__controller.seek(b(o),e,t),r=$e().setOptions(n),r.createLeftOf(this.__controller.cursor)},t.clickAt=function(e,t,n){n||=document.elementFromPoint(e,t);var r=this.__controller,i=r.root;return rt.contains(i.jQ[0],n)||(n=i.jQ[0]),r.seek(b(n),e+pageXOffset,t+pageYOffset),r.blurred&&this.focus(),this},t.ignoreNextMousedown=function(e){return this.__controller.cursor.options.ignoreNextMousedown=e,this}}),n.EditableField=function(){throw`wtf don't call me, I'm 'abstract'`},n.EditableField.prototype=i.EditableField.prototype,ee)(function(e,r){var a=i[e]=r(i);n[e]=function(r,i){var o,s=n(r);return s instanceof a||!r||!r.nodeType?s:(o=k(a.RootBlock(),b(r),A()),o.KIND_OF_MQ=e,a(o).__mathquillify(i,t))},n[e].prototype=a.prototype})(o,ee[o]);return n}function u(e){var t,n=`moveOutOf deleteOutOf selectOutOf upOutOf downOutOf`.split(` `);for(t=0;t<n.length;t+=1)(function(t){e[t]=function(e){this.controller.handle(t,e)}})(n[t]);e.reflow=function(){this.controller.handle(`reflow`),this.controller.handle(`edited`),this.controller.handle(`edit`)}}function d(e,t,n){return _(le,{ctrlSeq:e,htmlTemplate:`<`+t+` `+n+`>&0</`+t+`>`})}function f(e){var t=this.parent,n=e;do{if(n[y])return e.insLeftOf(t);n=n.parent.parent}while(n!==t);e.insRightOf(t)}function p(e,t){e.jQadd=function(){t.jQadd.apply(this,arguments),this.delimjQs=this.jQ.children(`:first`).add(this.jQ.children(`:last`)),this.contentjQ=this.jQ.children(`:eq(1)`)},e.reflow=function(){var e=this.contentjQ.outerHeight()/parseFloat(this.contentjQ.css(`fontSize`));Ee(this.delimjQs,ot(1+.2*(e-1),1.2),1.2*e)}}function m(e,t){var t=t||e,n=Ze[e],i=Ze[t];T[e]=r(Xe,v,e,n,t,i),T[n]=r(Xe,y,e,n,t,i)}var h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,ee,A,j,te,M,N,ne,re,P,F,ie,ae,oe,I,se,L,R,z,ce,le,ue,de,fe,pe,B,me,he,ge,_e,ve,V,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He,Ue,We,Ge,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt=window.jQuery,it=`mathquill-command-id`,at=`mathquill-block-id`,ot=Math.min,st=Math.max;if(!rt)throw`MathQuill requires jQuery 1.5.2+ to be loaded first`;for(V in h=[].slice,g=t(function(e,n){return t(function(t,r){if(e in t)return t[e].apply(t,n.concat(r))})}),_=function(e,t,n){function r(e){return typeof e==`object`}function i(e){return typeof e==`function`}function a(){}return function e(n,o){function s(){var e=new c;return i(e.init)&&e.init.apply(e,arguments),e}function c(){}var l,u,d;return o===void 0&&(o=n,n=Object),s.Bare=c,l=a.prototype=n.prototype,u=c.prototype=s.prototype=s.p=new a,u.constructor=s,s.extend=function(t){return e(s,t)},(s.open=function(e){if(d={},i(e)?d=e.call(s,u,l,s,n):r(e)&&(d=e),r(d))for(var a in d)t.call(d,a)&&(u[a]=d[a]);return i(u.init)||(u.init=n),s})(o)}}(0,{}.hasOwnProperty),v=-1,y=1,b=_(rt,function(e){e.insDirOf=function(e,t){return e===v?this.insertBefore(t.first()):this.insertAfter(t.last())},e.insAtDirEnd=function(e,t){return e===v?this.prependTo(t):this.appendTo(t)}}),x=_(function(e){e.parent=0,e[v]=0,e[y]=0,e.init=function(e,t,n){this.parent=e,this[v]=t,this[y]=n},this.copy=function(e){return x(e.parent,e[v],e[y])}}),S=_(function(e){function t(){return r+=1}e[v]=0,e[y]=0,e.parent=0;var r=0;this.byId={},e.init=function(){this.id=t(),S.byId[this.id]=this,this.ends={},this.ends[v]=0,this.ends[y]=0},e.dispose=function(){delete S.byId[this.id]},e.toString=function(){return`{{ MathQuill Node #`+this.id+` }}`},e.jQ=b(),e.jQadd=function(e){return this.jQ=this.jQ.add(e)},e.jQize=function(e){function t(e){var n,r;for(e.getAttribute&&(n=e.getAttribute(`mathquill-command-id`),r=e.getAttribute(`mathquill-block-id`),n&&S.byId[n].jQadd(e),r&&S.byId[r].jQadd(e)),e=e.firstChild;e;e=e.nextSibling)t(e)}var n;for(e=b(e||this.html()),n=0;n<e.length;n+=1)t(e[n]);return e},e.createDir=function(e,t){a(e);var n=this;return n.jQize(),n.jQ.insDirOf(e,t.jQ),t[e]=n.adopt(t.parent,t[v],t[y]),n},e.createLeftOf=function(e){return this.createDir(v,e)},e.selectChildren=function(e,t){return O(e,t)},e.bubble=n(function(e){var t;for(t=this;t&&!1!==e(t);t=t.parent);return this}),e.postOrder=n(function(e){return function t(n){n.eachChild(t),e(n)}(this),this}),e.isEmpty=function(){return this.ends[v]===0&&this.ends[y]===0},e.isStyleBlock=function(){return!1},e.children=function(){return C(this.ends[v],this.ends[y])},e.eachChild=function(){var e=this.children();return e.each.apply(e,arguments),this},e.foldChildren=function(e,t){return this.children().fold(e,t)},e.withDirAdopt=function(e,t,n,r){return C(this,this).withDirAdopt(e,t,n,r),this},e.adopt=function(e,t,n){return C(this,this).adopt(e,t,n),this},e.disown=function(){return C(this,this).disown(),this},e.remove=function(){return this.jQ.remove(),this.postOrder(`dispose`),this.disown()}}),C=_(function(e){e.init=function(e,t,n){if(n===void 0&&(n=v),a(n),i(`no half-empty fragments`,!e==!t),this.ends={},e){i(`withDir is passed to Fragment`,e instanceof S),i(`oppDir is passed to Fragment`,t instanceof S),i(`withDir and oppDir have the same parent`,e.parent===t.parent),this.ends[n]=e,this.ends[-n]=t;var r=this.fold([],function(e,t){return e.push.apply(e,t.jQ.get()),e});this.jQ=this.jQ.add(r)}},e.jQ=b(),e.withDirAdopt=function(e,t,n,r){return e===v?this.adopt(t,n,r):this.adopt(t,r,n)},e.adopt=function(e,t,n){var r,i,a;return o(e,t,n),r=this,r.disowned=!1,(i=r.ends[v])?(a=r.ends[y],t||(e.ends[v]=i),n?n[v]=a:e.ends[y]=a,r.ends[y][y]=n,r.each(function(n){n[v]=t,n.parent=e,t&&(t[y]=n),t=n}),r):this},e.disown=function(){var e,t,n=this,r=n.ends[v];return!r||n.disowned?n:(n.disowned=!0,e=n.ends[y],t=r.parent,o(t,r[v],r),o(t,e,e[y]),r[v]?r[v][y]=e[y]:t.ends[v]=e[y],e[y]?e[y][v]=r[v]:t.ends[y]=r[v],n)},e.remove=function(){return this.jQ.remove(),this.each(`postOrder`,`dispose`),this.disown()},e.each=n(function(e){var t=this,n=t.ends[v];if(!n)return t;for(;n!==t.ends[y][y]&&!1!==e(n);n=n[y]);return t}),e.fold=function(e,t){return this.each(function(n){e=t.call(this,e,n)}),e}}),w={},T={},E={},D=_(x,function(e){e.init=function(e,t){this.parent=e,this.options=t;var n=this.jQ=this._jQ=b(`<span class="mq-cursor">​</span>`);this.blink=function(){n.toggleClass(`mq-blink`)},this.upDownCache={}},e.show=function(){return this.jQ=this._jQ.removeClass(`mq-blink`),`intervalId`in this?clearInterval(this.intervalId):(this[y]?this.selection&&this.selection.ends[v][v]===this[v]?this.jQ.insertBefore(this.selection.jQ):this.jQ.insertBefore(this[y].jQ.first()):this.jQ.appendTo(this.parent.jQ),this.parent.focus()),this.intervalId=setInterval(this.blink,500),this},e.hide=function(){return`intervalId`in this&&clearInterval(this.intervalId),delete this.intervalId,this.jQ.detach(),this.jQ=b(),this},e.withDirInsertAt=function(e,t,n,r){var i=this.parent;this.parent=t,this[e]=n,this[-e]=r,i!==t&&i.blur&&i.blur(this)},e.insDirOf=function(e,t){return a(e),this.jQ.insDirOf(e,t.jQ),this.withDirInsertAt(e,t.parent,t[e],t),this.parent.jQ.addClass(`mq-hasCursor`),this},e.insLeftOf=function(e){return this.insDirOf(v,e)},e.insRightOf=function(e){return this.insDirOf(y,e)},e.insAtDirEnd=function(e,t){return a(e),this.jQ.insAtDirEnd(e,t.jQ),this.withDirInsertAt(e,t,0,t.ends[e]),t.focus(),this},e.insAtLeftEnd=function(e){return this.insAtDirEnd(v,e)},e.insAtRightEnd=function(e){return this.insAtDirEnd(y,e)},e.jumpUpDown=function(e,t){var n,r,i=this;i.upDownCache[e.id]=x.copy(i),n=i.upDownCache[t.id],n?n[y]?i.insLeftOf(n[y]):i.insAtRightEnd(n.parent):(r=i.offset().left,t.seek(r,i))},e.offset=function(){var e=this,t=e.jQ.removeClass(`mq-cursor`).offset();return e.jQ.addClass(`mq-cursor`),t},e.unwrapGramp=function(){var e=this.parent.parent,t=e.parent,n=e[y],r=this,i=e[v];if(e.disown().eachChild(function(r){r.isEmpty()||(r.children().adopt(t,i,n).each(function(t){t.jQ.insertBefore(e.jQ.first())}),i=r.ends[y])}),!this[y])if(this[v])this[y]=this[v][y];else for(;!this[y];){if(this.parent=this.parent[y],!this.parent){this[y]=e[y],this.parent=t;break}this[y]=this.parent.ends[v]}this[y]?this.insLeftOf(this[y]):this.insAtRightEnd(t),e.jQ.remove(),e[v].siblingDeleted&&e[v].siblingDeleted(r.options,y),e[y].siblingDeleted&&e[y].siblingDeleted(r.options,v)},e.startSelection=function(){var e,t=this.anticursor=x.copy(this),n=t.ancestors={};for(e=t;e.parent;e=e.parent)n[e.parent.id]=e},e.endSelection=function(){delete this.anticursor},e.select=function(){var e,t,n,r,a,o,s,c=this.anticursor;if(this[v]===c[v]&&this.parent===c.parent)return!1;for(e=this;e.parent;e=e.parent)if(e.parent.id in c.ancestors){t=e.parent;break}if(i(`cursor and anticursor in the same tree`,t),n=c.ancestors[t.id],o=y,e[v]!==n){for(s=e;s;s=s[y])if(s[y]===n[y]){o=v,r=e,a=n;break}}return o===y&&(r=n,a=e),r instanceof x&&(r=r[y]),a instanceof x&&(a=a[v]),this.hide().selection=t.selectChildren(r,a),this.insDirOf(o,this.selection.ends[o]),this.selectionChanged(),!0},e.clearSelection=function(){return this.selection&&(this.selection.clear(),delete this.selection,this.selectionChanged()),this},e.deleteSelection=function(){this.selection&&(this[v]=this.selection.ends[v][v],this[y]=this.selection.ends[y][y],this.selection.remove(),this.selectionChanged(),delete this.selection)},e.replaceSelection=function(){var e=this.selection;return e&&(this[v]=e.ends[v][v],this[y]=e.ends[y][y],delete this.selection),e},e.depth=function(){for(var e=this,t=0;e=e.parent;)t+=e instanceof z?1:0;return t},e.isTooDeep=function(e){if(this.options.maxDepth!==void 0)return this.depth()+(e||0)>this.options.maxDepth},e.howDeep=function(){for(var e=0,t=this;t=t.parent;)e++;return 1+Math.floor(e/2)},e.tooDeep=function(){var e=this.options.maxDepth;return e&&this.howDeep()>e}}),O=_(C,function(e,t){e.init=function(){t.init.apply(this,arguments),this.jQ=this.jQ.wrapAll(`<span class="mq-selection"></span>`).parent()},e.adopt=function(){return this.jQ.replaceWith(this.jQ=this.jQ.children()),t.adopt.apply(this,arguments)},e.clear=function(){return this.jQ.replaceWith(this.jQ[0].childNodes),this},e.join=function(e){return this.fold(``,function(t,n){return t+n[e]()})}}),k=_(function(e){e.init=function(e,t,n){this.id=e.id,this.data={},this.root=e,this.container=t,this.options=n,e.controller=this,this.cursor=e.cursor=D(e,n)},e.handle=function(e,t){var n,r=this.options.handlers;r&&r.fns[e]&&(n=r.APIClasses[this.KIND_OF_MQ](this),t===v||t===y?r.fns[e](t,n):r.fns[e](n))};var t=[];this.onNotify=function(e){t.push(e)},e.notify=function(){for(var e=0;e<t.length;e+=1)t[e].apply(this.cursor,arguments);return this}}),ee={},A=_(),j={},te=_(),M={},c.prototype=te.p,c.VERSION=`{VERSION}`,c.interfaceVersion=function(e){if(e!==1)throw`Only interface version 1 supported. You specified: `+e;return s=function(){window.console&&console.warn(`You called MathQuill.interfaceVersion(1); to specify the interface version, which will fail in v1.0.0. You can fix this easily by doing this before doing anything else:
|
|
177
|
+
|
|
178
|
+
MathQuill = MathQuill.getInterface(1);
|
|
179
|
+
// now MathQuill.MathField() works like it used to
|
|
180
|
+
|
|
181
|
+
See also the "\`dev\` branch (2014–2015) → v0.10.0 Migration Guide" at
|
|
182
|
+
https://github.com/mathquill/mathquill/wiki/%60dev%60-branch-(2014%E2%80%932015)-%E2%86%92-v0.10.0-Migration-Guide`)},s(),c},c.getInterface=l,N=l.MIN=1,ne=l.MAX=2,c.noConflict=function(){return window.MathQuill=re,c},re=window.MathQuill,window.MathQuill=c,P=_(function(e,t,n){function r(e,t){throw e=e?`'`+e+`'`:`EOF`,`Parse Error: `+t+` at `+e}var a,o,s;e.init=function(e){this._=e},e.parse=function(e){function t(e,t){return t}return this.skip(s)._(``+e,t,r)},e.or=function(e){i(`or is passed a parser`,e instanceof n);var t=this;return n(function(n,r,i){function a(t){return e._(n,r,i)}return t._(n,r,a)})},e.then=function(e){var t=this;return n(function(r,a,o){function s(t,r){var s=e instanceof n?e:e(r);return i(`a parser is returned`,s instanceof n),s._(t,a,o)}return t._(r,s,o)})},e.many=function(){var e=this;return n(function(t,n,r){function i(e,n){return t=e,o.push(n),!0}function a(){return!1}for(var o=[];e._(t,i,a););return n(t,o)})},e.times=function(e,t){arguments.length<2&&(t=e);var r=this;return n(function(n,i,a){function o(e,t){return d.push(t),n=e,!0}function s(e,t){return l=t,n=e,!1}function c(e,t){return!1}var l,u,d=[],f=!0;for(u=0;u<e;u+=1)if(!(f=r._(n,o,s)))return a(n,l);for(;u<t&&f;u+=1)f=r._(n,o,c);return i(n,d)})},e.result=function(e){return this.then(o(e))},e.atMost=function(e){return this.times(0,e)},e.atLeast=function(e){var t=this;return t.times(e).then(function(e){return t.many().map(function(t){return e.concat(t)})})},e.map=function(e){return this.then(function(t){return o(e(t))})},e.skip=function(e){return this.then(function(t){return e.result(t)})},this.string=function(e){var t=e.length,r=`expected '`+e+`'`;return n(function(n,i,a){var o=n.slice(0,t);return o===e?i(n.slice(t),o):a(n,r)})},a=this.regex=function(e){i(`regexp parser is anchored`,e.toString().charAt(1)===`^`);var t=`expected `+e;return n(function(n,r,i){var a,o=e.exec(n);return o?(a=o[0],r(n.slice(a.length),a)):i(n,t)})},o=n.succeed=function(e){return n(function(t,n){return n(t,e)})},n.fail=function(e){return n(function(t,n,r){return r(t,e)})},n.letter=a(/^[a-z]/i),n.letters=a(/^[a-z]*/i),n.digit=a(/^[0-9]/),n.digits=a(/^[0-9]*/),n.whitespace=a(/^\s+/),n.optWhitespace=a(/^\s*/),n.any=n(function(e,t,n){return e?t(e.slice(1),e.charAt(0)):n(e,`expected any character`)}),n.all=n(function(e,t,n){return t(``,e)}),s=n.eof=n(function(e,t,n){return e?n(e,`expected EOF`):t(e,e)})}),F=function(){function t(e){var t,r=e.which||e.keyCode,i=n[r],a=[];return e.ctrlKey&&a.push(`Ctrl`),e.originalEvent&&e.originalEvent.metaKey&&a.push(`Meta`),e.altKey&&a.push(`Alt`),e.shiftKey&&a.push(`Shift`),t=i||String.fromCharCode(r),a.length||i?(a.push(t),a.join(`-`)):t}var n={8:`Backspace`,9:`Tab`,10:`Enter`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Esc`,32:`Spacebar`,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`Left`,38:`Up`,39:`Right`,40:`Down`,45:`Insert`,46:`Del`,144:`NumLock`};return function(n,r){function i(e){S=e,clearTimeout(g),g=setTimeout(e)}function a(t){i(function(n){S=e,clearTimeout(g),t(n)})}function o(t){S(),S=e,clearTimeout(g),b.val(t),t&&b[0]&&b[0].select&&b[0].select(),_=!!t}function s(){var e=b[0];return`selectionStart`in e&&e.selectionStart!==e.selectionEnd}function c(){r.keystroke(t(v),v)}function l(e){v=e,y=null,_&&a(function(e){e&&e.type===`focusout`||!b[0]||!b[0].select||b[0].select()}),c()}function u(e){v&&y&&c(),y=e,i(f)}function d(e){v&&!y&&i(f)}function f(){if(!s()){var e=b.val();e.length===1?(b.val(``),r.typedText(e)):e&&b[0]&&b[0].select&&b[0].select()}}function p(){v=y=null}function m(e){b.focus(),i(h)}function h(){var e=b.val();b.val(``),e&&r.paste(e)}var g,_,v=null,y=null,b=rt(n),x=rt(r.container||b),S=e;return x.bind(`keydown keypress input keyup focusout paste`,function(e){S(e)}),_=!1,x.bind({keydown:l,keypress:u,keyup:d,focusout:p,cut:function(){a(function(){r.cut()})},copy:function(){a(function(){r.copy()})},paste:m}),{select:o}}}(),k.open(function(e,t){e.exportText=function(){return this.root.foldChildren(``,function(e,t){return e+t.text()})}}),k.open(function(e){e.focusBlurEvents=function(){function e(){clearTimeout(n),a.selection&&a.selection.jQ.addClass(`mq-blur`),t()}function t(){a.hide().parent.blur(),r.container.removeClass(`mq-focused`),b(window).unbind(`blur`,e)}var n,r=this,i=r.root,a=r.cursor;r.textarea.focus(function(){r.blurred=!1,clearTimeout(n),r.container.addClass(`mq-focused`),a.parent||a.insAtRightEnd(i),a.selection?(a.selection.jQ.removeClass(`mq-blur`),r.selectionChanged()):a.show()}).blur(function(){r.blurred=!0,n=setTimeout(function(){i.postOrder(`intentionalBlur`),a.clearSelection().endSelection(),t()}),b(window).bind(`blur`,e)}),r.blurred=!0,a.hide().parent.blur()}}),k.open(function(e){e.keystroke=function(e,t){this.cursor.parent.keystroke(e,t,this)}}),S.open(function(e){e.keystroke=function(e,t,n){var r=n.cursor;switch(e){case`Ctrl-Shift-Backspace`:case`Ctrl-Backspace`:n.ctrlDeleteDir(v);break;case`Shift-Backspace`:case`Backspace`:n.backspace();break;case`Esc`:case`Tab`:n.escapeDir(y,e,t);return;case`Shift-Tab`:case`Shift-Esc`:n.escapeDir(v,e,t);return;case`End`:n.notify(`move`).cursor.insAtRightEnd(r.parent);break;case`Ctrl-End`:n.notify(`move`).cursor.insAtRightEnd(n.root);break;case`Shift-End`:for(;r[y];)n.selectRight();break;case`Ctrl-Shift-End`:for(;r[y]||r.parent!==n.root;)n.selectRight();break;case`Home`:n.notify(`move`).cursor.insAtLeftEnd(r.parent);break;case`Ctrl-Home`:n.notify(`move`).cursor.insAtLeftEnd(n.root);break;case`Shift-Home`:for(;r[v];)n.selectLeft();break;case`Ctrl-Shift-Home`:for(;r[v]||r.parent!==n.root;)n.selectLeft();break;case`Left`:n.moveLeft();break;case`Shift-Left`:n.selectLeft();break;case`Ctrl-Left`:break;case`Right`:n.moveRight();break;case`Shift-Right`:n.selectRight();break;case`Ctrl-Right`:break;case`Up`:n.moveUp();break;case`Down`:n.moveDown();break;case`Shift-Up`:if(r[v])for(;r[v];)n.selectLeft();else n.selectLeft();case`Shift-Down`:if(r[y])for(;r[y];)n.selectRight();else n.selectRight();case`Ctrl-Up`:case`Ctrl-Down`:break;case`Ctrl-Shift-Del`:case`Ctrl-Del`:n.ctrlDeleteDir(y);break;case`Shift-Del`:case`Del`:n.deleteForward();break;case`Meta-A`:case`Ctrl-A`:for(n.notify(`move`).cursor.insAtRightEnd(n.root);r[v];)n.selectLeft();break;default:return}t.preventDefault(),n.scrollHoriz()},e.moveOutOf=e.moveTowards=e.deleteOutOf=e.deleteTowards=e.unselectInto=e.selectOutOf=e.selectTowards=function(){i(`overridden or never called on this node`)}}),k.open(function(e){function t(e,t){var n=e.notify(`upDown`).cursor,r=t+`Into`,i=t+`OutOf`;return n[y][r]?n.insAtLeftEnd(n[y][r]):n[v][r]?n.insAtRightEnd(n[v][r]):n.parent.bubble(function(e){var t=e[i];if(t&&(typeof t==`function`&&(t=e[i](n)),t instanceof S&&n.jumpUpDown(e,t),!0!==t))return!1}),e}this.onNotify(function(e){e!==`move`&&e!==`upDown`||this.show().clearSelection()}),e.escapeDir=function(e,t,n){a(e);var r=this.cursor;if(r.parent!==this.root&&n.preventDefault(),r.parent!==this.root)return r.parent.moveOutOf(e,r),this.notify(`move`)},j.leftRightIntoCmdGoes=function(e){if(e&&e!==`up`&&e!==`down`)throw`"up" or "down" required for leftRightIntoCmdGoes option, got "`+e+`"`;return e},e.moveDir=function(e){a(e);var t=this.cursor,n=t.options.leftRightIntoCmdGoes;return t.selection?t.insDirOf(e,t.selection.ends[e]):t[e]?t[e].moveTowards(e,t,n):t.parent.moveOutOf(e,t,n),this.notify(`move`)},e.moveLeft=function(){return this.moveDir(v)},e.moveRight=function(){return this.moveDir(y)},e.moveUp=function(){return t(this,`up`)},e.moveDown=function(){return t(this,`down`)},this.onNotify(function(e){e!==`upDown`&&(this.upDownCache={})}),this.onNotify(function(e){e===`edit`&&this.show().deleteSelection()}),e.deleteDir=function(e){var t,n;return a(e),t=this.cursor,n=t.selection,this.notify(`edit`),n||(t[e]?t[e].deleteTowards(e,t):t.parent.deleteOutOf(e,t)),t[v].siblingDeleted&&t[v].siblingDeleted(t.options,y),t[y].siblingDeleted&&t[y].siblingDeleted(t.options,v),t.parent.bubble(`reflow`),this},e.ctrlDeleteDir=function(e){a(e);var t=this.cursor;return!t[e]||t.selection?this.deleteDir(e):(this.notify(`edit`),e===v?C(t.parent.ends[v],t[v]).remove():C(t[y],t.parent.ends[y]).remove(),t.insAtDirEnd(e,t.parent),t[v].siblingDeleted&&t[v].siblingDeleted(t.options,y),t[y].siblingDeleted&&t[y].siblingDeleted(t.options,v),t.parent.bubble(`reflow`),this)},e.backspace=function(){return this.deleteDir(v)},e.deleteForward=function(){return this.deleteDir(y)},this.onNotify(function(e){e!==`select`&&this.endSelection()}),e.selectDir=function(e){var t,n=this.notify(`select`).cursor,r=n.selection;a(e),n.anticursor||n.startSelection(),t=n[e],t?r&&r.ends[e]===t&&n.anticursor[-e]!==t?t.unselectInto(e,n):t.selectTowards(e,n):n.parent.selectOutOf(e,n),n.clearSelection(),n.select()||n.show()},e.selectLeft=function(){return this.selectDir(v)},e.selectRight=function(){return this.selectDir(y)}}),ie=/[\\]{2,}/gm,ae=function(){function e(e){var t=z();return e.adopt(t,0,0),t}function t(e){var t,n=e[0]||z();for(t=1;t<e.length;t+=1)e[t].children().adopt(n,n.ends[y],0);return n}var n=P.string,r=P.regex,i=P.letter,a=P.any,o=P.optWhitespace,s=P.succeed,c=P.fail,l=i.map(function(e){return me(e)}),u=r(/^[^${}\\_^]/).map(function(e){return L(e)}),d=r(/^\\not\\[a-z]+/).then(function(e){return E[e]&&E[e]().parser()||c(`unknown compound command: `+e)}),f=r(/^[^\\a-eg-zA-Z]/).or(n(`\\`).then(r(/^begin\{.?matrix\}/).or(r(/^[a-z]+/i)).or(r(/^\s+/).result(` `)).or(a))).then(function(e){e=e.replace(/^begin\{(.?matrix)\}$/,`$1`);var t=w[e];return t?t(e).parser():c(`unknown command: \\`+e)}),p=d.or(f).or(l).or(u),m=n(`{`).then(function(){return g}).skip(n(`}`)),h=o.then(m.or(p.map(e))),g=h.many().map(t).skip(o),_=n(`[`).then(h.then(function(e){return e.join(`latex`)===`]`?c():s(e)}).many().map(t).skip(o)).skip(n(`]`)),v=g;return v.block=h,v.optBlock=_,v}(),k.open(function(e,t){e.exportLatex=function(){return this.root.latex().replace(/(\\[a-z]+) (?![a-z])/gi,`$1`)},e.parseLatex=function(e){return ae.parse(e).postOrder(`finalizeTree`,A.p).join(`latex`).trim()},j.maxDepth=function(e){return typeof e==`number`?e:void 0},e.writeLatex=function(e){var t,n=this.notify(`edit`).cursor,r=P.all,i=P.eof,a=ae.skip(i).or(r.result(!1)).parse(e);return a&&!a.isEmpty()&&a.prepareInsertionAt(n)&&(a.children().adopt(n.parent,n[v],n[y]),t=a.jQize(),t.insertBefore(n.jQ),n[v]=a.ends[y],a.finalizeInsert(n.options,n),a.ends[y][y].siblingCreated&&a.ends[y][y].siblingCreated(n.options,v),a.ends[v][v].siblingCreated&&a.ends[v][v].siblingCreated(n.options,y),n.parent.bubble(`reflow`)),this},e.renderLatexMath=function(e){var t,n,r,i,a,o,s;e&&e.replace&&(e=e.replace(ie,`\\`)),t=this.root,n=this.cursor,n.options,r=t.jQ,i=P.all,a=P.eof,o=ae.skip(a).or(i.result(!1)).parse(e),t.eachChild(`postOrder`,`dispose`),t.ends[v]=t.ends[y]=0,o&&o.prepareInsertionAt(n)?(o.children().adopt(t,0,0),s=o.join(`html`),r.html(s),t.jQize(r.children()),t.finalizeInsert(n.options)):r.empty(),delete n.selection,n.insAtRightEnd(t)},e.renderLatexText=function(e){var t,n,r,i,a,o,s,c,l,u,d=this.root,f=this.cursor;if(d.jQ.children().slice(1).remove(),d.eachChild(`postOrder`,`dispose`),d.ends[v]=d.ends[y]=0,delete f.selection,f.show().insAtRightEnd(d),t=P.regex,n=P.string,r=P.eof,i=P.all,a=n(`$`).then(ae).skip(n(`$`).or(r)).map(function(e){var t,n=de(f);return n.createBlocks(),t=n.ends[v],e.children().adopt(t,0,0),n}),o=n(`\\$`).result(`$`),s=o.or(t(/^[^$]/)).map(L),c=a.or(s).many(),l=c.skip(r).or(i.result(!1)).parse(e)){for(u=0;u<l.length;u+=1)l[u].adopt(d,d.ends[y],0);d.jQize().appendTo(d.jQ),d.finalizeInsert(f.options)}}}),k.open(function(t){A.p.ignoreNextMousedown=e,t.delegateMouseEvents=function(){var t=this.root.jQ;this.container.bind(`mousedown.mathquill`,function(n){function r(e){c.anticursor||c.startSelection(),s.seek(b(e.target),e.pageX,e.pageY).cursor.select(),e.target&&b(e.target.ownerDocument).unbind(`mousemove`,i)}function i(e){return delete e.target,r(e)}function a(e){c.selection||s.editable||l.detach(),o.unbind(`mousemove`,r),b(e.target.ownerDocument).unbind(`mousemove`,i).unbind(`mouseup`,a)}var o=b(n.target).closest(`.mq-root-block`),s=S.byId[o.attr(at)||t.attr(at)].controller,c=s.cursor,l=(c.blink,s.textareaSpan),u=s.textarea;if(n.preventDefault(),n.target.unselectable=!0,!c.options.ignoreNextMousedown(n)){if(c.options.ignoreNextMousedown=e,l.parent().length===0)return!1;s.blurred&&(s.editable||o.prepend(l),document.body.focus(),u.focus()),n.preventDefault(),n.target.unselectable=!0,c.show(),s.seek(b(n.target),n.pageX,n.pageY).cursor.startSelection(),o.mousemove(r),b(n.target.ownerDocument).mousemove(i).mouseup(a)}})}}),k.open(function(e){e.seek=function(e,t,n){var r,a,o,s=this.notify(`select`).cursor;return e&&((r=e.attr(at)||e.attr(it))||(a=e.parent(),r=a.attr(at)||a.attr(it))),o=r?S.byId[r]:this.root,i(`nodeId is the id of some Node that exists`,o),s.clearSelection().show(),o.seek(t,s),this.scrollHoriz(),this}}),k.open(function(e){e.scrollHoriz=function(){var e,t,n,r,i,a=this.cursor,o=a.selection,s=this.root.jQ[0].getBoundingClientRect();if(o)if(n=o.jQ[0].getBoundingClientRect(),r=n.left-(s.left+20),i=n.right-(s.right-20),o.ends[v]===a[y])if(r<0)t=r;else{if(!(i>0))return;t=n.left-i<s.left+20?r:i}else if(i>0)t=i;else{if(!(r<0))return;t=n.right-r>s.right-20?i:r}else if((e=a.jQ[0].getBoundingClientRect().left)>s.right-20)t=e-(s.right-20);else{if(!(e<s.left+20))return;t=e-(s.left+20)}this.root.jQ.stop&&typeof this.root.jQ.stop==`function`&&this.root.jQ.stop().animate({scrollLeft:`+=`+t},100)}}),k.open(function(e){A.p.substituteTextarea=function(){return b(`<textarea autocapitalize=off autocomplete=off autocorrect=off spellcheck=false x-palm-disable-ste-all=true />`)[0]},e.createTextarea=function(){var e,t=this.textareaSpan=b(`<span class="mq-textarea"></span>`),n=this.options.substituteTextarea();if(!n.nodeType)throw`substituteTextarea() must return a DOM element, got `+n;n=this.textarea=b(n).appendTo(t),e=this,e.cursor.selectionChanged=function(){e.selectionChanged()}},e.selectionChanged=function(){var e=this;De(e.container[0]),e.textareaSelectionTimeout===void 0&&(e.textareaSelectionTimeout=setTimeout(function(){e.setTextareaSelection()}))},e.setTextareaSelection=function(){this.textareaSelectionTimeout=void 0;var e=``;this.cursor.selection&&(e=this.cursor.selection.join(`latex`),this.options.statelessClipboard&&(e=`$`+e+`$`)),this.selectFn(e)},e.staticMathTextareaEvents=function(){function e(){i.detach(),t.blurred=!0}var t=this,n=(t.root,t.cursor),r=t.textarea,i=t.textareaSpan;this.container.prepend(rt(`<span class="mq-selectable">`).text(`$`+t.exportLatex()+`$`)),t.blurred=!0,r.bind(`cut paste`,!1).bind(`copy`,function(){t.setTextareaSelection()}).focus(function(){t.blurred=!1}).blur(function(){n.selection&&n.selection.clear(),setTimeout(e)}),t.selectFn=function(e){r.val(e),e&&r.select()}},A.p.substituteKeyboardEvents=F,e.editablesTextareaEvents=function(){var e=this,t=e.textarea,n=e.textareaSpan,r=this.options.substituteKeyboardEvents(t,this);this.selectFn=function(e){r.select(e)},this.container.prepend(n),this.focusBlurEvents()},e.typedText=function(e){if(e===`
|
|
183
|
+
`)return this.handle(`enter`);var t=this.notify().cursor;t.parent.write(t,e),this.scrollHoriz()},e.cut=function(){var e=this,t=e.cursor;t.selection&&setTimeout(function(){e.notify(`edit`),t.parent.bubble(`reflow`)})},e.copy=function(){this.setTextareaSelection()},e.paste=function(e){this.options.statelessClipboard&&(e=e.slice(0,1)===`$`&&e.slice(-1)===`$`?e.slice(1,-1):`\\text{`+e+`}`),this.writeLatex(e).cursor.show()}}),oe=_(S,function(e,t){e.finalizeInsert=function(e,t){var n=this;n.postOrder(`finalizeTree`,e),n.postOrder(`contactWeld`,t),n.postOrder(`blur`),n.postOrder(`reflow`),n[y].siblingCreated&&n[y].siblingCreated(e,v),n[v].siblingCreated&&n[v].siblingCreated(e,y),n.bubble(`reflow`)},e.prepareInsertionAt=function(e){var t,n=e.options.maxDepth;if(n!==void 0){if((t=e.depth())>n)return!1;this.removeNodesDeeperThan(n-t)}return!0},e.removeNodesDeeperThan=function(e){for(var t,n=0,r=[[this,n]];r.length;)t=r.shift(),t[0].children().each(function(i){var a=i instanceof z?1:0;n=t[1]+a,n<=e?r.push([i,n]):(a?i.children():i).remove()})}}),I=_(oe,function(e,t){e.init=function(e,n,r){var i=this;t.init.call(i),i.ctrlSeq||=e,n&&(i.htmlTemplate=n),r&&(i.textTemplate=r)},e.replaces=function(e){e.disown(),this.replacedFragment=e},e.isEmpty=function(){return this.foldChildren(!0,function(e,t){return e&&t.isEmpty()})},e.parser=function(){var e=ae.block,t=this;return e.times(t.numBlocks()).map(function(e){t.blocks=e;for(var n=0;n<e.length;n+=1)e[n].adopt(t,t.ends[y],0);return t})},e.createLeftOf=function(e){var n=this,r=n.replacedFragment;n.createBlocks(),t.createLeftOf.call(n,e),r&&(r.adopt(n.ends[v],0,0),r.jQ.appendTo(n.ends[v].jQ),n.placeCursor(e),n.prepareInsertionAt(e)),n.finalizeInsert(e.options),n.placeCursor(e)},e.createBlocks=function(){var e,t,n=this,r=n.numBlocks(),i=n.blocks=Array(r);for(e=0;e<r;e+=1)t=i[e]=z(),t.adopt(n,n.ends[y],0)},e.placeCursor=function(e){e.insAtRightEnd(this.foldChildren(this.ends[v],function(e,t){return e.isEmpty()?e:t}))},e.moveTowards=function(e,t,n){var r=n&&this[n+`Into`];t.insAtDirEnd(-e,r||this.ends[-e])},e.deleteTowards=function(e,t){this.isEmpty()?t[e]=this.remove()[e]:this.moveTowards(e,t,null)},e.selectTowards=function(e,t){t[-e]=this,t[e]=this[e]},e.selectChildren=function(){return O(this,this)},e.unselectInto=function(e,t){t.insAtDirEnd(-e,t.anticursor.ancestors[this.id])},e.seek=function(e,t){function n(e){var t={};return t[v]=e.jQ.offset().left,t[y]=t[v]+e.jQ.outerWidth(),t}var r,i=this,a=n(i);return e<a[v]?t.insLeftOf(i):e>a[y]?t.insRightOf(i):(r=a[v],void i.eachChild(function(o){var s=n(o);return e<s[v]?(e-r<s[v]-e?o[v]?t.insAtRightEnd(o[v]):t.insLeftOf(i):t.insAtLeftEnd(o),!1):e>s[y]?void(o[y]?r=s[y]:a[y]-e<e-s[y]?t.insRightOf(i):t.insAtRightEnd(o)):(o.seek(e,t),!1)}))},e.numBlocks=function(){var e=this.htmlTemplate.match(/&\d+/g);return e?e.length:0},e.html=function(){var e,t,n,r=this,a=r.blocks,o=` mathquill-command-id=`+r.id,s=r.htmlTemplate.match(/<[^<>]+>|[^<>]+/g);for(i(`no unmatched angle brackets`,s.join(``)===this.htmlTemplate),e=0,t=s[0];t;e+=1,t=s[e])if(t.slice(-2)===`/>`)s[e]=t.slice(0,-2)+o+`/>`;else if(t.charAt(0)===`<`){i(`not an unmatched top-level close tag`,t.charAt(1)!==`/`),s[e]=t.slice(0,-1)+o+`>`,n=1;do e+=1,t=s[e],i(`no missing close tags`,t),t.slice(0,2)===`</`?--n:t.charAt(0)===`<`&&t.slice(-2)!==`/>`&&(n+=1);while(n>0)}return s.join(``).replace(/>&(\d+)/g,function(e,t){return` mathquill-block-id=`+a[t].id+`>`+a[t].join(`html`)})},e.latex=function(){return this.foldChildren(this.ctrlSeq,function(e,t){return e+`{`+(t.latex()||` `)+`}`})},e.textTemplate=[``],e.text=function(){var e=this,t=0;return e.foldChildren(e.textTemplate[t],function(n,r){t+=1;var i=r.text();return n&&e.textTemplate[t]===`(`&&i[0]===`(`&&i.slice(-1)===`)`?n+i.slice(1,-1)+e.textTemplate[t]:n+i+(e.textTemplate[t]||``)})}}),se=_(I,function(t,n){t.init=function(e,t,r){r||=e&&e.length>1?e.slice(1):e,n.init.call(this,e,t,[r])},t.parser=function(){return P.succeed(this)},t.numBlocks=function(){return 0},t.replaces=function(e){e.remove()},t.createBlocks=e,t.moveTowards=function(e,t){t.jQ.insDirOf(e,this.jQ),t[-e]=this,t[e]=this[e]},t.deleteTowards=function(e,t){t[e]=this.remove()[e]},t.seek=function(e,t){e-this.jQ.offset().left<this.jQ.outerWidth()/2?t.insLeftOf(this):t.insRightOf(this)},t.latex=function(){return this.ctrlSeq},t.text=function(){return this.textTemplate},t.placeCursor=e,t.isEmpty=function(){return!0}}),L=_(se,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span>`+(n||e)+`</span>`)}}),R=_(se,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-binary-operator">`+n+`</span>`,r)}}),z=_(oe,function(e,t){e.join=function(e){return this.foldChildren(``,function(t,n){return t+n[e]()})},e.html=function(){return this.join(`html`)},e.latex=function(){return this.join(`latex`)},e.text=function(){return this.ends[v]===this.ends[y]&&this.ends[v]!==0?this.ends[v].text():this.join(`text`)},e.keystroke=function(e,n,r){return!r.options.spaceBehavesLikeTab||e!==`Spacebar`&&e!==`Shift-Spacebar`?t.keystroke.apply(this,arguments):(n.preventDefault(),void r.escapeDir(e===`Shift-Spacebar`?v:y,e,n))},e.moveOutOf=function(e,t,n){n&&this.parent[n+`Into`]||!this[e]?t.insDirOf(e,this.parent):t.insAtDirEnd(-e,this[e])},e.selectOutOf=function(e,t){t.insDirOf(e,this.parent)},e.deleteOutOf=function(e,t){t.unwrapGramp()},e.seek=function(e,t){var n=this.ends[y];if(!n||n.jQ.offset().left+n.jQ.outerWidth()<e)return t.insAtRightEnd(this);if(e<this.ends[v].jQ.offset().left)return t.insAtLeftEnd(this);for(;e<n.jQ.offset().left;)n=n[v];return n.seek(e,t)},e.chToCmd=function(e,t){var n;return e.match(/^[a-eg-zA-Z]$/)?me(e):/^\d$/.test(e)?pe(e):t&&t.typingSlashWritesDivisionSymbol&&e===`/`?w[`÷`](e):t&&t.typingAsteriskWritesTimesSymbol&&e===`*`?w[`×`](e):(n=T[e]||w[e])?n(e):L(e)},e.write=function(e,t){var n;if(e.tooDeep())return!1;n=this.chToCmd(t,e.options),e.selection&&n.replaces(e.replaceSelection()),e.isTooDeep()||n.createLeftOf(e.show())},e.focus=function(){return this.jQ.addClass(`mq-hasCursor`),this.jQ.removeClass(`mq-empty`),this},e.blur=function(){return this.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.jQ.addClass(`mq-empty`),this}}),A.p.mouseEvents=!0,ee.StaticMath=function(e){return _(e.AbstractMathQuill,function(t,n){this.RootBlock=z,t.__mathquillify=function(e,t){return this.config(e),n.__mathquillify.call(this,`mq-math-mode`),this.__options.mouseEvents&&(this.__controller.delegateMouseEvents(),this.__controller.staticMathTextareaEvents()),this},t.init=function(){n.init.apply(this,arguments),this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField)},t.latex=function(){var t=n.latex.apply(this,arguments);return arguments.length>0&&this.__controller.root.postOrder(`registerInnerField`,this.innerFields=[],e.MathField),t}})},ce=_(z,u),ee.MathField=function(t){return _(t.EditableField,function(t,n){this.RootBlock=ce,t.__mathquillify=function(t,r){return this.config(t),r>1&&(this.__controller.root.reflow=e),n.__mathquillify.call(this,`mq-editable-field mq-math-mode`),delete this.__controller.root.reflow,this}})},le=_(S,function(e,t){function n(e){var t,n;return e.jQ[0].normalize(),t=e.jQ.contents().filter(function(e,t){return t.nodeType===3})[0],t||={data:``},i(`only node in TextBlock span is Text node`,t.nodeType===3),n=ue(t.data),n.jQadd(t),e.children().disown(),n.adopt(e,0,0)}e.ctrlSeq=`\\text`,e.replaces=function(e){e instanceof C?this.replacedText=e.remove().jQ.text():typeof e==`string`&&(this.replacedText=e)},e.jQadd=function(e){t.jQadd.call(this,e),this.ends[v]&&this.ends[v].jQadd(this.jQ[0].firstChild)},e.createLeftOf=function(e){var n,r=this;if(t.createLeftOf.call(this,e),r[y].siblingCreated&&r[y].siblingCreated(e.options,v),r[v].siblingCreated&&r[v].siblingCreated(e.options,y),r.bubble(`reflow`),e.insAtRightEnd(r),r.replacedText)for(n=0;n<r.replacedText.length;n+=1)r.write(e,r.replacedText.charAt(n))},e.parser=function(){var e=this,t=P.string,n=P.regex;return P.optWhitespace.then(t(`{`)).then(n(/^[^}]*/)).skip(t(`}`)).map(function(t){return t.length===0?C():(ue(t).adopt(e,0,0),e)})},e.textContents=function(){return this.foldChildren(``,function(e,t){return e+t.text})},e.text=function(){return`"`+this.textContents()+`"`},e.latex=function(){var e=this.textContents();return e.length===0?``:`\\text{`+e.replace(/\\/g,`\\backslash `).replace(/[{}]/g,`\\$&`)+`}`},e.html=function(){return`<span class="mq-text-mode" mathquill-command-id=`+this.id+`>`+this.textContents()+`</span>`},e.moveTowards=function(e,t){t.insAtDirEnd(-e,this)},e.moveOutOf=function(e,t){t.insDirOf(e,this)},e.unselectInto=e.moveTowards,e.selectTowards=I.prototype.selectTowards,e.deleteTowards=I.prototype.deleteTowards,e.selectOutOf=function(e,t){t.insDirOf(e,this)},e.deleteOutOf=function(e,t){this.isEmpty()&&t.insRightOf(this)},e.write=function(e,n){var r,i;e.show().deleteSelection(),n===`$`?this.isEmpty()?(e.insRightOf(this),L(`\\$`,`$`).createLeftOf(e)):e[y]?e[v]?(r=le(),i=this.ends[v],i.disown().jQ.detach(),i.adopt(r,0,0),e.insLeftOf(this),t.createLeftOf.call(r,e)):e.insLeftOf(this):e.insRightOf(this):e[v]?(e[v].appendText(n),this.bubble(`reflow`)):ue(n).createLeftOf(e)},e.seek=function(e,t){var r,i,a,o,s,c,l,u;for(t.hide(),r=n(this),i=this.jQ.width()/this.text.length,a=Math.round((e-this.jQ.offset().left)/i),a<=0?t.insAtLeftEnd(this):a>=r.text.length?t.insAtRightEnd(this):t.insLeftOf(r.splitRight(a)),o=e-t.show().offset().left,s=o&&o<0?v:y,c=s;t[s]&&o*c>0;)t[s].moveTowards(s,t),c=o,o=e-t.offset().left;s*o<-s*c&&t[-s].moveTowards(-s,t),t.anticursor?t.anticursor.parent===this&&(l=t[v]&&t[v].text.length,this.anticursorPosition===l?t.anticursor=x.copy(t):(this.anticursorPosition<l?(u=t[v].splitRight(this.anticursorPosition),t[v]=u):u=t[y].splitRight(this.anticursorPosition-l),t.anticursor=x(this,u[v],u))):this.anticursorPosition=t[v]&&t[v].text.length},e.blur=function(e){z.prototype.blur.call(this),e&&(this.textContents()===``?(this.remove(),e[v]===this?e[v]=this[v]:e[y]===this&&(e[y]=this[y])):n(this))},e.focus=z.prototype.focus}),ue=_(S,function(e,t){function n(e,t){return t.charAt(e===v?0:-1+t.length)}e.init=function(e){t.init.call(this),this.text=e},e.jQadd=function(e){this.dom=e,this.jQ=b(e)},e.jQize=function(){return this.jQadd(document.createTextNode(this.text))},e.appendText=function(e){this.text+=e,this.dom.appendData(e)},e.prependText=function(e){this.text=e+this.text,this.dom.insertData(0,e)},e.insTextAtDirEnd=function(e,t){a(t),t===y?this.appendText(e):this.prependText(e)},e.splitRight=function(e){var t=ue(this.text.slice(e)).adopt(this.parent,this,this[y]);return t.jQadd(this.dom.splitText(e)),this.text=this.text.slice(0,e),t},e.moveTowards=function(e,t){var r,i;return a(e),r=n(-e,this.text),i=this[-e],i?i.insTextAtDirEnd(r,e):ue(r).createDir(-e,t),this.deleteTowards(e,t)},e.latex=function(){return this.text},e.deleteTowards=function(e,t){this.text.length>1?e===y?(this.dom.deleteData(0,1),this.text=this.text.slice(1)):(this.dom.deleteData(-1+this.text.length,1),this.text=this.text.slice(0,-1)):(this.remove(),this.jQ.remove(),t[e]=this[e])},e.selectTowards=function(e,t){var r,i,o,s;return a(e),r=t.anticursor,i=n(-e,this.text),r[e]===this?(o=ue(i).createDir(e,t),r[e]=o,t.insDirOf(e,o)):(s=this[-e],s?s.insTextAtDirEnd(i,e):(o=ue(i).createDir(-e,t),o.jQ.insDirOf(-e,t.selection.jQ)),this.text.length===1&&r[-e]===this&&(r[-e]=this[-e])),this.deleteTowards(e,t)}}),w.text=w.textnormal=w.textrm=w.textup=w.textmd=le,w.em=w.italic=w.italics=w.emph=w.textit=w.textsl=d(`\\textit`,`i`,`class="mq-text-mode"`),w.strong=w.bold=w.textbf=d(`\\textbf`,`b`,`class="mq-text-mode"`),w.sf=w.textsf=d(`\\textsf`,`span`,`class="mq-sans-serif mq-text-mode"`),w.tt=w.texttt=d(`\\texttt`,`span`,`class="mq-monospace mq-text-mode"`),w.textsc=d(`\\textsc`,`span`,`style="font-variant:small-caps" class="mq-text-mode"`),w.uppercase=d(`\\uppercase`,`span`,`style="text-transform:uppercase" class="mq-text-mode"`),w.lowercase=d(`\\lowercase`,`span`,`style="text-transform:lowercase" class="mq-text-mode"`),de=_(I,function(e,t){e.init=function(e){t.init.call(this,`$`),this.cursor=e},e.htmlTemplate=`<span class="mq-math-mode">&0</span>`,e.createBlocks=function(){t.createBlocks.call(this),this.ends[v].cursor=this.cursor,this.ends[v].write=function(e,t){t===`$`?this.isEmpty()?(e.insRightOf(this.parent),this.parent.deleteTowards(dir,e),L(`\\$`,`$`).createLeftOf(e.show())):e[y]?e[v]?z.prototype.write.call(this,e,t):e.insLeftOf(this.parent):e.insRightOf(this.parent):z.prototype.write.call(this,e,t)}},e.latex=function(){return`$`+this.ends[v].latex()+`$`}}),fe=_(ce,function(e,t){e.keystroke=function(e){if(e!==`Spacebar`&&e!==`Shift-Spacebar`)return t.keystroke.apply(this,arguments)},e.write=function(e,t){if(e.show().deleteSelection(),t===`$`)de(e).createLeftOf(e);else{var n;t===`<`?n=`<`:t===`>`&&(n=`>`),L(t,n).createLeftOf(e)}}}),ee.TextField=function(e){return _(e.EditableField,function(e,t){this.RootBlock=fe,e.__mathquillify=function(){return t.__mathquillify.call(this,`mq-editable-field mq-text-mode`)},e.latex=function(e){return arguments.length>0?(this.__controller.renderLatexText(e),this.__controller.blurred&&this.__controller.cursor.hide().parent.blur(),this):this.__controller.exportLatex()}})},T[`\\`]=_(I,function(e,t){e.ctrlSeq=`\\`,e.replaces=function(e){this._replacedFragment=e.disown(),this.isEmpty=function(){return!1}},e.htmlTemplate=`<span class="mq-latex-command-input mq-non-leaf">\\<span>&0</span></span>`,e.textTemplate=[`\\`],e.createBlocks=function(){t.createBlocks.call(this),this.ends[v].focus=function(){return this.parent.jQ.addClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.removeClass(`mq-empty`),this},this.ends[v].blur=function(){return this.parent.jQ.removeClass(`mq-hasCursor`),this.isEmpty()&&this.parent.jQ.addClass(`mq-empty`),this},this.ends[v].write=function(e,t){e.show().deleteSelection(),t.match(/[a-z]/i)?L(t).createLeftOf(e):(this.parent.renderCommand(e),t===`\\`&&this.isEmpty()||e.parent.write(e,t))},this.ends[v].keystroke=function(e,n,r){return e===`Tab`||e===`Enter`||e===`Spacebar`?(this.parent.renderCommand(r.cursor),void n.preventDefault()):t.keystroke.apply(this,arguments)}},e.createLeftOf=function(e){if(t.createLeftOf.call(this,e),this._replacedFragment){var n=this.jQ[0];this.jQ=this._replacedFragment.jQ.addClass(`mq-blur`).bind(`mousedown mousemove`,function(e){return b(e.target=n).trigger(e),!1}).insertBefore(this.jQ).add(this.jQ)}},e.latex=function(){return`\\`+this.ends[v].latex()+` `},e.renderCommand=function(e){var t,n;this.jQ=this.jQ.last(),this.remove(),this[y]?e.insLeftOf(this[y]):e.insAtRightEnd(this.parent),t=this.ends[v].latex(),t||=` `,n=w[t],n?(n=n(t),this._replacedFragment&&n.replaces(this._replacedFragment),n.createLeftOf(e)):(n=le(),n.replaces(t),n.createLeftOf(e),e.insRightOf(n),this._replacedFragment&&this._replacedFragment.remove())}}),w[`∉`]=w.notin=r(R,`\\notin `,`∉`),w[`≅`]=w.cong=r(R,`\\cong `,`≅`),w[`≡`]=w.equiv=r(R,`\\equiv `,`≡`),w[`⊕`]=w.oplus=r(R,`\\oplus `,`⊕`),w[`⊗`]=w.otimes=r(R,`\\otimes `,`⊗`),w[`≠`]=w.ne=w.neq=r(R,`\\ne `,`≠`),w[`≇`]=w.ncong=r(R,`\\ncong `,`≇`),w[`∗`]=w.ast=w.star=w.loast=w.lowast=r(R,`\\ast `,`∗`),w.therefor=w.therefore=r(R,`\\therefore `,`∴`),w.cuz=w.because=r(R,`\\because `,`∵`),w.prop=w.propto=r(R,`\\propto `,`∝`),w[`≈`]=w.asymp=w.approx=r(R,`\\approx `,`≈`),w[`≉`]=w.nasymp=w.napprox=r(R,`\\napprox `,`≉`),w.isin=w.in=r(R,`\\in `,`∈`),w.ni=w.contains=r(R,`\\ni `,`∋`),w.notni=w.niton=w.notcontains=w.doesnotcontain=E[`\\not\\ni`]=r(R,`\\not\\ni `,`∌`),w.sub=w.subset=r(R,`\\subset `,`⊂`),w.sup=w.supset=w.superset=r(R,`\\supset `,`⊃`),w.nsub=w.notsub=w.nsubset=w.notsubset=E[`\\not\\subset`]=r(R,`\\not\\subset `,`⊄`),w.nsup=w.notsup=w.nsupset=w.notsupset=w.nsuperset=w.notsuperset=E[`\\not\\supset`]=r(R,`\\not\\supset `,`⊅`),w.sube=w.subeq=w.subsete=w.subseteq=r(R,`\\subseteq `,`⊆`),w.supe=w.supeq=w.supsete=w.supseteq=w.supersete=w.superseteq=r(R,`\\supseteq `,`⊇`),w.nsube=w.nsubeq=w.notsube=w.notsubeq=w.nsubsete=w.nsubseteq=w.notsubsete=w.notsubseteq=E[`\\not\\subseteq`]=r(R,`\\not\\subseteq `,`⊈`),w.nsupe=w.nsupeq=w.notsupe=w.notsupeq=w.nsupsete=w.nsupseteq=w.notsupsete=w.notsupseteq=w.nsupersete=w.nsuperseteq=w.notsupersete=w.notsuperseteq=E[`\\not\\supseteq`]=r(R,`\\not\\supseteq `,`⊉`),w.N=w.naturals=w.Naturals=r(L,`\\mathbb{N}`,`ℕ`),w.P=w.primes=w.Primes=w.projective=w.Projective=w.probability=w.Probability=r(L,`\\mathbb{P}`,`ℙ`),w.Z=w.integers=w.Integers=r(L,`\\mathbb{Z}`,`ℤ`),w.Q=w.rationals=w.Rationals=r(L,`\\mathbb{Q}`,`ℚ`),w.R=w.reals=w.Reals=r(L,`\\mathbb{R}`,`ℝ`),w.C=w.complex=w.Complex=w.complexes=w.Complexes=w.complexplane=w.Complexplane=w.ComplexPlane=r(L,`\\mathbb{C}`,`ℂ`),w.H=w.Hamiltonian=w.quaternions=w.Quaternions=r(L,`\\mathbb{H}`,`ℍ`),w.quad=w.emsp=r(L,`\\quad `,` `),w.qquad=r(L,`\\qquad `,` `),w.diamond=r(L,`\\diamond `,`◇`),w.bigtriangleup=r(L,`\\bigtriangleup `,`△`),w.ominus=r(L,`\\ominus `,`⊖`),w.uplus=r(L,`\\uplus `,`⊎`),w.bigtriangledown=r(L,`\\bigtriangledown `,`▽`),w.sqcap=r(L,`\\sqcap `,`⊓`),w.triangleleft=r(L,`\\triangleleft `,`⊲`),w.sqcup=r(L,`\\sqcup `,`⊔`),w.triangleright=r(L,`\\triangleright `,`⊳`),w.odot=w.circledot=r(L,`\\odot `,`⊙`),w.bigcirc=r(L,`\\bigcirc `,`◯`),w.dagger=r(L,`\\dagger `,`†`),w.ddagger=r(L,`\\ddagger `,`‡`),w.wr=r(L,`\\wr `,`≀`),w.amalg=r(L,`\\amalg `,`∐`),w.models=r(L,`\\models `,`⊨`),w.prec=r(L,`\\prec `,`≺`),w.succ=r(L,`\\succ `,`≻`),w.preceq=r(L,`\\preceq `,`≼`),w.succeq=r(L,`\\succeq `,`≽`),w.simeq=r(L,`\\simeq `,`≃`),w.mid=r(L,`\\mid `,`∣`),w.ll=r(L,`\\ll `,`≪`),w.gg=r(L,`\\gg `,`≫`),w.parallel=r(L,`\\parallel `,`∥`),w.nparallel=r(L,`\\nparallel `,`∦`),w.bowtie=r(L,`\\bowtie `,`⋈`),w.sqsubset=r(L,`\\sqsubset `,`⊏`),w.sqsupset=r(L,`\\sqsupset `,`⊐`),w.smile=r(L,`\\smile `,`⌣`),w.sqsubseteq=r(L,`\\sqsubseteq `,`⊑`),w.sqsupseteq=r(L,`\\sqsupseteq `,`⊒`),w.doteq=r(L,`\\doteq `,`≐`),w.frown=r(L,`\\frown `,`⌢`),w.vdash=r(L,`\\vdash `,`⊦`),w.dashv=r(L,`\\dashv `,`⊣`),w.nless=r(L,`\\nless `,`≮`),w.ngtr=r(L,`\\ngtr `,`≯`),w.longleftarrow=r(L,`\\longleftarrow `,`←`),w.longrightarrow=r(L,`\\longrightarrow `,`→`),w.Longleftarrow=r(L,`\\Longleftarrow `,`⇐`),w.Longrightarrow=r(L,`\\Longrightarrow `,`⇒`),w.longleftrightarrow=r(L,`\\longleftrightarrow `,`↔`),w.updownarrow=r(L,`\\updownarrow `,`↕`),w.Longleftrightarrow=r(L,`\\Longleftrightarrow `,`⇔`),w.Updownarrow=r(L,`\\Updownarrow `,`⇕`),w.mapsto=r(L,`\\mapsto `,`↦`),w.nearrow=r(L,`\\nearrow `,`↗`),w.hookleftarrow=r(L,`\\hookleftarrow `,`↩`),w.hookrightarrow=r(L,`\\hookrightarrow `,`↪`),w.searrow=r(L,`\\searrow `,`↘`),w.leftharpoonup=r(L,`\\leftharpoonup `,`↼`),w.rightharpoonup=r(L,`\\rightharpoonup `,`⇀`),w.swarrow=r(L,`\\swarrow `,`↙`),w.leftharpoondown=r(L,`\\leftharpoondown `,`↽`),w.rightharpoondown=r(L,`\\rightharpoondown `,`⇁`),w.nwarrow=r(L,`\\nwarrow `,`↖`),w.ldots=r(L,`\\ldots `,`…`),w.cdots=r(L,`\\cdots `,`⋯`),w.vdots=r(L,`\\vdots `,`⋮`),w.ddots=r(L,`\\ddots `,`⋱`),w.surd=r(L,`\\surd `,`√`),w.triangle=r(L,`\\triangle `,`△`),w.ell=r(L,`\\ell `,`ℓ`),w.top=r(L,`\\top `,`⊤`),w.flat=r(L,`\\flat `,`♭`),w.natural=r(L,`\\natural `,`♮`),w.sharp=r(L,`\\sharp `,`♯`),w.wp=r(L,`\\wp `,`℘`),w.bot=r(L,`\\bot `,`⊥`),w.clubsuit=r(L,`\\clubsuit `,`♣`),w.diamondsuit=r(L,`\\diamondsuit `,`♢`),w.heartsuit=r(L,`\\heartsuit `,`♡`),w.spadesuit=r(L,`\\spadesuit `,`♠`),w.circledot=r(L,`\\circledot `,`⊙`),w.middot=r(L,`\\middot `,`·`),w.dottedsquare=r(L,`\\dottedsquare `,`⬚`),w.square=r(L,`\\square `,`⬜`),w.rectangle=r(L,`\\rectangle `,`▯`),w.oint=r(L,`\\oint `,`∮`),w.bigcap=r(L,`\\bigcap `,`∩`),w.bigcup=r(L,`\\bigcup `,`∪`),w.bigsqcup=r(L,`\\bigsqcup `,`⊔`),w.bigvee=r(L,`\\bigvee `,`∨`),w.bigwedge=r(L,`\\bigwedge `,`∧`),w.bigodot=r(L,`\\bigodot `,`⊙`),w.bigotimes=r(L,`\\bigotimes `,`⊗`),w.bigoplus=r(L,`\\bigoplus `,`⊕`),w.biguplus=r(L,`\\biguplus `,`⊎`),w.lfloor=r(L,`\\lfloor `,`⌊`),w.rfloor=r(L,`\\rfloor `,`⌋`),w.lceil=r(L,`\\lceil `,`⌈`),w.rceil=r(L,`\\rceil `,`⌉`),w.opencurlybrace=w.lbrace=r(L,`\\lbrace `,`{`),w.closecurlybrace=w.rbrace=r(L,`\\rbrace `,`}`),w.lbrack=r(L,`[`),w.rbrack=r(L,`]`),w.mug=r(L,`\\mug `,`µg`),w.mus=r(L,`\\mus `,`µs`),w.mum=r(L,`\\mum `,`µm`),w.muL=r(L,`\\muL `,`µL`),w.slash=r(L,`/`),w.vert=r(L,`|`),w.perp=w.perpendicular=r(L,`\\perp `,`⊥`),w.nabla=w.del=r(L,`\\nabla `,`∇`),w.hbar=r(L,`\\hbar `,`ℏ`),w.AA=w.Angstrom=w.angstrom=r(L,`\\text\\AA `,`Å`),w.ring=w.circ=w.circle=r(L,`\\circ `,`∘`),w.bull=w.bullet=r(L,`\\bullet `,`•`),w.setminus=w.smallsetminus=r(L,`\\setminus `,`∖`),w.not=w[`¬`]=w.neg=r(L,`\\neg `,`¬`),w[`…`]=w.dots=w.ellip=w.hellip=w.ellipsis=w.hellipsis=r(L,`\\dots `,`…`),w.converges=w.darr=w.dnarr=w.dnarrow=w.downarrow=r(L,`\\downarrow `,`↓`),w.dArr=w.dnArr=w.dnArrow=w.Downarrow=r(L,`\\Downarrow `,`⇓`),w.diverges=w.uarr=w.uparrow=r(L,`\\uparrow `,`↑`),w.uArr=w.Uparrow=r(L,`\\Uparrow `,`⇑`),w.to=r(R,`\\to `,`→`),w.rarr=w.rightarrow=r(L,`\\rightarrow `,`→`),w.implies=r(R,`\\Rightarrow `,`⇒`),w.rArr=w.Rightarrow=r(L,`\\Rightarrow `,`⇒`),w.gets=r(R,`\\gets `,`←`),w.larr=w.leftarrow=r(L,`\\leftarrow `,`←`),w.impliedby=r(R,`\\Leftarrow `,`⇐`),w.lArr=w.Leftarrow=r(L,`\\Leftarrow `,`⇐`),w.harr=w.lrarr=w.leftrightarrow=r(L,`\\leftrightarrow `,`↔`),w.iff=r(R,`\\Leftrightarrow `,`⇔`),w.hArr=w.lrArr=w.Leftrightarrow=r(L,`\\Leftrightarrow `,`⇔`),w.Re=w.Real=w.real=r(L,`\\Re `,`ℜ`),w.Im=w.imag=w.image=w.imagin=w.imaginary=w.Imaginary=r(L,`\\Im `,`ℑ`),w.part=w.partial=r(L,`\\partial `,`∂`),w.infty=w.infin=w.infinity=r(L,`\\infty `,`∞`),w.pounds=r(L,`\\pounds `,`£`),w.alef=w.alefsym=w.aleph=w.alephsym=r(L,`\\aleph `,`ℵ`),w.xist=w.xists=w.exist=w.exists=r(L,`\\exists `,`∃`),w.nexists=w.nexist=r(L,`\\nexists `,`∄`),w.and=w.land=w.wedge=r(R,`\\wedge `,`∧`),w.or=w.lor=w.vee=r(R,`\\vee `,`∨`),w.o=w.O=w.empty=w.emptyset=w.oslash=w.Oslash=w.nothing=w.varnothing=r(R,`\\varnothing `,`∅`),w.cup=w.union=r(R,`\\cup `,`∪`),w.cap=w.intersect=w.intersection=r(R,`\\cap `,`∩`),w.deg=w.degree=r(L,`\\degree `,`°`),w.ang=w.angle=r(L,`\\angle `,`∠`),w.measuredangle=r(L,`\\measuredangle `,`m∠`),pe=_(L,function(e,t){e.createLeftOf=function(e){e.options.autoSubscriptNumerals&&e.parent!==e.parent.parent.sub&&(e[v]instanceof B&&!1!==e[v].isItalic||e[v]instanceof He&&e[v][v]instanceof B&&!1!==e[v][v].isItalic)?(w._().createLeftOf(e),t.createLeftOf.call(this,e),e.insRightOf(e.parent.parent)):t.createLeftOf.call(this,e)}}),B=_(se,function(e,t){e.init=function(e,n){t.init.call(this,e,`<var>`+(n||e)+`</var>`)},e.text=function(){var e=this.ctrlSeq;return this.isPartOfOperator?e[0]==`\\`?e=e.slice(1,e.length):e[e.length-1]==` `&&(e=e.slice(0,-1)):(!this[v]||this[v]instanceof B||this[v]instanceof R||this[v].ctrlSeq===`\\ `||(e=`*`+e),!this[y]||this[y]instanceof R||this[y]instanceof He||(e+=`*`)),e}}),A.p.autoCommands={_maxLength:0},j.autoCommands=function(e){var t,n,r,i,a;if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){if(a=t[i],a.length<2)throw`autocommand "`+a+`" not minimum length of 2`;if(w[a]===ve)throw`"`+a+`" is a built-in operator name`;n[a]=1,r=st(r,a.length)}return n._maxLength=r,n},me=_(B,function(e,t){function n(e){return!e||e instanceof R||e instanceof We}e.init=function(e){return t.init.call(this,this.letter=e)},e.createLeftOf=function(e){var n,r,i,a,o;if(t.createLeftOf.apply(this,arguments),n=e.options.autoCommands,r=n._maxLength,r>0){for(i=``,a=this,o=0;a instanceof me&&a.ctrlSeq===a.letter&&o<r;)i=a.letter+i,a=a[v],o+=1;for(;i.length;){if(n.hasOwnProperty(i)){for(o=1,a=this;o<i.length;o+=1,a=a[v]);return C(a,this).remove(),e[v]=a[v],w[i](i).createLeftOf(e)}i=i.slice(1)}}},e.italicize=function(e){return this.isItalic=e,this.isPartOfOperator=!e,this.jQ.toggleClass(`mq-operator-name`,!e),this},e.finalizeTree=e.siblingDeleted=e.siblingCreated=function(e,t){t!==v&&this[y]instanceof me||this.autoUnItalicize(e)},e.autoUnItalicize=function(e){var t,r,i,a,o,s,c,l,u,d,f,p,m=e.autoOperatorNames;if(m._maxLength!==0){for(t=this.letter,r=this[v];r instanceof me;r=r[v])t=r.letter+t;for(i=this[y];i instanceof me;i=i[y])t+=i.letter;C(r[y]||this.parent.ends[v],i[v]||this.parent.ends[y]).each(function(e){e.italicize(!0).jQ.removeClass(`mq-first mq-last mq-followed-by-supsub`),e.ctrlSeq=e.letter});t:for(a=0,o=r[y]||this.parent.ends[v];a<t.length;a+=1,o=o[y])for(s=ot(m._maxLength,t.length-a);s>0;--s)if(c=t.slice(a,a+s),m.hasOwnProperty(c)){for(l=0,u=o;l<s;l+=1,u=u[y])u.italicize(!1),d=u;f=he.hasOwnProperty(c),o.ctrlSeq=(f?`\\`:`\\operatorname{`)+o.ctrlSeq,d.ctrlSeq+=f?` `:`}`,_e.hasOwnProperty(c)&&d[v][v][v].jQ.addClass(`mq-last`),n(o[v])||o.jQ.addClass(`mq-first`),n(d[y])||(d[y]instanceof He?(p=d[y],(p.siblingCreated=p.siblingDeleted=function(){p.jQ.toggleClass(`mq-after-operator-name`,!(p[y]instanceof Xe))})()):d.jQ.toggleClass(`mq-last`,!(d[y]instanceof Xe))),a+=s-1,o=d;continue t}}}}),he={},ge=A.p.autoOperatorNames={_maxLength:9},_e={limsup:1,liminf:1,projlim:1,injlim:1},function(){var e,t,n,r,i=`arg deg det dim exp gcd hom inf ker lg ln log max min sup limsup liminf injlim projlim Pr`.split(` `);for(e=0;e<i.length;e+=1)he[i[e]]=ge[i[e]]=1;for(t=`sin cos tan arcsin arccos arctan sinh cosh tanh sec csc cot coth`.split(` `),e=0;e<t.length;e+=1)he[t[e]]=1;for(n=`sin cos tan sec cosec csc cotan cot ctg`.split(` `),e=0;e<n.length;e+=1)ge[n[e]]=ge[`arc`+n[e]]=ge[n[e]+`h`]=ge[`ar`+n[e]+`h`]=ge[`arc`+n[e]+`h`]=1;for(r=`gcf hcf lcm proj span`.split(` `),e=0;e<r.length;e+=1)ge[r[e]]=1}(),j.autoOperatorNames=function(e){var t,n,r,i,a;if(!/^[a-z]+(?: [a-z]+)*$/i.test(e))throw`"`+e+`" not a space-delimited list of only letters`;for(t=e.split(` `),n={},r=0,i=0;i<t.length;i+=1){if(a=t[i],a.length<2)throw`"`+a+`" not minimum length of 2`;n[a]=1,r=st(r,a.length)}return n._maxLength=r,n},ve=_(se,function(e,t){e.init=function(e){this.ctrlSeq=e},e.createLeftOf=function(e){var t,n=this.ctrlSeq;for(t=0;t<n.length;t+=1)me(n.charAt(t)).createLeftOf(e)},e.parser=function(){var e,t=this.ctrlSeq,n=z();for(e=0;e<t.length;e+=1)me(t.charAt(e)).adopt(n,n.ends[y],0);return P.succeed(n.children())}}),ge)ge.hasOwnProperty(V)&&(w[V]=ve);for(Me in w.operatorname=_(I,function(t){t.createLeftOf=e,t.numBlocks=function(){return 1},t.parser=function(){return ae.block.map(function(e){return e.children()})}}),w.f=_(me,function(e,t){e.init=function(){se.p.init.call(this,this.letter=`f`,`<var class="mq-f">f</var>`)},e.italicize=function(e){return this.jQ.html(`f`).toggleClass(`mq-f`,e),t.italicize.apply(this,arguments)}}),w[` `]=w.space=r(L,`\\ `,` `),w[`'`]=w.prime=r(L,`'`,`′`),w[`″`]=w.dprime=r(L,`″`,`″`),w[`"`]=w.doublePrime=r(L,`"`,`″`),w.backslash=r(L,`\\backslash `,`\\`),T[`\\`]||=w.backslash,w.$=r(L,`\\$`,`$`),ye=_(se,function(e,t){e.init=function(e,n){t.init.call(this,e,`<span class="mq-nonSymbola">`+(n||e)+`</span>`)}}),w[`@`]=ye,w[`&`]=r(ye,`\\&`,`&`),w[`%`]=r(ye,`\\%`,`%`),w.alpha=w.beta=w.gamma=w.delta=w.zeta=w.eta=w.theta=w.iota=w.kappa=w.mu=w.nu=w.xi=w.rho=w.sigma=w.tau=w.chi=w.psi=w.omega=_(B,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),w.phi=r(B,`\\phi `,`ϕ`),w.phiv=w.varphi=r(B,`\\varphi `,`φ`),w.epsilon=r(B,`\\epsilon `,`ϵ`),w.epsiv=w.varepsilon=r(B,`\\varepsilon `,`ε`),w.piv=w.varpi=r(B,`\\varpi `,`ϖ`),w.sigmaf=w.sigmav=w.varsigma=r(B,`\\varsigma `,`ς`),w.thetav=w.vartheta=w.thetasym=r(B,`\\vartheta `,`ϑ`),w.upsilon=w.upsi=r(B,`\\upsilon `,`υ`),w.gammad=w.Gammad=w.digamma=r(B,`\\digamma `,`ϝ`),w.kappav=w.varkappa=r(B,`\\varkappa `,`ϰ`),w.rhov=w.varrho=r(B,`\\varrho `,`ϱ`),w.pi=w.π=r(ye,`\\pi `,`π`),w.lambda=r(ye,`\\lambda `,`λ`),w.Upsilon=w.Upsi=w.upsih=w.Upsih=r(se,`\\Upsilon `,`<var style="font-family: serif">ϒ</var>`),w.Gamma=w.Delta=w.Theta=w.Lambda=w.Xi=w.Pi=w.Sigma=w.Phi=w.Psi=w.Omega=_(L,function(e,t){e.init=function(e){t.init.call(this,`\\`+e+` `,`&`+e+`;`)}}),w.forall=w[`∀`]=r(L,`\\forall `,`∀`),be=_(I,function(e){e.init=function(e){this.latex=e},e.createLeftOf=function(e){var t=ae.parse(this.latex);t.children().adopt(e.parent,e[v],e[y]),e[v]=t.ends[y],t.jQize().insertBefore(e.jQ),t.finalizeInsert(e.options,e),t.ends[y][y].siblingCreated&&t.ends[y][y].siblingCreated(e.options,v),t.ends[v][v].siblingCreated&&t.ends[v][v].siblingCreated(e.options,y),e.parent.bubble(`reflow`)},e.parser=function(){var e=ae.parse(this.latex).children();return P.succeed(e)}}),w[`¹`]=r(be,`^1`),w[`²`]=r(be,`^2`),w[`³`]=r(be,`^3`),w[`¼`]=r(be,`\\frac14`),w[`½`]=r(be,`\\frac12`),w[`¾`]=r(be,`\\frac34`),xe=_(R,function(e){e.init=L.prototype.init,e.contactWeld=e.siblingCreated=e.siblingDeleted=function(e,t){function n(e){return e[v]?e[v]instanceof R||/^[,;:\(\[]$/.test(e[v].ctrlSeq)?``:`mq-binary-operator`:e.parent&&e.parent.parent&&e.parent.parent.isStyleBlock()?n(e.parent.parent):``}if(t!==y)return this.jQ[0].className=n(this),this}}),w[`+`]=r(xe,`+`,`+`),w[`–`]=w[`-`]=r(xe,`-`,`−`),w[`±`]=w.pm=w.plusmn=w.plusminus=r(xe,`\\pm `,`±`),w.mp=w.mnplus=w.minusplus=r(xe,`\\mp `,`∓`),T[`*`]=w.sdot=w.cdot=r(R,`\\cdot `,`·`,`*`),Se=_(R,function(e,t){e.init=function(e,n){this.data=e,this.strict=n;var r=n?`Strict`:``;t.init.call(this,e[`ctrlSeq`+r],e[`html`+r],e[`text`+r])},e.swap=function(e){this.strict=e;var t=e?`Strict`:``;this.ctrlSeq=this.data[`ctrlSeq`+t],this.jQ.html(this.data[`html`+t]),this.textTemplate=[this.data[`text`+t]]},e.deleteTowards=function(e,n){if(e===v&&!this.strict)return this.swap(!0),void this.bubble(`reflow`);t.deleteTowards.apply(this,arguments)}}),Ce={ctrlSeq:`\\le `,html:`≤`,text:`≤`,ctrlSeqStrict:`<`,htmlStrict:`<`,textStrict:`<`},we={ctrlSeq:`\\ge `,html:`≥`,text:`≥`,ctrlSeqStrict:`>`,htmlStrict:`>`,textStrict:`>`},w[`<`]=w.lt=r(Se,Ce,!0),w[`>`]=w.gt=r(Se,we,!0),w[`≤`]=w.le=w.leq=r(Se,Ce,!1),w[`≥`]=w.ge=w.geq=r(Se,we,!1),Te=_(R,function(e,t){e.init=function(){t.init.call(this,`=`,`=`)},e.createLeftOf=function(e){if(e[v]instanceof Se&&e[v].strict)return e[v].swap(!1),void e[v].bubble(`reflow`);t.createLeftOf.apply(this,arguments)}}),w[`=`]=Te,w[`×`]=w.times=r(R,`\\times `,`×`,`[x]`),w[`÷`]=w.div=w.divide=w.divides=r(R,`\\div `,`÷`,`[/]`),T[`~`]=w.sim=r(R,`\\sim `,`~`,`~`),T[`≁`]=w.nsim=r(R,`\\nsim `,`≁`,`≁`),w.complement=w[`∁`]=r(L,`\\complement `,`∁`),w.nexists=w[`∄`]=r(L,`\\nexists `,`∄`),w.sphericalangle=w[`∢`]=r(L,`\\sphericalangle `,`∢`),w.iint=w[`∬`]=r(L,`\\iint `,`∬`),w.iiint=w[`∭`]=r(L,`\\iiint `,`∭`),w.oiint=w[`∯`]=r(L,`\\oiint `,`∯`),w.oiiint=w[`∰`]=r(L,`\\oiiint `,`∰`),w.backsim=w[`∽`]=r(L,`\\backsim `,`∽`),w.backsimeq=w[`⋍`]=r(L,`\\backsimeq `,`⋍`),w.eqsim=w[`≂`]=r(L,`\\eqsim `,`≂`),w.ncong=w[`≇`]=r(L,`\\ncong `,`≇`),w.approxeq=w[`≊`]=r(L,`\\approxeq `,`≊`),w.bumpeq=w[`≏`]=r(L,`\\bumpeq `,`≏`),w.Bumpeq=w[`≎`]=r(L,`\\Bumpeq `,`≎`),w.doteqdot=w[`≑`]=r(L,`\\doteqdot `,`≑`),w.fallingdotseq=w[`≒`]=r(L,`\\fallingdotseq `,`≒`),w.risingdotseq=w[`≓`]=r(L,`\\risingdotseq `,`≓`),w.eqcirc=w[`≖`]=r(L,`\\eqcirc `,`≖`),w.circeq=w[`≗`]=r(L,`\\circeq `,`≗`),w.triangleq=w[`≜`]=r(L,`\\triangleq `,`≜`),w.leqq=w[`≦`]=r(L,`\\leqq `,`≦`),w.geqq=w[`≧`]=r(L,`\\geqq `,`≧`),w.lneqq=w[`≨`]=r(L,`\\lneqq `,`≨`),w.gneqq=w[`≩`]=r(L,`\\gneqq `,`≩`),w.between=w[`≬`]=r(L,`\\between `,`≬`),w.nleq=w[`≰`]=r(L,`\\nleq `,`≰`),w.ngeq=w[`≱`]=r(L,`\\ngeq `,`≱`),w.lesssim=w[`≲`]=r(L,`\\lesssim `,`≲`),w.gtrsim=w[`≳`]=r(L,`\\gtrsim `,`≳`),w.lessgtr=w[`≶`]=r(L,`\\lessgtr `,`≶`),w.gtrless=w[`≷`]=r(L,`\\gtrless `,`≷`),w.preccurlyeq=w[`≼`]=r(L,`\\preccurlyeq `,`≼`),w.succcurlyeq=w[`≽`]=r(L,`\\succcurlyeq `,`≽`),w.precsim=w[`≾`]=r(L,`\\precsim `,`≾`),w.succsim=w[`≿`]=r(L,`\\succsim `,`≿`),w.nprec=w[`⊀`]=r(L,`\\nprec `,`⊀`),w.nsucc=w[`⊁`]=r(L,`\\nsucc `,`⊁`),w.subsetneq=w[`⊊`]=r(L,`\\subsetneq `,`⊊`),w.supsetneq=w[`⊋`]=r(L,`\\supsetneq `,`⊋`),w.vDash=w[`⊨`]=r(L,`\\vDash `,`⊨`),w.Vdash=w[`⊩`]=r(L,`\\Vdash `,`⊩`),w.Vvdash=w[`⊪`]=r(L,`\\Vvdash `,`⊪`),w.VDash=w[`⊫`]=r(L,`\\VDash `,`⊫`),w.nvdash=w[`⊬`]=r(L,`\\nvdash `,`⊬`),w.nvDash=w[`⊭`]=r(L,`\\nvDash `,`⊭`),w.nVdash=w[`⊮`]=r(L,`\\nVdash `,`⊮`),w.nVDash=w[`⊯`]=r(L,`\\nVDash `,`⊯`),w.vartriangleleft=w[`⊲`]=r(L,`\\vartriangleleft `,`⊲`),w.vartriangleright=w[`⊳`]=r(L,`\\vartriangleright `,`⊳`),w.trianglelefteq=w[`⊴`]=r(L,`\\trianglelefteq `,`⊴`),w.trianglerighteq=w[`⊵`]=r(L,`\\trianglerighteq `,`⊵`),w.multimap=w[`⊸`]=r(L,`\\multimap `,`⊸`),w.Subset=w[`⋐`]=r(L,`\\Subset `,`⋐`),w.Supset=w[`⋑`]=r(L,`\\Supset `,`⋑`),w.Cap=w[`⋒`]=r(L,`\\Cap `,`⋒`),w.Cup=w[`⋓`]=r(L,`\\Cup `,`⋓`),w.pitchfork=w[`⋔`]=r(L,`\\pitchfork `,`⋔`),w.lessdot=w[`⋖`]=r(L,`\\lessdot `,`⋖`),w.gtrdot=w[`⋗`]=r(L,`\\gtrdot `,`⋗`),w.lll=w[`⋘`]=r(L,`\\lll `,`⋘`),w.ggg=w[`⋙`]=r(L,`\\ggg `,`⋙`),w.lesseqgtr=w[`⋚`]=r(L,`\\lesseqgtr `,`⋚`),w.gtreqless=w[`⋛`]=r(L,`\\gtreqless `,`⋛`),w.curlyeqprec=w[`⋞`]=r(L,`\\curlyeqprec `,`⋞`),w.curlyeqsucc=w[`⋟`]=r(L,`\\curlyeqsucc `,`⋟`),w.nsim=w[`≁`]=r(L,`\\nsim `,`≁`),w.lnsim=w[`⋦`]=r(L,`\\lnsim `,`⋦`),w.gnsim=w[`⋧`]=r(L,`\\gnsim `,`⋧`),w.precnsim=w[`⋨`]=r(L,`\\precnsim `,`⋨`),w.succnsim=w[`⋩`]=r(L,`\\succnsim `,`⋩`),w.ntriangleleft=w[`⋪`]=r(L,`\\ntriangleleft `,`⋪`),w.ntriangleright=w[`⋫`]=r(L,`\\ntriangleright `,`⋫`),w.ntrianglelefteq=w[`⋬`]=r(L,`\\ntrianglelefteq `,`⋬`),w.ntrianglerighteq=w[`⋭`]=r(L,`\\ntrianglerighteq `,`⋭`),w.blacksquare=w[`∎`]=r(L,`\\blacksquare `,`∎`),w.colon=w[`∶`]=r(L,`\\colon `,`∶`),w.llcorner=w[`∟`]=r(L,`\\llcorner `,`∟`),w.dotplus=w[`∔`]=r(R,`\\dotplus `,`∔`),w.nmid=w[`∤`]=r(R,`
|
|
184
|
+
mid `,`∤`),w.intercal=w[`⊺`]=r(R,`\\intercal `,`⊺`),w.veebar=w[`⊻`]=r(R,`\\veebar `,`⊻`),w.barwedge=w[`⊼`]=r(R,`\\barwedge `,`⊼`),w.ltimes=w[`⋉`]=r(R,`\\ltimes `,`⋉`),w.rtimes=w[`⋊`]=r(R,`\\rtimes `,`⋊`),w.leftthreetimes=w[`⋋`]=r(R,`\\leftthreetimes `,`⋋`),w.rightthreetimes=w[`⋌`]=r(R,`\\rightthreetimes `,`⋌`),w.curlyvee=w[`⋎`]=r(R,`\\curlyvee `,`⋎`),w.curlywedge=w[`⋏`]=r(R,`\\curlywedge `,`⋏`),w.circledcirc=w[`⊚`]=r(R,`\\circledcirc `,`⊚`),w.circledast=w[`⊛`]=r(R,`\\circledast `,`⊛`),w.circleddash=w[`⊝`]=r(R,`\\circleddash `,`⊝`),w.boxplus=w[`⊞`]=r(R,`\\boxplus `,`⊞`),w.boxminus=w[`⊟`]=r(R,`\\boxminus `,`⊟`),w.boxtimes=w[`⊠`]=r(R,`\\boxtimes `,`⊠`),w.boxdot=w[`⊡`]=r(R,`\\boxdot `,`⊡`),w[`∂`]=w.partial,w[`∃`]=w.exists,w[`∅`]=w.varnothing,w[`∆`]=w.triangle,w[`∇`]=w.nabla,w[`∈`]=w.in,w[`∊`]=w.in,w[`∋`]=w.ni,w[`∌`]=w.notni,w[`∍`]=w.ni,w[`∐`]=w.amalg,w[`−`]=w[`-`],w[`∓`]=w.mp,w[`∖`]=w.setminus,w[`∘`]=w.circ,w[`∙`]=w.bullet,w[`∝`]=w.propto,w[`∞`]=w.infty,w[`∠`]=w.angle,w[`∡`]=w.measuredangle,w[`∣`]=w.divides,w[`∥`]=w.parallel,w[`∦`]=w.nparallel,w[`∧`]=w.wedge,w[`∨`]=w.vee,w[`∩`]=w.cap,w[`∪`]=w.cup,w[`∮`]=w.oint,w[`∴`]=w.therefore,w[`∵`]=w.because,w[`∼`]=w.sim,w[`≀`]=w.wr,w[`≃`]=w.simeq,w[`≍`]=w.asymp,w[`≐`]=w.doteq,w[`≪`]=w.ll,w[`≫`]=w.gg,w[`≺`]=w.prec,w[`≻`]=w.succ,w[`⊂`]=w.subset,w[`⊃`]=w.supset,w[`⊆`]=w.subseteq,w[`⊇`]=w.supseteq,w[`⊈`]=w.nsubseteq,w[`⊉`]=w.nsupseteq,w[`⊏`]=w.sqsubset,w[`⊐`]=w.sqsupset,w[`⊓`]=w.sqcap,w[`⊔`]=w.sqcup,w[`⊖`]=w.ominus,w[`⊘`]=w.oslash,w[`⊙`]=w.odot,w[`⊢`]=w.vdash,w[`⊣`]=w.dashv,w[`⊤`]=w.top,w[`⊥`]=w.bot,w[`⊧`]=w.models,w[`⋀`]=w.wedge,w[`⋁`]=w.vee,w[`⋂`]=w.cap,w[`⋃`]=w.cup,w[`⋄`]=w.diamond,w[`⋅`]=w.cdot,w[`⋆`]=w.star,w[`⋈`]=w.bowtie,w[`⋮`]=w.vdots,w[`⋯`]=w.cdots,w[`⋱`]=w.ddots,De=e,Oe=document.createElement(`div`),ke=Oe.style,Ae={transform:1,WebkitTransform:1,MozTransform:1,OTransform:1,msTransform:1},Ae)if(Me in ke){je=Me;break}for(nt in je?Ee=function(e,t,n){e.css(je,`scale(`+t+`,`+n+`)`)}:`filter`in ke?(De=function(e){e.className=e.className},Ee=function(e,t,n){function r(){e.css(`marginRight`,(i.width()-1)*(t-1)/t+`px`)}var i,a;t/=1+(n-1)/2,e.css(`fontSize`,n+`em`),e.hasClass(`mq-matrixed-container`)||e.addClass(`mq-matrixed-container`).wrapInner(`<span class="mq-matrixed"></span>`),i=e.children().css(`filter`,`progid:DXImageTransform.Microsoft.Matrix(M11=`+t+`,SizingMethod='auto expand')`),r(),a=setInterval(r),b(window).load(function(){clearTimeout(a),r()})}):Ee=function(e,t,n){e.css(`fontSize`,n+`em`)},Ne=_(I,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`>&0</`+n+`>`)}}),Pe=_(I,function(e,t){e.init=function(e,n,r){this.args=arguments,this.htmlTemplate=`<`+n+` `+r+`><`+n+` class="mq-xarrow-over">&0</`+n+`><`+n+` class="mq-xarrow-under"></`+n+`></`+n+`>`,t.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`(`,`)`]},e.parser=function(){var e=this;return ae.optBlock.then(function(t){return ae.block.map(function(n){var r=Fe.apply(null,e.args);return r.blocks=[t,n],t.adopt(r,0,0),n.adopt(r,t,0),r})}).or(t.parser.call(this))}}),Fe=_(Pe,function(e,t){e.init=function(e,t,n){this.htmlTemplate=`<`+t+` `+n+`><`+t+` class="mq-xarrow-over">&1</`+t+`><`+t+` class="mq-xarrow-under">&0</`+t+`></`+t+`>`,I.prototype.init.call(this,e),this.textTemplate=[e.replace(`\\`,``)+`[`,`](`,`)`]},e.latex=function(){return this.ctrlSeq+`[`+this.ends[v].latex()+`]{`+this.ends[y].latex()+`}`},e.finalizeTree=function(){this.downInto=this.ends[v].upOutOf=this.ends[y],this.upInto=this.ends[y].downOutOf=this.ends[v]}}),Ie=function(e){var t=`<span class="`+e+`-inner-right">g</span><span class="`+e+`-inner-left">h</span>`;return _(I,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`<span class="mq-empty-box">&0</span></`+i+`></`+i+`>`)}})},Le=_(I,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<`+n+` `+r+`><span class="mq-longdiv-curve-border">)</span><span class="mq-longdiv-inner"><span class="mq-empty">&0</span></`+n+`></span>`)}}),Re=_(I,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-row"><p>`+r+`</p><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td><td class="mq-empty"></td><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),ze=_(I,function(e,t){e.init=function(e){t.init.call(this,e,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">˙</span><span class="mq-empty-box">&0</span></span></span>`)}}),Be=_(I,function(e,t){e.init=function(e,n,r){t.init.call(this,e,`<span class="mq-matrix"><span class="mq-paren mq-scaled">[</span><span class="matrix-edit-content-col"><p>`+r+`</p></span><span class="matrix-edit-content-col"><table class="mq-non-leaf mq-rows-3"><tbody><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr><tr><td class="mq-empty"></td></tr></tbody></table></span><span class="mq-paren mq-scaled">]</span></span>`)}}),Ve=function(e,t){return _(se,function(n,r){n.init=function(n,i,a){r.init.call(this,n,`<`+i+` `+a+`><`+i+` class="`+e+`-inner">`+t+`</`+i+`></`+i+`>`)}})},w.mathrm=r(Ne,`\\mathrm`,`span`,`class="mq-roman mq-font"`),w.mathit=r(Ne,`\\mathit`,`i`,`class="mq-font"`),w.mathbf=r(Ne,`\\mathbf`,`b`,`class="mq-font"`),w.mathsf=r(Ne,`\\mathsf`,`span`,`class="mq-sans-serif mq-font"`),w.mathtt=r(Ne,`\\mathtt`,`span`,`class="mq-monospace mq-font"`),w.underline=r(Ne,`\\underline`,`span`,`class="mq-non-leaf mq-underline"`),w.overline=w.bar=r(Ie(`mq-overline`),`\\overline`,`span`,`class="mq-non-leaf mq-overline"`),w.longdiv=r(Le,`\\longdiv`,`span`,`class="mq-non-leaf mq-longdiv"`),w.overrightarrow=r(Ie(`mq-overarrow`),`\\overrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-right"`),w.overleftarrow=r(Ie(`mq-overarrow`),`\\overleftarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-left"`),w.xleftarrow=r(Pe,`\\xleftarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-left"`),w.xrightarrow=r(Pe,`\\xrightarrow`,`span`,`class="mq-non-leaf mq-xarrow mq-arrow-right"`),w.overleftrightarrow=r(Ne,`\\overleftrightarrow`,`span`,`class="mq-non-leaf mq-overarrow mq-arrow-both"`),w.overarc=r(Ne,`\\overarc`,`span`,`class="mq-non-leaf mq-overarc"`),w.dot=_(I,function(e,t){e.init=function(){t.init.call(this,`\\dot`,`<span class="mq-non-leaf"><span class="mq-dot-recurring-inner"><span class="mq-dot-recurring">˙</span><span class="mq-empty-box">&0</span></span></span>`)}}),w.addmatrixrow=r(Re,`\\addmatrixrow`,`span`,`+`),w.addmatrixcol=r(Be,`\\addmatrixcol`,`span`,`+`),w.ngtr=w[`≯`]=r(Ve(`mq-ngtr`,`≯`),`\\ngtr `,`span`,`class="mq-non-leaf mq-ngtr"`),w.nless=w[`≮`]=r(Ve(`mq-nless`,`≮`),`\\nless `,`span`,`class="mq-non-leaf mq-nless"`),w.dot=r(ze,`\\dot`),w.parallelogram=r(Ve(`mq-parallelogram`,`▱`),`\\parallelogram `,`span`,`class="mq-non-leaf mq-parallelogram"`),w.textcolor=_(I,function(e,t){e.setColor=function(e){this.color=e,this.htmlTemplate=`<span class="mq-textcolor" style="color:`+e+`">&0</span>`},e.latex=function(){return`\\textcolor{`+this.color+`}{`+this.blocks[0].latex()+`}`},e.parser=function(){var e=this,n=P.optWhitespace,r=P.string,i=P.regex;return n.then(r(`{`)).then(i(/^[#\w\s.,()%-]*/)).skip(r(`}`)).then(function(n){return e.setColor(n),t.parser.call(e)})},e.isStyleBlock=function(){return!0}}),w.class=_(I,function(e,t){e.parser=function(){var e=this,n=P.string,r=P.regex;return P.optWhitespace.then(n(`{`)).then(r(/^[-\w\s\\\xA0-\xFF]*/)).skip(n(`}`)).then(function(n){return e.cls=n||``,e.htmlTemplate=`<span class="mq-class `+n+`">&0</span>`,t.parser.call(e)})},e.latex=function(){return`\\class{`+this.cls+`}{`+this.blocks[0].latex()+`}`},e.isStyleBlock=function(){return!0}}),He=_(I,function(e,t){e.ctrlSeq=`_{...}^{...}`,e.createLeftOf=function(e){if(this.replacedFragment||e[v]||!e.options.supSubsRequireOperand)return t.createLeftOf.apply(this,arguments)},e.contactWeld=function(e){var t,n,r,i,a,o;for(t=v;t;t=t===v&&y)if(this[t]instanceof He){for(n=`sub`;n;n=n===`sub`&&`sup`)r=this[n],i=this[t][n],r&&(i?r.isEmpty()?o=x(i,0,i.ends[v]):(r.jQ.children().insAtDirEnd(-t,i.jQ),a=r.children().disown(),o=x(i,a.ends[y],i.ends[v]),t===v?a.adopt(i,i.ends[y],0):a.adopt(i,0,i.ends[v])):this[t].addBlock(r.disown()),this.placeCursor=function(e,n){return function(r){r.insAtDirEnd(-t,e||n)}}(i,r));this.remove(),e&&e[v]===this&&(t===y&&o?o[v]?e.insRightOf(o[v]):e.insAtLeftEnd(o.parent):e.insRightOf(this[t]));break}},A.p.charsThatBreakOutOfSupSub=``,e.finalizeTree=function(){this.ends[v].write=function(e,t){if(e.options.autoSubscriptNumerals&&this===this.parent.sub){if(t===`_`)return;var n=this.chToCmd(t,e.options);return n instanceof se?e.deleteSelection():e.clearSelection().insRightOf(this.parent),n.createLeftOf(e.show())}e[v]&&!e[y]&&!e.selection&&e.options.charsThatBreakOutOfSupSub.indexOf(t)>-1&&e.insRightOf(this.parent),z.p.write.apply(this,arguments)}},e.moveTowards=function(e,n,r){n.options.autoSubscriptNumerals&&!this.sup?n.insDirOf(e,this):t.moveTowards.apply(this,arguments)},e.deleteTowards=function(e,n){if(n.options.autoSubscriptNumerals&&this.sub){var r=this.sub.ends[-e];r instanceof se?r.remove():r&&r.deleteTowards(e,n.insAtDirEnd(-e,this.sub)),this.sub.isEmpty()&&(this.sub.deleteOutOf(v,n.insAtLeftEnd(this.sub)),this.sup&&n.insDirOf(-e,this))}else t.deleteTowards.apply(this,arguments)},e.latex=function(){function e(e,t){var n=t&&t.latex();return t?e+`{`+(n||` `)+`}`:``}return e(`_`,this.sub)+e(`^`,this.sup)},e.addBlock=function(e){this.supsub===`sub`?(this.sup=this.upInto=this.sub.upOutOf=e,e.adopt(this,this.sub,0).downOutOf=this.sub,e.jQ=b(`<span class="mq-sup"/>`).append(e.jQ.children()).attr(at,e.id).prependTo(this.jQ)):(this.sub=this.downInto=this.sup.downOutOf=e,e.adopt(this,0,this.sup).upOutOf=this.sup,e.jQ=b(`<span class="mq-sub"></span>`).append(e.jQ.children()).attr(at,e.id).appendTo(this.jQ.removeClass(`mq-sup-only`)),this.jQ.append(`<span style="display:inline-block;width:0">​</span>`));for(var t=0;t<2;t+=1)(function(e,t,n,r){e[t].deleteOutOf=function(i,a){if(a.insDirOf(this[i]?-i:i,this.parent),!this.isEmpty()){var o=this.ends[i];this.children().disown().withDirAdopt(i,a.parent,a[i],a[-i]).jQ.insDirOf(-i,a.jQ),a[-i]=o}e.supsub=n,delete e[t],delete e[r+`Into`],e[n][r+`OutOf`]=f,delete e[n].deleteOutOf,t===`sub`&&b(e.jQ.addClass(`mq-sup-only`)[0].lastChild).remove(),this.remove()}})(this,`sub sup`.split(` `)[t],`sup sub`.split(` `)[t],`down up`.split(` `)[t])},e.reflow=function(){var e,t,n,r,i,a=this.jQ,o=a.prev();o.length&&(e=a.children(`.mq-sup`),e.length&&(t=parseInt(e.css(`font-size`)),n=e.offset().top+e.height(),r=n-o.offset().top-.7*t,i=parseInt(e.css(`margin-bottom`)),e.css(`margin-bottom`,i+r)))}}),w.subscript=w._=_(He,function(e,t){e.supsub=`sub`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&0</span></span><span style="display:inline-block;width:0">​</span></span>`,e.textTemplate=[`_`],e.finalizeTree=function(){this.downInto=this.sub=this.ends[v],this.sub.upOutOf=f,t.finalizeTree.call(this)}}),w.superscript=w.supscript=w[`^`]=_(He,function(e,t){e.supsub=`sup`,e.htmlTemplate=`<span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`^`],e.finalizeTree=function(){this.upInto=this.sup=this.ends[y],this.sup.downOutOf=f,t.finalizeTree.call(this)}}),Ue=_(I,function(e,t){e.parser=function(){var e,t=P.string,n=P.optWhitespace,r=P.succeed,i=ae.block,a=this,o=a.blocks=[z(),z()];for(e=0;e<o.length;e+=1)o[e].adopt(a,a.ends[y],0);return n.then(t(`_`).or(t(`^`))).then(function(e){var t=o[e===`_`?0:1];return i.then(function(e){return e.children().adopt(t,t.ends[y],0),r(a)})}).many().result(a)},e.finalizeTree=function(){this.downInto=this.ends[v],this.upInto=this.ends[y],this.ends[v].upOutOf=this.ends[y],this.ends[y].downOutOf=this.ends[v]}}),We=_(Ue,function(e,t){e.init=function(e,t){var n=`<span class="mq-large-operator mq-non-leaf"><span class="mq-to"><span>&1</span></span><big>`+t+`</big><span class="mq-from"><span>&0</span></span></span>`;se.prototype.init.call(this,e,n)},e.latex=function(){function e(e){return e.length===1?e:`{`+(e||` `)+`}`}return this.ctrlSeq+`_`+e(this.ends[v].latex())+`^`+e(this.ends[y].latex())},e.createLeftOf=function(e){t.createLeftOf.apply(this,arguments),e.options.sumStartsWithNEquals&&(me(`n`).createLeftOf(e),Te().createLeftOf(e))}}),w[`∑`]=w.sum=w.summation=r(We,`\\sum `,`∑`),w[`∏`]=w.prod=w.product=r(We,`\\prod `,`∏`),w.coprod=w.coproduct=r(We,`\\coprod `,`∐`),w[`∫`]=w.int=w.integral=_(We,function(e,t){e.init=function(){se.prototype.init.call(this,`\\int `,`<span class="mq-int mq-non-leaf"><big>∫</big><span class="mq-supsub mq-non-leaf"><span class="mq-sup"><span class="mq-sup-inner">&1</span></span><span class="mq-sub">&0</span><span style="display:inline-block;width:0">​</span></span></span>`)},e.createLeftOf=I.p.createLeftOf}),w.lim=w.limit=_(Ue,function(e,t){e.init=function(){se.prototype.init.call(this,`\\lim `,`<span class="mq-lim mq-non-leaf"><span class="mq-un-italicized">lim</span><span class="mq-approaches"><span>&0</span></span></span>`)},e.latex=function(){return this.ctrlSeq+`_`+function(e){return e.length===1?e:`{`+(e||` `)+`}`}(this.ends[v].latex())}}),Ge=w.frac=w.dfrac=w.cfrac=w.fraction=_(I,function(e,t){e.ctrlSeq=`\\frac`,e.htmlTemplate=`<span class="mq-fraction mq-non-leaf"><span class="mq-numerator"><span class="mq-empty-box">&0</span></span><span class="mq-denominator"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0">​</span></span>`,e.textTemplate=[`(`,`)/(`,`)`],e.finalizeTree=function(){this.upInto=this.ends[y].upOutOf=this.ends[v],this.downInto=this.ends[v].downOutOf=this.ends[y]}}),Ke=w.over=T[`/`]=_(Ge,function(t,n){t.createLeftOf=function(t){if(!this.replacedFragment){for(var r=t[v];r&&!(r instanceof R||r instanceof(w.text||e)||r instanceof We||r.ctrlSeq===`\\ `||/^[,;:]$/.test(r.ctrlSeq));)r=r[v];r instanceof We&&r[y]instanceof He&&(r=r[y],r[y]instanceof He&&r[y].ctrlSeq!=r.ctrlSeq&&(r=r[y])),r===t[v]||t.isTooDeep(1)||(this.replaces(C(r[y]||t.parent.ends[v],t[v])),t[v]=r)}n.createLeftOf.call(this,t)}}),w.underset=_(I,function(e,t){e.ctrlSeq=`\\underset`,e.htmlTemplate=`<span class="mq-underset mq-overunder mq-non-leaf"><span class="mq-over">&1</span><span class="mq-under">&0</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[v].upOutOf=this.ends[y],this.upInto=this.ends[y].downOutOf=this.ends[v]}}),w.overset=_(I,function(e,t){e.ctrlSeq=`\\overset`,e.htmlTemplate=`<span class="mq-overset mq-overunder mq-non-leaf"><span class="mq-over">&0</span><span class="mq-under">&1</span></span>`,e.textTemplate=[`[`,`|`,`]`],e.finalizeTree=function(){this.downInto=this.ends[y].upOutOf=this.ends[v],this.upInto=this.ends[v].downOutOf=this.ends[y]}}),qe=w.sqrt=w[`√`]=_(I,function(e,t){e.ctrlSeq=`\\sqrt`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-sqrt-prefix">√</span><span class="mq-non-leaf mq-sqrt-stem"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt(`,`)`],e.parser=function(){return ae.optBlock.then(function(e){return ae.block.map(function(t){var n=Je();return n.blocks=[e,t],e.adopt(n,0,0),t.adopt(n,e,0),n})}).or(t.parser.call(this))},e.reflow=function(){var e=this.ends[y].jQ.parent();Ee(e.prev(),1,e.innerHeight()/+e.css(`fontSize`).slice(0,-2)-.1)}}),w.hat=_(I,function(e,t){e.ctrlSeq=`\\hat`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-hat-prefix">^</span><span class="mq-hat-stem">&0</span></span>`,e.textTemplate=[`hat(`,`)`]}),Je=w.nthroot=_(qe,function(e,t){e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">&0</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">√</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&1</span></span></span>`,e.textTemplate=[`sqrt[`,`](`,`)`],e.latex=function(){return`\\sqrt[`+this.ends[v].latex()+`]{`+this.ends[y].latex()+`}`}}),Ye=_(I,function(e,t){e.init=function(e,n,r){var i=`<span class="mq-non-leaf"><span class="mq-diacritic-above">`+n+`</span><span class="mq-diacritic-stem">&0</span></span>`;t.init.call(this,e,i,r)}}),w.vec=r(Ye,`\\vec`,`→`,[`vec(`,`)`]),w.tilde=r(Ye,`\\tilde`,`~`,[`tilde(`,`)`]),w.lrncuberoot=_(qe,function(e,t){e.ctrlSeq=`\\lrncuberoot`,e.htmlTemplate=`<sup class="mq-nthroot mq-non-leaf"><span class="mq-empty-box">3</span></sup><span class="mq-scaled"><span class="mq-sqrt-prefix mq-scaled">√</span><span class="mq-sqrt-stem mq-non-leaf"><span class="mq-empty-box">&0</span></span></span>`,e.textTemplate=[`sqrt[3](`,`)`],e.latex=function(){return`\\sqrt[3]{`+this.ends[v].latex()+`}`}}),w.abs=_(I,function(e){e.ctrlSeq=`\\abs`,e.htmlTemplate=`<span class="mq-abs mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[`|`,`|`]}),w.lrnplaceholder=_(I,function(e,t){e.ctrlSeq=`\\lrnplaceholder`,e.htmlTemplate=`<span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span>`,e.textTemplate=[``],e.latex=function(){return this.ends[v].latex()}}),w.lrnexponent=_(I,function(e,t){e.ctrSeq=`\\lrnexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">&1</span></span></span></span>`,e.textTemplate=[``,`**`],e.latex=function(){var e=this.ends[y].latex();return e.length>1?e=`{`+e+`}`:e.length===0&&(e=`{ }`),this.ends[v].latex()+`^`+e}}),w.lrnsquaredexponent=_(I,function(e,t){e.ctrSeq=`\\lrnsquaredexponent`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf mq-sup-only"><span class="mq-sup"><span class="mq-empty-box">2</span></span></span></span>`,e.textTemplate=[``,`**2`],e.latex=function(){return this.ends[v].latex()+`^2`}}),w.lrnsubscript=_(I,function(e,t){e.ctrSeq=`\\lrnsubscript`,e.htmlTemplate=`<span class="mq-lrnexponent mq-non-leaf"><span class="mq-lrnplaceholder mq-non-leaf"><span class="mq-empty-box">&0</span></span><span class="mq-supsub mq-non-leaf"><span class="mq-sub"><span class="mq-empty-box">&1</span></span><span style="display:inline-block;width:0"> </span></span></span>`,e.textTemplate=[``,`_`],e.latex=function(){return this.ends[v].latex()+`_`+this.ends[y].latex()}}),Xe=_(_(I,p),function(t,n){t.init=function(e,t,r,i,a){n.init.call(this,`\\left`+i,void 0,[t,r]),this.side=e,this.sides={},this.sides[v]={ch:t,ctrlSeq:i},this.sides[y]={ch:r,ctrlSeq:a}},t.numBlocks=function(){return 1},t.html=function(){return this.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-scaled mq-paren`+(this.side===y?` mq-ghost`:``)+`">`+this.sides[v].ch+`</span><span class="mq-non-leaf">&0</span><span class="mq-scaled mq-paren`+(this.side===v?` mq-ghost`:``)+`">`+this.sides[y].ch+`</span></span>`,n.html.call(this)},t.latex=function(){return`\\left`+this.sides[v].ctrlSeq+this.ends[v].latex()+`\\right`+this.sides[y].ctrlSeq},t.matchBrack=function(e,t,n){return n instanceof Xe&&n.side&&n.side!==-t&&(!e.restrictMismatchedBrackets||Ze[this.sides[this.side].ch]===n.sides[n.side].ch||{"(":`]`,"[":`)`}[this.sides[v].ch]===n.sides[y].ch)&&n},t.closeOpposing=function(e){e.side=0,e.sides[this.side]=this.sides[this.side],e.delimjQs.eq(this.side===v?0:1).removeClass(`mq-ghost`).html(this.sides[this.side].ch)},t.createLeftOf=function(e){var t,r,i;this.replacedFragment||(t=e.options,r=this.sides[v].ch===`|`?this.matchBrack(t,y,e[y])||this.matchBrack(t,v,e[v])||this.matchBrack(t,0,e.parent.parent):this.matchBrack(t,-this.side,e[-this.side])||this.matchBrack(t,-this.side,e.parent.parent)),r?(i=this.side=-r.side,this.closeOpposing(r),r===e.parent.parent&&e[i]&&C(e[i],e.parent.ends[i],-i).disown().withDirAdopt(-i,r.parent,r,r[i]).jQ.insDirOf(i,r.jQ),r.bubble(`reflow`)):(r=this,i=r.side,r.replacedFragment?r.side=0:e[-i]&&(r.replaces(C(e[-i],e.parent.ends[-i],i)),e[-i]=0),n.createLeftOf.call(r,e)),i===v?e.insAtLeftEnd(r.ends[v]):e.insRightOf(r)},t.placeCursor=e,t.unwrap=function(){this.ends[v].children().disown().adopt(this.parent,this,this[y]).jQ.insertAfter(this.jQ),this.remove()},t.deleteSide=function(e,t,n){var r,i,a,o=this.parent,s=this[e],c=o.ends[e];if(e===this.side)return this.unwrap(),void(s?n.insDirOf(-e,s):n.insAtDirEnd(e,o));if(r=n.options,i=!this.side,this.side=-e,this.matchBrack(r,e,this.ends[v].ends[this.side]))this.closeOpposing(this.ends[v].ends[this.side]),a=this.ends[v].ends[e],this.unwrap(),a.siblingCreated&&a.siblingCreated(n.options,e),s?n.insDirOf(-e,s):n.insAtDirEnd(e,o);else{if(this.matchBrack(r,e,this.parent.parent))this.parent.parent.closeOpposing(this),this.parent.parent.unwrap();else{if(t&&i)return this.unwrap(),void(s?n.insDirOf(-e,s):n.insAtDirEnd(e,o));this.sides[e]={ch:Ze[this.sides[this.side].ch],ctrlSeq:Ze[this.sides[this.side].ctrlSeq]},this.delimjQs.removeClass(`mq-ghost`).eq(e===v?0:1).addClass(`mq-ghost`).html(this.sides[e].ch)}s?(a=this.ends[v].ends[e],C(s,c,-e).disown().withDirAdopt(-e,this.ends[v],a,0).jQ.insAtDirEnd(e,this.ends[v].jQ.removeClass(`mq-empty`)),a.siblingCreated&&a.siblingCreated(n.options,e),n.insDirOf(-e,s)):t?n.insDirOf(e,this):n.insAtDirEnd(e,this.ends[v])}},t.deleteTowards=function(e,t){this.deleteSide(-e,!1,t)},t.finalizeTree=function(){this.ends[v].deleteOutOf=function(e,t){this.parent.deleteSide(e,!0,t)},this.finalizeTree=this.intentionalBlur=function(){this.delimjQs.eq(this.side===v?1:0).removeClass(`mq-ghost`),this.side=0}},t.siblingCreated=function(e,t){t===-this.side&&this.finalizeTree()}}),Ze={"(":`)`,")":`(`,"[":`]`,"]":`[`,"{":`}`,"}":`{`,"\\{":`\\}`,"\\}":`\\{`,"⟨":`⟩`,"⟩":`⟨`,"\\langle ":`\\rangle `,"\\rangle ":`\\langle `,"|":`|`,"\\lVert ":`\\rVert `,"\\rVert ":`\\lVert `},m(`(`),m(`[`),m(`{`,`\\{`),w.langle=r(Xe,v,`⟨`,`⟩`,`\\langle `,`\\rangle `),w.rangle=r(Xe,y,`⟨`,`⟩`,`\\langle `,`\\rangle `),T[`|`]=r(Xe,v,`|`,`|`,`|`,`|`),w.lVert=r(Xe,v,`∥`,`∥`,`\\lVert `,`\\rVert `),w.rVert=r(Xe,y,`∥`,`∥`,`\\lVert `,`\\rVert `),w.left=_(I,function(e){e.parser=function(){var e=P.regex,t=P.string,n=(P.succeed,P.optWhitespace);return n.then(e(/^(?:[([|]|\\\{|\\langle(?![a-zA-Z])|\\lVert(?![a-zA-Z]))/)).then(function(r){var i=r.charAt(0)===`\\`?r.slice(1):r;return r==`\\langle`&&(i=`⟨`,r+=` `),r==`\\lVert`&&(i=`∥`,r+=` `),ae.then(function(a){return t(`\\right`).skip(n).then(e(/^(?:[\])|]|\\\}|\\rangle(?![a-zA-Z])|\\rVert(?![a-zA-Z]))/)).map(function(e){var t,n=e.charAt(0)===`\\`?e.slice(1):e;return e==`\\rangle`&&(n=`⟩`,e+=` `),e==`\\rVert`&&(n=`∥`,e+=` `),t=Xe(0,i,n,r,e),t.blocks=[a],a.adopt(t,0,0),t})})})}}),w.right=_(I,function(e){e.parser=function(){return P.fail(`unmatched \\right`)}}),Qe=w.binom=w.binomial=_(_(I,p),function(e,t){e.ctrlSeq=`\\binom`,e.htmlTemplate=`<span class="mq-non-leaf"><span class="mq-paren mq-scaled">(</span><span class="mq-non-leaf"><span class="mq-array mq-non-leaf"><span>&0</span><span>&1</span></span></span><span class="mq-paren mq-scaled">)</span></span>`,e.textTemplate=[`choose(`,`,`,`)`]}),w.choose=_(Qe,function(e){e.createLeftOf=Ke.prototype.createLeftOf}),w.editable=w.MathQuillMathField=_(I,function(e,t){e.ctrlSeq=`\\MathQuillMathField`,e.htmlTemplate=`<span class="mq-editable-field"><span class="mq-root-block">&0</span></span>`,e.parser=function(){var e=this,n=P.string,r=P.regex,i=P.succeed;return n(`[`).then(r(/^[a-z][a-z0-9]*/i)).skip(n(`]`)).map(function(t){e.name=t}).or(i()).then(t.parser.call(e))},e.finalizeTree=function(e){var t=k(this.ends[v],this.jQ,e);t.KIND_OF_MQ=`MathField`,t.editable=!0,t.createTextarea(),t.editablesTextareaEvents(),t.cursor.insAtRightEnd(t.root),u(t.root)},e.registerInnerField=function(e,t){e.push(e[this.name]=t(this.ends[v].controller))},e.latex=function(){return this.ends[v].latex()},e.text=function(){return this.ends[v].text()}}),$e=w.embed=_(se,function(e,t){e.setOptions=function(e){function t(){return``}return this.text=e.text||t,this.htmlTemplate=e.htmlString||``,this.latex=e.latex||t,this},e.parser=function(){var e=this,t=P.string,n=P.regex,r=P.succeed;return t(`{`).then(n(/^[a-z][a-z0-9]*/i)).skip(t(`}`)).then(function(i){return t(`[`).then(n(/^[-\w\s]*/)).skip(t(`]`)).or(r()).map(function(t){return e.setOptions(M[i](t))})})}}),w.MathQuillResponseContainer=_(I,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainer`,e.htmlTemplate=`<span class="lrn-mq-response-container"><marker class="lrn-qe-keyboard-i-response"></marker><content>Response</content></span>`,e.latex=function(){return`\\MathQuillResponseContainer`},e.text=function(){return this.ends[v].text()}}),w.MathQuillResponseContainerIcon=_(I,function(e,t){e.ctrlSeq=`\\MathQuillResponseContainerIcon`,e.htmlTemplate=`<span class="lrn-mq-response-container-icon"><span class="lrn-qe-keyboard-i-response"></span></span>`,e.latex=function(){return`\\MathQuillResponseContainerIcon`},e.text=function(){return this.ends[v].text()}}),et=w.matrix=_(I,function(e,t){var n=_(z,function(e,t){e.init=function(e,n){return this.column=e,this.row=n,t.init.call(this)},e.keystroke=function(e,n,r){switch(e){case`Shift-Spacebar`:return n.preventDefault(),this.parent.insertColumn(this);case`Shift-Enter`:return this.parent.insertRow(this)}return t.keystroke.apply(this,arguments)},e.deleteOutOf=function(e,n){var r=this,i=arguments;this.parent.backspace(this,e,n,function(){return t.deleteOutOf.apply(r,i)})}}),r={column:`&`,row:`\\\\`};e.parentheses={left:null,right:null},e.maximum={rows:5,columns:5},e.defaults={rows:2,columns:2},e.ctrlSeq=`\\matrix`,e.createBlocks=function(){var e,t,r=this,i=r.blocks=[],a=0;this.htmlTemplate.replace(/&\d+/g,function(o,s){var c=r.htmlTemplate.substring(0,s).match(/<tr[^>]*>/gi).length-1;t=e===c?t+1:0,i[a]=n(t,c),i[a].adopt(r,r.ends[y],0),e=c,a++})},e.reflow=function(){var e=this.jQ.children(`table`),t=e.outerHeight()/+e.css(`fontSize`).slice(0,-2),n=this.jQ.children(`.mq-paren`);n.length&&Ee(n,ot(1+.2*(t-1),1.2),1.05*t)},e.latex=function(){var e,t,n,i=this.getMatrixName(),a=`\\begin{`+i+`}`;for(n=0;n<this.blocks.length;n++)e=this.blocks[n].row,t!==void 0&&(a+=t===e?r.column:r.row),t=e,a+=this.blocks[n].latex();return a+=`\\end{`+i+`}`},e.createLeftOf=function(n){this.cursor=n;var r=Math.min(this.defaults.rows,this.maximum.rows),i=Math.min(this.defaults.columns,this.maximum.columns);this.defaultHtmlTemplate=this.defaultHtmlTemplate||this.generateHtmlTemplate(r,i),e.htmlTemplate=this.defaultHtmlTemplate,t.createLeftOf.call(this,n)},e.getMatrixName=function(){return this.ctrlSeq.replace(`\\`,``)},e.generateHtmlTemplate=function(e,t){function n(e){return e?`<span class="mq-paren mq-scaled">`+e+`</span>`:``}var r,i,a,o=`<span class="mq-matrix mq-non-leaf">`+n(this.parentheses.left);for(o+=`<table class="mq-non-leaf">`,e=Math.min(e,this.maximum.rows),t=Math.min(t,this.maximum.columns),r=0,i=0;i<e;i++){for(o+=`<tr>`,a=0;a<t;a++)o+=`<td>&`+r+`</td>`,r++;o+=`</tr>`}return o+=`</table>`,o+=n(this.parentheses.right)+`</span>`},e.htmlTemplate=e.generateHtmlTemplate(1,1),e.parser=function(){var e=P.regex,t=this,i=this.getMatrixName(),a=RegExp(`^(.*?)\\\\end{`+i+`}`),o=RegExp(`\\\\end{`+i+`}`);return e(a).then(function(e){var i,a,s,c,l=e.replace(o,``),u=[],d=l.split(r.row),f=Math.min(d.length,t.maximum.rows),p=0;for(a=0;a<f;a++)i=d[a].split(r.column),p=Math.max(p,i.length);for(p=Math.min(p,t.maximum.columns),a=0;a<f;a++)for(i=d[a].split(r.column),e=0;e<p;e++)s=n(e,a),c=ae.parse(i[e]||` `),c.children().adopt(s,s.ends[y],0),u.push(s);for(t.htmlTemplate=t.generateHtmlTemplate(f,p),t.blocks=u,a=0;a<u.length;a+=1)u[a].adopt(t,t.ends[y],0);return P.succeed(t)})},e.finalizeTree=function(){var e=this.jQ.find(`table`);e.length&&(this.relink(),e.removeClass(function(e,t){var n=t.match(/mq-rows-\d+/g);return n&&n.join(` `)||``}),e.addClass(`mq-rows-`+e.find(`tr`).length))},e.relink=function(){var e=this.jQ.find(`td`),t=S.byId[e.first().attr(at)],n=S.byId[e.last().attr(at)],r=e.eq(0).closest(`tr`),i=[];e.each(function(t){var n,a,o,s=S.byId[b(this).attr(at)],c=e.eq(t+1),l=b(this).closest(`tr`).next(`tr`),u=b(this).closest(`tr`).index(),d=b(this).index();c.length&&(a=S.byId[c.attr(at)],s[y]=a,a[v]=s),n=l.length?l.find(`td`).eq(d):r.find(`td`).eq(d+1),n.length&&(o=S.byId[n.attr(at)],s.downOutOf=o,o.upOutOf=s),s.column=d,s.row=u,i.push(s)}),this.ends[v]=t,this.ends[y]=n,t&&t[v]&&delete t[v],n&&n[y]&&delete n[y],this.blocks=i},e.deleteCell=function(e){function t(){return S.byId[b(this).attr(at)].isEmpty()}var n,r=e.jQ.closest(`tr`),i=e.jQ.index(),a=r.index(),o=r.find(`td`).not(e.jQ),s=this.jQ.find(`tr`).not(r).map(function(){return b(this).find(`td`)[i]}),c=this.jQ.find(`td`).length===1;return o.filter(t).length===o.length&&s.length&&(o.remove(),e.jQ.remove(),r.remove(),this.finalizeTree()),s.filter(t).length===s.length&&o.length&&(s.remove(),e.jQ.remove(),this.finalizeTree()),c||(a=Math.min(a,this.jQ.find(`tr`).length-1),i=Math.min(i,this.jQ.find(`tr`).eq(a).find(`td`).length-1),n=S.byId[this.jQ.find(`tr`).eq(a).find(`td`).eq(i).attr(at)]),n},e.addRow=function(e){var t,r,i,a,o;if(!(this.jQ.find(`tr`).length>=this.maximum.rows)){for(t=e.find(`td`).length,r=b(`<tr></tr>`),o=0;o<t;o++)i=n(),i.parent=this,i.jQ=b(`<td class="mq-empty">`).attr(at,i.id),r.append(i.jQ),a||=i;return r.insertAfter(e),a}},e.addColumn=function(e){var t,r,i,a,o;if(!(e.closest(`tr`).find(`td`).length>=this.maximum.columns))return t=e.index(),r=e.closest(`tr`).index(),i=this,o=[],this.jQ.find(`tr`).each(function(){a=n(),a.parent=i,a.jQ=b(`<td class="mq-empty">`).attr(at,a.id),a.jQ.insertAfter(b(this).find(`td`).eq(t)),o.push(a)}),o[r]},e.insertColumn=function(e){newBlock=this.addColumn(e.jQ),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.insertRow=function(e){newBlock=this.addRow(e.jQ.closest(`tr`)),newBlock&&(this.cursor=this.cursor||this.parent.cursor,this.finalizeTree(),this.bubble(`reflow`).cursor.insAtRightEnd(newBlock))},e.backspace=function(e,t,n,r){if(e.isEmpty()){var i=this.deleteCell(e);i?n.insAtRightEnd(i):(r(),this.finalizeTree()),this.bubble(`edited`)}}}),w.pmatrix=_(et,function(e,t){e.ctrlSeq=`\\pmatrix`,e.parentheses={left:`(`,right:`)`}}),w.bmatrix=_(et,function(e,t){e.ctrlSeq=`\\bmatrix`,e.parentheses={left:`[`,right:`]`}}),w.Bmatrix=_(et,function(e,t){e.ctrlSeq=`\\Bmatrix`,e.parentheses={left:`{`,right:`}`}}),w.vmatrix=_(et,function(e,t){e.ctrlSeq=`\\vmatrix`,e.parentheses={left:`|`,right:`|`}}),w.Vmatrix=_(et,function(e,t){e.ctrlSeq=`\\Vmatrix`,e.parentheses={left:`‖`,right:`‖`}}),tt=l(1),tt)(function(e,t){typeof t==`function`?(c[e]=function(){return s(),t.apply(this,arguments)},c[e].prototype=t.prototype):c[e]=t})(nt,tt[nt])})()})),Ow=o((()=>{})),kw=l(o(((e,t)=>{Ew(),Dw(),Ow(),t.exports=window.MathQuill}))(),1),Aw=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/math-input/src/mq/static.tsx`,jw;typeof window<`u`&&(jw=kw.default.getInterface(2));var Mw=Sy(`pie-lib:math-input:mq:static`),Nw=/\\MathQuillMathField\[r\d*\]\{(.*?)\}/g,Pw=/ /g;function Fw(e=``){return e.replace(Pw,``)}function Iw(e){let t=0;for(let n=0;n<(e||``).length;n++)e[n]===`{`&&t++;return t}var Lw=class extends H.Component{static propTypes={latex:b.string.isRequired,onFocus:b.func,onBlur:b.func,className:b.string,getFieldName:b.func,onSubFieldChange:b.func,onSubFieldFocus:b.func,setInput:b.func};static defaultProps={getFieldName:()=>{}};constructor(e){super(e),this.state={announcement:``,previousLatex:``,inputSource:null,isDeleteKeyPressed:!1},this.inputRef=H.createRef()}componentDidMount(){this.update(),X_(),this.createLiveRegion(),this.addEventListeners()}componentDidUpdate(){this.update(),X_()}componentWillUnmount(){this.removeLiveRegion(),this.removeEventListeners()}createLiveRegion=()=>{this.liveRegion=document.createElement(`div`),this.liveRegion.style.position=`absolute`,this.liveRegion.style.width=`1px`,this.liveRegion.style.height=`1px`,this.liveRegion.style.marginTop=`-1px`,this.liveRegion.style.clip=`rect(1px, 1px, 1px, 1px)`,this.liveRegion.style.overflow=`hidden`,this.liveRegion.setAttribute(`aria-live`,`polite`),this.liveRegion.setAttribute(`aria-atomic`,`true`),document.body.appendChild(this.liveRegion)};addEventListeners=()=>{let e=this.inputRef.current;e&&(e.addEventListener(`keydown`,this.handleKeyDown),e.addEventListener(`click`,this.handleMathKeyboardClick))};removeEventListeners=()=>{let e=this.inputRef.current;e&&(e.removeEventListener(`keydown`,this.handleKeyDown),e.removeEventListener(`click`,this.handleMathKeyboardClick))};removeLiveRegion=()=>{this.liveRegion&&=(document.body.removeChild(this.liveRegion),null)};handleKeyDown=e=>{(e?.key===`Backspace`||e?.key===`Delete`)&&this.setState({isDeleteKeyPressed:!0}),this.setState({inputSource:`keyboard`})};handleMathKeyboardClick=()=>{this.setState({inputSource:`mathKeyboard`})};onInputEdit=e=>{if(!this.mathField)return;let t=this.props.getFieldName(e,this.mathField.innerFields);this.props.onSubFieldChange&&this.props.onSubFieldChange(t,e.latex()),this.announceLatexConversion(e.latex())};announceLatexConversion=e=>{if(!this.state){console.error(`State is not initialized`);return}let{previousLatex:t,inputSource:n,isDeleteKeyPressed:r}=this.state,i=`Converted to math symbol`;if(n===`keyboard`&&!r)if(Iw(e)>Iw(t))this.announceMessage(i);else try{this.mathField.parseLatex(t),this.mathField.parseLatex(e),e==t&&this.announceMessage(i)}catch(e){console.warn(`Error parsing latex:`,e.message),console.warn(e)}this.setState({previousLatex:e,isDeleteKeyPressed:!1})};announceMessage=e=>{this.setState({previousLatex:``}),this.liveRegion&&(this.liveRegion.textContent=e,setTimeout(()=>{this.liveRegion.textContent=``},500))};update=()=>{if(!jw)throw Error(`MQ is not defined - but component has mounted?`);this.mathField||=jw.StaticMath(this.inputRef?.current,{handlers:{edit:this.onInputEdit.bind(this)}});try{this.mathField.parseLatex(this.props.latex),this.mathField.latex(this.props.latex)}catch{this.mathField.latex(`\\MathQuillMathField[r1]{}`)}};blur=()=>{Mw(`blur mathfield`),this.mathField.blur()};focus=()=>{Mw(`focus mathfield...`),this.mathField.focus()};shouldComponentUpdate(e){try{let t=Fw(this.mathField.parseLatex(e.latex)),n=(e.latex.match(Nw)||[]).length,r=t!==Fw(this.mathField.latex().trim())||n!==Object.keys(this.mathField.innerFields).length/2;return Mw(`[shouldComponentUpdate] `,r),r}catch(e){return console.warn(`Error parsing latex:`,e.message,`skip update`),console.warn(e),!1}}onFocus=e=>{try{let t=e.target.parentElement.nextSibling,n=parseInt(t.getAttribute(`mathquill-block-id`),10);n||=(t=t.parentElement,parseInt(t.getAttribute(`mathquill-block-id`),10));let r=this.mathField.innerFields.find(e=>e.id===n);if(r){let e=this.props.getFieldName(r,this.mathField.innerFields);this.props.setInput&&this.props.setInput(r),this.props.onSubFieldFocus(e,r)}}catch(e){console.error(`error finding root block`,e.message)}};render(){let{onBlur:e,className:t}=this.props;return(0,Y.jsxDEV)(`span`,{className:t,onFocus:this.onFocus,onBlur:e,ref:this.inputRef},void 0,!1,{fileName:Aw,lineNumber:277,columnNumber:12},this)}},Rw=o(((e,t)=>{t.exports={"border-radius":1,"border-top-left-radius":1,"border-top-right-radius":1,"border-bottom-left-radius":1,"border-bottom-right-radius":1,"box-shadow":1,order:1,flex:function(e,t){return[t+`box-flex`]},"box-flex":1,"box-align":1,animation:1,"animation-duration":1,"animation-name":1,transition:1,"transition-duration":1,transform:1,"transform-style":1,"transform-origin":1,"backface-visibility":1,perspective:1,"box-pack":1}})),zw=o(((e,t)=>{t.exports={animation:1,"column-count":1,columns:1,"font-weight":1,opacity:1,"order ":1,"z-index":1,zoom:1,flex:1,"box-flex":1,transform:1,perspective:1,"box-pack":1,"box-align":1,colspan:1,rowspan:1}})),Bw=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toUpperCase()+e.substring(1):e}})),Vw=o(((e,t)=>{var n=Bw(),r=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,i=typeof document>`u`?{}:document.documentElement.style;t.exports=(function(){var e=(function(){for(var e in i)if(r.test(e))return e.match(r)[0];return`WebkitOpacity`in i?`Webkit`:`KhtmlOpacity`in i?`Khtml`:``})();return{style:e,css:`-`+e.toLowerCase()+`-`,dom:{Webkit:`WebKit`,ms:`MS`,o:`WebKit`}[e]||n(e)}})()})),Hw=o(((e,t)=>{t.exports=/[-\s]+(.)?/g})),Uw=o(((e,t)=>{var n=function(e,t){return t?t.toUpperCase():``},r=Hw();t.exports=function(e){return e?e.replace(r,n):``}})),Ww=o(((e,t)=>{var n=/::/g,r=/([A-Z]+)([A-Z][a-z])/g,i=/([a-z\d])([A-Z])/g,a=/_/g;t.exports=function(e,t){return e?e.replace(n,`/`).replace(r,`$1_$2`).replace(i,`$1_$2`).replace(a,t||`-`):``}})),Gw=o(((e,t)=>{var n=Ww();t.exports=function(e){return n(e).toLowerCase()}})),Kw=o(((e,t)=>{t.exports=function(e){return e.length?e.charAt(0).toLowerCase()+e.substring(1):e}})),qw=o(((e,t)=>{var n=Uw(),r=Gw(),i=Kw(),a=Bw(),o=Vw(),s=Rw(),c=typeof document>`u`?{}:document.documentElement.style;t.exports=function(e){return function(t,l){l||={};var u=i(n(t)),d=r(t),f=e?u:d,p=o.style?e?o.style:o.css:``;if(u in c)return l.asString?f:[f];var m=f,h=s[d],g=[];if(e&&(m=a(f)),typeof h==`function`){var _=h(f,p)||[];_&&!Array.isArray(_)&&(_=[_]),_.length&&(_=_.map(function(t){return e?i(n(t)):r(t)})),g=g.concat(_)}return p&&g.push(p+m),g.push(f),l.asString||g.length==1?g[0]:g}}})),Jw=o(((e,t)=>{t.exports=qw()()})),Yw=o(((e,t)=>{var n=Object.prototype.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}})),Xw=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return!!e&&n.call(e)===`[object Object]`}})),Zw=o(((e,t)=>{var n=Object.prototype.toString;t.exports=function(e){return n.apply(e)===`[object Function]`}})),Qw=o(((e,t)=>{Vw();var n=Jw(),r=Gw(),i=Uw(),a=Yw(),o=Xw(),s=Zw(),c=function(e,t,r,i){n(t).forEach(function(t){e[i?i(t):t]=r})},l=function(e){e=(e||``).split(`;`);var t={};return e.forEach(function(e){var n=e.split(`:`);n.length==2&&(t[n[0].trim()]=n[1].trim())}),t},u={cssUnitless:zw()},d=function(e,t,n,f){typeof e==`string`&&(e=l(e)),t||=u,t.cssUnitless=t.cssUnitless||u.cssUnitless,f||={};var p=t.scope||{},m=t.addUnits==null?p&&p.addUnits!=null?p.addUnits:!0:t.addUnits,h=(t.cssUnitless==null?p?p.cssUnitless:null:t.cssUnitless)||{},g=(t.cssUnit||p?p.cssUnit:null)||`px`,_=t.prefixProperties||(p?p.prefixProperties:null)||{},v=t.camelize?i:r,y,b,x,S,C,w,T,E;for(x in e)if(a(e,x)){if(S=e[x],b=r(n?n+x:x),y=!1,E=!1,s(S)&&(T=S.call(p||e,S,x,b,e),o(T)&&T.value!=null?(S=T.value,E=T.prefix,b=T.name?r(T.name):b):S=T),C=typeof S,w=C==`number`||C==`string`&&S!=``&&S*1==S,S==null||b==null||b===``)continue;if((w||C==`string`)&&(y=!0),!y&&S.value!=null&&S.prefix&&(y=!0,E=S.prefix,S=S.value),y){if(E||=!!_[b],w&&(S=m&&!(b in h)?S+g:S+``),(b==`border`||!b.indexOf(`border`)&&!~b.indexOf(`radius`)&&!~b.indexOf(`width`))&&w&&(b+=`-width`),!b.indexOf(`border-radius-`)&&(b.replace(/border(-radius)(-(.*))/,function(e,t,n){var r={"-top":[`-top-left`,`-top-right`],"-left":[`-top-left`,`-bottom-left`],"-right":[`-top-right`,`-bottom-right`],"-bottom":[`-bottom-left`,`-bottom-right`]};n in r?(b=[],r[n].forEach(function(e){b.push(`border`+e+t)})):b=`border`+n+t}),Array.isArray(b))){b.forEach(function(e){E?c(f,e,S,v):f[v(e)]=S});continue}E?c(f,b,S,v):f[v(b)]=S}else d(S,t,b+`-`,f)}return f};t.exports=d})),$w=o(((e,t)=>{var n=Qw(),r=Yw();t.exports=function(e,t){e=n(e,t);var i=[],a;for(a in e)r(e,a)&&i.push(a+`: `+e[a]);return i.join(`; `)}})),eT=o(((e,t)=>{t.exports={prefixProperties:Rw(),cssUnitless:zw(),object:Qw(),string:$w()}}))(),tT=Sy(`@pie-lib:mask-markup:serialization`),nT=[`span`],rT=[`em`,`strong`,`u`],iT=3,aT=8,oT=1,sT=e=>{if(!e.attributes||e.attributes.length<=0)return;let t={},n;for(n=0;n<e.attributes.length;n++){let r=e.attributes[n];t[r.name]=r.value}return t},cT=e=>nT.includes(e)?`inline`:rT.includes(e)?`mark`:`block`,lT=e=>{let t=/([\w-]*)\s*:\s*([^;]*)/g,n,r={};for(;n=t.exec(e);)r[n[1]]=n[2].trim();return r},uT=e=>(0,eT.object)(e,{camelize:!0,addUnits:!1}),dT=(e,t)=>uT(lT(e.getAttribute(t))),fT=(e,t,n)=>{let r=e.getAttribute(n);return delete t.class,r},pT=e=>(t,n)=>{if(!e.getAttribute)return t;if(e.getAttribute(n))switch(n){case`style`:t.style=dT(e,n);break;case`class`:t.className=fT(e,t,n);break;default:t[n]=e.getAttribute(n);break}return t},mT=[`border`,`class`,`style`],hT={b:`bold`,em:`italic`,u:`underline`,s:`strikethrough`,code:`code`,strong:`strong`},gT=(e,t=[])=>{if(e.nodeType===aT)return null;if(e.nodeType===iT){let n={text:e.textContent};return t.length>0&&(n.marks=t.map(e=>({type:e,data:void 0}))),{object:`text`,leaves:[n]}}if(e.nodeType===oT){let n=e.tagName.toLowerCase(),r=hT[n];if(r)return tT(`[deserialize] mark: `,r),{_flatten:!0,nodes:_T(e.childNodes,[...t,r])};if(n===`math`)return{isMath:!0,nodes:[e]};let i=sT(e)||{};n===`audio`&&i.controls===``&&(i.controls=!0);let a=mT.reduce(pT(e),{...i}),o=cT(n),s=_T(e.childNodes,t);return{object:o,type:n,data:{dataset:{...e.dataset},attributes:{...a}},nodes:s}}return null},_T=(e,t=[])=>{let n=[];for(let r=0;r<e.length;r++){let i=gT(e[r],t);i!==null&&(i._flatten&&i.nodes?n.push(...i.nodes):n.push(i))}return n},vT=e=>{if(!e||!e.trim())return{object:`value`,document:{object:`document`,data:{},nodes:[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]}};let t=_T(new DOMParser().parseFromString(e,`text/html`).body.childNodes);return!t.some(e=>e.object===`block`||e.object===`inline`)&&t.length>0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:t}]),t.length===0&&(t=[{object:`block`,type:`span`,data:{},isVoid:!1,nodes:[]}]),{object:`value`,document:{object:`document`,data:{},nodes:t}}},yT=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/mask-markup/src/mask.tsx`,bT=q(`div`)(({theme:e})=>({paddingTop:e.spacing(.5),paddingBottom:e.spacing(.5)})),xT=q(`span`)(()=>({display:`inline-block`,width:`.75em`})),ST=[`tbody`,`tr`],CT=(e,t)=>{let n=t.trim()===``,r=e&&e.type;if(!(n&&ST.includes(r)))return t},wT=e=>{let t=e.leaves.find(e=>Jn(e,`marks`,[]).length);return t?t.marks[0]:null},TT=(e,t,n,r,i,a)=>{if(!t)return null;let o=[];return(e.nodes||[]).forEach((e,s)=>{let c=e.type?`${e.type}-${s}`:`${s}`;if(e.isMath)return o.push((0,Y.jsxDEV)(`span`,{dangerouslySetInnerHTML:{__html:`<math displaystyle="true">${e.nodes[0].innerHTML}</math>`}},void 0,!1,{fileName:yT,lineNumber:63,columnNumber:9},void 0)),o;if(r){let c=r(e,t,n);if(c){o.push(c),i?.type!==`td`&&a===`drag-in-the-blank`&&o.push((0,Y.jsxDEV)(xT,{},`spacer-${s}`,!1,{fileName:yT,lineNumber:77,columnNumber:25},void 0));return}}if(e.object===`text`){let t=e.leaves.reduce((e,t)=>{let n=t.text,r=CT(i,n);return r?e+r:e},``),n=wT(e);if(n){let e;for(e in hT)if(hT[e]===n.type){let n=e;o.push((0,Y.jsxDEV)(n,{children:t},c,!1,{fileName:yT,lineNumber:98,columnNumber:27},void 0));break}}else t.length>0&&(o.push(t),i?.type!==`td`&&a===`drag-in-the-blank`&&o.push((0,Y.jsxDEV)(xT,{},`spacer-${s}`,!1,{fileName:yT,lineNumber:105,columnNumber:25},void 0)))}else{let i=TT(e,t,n,r,e,a);if(e.type===`p`||e.type===`paragraph`)o.push((0,Y.jsxDEV)(bT,{children:i},c,!1,{fileName:yT,lineNumber:111,columnNumber:23},void 0));else{let t=e.type;e.nodes&&e.nodes.length>0?o.push((0,Y.jsxDEV)(t,{...e.data.attributes,children:i},c,!1,{fileName:yT,lineNumber:116,columnNumber:13},void 0)):o.push((0,Y.jsxDEV)(t,{...e.data.attributes},c,!1,{fileName:yT,lineNumber:121,columnNumber:25},void 0))}}}),o},ET=q(`div`)(()=>({display:`initial`,"&:not(.MathJax) table":{borderCollapse:`collapse`},"&:not(.MathJax) table td, &:not(.MathJax) table th":{padding:`8px 12px`,textAlign:`left`}})),DT=class extends H.Component{constructor(e){super(e),this.internalContainerRef=H.createRef()}static propTypes={renderChildren:b.func,layout:b.object,value:b.object,onChange:b.func,elementType:b.string,containerRef:b.oneOfType([b.func,b.shape({current:b.instanceOf(Element)})])};componentDidMount(){let e=this.props.containerRef||this.internalContainerRef;e.current&&typeof ES==`function`&&ES(e.current)}handleChange=(e,t)=>{let n={...this.props.value,[e]:t};this.props.onChange(n)};render(){let{value:e,layout:t,elementType:n,containerRef:r}=this.props,i=TT(t,e,this.handleChange,this.props.renderChildren,null,n);return(0,Y.jsxDEV)(ET,{ref:r||this.internalContainerRef,children:i},void 0,!1,{fileName:yT,lineNumber:176,columnNumber:12},this)}},OT=/\{\{(\d+)\}\}/g,kT=(e,t)=>e?{markup:e.replace(OT,(e,n)=>`<span data-component="${t}" data-id="${n}"></span>`)}:{markup:``},AT=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/mask-markup/src/with-mask.tsx`,jT=(e,t)=>{let{markup:n}=kT(e,t);return vT(n).document},MT=((e,t)=>class extends H.Component{static propTypes={markup:b.string,layout:b.object,value:b.object,onChange:b.func,customMarkMarkupComponent:b.func,elementType:b.string};constructor(e){super(e),this.containerRef=H.createRef()}componentDidUpdate(e){if(this.props.markup!==e.markup){let e=this.containerRef.current;(e&&e.querySelectorAll(`[data-latex][data-math-handled="true"]`)||[]).forEach(e=>{let t=e.querySelector(`mjx-container`);t&&e.removeChild(t),e.innerHTML=e.getAttribute(`data-raw`),e.removeAttribute(`data-math-handled`)})}}render(){let{markup:n,layout:r,value:i,onChange:a,elementType:o}=this.props,s=r||jT(n,e);return(0,Y.jsxDEV)(DT,{containerRef:this.containerRef,elementType:o,layout:s,value:i,onChange:a,renderChildren:t(this.props)},void 0,!1,{fileName:AT,lineNumber:74,columnNumber:9},this)}})(`input`,e=>(t,n,r)=>{let i=t.data&&t.data.dataset||{};if(i.component===`input`)return e.customMarkMarkupComponent(i.id)}),NT=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/correct-answer-toggle/src/expander.tsx`,PT=`height ease-in 300ms, opacity ease-in 300ms`,FT=q(`div`)(()=>({position:`relative`,height:0,overflow:`hidden`,display:`flex`,visibility:`hidden`,width:0,"&.enter":{transition:PT,opacity:1,height:`auto`,width:`auto`,visibility:`visible`,minHeight:`25px`},"&.enter-done":{height:`auto`,visibility:`visible`,width:`auto`,minHeight:`25px`},"&.exit":{transition:PT,opacity:0,height:0,visibility:`visible`,width:0},"&.exit-done":{opacity:0,visibility:`hidden`,height:0,width:0}})),IT=e=>{let{show:t,children:n,className:r}=e,i=(0,H.useRef)(null);return(0,Y.jsxDEV)(Vf,{nodeRef:i,in:t,appear:!0,mountOnEnter:!1,timeout:300,classNames:{enter:`enter`,enterDone:`enter-done`,exit:`exit`,exitDone:`exit-done`},children:(0,Y.jsxDEV)(FT,{ref:i,className:r,children:n},void 0,!1,{fileName:NT,lineNumber:72,columnNumber:7},void 0)},void 0,!1,{fileName:NT,lineNumber:59,columnNumber:5},void 0)};IT.propTypes={show:b.bool.isRequired,className:b.string,children:b.oneOfType([b.arrayOf(b.node),b.node]).isRequired};var $=e=>typeof e==`string`,LT=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},RT=e=>e==null?``:``+e,zT=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},BT=/###/g,VT=e=>e&&e.indexOf(`###`)>-1?e.replace(BT,`.`):e,HT=e=>!e||$(e),UT=(e,t,n)=>{let r=$(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(HT(e))return{};let t=VT(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return HT(e)?{}:{obj:e,k:VT(r[i])}},WT=(e,t,n)=>{let{obj:r,k:i}=UT(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=UT(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=UT(e,o,Object),s?.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},GT=(e,t,n,r)=>{let{obj:i,k:a}=UT(e,t,Object);i[a]=i[a]||[],i[a].push(n)},KT=(e,t)=>{let{obj:n,k:r}=UT(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},qT=(e,t,n)=>{let r=KT(e,n);return r===void 0?KT(t,n):r},JT=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?$(e[r])||e[r]instanceof String||$(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):JT(e[r],t[r],n):e[r]=t[r]);return e},YT=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),XT={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`},ZT=e=>$(e)?e.replace(/[&<>"'\/]/g,e=>XT[e]):e,QT=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},$T=[` `,`,`,`?`,`!`,`;`],eE=new QT(20),tE=(e,t,n)=>{t||=``,n||=``;let r=$T.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=eE.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},nE=(e,t,n=`.`)=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},rE=e=>e?.replace(`_`,`-`),iE={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console?.[e]?.apply?.(console,t)}},aE=new class e{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||`i18next:`,this.logger=e||iE,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,`log`,``,!0)}warn(...e){return this.forward(e,`warn`,``,!0)}error(...e){return this.forward(e,`error`,``)}deprecate(...e){return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:($(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},oE=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,n])=>{for(let r=0;r<n;r++)e(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(([n,r])=>{for(let i=0;i<r;i++)n.apply(n,[e,...t])})}},sE=class extends oE{constructor(e,t={ns:[`translation`],defaultNS:`translation`}){super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n,r={}){let i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):$(n)&&i?o.push(...n.split(i)):o.push(n)));let s=KT(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!$(n)?s:nE(this.data?.[e]?.[t],n,i)}addResource(e,t,n,r,i={silent:!1}){let a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),WT(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n,r={silent:!1}){for(let r in n)($(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i,a={silent:!1,skipCopy:!1}){let o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=KT(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?JT(s,n,i):s={...s,...n},WT(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},cE={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{t=this.processors[e]?.process(t,n,r,i)??t}),t}},lE=Symbol(`i18next/PATH_KEY`);function uE(){let e=[],t=Object.create(null),n;return t.get=(r,i)=>(n?.revoke?.(),i===lE?e:(e.push(i),n=Proxy.revocable(r,t),n.proxy)),Proxy.revocable(Object.create(null),t).proxy}function dE(e,t){let{[lE]:n}=e(uE());return n.join(t?.keySeparator??`.`)}var fE={},pE=e=>!$(e)&&typeof e!=`boolean`&&typeof e!=`number`,mE=class e extends oE{constructor(e,t={}){super(),zT([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=aE.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let n={...t};if(e==null)return!1;let r=this.resolve(e,n);if(r?.res===void 0)return!1;let i=pE(r.res);return!(n.returnObjects===!1&&i)}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!tE(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:$(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:$(i)?[i]:i}}translate(t,n,r){let i=typeof n==`object`?{...n}:n;if(typeof i!=`object`&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i==`object`&&(i={...i}),i||={},t==null)return``;typeof t==`function`&&(t=dE(t,{...this.options,...i})),Array.isArray(t)||(t=[String(t)]);let a=i.returnDetails===void 0?this.options.returnDetails:i.returnDetails,o=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,{key:s,namespaces:c}=this.extractFromKey(t[t.length-1],i),l=c[c.length-1],u=i.nsSeparator===void 0?this.options.nsSeparator:i.nsSeparator;u===void 0&&(u=`:`);let d=i.lng||this.language,f=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d?.toLowerCase()===`cimode`)return f?a?{res:`${l}${u}${s}`,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:`${l}${u}${s}`:a?{res:s,usedKey:s,exactUsedKey:s,usedLng:d,usedNS:l,usedParams:this.getUsedParamsDetails(i)}:s;let p=this.resolve(t,i),m=p?.res,h=p?.usedKey||s,g=p?.exactUsedKey||s,_=[`[object Number]`,`[object Function]`,`[object RegExp]`],v=i.joinArrays===void 0?this.options.joinArrays:i.joinArrays,y=!this.i18nFormat||this.i18nFormat.handleAsObject,b=i.count!==void 0&&!$(i.count),x=e.hasDefaultValue(i),S=b?this.pluralResolver.getSuffix(d,i.count,i):``,C=i.ordinal&&b?this.pluralResolver.getSuffix(d,i.count,{ordinal:!1}):``,w=b&&!i.ordinal&&i.count===0,T=w&&i[`defaultValue${this.options.pluralSeparator}zero`]||i[`defaultValue${S}`]||i[`defaultValue${C}`]||i.defaultValue,E=m;y&&!m&&x&&(E=T);let D=pE(E),O=Object.prototype.toString.apply(E);if(y&&E&&D&&_.indexOf(O)<0&&!($(v)&&Array.isArray(E))){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(h,E,{...i,ns:c}):`key '${s} (${this.language})' returned an object instead of string.`;return a?(p.res=e,p.usedParams=this.getUsedParamsDetails(i),p):e}if(o){let e=Array.isArray(E),t=e?[]:{},n=e?g:h;for(let e in E)if(Object.prototype.hasOwnProperty.call(E,e)){let r=`${n}${o}${e}`;x&&!m?t[e]=this.translate(r,{...i,defaultValue:pE(T)?T[e]:void 0,joinArrays:!1,ns:c}):t[e]=this.translate(r,{...i,joinArrays:!1,ns:c}),t[e]===r&&(t[e]=E[e])}m=t}}else if(y&&$(v)&&Array.isArray(m))m=m.join(v),m&&=this.extendTranslation(m,t,i,r);else{let e=!1,n=!1;!this.isValidLookup(m)&&x&&(e=!0,m=T),this.isValidLookup(m)||(n=!0,m=s);let a=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&n?void 0:m,c=x&&T!==m&&this.options.updateMissing;if(n||e||c){if(this.logger.log(c?`updateKey`:`missingKey`,d,l,s,c?T:m),o){let e=this.resolve(s,{...i,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(i.lng||this.language):e.push(i.lng||this.language);let n=(e,t,n)=>{let r=x&&n!==m?n:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,l,t,r,c,i):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,l,t,r,c,i),this.emit(`missingKey`,e,l,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,i);w&&i[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{n([e],s+t,i[`defaultValue${t}`]||T)})}):n(e,s,T))}m=this.extendTranslation(m,t,i,p,r),n&&m===s&&this.options.appendNamespaceToMissingKey&&(m=`${l}${u}${s}`),(n||e)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${l}${u}${s}`:s,e?m:void 0,i))}return a?(p.res=m,p.usedParams=this.getUsedParamsDetails(i),p):m}extendTranslation(e,t,n,r,i){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let a=$(e)&&(n?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:n.interpolation.skipOnVariables),o;if(a){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let s=n.replace&&!$(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),e=this.interpolator.interpolate(e,s,n.lng||this.language||r.usedLng,n),a){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;o<r&&(n.nest=!1)}!n.lng&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,(...e)=>i?.[0]===e[0]&&!n.context?(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):this.translate(...e,t),n)),n.interpolation&&this.interpolator.reset()}let a=n.postProcess||this.options.postProcess,o=$(a)?[a]:a;return e!=null&&o?.length&&n.applyPostProcessor!==!1&&(e=cE.handle(o,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e,t={}){let n,r,i,a,o;return $(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!$(t.count),d=u&&!t.ordinal&&t.count===0,f=t.context!==void 0&&($(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!fE[`${p[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(o)&&(fE[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),o.push(c+e),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator||`_`}${t.context}`;o.push(r),u&&(t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),o.push(r+e),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n,r={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(e={}){let t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!$(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},hE=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=aE.create(`languageUtils`)}getScriptPartFromCode(e){if(e=rE(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=rE(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if($(e)&&e.indexOf(`-`)>-1){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch{}return t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t||(this.options.lowerCaseLng?e.toLowerCase():e)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getScriptPartFromCode(e);if(this.isSupportedCode(n))return t=n;let r=this.getLanguagePartFromCode(e);if(this.isSupportedCode(r))return t=r;t=this.options.supportedLngs.find(e=>{if(e===r||!(e.indexOf(`-`)<0&&r.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&r.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===r||e.indexOf(r)===0&&r.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),$(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes((t===!1?[]:t)||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return $(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):$(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},gE={zero:0,one:1,two:2,few:3,many:4,other:5},_E={select:e=>e===1?`one`:`other`,resolvedOptions:()=>({pluralCategories:[`one`,`other`]})},vE=class{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=aE.create(`pluralResolver`),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let n=rE(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!Intl)return this.logger.error(`No Intl support, please use an Intl polyfill!`),_E;if(!e.match(/-|_/))return _E;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}needsPlural(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,n={}){return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let n=this.getRule(e,t);return n||=this.getRule(`dev`,t),n?n.resolvedOptions().pluralCategories.sort((e,t)=>gE[e]-gE[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):[]}getSuffix(e,t,n={}){let r=this.getRule(e,n);return r?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix(`dev`,t,n))}},yE=(e,t,n,r=`.`,i=!0)=>{let a=qT(e,t,n);return!a&&i&&$(n)&&(a=nE(e,n,r),a===void 0&&(a=nE(t,n,r))),a},bE=e=>e.replace(/\$/g,`$$$$`),xE=class{constructor(e={}){this.logger=aE.create(`interpolator`),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?ZT:t,this.escapeValue=n===void 0?!0:n,this.useRawValueToEscape=r===void 0?!1:r,this.prefix=i?YT(i):a||`{{`,this.suffix=o?YT(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?YT(d):f||YT(`$t(`),this.nestingSuffix=p?YT(p):m||YT(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_===void 0?!1:_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=yE(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(yE(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r?.interpolation?.skipOnVariables===void 0?this.options.interpolation.skipOnVariables:r.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>bE(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?bE(this.escape(e)):bE(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0)if(typeof l==`function`){let t=l(e,i,r);a=$(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``;else !$(a)&&!this.useRawValueToEscape&&(a=RT(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t,n={}){let r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);((o?.length??0)%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!$(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=/{.*}/.test(r[1])?r[1].lastIndexOf(`}`)+1:r[1].indexOf(this.formatSeparator);if(c!==-1&&(s=r[1].slice(c).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,c)),i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!$(i))return i;$(i)||(i=RT(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),s.length&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},SE=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},CE=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(rE(r),i),t[o]=s),s(n)}},wE=e=>(t,n,r)=>e(rE(n),r)(t),TE=class{constructor(e={}){this.logger=aE.create(`formatter`),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||`,`;let n=t.cacheInBuiltFormats?CE:wE;this.formats={number:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:n((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:n((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:n((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:n((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=CE(t)}format(e,t,n,r={}){let i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=SE(t);if(this.formats[i]){let t=e;try{let o=r?.formatParams?.[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}else this.logger.warn(`there was no format function for ${i}`);return e},e)}},EE=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},DE=class extends oE{constructor(e,t,n,r={}){super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=aE.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{GT(n.loaded,[i],a),EE(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n,r=0,i=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t,n={},r){if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();$(e)&&(e=this.languageUtils.toResolveHierarchy(e)),$(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e,t=``){let n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(!(n==null||n===``)){if(this.backend?.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},OE=()=>({debug:!1,initAsync:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),$(e[1])&&(t.defaultValue=e[1]),$(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),kE=e=>($(e.ns)&&(e.ns=[e.ns]),$(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),$(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs?.indexOf?.(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),typeof e.initImmediate==`boolean`&&(e.initAsync=e.initImmediate),e),AE=()=>{},jE=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},ME=e=>!!(e?.modules?.backend?.name?.indexOf(`Locize`)>0||e?.modules?.backend?.constructor?.name?.indexOf(`Locize`)>0||e?.options?.backend?.backends&&e.options.backend.backends.some(e=>e?.name?.indexOf(`Locize`)>0||e?.constructor?.name?.indexOf(`Locize`)>0)),NE=class e extends oE{constructor(e={},t){if(super(),this.options=kE(e),this.services={},this.logger=aE,this.modules={external:[]},jE(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,typeof e==`function`&&(t=e,e={}),e.defaultNS==null&&e.ns&&($(e.ns)?e.defaultNS=e.ns:e.ns.indexOf(`translation`)<0&&(e.defaultNS=e.ns[0]));let n=OE();this.options={...n,...this.options,...kE(e)},this.options.interpolation={...n.interpolation,...this.options.interpolation},e.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=e.keySeparator),e.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=e.nsSeparator),typeof this.options.overloadTranslationOptionHandler!=`function`&&(this.options.overloadTranslationOptionHandler=n.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!ME(this)&&typeof console<`u`&&console.info!==void 0&&console.info(`🌐 i18next is maintained with support from locize.com — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙`);let r=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?aE.init(r(this.modules.logger),this.options):aE.init(null,this.options);let e;e=this.modules.formatter?this.modules.formatter:TE;let t=new hE(this.options);this.store=new sE(this.options.resources,this.options);let i=this.services;i.logger=aE,i.resourceStore=this.store,i.languageUtils=t,i.pluralResolver=new vE(t,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==n.interpolation.format&&this.logger.deprecate(`init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting`),e&&(!this.options.interpolation.format||this.options.interpolation.format===n.interpolation.format)&&(i.formatter=r(e),i.formatter.init&&i.formatter.init(i,this.options),this.options.interpolation.format=i.formatter.format.bind(i.formatter)),i.interpolator=new xE(this.options),i.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},i.backendConnector=new DE(r(this.modules.backend),i.resourceStore,i,this.options),i.backendConnector.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(i.languageDetector=r(this.modules.languageDetector),i.languageDetector.init&&i.languageDetector.init(i,this.options.detection,this.options)),this.modules.i18nFormat&&(i.i18nFormat=r(this.modules.i18nFormat),i.i18nFormat.init&&i.i18nFormat.init(this)),this.translator=new mE(this.services,this.options),this.translator.on(`*`,(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||=AE,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let i=LT(),a=()=>{let e=(e,n)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),i.resolve(n),t(e,n)};if(this.languages&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?a():setTimeout(a,0),i}loadResources(e,t=AE){let n=t,r=$(e)?e:this.language;if(typeof e==`function`&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return n();let e=[],t=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(e)})}else n(null)}reloadResources(e,t,n){let r=LT();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=AE,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&cE.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&this.languages.indexOf(e)<0&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let n=LT();this.emit(`languageChanging`,e);let r=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},i=(i,a)=>{a?this.isLanguageChangingTo===e&&(r(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,n.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},a=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=$(t)?t:t&&t[0],a=this.store.hasLanguageSomeTranslations(n)?n:this.services.languageUtils.getBestMatchFromCodes($(t)?[t]:t);a&&(this.language||r(a),this.translator.language||this.translator.changeLanguage(a),this.services.languageDetector?.cacheUserLanguage?.(a)),this.loadResources(a,e=>{i(e,a)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e),n}getFixedT(e,t,n){let r=(e,t,...i)=>{let a;a=typeof t==`object`?{...t}:this.options.overloadTranslationOptionHandler([e,t].concat(i)),a.lng=a.lng||r.lng,a.lngs=a.lngs||r.lngs,a.ns=a.ns||r.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||r.keyPrefix);let o=this.options.keySeparator||`.`,s;return a.keyPrefix&&Array.isArray(e)?s=e.map(e=>(typeof e==`function`&&(e=dE(e,{...this.options,...t})),`${a.keyPrefix}${o}${e}`)):(typeof e==`function`&&(e=dE(e,{...this.options,...t})),s=a.keyPrefix?`${a.keyPrefix}${o}${e}`:e),this.t(s,a)};return $(e)?r.lng=e:r.lngs=e,r.ns=t,r.keyPrefix=n,r}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=LT();return this.options.ns?($(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=LT();$(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language),!e)return`rtl`;try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch{}let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services?.languageUtils||new hE(OE());return e.toLowerCase().indexOf(`-latn`)>1?`ltr`:t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(t={},n){let r=new e(t,n);return r.createInstance=e.createInstance,r}cloneInstance(t={},n=AE){let r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new sE(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((n,r)=>(n[r]={...e[t][r]},n),e[t]),e),{}),i),a.services.resourceStore=a.store),t.interpolation){let e={...OE().interpolation,...this.options.interpolation,...t.interpolation},n={...i,interpolation:e};a.services.interpolator=new xE(n)}return a.translator=new mE(a.services,i),a.translator.on(`*`,(e,...t)=>{a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}.createInstance();NE.createInstance,NE.dir,NE.init,NE.loadResources,NE.reloadResources,NE.use,NE.changeLanguage,NE.getFixedT,NE.t,NE.exists,NE.setDefaultNamespace,NE.hasLoadedNamespace,NE.loadNamespaces,NE.loadLanguages,NE.init({fallbackLng:`en`,lng:`en`,debug:!0,resources:{en:{translation:{categorize:{limitMaxChoicesPerCategory:`You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.`,maxChoicesPerCategoryRestriction:`To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].`},ebsr:{part:`Part {{index}}`},numberLine:{addElementLimit_one:`You can only add {{count}} element`,addElementLimit_other:`You can only add {{count}} elements`,clearAll:`Clear all`},imageClozeAssociation:{reachedLimit_one:`You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.`,reachedLimit_other:`Full`},drawingResponse:{fillColor:`Fill color`,outlineColor:`Outline color`,noFill:`No fill`,lightblue:`Light blue`,lightyellow:`Light yellow`,red:`Red`,orange:`Orange`,yellow:`Yellow`,violet:`Violet`,blue:`Blue`,green:`Green`,white:`White`,black:`Black`,onDoubleClick:`Double click to edit this text. Press Enter to submit.`},charting:{addCategory:`Add category`,actions:`Actions`,add:`Add`,delete:`Delete`,newLabel:`New label`,reachedLimit_other:`There can't be more than {{count}} categories.`,keyLegend:{incorrectAnswer:`Student incorrect answer`,correctAnswer:`Student correct answer`,correctKeyAnswer:`Answer key correct`}},graphing:{point:`Point`,circle:`Circle`,line:`Line`,parabola:`Parabola`,absolute:`Absolute Value`,exponential:`Exponential`,polygon:`Polygon`,ray:`Ray`,segment:`Segment`,sine:`Sine`,vector:`Vector`,label:`Label`,redo:`Redo`,reset:`Reset`},mathInline:{primaryCorrectWithAlternates:`Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct.`},multipleChoice:{minSelections:`Select at least {{minSelections}}.`,maxSelections_one:`Only {{maxSelections}} answer is allowed.`,maxSelections_other:`Only {{maxSelections}} answers are allowed.`,minmaxSelections_equal:`Select {{minSelections}}.`,minmaxSelections_range:`Select between {{minSelections}} and {{maxSelections}}.`},selectText:{correctAnswerSelected:`Correct`,correctAnswerNotSelected:`Correct Answer Not Selected`,incorrectSelection:`Incorrect Selection`,key:`Key`}},common:{undo:`Undo`,clearAll:`Clear all`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Show correct answer`,hideCorrectAnswer:`Hide correct answer`,commonCorrectAnswerWithAlternates:`Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.`,warning:`Warning`,showNote:`Show Note`,hideNote:`Hide Note`,cancel:`Cancel`}},es:{translation:{categorize:{limitMaxChoicesPerCategory:`Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,maxChoicesPerCategoryRestriction:`Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta`},ebsr:{part:`Parte {{index}}`},numberLine:{addElementLimit_one:`Solo puedes agregar {{count}} elemento`,addElementLimit_other:`Solo puedes agregar {{count}} elementos`,clearAll:`Borrar todo`},imageClozeAssociation:{reachedLimit_one:`Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.`,reachedLimit_other:`Lleno`},drawingResponse:{fillColor:`Color de relleno`,outlineColor:`Color del contorno`,noFill:`Sin relleno`,lightblue:`Azul claro`,lightyellow:`Amarillo claro`,red:`Rojo`,orange:`Naranja`,yellow:`Amarillo`,violet:`Violeta`,blue:`Azul`,green:`Verde`,white:`Blanco`,black:`Negro`,onDoubleClick:`Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar`},charting:{addCategory:`Añadir categoría`,actions:`Acciones`,add:`Añadir`,delete:`Eliminar`,newLabel:`Nueva etiqueta`,reachedLimit_other:`No puede haber más de {{count}} categorías.`,keyLegend:{incorrectAnswer:`Respuesta incorrecta del estudiante`,correctAnswer:`Respuesta correcta del estudiante`,correctKeyAnswer:`Clave de respuesta correcta`}},graphing:{point:`Punto`,circle:`Circulo`,line:`Línea`,parabola:`Parábola`,absolute:`Valor absoluto`,exponential:`Exponencial`,polygon:`Polígono`,ray:`Semirrecta`,segment:`Segmento `,sine:`Seno`,vector:`Vector`,label:`Etiqueta`,redo:`Rehacer`,reset:`Reiniciar`},mathInline:{primaryCorrectWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas.`},multipleChoice:{minSelections:`Seleccione al menos {{minSelections}}.`,maxSelections_one:`Sólo se permite {{maxSelections}} respuesta.`,maxSelections_other:`Sólo se permiten {{maxSelections}} respuestas.`,minmaxSelections_equal:`Seleccione {{minSelections}}.`,minmaxSelections_range:`Seleccione entre {{minSelections}} y {{maxSelections}}.`},selectText:{correctAnswerSelected:`Respuesta Correcta`,correctAnswerNotSelected:`Respuesta Correcta No Seleccionada`,incorrectSelection:`Selección Incorrecta`,key:`Clave`}},common:{undo:`Deshacer`,clearAll:`Borrar todo`,correct:`Correct`,incorrect:`Incorrect`,showCorrectAnswer:`Mostrar respuesta correcta`,hideCorrectAnswer:`Ocultar respuesta correcta`,commonCorrectAnswerWithAlternates:`Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.`,warning:`Advertencia`,showNote:`Mostrar Nota`,hideNote:`Ocultar Nota`,cancel:`Cancelar`}}}});var PE={translator:{...NE,t:(e,t)=>{let{lng:n}=t;switch(n){case`en_US`:case`en-US`:t.lng=`en`;break;case`es_ES`:case`es-ES`:case`es_MX`:case`es-MX`:t.lng=`es`;break;default:break}return NE.t(e,{lng:n,...t})}},languageOptions:[{value:`en_US`,label:`English (US)`},{value:`es_ES`,label:`Spanish`}]},FE=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/lib-react/correct-answer-toggle/src/index.tsx`;function IE(e){return typeof e==`function`||typeof e==`object`&&!!e&&typeof e.$$typeof==`symbol`}function LE(e,t){return!e||IE(e)?e:IE(e.default)?e.default:t&&IE(e[t])?e[t]:t&&IE(e[t]?.default)?e[t].default:e}var RE=LE(CC,`Readable`)||LE(VE.Readable,`Readable`),zE=QC,BE=zE.default,VE=BE&&typeof BE==`object`?BE:zE,{translator:HE}=PE,UE={WebkitTouchCallout:`none`,WebkitUserSelect:`none`,KhtmlUserSelect:`none`,MozUserSelect:`none`,msUserSelect:`none`,userSelect:`none`},WE=q(`div`)(()=>({width:`100%`,cursor:`pointer`})),GE=q(`div`)(()=>({margin:`0 auto`,textAlign:`center`,display:`flex`})),KE=q(`div`)(()=>({width:`fit-content`,minWidth:`140px`,alignSelf:`center`,verticalAlign:`middle`,color:`var(--correct-answer-toggle-label-color, ${nx()})`,fontWeight:`normal`,...UE})),qE=q(`div`)(()=>({position:`absolute`,width:`25px`,"&.enter":{opacity:`0`},"&.enter-active":{opacity:`1`,transition:`opacity 0.3s ease-in`},"&.exit":{opacity:`1`},"&.exit-active":{opacity:`0`,transition:`opacity 0.3s ease-in`}})),JE=q(`div`)(()=>({width:`25px`,marginRight:`5px`,display:`flex`,alignItems:`center`})),YE=class e extends H.Component{static propTypes={onToggle:b.func,toggled:b.bool,show:b.bool,hideMessage:b.string,showMessage:b.string,className:b.string,language:b.string};static defaultProps={showMessage:`Show correct answer`,hideMessage:`Hide correct answer`,show:!1,toggled:!1};constructor(t){super(t),this.state={show:t.show},this.openIconRef=H.createRef(),this.closedIconRef=H.createRef(),e.defaultProps={...e.defaultProps,showMessage:HE.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:HE.t(`common:hideCorrectAnswer`,{lng:t.language})}}onClick(){this.props.onToggle(!this.props.toggled)}onTouch(e){e.preventDefault(),this.props.onToggle(!this.props.toggled)}UNSAFE_componentWillReceiveProps(t){this.setState({show:t.show}),t.language!==this.props?.language&&(e.defaultProps={...e.defaultProps,showMessage:HE.t(`common:showCorrectAnswer`,{lng:t.language}),hideMessage:HE.t(`common:hideCorrectAnswer`,{lng:t.language})})}render(){let{className:e,toggled:t,hideMessage:n,showMessage:r}=this.props;return(0,Y.jsxDEV)(WE,{className:e,children:(0,Y.jsxDEV)(IT,{show:this.state.show,children:(0,Y.jsxDEV)(GE,{onClick:this.onClick.bind(this),onTouchEnd:this.onTouch.bind(this),children:[(0,Y.jsxDEV)(JE,{children:[(0,Y.jsxDEV)(Vf,{nodeRef:this.openIconRef,timeout:400,in:t,exit:!t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,Y.jsxDEV)(qE,{ref:this.openIconRef,children:(0,Y.jsxDEV)(Wy,{open:t},`correct-open`,!1,{fileName:FE,lineNumber:185,columnNumber:19},this)},void 0,!1,{fileName:FE,lineNumber:184,columnNumber:17},this)},void 0,!1,{fileName:FE,lineNumber:172,columnNumber:15},this),(0,Y.jsxDEV)(Vf,{nodeRef:this.closedIconRef,timeout:5e3,in:!t,exit:t,classNames:{enter:`enter`,enterActive:`enter-active`,exit:`exit`,exitActive:`exit-active`},children:(0,Y.jsxDEV)(qE,{ref:this.closedIconRef,children:(0,Y.jsxDEV)(Wy,{open:t},`correct-closed`,!1,{fileName:FE,lineNumber:201,columnNumber:19},this)},void 0,!1,{fileName:FE,lineNumber:200,columnNumber:17},this)},void 0,!1,{fileName:FE,lineNumber:188,columnNumber:15},this)]},void 0,!0,{fileName:FE,lineNumber:171,columnNumber:13},this),(0,Y.jsxDEV)(RE,{false:!0,children:(0,Y.jsxDEV)(KE,{"aria-hidden":!this.state.show,children:t?n:r},void 0,!1,{fileName:FE,lineNumber:206,columnNumber:15},this)},void 0,!1,{fileName:FE,lineNumber:205,columnNumber:13},this)]},void 0,!0,{fileName:FE,lineNumber:170,columnNumber:11},this)},void 0,!1,{fileName:FE,lineNumber:169,columnNumber:9},this)},void 0,!1,{fileName:FE,lineNumber:168,columnNumber:7},this)}},XE=`/Users/eelco.hillenius/dev/prj/pie/pie-elements-ng/packages/elements-react/math-templated/src/delivery/main.tsx`,ZE=q(HS)({color:nx(),backgroundColor:Cx(),display:`inline-block`}),QE=q(`div`)({width:`100%`,position:`relative`,backgroundColor:Cx(),color:nx()}),$E=q(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),eD=q(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),tD=q(`div`)({position:`relative`,"& > div > div":{display:`flex`,alignItems:`baseline`,flexWrap:`wrap`},"& .mq-overarrow-inner":{border:`none !important`,padding:`0 !important`},"& .mq-overarrow-inner-right":{display:`none !important`},"& .mq-overarrow-inner-left":{display:`none !important`},"& .mq-overarrow.mq-arrow-both":{minWidth:`1.23em`,"& *":{lineHeight:`1 !important`},"&:before":{top:`-0.4em`,left:`-1px`},"&:after":{top:`-2.4em`,right:`-1px`},"&.mq-empty:after":{top:`-0.45em`}},"& .mq-overarrow.mq-arrow-right":{"&:before":{top:`-0.4em`,right:`-1px`}},"& .mq-longdiv-inner":{borderTop:`1px solid !important`,paddingTop:`1.5px !important`},"& .mq-parallelogram":{lineHeight:.85}}),nD=q(`div`)(({theme:e,$incorrect:t,$correct:n,$showCorrectness:r,$correctAnswerShown:i})=>({maxWidth:`fit-content`,...t&&{borderColor:`${lx()} !important`},...n&&{borderColor:`${ax()} !important`},...r&&{border:`2px solid`},...i&&{padding:e.spacing(1),letterSpacing:`0.5px`},"& > .mq-math-mode":{"& > .mq-root-block":{"& > .mq-editable-field":{minWidth:`10px`,padding:e.spacing(.25)}},"& sup":{top:0}}})),rD=q(Lw)({"& > .mq-root-block":{"& > .mq-editable-field":{borderColor:nx()}}}),iD=q(`div`)(({theme:e})=>({zIndex:10,minWidth:`400px`,marginTop:e.spacing(2)})),aD=q(`div`)(({theme:e})=>({marginBottom:e.spacing(1),pointerEvents:`none`})),oD=q(`h2`)({position:`absolute`,left:`-10000px`,top:`auto`,width:`1px`,height:`1px`,overflow:`hidden`}),sD=q(`div`)(({theme:e})=>({marginBottom:e.spacing(2)})),cD=q(YE)(({theme:e})=>({color:nx(),marginBottom:e.spacing(2)}));if(typeof document<`u`){let e=`math-templated-main-styles`;if(!document.getElementById(e)){let t=document.createElement(`style`);t.id=e,t.textContent=`
|
|
185
|
+
.block-container {
|
|
186
|
+
margin: 8px !important;
|
|
187
|
+
display: inline-flex;
|
|
188
|
+
border: 2px solid grey !important;
|
|
189
|
+
}
|
|
190
|
+
.block-response {
|
|
191
|
+
flex: 2;
|
|
192
|
+
color: grey;
|
|
193
|
+
background: rgba(0, 0, 0, 0.04);
|
|
194
|
+
font-size: 0.8rem !important;
|
|
195
|
+
padding: 4px !important;
|
|
196
|
+
display: flex;
|
|
197
|
+
align-items: center;
|
|
198
|
+
justify-content: center;
|
|
199
|
+
border-right: 2px solid #bdbdbd !important;
|
|
200
|
+
}
|
|
201
|
+
.block-math {
|
|
202
|
+
color: ${nx()};
|
|
203
|
+
background-color: ${Cx()};
|
|
204
|
+
padding: 4px !important;
|
|
205
|
+
display: flex;
|
|
206
|
+
align-items: center;
|
|
207
|
+
justify-content: center;
|
|
208
|
+
flex: 8;
|
|
209
|
+
}
|
|
210
|
+
.block-math > .mq-math-mode > .mq-hasCursor > .mq-cursor {
|
|
211
|
+
display: none;
|
|
212
|
+
}
|
|
213
|
+
.correct {
|
|
214
|
+
border-color: ${ax()} !important;
|
|
215
|
+
}
|
|
216
|
+
.incorrect {
|
|
217
|
+
border-color: ${lx()} !important;
|
|
218
|
+
}
|
|
219
|
+
`,document.head.appendChild(t)}}var lD=/(\{\{\d+\}\})/gm,uD=6,dD=!1,fD=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function pD(e=[]){let t=(e=``)=>e.replace(/\$\$/g,``).replace(/^\$|\$$/g,``).trim();return e.map(e=>({name:e,latex:t(e),write:t(e),label:t(e)}))}function mD(e=[],t){return Math.floor(e.length/5)*30+(t===`miscellaneous`?600:500)}function hD(e){return e.split(lD).filter(e=>e)}function gD(e,t){let{responses:n,disabled:r,markup:i,printMode:a,alwaysShowCorrect:o}=e||{};if(i)return t.showCorrect?Object.keys(n||{}).reduce((e,t)=>(e[t]=n?.[t]?.answer,e),{}):hD(i).reduce((e,n)=>{if(n.match(lD)){let i=_D.getResponseKey(n),s=t.session.answers[`r${i}`];if(a&&!o){let t=`\\ \\ `.repeat(30)+`\\embed{newLine}[] `;return{...e,[i]:`\\MathQuillMathField[r${i}]{${t.repeat(3)}}`}}return r?{...e,[i]:`\\embed{answerBlock}[r${i}]`}:{...e,[i]:`\\MathQuillMathField[r${i}]{${s&&s.value||``}}`}}return e},{})}var _D=class e extends H.Component{static getResponseKey=e=>(e||``).replaceAll(`{{`,``).replaceAll(`}}`,``);static propTypes={session:b.object.isRequired,onSessionChange:b.func,model:b.object.isRequired};constructor(t){super(t);let n={},{model:r,session:i}=t||{},{markup:a,alwaysShowCorrect:o}=r||{},{answers:s}=i||{};a&&(a||``).replace(lD,t=>{let r=e.getResponseKey(t),i=s&&s[`r${r}`];n[`r${r}`]={value:i?.value||``}}),this.state={session:{...t.session,answers:n},activeAnswerBlock:``,showCorrect:o||!1,tooltipContainerRef:H.createRef()},typeof window<`u`&&!dD&&(kw.default.getInterface(2).registerEmbed(`answerBlock`,e=>({htmlString:`<div class="block-container">
|
|
220
|
+
<div class="block-response" id="${e}Index">R</div>
|
|
221
|
+
<div class="block-math">
|
|
222
|
+
<span id="${e}"></span>
|
|
223
|
+
</div>
|
|
224
|
+
</div>`,text:()=>`text`,latex:()=>`\\embed{answerBlock}[${e}]`})),dD=!0)}handleAnswerBlockDomUpdate=()=>{let{model:e}=this.props,{session:t,showCorrect:n}=this.state,r=t.answers;this.root&&e.disabled&&!n&&Object.keys(r).forEach(t=>{let n=this.root.querySelector(`#${t}`),i=this.root.querySelector(`#${t}Index`);if(n){let a=kw.default.getInterface(2),o=r[t];n.textContent=o&&o.value||``,e.view&&(n.parentElement.parentElement.classList.remove(`correct`),n.parentElement.parentElement.classList.remove(`incorrect`)),a.StaticMath(n),i.textContent=`R`}}),this.root&&ES(this.root)};UNSAFE_componentWillReceiveProps(t){let{model:n}=this.props,{model:r={}}=t||{},{markup:i=``,env:a={}}=n||{},{markup:o=``,env:s={},alwaysShowCorrect:c=!1}=r,l=e=>e&&e.mode===`evaluate`;(!l(a)||!l(s))&&this.setState(e=>({...e.session,showCorrect:!1})),c&&this.setState({showCorrect:!0});let u=i.match(lD),d=o.match(lD);if(!Di(u,d)){let t={},n=this.state.session.answers;(d||[]).forEach(r=>{let i=e.getResponseKey(r),a=n&&n[`r${i}`];t[`r${i}`]={value:a?.value||``}}),this.setState(e=>({session:{...e.session,answers:t}}),()=>{this.props.onSessionChange(this.state.session),this.handleAnswerBlockDomUpdate()})}}shouldComponentUpdate(e,t){let n=Di(this.props.model,e.model),r=Di(this.state,t);return!n||!r}componentDidMount(){this.handleAnswerBlockDomUpdate(),setTimeout(()=>ES(this.root),100)}componentDidUpdate(){this.handleAnswerBlockDomUpdate()}onSubFieldFocus=e=>{this.setState({activeAnswerBlock:e})};toNodeData=e=>{if(!e)return;let{type:t,value:n}=e;return t===`command`||t===`cursor`?e:t===`answer`?{type:`answer`,...e}:n===`clear`?{type:`clear`}:{type:`write`,value:n}};setInput=e=>{this.input=e};onClick=e=>{let t=this.toNodeData(e);t.type===`clear`?this.input.clear():t.type===`command`?Array.isArray(t.value)?t.value.forEach(e=>{this.input.cmd(e)}):this.input.cmd(t.value):t.type===`cursor`?this.input.keystroke(t.value):this.input.write(t.value),this.input.focus()};callOnSessionChange=()=>{let{onSessionChange:e}=this.props;e&&e(this.state.session)};toggleShowCorrect=e=>{this.setState({showCorrect:e},this.handleAnswerBlockDomUpdate)};subFieldChanged=(e,t)=>{X_(),e&&this.setState(n=>({session:{...n.session,answers:{...n.session.answers,[e]:{value:t}}}}),this.callOnSessionChange)};getFieldName=(e,t)=>{let{answers:n}=this.state.session;if(Object.keys(n||{}).length)return Object.keys(n).find(n=>{let r=t[n];return r&&r.id==e.id})};onBlur=e=>{let{relatedTarget:t,currentTarget:n}=e||{};function r(e,t=0){if(!e||t>=16)return null;let n=e.offsetParent;return n?n.getAttribute(`role`)===`tooltip`?n:r(n,t+1):null}function i(e,t=0){if(!e||t>=4)return null;let n=e?.children?.[0];return n?n.attributes&&n.attributes[`data-keypad`]?n:i(n,t+1):null}let a=r(t),o=a?i(a):null;(!t||!n||!o?.attributes[`data-keypad`])&&this.setState({activeAnswerBlock:``})};setTooltipRef(e){setTimeout(()=>{if(e&&fD){let e=document.querySelector(`[role='tooltip']`);e&&e.firstChild.setAttribute(`tabindex`,`-1`)}},1)}renderTeacherInstructions=()=>{let{model:e}=this.props,{teacherInstructions:t,animationsDisabled:n}=e||{},r=t&&(DC(t)||kC(t)),i=(0,Y.jsxDEV)(SC,{defaultClassName:`teacher-instructions`,prompt:t},void 0,!1,{fileName:XE,lineNumber:587,columnNumber:7},this);return r&&(void 0)(eD,{children:n?i:(void 0)(AS,{labels:{hidden:`Show Teacher Instructions`,visible:`Hide Teacher Instructions`},children:i},void 0,!1,{fileName:XE,lineNumber:594,columnNumber:13},this)},void 0,!1,{fileName:XE,lineNumber:592,columnNumber:9},this)};renderRationale=()=>{let{model:e}=this.props,{rationale:t,animationsDisabled:n}=e||{},r=(0,Y.jsxDEV)(SC,{prompt:t},void 0,!1,{fileName:XE,lineNumber:608,columnNumber:26},this);return t&&(DC(t)||kC(t))&&(void 0)(eD,{children:n?r:(void 0)(AS,{labels:{hidden:`Show Rationale`,visible:`Hide Rationale`},children:r},void 0,!1,{fileName:XE,lineNumber:615,columnNumber:13},this)},void 0,!1,{fileName:XE,lineNumber:613,columnNumber:9},this)};renderPlayerContent=()=>{let{model:e}=this.props,{activeAnswerBlock:t,showCorrect:n,session:r,tooltipContainerRef:i}=this.state,{correctness:a,disabled:o,view:s,responses:c,equationEditor:l,customKeys:u,feedback:d,env:{mode:f}={},printMode:p,alwaysShowCorrect:m}=e||{},h=Ei(c),g=pD(u),_=gD(e,this.state)||``,v=p&&!m;return(0,Y.jsxDEV)(tD,{children:(0,Y.jsxDEV)(MT,{disabled:o,markup:e.markup,value:{},customMarkMarkupComponent:e=>{let c=f===`evaluate`&&d&&d[e],u=(0,Y.jsxDEV)(rD,{ref:e=>{this.mqStatic=e||this.mqStatic},latex:_[e],onSubFieldChange:this.subFieldChanged,getFieldName:this.getFieldName,setInput:this.setInput,onSubFieldFocus:this.onSubFieldFocus,onBlur:this.onBlur},void 0,!1,{fileName:XE,lineNumber:656,columnNumber:15},this);return(0,Y.jsxDEV)(nD,{ref:i,$incorrect:!h&&!c&&!n,$correct:!h&&(c||n),$showCorrectness:!h&&o&&a&&!s,$correctAnswerShown:n,children:(0,Y.jsxDEV)(Ih,{ref:e=>this.setTooltipRef(e),enterTouchDelay:0,interactive:!0,open:t===`r${e}`,slotProps:{popper:{container:i?.current||void 0,placement:`bottom-end`,sx:{backgroundColor:`transparent`,width:`650px`,opacity:1,"& .MuiTooltip-arrow":{display:`none`}},modifiers:{preventOverflow:{enabled:!0,boundariesElement:`body`},flip:{enabled:!1}}},tooltip:{sx:{fontSize:`initial`,backgroundColor:`transparent`,width:`600px`,marginTop:0,paddingTop:0,boxShadow:`none`}}},title:Object.keys(r.answers).map(e=>e===t&&!(n||o)&&(void 0)(iD,{"data-keypad":!0,style:{width:mD(g,l)},children:(void 0)(ww,{additionalKeys:g,mode:l||uD,onClick:this.onClick,onRequestClose:()=>this.setState({activeAnswerBlock:``})},void 0,!1,{fileName:XE,lineNumber:723,columnNumber:27},this)},e,!1,{fileName:XE,lineNumber:718,columnNumber:25},this)||null),children:v?(0,Y.jsxDEV)(aD,{children:u},void 0,!1,{fileName:XE,lineNumber:734,columnNumber:39},this):(0,Y.jsxDEV)(`div`,{children:u},void 0,!1,{fileName:XE,lineNumber:734,columnNumber:85},this)},void 0,!1,{fileName:XE,lineNumber:677,columnNumber:17},this)},void 0,!1,{fileName:XE,lineNumber:670,columnNumber:15},this)}},void 0,!1,{fileName:XE,lineNumber:647,columnNumber:9},this)},void 0,!1,{fileName:XE,lineNumber:646,columnNumber:7},this)};render(){let{model:e}=this.props,{showCorrect:t}=this.state,{prompt:n,env:{mode:r,role:i}={},extraCSSRules:a,correctness:o,responses:s,language:c,showNote:l,note:u}=e||{},d=!Ei(s)&&o&&o.correctness!==`correct`,f=(t||r===`view`&&i===`instructor`)&&l&&u;return(0,Y.jsxDEV)(ZE,{extraCSSRules:a,ref:e=>{this.root=jf.findDOMNode(e)||this.root},children:(0,Y.jsxDEV)(QE,{children:[r===`gather`&&(void 0)(oD,{children:`Math Equation Response Question`},void 0,!1,{fileName:XE,lineNumber:773,columnNumber:33},this),(0,Y.jsxDEV)(QE,{children:d&&(void 0)(cD,{language:c,show:!0,toggled:t,onToggle:this.toggleShowCorrect},void 0,!1,{fileName:XE,lineNumber:777,columnNumber:15},this)},void 0,!1,{fileName:XE,lineNumber:775,columnNumber:11},this),this.renderTeacherInstructions(),n&&(void 0)($E,{children:(void 0)(SC,{prompt:n},void 0,!1,{fileName:XE,lineNumber:785,columnNumber:15},this)},void 0,!1,{fileName:XE,lineNumber:784,columnNumber:13},this),(0,Y.jsxDEV)(CC,{false:!0,children:this.renderPlayerContent()},void 0,!1,{fileName:XE,lineNumber:789,columnNumber:11},this),f&&(void 0)(sD,{className:`note`,dangerouslySetInnerHTML:{__html:u}},void 0,!1,{fileName:XE,lineNumber:791,columnNumber:27},this),this.renderRationale()]},void 0,!0,{fileName:XE,lineNumber:771,columnNumber:9},this)},void 0,!1,{fileName:XE,lineNumber:762,columnNumber:7},this)}},vD=g(),yD=class extends HTMLElement{constructor(){super(),this._root=null,this.sessionChangedEventCaller=bi(()=>{this.dispatchEvent(new v(this.tagName.toLowerCase(),!0))},1e3)}set model(e){this._model=e,this.render(),this.dispatchEvent(new _(this.tagName.toLowerCase(),this.isSessionComplete(),this._model!==void 0))}get model(){return this._model}set session(e){this._session=e,this.render()}get session(){return this._session}isSessionComplete(){return!0}onSessionChange(e){Object.keys(e).map(t=>{this._session[t]=e[t]}),this.sessionChangedEventCaller(),this.render()}connectedCallback(){this.render()}render(){if(!(!this._model||!this._session)&&this._model&&this._session){let e=H.createElement(_D,{model:this._model,session:this._session,onSessionChange:this.onSessionChange.bind(this)});this._root||=(0,vD.createRoot)(this),this._root.render(e)}}disconnectedCallback(){this._root&&this._root.unmount()}};return typeof window<`u`&&!customElements.get(`math-templated-element`)&&customElements.define(`math-templated-element`,yD),yD})();
|