@shopify/cli 3.62.0 → 3.63.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/assets/dev-console/extensions/dev-console/assets/apple-touch-icon-BXMqQaSW.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-16x16-B6uL8SrV.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/favicon-32x32-CGwlpz_y.png +0 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/index-Dui3DO9f.js +64 -0
- package/dist/assets/dev-console/extensions/dev-console/assets/site-B9Ae890R.webmanifest +19 -0
- package/dist/assets/dev-console/index.html +8 -9
- package/dist/{chunk-CYQRKZVM.js → chunk-243ST4XI.js} +4 -4
- package/dist/{chunk-PIB2FEJJ.js → chunk-33LTHUXG.js} +6 -6
- package/dist/{chunk-2ZSNH7CD.js → chunk-3F45YLTU.js} +2 -2
- package/dist/{chunk-PO6SEYU4.js → chunk-3ME57HGL.js} +3 -3
- package/dist/{chunk-HJ4AUFE7.js → chunk-3ZZCPHVD.js} +105 -87
- package/dist/{chunk-66NABVCG.js → chunk-4BUSSDYG.js} +2 -2
- package/dist/{chunk-B62HZLMM.js → chunk-4NDUTTUN.js} +2 -2
- package/dist/{chunk-NNASIYCT.js → chunk-53POJOM4.js} +2 -2
- package/dist/{chunk-YX5VXHSJ.js → chunk-5LXPV7MQ.js} +3 -3
- package/dist/{chunk-BZFXXFUC.js → chunk-5UBUOU6Y.js} +5 -5
- package/dist/{chunk-MQ2RGCDU.js → chunk-6QZIH2E2.js} +3 -3
- package/dist/{chunk-MG6QFKFM.js → chunk-7CRRPQKB.js} +3 -3
- package/dist/{chunk-LC6MEJT3.js → chunk-A2UVOX6O.js} +2 -1
- package/dist/{chunk-UACSLX64.js → chunk-A3RCZVBD.js} +4 -4
- package/dist/{chunk-PIVNWN2P.js → chunk-AAQFJMC7.js} +3 -3
- package/dist/{chunk-7MXLRMOY.js → chunk-ACPCT2DV.js} +2 -2
- package/dist/{chunk-5X4QXYEZ.js → chunk-BJR33ED4.js} +8 -4
- package/dist/{chunk-Q4XGXPUG.js → chunk-CM4H6QMH.js} +3 -3
- package/dist/{chunk-CKFE55FX.js → chunk-DNLEJ5LP.js} +3 -3
- package/dist/{chunk-TCRWMUKX.js → chunk-DSAXN5QR.js} +2 -2
- package/dist/{chunk-W5VEUSWG.js → chunk-FG5DDIHX.js} +3 -3
- package/dist/{chunk-K3GG6Y3J.js → chunk-FPF4R7ZF.js} +6 -6
- package/dist/{chunk-ZCMXEGSE.js → chunk-GL65ZDTM.js} +4 -4
- package/dist/{chunk-5FNE3T7E.js → chunk-GLKNDMGH.js} +3 -3
- package/dist/chunk-IQ5Z34TA.js +61 -0
- package/dist/{chunk-QGJLRFY4.js → chunk-MTFNX5KT.js} +50 -18
- package/dist/{chunk-JKYNFUD3.js → chunk-MUNPP2TW.js} +5 -5
- package/dist/{chunk-BMTG2VHL.js → chunk-OS7HES3C.js} +2 -2
- package/dist/{chunk-JOOYCYFU.js → chunk-QTM35S2J.js} +4 -4
- package/dist/{chunk-YECNACSF.js → chunk-QZESETWK.js} +5460 -4963
- package/dist/{chunk-JL3ESOD2.js → chunk-ROASFVE3.js} +2 -2
- package/dist/{chunk-22PYIFA2.js → chunk-RSV3YFLD.js} +3 -3
- package/dist/chunk-SWNRLCC6.js +61 -0
- package/dist/{chunk-A5STII7T.js → chunk-WOXKF5EA.js} +2 -2
- package/dist/{chunk-WAEWSGBK.js → chunk-Y72FSG23.js} +59 -4
- package/dist/{chunk-VS6RWOLM.js → chunk-YDFDTWXH.js} +7 -6
- package/dist/{chunk-RUSG4O2Z.js → chunk-ZK4ND26M.js} +2 -2
- package/dist/{chunk-ADESJ2KG.js → chunk-ZYYSQDXK.js} +4 -4
- package/dist/cli/commands/auth/logout.js +12 -12
- package/dist/cli/commands/auth/logout.test.js +14 -14
- package/dist/cli/commands/debug/command-flags.js +12 -12
- package/dist/cli/commands/demo/catalog.js +13 -13
- package/dist/cli/commands/demo/generate-file.js +13 -13
- package/dist/cli/commands/demo/index.d.ts +1 -0
- package/dist/cli/commands/demo/index.js +17 -57
- package/dist/cli/commands/demo/print-ai-prompt.js +13 -13
- package/dist/cli/commands/docs/generate.js +12 -12
- package/dist/cli/commands/docs/generate.test.js +13 -13
- package/dist/cli/commands/help.js +12 -12
- package/dist/cli/commands/kitchen-sink/async.js +13 -13
- package/dist/cli/commands/kitchen-sink/async.test.js +14 -14
- package/dist/cli/commands/kitchen-sink/index.js +15 -15
- package/dist/cli/commands/kitchen-sink/index.test.js +16 -16
- package/dist/cli/commands/kitchen-sink/prompts.js +13 -13
- package/dist/cli/commands/kitchen-sink/prompts.test.js +14 -14
- package/dist/cli/commands/kitchen-sink/static.js +13 -13
- package/dist/cli/commands/kitchen-sink/static.test.js +14 -14
- package/dist/cli/commands/search.js +13 -13
- package/dist/cli/commands/upgrade.js +12 -12
- package/dist/cli/commands/upgrade.test.js +2 -2
- package/dist/cli/commands/version.js +13 -13
- package/dist/cli/commands/version.test.js +14 -14
- package/dist/cli/services/commands/search.js +3 -3
- package/dist/cli/services/commands/search.test.js +4 -4
- package/dist/cli/services/commands/version.js +6 -6
- package/dist/cli/services/commands/version.test.js +8 -8
- package/dist/cli/services/demo.js +3 -3
- package/dist/cli/services/demo.test.js +4 -4
- package/dist/cli/services/kitchen-sink/async.js +3 -3
- package/dist/cli/services/kitchen-sink/prompts.js +3 -3
- package/dist/cli/services/kitchen-sink/static.js +3 -3
- package/dist/cli/services/upgrade.js +5 -5
- package/dist/cli/services/upgrade.test.js +8 -8
- package/dist/configs/all.yml +10 -0
- package/dist/configs/recommended.yml +10 -0
- package/dist/{custom-oclif-loader-ZH42ZTTC.js → custom-oclif-loader-U6KVT6TC.js} +3 -3
- package/dist/data/filters.json +1 -1
- package/dist/data/latest.json +1 -1
- package/dist/data/objects.json +25 -7
- package/dist/data/shopify_system_translations.json +52 -11
- package/dist/{error-handler-JFX2TIYX.js → error-handler-6ZEAADAF.js} +6 -6
- package/dist/{error-handler-I6WJC3U2.js → error-handler-B2KIESVH.js} +11 -11
- package/dist/hooks/postrun.js +9 -9
- package/dist/hooks/prerun.js +6 -6
- package/dist/index.js +3092 -753
- package/dist/{local-QXPV4RF5.js → local-PE4YEEBC.js} +3 -3
- package/dist/{morph-WKKSW22O.js → morph-6NYGHGNT.js} +9 -9
- package/dist/{node-5XXX7TNJ.js → node-PG7YJ7IO.js} +9 -9
- package/dist/{node-package-manager-O65VOP6W.js → node-package-manager-3I7UKBM5.js} +5 -5
- package/dist/{system-EEQBTJMJ.js → system-ZYBFLHSK.js} +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-3BAHGNCQ.js → ui-L3T46TFT.js} +3 -3
- package/dist/{workerd-WR22YQIS.js → workerd-BLYIZYIT.js} +8 -8
- package/oclif.manifest.json +131 -1
- package/package.json +9 -8
- package/dist/assets/dev-console/extensions/dev-console/assets/index-e3682a83.js +0 -64
- package/dist/assets/dev-console/extensions/dev-console/assets/safari-pinned-tab-456f340b.svg +0 -18
- package/dist/chunk-ZPFJOUKZ.js +0 -115
- /package/dist/assets/dev-console/extensions/dev-console/assets/{favicon-1f90fefa.ico → favicon-ByUl89Ab.ico} +0 -0
- /package/dist/assets/dev-console/extensions/dev-console/assets/{index-dfaab2a5.css → index-Bi7y6lI5.css} +0 -0
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
function Kp(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hc={exports:{}},A={};/*
|
|
2
|
-
object-assign
|
|
3
|
-
(c) Sindre Sorhus
|
|
4
|
-
@license MIT
|
|
5
|
-
*/var Pa=Object.getOwnPropertySymbols,Qp=Object.prototype.hasOwnProperty,Yp=Object.prototype.propertyIsEnumerable;function Xp(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function Zp(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map(function(i){return t[i]});if(r.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(i){o[i]=i}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}var Vc=Zp()?Object.assign:function(e,t){for(var n,r=Xp(e),o,i=1;i<arguments.length;i++){n=Object(arguments[i]);for(var l in n)Qp.call(n,l)&&(r[l]=n[l]);if(Pa){o=Pa(n);for(var s=0;s<o.length;s++)Yp.call(n,o[s])&&(r[o[s]]=n[o[s]])}}return r};/** @license React v17.0.2
|
|
6
|
-
* react.production.min.js
|
|
7
|
-
*
|
|
8
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
9
|
-
*
|
|
10
|
-
* This source code is licensed under the MIT license found in the
|
|
11
|
-
* LICENSE file in the root directory of this source tree.
|
|
12
|
-
*/var gs=Vc,$n=60103,Wc=60106;A.Fragment=60107;A.StrictMode=60108;A.Profiler=60114;var Gc=60109,Kc=60110,Qc=60112;A.Suspense=60113;var Yc=60115,Xc=60116;if(typeof Symbol=="function"&&Symbol.for){var Fe=Symbol.for;$n=Fe("react.element"),Wc=Fe("react.portal"),A.Fragment=Fe("react.fragment"),A.StrictMode=Fe("react.strict_mode"),A.Profiler=Fe("react.profiler"),Gc=Fe("react.provider"),Kc=Fe("react.context"),Qc=Fe("react.forward_ref"),A.Suspense=Fe("react.suspense"),Yc=Fe("react.memo"),Xc=Fe("react.lazy")}var La=typeof Symbol=="function"&&Symbol.iterator;function Jp(e){return e===null||typeof e!="object"?null:(e=La&&e[La]||e["@@iterator"],typeof e=="function"?e:null)}function br(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 Zc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Jc={};function Fn(e,t,n){this.props=e,this.context=t,this.refs=Jc,this.updater=n||Zc}Fn.prototype.isReactComponent={};Fn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error(br(85));this.updater.enqueueSetState(this,e,t,"setState")};Fn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function qc(){}qc.prototype=Fn.prototype;function vs(e,t,n){this.props=e,this.context=t,this.refs=Jc,this.updater=n||Zc}var ys=vs.prototype=new qc;ys.constructor=vs;gs(ys,Fn.prototype);ys.isPureReactComponent=!0;var Es={current:null},ef=Object.prototype.hasOwnProperty,tf={key:!0,ref:!0,__self:!0,__source:!0};function nf(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)ef.call(t,r)&&!tf.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var a=Array(s),u=0;u<s;u++)a[u]=arguments[u+2];o.children=a}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:$n,type:e,key:i,ref:l,props:o,_owner:Es.current}}function qp(e,t){return{$$typeof:$n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function ws(e){return typeof e=="object"&&e!==null&&e.$$typeof===$n}function eh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Oa=/\/+/g;function Mi(e,t){return typeof e=="object"&&e!==null&&e.key!=null?eh(""+e.key):t.toString(36)}function ho(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case $n:case Wc:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+Mi(l,0):r,Array.isArray(o)?(n="",e!=null&&(n=e.replace(Oa,"$&/")+"/"),ho(o,t,n,"",function(u){return u})):o!=null&&(ws(o)&&(o=qp(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(Oa,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){i=e[s];var a=r+Mi(i,s);l+=ho(i,t,n,a,o)}else if(a=Jp(e),typeof a=="function")for(e=a.call(e),s=0;!(i=e.next()).done;)i=i.value,a=r+Mi(i,s++),l+=ho(i,t,n,a,o);else if(i==="object")throw t=""+e,Error(br(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t));return l}function Yr(e,t,n){if(e==null)return e;var r=[],o=0;return ho(e,r,"","",function(i){return t.call(n,i,o++)}),r}function th(e){if(e._status===-1){var t=e._result;t=t(),e._status=0,e._result=t,t.then(function(n){e._status===0&&(n=n.default,e._status=1,e._result=n)},function(n){e._status===0&&(e._status=2,e._result=n)})}if(e._status===1)return e._result;throw e._result}var rf={current:null};function lt(){var e=rf.current;if(e===null)throw Error(br(321));return e}var nh={ReactCurrentDispatcher:rf,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:Es,IsSomeRendererActing:{current:!1},assign:gs};A.Children={map:Yr,forEach:function(e,t,n){Yr(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Yr(e,function(){t++}),t},toArray:function(e){return Yr(e,function(t){return t})||[]},only:function(e){if(!ws(e))throw Error(br(143));return e}};A.Component=Fn;A.PureComponent=vs;A.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nh;A.cloneElement=function(e,t,n){if(e==null)throw Error(br(267,e));var r=gs({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=Es.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)ef.call(t,a)&&!tf.hasOwnProperty(a)&&(r[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){s=Array(a);for(var u=0;u<a;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:$n,type:e.type,key:o,ref:i,props:r,_owner:l}};A.createContext=function(e,t){return t===void 0&&(t=null),e={$$typeof:Kc,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:Gc,_context:e},e.Consumer=e};A.createElement=nf;A.createFactory=function(e){var t=nf.bind(null,e);return t.type=e,t};A.createRef=function(){return{current:null}};A.forwardRef=function(e){return{$$typeof:Qc,render:e}};A.isValidElement=ws;A.lazy=function(e){return{$$typeof:Xc,_payload:{_status:-1,_result:e},_init:th}};A.memo=function(e,t){return{$$typeof:Yc,type:e,compare:t===void 0?null:t}};A.useCallback=function(e,t){return lt().useCallback(e,t)};A.useContext=function(e,t){return lt().useContext(e,t)};A.useDebugValue=function(){};A.useEffect=function(e,t){return lt().useEffect(e,t)};A.useImperativeHandle=function(e,t,n){return lt().useImperativeHandle(e,t,n)};A.useLayoutEffect=function(e,t){return lt().useLayoutEffect(e,t)};A.useMemo=function(e,t){return lt().useMemo(e,t)};A.useReducer=function(e,t,n){return lt().useReducer(e,t,n)};A.useRef=function(e){return lt().useRef(e)};A.useState=function(e){return lt().useState(e)};A.version="17.0.2";Hc.exports=A;var C=Hc.exports;const h=si(C),rh=Kp({__proto__:null,default:h},[C]),of=h.createContext(null),Ma=h.createContext([]),lf=h.createContext(null);function Na(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Na(Object(n),!0).forEach(function(r){ih(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Na(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ra(e,t,n,r,o,i,l){try{var s=e[i](l),a=s.value}catch(u){n(u);return}s.done?t(a):Promise.resolve(a).then(r,o)}function oh(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function l(a){Ra(i,r,o,l,s,"next",a)}function s(a){Ra(i,r,o,l,s,"throw",a)}l(void 0)})}}function ih(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lh(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ni(e,t){if(e==null)return{};var n=lh(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sh(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(l){i[l]=r[l]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(l,s){return s(e,t,l)||l},i),o&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),i.initializer===void 0&&(Object.defineProperty(e,t,i),i=null),i}class ah{get loading(){return this.translationPromises.size>0}constructor(t,n={}){this.details=t,this.translationGetters=new Map,this.fallbacks=new Map,this.translations=new Map,this.asyncTranslationIds=new Set,this.subscriptions=new Map,this.translationPromises=new Map,this.idsToUpdate=new Set,this.enqueuedUpdate=void 0;for(const[r,o]of Object.entries(n))this.translations.set(r,o),this.asyncTranslationIds.add(r)}resolve(){var t=this;return oh(function*(){yield Promise.all([...t.translationPromises.values()])})()}extract(){return[...this.asyncTranslationIds].reduce((t,n)=>$($({},t),{},{[n]:this.translations.get(n)}),{})}register({id:t,translations:n,fallback:r}){if(this.fallbacks.has(t)||this.fallbacks.set(t,r),this.details.fallbackLocale!=null&&r!=null){const i=Ri(t,this.details.fallbackLocale);this.translations.has(i)||this.translations.set(i,r)}if(this.translationGetters.has(t))return;const o=n?fh(n):ch;this.setTranslations(t,o)}state(t){const{locale:n,fallbackLocale:r}=this.details,o=Da(n),i=r!=null&&o.includes(r);let l=!1,s=!1;const a=t.reduce((u,d)=>{const g=[];for(const m of o){const v=Ri(d,m),S=this.translations.get(v);S==null?this.translationPromises.has(v)&&(s=!0):g.push(S)}if(g.length===0&&s&&(l=!0),!i){const m=this.fallbacks.get(d);m!=null&&g.push(m)}return[...u,...g]},[]);return{loading:l,translations:a}}subscribe(t,n){return this.subscriptions.set(n,t),()=>{this.subscriptions.delete(n)}}update(t){this.details=t;for(const[n,r]of this.translationGetters)this.setTranslations(n,r);for(const[n,r]of this.subscriptions)n(this.state(r),this.details)}setTranslations(t,n){this.translationGetters.set(t,n);for(const r of Da(this.details.locale)){const o=Ri(t,r);if(this.translations.has(o))continue;const i=n(r);if(uh(i)){const l=i.then(s=>{this.translationPromises.delete(o),this.translations.set(o,s),this.asyncTranslationIds.add(o),s!=null&&this.updateSubscribersForId(t)}).catch(()=>{this.translationPromises.delete(o),this.translations.set(o,void 0),this.asyncTranslationIds.add(o)});this.translationPromises.set(o,l)}else this.translations.set(o,i)}}updateSubscribersForId(t){if(this.idsToUpdate.add(t),this.enqueuedUpdate!=null)return;const r=typeof window<"u"?window.requestAnimationFrame:setImmediate;this.enqueuedUpdate=r(()=>{delete this.enqueuedUpdate;const o=[...this.idsToUpdate];this.idsToUpdate.clear();for(const[i,l]of this.subscriptions)l.some(s=>o.includes(s))&&i(this.state(l),this.details)})}}function Da(e){const t=e.split("-");return t.length>1?[`${t[0]}-${t[1].toUpperCase()}`,t[0]]:[e]}function uh(e){return e!=null&&e.then!=null}function Ri(e,t){return`${e}__${t}`}function ch(){}function fh(e){return typeof e=="function"?e:t=>e[t]}function Ia(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ia(Object(n),!0).forEach(function(r){dh(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ia(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ut(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(l){i[l]=r[l]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(l,s){return s(e,t,l)||l},i),o&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),i.initializer===void 0&&(Object.defineProperty(e,t,i),i=null),i}const ph=50;function sf(e,t){const n=new WeakMap,r=new Map,o=[];return function(...l){if(typeof window>"u")return e.apply(this,l);const s=l.length===1&&typeof l[0]=="object"&&!t;let a;s?a=l[0]:t&&t instanceof Function?a=t(...l):a=l[0];const u=s?n:r;if(u.has(a))return u.get(a);const d=e.apply(this,l);if(s)n.set(a,d);else if(r.set(a,d),o.push(a),r.size>ph){const g=o[0];r.delete(g),o.shift()}return d}}function Xe(e){return function(t,n,r){const{value:o}=r;return!o||!(o instanceof Function)?r:{get:function(){const l={configurable:!0,value:sf(o,e)};return Object.defineProperty(this,n,l),l.value}}}}function Xr(e){return e.replace(String.fromCharCode(8206),"")}const Di=new Map;function $a(e,t){const n=hh(e,t);if(Di.has(n))return Di.get(n);const r=new Intl.DateTimeFormat(e,t);return Di.set(n,r),r}const Fa=Intl.DateTimeFormat("en",{hour:"numeric"}),za=typeof Fa.resolvedOptions>"u"?void 0:Fa.resolvedOptions();function Ze(e,t,n={}){if(za!=null&&n.hour12===!1&&za.hourCycle!=null&&(n.hour12=void 0,n.hourCycle="h23"),n.timeZone!=null&&n.timeZone==="Etc/GMT+12"){const o=new Date(e.valueOf()-432e5);return $a(t,Aa(Aa({},n),{},{timeZone:"UTC"})).format(o)}return $a(t,n).format(e)}function hh(e,t={}){return`${Array.isArray(e)?e.sort().join("-"):e}-${JSON.stringify(t)}`}var Ua,Ba,ja,ba,Ha,Va,Wa,Ga,U;const Ii=/(\d{2})/;function Nn(e,t){return{year:()=>Ft.getYear(e,t),month:()=>Ft.getMonth(e,t),day:()=>Ft.getDay(e,t),weekday:()=>Ft.getWeekday(e,t),hour:()=>Ft.getHour(e,t),minute:()=>Ft.getMinute(e,t),second:()=>Ft.getSecond(e,t)}}function ct(e){return(t,n)=>`${e}-${t.toString()}-${n}`}var Ka;(function(e){e.Monday="Monday",e.Tuesday="Tuesday",e.Wednesday="Wednesday",e.Thursday="Thursday",e.Friday="Friday",e.Saturday="Saturday",e.Sunday="Sunday"})(Ka||(Ka={}));const af={Monday:0,Tuesday:1,Wednesday:2,Thursday:3,Friday:4,Saturday:5,Sunday:6};function mh(e){return Object.keys(af).some(t=>t===e)}function gh(e){throw new Error(e)}function vh(e){return mh(e)?af[e]:gh(`Unexpected weekday: ${e}`)}let Ft=(Ua=Xe(ct("year")),Ba=Xe(ct("month")),ja=Xe(ct("day")),ba=Xe(ct("weekday")),Ha=Xe(ct("hour")),Va=Xe(ct("minute")),Wa=Xe(ct("second")),Ga=Xe(ct("timePartsFallback")),U=class mo{static getYear(t,n){if(isNaN(t.valueOf()))throw new Error(`Unable to parse date: ${t} for timezone: ${n}`);const r=Ze(t,"en",{timeZone:n,year:"numeric"}),o=Xr(r),i=parseInt(o,10);if(isNaN(i))throw new Error(`Unable to parse year: '${r}'`);return i}static getMonth(t,n){const r=Ze(t,"en",{timeZone:n,month:"numeric"}),o=Xr(r),i=parseInt(o,10);if(isNaN(i))throw new Error(`Unable to parse month: '${r}'`);return i}static getDay(t,n){const r=Ze(t,"en",{timeZone:n,day:"numeric"}),o=Xr(r),i=parseInt(o,10);if(isNaN(i))throw new Error(`Unable to parse day: '${r}'`);return i}static getWeekday(t,n){const r=Ze(t,"en",{timeZone:n,weekday:"long"}),o=Xr(r);return vh(o)}static getHour(t,n){const r=Ze(t,"en",{timeZone:n,hour12:!1,hour:"numeric"});let o=parseInt(r,10);return isNaN(o)&&(o=mo.getTimePartsFallback(t,n).hour),o}static getMinute(t,n){const r=Ze(t,"en",{timeZone:n,minute:"numeric"});let o=parseInt(r,10);return isNaN(o)&&(o=mo.getTimePartsFallback(t,n).minute),o}static getSecond(t,n){const r=Ze(t,"en",{timeZone:n,second:"numeric"});let o=parseInt(r,10);return isNaN(o)&&(o=mo.getTimePartsFallback(t,n).second),o}static getTimePartsFallback(t,n){const r=Ze(t,"en",{timeZone:n,hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"}),[o,i,l]=r.split(":"),s=new RegExp(Ii).exec(o),a=new RegExp(Ii).exec(i),u=new RegExp(Ii).exec(l);if(s!=null&&a!=null&&u!=null){const d=parseInt(s[1],10),g=parseInt(a[1],10),m=parseInt(u[1],10);return{hour:d,minute:g,second:m}}throw new Error(`Unable to parse timeString: '${r}'`)}},ut(U,"getYear",[Ua],Object.getOwnPropertyDescriptor(U,"getYear"),U),ut(U,"getMonth",[Ba],Object.getOwnPropertyDescriptor(U,"getMonth"),U),ut(U,"getDay",[ja],Object.getOwnPropertyDescriptor(U,"getDay"),U),ut(U,"getWeekday",[ba],Object.getOwnPropertyDescriptor(U,"getWeekday"),U),ut(U,"getHour",[Ha],Object.getOwnPropertyDescriptor(U,"getHour"),U),ut(U,"getMinute",[Va],Object.getOwnPropertyDescriptor(U,"getMinute"),U),ut(U,"getSecond",[Wa],Object.getOwnPropertyDescriptor(U,"getSecond"),U),ut(U,"getTimePartsFallback",[Ga],Object.getOwnPropertyDescriptor(U,"getTimePartsFallback"),U),U),ot;(function(e){e[e.Second=1e3]="Second",e[e.Minute=6e4]="Minute",e[e.Hour=36e5]="Hour",e[e.Day=864e5]="Day",e[e.Week=6048e5]="Week",e[e.Year=31536e6]="Year"})(ot||(ot={}));function tn(e,t=new Date){return t<e}function yh(e,t=new Date){return!tn(e,t)&&t.getTime()-e.getTime()<ot.Hour}function Eh(e,t=new Date){return!tn(e,t)&&t.getTime()-e.getTime()<ot.Minute}function wh(e,t=new Date){return!tn(e,t)&&t.getTime()-e.getTime()<ot.Week}function Sh(e,t=new Date){return tn(e,t)&&e.getTime()-t.getTime()<ot.Week}function Ch(e,t=new Date){return!tn(e,t)&&t.getTime()-e.getTime()<ot.Year}function _h(e,t=new Date){return tn(e,t)&&e.getTime()-t.getTime()<ot.Year}function Th(e,t,n){const{year:r}=Nn(e,n),{year:o}=Nn(t,n);return r()===o()}function xh(e,t,n){const{month:r}=Nn(e,n),{month:o}=Nn(t,n);return Th(e,t,n)&&r()===o()}function Ss(e,t,n){const{day:r}=Nn(e,n),{day:o}=Nn(t,n);return xh(e,t,n)&&r()===o()}function Qa(e,t){return Ss(e,new Date,t)}function kh(e,t){const n=new Date,r=new Date(n.valueOf()-24*60*60*1e3);return Ss(e,r,t)}function Ph(e,t){const n=new Date,r=new Date(n.valueOf()+24*60*60*1e3);return Ss(e,r,t)}function Ya(e){const t=e.split("-")[1];return t&&t.toUpperCase()}function uf(e){return e.split("-")[0].toLowerCase()}const cf=new Map([["a","α"],["b","ḅ"],["c","ͼ"],["d","ḍ"],["e","ḛ"],["f","ϝ"],["g","ḡ"],["h","ḥ"],["i","ḭ"],["j","ĵ"],["k","ḳ"],["l","ḽ"],["m","ṃ"],["n","ṇ"],["o","ṓ"],["p","ṗ"],["q","ʠ"],["r","ṛ"],["s","ṡ"],["t","ṭ"],["u","ṵ"],["v","ṽ"],["w","ẁ"],["x","ẋ"],["y","ẏ"],["z","ẓ"],["A","Ḁ"],["B","Ḃ"],["C","Ḉ"],["D","Ḍ"],["E","Ḛ"],["F","Ḟ"],["G","Ḡ"],["H","Ḥ"],["I","Ḭ"],["J","Ĵ"],["K","Ḱ"],["L","Ḻ"],["M","Ṁ"],["N","Ṅ"],["O","Ṏ"],["P","Ṕ"],["Q","Ǫ"],["R","Ṛ"],["S","Ṣ"],["T","Ṫ"],["U","Ṳ"],["V","Ṿ"],["W","Ŵ"],["X","Ẋ"],["Y","Ŷ"],["Z","Ż"]]),Xa=1.15,Za=new Map([["zh",.5],["ja",.5],["ko",.8],["fr",1.3],["it",1.3],["de",1.5],["nl",1.5]]);function Lh({to:e}){return e==null?Xa:Za.get(e)||Za.get(uf(e))||Xa}function Oh(e,{delimiter:t,startDelimiter:n=t,endDelimiter:r=t,prepend:o,append:i,toLocale:l}={}){const s=Nh(e,{startDelimiter:n,endDelimiter:r}),a=s.reduce((S,w)=>typeof w=="string"?S+Mh(w):S,0),u=Math.ceil(a*Lh({to:l}))-a,d=a/Math.abs(u);let g=d,m=-1;const v=s.reduce((S,w)=>{const c=typeof w=="string"?[...w].map(f=>{const p=ff(f);p&&m++;const y=cf.get(f)||f;return p&&m+1===Math.floor(g)?(g+=d,u<0?"":y.repeat(2)):y}).join(""):w[0];return S+c},"");return`${o||""}${v}${i||""}`}function ff(e){return cf.has(e)}function Mh(e){return[...e].filter(ff).length}function Nh(e,{startDelimiter:t,endDelimiter:n}){const r=t&&n?Rh(t,n):void 0;let o=0;const i=[];if(r){let l=r.exec(e);for(;l;)i.push(e.substring(o,l.index)),i.push(l),o=l.index+l[0].length,l=r.exec(e);i.push(e.substring(o,e.length))}else i.push(e);return i}function Rh(e,t){if(e.length===1&&t.length===1)return new RegExp(`\\${e}[^\\${t}]*\\${t}`,"g");const n=[...e].map(o=>`\\${o}`).join(""),r=[...t].map(o=>`\\${o}`).join("");return new RegExp(`${n}.*?${r}`,"g")}let pn;(function(e){e[e.Rtl=0]="Rtl",e[e.Ltr=1]="Ltr"})(pn||(pn={}));let et;(function(e){e.Long="Long",e.Short="Short",e.Humanize="Humanize",e.Time="Time"})(et||(et={}));const Dh={[et.Long]:{weekday:"long",month:"long",day:"2-digit",year:"numeric"},[et.Short]:{month:"short",day:"numeric",year:"numeric"},[et.Humanize]:{month:"long",day:"numeric",year:"numeric"},[et.Time]:{hour:"2-digit",minute:"2-digit"}};let _;(function(e){e.Sunday="sunday",e.Monday="monday",e.Tuesday="tuesday",e.Wednesday="wednesday",e.Thursday="thursday",e.Friday="friday",e.Saturday="saturday"})(_||(_={}));const Ih=_.Sunday,Ah=new Map([["AE",_.Saturday],["AF",_.Saturday],["BH",_.Saturday],["DZ",_.Saturday],["EG",_.Saturday],["IQ",_.Saturday],["IR",_.Saturday],["JO",_.Saturday],["KW",_.Saturday],["LY",_.Saturday],["OM",_.Saturday],["QA",_.Saturday],["SA",_.Saturday],["SY",_.Saturday],["YE",_.Saturday],["AR",_.Sunday],["BO",_.Sunday],["BR",_.Sunday],["BZ",_.Sunday],["CA",_.Sunday],["CL",_.Sunday],["CO",_.Sunday],["CR",_.Sunday],["DO",_.Sunday],["EC",_.Sunday],["GT",_.Sunday],["HK",_.Sunday],["HN",_.Sunday],["IL",_.Sunday],["JM",_.Sunday],["JP",_.Sunday],["KE",_.Sunday],["KR",_.Sunday],["MO",_.Sunday],["MX",_.Sunday],["NI",_.Sunday],["PA",_.Sunday],["PE",_.Sunday],["PH",_.Sunday],["SG",_.Sunday],["SV",_.Sunday],["TW",_.Sunday],["US",_.Sunday],["VE",_.Sunday],["ZA",_.Sunday],["ZW",_.Sunday],["AD",_.Monday],["AL",_.Monday],["AM",_.Monday],["AU",_.Monday],["AZ",_.Monday],["BE",_.Monday],["BG",_.Monday],["BN",_.Monday],["BY",_.Monday],["CH",_.Monday],["CN",_.Monday],["CZ",_.Monday],["DE",_.Monday],["DK",_.Monday],["EE",_.Monday],["ES",_.Monday],["FI",_.Monday],["FR",_.Monday],["GB",_.Monday],["GE",_.Monday],["GF",_.Monday],["GR",_.Monday],["HR",_.Monday],["HU",_.Monday],["ID",_.Monday],["IE",_.Monday],["IN",_.Monday],["IS",_.Monday],["IT",_.Monday],["KG",_.Monday],["KZ",_.Monday],["LB",_.Monday],["LT",_.Monday],["LU",_.Monday],["LV",_.Monday],["MA",_.Monday],["MC",_.Monday],["MK",_.Monday],["MN",_.Monday],["MY",_.Monday],["NL",_.Monday],["NO",_.Monday],["NZ",_.Monday],["PK",_.Monday],["PL",_.Monday],["PT",_.Monday],["PY",_.Monday],["RO",_.Monday],["RS",_.Monday],["RU",_.Monday],["SE",_.Monday],["SK",_.Monday],["TH",_.Monday],["TN",_.Monday],["TR",_.Monday],["UA",_.Monday],["UY",_.Monday],["UZ",_.Monday],["VN",_.Monday],["XK",_.Monday]]),$h=["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"],Zr=new Map([["ko",(e,t,n)=>n?`${t}${e}`:t],["ja",(e,t,n)=>n?`${t}${e}`:`${t}様`],["zh-CN",(e,t,n)=>n?`${t}${e}`:t],["zh-TW",(e,t,n)=>n?`${t}${e}`:t]]);class df extends Error{constructor(t,n){super(`Missing translation for key: ${t} in locale: ${n}`)}}class Ja extends Error{constructor(t,n={}){let r="";const o=Object.keys(n);o.length<1?r=`No replacement found for key '${t}' (and no replacements were passed in).`:r=`No replacement found for key '${t}'. The following replacements were passed: ${o.map(i=>`'${i}'`).join(", ")}`,super(r)}}class qa extends Error{constructor(t=""){const n="No currency code provided.";super(t===""?n:`${n} ${t}`)}}class Fh extends Error{constructor(t=""){const n="No country code provided.";super(t===""?n:`${n} ${t}`)}}const zh=/{([^}]*)}/g,ml=Symbol("Missing translation"),dr="count",Oo=".",Ai=new Map;function Pr(e,t){const n=Bh(e,t);if(Ai.has(n))return Ai.get(n);const r=new Intl.NumberFormat(e,t);return Ai.set(n,r),r}const Uh={startDelimiter:"{",endDelimiter:"}",prepend:"[!!",append:"!!]"};function Bh(e,t={}){return`${Array.isArray(e)?e.sort().join("-"):e}-${JSON.stringify(t)}`}function jh(e,t={}){return new Intl.PluralRules(e,t)}const Cs=sf(jh,(e,t={})=>`${e}${JSON.stringify(t)}`);function $i(e,t,n,r){const o=Array.isArray(t)?t:[t];let i;for(const l of o){i=l;for(const s of e.split(Oo))if(i=i[s],!i)break;if(i)return r?typeof i=="string"?Mo(i,r):pf(i,n,r):i}throw new df(e,n)}function bh(e,t,n,r){const{scope:o,replacements:i,pseudotranslate:l}=t,s=Array.isArray(n)?n:[n],a=Vh(e,o);for(const u of s){const d=Hh(a,u,r,i,{pseudotranslate:l});if(d!==ml)return d}throw new df(a,r)}function Hh(e,t,n,r,{pseudotranslate:o=!1}={}){let i=t;for(const a of e.split(Oo)){if(i==null||typeof i!="object")return ml;i=i[a]}const l={};if(typeof i=="object"&&r!=null&&Object.prototype.hasOwnProperty.call(r,dr)){const a=r[dr];if(typeof a=="number"){const u=Cs(n).select(a);i=i[u],l[dr]=Pr(n).format(a)}}const s=typeof i=="string"&&o?Oh(i,$($({},Uh),{},{toLocale:typeof o=="boolean"?void 0:o})):i;return typeof s=="string"?Mo(s,$($({},r),l)):ml}function Mo(e,t={}){const n=/([^{]*)({([^}]*)})?/g;if(Object.keys(t).every(o=>typeof t[o]!="object"))return e.replace(zh,o=>{const i=o.substring(1,o.length-1);if(!Object.prototype.hasOwnProperty.call(t,i))throw new Ja(i,t);return t[i]});{const o=[];let i=n.exec(e),l=0;for(;i;){const s=i[1],a=i[3];if(i.index>=e.length)break;if(s&&o.push(s),a){if(!Object.prototype.hasOwnProperty.call(t,a))throw new Ja(a,t);l+=1;const u=h.isValidElement(t[a])?h.cloneElement(t[a],{key:l}):t[a];o.push(u)}i=n.exec(e)}return n.lastIndex=0,o}}function Vh(e,t){return t==null?e:`${typeof t=="string"?t:t.join(Oo)}${Oo}${e}`}function pf(e,t,n){if(Object.prototype.hasOwnProperty.call(n,dr)){const r=n[dr];if(typeof r=="number"){const o=Cs(t).select(r);if(typeof e[o]=="string")return Mo(e[o],$($({},n),{},{PLURALIZATION_KEY_NAME:Pr(t).format(r)}))}}return Object.keys(e).reduce((r,o)=>$($({},r),{},{[o]:typeof e[o]=="string"?Mo(e[o],n):pf(e[o],t,n)}),{})}const Fi=2;var eu=new Map([["AED",2],["AFN",2],["ALL",2],["AMD",2],["ANG",2],["AOA",2],["ARS",2],["AUD",2],["AWG",2],["AZN",2],["BAM",2],["BBD",2],["BDT",2],["BGN",2],["BHD",3],["BIF",0],["BMD",2],["BND",2],["BOB",2],["BOV",2],["BRL",2],["BSD",2],["BTN",2],["BWP",2],["BYN",2],["BZD",2],["CAD",2],["CDF",2],["CHE",2],["CHF",2],["CHW",2],["CLF",4],["CLP",0],["CNY",2],["COP",2],["COU",2],["CRC",2],["CUC",2],["CUP",2],["CVE",2],["CZK",2],["DJF",0],["DKK",2],["DOP",2],["DZD",2],["EGP",2],["ERN",2],["ETB",2],["EUR",2],["FJD",2],["FKP",2],["GBP",2],["GEL",2],["GHS",2],["GIP",2],["GMD",2],["GNF",0],["GTQ",2],["GYD",2],["HKD",2],["HNL",2],["HRK",2],["HTG",2],["HUF",2],["IDR",2],["ILS",2],["INR",2],["IQD",3],["IRR",2],["ISK",0],["JMD",2],["JOD",3],["JPY",0],["KES",2],["KGS",2],["KHR",2],["KMF",0],["KPW",2],["KRW",0],["KWD",3],["KYD",2],["KZT",2],["LAK",2],["LBP",2],["LKR",2],["LRD",2],["LSL",2],["LYD",3],["MAD",2],["MDL",2],["MGA",2],["MKD",2],["MMK",2],["MNT",2],["MOP",2],["MRO",5],["MUR",2],["MVR",2],["MWK",2],["MXN",2],["MXV",2],["MYR",2],["MZN",2],["NAD",2],["NGN",2],["NIO",2],["NOK",2],["NPR",2],["NZD",2],["OMR",3],["PAB",2],["PEN",2],["PGK",2],["PHP",2],["PKR",2],["PLN",2],["PYG",0],["QAR",2],["RON",2],["RSD",2],["RUB",2],["RWF",0],["SAR",2],["SBD",2],["SCR",2],["SDG",2],["SEK",2],["SGD",2],["SHP",2],["SLL",2],["SOS",2],["SRD",2],["SSP",2],["STN",2],["SVC",2],["SYP",2],["SZL",2],["THB",2],["TJS",2],["TMT",2],["TND",3],["TOP",2],["TRY",2],["TTD",2],["TWD",2],["TZS",2],["UAH",2],["UGX",0],["USD",2],["USN",2],["UYI",0],["UYU",2],["UYW",4],["UZS",2],["VED",2],["VES",2],["VND",0],["VUV",0],["WST",2],["XAF",0],["XAG",0],["XAU",0],["XBA",0],["XBB",0],["XBC",0],["XBD",0],["XCD",2],["XDR",0],["XOF",0],["XPD",0],["XPF",0],["XPT",0],["XSU",0],["XTS",0],["XUA",0],["YER",2],["ZAR",2],["ZMW",2],["ZWL",2]]);function Wh(e,t){const n=",.",r=/[\u200E\u200F]/,o=new RegExp(`0[${n}]*0*`),l=Gh(0,e,t).replace(r,""),s=o.exec(l);if(!s)throw new Error(`Number input in locale ${e} is currently not supported.`);const a=s[0],[u,d]=l.split(a);return{symbol:u||d,prefixed:u!==""}}function Gh(e,t,n){return Pr(t,$({style:"currency"},n)).format(e)}function Kh(e){return e.replace(" "," ")}const Qh=["as","precision"],Yh=["form"],Xh=["style"];var tu,Vn;const zi=".",nu="-",Zh=/\d/g,ru=/\D/g,Jh=/\./g;let gl=(tu=Xe(),Vn=class{get language(){return uf(this.locale)}get region(){return Ya(this.locale)}get countryCode(){return Ya(this.locale)}get languageDirection(){return $h.includes(this.language)?pn.Rtl:pn.Ltr}get isRtlLanguage(){return this.languageDirection===pn.Rtl}get isLtrLanguage(){return this.languageDirection===pn.Ltr}constructor(t,{locale:n,currency:r,timezone:o,country:i,pseudolocalize:l=!1,onError:s,loading:a}){this.translations=t,this.locale=void 0,this.pseudolocalize=void 0,this.defaultCountry=void 0,this.defaultCurrency=void 0,this.defaultTimezone=void 0,this.onError=void 0,this.loading=void 0,this.getCurrencySymbol=u=>{const d=u||this.defaultCurrency;if(d==null)throw new qa("formatCurrency cannot be called without a currency code.");return this.getCurrencySymbolLocalized(this.locale,d)},this.locale=n,this.defaultCountry=i,this.defaultCurrency=r,this.defaultTimezone=o,this.pseudolocalize=l,this.onError=s||this.defaultOnError,this.loading=a||!1}translate(t,n,r){const{pseudolocalize:o}=this;let i;n==null?i={pseudotranslate:o}:this.isTranslateOptions(n)?i=$($({},n),{},{replacements:r,pseudotranslate:o}):i={replacements:n,pseudotranslate:o};try{return bh(t,i,this.translations,this.locale)}catch(l){return this.onError(l),""}}getTranslationTree(t,n){try{return n?$i(t,this.translations,this.locale,n):$i(t,this.translations,this.locale)}catch(r){return this.onError(r),""}}translationKeyExists(t){try{return $i(t,this.translations,this.locale),!0}catch{return!1}}formatNumber(t,n={}){let{as:r,precision:o}=n,i=Ni(n,Qh);const{locale:l,defaultCurrency:s}=this;return r==="currency"&&s==null&&i.currency==null?(this.onError(new qa("formatNumber(amount, {as: 'currency'}) cannot be called without a currency code.")),""):Pr(l,$({style:r,maximumFractionDigits:o,currency:s},i)).format(t)}unformatNumber(t){const{decimalSymbol:n}=this.numberSymbols(),r=this.normalizedNumber(t,n);return r===""?"":parseFloat(r).toString()}formatCurrency(t,n={}){let{form:r}=n,o=Ni(n,Yh);switch(r){case"auto":return this.formatCurrencyAuto(t,o);case"explicit":return this.formatCurrencyExplicit(t,o);case"short":return this.formatCurrencyShort(t,o);case"none":return this.formatCurrencyNone(t,o)}return this.formatNumber(t,$({as:"currency"},o))}unformatCurrency(t,n){const{decimalSymbol:r}=this.numberSymbols(),o=eu.get(n.toUpperCase()),i=this.normalizedNumber(t,r,o);return i===""?"":o===0?`${parseFloat(i).toFixed(0)}.${"0".repeat(Fi)}`:parseFloat(i).toFixed(o)}formatPercentage(t,n={}){return this.formatNumber(t,$({as:"percent"},n))}formatDate(t,n={}){const{locale:r,defaultTimezone:o}=this,{timeZone:i=o}=n,l=n||{},{style:s=void 0}=l,a=Ni(l,Xh);return s?s===et.Humanize?this.humanizeDate(t,$($({},a),{},{timeZone:i})):this.formatDate(t,$($({},a),Dh[s])):Ze(t,r,$($({},a),{},{timeZone:i}))}ordinal(t){const{locale:n}=this,r=Cs(n,{type:"ordinal"}).select(t);return this.translate(r,{scope:"ordinal"},{amount:t})}weekStartDay(t){const n=t||this.defaultCountry;if(!n)throw new Fh("weekStartDay() cannot be called without a country code.");return Ah.get(n)||Ih}getCurrencySymbolLocalized(t,n){return Wh(t,{currency:n})}formatName(t,n,r){if(!t)return n||"";if(!n)return t;const o=!!(r&&r.full),i=Zr.get(this.locale)||Zr.get(this.language);return i?i(t,n,o):o?`${t} ${n}`:t}hasEasternNameOrderFormatter(){return!!(Zr.get(this.locale)||Zr.get(this.language))}numberSymbols(){const t=this.formatNumber(123456.7,{maximumFractionDigits:1,minimumFractionDigits:1});let n,r;for(const o of t)isNaN(parseInt(o,10))&&(n?r=o:n=o);return{thousandSymbol:n,decimalSymbol:r}}formatCurrencyAuto(t,n={}){return n.currency==null||this.defaultCurrency==null||n.currency===this.defaultCurrency?this.formatCurrencyShort(t,n):this.formatCurrencyExplicit(t,n)}formatCurrencyExplicit(t,n={}){const r=this.formatCurrencyShort(t,n),o=n.currency||this.defaultCurrency||"";return r.includes(o)?r:`${r} ${o}`}formatCurrencyShort(t,n={}){const r=this.formatCurrencyNone(t,n),o=this.getShortCurrencySymbol(n.currency),i=o.prefixed?`${o.symbol}${r}`:`${r}${o.symbol}`;return t<0?`-${i.replace(/[-−]/,"")}`:i}formatCurrencyNone(t,n={}){const{locale:r}=this;let o=n.precision;if(o===void 0){const i=n.currency||this.defaultCurrency||"";o=eu.get(i.toUpperCase())}return Pr(r,$({style:"decimal",minimumFractionDigits:o,maximumFractionDigits:o},n)).format(t)}getShortCurrencySymbol(t=this.defaultCurrency||""){const n=t||this.defaultCurrency||"",r=n.substring(0,2),o=this.getCurrencySymbol(n),i=o.symbol.replace(r,"");return/[A-Za-zÀ-ÖØ-öø-ÿĀ-ɏḂ-ỳ]/.exec(i)?o:{symbol:i,prefixed:o.prefixed}}humanizeDate(t,n){return tn(t)?this.humanizeFutureDate(t,n):this.humanizePastDate(t,n)}humanizePastDate(t,n){if(Eh(t))return this.translate("date.humanize.lessThanOneMinuteAgo");if(yh(t)){const l=Math.floor((new Date().getTime()-t.getTime())/ot.Minute);return this.translate("date.humanize.lessThanOneHourAgo",{count:l})}const r=n==null?void 0:n.timeZone,o=this.getTimeFromDate(t,n);if(Qa(t,r))return o;if(kh(t,r))return this.translate("date.humanize.yesterday",{time:o});if(wh(t)){const i=this.getWeekdayFromDate(t,n);return this.translate("date.humanize.lessThanOneWeekAgo",{weekday:i,time:o})}if(Ch(t)){const i=this.getMonthDayFromDate(t,n);return this.translate("date.humanize.lessThanOneYearAgo",{date:i,time:o})}return this.formatDate(t,$($({},n),{},{style:et.Short}))}humanizeFutureDate(t,n){const r=n==null?void 0:n.timeZone,o=this.getTimeFromDate(t,n);if(Qa(t,r))return this.translate("date.humanize.today",{time:o});if(Ph(t,r))return this.translate("date.humanize.tomorrow",{time:o});if(Sh(t)){const i=this.getWeekdayFromDate(t,n);return this.translate("date.humanize.lessThanOneWeekAway",{weekday:i,time:o})}if(_h(t)){const i=this.getMonthDayFromDate(t,n);return this.translate("date.humanize.lessThanOneYearAway",{date:i,time:o})}return this.formatDate(t,$($({},n),{},{style:et.Short}))}getTimeZone(t,n){const{localeMatcher:r,formatMatcher:o,timeZone:i}=n||{},l=this.formatDate(t,{localeMatcher:r,formatMatcher:o,timeZone:i,hour12:!1,timeZoneName:"short",hour:"numeric"}),s=/\s([\w()+\-:.]+$)/.exec(l);return s?s[1]:""}getTimeFromDate(t,n){const{localeMatcher:r,formatMatcher:o,hour12:i,timeZone:l,timeZoneName:s}=n||{},a=this.formatDate(t,{localeMatcher:r,formatMatcher:o,hour12:i,timeZone:l,timeZoneName:s==="short"?void 0:s,hour:"numeric",minute:"2-digit"}).toLocaleLowerCase(),u=s==="short"?`${a} ${this.getTimeZone(t,n)}`:a;return Kh(u)}getWeekdayFromDate(t,n){const{localeMatcher:r,formatMatcher:o,hour12:i,timeZone:l}=n||{};return this.formatDate(t,{localeMatcher:r,formatMatcher:o,hour12:i,timeZone:l,weekday:"long"})}getMonthDayFromDate(t,n){const{localeMatcher:r,formatMatcher:o,hour12:i,timeZone:l}=n||{};return this.formatDate(t,{localeMatcher:r,formatMatcher:o,hour12:i,timeZone:l,month:"short",day:"numeric"})}normalizedNumber(t,n,r=Fi){const o=Math.max(r,Fi),i=t.lastIndexOf(zi);let l=t.lastIndexOf(n);n!==zi&&(t.match(Jh)||[]).length===1&&this.decimalValue(t,i).length<=o&&(l=i);const s=this.integerValue(t,l),a=this.decimalValue(t,l),m=`${t.trim().startsWith(nu)?nu:""}${s}${l===-1?"":zi}${a}`;return m.match(Zh)?m:""}integerValue(t,n){return t.substring(0,n).replace(ru,"")}decimalValue(t,n){return t.substring(n+1).replace(ru,"")}isTranslateOptions(t){return"scope"in t}defaultOnError(t){throw t}},sh(Vn.prototype,"numberSymbols",[tu],Object.getOwnPropertyDescriptor(Vn.prototype,"numberSymbols"),Vn.prototype),Vn);function ou(e){const[t]=C.useState(e);return C.useRef(t)}function De(e){const t=h.useContext(of);if(t==null)throw new Error("Missing i18n manager. Make sure to use an <I18nContext.Provider /> somewhere in your React tree.");const n=h.useRef(e);if(iu(n.current)!==iu(e))throw new Error("You switched between providing registration options and not providing them, which is not supported.");return e==null?em(t):qh(e,t)}function qh({id:e,fallback:t,translations:n},r){const o=h.useRef(null),i=h.useRef(nm),l=h.useContext(Ma),s=ou(()=>e?[e,...l]:l);r!==o.current&&(o.current=r,i.current(),i.current=r.subscribe(s.current,({translations:m,loading:v},S)=>{const w=new gl(m,$($({},S),{},{loading:v}));d.current=w,u(w)}),e&&(n||t)&&r.register({id:e,translations:n,fallback:t}));const[a,u]=h.useState(()=>{const m=r.state(s.current),{translations:v,loading:S}=m;return new gl(v,$($({},r.details),{},{loading:S}))}),d=h.useRef(a);h.useEffect(()=>i.current,[]);const g=ou(()=>function({children:v}){return h.createElement(Ma.Provider,{value:s.current},h.createElement(lf.Provider,{value:d.current},v))});return[a,g.current]}function em(e){return[h.useContext(lf)||new gl([],e.details),tm]}function tm({children:e}){return h.createElement(h.Fragment,null,e)}function iu({fallback:e,translations:t}={}){return e!=null||t!=null}function nm(){}const rm=["localization","name","description"];function om(e){const t=new Map;return hf(e,(n,r)=>t.set(n,r)),t}function hf(e,t,n){Object.keys(e).forEach(r=>{const o=e[r],i=n?`${n}.${r}`:r;o!=null&&(typeof o=="string"?t(i,o):hf(o,t,i))})}function im(e,t){const n=Ui(e.translations[e.defaultLocale]),r=vl(t),o=Ui(e.translations[r]),i=Ui(e.translations[t]);return sm(new Map([...n,...o,...i]))}function Ui(e){return e?om(e):new Map}function lm(e,t){const n=new Set(Object.keys(e.translations));if(n.size===0||n.has(t.user))return t.user;const r=vl(t.user);if(n.has(r))return r;if(t.shop&&n.has(t.shop))return t.shop;const o=t.shop&&vl(t.shop);return o&&n.has(o)?o:e.defaultLocale}function sm(e){const t={};for(const[n,r]of e)t[n]=r;return t}function vl(e){return e.split("-")[0]}function am(e,t){if(!e||!t)return;if(yl(e))return e;const n=lm(e,t),r=JSON.stringify(im(e,n));return{extensionLocale:n,translations:r,lastUpdated:e.lastUpdated}}function yl(e){return typeof e.translations=="string"&&Object.prototype.hasOwnProperty.call(e,"extensionLocale")}const lu=()=>{};function um(e,t,n){const r=new Map(t.map(i=>[n(i),i]));return[...e.map(i=>{const l=n(i);if(r.has(l)){const s=r.get(l);return r.delete(l),s}else return i}),...r.values()]}function Jr(e,t,n){const r=[],o=new Proxy({},{get:(a,u)=>(r.push(u),o)});t(o);const i={...e};let l=i;const s=r.pop();for(const a of r)l[a]={...l[a]},l=l[a];return l[s]=n,i}function Bi(e){const t=new URL(e.url);return t.searchParams.set("lastUpdated",String(e.lastUpdated)),t.toString()}const cm=["admin","checkout","post_purchase","point_of_sale","customer-accounts"];function mf(e){return e&&cm.includes(e)}function El(e){return e.type==="ui_extension"&&Array.isArray(e.extensionPoints)&&e.extensionPoints.every(t=>typeof t=="object")}class gf{constructor(t={}){this.EVENT_THAT_WILL_MUTATE_THE_SERVER=["update"],this.listeners={},this.connectionListeners={close:new Set,open:new Set},this.connected=!1,this.uiExtensionsByUuid={},this.id=(Math.random()+1).toString(36).substring(7),this.options=vf({...t,connection:{automaticConnect:!0,protocols:[],...t.connection??{}}}),this.setupConnection(this.options.connection.automaticConnect)}connect(t={connection:{}}){const n=fm(this.options,t);return JSON.stringify(n)!==JSON.stringify(this.options)&&(this.options=n,this.setupConnection(!0)),()=>{this.closeConnection()}}on(t,n){return this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].add(n),()=>this.listeners[t].delete(n)}persist(t,n){var r,o,i;if(this.EVENT_THAT_WILL_MUTATE_THE_SERVER.includes(t))return this.options.locales?((o=n.extensions)==null||o.forEach(l=>{rm.forEach(s=>{var a;El(l)&&((a=l.extensionPoints)==null||a.forEach(u=>{delete u[s]})),delete l[s]})}),(i=this.connection)==null?void 0:i.send(JSON.stringify({event:t,data:n}))):(r=this.connection)==null?void 0:r.send(JSON.stringify({event:t,data:n}));console.warn('You tried to use "persist" with a dispatch event. Please use the "emit" method instead.')}emit(...t){var o;const[n,r]=t;if(this.EVENT_THAT_WILL_MUTATE_THE_SERVER.includes(n))return console.warn(`You tried to use "emit" with a the "${n}" event. Please use the "persist" method instead to persist changes to the server.`);(o=this.connection)==null||o.send(JSON.stringify({event:"dispatch",data:{type:n,payload:r}}))}onConnection(t,n){return this.connectionListeners[t].add(n),()=>this.connectionListeners[t].delete(n)}initializeConnection(){var t;this.connection&&(this.connection.addEventListener("open",n=>{this.connected=!0,this.connectionListeners.open.forEach(r=>r(n))}),this.connection.addEventListener("close",n=>{this.connected=!1,this.connectionListeners.close.forEach(r=>r(n))}),(t=this.connection)==null||t.addEventListener("message",n=>{var r,o;try{const{event:i,data:l}=JSON.parse(n.data);if(i==="dispatch"){const{type:a,payload:u}=l;(r=this.listeners[a])==null||r.forEach(d=>d(u));return}const s=l.extensions?dm(l.extensions,this.options.surface):l.extensions;(o=this.listeners[i])==null||o.forEach(a=>{a({...l,extensions:this._getLocalizedExtensions(s)})})}catch(i){console.error("[ExtensionServer] Something went wrong while parsing a server message:",i instanceof Error?i.message:i)}}))}setupConnection(t=!0){this.options.connection.url&&t&&(this.closeConnection(),this.connection=new WebSocket(this.options.connection.url,this.options.connection.protocols),this.initializeConnection())}closeConnection(){var t;this.connected&&((t=this.connection)==null||t.close())}_getLocalizedExtensions(t){return t==null?void 0:t.map(n=>{var s,a,u,d,g;if(!this.options.locales||!El(n))return n;const o=((a=(s=this.uiExtensionsByUuid[n.uuid])==null?void 0:s.localization)==null?void 0:a.lastUpdated)!==((u=n.localization)==null?void 0:u.lastUpdated)?am(n.localization,this.options.locales):((d=this.uiExtensionsByUuid[n.uuid])==null?void 0:d.localization)||n.localization,i=o&&yl(o)?JSON.parse(o.translations):o,l={...n,localization:o,name:i&&n.name.startsWith("t:")?this._getLocalizedValue(i,n.name):n.name,...n.description&&{description:i&&((g=n.description)!=null&&g.startsWith("t:"))?this._getLocalizedValue(i,n.description):n.description}};return this.uiExtensionsByUuid[n.uuid]={...l,extensionPoints:this._getLocalizedExtensionPoints(o,l)},this.uiExtensionsByUuid[n.uuid]})}_getLocalizedExtensionPoints(t,{extensionPoints:n,name:r,description:o}){return!t||!yl(t)?n:n==null?void 0:n.map(i=>({...i,localization:t,name:r,...o&&{description:o}}))}_getLocalizedValue(t,n){const r=n.replace("t:","");return t[r]||n}}function fm(e,t){return vf({...e,...t,connection:{...e.connection,...t.connection}})}function vf(e){return mf(e.surface)||delete e.surface,e}function dm(e,t){return t?e.filter(n=>n.surface===t?!0:Array.isArray(n.extensionPoints)?n.extensionPoints.filter(i=>typeof i=="string"?!1:i.surface===t).length>0:!1):e}function pm(e){return{type:"connected",payload:e}}function hm(e){return{type:"update",payload:e}}function mm(e){return{type:"refresh",payload:e}}function gm(e){return{type:"focus",payload:e}}function vm(e){return{type:"unfocus",payload:e}}const yf={extensions:[],store:""};function ym(e,t){switch(t.type){case"connected":{const n=(t.payload.extensions??[]).map(r=>(Object.keys(r.assets).forEach(o=>r.assets[o].url=Bi(r.assets[o])),r));return{...e,store:t.payload.store,app:t.payload.app,extensions:n}}case"update":{const n=(t.payload.extensions??[]).map(r=>(Object.keys(r.assets).forEach(o=>r.assets[o].url=Bi(r.assets[o])),r));return{...e,app:{...e.app??{},...t.payload.app??{}},extensions:um(e.extensions,n,({uuid:r})=>r)}}case"refresh":return{...e,extensions:e.extensions.map(n=>{if(t.payload.some(({uuid:r})=>n.uuid===r)){const r={};return Object.keys(n.assets).forEach(o=>{const i={...n.assets[o]};i.lastUpdated=Date.now(),i.url=Bi(i),r[o]=i}),Jr(n,o=>o.assets,r)}return n})};case"focus":return{...e,extensions:e.extensions.map(n=>t.payload.some(({uuid:r})=>n.uuid===r)?Jr(n,r=>r.development.focused,!0):n.development.focused?Jr(n,r=>r.development.focused,!1):n)};case"unfocus":return{...e,extensions:e.extensions.map(n=>n.development.focused?Jr(n,r=>r.development.focused,!1):n)};default:return e}}const Em={connect:lu,dispatch:lu,state:yf,client:new gf},Ef=C.createContext(Em),wm=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),su=wm?C.useEffect:C.useLayoutEffect;function Sm(){return C.useReducer(ym,yf)}function Cm({children:e,options:t}){const[n,r]=Sm(),[o,i]=C.useState(t),[l]=C.useState(()=>new gf),s=C.useCallback((u=o)=>{i(u)},[o]);su(()=>l.connect(o),[l,o]),su(()=>{const u=[l.on("update",d=>r(hm(d))),l.on("connected",d=>r(pm(d))),l.on("refresh",d=>r(mm(d))),l.on("focus",d=>r(gm(d))),l.on("unfocus",d=>r(vm(d)))];return()=>u.forEach(d=>d())},[r]);const a=C.useMemo(()=>({dispatch:r,state:n,connect:s,client:l}),[r,s,n,l]);return h.createElement(Ef.Provider,{value:a},e)}const Hr=()=>C.useContext(Ef),_m="_OuterContainer_15qjc_1",Tm="_DevTool_15qjc_7",xm="_Header_15qjc_32",km="_HeaderContent_15qjc_42";const Pm="Developer Console",Lm="Close Developer Console",Om={extensions:"Extensions"},Mm={title:Pm,close:Lm,nav:Om};var ai=function(t){return h.createElement("svg",Object.assign({viewBox:"0 0 20 20"},t),h.createElement("path",{fillRule:"evenodd",d:"M6.515 4.75a2 2 0 0 1 1.985-1.75h3a2 2 0 0 1 1.985 1.75h.265a2.25 2.25 0 0 1 2.25 2.25v7.75a2.25 2.25 0 0 1-2.25 2.25h-7.5a2.25 2.25 0 0 1-2.25-2.25v-7.75a2.25 2.25 0 0 1 2.25-2.25h.265Zm1.985-.25h3a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5Zm-1.987 1.73.002.02h-.265a.75.75 0 0 0-.75.75v7.75c0 .414.336.75.75.75h7.5a.75.75 0 0 0 .75-.75v-7.75a.75.75 0 0 0-.75-.75h-.265a2 2 0 0 1-1.985 1.75h-3a2 2 0 0 1-1.987-1.77Z"}))};ai.displayName="ClipboardIcon";var wf=function(t){return h.createElement("svg",Object.assign({viewBox:"0 0 20 20"},t),h.createElement("path",{fillRule:"evenodd",d:"M6.52 3.83a4.768 4.768 0 0 1 6.423 5.374l2.783 2.782a2.644 2.644 0 0 1-3.74 3.74l-2.782-2.782a4.768 4.768 0 0 1-5.373-6.424.75.75 0 0 1 1.228-.256l1.646 1.647a.853.853 0 0 0 1.206-1.206l-1.646-1.646a.75.75 0 0 1 .256-1.228Zm1.809 1.17.643.644a2.353 2.353 0 1 1-3.327 3.327l-.644-.644a3.268 3.268 0 0 0 4.216 3.069.75.75 0 0 1 .748.187l3.082 3.082a1.144 1.144 0 1 0 1.618-1.618l-3.082-3.082a.75.75 0 0 1-.187-.748 3.268 3.268 0 0 0-3.067-4.217Z"}))};wf.displayName="WrenchIcon";var Sf=function(t){return h.createElement("svg",Object.assign({viewBox:"0 0 20 20"},t),h.createElement("path",{d:"M12.72 13.78a.75.75 0 1 0 1.06-1.06l-2.72-2.72 2.72-2.72a.75.75 0 0 0-1.06-1.06l-2.72 2.72-2.72-2.72a.75.75 0 0 0-1.06 1.06l2.72 2.72-2.72 2.72a.75.75 0 1 0 1.06 1.06l2.72-2.72 2.72 2.72Z"}))};Sf.displayName="XIcon";function Nm({children:e}){const[t]=De({id:"Layout",fallback:Mm});return h.createElement("div",{className:_m},h.createElement("div",{className:Tm},h.createElement("header",{className:xm},h.createElement("section",{className:km},h.createElement(wf,null),h.createElement("h1",null," ",t.translate("title")))),h.createElement("main",null,e)))}var Cf={exports:{}},Ie={},_f={exports:{}},Tf={};/** @license React v0.20.2
|
|
13
|
-
* scheduler.production.min.js
|
|
14
|
-
*
|
|
15
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
16
|
-
*
|
|
17
|
-
* This source code is licensed under the MIT license found in the
|
|
18
|
-
* LICENSE file in the root directory of this source tree.
|
|
19
|
-
*/(function(e){var t,n,r,o;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var a=null,u=null,d=function(){if(a!==null)try{var P=e.unstable_now();a(!0,P),a=null}catch(D){throw setTimeout(d,0),D}};t=function(P){a!==null?setTimeout(t,0,P):(a=P,setTimeout(d,0))},n=function(P,D){u=setTimeout(P,D)},r=function(){clearTimeout(u)},e.unstable_shouldYield=function(){return!1},o=e.unstable_forceFrameRate=function(){}}else{var g=window.setTimeout,m=window.clearTimeout;if(typeof console<"u"){var v=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof v!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var S=!1,w=null,c=-1,f=5,p=0;e.unstable_shouldYield=function(){return e.unstable_now()>=p},o=function(){},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):f=0<P?Math.floor(1e3/P):5};var y=new MessageChannel,E=y.port2;y.port1.onmessage=function(){if(w!==null){var P=e.unstable_now();p=P+f;try{w(!0,P)?E.postMessage(null):(S=!1,w=null)}catch(D){throw E.postMessage(null),D}}else S=!1},t=function(P){w=P,S||(S=!0,E.postMessage(null))},n=function(P,D){c=g(function(){P(e.unstable_now())},D)},r=function(){m(c),c=-1}}function k(P,D){var I=P.length;P.push(D);e:for(;;){var Q=I-1>>>1,te=P[Q];if(te!==void 0&&0<N(te,D))P[Q]=D,P[I]=te,I=Q;else break e}}function x(P){return P=P[0],P===void 0?null:P}function M(P){var D=P[0];if(D!==void 0){var I=P.pop();if(I!==D){P[0]=I;e:for(var Q=0,te=P.length;Q<te;){var At=2*(Q+1)-1,$t=P[At],Hn=At+1,sn=P[Hn];if($t!==void 0&&0>N($t,I))sn!==void 0&&0>N(sn,$t)?(P[Q]=sn,P[Hn]=I,Q=Hn):(P[Q]=$t,P[At]=I,Q=At);else if(sn!==void 0&&0>N(sn,I))P[Q]=sn,P[Hn]=I,Q=Hn;else break e}}return D}return null}function N(P,D){var I=P.sortIndex-D.sortIndex;return I!==0?I:P.id-D.id}var O=[],V=[],Ae=1,j=null,z=3,J=!1,de=!1,X=!1;function Se(P){for(var D=x(V);D!==null;){if(D.callback===null)M(V);else if(D.startTime<=P)M(V),D.sortIndex=D.expirationTime,k(O,D);else break;D=x(V)}}function $e(P){if(X=!1,Se(P),!de)if(x(O)!==null)de=!0,t(at);else{var D=x(V);D!==null&&n($e,D.startTime-P)}}function at(P,D){de=!1,X&&(X=!1,r()),J=!0;var I=z;try{for(Se(D),j=x(O);j!==null&&(!(j.expirationTime>D)||P&&!e.unstable_shouldYield());){var Q=j.callback;if(typeof Q=="function"){j.callback=null,z=j.priorityLevel;var te=Q(j.expirationTime<=D);D=e.unstable_now(),typeof te=="function"?j.callback=te:j===x(O)&&M(O),Se(D)}else M(O);j=x(O)}if(j!==null)var At=!0;else{var $t=x(V);$t!==null&&n($e,$t.startTime-D),At=!1}return At}finally{j=null,z=I,J=!1}}var Gp=o;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(P){P.callback=null},e.unstable_continueExecution=function(){de||J||(de=!0,t(at))},e.unstable_getCurrentPriorityLevel=function(){return z},e.unstable_getFirstCallbackNode=function(){return x(O)},e.unstable_next=function(P){switch(z){case 1:case 2:case 3:var D=3;break;default:D=z}var I=z;z=D;try{return P()}finally{z=I}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Gp,e.unstable_runWithPriority=function(P,D){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var I=z;z=P;try{return D()}finally{z=I}},e.unstable_scheduleCallback=function(P,D,I){var Q=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?Q+I:Q):I=Q,P){case 1:var te=-1;break;case 2:te=250;break;case 5:te=1073741823;break;case 4:te=1e4;break;default:te=5e3}return te=I+te,P={id:Ae++,callback:D,priorityLevel:P,startTime:I,expirationTime:te,sortIndex:-1},I>Q?(P.sortIndex=I,k(V,P),x(O)===null&&P===x(V)&&(X?r():X=!0,n($e,I-Q))):(P.sortIndex=te,k(O,P),de||J||(de=!0,t(at))),P},e.unstable_wrapCallback=function(P){var D=z;return function(){var I=z;z=D;try{return P.apply(this,arguments)}finally{z=I}}}})(Tf);_f.exports=Tf;var Rm=_f.exports;/** @license React v17.0.2
|
|
20
|
-
* react-dom.production.min.js
|
|
21
|
-
*
|
|
22
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
23
|
-
*
|
|
24
|
-
* This source code is licensed under the MIT license found in the
|
|
25
|
-
* LICENSE file in the root directory of this source tree.
|
|
26
|
-
*/var ui=C,W=Vc,ee=Rm;function T(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."}if(!ui)throw Error(T(227));var xf=new Set,Lr={};function nn(e,t){Rn(e,t),Rn(e+"Capture",t)}function Rn(e,t){for(Lr[e]=t,e=0;e<t.length;e++)xf.add(t[e])}var it=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dm=/^[: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]*$/,au=Object.prototype.hasOwnProperty,uu={},cu={};function Im(e){return au.call(cu,e)?!0:au.call(uu,e)?!1:Dm.test(e)?cu[e]=!0:(uu[e]=!0,!1)}function Am(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?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function $m(e,t,n,r){if(t===null||typeof t>"u"||Am(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function he(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new he(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new he(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new he(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new he(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){le[e]=new he(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){le[e]=new he(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){le[e]=new he(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){le[e]=new he(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){le[e]=new he(e,5,!1,e.toLowerCase(),null,!1,!1)});var _s=/[\-:]([a-z])/g;function Ts(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(_s,Ts);le[t]=new he(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(_s,Ts);le[t]=new he(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(_s,Ts);le[t]=new he(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){le[e]=new he(e,1,!1,e.toLowerCase(),null,!1,!1)});le.xlinkHref=new he("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){le[e]=new he(e,1,!1,e.toLowerCase(),null,!0,!0)});function xs(e,t,n,r){var o=le.hasOwnProperty(t)?le[t]:null,i=o!==null?o.type===0:r?!1:!(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N");i||($m(t,n,o,r)&&(n=null),r||o===null?Im(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var rn=ui.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,rr=60103,Ht=60106,pt=60107,ks=60108,pr=60114,Ps=60109,Ls=60110,ci=60112,hr=60113,No=60120,fi=60115,Os=60116,Ms=60121,Ns=60128,kf=60129,Rs=60130,wl=60131;if(typeof Symbol=="function"&&Symbol.for){var q=Symbol.for;rr=q("react.element"),Ht=q("react.portal"),pt=q("react.fragment"),ks=q("react.strict_mode"),pr=q("react.profiler"),Ps=q("react.provider"),Ls=q("react.context"),ci=q("react.forward_ref"),hr=q("react.suspense"),No=q("react.suspense_list"),fi=q("react.memo"),Os=q("react.lazy"),Ms=q("react.block"),q("react.scope"),Ns=q("react.opaque.id"),kf=q("react.debug_trace_mode"),Rs=q("react.offscreen"),wl=q("react.legacy_hidden")}var fu=typeof Symbol=="function"&&Symbol.iterator;function Wn(e){return e===null||typeof e!="object"?null:(e=fu&&e[fu]||e["@@iterator"],typeof e=="function"?e:null)}var ji;function or(e){if(ji===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ji=t&&t[1]||""}return`
|
|
27
|
-
`+ji+e}var bi=!1;function qr(e,t){if(!e||bi)return"";bi=!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(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var o=a.stack.split(`
|
|
28
|
-
`),i=r.stack.split(`
|
|
29
|
-
`),l=o.length-1,s=i.length-1;1<=l&&0<=s&&o[l]!==i[s];)s--;for(;1<=l&&0<=s;l--,s--)if(o[l]!==i[s]){if(l!==1||s!==1)do if(l--,s--,0>s||o[l]!==i[s])return`
|
|
30
|
-
`+o[l].replace(" at new "," at ");while(1<=l&&0<=s);break}}}finally{bi=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?or(e):""}function Fm(e){switch(e.tag){case 5:return or(e.type);case 16:return or("Lazy");case 13:return or("Suspense");case 19:return or("SuspenseList");case 0:case 2:case 15:return e=qr(e.type,!1),e;case 11:return e=qr(e.type.render,!1),e;case 22:return e=qr(e.type._render,!1),e;case 1:return e=qr(e.type,!0),e;default:return""}}function wn(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 pt:return"Fragment";case Ht:return"Portal";case pr:return"Profiler";case ks:return"StrictMode";case hr:return"Suspense";case No:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ls:return(e.displayName||"Context")+".Consumer";case Ps:return(e._context.displayName||"Context")+".Provider";case ci:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case fi:return wn(e.type);case Ms:return wn(e._render);case Os:t=e._payload,e=e._init;try{return wn(e(t))}catch{}}return null}function Pt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Pf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zm(e){var t=Pf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function eo(e){e._valueTracker||(e._valueTracker=zm(e))}function Lf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Pf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ro(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Sl(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function du(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Pt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Of(e,t){t=t.checked,t!=null&&xs(e,"checked",t,!1)}function Cl(e,t){Of(e,t);var n=Pt(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")?_l(e,t.type,n):t.hasOwnProperty("defaultValue")&&_l(e,t.type,Pt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function pu(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 _l(e,t,n){(t!=="number"||Ro(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Um(e){var t="";return ui.Children.forEach(e,function(n){n!=null&&(t+=n)}),t}function Tl(e,t){return e=W({children:void 0},t),(t=Um(t.children))&&(e.children=t),e}function Sn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Pt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function xl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(T(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hu(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(T(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(T(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Pt(n)}}function Mf(e,t){var n=Pt(t.value),r=Pt(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 mu(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}var kl={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Nf(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 Pl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Nf(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var to,Rf=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!==kl.svg||"innerHTML"in e)e.innerHTML=t;else{for(to=to||document.createElement("div"),to.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=to.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Or(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var mr={animationIterationCount:!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},Bm=["Webkit","ms","Moz","O"];Object.keys(mr).forEach(function(e){Bm.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),mr[t]=mr[e]})});function Df(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||mr.hasOwnProperty(e)&&mr[e]?(""+t).trim():t+"px"}function If(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Df(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var jm=W({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 Ll(e,t){if(t){if(jm[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(T(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(T(60));if(!(typeof t.dangerouslySetInnerHTML=="object"&&"__html"in t.dangerouslySetInnerHTML))throw Error(T(61))}if(t.style!=null&&typeof t.style!="object")throw Error(T(62))}}function Ol(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}}function Ds(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ml=null,Cn=null,_n=null;function gu(e){if(e=Wr(e)){if(typeof Ml!="function")throw Error(T(280));var t=e.stateNode;t&&(t=vi(t),Ml(e.stateNode,e.type,t))}}function Af(e){Cn?_n?_n.push(e):_n=[e]:Cn=e}function $f(){if(Cn){var e=Cn,t=_n;if(_n=Cn=null,gu(e),t)for(e=0;e<t.length;e++)gu(t[e])}}function Is(e,t){return e(t)}function Ff(e,t,n,r,o){return e(t,n,r,o)}function As(){}var zf=Is,Vt=!1,Hi=!1;function $s(){(Cn!==null||_n!==null)&&(As(),$f())}function bm(e,t,n){if(Hi)return e(t,n);Hi=!0;try{return zf(e,t,n)}finally{Hi=!1,$s()}}function Mr(e,t){var n=e.stateNode;if(n===null)return null;var r=vi(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(T(231,t,typeof n));return n}var Nl=!1;if(it)try{var Gn={};Object.defineProperty(Gn,"passive",{get:function(){Nl=!0}}),window.addEventListener("test",Gn,Gn),window.removeEventListener("test",Gn,Gn)}catch{Nl=!1}function Hm(e,t,n,r,o,i,l,s,a){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var gr=!1,Do=null,Io=!1,Rl=null,Vm={onError:function(e){gr=!0,Do=e}};function Wm(e,t,n,r,o,i,l,s,a){gr=!1,Do=null,Hm.apply(Vm,arguments)}function Gm(e,t,n,r,o,i,l,s,a){if(Wm.apply(this,arguments),gr){if(gr){var u=Do;gr=!1,Do=null}else throw Error(T(198));Io||(Io=!0,Rl=u)}}function on(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&1026&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Uf(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 vu(e){if(on(e)!==e)throw Error(T(188))}function Km(e){var t=e.alternate;if(!t){if(t=on(e),t===null)throw Error(T(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return vu(o),e;if(i===r)return vu(o),t;i=i.sibling}throw Error(T(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(T(189))}}if(n.alternate!==r)throw Error(T(190))}if(n.tag!==3)throw Error(T(188));return n.stateNode.current===n?e:t}function Bf(e){if(e=Km(e),!e)return null;for(var t=e;;){if(t.tag===5||t.tag===6)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function yu(e,t){for(var n=e.alternate;t!==null;){if(t===e||t===n)return!0;t=t.return}return!1}var jf,Fs,bf,Hf,Dl=!1,He=[],Et=null,wt=null,St=null,Nr=new Map,Rr=new Map,Kn=[],Eu="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 Il(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:n|16,nativeEvent:o,targetContainers:[r]}}function wu(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":St=null;break;case"pointerover":case"pointerout":Nr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rr.delete(t.pointerId)}}function Qn(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e=Il(t,n,r,o,i),t!==null&&(t=Wr(t),t!==null&&Fs(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Qm(e,t,n,r,o){switch(t){case"focusin":return Et=Qn(Et,e,t,n,r,o),!0;case"dragenter":return wt=Qn(wt,e,t,n,r,o),!0;case"mouseover":return St=Qn(St,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Nr.set(i,Qn(Nr.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Rr.set(i,Qn(Rr.get(i)||null,e,t,n,r,o)),!0}return!1}function Ym(e){var t=Wt(e.target);if(t!==null){var n=on(t);if(n!==null){if(t=n.tag,t===13){if(t=Uf(n),t!==null){e.blockedOn=t,Hf(e.lanePriority,function(){ee.unstable_runWithPriority(e.priority,function(){bf(n)})});return}}else if(t===3&&n.stateNode.hydrate){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function go(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=js(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=Wr(n),t!==null&&Fs(t),e.blockedOn=n,!1;t.shift()}return!0}function Su(e,t,n){go(e)&&n.delete(t)}function Xm(){for(Dl=!1;0<He.length;){var e=He[0];if(e.blockedOn!==null){e=Wr(e.blockedOn),e!==null&&jf(e);break}for(var t=e.targetContainers;0<t.length;){var n=js(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null){e.blockedOn=n;break}t.shift()}e.blockedOn===null&&He.shift()}Et!==null&&go(Et)&&(Et=null),wt!==null&&go(wt)&&(wt=null),St!==null&&go(St)&&(St=null),Nr.forEach(Su),Rr.forEach(Su)}function Yn(e,t){e.blockedOn===t&&(e.blockedOn=null,Dl||(Dl=!0,ee.unstable_scheduleCallback(ee.unstable_NormalPriority,Xm)))}function Vf(e){function t(o){return Yn(o,e)}if(0<He.length){Yn(He[0],e);for(var n=1;n<He.length;n++){var r=He[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Et!==null&&Yn(Et,e),wt!==null&&Yn(wt,e),St!==null&&Yn(St,e),Nr.forEach(t),Rr.forEach(t),n=0;n<Kn.length;n++)r=Kn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Kn.length&&(n=Kn[0],n.blockedOn===null);)Ym(n),n.blockedOn===null&&Kn.shift()}function no(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var hn={animationend:no("Animation","AnimationEnd"),animationiteration:no("Animation","AnimationIteration"),animationstart:no("Animation","AnimationStart"),transitionend:no("Transition","TransitionEnd")},Vi={},Wf={};it&&(Wf=document.createElement("div").style,"AnimationEvent"in window||(delete hn.animationend.animation,delete hn.animationiteration.animation,delete hn.animationstart.animation),"TransitionEvent"in window||delete hn.transitionend.transition);function di(e){if(Vi[e])return Vi[e];if(!hn[e])return e;var t=hn[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wf)return Vi[e]=t[n];return e}var Gf=di("animationend"),Kf=di("animationiteration"),Qf=di("animationstart"),Yf=di("transitionend"),Xf=new Map,zs=new Map,Zm=["abort","abort",Gf,"animationEnd",Kf,"animationIteration",Qf,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Yf,"transitionEnd","waiting","waiting"];function Us(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),zs.set(r,t),Xf.set(r,o),nn(o,[r])}}var Jm=ee.unstable_now;Jm();var B=8;function cn(e){if(1&e)return B=15,1;if(2&e)return B=14,2;if(4&e)return B=13,4;var t=24&e;return t!==0?(B=12,t):e&32?(B=11,32):(t=192&e,t!==0?(B=10,t):e&256?(B=9,256):(t=3584&e,t!==0?(B=8,t):e&4096?(B=7,4096):(t=4186112&e,t!==0?(B=6,t):(t=62914560&e,t!==0?(B=5,t):e&67108864?(B=4,67108864):e&134217728?(B=3,134217728):(t=805306368&e,t!==0?(B=2,t):1073741824&e?(B=1,1073741824):(B=8,e))))))}function qm(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function e1(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(T(358,e))}}function Dr(e,t){var n=e.pendingLanes;if(n===0)return B=0;var r=0,o=0,i=e.expiredLanes,l=e.suspendedLanes,s=e.pingedLanes;if(i!==0)r=i,o=B=15;else if(i=n&134217727,i!==0){var a=i&~l;a!==0?(r=cn(a),o=B):(s&=i,s!==0&&(r=cn(s),o=B))}else i=n&~l,i!==0?(r=cn(i),o=B):s!==0&&(r=cn(s),o=B);if(r===0)return 0;if(r=31-Lt(r),r=n&((0>r?0:1<<r)<<1)-1,t!==0&&t!==r&&!(t&l)){if(cn(t),o<=B)return t;B=o}if(t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Lt(t),o=1<<n,r|=e[n],t&=~o;return r}function Zf(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Ao(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return e=fn(24&~t),e===0?Ao(10,t):e;case 10:return e=fn(192&~t),e===0?Ao(8,t):e;case 8:return e=fn(3584&~t),e===0&&(e=fn(4186112&~t),e===0&&(e=512)),e;case 2:return t=fn(805306368&~t),t===0&&(t=268435456),t}throw Error(T(358,e))}function fn(e){return e&-e}function Wi(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function pi(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,e=e.eventTimes,t=31-Lt(t),e[t]=n}var Lt=Math.clz32?Math.clz32:r1,t1=Math.log,n1=Math.LN2;function r1(e){return e===0?32:31-(t1(e)/n1|0)|0}var o1=ee.unstable_UserBlockingPriority,i1=ee.unstable_runWithPriority,vo=!0;function l1(e,t,n,r){Vt||As();var o=Bs,i=Vt;Vt=!0;try{Ff(o,e,t,n,r)}finally{(Vt=i)||$s()}}function s1(e,t,n,r){i1(o1,Bs.bind(null,e,t,n,r))}function Bs(e,t,n,r){if(vo){var o;if((o=(t&4)===0)&&0<He.length&&-1<Eu.indexOf(e))e=Il(null,e,t,n,r),He.push(e);else{var i=js(e,t,n,r);if(i===null)o&&wu(e,r);else{if(o){if(-1<Eu.indexOf(e)){e=Il(i,e,t,n,r),He.push(e);return}if(Qm(i,e,t,n,r))return;wu(e,r)}cd(e,t,r,null,n)}}}}function js(e,t,n,r){var o=Ds(r);if(o=Wt(o),o!==null){var i=on(o);if(i===null)o=null;else{var l=i.tag;if(l===13){if(o=Uf(i),o!==null)return o;o=null}else if(l===3){if(i.stateNode.hydrate)return i.tag===3?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return cd(e,t,r,o,n),null}var ht=null,bs=null,yo=null;function Jf(){if(yo)return yo;var e,t=bs,n=t.length,r,o="value"in ht?ht.value:ht.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return yo=o.slice(e,1<r?1-r:void 0)}function Eo(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 ro(){return!0}function Cu(){return!1}function Te(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ro:Cu,this.isPropagationStopped=Cu,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=ro)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=ro)},persist:function(){},isPersistent:ro}),t}var zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Hs=Te(zn),Vr=W({},zn,{view:0,detail:0}),a1=Te(Vr),Gi,Ki,Xn,hi=W({},Vr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vs,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!==Xn&&(Xn&&e.type==="mousemove"?(Gi=e.screenX-Xn.screenX,Ki=e.screenY-Xn.screenY):Ki=Gi=0,Xn=e),Gi)},movementY:function(e){return"movementY"in e?e.movementY:Ki}}),_u=Te(hi),u1=W({},hi,{dataTransfer:0}),c1=Te(u1),f1=W({},Vr,{relatedTarget:0}),Qi=Te(f1),d1=W({},zn,{animationName:0,elapsedTime:0,pseudoElement:0}),p1=Te(d1),h1=W({},zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),m1=Te(h1),g1=W({},zn,{data:0}),Tu=Te(g1),v1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},y1={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"},E1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function w1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=E1[e])?!!t[e]:!1}function Vs(){return w1}var S1=W({},Vr,{key:function(e){if(e.key){var t=v1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Eo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?y1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vs,charCode:function(e){return e.type==="keypress"?Eo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Eo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),C1=Te(S1),_1=W({},hi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xu=Te(_1),T1=W({},Vr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vs}),x1=Te(T1),k1=W({},zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),P1=Te(k1),L1=W({},hi,{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}),O1=Te(L1),M1=[9,13,27,32],Ws=it&&"CompositionEvent"in window,vr=null;it&&"documentMode"in document&&(vr=document.documentMode);var N1=it&&"TextEvent"in window&&!vr,qf=it&&(!Ws||vr&&8<vr&&11>=vr),ku=String.fromCharCode(32),Pu=!1;function ed(e,t){switch(e){case"keyup":return M1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var mn=!1;function R1(e,t){switch(e){case"compositionend":return td(t);case"keypress":return t.which!==32?null:(Pu=!0,ku);case"textInput":return e=t.data,e===ku&&Pu?null:e;default:return null}}function D1(e,t){if(mn)return e==="compositionend"||!Ws&&ed(e,t)?(e=Jf(),yo=bs=ht=null,mn=!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 qf&&t.locale!=="ko"?null:t.data;default:return null}}var I1={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 Lu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!I1[e.type]:t==="textarea"}function nd(e,t,n,r){Af(r),t=$o(t,"onChange"),0<t.length&&(n=new Hs("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var yr=null,Ir=null;function A1(e){sd(e,0)}function mi(e){var t=vn(e);if(Lf(t))return e}function $1(e,t){if(e==="change")return t}var rd=!1;if(it){var Yi;if(it){var Xi="oninput"in document;if(!Xi){var Ou=document.createElement("div");Ou.setAttribute("oninput","return;"),Xi=typeof Ou.oninput=="function"}Yi=Xi}else Yi=!1;rd=Yi&&(!document.documentMode||9<document.documentMode)}function Mu(){yr&&(yr.detachEvent("onpropertychange",od),Ir=yr=null)}function od(e){if(e.propertyName==="value"&&mi(Ir)){var t=[];if(nd(t,Ir,e,Ds(e)),e=A1,Vt)e(t);else{Vt=!0;try{Is(e,t)}finally{Vt=!1,$s()}}}}function F1(e,t,n){e==="focusin"?(Mu(),yr=t,Ir=n,yr.attachEvent("onpropertychange",od)):e==="focusout"&&Mu()}function z1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mi(Ir)}function U1(e,t){if(e==="click")return mi(t)}function B1(e,t){if(e==="input"||e==="change")return mi(t)}function j1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Le=typeof Object.is=="function"?Object.is:j1,b1=Object.prototype.hasOwnProperty;function Ar(e,t){if(Le(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)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++)if(!b1.call(t,n[r])||!Le(e[n[r]],t[n[r]]))return!1;return!0}function Nu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ru(e,t){var n=Nu(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}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Nu(n)}}function id(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?id(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Du(){for(var e=window,t=Ro();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ro(e.document)}return t}function Al(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")}var H1=it&&"documentMode"in document&&11>=document.documentMode,gn=null,$l=null,Er=null,Fl=!1;function Iu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Fl||gn==null||gn!==Ro(r)||(r=gn,"selectionStart"in r&&Al(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}),Er&&Ar(Er,r)||(Er=r,r=$o($l,"onSelect"),0<r.length&&(t=new Hs("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gn)))}Us("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0);Us("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1);Us(Zm,2);for(var Au="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Zi=0;Zi<Au.length;Zi++)zs.set(Au[Zi],0);Rn("onMouseEnter",["mouseout","mouseover"]);Rn("onMouseLeave",["mouseout","mouseover"]);Rn("onPointerEnter",["pointerout","pointerover"]);Rn("onPointerLeave",["pointerout","pointerover"]);nn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));nn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));nn("onBeforeInput",["compositionend","keypress","textInput","paste"]);nn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));nn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));nn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ld=new Set("cancel close invalid load scroll toggle".split(" ").concat(ir));function $u(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Gm(r,t,void 0,e),e.currentTarget=null}function sd(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==i&&o.isPropagationStopped())break e;$u(o,s,u),i=a}else for(l=0;l<r.length;l++){if(s=r[l],a=s.instance,u=s.currentTarget,s=s.listener,a!==i&&o.isPropagationStopped())break e;$u(o,s,u),i=a}}}if(Io)throw e=Rl,Io=!1,Rl=null,e}function b(e,t){var n=dd(t),r=e+"__bubble";n.has(r)||(ud(t,e,2,!1),n.add(r))}var Fu="_reactListening"+Math.random().toString(36).slice(2);function ad(e){e[Fu]||(e[Fu]=!0,xf.forEach(function(t){ld.has(t)||zu(t,!1,e,null),zu(t,!0,e,null)}))}function zu(e,t,n,r){var o=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,i=n;if(e==="selectionchange"&&n.nodeType!==9&&(i=n.ownerDocument),r!==null&&!t&&ld.has(e)){if(e!=="scroll")return;o|=2,i=r}var l=dd(i),s=e+"__"+(t?"capture":"bubble");l.has(s)||(t&&(o|=4),ud(i,e,o,t),l.add(s))}function ud(e,t,n,r){var o=zs.get(t);switch(o===void 0?2:o){case 0:o=l1;break;case 1:o=s1;break;default:o=Bs}n=o.bind(null,t,n,e),o=void 0,!Nl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function cd(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var a=l.tag;if((a===3||a===4)&&(a=l.stateNode.containerInfo,a===o||a.nodeType===8&&a.parentNode===o))return;l=l.return}for(;s!==null;){if(l=Wt(s),l===null)return;if(a=l.tag,a===5||a===6){r=i=l;continue e}s=s.parentNode}}r=r.return}bm(function(){var u=i,d=Ds(n),g=[];e:{var m=Xf.get(e);if(m!==void 0){var v=Hs,S=e;switch(e){case"keypress":if(Eo(n)===0)break e;case"keydown":case"keyup":v=C1;break;case"focusin":S="focus",v=Qi;break;case"focusout":S="blur",v=Qi;break;case"beforeblur":case"afterblur":v=Qi;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=_u;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=c1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=x1;break;case Gf:case Kf:case Qf:v=p1;break;case Yf:v=P1;break;case"scroll":v=a1;break;case"wheel":v=O1;break;case"copy":case"cut":case"paste":v=m1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=xu}var w=(t&4)!==0,c=!w&&e==="scroll",f=w?m!==null?m+"Capture":null:m;w=[];for(var p=u,y;p!==null;){y=p;var E=y.stateNode;if(y.tag===5&&E!==null&&(y=E,f!==null&&(E=Mr(p,f),E!=null&&w.push($r(p,E,y)))),c)break;p=p.return}0<w.length&&(m=new v(m,S,null,n,d),g.push({event:m,listeners:w}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&!(t&16)&&(S=n.relatedTarget||n.fromElement)&&(Wt(S)||S[Un]))break e;if((v||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,v?(S=n.relatedTarget||n.toElement,v=u,S=S?Wt(S):null,S!==null&&(c=on(S),S!==c||S.tag!==5&&S.tag!==6)&&(S=null)):(v=null,S=u),v!==S)){if(w=_u,E="onMouseLeave",f="onMouseEnter",p="mouse",(e==="pointerout"||e==="pointerover")&&(w=xu,E="onPointerLeave",f="onPointerEnter",p="pointer"),c=v==null?m:vn(v),y=S==null?m:vn(S),m=new w(E,p+"leave",v,n,d),m.target=c,m.relatedTarget=y,E=null,Wt(d)===u&&(w=new w(f,p+"enter",S,n,d),w.target=y,w.relatedTarget=c,E=w),c=E,v&&S)t:{for(w=v,f=S,p=0,y=w;y;y=an(y))p++;for(y=0,E=f;E;E=an(E))y++;for(;0<p-y;)w=an(w),p--;for(;0<y-p;)f=an(f),y--;for(;p--;){if(w===f||f!==null&&w===f.alternate)break t;w=an(w),f=an(f)}w=null}else w=null;v!==null&&Uu(g,m,v,w,!1),S!==null&&c!==null&&Uu(g,c,S,w,!0)}}e:{if(m=u?vn(u):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var k=$1;else if(Lu(m))if(rd)k=B1;else{k=z1;var x=F1}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(k=U1);if(k&&(k=k(e,u))){nd(g,k,n,d);break e}x&&x(e,m,u),e==="focusout"&&(x=m._wrapperState)&&x.controlled&&m.type==="number"&&_l(m,"number",m.value)}switch(x=u?vn(u):window,e){case"focusin":(Lu(x)||x.contentEditable==="true")&&(gn=x,$l=u,Er=null);break;case"focusout":Er=$l=gn=null;break;case"mousedown":Fl=!0;break;case"contextmenu":case"mouseup":case"dragend":Fl=!1,Iu(g,n,d);break;case"selectionchange":if(H1)break;case"keydown":case"keyup":Iu(g,n,d)}var M;if(Ws)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else mn?ed(e,n)&&(N="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(N="onCompositionStart");N&&(qf&&n.locale!=="ko"&&(mn||N!=="onCompositionStart"?N==="onCompositionEnd"&&mn&&(M=Jf()):(ht=d,bs="value"in ht?ht.value:ht.textContent,mn=!0)),x=$o(u,N),0<x.length&&(N=new Tu(N,e,null,n,d),g.push({event:N,listeners:x}),M?N.data=M:(M=td(n),M!==null&&(N.data=M)))),(M=N1?R1(e,n):D1(e,n))&&(u=$o(u,"onBeforeInput"),0<u.length&&(d=new Tu("onBeforeInput","beforeinput",null,n,d),g.push({event:d,listeners:u}),d.data=M))}sd(g,t)})}function $r(e,t,n){return{instance:e,listener:t,currentTarget:n}}function $o(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Mr(e,n),i!=null&&r.unshift($r(e,i,o)),i=Mr(e,t),i!=null&&r.push($r(e,i,o))),e=e.return}return r}function an(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Uu(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,a=s.alternate,u=s.stateNode;if(a!==null&&a===r)break;s.tag===5&&u!==null&&(s=u,o?(a=Mr(n,i),a!=null&&l.unshift($r(n,a,s))):o||(a=Mr(n,i),a!=null&&l.push($r(n,a,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}function Fo(){}var Ji=null,qi=null;function fd(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function zl(e,t){return e==="textarea"||e==="option"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Bu=typeof setTimeout=="function"?setTimeout:void 0,V1=typeof clearTimeout=="function"?clearTimeout:void 0;function Gs(e){e.nodeType===1?e.textContent="":e.nodeType===9&&(e=e.body,e!=null&&(e.textContent=""))}function Tn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break}return e}function ju(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 el=0;function W1(e){return{$$typeof:Ns,toString:e,valueOf:e}}var gi=Math.random().toString(36).slice(2),mt="__reactFiber$"+gi,zo="__reactProps$"+gi,Un="__reactContainer$"+gi,bu="__reactEvents$"+gi;function Wt(e){var t=e[mt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Un]||n[mt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ju(e);e!==null;){if(n=e[mt])return n;e=ju(e)}return t}e=n,n=e.parentNode}return null}function Wr(e){return e=e[mt]||e[Un],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function vn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(T(33))}function vi(e){return e[zo]||null}function dd(e){var t=e[bu];return t===void 0&&(t=e[bu]=new Set),t}var Ul=[],yn=-1;function Rt(e){return{current:e}}function H(e){0>yn||(e.current=Ul[yn],Ul[yn]=null,yn--)}function K(e,t){yn++,Ul[yn]=e.current,e.current=t}var Ot={},fe=Rt(Ot),ye=Rt(!1),Zt=Ot;function Dn(e,t){var n=e.type.contextTypes;if(!n)return Ot;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ee(e){return e=e.childContextTypes,e!=null}function Uo(){H(ye),H(fe)}function Hu(e,t,n){if(fe.current!==Ot)throw Error(T(168));K(fe,t),K(ye,n)}function pd(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in e))throw Error(T(108,wn(t)||"Unknown",o));return W({},n,r)}function wo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ot,Zt=fe.current,K(fe,e),K(ye,ye.current),!0}function Vu(e,t,n){var r=e.stateNode;if(!r)throw Error(T(169));n?(e=pd(e,t,Zt),r.__reactInternalMemoizedMergedChildContext=e,H(ye),H(fe),K(fe,e)):H(ye),K(ye,n)}var Ks=null,Xt=null,G1=ee.unstable_runWithPriority,Qs=ee.unstable_scheduleCallback,Bl=ee.unstable_cancelCallback,K1=ee.unstable_shouldYield,Wu=ee.unstable_requestPaint,jl=ee.unstable_now,Q1=ee.unstable_getCurrentPriorityLevel,yi=ee.unstable_ImmediatePriority,hd=ee.unstable_UserBlockingPriority,md=ee.unstable_NormalPriority,gd=ee.unstable_LowPriority,vd=ee.unstable_IdlePriority,tl={},Y1=Wu!==void 0?Wu:function(){},Je=null,So=null,nl=!1,Gu=jl(),ue=1e4>Gu?jl:function(){return jl()-Gu};function In(){switch(Q1()){case yi:return 99;case hd:return 98;case md:return 97;case gd:return 96;case vd:return 95;default:throw Error(T(332))}}function yd(e){switch(e){case 99:return yi;case 98:return hd;case 97:return md;case 96:return gd;case 95:return vd;default:throw Error(T(332))}}function Jt(e,t){return e=yd(e),G1(e,t)}function Fr(e,t,n){return e=yd(e),Qs(e,t,n)}function Ye(){if(So!==null){var e=So;So=null,Bl(e)}Ed()}function Ed(){if(!nl&&Je!==null){nl=!0;var e=0;try{var t=Je;Jt(99,function(){for(;e<t.length;e++){var n=t[e];do n=n(!0);while(n!==null)}}),Je=null}catch(n){throw Je!==null&&(Je=Je.slice(e+1)),Qs(yi,Ye),n}finally{nl=!1}}}var X1=rn.ReactCurrentBatchConfig;function ze(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Bo=Rt(null),jo=null,En=null,bo=null;function Ys(){bo=En=jo=null}function Xs(e){var t=Bo.current;H(Bo),e.type._context._currentValue=t}function wd(e,t){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)===t){if(n===null||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,n!==null&&(n.childLanes|=t);e=e.return}}function xn(e,t){jo=e,bo=En=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(je=!0),e.firstContext=null)}function Ne(e,t){if(bo!==e&&t!==!1&&t!==0)if((typeof t!="number"||t===1073741823)&&(bo=e,t=1073741823),t={context:e,observedBits:t,next:null},En===null){if(jo===null)throw Error(T(308));En=t,jo.dependencies={lanes:0,firstContext:t,responders:null}}else En=En.next=t;return e._currentValue}var dt=!1;function Zs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function Sd(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 Ct(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function _t(e,t){if(e=e.updateQueue,e!==null){e=e.shared;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function Ku(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 zr(e,t,n,r){var o=e.updateQueue;dt=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var a=s,u=a.next;a.next=null,l===null?i=u:l.next=u,l=a;var d=e.alternate;if(d!==null){d=d.updateQueue;var g=d.lastBaseUpdate;g!==l&&(g===null?d.firstBaseUpdate=u:g.next=u,d.lastBaseUpdate=a)}}if(i!==null){g=o.baseState,l=0,d=u=a=null;do{s=i.lane;var m=i.eventTime;if((r&s)===s){d!==null&&(d=d.next={eventTime:m,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var v=e,S=i;switch(s=t,m=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){g=v.call(m,g,s);break e}g=v;break e;case 3:v.flags=v.flags&-4097|64;case 0:if(v=S.payload,s=typeof v=="function"?v.call(m,g,s):v,s==null)break e;g=W({},g,s);break e;case 2:dt=!0}}i.callback!==null&&(e.flags|=32,s=o.effects,s===null?o.effects=[i]:s.push(i))}else m={eventTime:m,lane:s,tag:i.tag,payload:i.payload,callback:i.callback,next:null},d===null?(u=d=m,a=g):d=d.next=m,l|=s;if(i=i.next,i===null){if(s=o.shared.pending,s===null)break;i=s.next,s.next=null,o.lastBaseUpdate=s,o.shared.pending=null}}while(1);d===null&&(a=g),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=d,Kr|=l,e.lanes=l,e.memoizedState=g}}function Qu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(T(191,o));o.call(r)}}}var Cd=new ui.Component().refs;function Ho(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ei={isMounted:function(e){return(e=e._reactInternals)?on(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_e(),o=Tt(e),i=Ct(r,o);i.payload=t,n!=null&&(i.callback=n),_t(e,i),xt(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_e(),o=Tt(e),i=Ct(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),_t(e,i),xt(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_e(),r=Tt(e),o=Ct(n,r);o.tag=2,t!=null&&(o.callback=t),_t(e,o),xt(e,r,n)}};function Yu(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!Ar(n,r)||!Ar(o,i):!0}function _d(e,t,n){var r=!1,o=Ot,i=t.contextType;return typeof i=="object"&&i!==null?i=Ne(i):(o=Ee(t)?Zt:fe.current,r=t.contextTypes,i=(r=r!=null)?Dn(e,o):Ot),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Ei,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Xu(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&&Ei.enqueueReplaceState(t,t.state,null)}function bl(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Cd,Zs(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ne(i):(i=Ee(t)?Zt:fe.current,o.context=Dn(e,i)),zr(e,n,o,r),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(Ho(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Ei.enqueueReplaceState(o,o.state,null),zr(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4)}var oo=Array.isArray;function Zn(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(T(309));var r=n.stateNode}if(!r)throw Error(T(147,e));var o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var l=r.refs;l===Cd&&(l=r.refs={}),i===null?delete l[o]:l[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(T(284));if(!n._owner)throw Error(T(290,e))}return e}function io(e,t){if(e.type!=="textarea")throw Error(T(31,Object.prototype.toString.call(t)==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function Td(e){function t(c,f){if(e){var p=c.lastEffect;p!==null?(p.nextEffect=f,c.lastEffect=f):c.firstEffect=c.lastEffect=f,f.nextEffect=null,f.flags=8}}function n(c,f){if(!e)return null;for(;f!==null;)t(c,f),f=f.sibling;return null}function r(c,f){for(c=new Map;f!==null;)f.key!==null?c.set(f.key,f):c.set(f.index,f),f=f.sibling;return c}function o(c,f){return c=Nt(c,f),c.index=0,c.sibling=null,c}function i(c,f,p){return c.index=p,e?(p=c.alternate,p!==null?(p=p.index,p<f?(c.flags=2,f):p):(c.flags=2,f)):f}function l(c){return e&&c.alternate===null&&(c.flags=2),c}function s(c,f,p,y){return f===null||f.tag!==6?(f=sl(p,c.mode,y),f.return=c,f):(f=o(f,p),f.return=c,f)}function a(c,f,p,y){return f!==null&&f.elementType===p.type?(y=o(f,p.props),y.ref=Zn(c,f,p),y.return=c,y):(y=xo(p.type,p.key,p.props,null,c.mode,y),y.ref=Zn(c,f,p),y.return=c,y)}function u(c,f,p,y){return f===null||f.tag!==4||f.stateNode.containerInfo!==p.containerInfo||f.stateNode.implementation!==p.implementation?(f=al(p,c.mode,y),f.return=c,f):(f=o(f,p.children||[]),f.return=c,f)}function d(c,f,p,y,E){return f===null||f.tag!==7?(f=On(p,c.mode,y,E),f.return=c,f):(f=o(f,p),f.return=c,f)}function g(c,f,p){if(typeof f=="string"||typeof f=="number")return f=sl(""+f,c.mode,p),f.return=c,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case rr:return p=xo(f.type,f.key,f.props,null,c.mode,p),p.ref=Zn(c,null,f),p.return=c,p;case Ht:return f=al(f,c.mode,p),f.return=c,f}if(oo(f)||Wn(f))return f=On(f,c.mode,p,null),f.return=c,f;io(c,f)}return null}function m(c,f,p,y){var E=f!==null?f.key:null;if(typeof p=="string"||typeof p=="number")return E!==null?null:s(c,f,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case rr:return p.key===E?p.type===pt?d(c,f,p.props.children,y,E):a(c,f,p,y):null;case Ht:return p.key===E?u(c,f,p,y):null}if(oo(p)||Wn(p))return E!==null?null:d(c,f,p,y,null);io(c,p)}return null}function v(c,f,p,y,E){if(typeof y=="string"||typeof y=="number")return c=c.get(p)||null,s(f,c,""+y,E);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case rr:return c=c.get(y.key===null?p:y.key)||null,y.type===pt?d(f,c,y.props.children,E,y.key):a(f,c,y,E);case Ht:return c=c.get(y.key===null?p:y.key)||null,u(f,c,y,E)}if(oo(y)||Wn(y))return c=c.get(p)||null,d(f,c,y,E,null);io(f,y)}return null}function S(c,f,p,y){for(var E=null,k=null,x=f,M=f=0,N=null;x!==null&&M<p.length;M++){x.index>M?(N=x,x=null):N=x.sibling;var O=m(c,x,p[M],y);if(O===null){x===null&&(x=N);break}e&&x&&O.alternate===null&&t(c,x),f=i(O,f,M),k===null?E=O:k.sibling=O,k=O,x=N}if(M===p.length)return n(c,x),E;if(x===null){for(;M<p.length;M++)x=g(c,p[M],y),x!==null&&(f=i(x,f,M),k===null?E=x:k.sibling=x,k=x);return E}for(x=r(c,x);M<p.length;M++)N=v(x,c,M,p[M],y),N!==null&&(e&&N.alternate!==null&&x.delete(N.key===null?M:N.key),f=i(N,f,M),k===null?E=N:k.sibling=N,k=N);return e&&x.forEach(function(V){return t(c,V)}),E}function w(c,f,p,y){var E=Wn(p);if(typeof E!="function")throw Error(T(150));if(p=E.call(p),p==null)throw Error(T(151));for(var k=E=null,x=f,M=f=0,N=null,O=p.next();x!==null&&!O.done;M++,O=p.next()){x.index>M?(N=x,x=null):N=x.sibling;var V=m(c,x,O.value,y);if(V===null){x===null&&(x=N);break}e&&x&&V.alternate===null&&t(c,x),f=i(V,f,M),k===null?E=V:k.sibling=V,k=V,x=N}if(O.done)return n(c,x),E;if(x===null){for(;!O.done;M++,O=p.next())O=g(c,O.value,y),O!==null&&(f=i(O,f,M),k===null?E=O:k.sibling=O,k=O);return E}for(x=r(c,x);!O.done;M++,O=p.next())O=v(x,c,M,O.value,y),O!==null&&(e&&O.alternate!==null&&x.delete(O.key===null?M:O.key),f=i(O,f,M),k===null?E=O:k.sibling=O,k=O);return e&&x.forEach(function(Ae){return t(c,Ae)}),E}return function(c,f,p,y){var E=typeof p=="object"&&p!==null&&p.type===pt&&p.key===null;E&&(p=p.props.children);var k=typeof p=="object"&&p!==null;if(k)switch(p.$$typeof){case rr:e:{for(k=p.key,E=f;E!==null;){if(E.key===k){switch(E.tag){case 7:if(p.type===pt){n(c,E.sibling),f=o(E,p.props.children),f.return=c,c=f;break e}break;default:if(E.elementType===p.type){n(c,E.sibling),f=o(E,p.props),f.ref=Zn(c,E,p),f.return=c,c=f;break e}}n(c,E);break}else t(c,E);E=E.sibling}p.type===pt?(f=On(p.props.children,c.mode,y,p.key),f.return=c,c=f):(y=xo(p.type,p.key,p.props,null,c.mode,y),y.ref=Zn(c,f,p),y.return=c,c=y)}return l(c);case Ht:e:{for(E=p.key;f!==null;){if(f.key===E)if(f.tag===4&&f.stateNode.containerInfo===p.containerInfo&&f.stateNode.implementation===p.implementation){n(c,f.sibling),f=o(f,p.children||[]),f.return=c,c=f;break e}else{n(c,f);break}else t(c,f);f=f.sibling}f=al(p,c.mode,y),f.return=c,c=f}return l(c)}if(typeof p=="string"||typeof p=="number")return p=""+p,f!==null&&f.tag===6?(n(c,f.sibling),f=o(f,p),f.return=c,c=f):(n(c,f),f=sl(p,c.mode,y),f.return=c,c=f),l(c);if(oo(p))return S(c,f,p,y);if(Wn(p))return w(c,f,p,y);if(k&&io(c,p),typeof p>"u"&&!E)switch(c.tag){case 1:case 22:case 0:case 11:case 15:throw Error(T(152,wn(c.type)||"Component"))}return n(c,f)}}var Vo=Td(!0),xd=Td(!1),Gr={},Ke=Rt(Gr),Ur=Rt(Gr),Br=Rt(Gr);function Gt(e){if(e===Gr)throw Error(T(174));return e}function Hl(e,t){switch(K(Br,t),K(Ur,e),K(Ke,Gr),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pl(t,e)}H(Ke),K(Ke,t)}function An(){H(Ke),H(Ur),H(Br)}function Zu(e){Gt(Br.current);var t=Gt(Ke.current),n=Pl(t,e.type);t!==n&&(K(Ur,e),K(Ke,n))}function Js(e){Ur.current===e&&(H(Ke),H(Ur))}var G=Rt(0);function Wo(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&64)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 tt=null,gt=null,Qe=!1;function kd(e,t){var n=Oe(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,e.lastEffect!==null?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ju(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?(e.stateNode=t,!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,!0):!1;case 13:return!1;default:return!1}}function Vl(e){if(Qe){var t=gt;if(t){var n=t;if(!Ju(e,t)){if(t=Tn(n.nextSibling),!t||!Ju(e,t)){e.flags=e.flags&-1025|2,Qe=!1,tt=e;return}kd(tt,n)}tt=e,gt=Tn(t.firstChild)}else e.flags=e.flags&-1025|2,Qe=!1,tt=e}}function qu(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;tt=e}function lo(e){if(e!==tt)return!1;if(!Qe)return qu(e),Qe=!0,!1;var t=e.type;if(e.tag!==5||t!=="head"&&t!=="body"&&!zl(t,e.memoizedProps))for(t=gt;t;)kd(e,t),t=Tn(t.nextSibling);if(qu(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(T(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){gt=Tn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}gt=null}}else gt=tt?Tn(e.stateNode.nextSibling):null;return!0}function rl(){gt=tt=null,Qe=!1}var kn=[];function qs(){for(var e=0;e<kn.length;e++)kn[e]._workInProgressVersionPrimary=null;kn.length=0}var wr=rn.ReactCurrentDispatcher,Me=rn.ReactCurrentBatchConfig,jr=0,Y=null,ae=null,re=null,Go=!1,Sr=!1;function me(){throw Error(T(321))}function ea(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Le(e[n],t[n]))return!1;return!0}function ta(e,t,n,r,o,i){if(jr=i,Y=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,wr.current=e===null||e.memoizedState===null?J1:q1,e=n(r,o),Sr){i=0;do{if(Sr=!1,!(25>i))throw Error(T(301));i+=1,re=ae=null,t.updateQueue=null,wr.current=eg,e=n(r,o)}while(Sr)}if(wr.current=Xo,t=ae!==null&&ae.next!==null,jr=0,re=ae=Y=null,Go=!1,t)throw Error(T(300));return e}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return re===null?Y.memoizedState=re=e:re=re.next=e,re}function ln(){if(ae===null){var e=Y.alternate;e=e!==null?e.memoizedState:null}else e=ae.next;var t=re===null?Y.memoizedState:re.next;if(t!==null)re=t,ae=e;else{if(e===null)throw Error(T(310));ae=e,e={memoizedState:ae.memoizedState,baseState:ae.baseState,baseQueue:ae.baseQueue,queue:ae.queue,next:null},re===null?Y.memoizedState=re=e:re=re.next=e}return re}function Ve(e,t){return typeof t=="function"?t(e):t}function Jn(e){var t=ln(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=ae,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){o=o.next,r=r.baseState;var s=l=i=null,a=o;do{var u=a.lane;if((jr&u)===u)s!==null&&(s=s.next={lane:0,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null}),r=a.eagerReducer===e?a.eagerState:e(r,a.action);else{var d={lane:u,action:a.action,eagerReducer:a.eagerReducer,eagerState:a.eagerState,next:null};s===null?(l=s=d,i=r):s=s.next=d,Y.lanes|=u,Kr|=u}a=a.next}while(a!==null&&a!==o);s===null?i=r:s.next=l,Le(r,t.memoizedState)||(je=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function qn(e){var t=ln(),n=t.queue;if(n===null)throw Error(T(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);Le(i,t.memoizedState)||(je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ec(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(o!==null?e=o===r:(e=e.mutableReadLanes,(e=(jr&e)===e)&&(t._workInProgressVersionPrimary=r,kn.push(t))),e)return n(t._source);throw kn.push(t),Error(T(350))}function Pd(e,t,n,r){var o=pe;if(o===null)throw Error(T(349));var i=t._getVersion,l=i(t._source),s=wr.current,a=s.useState(function(){return ec(o,t,n)}),u=a[1],d=a[0];a=re;var g=e.memoizedState,m=g.refs,v=m.getSnapshot,S=g.source;g=g.subscribe;var w=Y;return e.memoizedState={refs:m,source:t,subscribe:r},s.useEffect(function(){m.getSnapshot=n,m.setSnapshot=u;var c=i(t._source);if(!Le(l,c)){c=n(t._source),Le(d,c)||(u(c),c=Tt(w),o.mutableReadLanes|=c&o.pendingLanes),c=o.mutableReadLanes,o.entangledLanes|=c;for(var f=o.entanglements,p=c;0<p;){var y=31-Lt(p),E=1<<y;f[y]|=c,p&=~E}}},[n,t,r]),s.useEffect(function(){return r(t._source,function(){var c=m.getSnapshot,f=m.setSnapshot;try{f(c(t._source));var p=Tt(w);o.mutableReadLanes|=p&o.pendingLanes}catch(y){f(function(){throw y})}})},[t,r]),Le(v,n)&&Le(S,t)&&Le(g,r)||(e={pending:null,dispatch:null,lastRenderedReducer:Ve,lastRenderedState:d},e.dispatch=u=oa.bind(null,Y,e),a.queue=e,a.baseQueue=null,d=ec(o,t,n),a.memoizedState=a.baseState=d),d}function Ld(e,t,n){var r=ln();return Pd(r,e,t,n)}function er(e){var t=Kt();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ve,lastRenderedState:e},e=e.dispatch=oa.bind(null,Y,e),[t.memoizedState,e]}function Ko(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Y.updateQueue,t===null?(t={lastEffect:null},Y.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 tc(e){var t=Kt();return e={current:e},t.memoizedState=e}function Qo(){return ln().memoizedState}function Wl(e,t,n,r){var o=Kt();Y.flags|=e,o.memoizedState=Ko(1|t,n,void 0,r===void 0?null:r)}function na(e,t,n,r){var o=ln();r=r===void 0?null:r;var i=void 0;if(ae!==null){var l=ae.memoizedState;if(i=l.destroy,r!==null&&ea(r,l.deps)){Ko(t,n,i,r);return}}Y.flags|=e,o.memoizedState=Ko(1|t,n,i,r)}function nc(e,t){return Wl(516,4,e,t)}function Yo(e,t){return na(516,4,e,t)}function Od(e,t){return na(4,2,e,t)}function Md(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 Nd(e,t,n){return n=n!=null?n.concat([e]):null,na(4,2,Md.bind(null,t,e),n)}function ra(){}function Rd(e,t){var n=ln();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ea(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Dd(e,t){var n=ln();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&ea(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Z1(e,t){var n=In();Jt(98>n?98:n,function(){e(!0)}),Jt(97<n?97:n,function(){var r=Me.transition;Me.transition=1;try{e(!1),t()}finally{Me.transition=r}})}function oa(e,t,n){var r=_e(),o=Tt(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},l=t.pending;if(l===null?i.next=i:(i.next=l.next,l.next=i),t.pending=i,l=e.alternate,e===Y||l!==null&&l===Y)Sr=Go=!0;else{if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var s=t.lastRenderedState,a=l(s,n);if(i.eagerReducer=l,i.eagerState=a,Le(a,s))return}catch{}finally{}xt(e,o,r)}}var Xo={readContext:Ne,useCallback:me,useContext:me,useEffect:me,useImperativeHandle:me,useLayoutEffect:me,useMemo:me,useReducer:me,useRef:me,useState:me,useDebugValue:me,useDeferredValue:me,useTransition:me,useMutableSource:me,useOpaqueIdentifier:me,unstable_isNewReconciler:!1},J1={readContext:Ne,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Ne,useEffect:nc,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Wl(4,2,Md.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Wl(4,2,e,t)},useMemo:function(e,t){var n=Kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Kt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},e=e.dispatch=oa.bind(null,Y,e),[r.memoizedState,e]},useRef:tc,useState:er,useDebugValue:ra,useDeferredValue:function(e){var t=er(e),n=t[0],r=t[1];return nc(function(){var o=Me.transition;Me.transition=1;try{r(e)}finally{Me.transition=o}},[e]),n},useTransition:function(){var e=er(!1),t=e[0];return e=Z1.bind(null,e[1]),tc(e),[e,t]},useMutableSource:function(e,t,n){var r=Kt();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},Pd(r,e,t,n)},useOpaqueIdentifier:function(){if(Qe){var e=!1,t=W1(function(){throw e||(e=!0,n("r:"+(el++).toString(36))),Error(T(355))}),n=er(t)[1];return!(Y.mode&2)&&(Y.flags|=516,Ko(5,function(){n("r:"+(el++).toString(36))},void 0,null)),t}return t="r:"+(el++).toString(36),er(t),t},unstable_isNewReconciler:!1},q1={readContext:Ne,useCallback:Rd,useContext:Ne,useEffect:Yo,useImperativeHandle:Nd,useLayoutEffect:Od,useMemo:Dd,useReducer:Jn,useRef:Qo,useState:function(){return Jn(Ve)},useDebugValue:ra,useDeferredValue:function(e){var t=Jn(Ve),n=t[0],r=t[1];return Yo(function(){var o=Me.transition;Me.transition=1;try{r(e)}finally{Me.transition=o}},[e]),n},useTransition:function(){var e=Jn(Ve)[0];return[Qo().current,e]},useMutableSource:Ld,useOpaqueIdentifier:function(){return Jn(Ve)[0]},unstable_isNewReconciler:!1},eg={readContext:Ne,useCallback:Rd,useContext:Ne,useEffect:Yo,useImperativeHandle:Nd,useLayoutEffect:Od,useMemo:Dd,useReducer:qn,useRef:Qo,useState:function(){return qn(Ve)},useDebugValue:ra,useDeferredValue:function(e){var t=qn(Ve),n=t[0],r=t[1];return Yo(function(){var o=Me.transition;Me.transition=1;try{r(e)}finally{Me.transition=o}},[e]),n},useTransition:function(){var e=qn(Ve)[0];return[Qo().current,e]},useMutableSource:Ld,useOpaqueIdentifier:function(){return qn(Ve)[0]},unstable_isNewReconciler:!1},tg=rn.ReactCurrentOwner,je=!1;function ge(e,t,n,r){t.child=e===null?xd(t,null,n,r):Vo(t,e.child,n,r)}function rc(e,t,n,r,o){n=n.render;var i=t.ref;return xn(t,o),r=ta(e,t,n,r,i,o),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,nt(e,t,o)):(t.flags|=1,ge(e,t,r,o),t.child)}function oc(e,t,n,r,o,i){if(e===null){var l=n.type;return typeof l=="function"&&!ca(l)&&l.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=l,Id(e,t,l,r,o,i)):(e=xo(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}return l=e.child,!(o&i)&&(o=l.memoizedProps,n=n.compare,n=n!==null?n:Ar,n(o,r)&&e.ref===t.ref)?nt(e,t,i):(t.flags|=1,e=Nt(l,r),e.ref=t.ref,e.return=t,t.child=e)}function Id(e,t,n,r,o,i){if(e!==null&&Ar(e.memoizedProps,r)&&e.ref===t.ref)if(je=!1,(i&o)!==0)e.flags&16384&&(je=!0);else return t.lanes=e.lanes,nt(e,t,i);return Gl(e,t,n,r,i)}function ol(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden"||r.mode==="unstable-defer-without-hiding")if(!(t.mode&4))t.memoizedState={baseLanes:0},ao(t,n);else if(n&1073741824)t.memoizedState={baseLanes:0},ao(t,i!==null?i.baseLanes:n);else return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ao(t,e),null;else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,ao(t,r);return ge(e,t,o,n),t.child}function Ad(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=128)}function Gl(e,t,n,r,o){var i=Ee(n)?Zt:fe.current;return i=Dn(t,i),xn(t,o),n=ta(e,t,n,r,i,o),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,nt(e,t,o)):(t.flags|=1,ge(e,t,n,o),t.child)}function ic(e,t,n,r,o){if(Ee(n)){var i=!0;wo(t)}else i=!1;if(xn(t,o),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),_d(t,n,r),bl(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ne(u):(u=Ee(n)?Zt:fe.current,u=Dn(t,u));var d=n.getDerivedStateFromProps,g=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function";g||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==u)&&Xu(t,l,r,u),dt=!1;var m=t.memoizedState;l.state=m,zr(t,r,l,o),a=t.memoizedState,s!==r||m!==a||ye.current||dt?(typeof d=="function"&&(Ho(t,n,d,r),a=t.memoizedState),(s=dt||Yu(t,n,s,r,m,a,u))?(g||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4)):(typeof l.componentDidMount=="function"&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=u,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4),r=!1)}else{l=t.stateNode,Sd(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:ze(t.type,s),l.props=u,g=t.pendingProps,m=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ne(a):(a=Ee(n)?Zt:fe.current,a=Dn(t,a));var v=n.getDerivedStateFromProps;(d=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==g||m!==a)&&Xu(t,l,r,a),dt=!1,m=t.memoizedState,l.state=m,zr(t,r,l,o);var S=t.memoizedState;s!==g||m!==S||ye.current||dt?(typeof v=="function"&&(Ho(t,n,v,r),S=t.memoizedState),(u=dt||Yu(t,n,u,r,m,S,a))?(d||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,S,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,S,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=256)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=S),l.props=r,l.state=S,l.context=a,r=u):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=256),r=!1)}return Kl(e,t,n,r,i,o)}function Kl(e,t,n,r,o,i){Ad(e,t);var l=(t.flags&64)!==0;if(!r&&!l)return o&&Vu(t,n,!1),nt(e,t,i);r=t.stateNode,tg.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Vo(t,e.child,null,i),t.child=Vo(t,null,s,i)):ge(e,t,s,i),t.memoizedState=r.state,o&&Vu(t,n,!0),t.child}function lc(e){var t=e.stateNode;t.pendingContext?Hu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Hu(e,t.context,!1),Hl(e,t.containerInfo)}var so={dehydrated:null,retryLane:0};function sc(e,t,n){var r=t.pendingProps,o=G.current,i=!1,l;return(l=(t.flags&64)!==0)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-65):e!==null&&e.memoizedState===null||r.fallback===void 0||r.unstable_avoidThisFallback===!0||(o|=1),K(G,o&1),e===null?(r.fallback!==void 0&&Vl(t),e=r.children,o=r.fallback,i?(e=ac(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=so,e):typeof r.unstable_expectedLoadTime=="number"?(e=ac(t,e,o,n),t.child.memoizedState={baseLanes:n},t.memoizedState=so,t.lanes=33554432,e):(n=fa({mode:"visible",children:e},t.mode,n,null),n.return=t,t.child=n)):e.memoizedState!==null?i?(r=cc(e,t,r.children,r.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=o===null?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=so,r):(n=uc(e,t,r.children,n),t.memoizedState=null,n):i?(r=cc(e,t,r.children,r.fallback,n),i=t.child,o=e.child.memoizedState,i.memoizedState=o===null?{baseLanes:n}:{baseLanes:o.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=so,r):(n=uc(e,t,r.children,n),t.memoizedState=null,n)}function ac(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},!(o&2)&&i!==null?(i.childLanes=0,i.pendingProps=t):i=fa(t,o,0,null),n=On(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function uc(e,t,n,r){var o=e.child;return e=o.sibling,n=Nt(o,{mode:"visible",children:n}),!(t.mode&2)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}function cc(e,t,n,r,o){var i=t.mode,l=e.child;e=l.sibling;var s={mode:"hidden",children:n};return!(i&2)&&t.child!==l?(n=t.child,n.childLanes=0,n.pendingProps=s,l=n.lastEffect,l!==null?(t.firstEffect=n.firstEffect,t.lastEffect=l,l.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Nt(l,s),e!==null?r=Nt(e,r):(r=On(r,i,o,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function fc(e,t){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),wd(e.return,t)}function il(e,t,n,r,o,i){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=r,l.tail=n,l.tailMode=o,l.lastEffect=i)}function dc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ge(e,t,r.children,n),r=G.current,r&2)r=r&1|2,t.flags|=64;else{if(e!==null&&e.flags&64)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&fc(e,n);else if(e.tag===19)fc(e,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(K(G,r),!(t.mode&2))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&Wo(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),il(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Wo(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}il(t,!0,n,null,i,t.lastEffect);break;case"together":il(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function nt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kr|=t.lanes,n&t.childLanes){if(e!==null&&t.child!==e.child)throw Error(T(153));if(t.child!==null){for(e=t.child,n=Nt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Nt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}return null}var $d,Ql,Fd,zd;$d=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}};Ql=function(){};Fd=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Gt(Ke.current);var i=null;switch(n){case"input":o=Sl(e,o),r=Sl(e,r),i=[];break;case"option":o=Tl(e,o),r=Tl(e,r),i=[];break;case"select":o=W({},o,{value:void 0}),r=W({},r,{value:void 0}),i=[];break;case"textarea":o=xl(e,o),r=xl(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Fo)}Ll(n,r);var l;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Lr.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var a=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&a!==s&&(a!=null||s!=null))if(u==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Lr.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&b("scroll",e),i||s===a||(i=[])):typeof a=="object"&&a!==null&&a.$$typeof===Ns?a.toString():(i=i||[]).push(u,a))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};zd=function(e,t,n,r){n!==r&&(t.flags|=4)};function tr(e,t){if(!Qe)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 ng(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return Ee(t.type)&&Uo(),null;case 3:return An(),H(ye),H(fe),qs(),r=t.stateNode,r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(lo(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Ql(t),null;case 5:Js(t);var o=Gt(Br.current);if(n=t.type,e!==null&&t.stateNode!=null)Fd(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(t.stateNode===null)throw Error(T(166));return null}if(e=Gt(Ke.current),lo(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[mt]=t,r[zo]=i,n){case"dialog":b("cancel",r),b("close",r);break;case"iframe":case"object":case"embed":b("load",r);break;case"video":case"audio":for(e=0;e<ir.length;e++)b(ir[e],r);break;case"source":b("error",r);break;case"img":case"image":case"link":b("error",r),b("load",r);break;case"details":b("toggle",r);break;case"input":du(r,i),b("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},b("invalid",r);break;case"textarea":hu(r,i),b("invalid",r)}Ll(n,i),e=null;for(var l in i)i.hasOwnProperty(l)&&(o=i[l],l==="children"?typeof o=="string"?r.textContent!==o&&(e=["children",o]):typeof o=="number"&&r.textContent!==""+o&&(e=["children",""+o]):Lr.hasOwnProperty(l)&&o!=null&&l==="onScroll"&&b("scroll",r));switch(n){case"input":eo(r),pu(r,i,!0);break;case"textarea":eo(r),mu(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Fo)}r=e,t.updateQueue=r,r!==null&&(t.flags|=4)}else{switch(l=o.nodeType===9?o:o.ownerDocument,e===kl.html&&(e=Nf(n)),e===kl.html?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[mt]=t,e[zo]=r,$d(e,t,!1,!1),t.stateNode=e,l=Ol(n,r),n){case"dialog":b("cancel",e),b("close",e),o=r;break;case"iframe":case"object":case"embed":b("load",e),o=r;break;case"video":case"audio":for(o=0;o<ir.length;o++)b(ir[o],e);o=r;break;case"source":b("error",e),o=r;break;case"img":case"image":case"link":b("error",e),b("load",e),o=r;break;case"details":b("toggle",e),o=r;break;case"input":du(e,r),o=Sl(e,r),b("invalid",e);break;case"option":o=Tl(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=W({},r,{value:void 0}),b("invalid",e);break;case"textarea":hu(e,r),o=xl(e,r),b("invalid",e);break;default:o=r}Ll(n,o);var s=o;for(i in s)if(s.hasOwnProperty(i)){var a=s[i];i==="style"?If(e,a):i==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Rf(e,a)):i==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&Or(e,a):typeof a=="number"&&Or(e,""+a):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Lr.hasOwnProperty(i)?a!=null&&i==="onScroll"&&b("scroll",e):a!=null&&xs(e,i,a,l))}switch(n){case"input":eo(e),pu(e,r,!1);break;case"textarea":eo(e),mu(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Pt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Sn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Sn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Fo)}fd(n,r)&&(t.flags|=4)}t.ref!==null&&(t.flags|=128)}return null;case 6:if(e&&t.stateNode!=null)zd(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(T(166));n=Gt(Br.current),Gt(Ke.current),lo(t)?(r=t.stateNode,n=t.memoizedProps,r[mt]=t,r.nodeValue!==n&&(t.flags|=4)):(r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[mt]=t,t.stateNode=r)}return null;case 13:return H(G),r=t.memoizedState,t.flags&64?(t.lanes=n,t):(r=r!==null,n=!1,e===null?t.memoizedProps.fallback!==void 0&&lo(t):n=e.memoizedState!==null,r&&!n&&t.mode&2&&(e===null&&t.memoizedProps.unstable_avoidThisFallback!==!0||G.current&1?ie===0&&(ie=3):((ie===0||ie===3)&&(ie=4),pe===null||!(Kr&134217727)&&!(jn&134217727)||Pn(pe,ce))),(r||n)&&(t.flags|=4),null);case 4:return An(),Ql(t),e===null&&ad(t.stateNode.containerInfo),null;case 10:return Xs(t),null;case 17:return Ee(t.type)&&Uo(),null;case 19:if(H(G),r=t.memoizedState,r===null)return null;if(i=(t.flags&64)!==0,l=r.rendering,l===null)if(i)tr(r,!1);else{if(ie!==0||e!==null&&e.flags&64)for(e=t.child;e!==null;){if(l=Wo(e),l!==null){for(t.flags|=64,tr(r,!1),i=l.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),r.lastEffect===null&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return K(G,G.current&1|2),t.child}e=e.sibling}r.tail!==null&&ue()>es&&(t.flags|=64,i=!0,tr(r,!1),t.lanes=33554432)}else{if(!i)if(e=Wo(l),e!==null){if(t.flags|=64,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),tr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!l.alternate&&!Qe)return t=t.lastEffect=r.lastEffect,t!==null&&(t.nextEffect=null),null}else 2*ue()-r.renderingStartTime>es&&n!==1073741824&&(t.flags|=64,i=!0,tr(r,!1),t.lanes=33554432);r.isBackwards?(l.sibling=t.child,t.child=l):(n=r.last,n!==null?n.sibling=l:t.child=l,r.last=l)}return r.tail!==null?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=ue(),n.sibling=null,t=G.current,K(G,i?t&1|2:t&1),n):null;case 23:case 24:return ua(),e!==null&&e.memoizedState!==null!=(t.memoizedState!==null)&&r.mode!=="unstable-defer-without-hiding"&&(t.flags|=4),null}throw Error(T(156,t.tag))}function rg(e){switch(e.tag){case 1:Ee(e.type)&&Uo();var t=e.flags;return t&4096?(e.flags=t&-4097|64,e):null;case 3:if(An(),H(ye),H(fe),qs(),t=e.flags,t&64)throw Error(T(285));return e.flags=t&-4097|64,e;case 5:return Js(e),null;case 13:return H(G),t=e.flags,t&4096?(e.flags=t&-4097|64,e):null;case 19:return H(G),null;case 4:return An(),null;case 10:return Xs(e),null;case 23:case 24:return ua(),null;default:return null}}function ia(e,t){try{var n="",r=t;do n+=Fm(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
31
|
-
Error generating stack: `+i.message+`
|
|
32
|
-
`+i.stack}return{value:e,source:t,stack:o}}function Yl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var og=typeof WeakMap=="function"?WeakMap:Map;function Ud(e,t,n){n=Ct(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jo||(Jo=!0,ts=r),Yl(e,t)},n}function Bd(e,t,n){n=Ct(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return Yl(e,t),r(o)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){typeof r!="function"&&(We===null?We=new Set([this]):We.add(this),Yl(e,t));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}var ig=typeof WeakSet=="function"?WeakSet:Set;function pc(e){var t=e.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(n){kt(e,n)}else t.current=null}function lg(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(t.flags&256&&e!==null){var n=e.memoizedProps,r=e.memoizedState;e=t.stateNode,t=e.getSnapshotBeforeUpdate(t.elementType===t.type?n:ze(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:t.flags&256&&Gs(t.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(T(163))}function sg(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{if((e.tag&3)===3){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(t=n.updateQueue,t=t!==null?t.lastEffect:null,t!==null){e=t=t.next;do{var o=e;r=o.next,o=o.tag,o&4&&o&1&&(Yd(n,e),mg(n,e)),e=r}while(e!==t)}return;case 1:e=n.stateNode,n.flags&4&&(t===null?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:ze(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),t=n.updateQueue,t!==null&&Qu(n,t,e);return;case 3:if(t=n.updateQueue,t!==null){if(e=null,n.child!==null)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}Qu(n,t,e)}return;case 5:e=n.stateNode,t===null&&n.flags&4&&fd(n.type,n.memoizedProps)&&e.focus();return;case 6:return;case 4:return;case 12:return;case 13:n.memoizedState===null&&(n=n.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&Vf(n))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(T(163))}function hc(e,t){for(var n=e;;){if(n.tag===5){var r=n.stateNode;if(t)r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=o!=null&&o.hasOwnProperty("display")?o.display:null,r.style.display=Df("display",o)}}else if(n.tag===6)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((n.tag!==23&&n.tag!==24||n.memoizedState===null||n===e)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function mc(e,t){if(Xt&&typeof Xt.onCommitFiberUnmount=="function")try{Xt.onCommitFiberUnmount(Ks,t)}catch{}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(e=t.updateQueue,e!==null&&(e=e.lastEffect,e!==null)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,o!==void 0)if(r&4)Yd(t,n);else{r=t;try{o()}catch(i){kt(r,i)}}n=n.next}while(n!==e)}break;case 1:if(pc(t),e=t.stateNode,typeof e.componentWillUnmount=="function")try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(i){kt(t,i)}break;case 5:pc(t);break;case 4:jd(e,t)}}function gc(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function vc(e){return e.tag===5||e.tag===3||e.tag===4}function yc(e){e:{for(var t=e.return;t!==null;){if(vc(t))break e;t=t.return}throw Error(T(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:t=t.containerInfo,r=!0;break;case 4:t=t.containerInfo,r=!0;break;default:throw Error(T(161))}n.flags&16&&(Or(t,""),n.flags&=-17);e:t:for(n=e;;){for(;n.sibling===null;){if(n.return===null||vc(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2)){n=n.stateNode;break e}}r?Xl(e,n,t):Zl(e,n,t)}function Xl(e,t,n){var r=e.tag,o=r===5||r===6;if(o)e=o?e.stateNode:e.stateNode.instance,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=Fo));else if(r!==4&&(e=e.child,e!==null))for(Xl(e,t,n),e=e.sibling;e!==null;)Xl(e,t,n),e=e.sibling}function Zl(e,t,n){var r=e.tag,o=r===5||r===6;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Zl(e,t,n),e=e.sibling;e!==null;)Zl(e,t,n),e=e.sibling}function jd(e,t){for(var n=t,r=!1,o,i;;){if(!r){r=n.return;e:for(;;){if(r===null)throw Error(T(160));switch(o=r.stateNode,r.tag){case 5:i=!1;break e;case 3:o=o.containerInfo,i=!0;break e;case 4:o=o.containerInfo,i=!0;break e}r=r.return}r=!0}if(n.tag===5||n.tag===6){e:for(var l=e,s=n,a=s;;)if(mc(l,a),a.child!==null&&a.tag!==4)a.child.return=a,a=a.child;else{if(a===s)break e;for(;a.sibling===null;){if(a.return===null||a.return===s)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}i?(l=o,s=n.stateNode,l.nodeType===8?l.parentNode.removeChild(s):l.removeChild(s)):o.removeChild(n.stateNode)}else if(n.tag===4){if(n.child!==null){o=n.stateNode.containerInfo,i=!0,n.child.return=n,n=n.child;continue}}else if(mc(e,n),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.tag===4&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function ll(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var r=n=n.next;do(r.tag&3)===3&&(e=r.destroy,r.destroy=void 0,e!==void 0&&e()),r=r.next;while(r!==n)}return;case 1:return;case 5:if(n=t.stateNode,n!=null){r=t.memoizedProps;var o=e!==null?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,i!==null){for(n[zo]=r,e==="input"&&r.type==="radio"&&r.name!=null&&Of(n,r),Ol(e,o),t=Ol(e,r),o=0;o<i.length;o+=2){var l=i[o],s=i[o+1];l==="style"?If(n,s):l==="dangerouslySetInnerHTML"?Rf(n,s):l==="children"?Or(n,s):xs(n,l,s,t)}switch(e){case"input":Cl(n,r);break;case"textarea":Mf(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,i=r.value,i!=null?Sn(n,!!r.multiple,i,!1):e!==!!r.multiple&&(r.defaultValue!=null?Sn(n,!!r.multiple,r.defaultValue,!0):Sn(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(t.stateNode===null)throw Error(T(162));t.stateNode.nodeValue=t.memoizedProps;return;case 3:n=t.stateNode,n.hydrate&&(n.hydrate=!1,Vf(n.containerInfo));return;case 12:return;case 13:t.memoizedState!==null&&(aa=ue(),hc(t.child,!0)),Ec(t);return;case 19:Ec(t);return;case 17:return;case 23:case 24:hc(t,t.memoizedState!==null);return}throw Error(T(163))}function Ec(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ig),t.forEach(function(r){var o=yg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ag(e,t){return e!==null&&(e=e.memoizedState,e===null||e.dehydrated!==null)?(t=t.memoizedState,t!==null&&t.dehydrated===null):!1}var ug=Math.ceil,Zo=rn.ReactCurrentDispatcher,la=rn.ReactCurrentOwner,R=0,pe=null,Z=null,ce=0,qt=0,Jl=Rt(0),ie=0,wi=null,Bn=0,Kr=0,jn=0,sa=0,ql=null,aa=0,es=1/0;function bn(){es=ue()+500}var L=null,Jo=!1,ts=null,We=null,Mt=!1,Cr=null,lr=90,ns=[],rs=[],rt=null,_r=0,os=null,Co=-1,qe=0,_o=0,Tr=null,To=!1;function _e(){return R&48?ue():Co!==-1?Co:Co=ue()}function Tt(e){if(e=e.mode,!(e&2))return 1;if(!(e&4))return In()===99?1:2;if(qe===0&&(qe=Bn),X1.transition!==0){_o!==0&&(_o=ql!==null?ql.pendingLanes:0),e=qe;var t=4186112&~_o;return t&=-t,t===0&&(e=4186112&~e,t=e&-e,t===0&&(t=8192)),t}return e=In(),R&4&&e===98?e=Ao(12,qe):(e=qm(e),e=Ao(e,qe)),e}function xt(e,t,n){if(50<_r)throw _r=0,os=null,Error(T(185));if(e=Si(e,t),e===null)return null;pi(e,t,n),e===pe&&(jn|=t,ie===4&&Pn(e,ce));var r=In();t===1?R&8&&!(R&48)?is(e):(Re(e,n),R===0&&(bn(),Ye())):(!(R&4)||r!==98&&r!==99||(rt===null?rt=new Set([e]):rt.add(e)),Re(e,n)),ql=e}function Si(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}function Re(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Lt(l),a=1<<s,u=i[s];if(u===-1){if(!(a&r)||a&o){u=t,cn(a);var d=B;i[s]=10<=d?u+250:6<=d?u+5e3:-1}}else u<=t&&(e.expiredLanes|=a);l&=~a}if(r=Dr(e,e===pe?ce:0),t=B,r===0)n!==null&&(n!==tl&&Bl(n),e.callbackNode=null,e.callbackPriority=0);else{if(n!==null){if(e.callbackPriority===t)return;n!==tl&&Bl(n)}t===15?(n=is.bind(null,e),Je===null?(Je=[n],So=Qs(yi,Ed)):Je.push(n),n=tl):t===14?n=Fr(99,is.bind(null,e)):(n=e1(t),n=Fr(n,bd.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function bd(e){if(Co=-1,_o=qe=0,R&48)throw Error(T(327));var t=e.callbackNode;if(Dt()&&e.callbackNode!==t)return null;var n=Dr(e,e===pe?ce:0);if(n===0)return null;var r=n,o=R;R|=16;var i=Gd();(pe!==e||ce!==r)&&(bn(),Ln(e,r));do try{dg();break}catch(s){Wd(e,s)}while(1);if(Ys(),Zo.current=i,R=o,Z!==null?r=0:(pe=null,ce=0,r=ie),Bn&jn)Ln(e,0);else if(r!==0){if(r===2&&(R|=64,e.hydrate&&(e.hydrate=!1,Gs(e.containerInfo)),n=Zf(e),n!==0&&(r=sr(e,n))),r===1)throw t=wi,Ln(e,0),Pn(e,n),Re(e,ue()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(T(345));case 2:Ut(e);break;case 3:if(Pn(e,n),(n&62914560)===n&&(r=aa+500-ue(),10<r)){if(Dr(e,0)!==0)break;if(o=e.suspendedLanes,(o&n)!==n){_e(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Bu(Ut.bind(null,e),r);break}Ut(e);break;case 4:if(Pn(e,n),(n&4186112)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Lt(n);i=1<<l,l=r[l],l>o&&(o=l),n&=~i}if(n=o,n=ue()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*ug(n/1960))-n,10<n){e.timeoutHandle=Bu(Ut.bind(null,e),n);break}Ut(e);break;case 5:Ut(e);break;default:throw Error(T(329))}}return Re(e,ue()),e.callbackNode===t?bd.bind(null,e):null}function Pn(e,t){for(t&=~sa,t&=~jn,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Lt(t),r=1<<n;e[n]=-1,t&=~r}}function is(e){if(R&48)throw Error(T(327));if(Dt(),e===pe&&e.expiredLanes&ce){var t=ce,n=sr(e,t);Bn&jn&&(t=Dr(e,t),n=sr(e,t))}else t=Dr(e,0),n=sr(e,t);if(e.tag!==0&&n===2&&(R|=64,e.hydrate&&(e.hydrate=!1,Gs(e.containerInfo)),t=Zf(e),t!==0&&(n=sr(e,t))),n===1)throw n=wi,Ln(e,0),Pn(e,t),Re(e,ue()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ut(e),Re(e,ue()),null}function cg(){if(rt!==null){var e=rt;rt=null,e.forEach(function(t){t.expiredLanes|=24&t.pendingLanes,Re(t,ue())})}Ye()}function Hd(e,t){var n=R;R|=1;try{return e(t)}finally{R=n,R===0&&(bn(),Ye())}}function Vd(e,t){var n=R;R&=-2,R|=8;try{return e(t)}finally{R=n,R===0&&(bn(),Ye())}}function ao(e,t){K(Jl,qt),qt|=t,Bn|=t}function ua(){qt=Jl.current,H(Jl)}function Ln(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,V1(n)),Z!==null)for(n=Z.return;n!==null;){var r=n;switch(r.tag){case 1:r=r.type.childContextTypes,r!=null&&Uo();break;case 3:An(),H(ye),H(fe),qs();break;case 5:Js(r);break;case 4:An();break;case 13:H(G);break;case 19:H(G);break;case 10:Xs(r);break;case 23:case 24:ua()}n=n.return}pe=e,Z=Nt(e.current,null),ce=qt=Bn=t,ie=0,wi=null,sa=jn=Kr=0}function Wd(e,t){do{var n=Z;try{if(Ys(),wr.current=Xo,Go){for(var r=Y.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Go=!1}if(jr=0,re=ae=Y=null,Sr=!1,la.current=null,n===null||n.return===null){ie=1,wi=t,Z=null;break}e:{var i=e,l=n.return,s=n,a=t;if(t=ce,s.flags|=2048,s.firstEffect=s.lastEffect=null,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a;if(!(s.mode&2)){var d=s.alternate;d?(s.updateQueue=d.updateQueue,s.memoizedState=d.memoizedState,s.lanes=d.lanes):(s.updateQueue=null,s.memoizedState=null)}var g=(G.current&1)!==0,m=l;do{var v;if(v=m.tag===13){var S=m.memoizedState;if(S!==null)v=S.dehydrated!==null;else{var w=m.memoizedProps;v=w.fallback===void 0?!1:w.unstable_avoidThisFallback!==!0?!0:!g}}if(v){var c=m.updateQueue;if(c===null){var f=new Set;f.add(u),m.updateQueue=f}else c.add(u);if(!(m.mode&2)){if(m.flags|=64,s.flags|=16384,s.flags&=-2981,s.tag===1)if(s.alternate===null)s.tag=17;else{var p=Ct(-1,1);p.tag=2,_t(s,p)}s.lanes|=1;break e}a=void 0,s=t;var y=i.pingCache;if(y===null?(y=i.pingCache=new og,a=new Set,y.set(u,a)):(a=y.get(u),a===void 0&&(a=new Set,y.set(u,a))),!a.has(s)){a.add(s);var E=vg.bind(null,i,u,s);u.then(E,E)}m.flags|=4096,m.lanes=t;break e}m=m.return}while(m!==null);a=Error((wn(s.type)||"A React component")+` suspended while rendering, but no fallback UI was specified.
|
|
33
|
-
|
|
34
|
-
Add a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.`)}ie!==5&&(ie=2),a=ia(a,s),m=l;do{switch(m.tag){case 3:i=a,m.flags|=4096,t&=-t,m.lanes|=t;var k=Ud(m,i,t);Ku(m,k);break e;case 1:i=a;var x=m.type,M=m.stateNode;if(!(m.flags&64)&&(typeof x.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(We===null||!We.has(M)))){m.flags|=4096,t&=-t,m.lanes|=t;var N=Bd(m,i,t);Ku(m,N);break e}}m=m.return}while(m!==null)}Qd(n)}catch(O){t=O,Z===n&&n!==null&&(Z=n=n.return);continue}break}while(1)}function Gd(){var e=Zo.current;return Zo.current=Xo,e===null?Xo:e}function sr(e,t){var n=R;R|=16;var r=Gd();pe===e&&ce===t||Ln(e,t);do try{fg();break}catch(o){Wd(e,o)}while(1);if(Ys(),R=n,Zo.current=r,Z!==null)throw Error(T(261));return pe=null,ce=0,ie}function fg(){for(;Z!==null;)Kd(Z)}function dg(){for(;Z!==null&&!K1();)Kd(Z)}function Kd(e){var t=Xd(e.alternate,e,qt);e.memoizedProps=e.pendingProps,t===null?Qd(e):Z=t,la.current=null}function Qd(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&2048){if(n=rg(t),n!==null){n.flags&=2047,Z=n;return}e!==null&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}else{if(n=ng(n,t,qt),n!==null){Z=n;return}if(n=t,n.tag!==24&&n.tag!==23||n.memoizedState===null||qt&1073741824||!(n.mode&4)){for(var r=0,o=n.child;o!==null;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}e!==null&&!(e.flags&2048)&&(e.firstEffect===null&&(e.firstEffect=t.firstEffect),t.lastEffect!==null&&(e.lastEffect!==null&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(e.lastEffect!==null?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);ie===0&&(ie=5)}function Ut(e){var t=In();return Jt(99,pg.bind(null,e,t)),null}function pg(e,t){do Dt();while(Cr!==null);if(R&48)throw Error(T(327));var n=e.finishedWork;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(T(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<i;){var a=31-Lt(i),u=1<<a;o[a]=0,l[a]=-1,s[a]=-1,i&=~u}if(rt!==null&&!(r&24)&&rt.has(e)&&rt.delete(e),e===pe&&(Z=pe=null,ce=0),1<n.flags?n.lastEffect!==null?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,r!==null){if(o=R,R|=32,la.current=null,Ji=vo,l=Du(),Al(l)){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(u=s.getSelection&&s.getSelection())&&u.rangeCount!==0){s=u.anchorNode,i=u.anchorOffset,a=u.focusNode,u=u.focusOffset;try{s.nodeType,a.nodeType}catch{s=null;break e}var d=0,g=-1,m=-1,v=0,S=0,w=l,c=null;t:for(;;){for(var f;w!==s||i!==0&&w.nodeType!==3||(g=d+i),w!==a||u!==0&&w.nodeType!==3||(m=d+u),w.nodeType===3&&(d+=w.nodeValue.length),(f=w.firstChild)!==null;)c=w,w=f;for(;;){if(w===l)break t;if(c===s&&++v===i&&(g=d),c===a&&++S===u&&(m=d),(f=w.nextSibling)!==null)break;w=c,c=w.parentNode}w=f}s=g===-1||m===-1?null:{start:g,end:m}}else s=null;s=s||{start:0,end:0}}else s=null;qi={focusedElem:l,selectionRange:s},vo=!1,Tr=null,To=!1,L=r;do try{hg()}catch(O){if(L===null)throw Error(T(330));kt(L,O),L=L.nextEffect}while(L!==null);Tr=null,L=r;do try{for(l=e;L!==null;){var p=L.flags;if(p&16&&Or(L.stateNode,""),p&128){var y=L.alternate;if(y!==null){var E=y.ref;E!==null&&(typeof E=="function"?E(null):E.current=null)}}switch(p&1038){case 2:yc(L),L.flags&=-3;break;case 6:yc(L),L.flags&=-3,ll(L.alternate,L);break;case 1024:L.flags&=-1025;break;case 1028:L.flags&=-1025,ll(L.alternate,L);break;case 4:ll(L.alternate,L);break;case 8:s=L,jd(l,s);var k=s.alternate;gc(s),k!==null&&gc(k)}L=L.nextEffect}}catch(O){if(L===null)throw Error(T(330));kt(L,O),L=L.nextEffect}while(L!==null);if(E=qi,y=Du(),p=E.focusedElem,l=E.selectionRange,y!==p&&p&&p.ownerDocument&&id(p.ownerDocument.documentElement,p)){for(l!==null&&Al(p)&&(y=l.start,E=l.end,E===void 0&&(E=y),"selectionStart"in p?(p.selectionStart=y,p.selectionEnd=Math.min(E,p.value.length)):(E=(y=p.ownerDocument||document)&&y.defaultView||window,E.getSelection&&(E=E.getSelection(),s=p.textContent.length,k=Math.min(l.start,s),l=l.end===void 0?k:Math.min(l.end,s),!E.extend&&k>l&&(s=l,l=k,k=s),s=Ru(p,k),i=Ru(p,l),s&&i&&(E.rangeCount!==1||E.anchorNode!==s.node||E.anchorOffset!==s.offset||E.focusNode!==i.node||E.focusOffset!==i.offset)&&(y=y.createRange(),y.setStart(s.node,s.offset),E.removeAllRanges(),k>l?(E.addRange(y),E.extend(i.node,i.offset)):(y.setEnd(i.node,i.offset),E.addRange(y)))))),y=[],E=p;E=E.parentNode;)E.nodeType===1&&y.push({element:E,left:E.scrollLeft,top:E.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<y.length;p++)E=y[p],E.element.scrollLeft=E.left,E.element.scrollTop=E.top}vo=!!Ji,qi=Ji=null,e.current=n,L=r;do try{for(p=e;L!==null;){var x=L.flags;if(x&36&&sg(p,L.alternate,L),x&128){y=void 0;var M=L.ref;if(M!==null){var N=L.stateNode;switch(L.tag){case 5:y=N;break;default:y=N}typeof M=="function"?M(y):M.current=y}}L=L.nextEffect}}catch(O){if(L===null)throw Error(T(330));kt(L,O),L=L.nextEffect}while(L!==null);L=null,Y1(),R=o}else e.current=n;if(Mt)Mt=!1,Cr=e,lr=t;else for(L=r;L!==null;)t=L.nextEffect,L.nextEffect=null,L.flags&8&&(x=L,x.sibling=null,x.stateNode=null),L=t;if(r=e.pendingLanes,r===0&&(We=null),r===1?e===os?_r++:(_r=0,os=e):_r=0,n=n.stateNode,Xt&&typeof Xt.onCommitFiberRoot=="function")try{Xt.onCommitFiberRoot(Ks,n,void 0,(n.current.flags&64)===64)}catch{}if(Re(e,ue()),Jo)throw Jo=!1,e=ts,ts=null,e;return R&8||Ye(),null}function hg(){for(;L!==null;){var e=L.alternate;To||Tr===null||(L.flags&8?yu(L,Tr)&&(To=!0):L.tag===13&&ag(e,L)&&yu(L,Tr)&&(To=!0));var t=L.flags;t&256&&lg(e,L),!(t&512)||Mt||(Mt=!0,Fr(97,function(){return Dt(),null})),L=L.nextEffect}}function Dt(){if(lr!==90){var e=97<lr?97:lr;return lr=90,Jt(e,gg)}return!1}function mg(e,t){ns.push(t,e),Mt||(Mt=!0,Fr(97,function(){return Dt(),null}))}function Yd(e,t){rs.push(t,e),Mt||(Mt=!0,Fr(97,function(){return Dt(),null}))}function gg(){if(Cr===null)return!1;var e=Cr;if(Cr=null,R&48)throw Error(T(331));var t=R;R|=32;var n=rs;rs=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],l=o.destroy;if(o.destroy=void 0,typeof l=="function")try{l()}catch(a){if(i===null)throw Error(T(330));kt(i,a)}}for(n=ns,ns=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var s=o.create;o.destroy=s()}catch(a){if(i===null)throw Error(T(330));kt(i,a)}}for(s=e.current.firstEffect;s!==null;)e=s.nextEffect,s.nextEffect=null,s.flags&8&&(s.sibling=null,s.stateNode=null),s=e;return R=t,Ye(),!0}function wc(e,t,n){t=ia(n,t),t=Ud(e,t,1),_t(e,t),t=_e(),e=Si(e,1),e!==null&&(pi(e,1,t),Re(e,t))}function kt(e,t){if(e.tag===3)wc(e,e,t);else for(var n=e.return;n!==null;){if(n.tag===3){wc(n,e,t);break}else if(n.tag===1){var r=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(We===null||!We.has(r))){e=ia(t,e);var o=Bd(n,e,1);if(_t(n,o),o=_e(),n=Si(n,1),n!==null)pi(n,1,o),Re(n,o);else if(typeof r.componentDidCatch=="function"&&(We===null||!We.has(r)))try{r.componentDidCatch(t,e)}catch{}break}}n=n.return}}function vg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=_e(),e.pingedLanes|=e.suspendedLanes&n,pe===e&&(ce&n)===n&&(ie===4||ie===3&&(ce&62914560)===ce&&500>ue()-aa?Ln(e,0):sa|=n),Re(e,t)}function yg(e,t){var n=e.stateNode;n!==null&&n.delete(t),t=0,t===0&&(t=e.mode,t&2?t&4?(qe===0&&(qe=Bn),t=fn(62914560&~qe),t===0&&(t=4194304)):t=In()===99?1:2:t=1),n=_e(),e=Si(e,t),e!==null&&(pi(e,t,n),Re(e,n))}var Xd;Xd=function(e,t,n){var r=t.lanes;if(e!==null)if(e.memoizedProps!==t.pendingProps||ye.current)je=!0;else if(n&r)je=!!(e.flags&16384);else{switch(je=!1,t.tag){case 3:lc(t),rl();break;case 5:Zu(t);break;case 1:Ee(t.type)&&wo(t);break;case 4:Hl(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;K(Bo,o._currentValue),o._currentValue=r;break;case 13:if(t.memoizedState!==null)return n&t.child.childLanes?sc(e,t,n):(K(G,G.current&1),t=nt(e,t,n),t!==null?t.sibling:null);K(G,G.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&64){if(r)return dc(e,t,n);t.flags|=64}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(G,G.current),r)break;return null;case 23:case 24:return t.lanes=0,ol(e,t,n)}return nt(e,t,n)}else je=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=Dn(t,fe.current),xn(t,n),o=ta(null,t,r,e,o,n),t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ee(r)){var i=!0;wo(t)}else i=!1;t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Zs(t);var l=r.getDerivedStateFromProps;typeof l=="function"&&Ho(t,r,l,e),o.updater=Ei,t.stateNode=o,o._reactInternals=t,bl(t,r,e,n),t=Kl(null,t,r,!0,i,n)}else t.tag=0,ge(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=o._init,o=i(o._payload),t.type=o,i=t.tag=wg(o),e=ze(o,e),i){case 0:t=Gl(null,t,o,e,n);break e;case 1:t=ic(null,t,o,e,n);break e;case 11:t=rc(null,t,o,e,n);break e;case 14:t=oc(null,t,o,ze(o.type,e),r,n);break e}throw Error(T(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ze(r,o),Gl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ze(r,o),ic(e,t,r,o,n);case 3:if(lc(t),r=t.updateQueue,e===null||r===null)throw Error(T(282));if(r=t.pendingProps,o=t.memoizedState,o=o!==null?o.element:null,Sd(e,t),zr(t,r,null,n),r=t.memoizedState.element,r===o)rl(),t=nt(e,t,n);else{if(o=t.stateNode,(i=o.hydrate)&&(gt=Tn(t.stateNode.containerInfo.firstChild),tt=t,i=Qe=!0),i){if(e=o.mutableSourceEagerHydrationData,e!=null)for(o=0;o<e.length;o+=2)i=e[o],i._workInProgressVersionPrimary=e[o+1],kn.push(i);for(n=xd(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|1024,n=n.sibling}else ge(e,t,r,n),rl();t=t.child}return t;case 5:return Zu(t),e===null&&Vl(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,zl(r,o)?l=null:i!==null&&zl(r,i)&&(t.flags|=16),Ad(e,t),ge(e,t,l,n),t.child;case 6:return e===null&&Vl(t),null;case 13:return sc(e,t,n);case 4:return Hl(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vo(t,null,r,n):ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ze(r,o),rc(e,t,r,o,n);case 7:return ge(e,t,t.pendingProps,n),t.child;case 8:return ge(e,t,t.pendingProps.children,n),t.child;case 12:return ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value;var s=t.type._context;if(K(Bo,s._currentValue),s._currentValue=i,l!==null)if(s=l.value,i=Le(s,i)?0:(typeof r._calculateChangedBits=="function"?r._calculateChangedBits(s,i):1073741823)|0,i===0){if(l.children===o.children&&!ye.current){t=nt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var a=s.dependencies;if(a!==null){l=s.child;for(var u=a.firstContext;u!==null;){if(u.context===r&&u.observedBits&i){s.tag===1&&(u=Ct(-1,n&-n),u.tag=2,_t(s,u)),s.lanes|=n,u=s.alternate,u!==null&&(u.lanes|=n),wd(s.return,n),a.lanes|=n;break}u=u.next}}else l=s.tag===10&&s.type===t.type?null:s.child;if(l!==null)l.return=s;else for(l=s;l!==null;){if(l===t){l=null;break}if(s=l.sibling,s!==null){s.return=l.return,l=s;break}l=l.return}s=l}ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,i=t.pendingProps,r=i.children,xn(t,n),o=Ne(o,i.unstable_observedBits),r=r(o),t.flags|=1,ge(e,t,r,n),t.child;case 14:return o=t.type,i=ze(o,t.pendingProps),i=ze(o.type,i),oc(e,t,o,i,r,n);case 15:return Id(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ze(r,o),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Ee(r)?(e=!0,wo(t)):e=!1,xn(t,n),_d(t,r,o),bl(t,r,o,n),Kl(null,t,r,!0,e,n);case 19:return dc(e,t,n);case 23:return ol(e,t,n);case 24:return ol(e,t,n)}throw Error(T(156,t.tag))};function Eg(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.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Oe(e,t,n,r){return new Eg(e,t,n,r)}function ca(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wg(e){if(typeof e=="function")return ca(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ci)return 11;if(e===fi)return 14}return 2}function Nt(e,t){var n=e.alternate;return n===null?(n=Oe(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.nextEffect=null,n.firstEffect=null,n.lastEffect=null),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 xo(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")ca(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case pt:return On(n.children,o,i,t);case kf:l=8,o|=16;break;case ks:l=8,o|=1;break;case pr:return e=Oe(12,n,t,o|8),e.elementType=pr,e.type=pr,e.lanes=i,e;case hr:return e=Oe(13,n,t,o),e.type=hr,e.elementType=hr,e.lanes=i,e;case No:return e=Oe(19,n,t,o),e.elementType=No,e.lanes=i,e;case Rs:return fa(n,o,i,t);case wl:return e=Oe(24,n,t,o),e.elementType=wl,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ps:l=10;break e;case Ls:l=9;break e;case ci:l=11;break e;case fi:l=14;break e;case Os:l=16,r=null;break e;case Ms:l=22;break e}throw Error(T(130,e==null?e:typeof e,""))}return t=Oe(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function On(e,t,n,r){return e=Oe(7,e,r,t),e.lanes=n,e}function fa(e,t,n,r){return e=Oe(23,e,r,t),e.elementType=Rs,e.lanes=n,e}function sl(e,t,n){return e=Oe(6,e,null,t),e.lanes=n,e}function al(e,t,n){return t=Oe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sg(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Wi(0),this.expirationTimes=Wi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wi(0),this.mutableSourceEagerHydrationData=null}function Cg(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ht,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function qo(e,t,n,r){var o=t.current,i=_e(),l=Tt(o);e:if(n){n=n._reactInternals;t:{if(on(n)!==n||n.tag!==1)throw Error(T(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(Ee(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(s!==null);throw Error(T(171))}if(n.tag===1){var a=n.type;if(Ee(a)){n=pd(n,a,s);break e}}n=s}else n=Ot;return t.context===null?t.context=n:t.pendingContext=n,t=Ct(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),_t(o,t),xt(o,l,i),l}function ul(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 Sc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function da(e,t){Sc(e,t),(e=e.alternate)&&Sc(e,t)}function _g(){return null}function pa(e,t,n){var r=n!=null&&n.hydrationOptions!=null&&n.hydrationOptions.mutableSources||null;if(n=new Sg(e,t,n!=null&&n.hydrate===!0),t=Oe(3,null,null,t===2?7:t===1?3:0),n.current=t,t.stateNode=n,Zs(t),e[Un]=n.current,ad(e.nodeType===8?e.parentNode:e),r)for(e=0;e<r.length;e++){t=r[e];var o=t._getVersion;o=o(t._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}pa.prototype.render=function(e){qo(e,this._internalRoot,null,null)};pa.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;qo(null,e,null,function(){t[Un]=null})};function Qr(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Tg(e,t){if(t||(t=e?e.nodeType===9?e.documentElement:e.firstChild:null,t=!(!t||t.nodeType!==1||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new pa(e,0,t?{hydrate:!0}:void 0)}function Ci(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i._internalRoot;if(typeof o=="function"){var s=o;o=function(){var u=ul(l);s.call(u)}}qo(t,l,e,o)}else{if(i=n._reactRootContainer=Tg(n,r),l=i._internalRoot,typeof o=="function"){var a=o;o=function(){var u=ul(l);a.call(u)}}Vd(function(){qo(t,l,e,o)})}return ul(l)}jf=function(e){if(e.tag===13){var t=_e();xt(e,4,t),da(e,4)}};Fs=function(e){if(e.tag===13){var t=_e();xt(e,67108864,t),da(e,67108864)}};bf=function(e){if(e.tag===13){var t=_e(),n=Tt(e);xt(e,n,t),da(e,n)}};Hf=function(e,t){return t()};Ml=function(e,t,n){switch(t){case"input":if(Cl(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 r=n[t];if(r!==e&&r.form===e.form){var o=vi(r);if(!o)throw Error(T(90));Lf(r),Cl(r,o)}}}break;case"textarea":Mf(e,n);break;case"select":t=n.value,t!=null&&Sn(e,!!n.multiple,t,!1)}};Is=Hd;Ff=function(e,t,n,r,o){var i=R;R|=4;try{return Jt(98,e.bind(null,t,n,r,o))}finally{R=i,R===0&&(bn(),Ye())}};As=function(){!(R&49)&&(cg(),Dt())};zf=function(e,t){var n=R;R|=2;try{return e(t)}finally{R=n,R===0&&(bn(),Ye())}};function Zd(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qr(t))throw Error(T(200));return Cg(e,t,null,n)}var xg={Events:[Wr,vn,vi,Af,$f,Dt,{current:!1}]},nr={findFiberByHostInstance:Wt,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},kg={bundleType:nr.bundleType,version:nr.version,rendererPackageName:nr.rendererPackageName,rendererConfig:nr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:rn.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Bf(e),e===null?null:e.stateNode},findFiberByHostInstance:nr.findFiberByHostInstance||_g,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uo.isDisabled&&uo.supportsFiber)try{Ks=uo.inject(kg),Xt=uo}catch{}}Ie.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=xg;Ie.createPortal=Zd;Ie.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(T(188)):Error(T(268,Object.keys(e)));return e=Bf(t),e=e===null?null:e.stateNode,e};Ie.flushSync=function(e,t){var n=R;if(n&48)return e(t);R|=1;try{if(e)return Jt(99,e.bind(null,t))}finally{R=n,Ye()}};Ie.hydrate=function(e,t,n){if(!Qr(t))throw Error(T(200));return Ci(null,e,t,!0,n)};Ie.render=function(e,t,n){if(!Qr(t))throw Error(T(200));return Ci(null,e,t,!1,n)};Ie.unmountComponentAtNode=function(e){if(!Qr(e))throw Error(T(40));return e._reactRootContainer?(Vd(function(){Ci(null,null,e,!1,function(){e._reactRootContainer=null,e[Un]=null})}),!0):!1};Ie.unstable_batchedUpdates=Hd;Ie.unstable_createPortal=function(e,t){return Zd(e,t,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)};Ie.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Qr(n))throw Error(T(200));if(e==null||e._reactInternals===void 0)throw Error(T(38));return Ci(e,t,n,!1,r)};Ie.version="17.0.2";function Jd(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Jd)}catch(e){console.error(e)}}Jd(),Cf.exports=Ie;var qd=Cf.exports;const ar=si(qd);/**
|
|
35
|
-
* @remix-run/router v1.16.0
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Remix Software Inc.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
41
|
-
*
|
|
42
|
-
* @license MIT
|
|
43
|
-
*/function ei(){return ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ei.apply(this,arguments)}var vt;(function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"})(vt||(vt={}));const Cc="popstate";function Pg(e){e===void 0&&(e={});function t(r,o){let{pathname:i,search:l,hash:s}=r.location;return ls("",{pathname:i,search:l,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:tp(o)}return Og(t,n,null,e)}function we(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ep(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Lg(){return Math.random().toString(36).substr(2,8)}function _c(e,t){return{usr:e.state,key:e.key,idx:t}}function ls(e,t,n,r){return n===void 0&&(n=null),ei({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?_i(t):t,{state:n,key:t&&t.key||r||Lg()})}function tp(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function _i(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Og(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,l=o.history,s=vt.Pop,a=null,u=d();u==null&&(u=0,l.replaceState(ei({},l.state,{idx:u}),""));function d(){return(l.state||{idx:null}).idx}function g(){s=vt.Pop;let c=d(),f=c==null?null:c-u;u=c,a&&a({action:s,location:w.location,delta:f})}function m(c,f){s=vt.Push;let p=ls(w.location,c,f);n&&n(p,c),u=d()+1;let y=_c(p,u),E=w.createHref(p);try{l.pushState(y,"",E)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;o.location.assign(E)}i&&a&&a({action:s,location:w.location,delta:1})}function v(c,f){s=vt.Replace;let p=ls(w.location,c,f);n&&n(p,c),u=d();let y=_c(p,u),E=w.createHref(p);l.replaceState(y,"",E),i&&a&&a({action:s,location:w.location,delta:0})}function S(c){let f=o.location.origin!=="null"?o.location.origin:o.location.href,p=typeof c=="string"?c:tp(c);return p=p.replace(/ $/,"%20"),we(f,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,f)}let w={get action(){return s},get location(){return e(o,l)},listen(c){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(Cc,g),a=c,()=>{o.removeEventListener(Cc,g),a=null}},createHref(c){return t(o,c)},createURL:S,encodeLocation(c){let f=S(c);return{pathname:f.pathname,search:f.search,hash:f.hash}},push:m,replace:v,go(c){return l.go(c)}};return w}var Tc;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Tc||(Tc={}));function Mg(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?_i(t):t,o=op(r.pathname||"/",n);if(o==null)return null;let i=np(e);Ng(i);let l=null;for(let s=0;l==null&&s<i.length;++s){let a=Hg(o);l=Bg(i[s],a)}return l}function np(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r="");let o=(i,l,s)=>{let a={relativePath:s===void 0?i.path||"":s,caseSensitive:i.caseSensitive===!0,childrenIndex:l,route:i};a.relativePath.startsWith("/")&&(we(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Mn([r,a.relativePath]),d=n.concat(a);i.children&&i.children.length>0&&(we(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),np(i.children,t,d,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:zg(u,i.index),routesMeta:d})};return e.forEach((i,l)=>{var s;if(i.path===""||!((s=i.path)!=null&&s.includes("?")))o(i,l);else for(let a of rp(i.path))o(i,l,a)}),t}function rp(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let l=rp(r.join("/")),s=[];return s.push(...l.map(a=>a===""?i:[i,a].join("/"))),o&&s.push(...l),s.map(a=>e.startsWith("/")&&a===""?"/":a)}function Ng(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Ug(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const Rg=/^:[\w-]+$/,Dg=3,Ig=2,Ag=1,$g=10,Fg=-2,xc=e=>e==="*";function zg(e,t){let n=e.split("/"),r=n.length;return n.some(xc)&&(r+=Fg),t&&(r+=Ig),n.filter(o=>!xc(o)).reduce((o,i)=>o+(Rg.test(i)?Dg:i===""?Ag:$g),r)}function Ug(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function Bg(e,t){let{routesMeta:n}=e,r={},o="/",i=[];for(let l=0;l<n.length;++l){let s=n[l],a=l===n.length-1,u=o==="/"?t:t.slice(o.length)||"/",d=jg({path:s.relativePath,caseSensitive:s.caseSensitive,end:a},u);if(!d)return null;Object.assign(r,d.params);let g=s.route;i.push({params:r,pathname:Mn([o,d.pathname]),pathnameBase:Vg(Mn([o,d.pathnameBase])),route:g}),d.pathnameBase!=="/"&&(o=Mn([o,d.pathnameBase]))}return i}function jg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=bg(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],l=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,d,g)=>{let{paramName:m,isOptional:v}=d;if(m==="*"){let w=s[g]||"";l=i.slice(0,i.length-w.length).replace(/(.)\/+$/,"$1")}const S=s[g];return v&&!S?u[m]=void 0:u[m]=(S||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:l,pattern:e}}function bg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),ep(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,s,a)=>(r.push({paramName:s,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function Hg(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return ep(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function op(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Mn=e=>e.join("/").replace(/\/\/+/g,"/"),Vg=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/");function Wg(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ip=["post","put","patch","delete"];new Set(ip);const Gg=["get",...ip];new Set(Gg);/**
|
|
44
|
-
* React Router v6.23.0
|
|
45
|
-
*
|
|
46
|
-
* Copyright (c) Remix Software Inc.
|
|
47
|
-
*
|
|
48
|
-
* This source code is licensed under the MIT license found in the
|
|
49
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
50
|
-
*
|
|
51
|
-
* @license MIT
|
|
52
|
-
*/function ti(){return ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ti.apply(this,arguments)}const Kg=C.createContext(null),Qg=C.createContext(null),lp=C.createContext(null),Ti=C.createContext(null),xi=C.createContext({outlet:null,matches:[],isDataRoute:!1}),sp=C.createContext(null);function ha(){return C.useContext(Ti)!=null}function Yg(){return ha()||we(!1),C.useContext(Ti).location}function Xg(e,t){return Zg(e,t)}function Zg(e,t,n,r){ha()||we(!1);let{navigator:o}=C.useContext(lp),{matches:i}=C.useContext(xi),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let a=l?l.pathnameBase:"/";l&&l.route;let u=Yg(),d;if(t){var g;let c=typeof t=="string"?_i(t):t;a==="/"||(g=c.pathname)!=null&&g.startsWith(a)||we(!1),d=c}else d=u;let m=d.pathname||"/",v=m;if(a!=="/"){let c=a.replace(/^\//,"").split("/");v="/"+m.replace(/^\//,"").split("/").slice(c.length).join("/")}let S=Mg(e,{pathname:v}),w=n0(S&&S.map(c=>Object.assign({},c,{params:Object.assign({},s,c.params),pathname:Mn([a,o.encodeLocation?o.encodeLocation(c.pathname).pathname:c.pathname]),pathnameBase:c.pathnameBase==="/"?a:Mn([a,o.encodeLocation?o.encodeLocation(c.pathnameBase).pathname:c.pathnameBase])})),i,n,r);return t&&w?C.createElement(Ti.Provider,{value:{location:ti({pathname:"/",search:"",hash:"",state:null,key:"default"},d),navigationType:vt.Pop}},w):w}function Jg(){let e=l0(),t=Wg(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},i=null;return C.createElement(C.Fragment,null,C.createElement("h2",null,"Unexpected Application Error!"),C.createElement("h3",{style:{fontStyle:"italic"}},t),n?C.createElement("pre",{style:o},n):null,i)}const qg=C.createElement(Jg,null);class e0 extends C.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?C.createElement(xi.Provider,{value:this.props.routeContext},C.createElement(sp.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function t0(e){let{routeContext:t,match:n,children:r}=e,o=C.useContext(Kg);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),C.createElement(xi.Provider,{value:t},r)}function n0(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if((i=n)!=null&&i.errors)e=n.matches;else return null}let l=e,s=(o=n)==null?void 0:o.errors;if(s!=null){let d=l.findIndex(g=>g.route.id&&(s==null?void 0:s[g.route.id])!==void 0);d>=0||we(!1),l=l.slice(0,Math.min(l.length,d+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d<l.length;d++){let g=l[d];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(u=d),g.route.id){let{loaderData:m,errors:v}=n,S=g.route.loader&&m[g.route.id]===void 0&&(!v||v[g.route.id]===void 0);if(g.route.lazy||S){a=!0,u>=0?l=l.slice(0,u+1):l=[l[0]];break}}}return l.reduceRight((d,g,m)=>{let v,S=!1,w=null,c=null;n&&(v=s&&g.route.id?s[g.route.id]:void 0,w=g.route.errorElement||qg,a&&(u<0&&m===0?(s0("route-fallback",!1),S=!0,c=null):u===m&&(S=!0,c=g.route.hydrateFallbackElement||null)));let f=t.concat(l.slice(0,m+1)),p=()=>{let y;return v?y=w:S?y=c:g.route.Component?y=C.createElement(g.route.Component,null):g.route.element?y=g.route.element:y=d,C.createElement(t0,{match:g,routeContext:{outlet:d,matches:f,isDataRoute:n!=null},children:y})};return n&&(g.route.ErrorBoundary||g.route.errorElement||m===0)?C.createElement(e0,{location:n.location,revalidation:n.revalidation,component:w,error:v,children:p(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):p()},null)}var ss=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(ss||{});function r0(e){let t=C.useContext(Qg);return t||we(!1),t}function o0(e){let t=C.useContext(xi);return t||we(!1),t}function i0(e){let t=o0(),n=t.matches[t.matches.length-1];return n.route.id||we(!1),n.route.id}function l0(){var e;let t=C.useContext(sp),n=r0(ss.UseRouteError),r=i0(ss.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}const kc={};function s0(e,t,n){!t&&!kc[e]&&(kc[e]=!0)}function ap(e){we(!1)}function a0(e){let{basename:t="/",children:n=null,location:r,navigationType:o=vt.Pop,navigator:i,static:l=!1,future:s}=e;ha()&&we(!1);let a=t.replace(/^\/*/,"/"),u=C.useMemo(()=>({basename:a,navigator:i,static:l,future:ti({v7_relativeSplatPath:!1},s)}),[a,s,i,l]);typeof r=="string"&&(r=_i(r));let{pathname:d="/",search:g="",hash:m="",state:v=null,key:S="default"}=r,w=C.useMemo(()=>{let c=op(d,a);return c==null?null:{location:{pathname:c,search:g,hash:m,state:v,key:S},navigationType:o}},[a,d,g,m,v,S,o]);return w==null?null:C.createElement(lp.Provider,{value:u},C.createElement(Ti.Provider,{children:n,value:w}))}function u0(e){let{children:t,location:n}=e;return Xg(as(t),n)}new Promise(()=>{});function as(e,t){t===void 0&&(t=[]);let n=[];return C.Children.forEach(e,(r,o)=>{if(!C.isValidElement(r))return;let i=[...t,o];if(r.type===C.Fragment){n.push.apply(n,as(r.props.children,i));return}r.type!==ap&&we(!1),!r.props.index||!r.props.children||we(!1);let l={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=as(r.props.children,i)),n.push(l)}),n}/**
|
|
53
|
-
* React Router DOM v6.23.0
|
|
54
|
-
*
|
|
55
|
-
* Copyright (c) Remix Software Inc.
|
|
56
|
-
*
|
|
57
|
-
* This source code is licensed under the MIT license found in the
|
|
58
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
59
|
-
*
|
|
60
|
-
* @license MIT
|
|
61
|
-
*/const c0="6";try{window.__reactRouterVersion=c0}catch{}const f0="startTransition",Pc=rh[f0];function d0(e){let{basename:t,children:n,future:r,window:o}=e,i=C.useRef();i.current==null&&(i.current=Pg({window:o,v5Compat:!0}));let l=i.current,[s,a]=C.useState({action:l.action,location:l.location}),{v7_startTransition:u}=r||{},d=C.useCallback(g=>{u&&Pc?Pc(()=>a(g)):a(g)},[a,u]);return C.useLayoutEffect(()=>l.listen(d),[l,d]),C.createElement(a0,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:l,future:r})}var Lc;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Lc||(Lc={}));var Oc;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Oc||(Oc={}));const p0="_Intro_q1kxd_1",h0="_ExtensionList_q1kxd_9";const m0="_Empty_q1kxd_29";const g0="_Title_mda4k_1";const v0="View mobile",y0={viewMobile:v0};function ma(){const e=Hr(),t=e.state.store,n=e.state.app;return C.useMemo(()=>({store:t,app:n}),[JSON.stringify(n),t])}function up(){const t=Hr().client.options;return C.useMemo(()=>t,[JSON.stringify(t)])}const E0="_Button_s4bwx_1",w0="_WithIcon_s4bwx_12",S0="_Icon_s4bwx_15";const C0="_Icon_dakzz_1",_0="_Muted_dakzz_18",cl={Icon:C0,Muted:_0},T0="_VisuallyHidden_1p9uv_1",x0={VisuallyHidden:T0};function k0({children:e}){return h.createElement("span",{className:x0.VisuallyHidden},e)}function Ce(...e){return e.filter(Boolean).join(" ")}function cp({source:e,accessibilityLabel:t,muted:n=!1}){const r=e;return h.createElement(h.Fragment,null,h.createElement(k0,null,t),h.createElement("span",{className:cl.Icon},h.createElement(r,{className:Ce(cl.Svg,n&&cl.Muted),focusable:"false","aria-hidden":"true"})))}function ga({className:e,selected:t,icon:n,children:r,...o}){const i=n?h.createElement("span",{className:S0},h.createElement(cp,{source:n.source})):null;return h.createElement("button",{...o,className:Ce(n&&w0,E0,e),"aria-pressed":t},n&&n.position==="left"&&i,h.createElement("span",null,r),n&&n.position==="right"&&i)}const P0="_IconButton_wwtfg_1",L0="_Icon_wwtfg_1";function ki({className:e,selected:t,source:n,accessibilityLabel:r,...o}){return h.createElement("button",{...o,className:Ce(e,P0),"aria-pressed":t},h.createElement("span",{className:L0},h.createElement(cp,{source:n,accessibilityLabel:r})))}const O0="_Backdrop_1yvdu_9",M0="_opacity_1yvdu_1",N0={Backdrop:O0,opacity:M0};function R0({onClick:e,setClosing:t}){const n=()=>{t(!0)},r=()=>{t(!1),e()};return h.createElement(h.Fragment,null,h.createElement("div",{className:N0.Backdrop,onClick:e,onMouseDown:n,onMouseUp:r}))}const D0="Close modal",I0={close:D0};function A0({pressed:e,onClick:t}){const[n]=De({id:"ModalCloseButton",fallback:I0});return h.createElement(ki,{source:Sf,type:"button",onClick:t,selected:e,accessibilityLabel:n.translate("close")})}const $0="_Container_rwtbo_1",F0="_Dialog_rwtbo_14",z0="_Modal_rwtbo_18",U0="_animateFadeUp_rwtbo_40",B0="_entering_rwtbo_46",j0="_exiting_rwtbo_46",b0="_exited_rwtbo_46",H0="_entered_rwtbo_50",se={Container:$0,Dialog:F0,Modal:z0,"Width-large":"_Width-large_rwtbo_33","Width-small":"_Width-small_rwtbo_36",animateFadeUp:U0,entering:B0,exiting:j0,exited:b0,entered:H0};function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ni.apply(this,arguments)}function va(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function us(e,t){return us=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,o){return r.__proto__=o,r},us(e,t)}function ya(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,us(e,t)}function V0(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function W0(e,t){e.classList?e.classList.add(t):V0(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Mc(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function G0(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Mc(e.className,t):e.setAttribute("class",Mc(e.className&&e.className.baseVal||"",t))}const Nc={disabled:!1},ri=h.createContext(null);var fp=function(t){return t.scrollTop},ur="unmounted",Bt="exited",jt="entering",dn="entered",cs="exiting",st=function(e){ya(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var l=o,s=l&&!l.isMounting?r.enter:r.appear,a;return i.appearStatus=null,r.in?s?(a=Bt,i.appearStatus=jt):a=dn:r.unmountOnExit||r.mountOnEnter?a=ur:a=Bt,i.state={status:a},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var l=o.in;return l&&i.status===ur?{status:Bt}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==jt&&l!==dn&&(i=jt):(l===jt||l===dn)&&(i=cs)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,l,s;return i=l=s=o,o!=null&&typeof o!="number"&&(i=o.exit,l=o.enter,s=o.appear!==void 0?o.appear:l),{exit:i,enter:l,appear:s}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===jt){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:ar.findDOMNode(this);l&&fp(l)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bt&&this.setState({status:ur})},n.performEnter=function(o){var i=this,l=this.props.enter,s=this.context?this.context.isMounting:o,a=this.props.nodeRef?[s]:[ar.findDOMNode(this),s],u=a[0],d=a[1],g=this.getTimeouts(),m=s?g.appear:g.enter;if(!o&&!l||Nc.disabled){this.safeSetState({status:dn},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:jt},function(){i.props.onEntering(u,d),i.onTransitionEnd(m,function(){i.safeSetState({status:dn},function(){i.props.onEntered(u,d)})})})},n.performExit=function(){var o=this,i=this.props.exit,l=this.getTimeouts(),s=this.props.nodeRef?void 0:ar.findDOMNode(this);if(!i||Nc.disabled){this.safeSetState({status:Bt},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:cs},function(){o.props.onExiting(s),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:Bt},function(){o.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,l=!0;return this.nextCallback=function(s){l&&(l=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var l=this.props.nodeRef?this.props.nodeRef.current:ar.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!l||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],u=a[0],d=a[1];this.props.addEndListener(u,d)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===ur)return null;var i=this.props,l=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=va(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return h.createElement(ri.Provider,{value:null},typeof l=="function"?l(o,s):h.cloneElement(h.Children.only(l),s))},t}(h.Component);st.contextType=ri;st.propTypes={};function un(){}st.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:un,onEntering:un,onEntered:un,onExit:un,onExiting:un,onExited:un};st.UNMOUNTED=ur;st.EXITED=Bt;st.ENTERING=jt;st.ENTERED=dn;st.EXITING=cs;const K0=st;var Q0=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return W0(t,r)})},fl=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return G0(t,r)})},Ea=function(e){ya(t,e);function t(){for(var r,o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=e.call.apply(e,[this].concat(i))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(s,a){var u=r.resolveArguments(s,a),d=u[0],g=u[1];r.removeClasses(d,"exit"),r.addClass(d,g?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(s,a)},r.onEntering=function(s,a){var u=r.resolveArguments(s,a),d=u[0],g=u[1],m=g?"appear":"enter";r.addClass(d,m,"active"),r.props.onEntering&&r.props.onEntering(s,a)},r.onEntered=function(s,a){var u=r.resolveArguments(s,a),d=u[0],g=u[1],m=g?"appear":"enter";r.removeClasses(d,m),r.addClass(d,m,"done"),r.props.onEntered&&r.props.onEntered(s,a)},r.onExit=function(s){var a=r.resolveArguments(s),u=a[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(s)},r.onExiting=function(s){var a=r.resolveArguments(s),u=a[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(s)},r.onExited=function(s){var a=r.resolveArguments(s),u=a[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(s)},r.resolveArguments=function(s,a){return r.props.nodeRef?[r.props.nodeRef.current,s]:[s,a]},r.getClassNames=function(s){var a=r.props.classNames,u=typeof a=="string",d=u&&a?a+"-":"",g=u?""+d+s:a[s],m=u?g+"-active":a[s+"Active"],v=u?g+"-done":a[s+"Done"];return{baseClassName:g,activeClassName:m,doneClassName:v}},r}var n=t.prototype;return n.addClass=function(o,i,l){var s=this.getClassNames(i)[l+"ClassName"],a=this.getClassNames("enter"),u=a.doneClassName;i==="appear"&&l==="done"&&u&&(s+=" "+u),l==="active"&&o&&fp(o),s&&(this.appliedClasses[i][l]=s,Q0(o,s))},n.removeClasses=function(o,i){var l=this.appliedClasses[i],s=l.base,a=l.active,u=l.done;this.appliedClasses[i]={},s&&fl(o,s),a&&fl(o,a),u&&fl(o,u)},n.render=function(){var o=this.props;o.classNames;var i=va(o,["classNames"]);return h.createElement(K0,ni({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(h.Component);Ea.defaultProps={classNames:""};Ea.propTypes={};const Y0=Ea;function X0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wa(e,t){var n=function(i){return t&&C.isValidElement(i)?t(i):i},r=Object.create(null);return e&&C.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function Z0(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var l,s={};for(var a in t){if(r[a])for(l=0;l<r[a].length;l++){var u=r[a][l];s[r[a][l]]=n(u)}s[a]=n(a)}for(l=0;l<o.length;l++)s[o[l]]=n(o[l]);return s}function Qt(e,t,n){return n[t]!=null?n[t]:e.props[t]}function J0(e,t){return wa(e.children,function(n){return C.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Qt(n,"appear",e),enter:Qt(n,"enter",e),exit:Qt(n,"exit",e)})})}function q0(e,t,n){var r=wa(e.children),o=Z0(t,r);return Object.keys(o).forEach(function(i){var l=o[i];if(C.isValidElement(l)){var s=i in t,a=i in r,u=t[i],d=C.isValidElement(u)&&!u.props.in;a&&(!s||d)?o[i]=C.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Qt(l,"exit",e),enter:Qt(l,"enter",e)}):!a&&s&&!d?o[i]=C.cloneElement(l,{in:!1}):a&&s&&C.isValidElement(u)&&(o[i]=C.cloneElement(l,{onExited:n.bind(null,l),in:u.props.in,exit:Qt(l,"exit",e),enter:Qt(l,"enter",e)}))}}),o}var ev=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},tv={component:"div",childFactory:function(t){return t}},Sa=function(e){ya(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var l=i.handleExited.bind(X0(i));return i.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},i}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(o,i){var l=i.children,s=i.handleExited,a=i.firstRender;return{children:a?J0(o,s):q0(o,l,s),firstRender:!1}},n.handleExited=function(o,i){var l=wa(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var a=ni({},s.children);return delete a[o.key],{children:a}}))},n.render=function(){var o=this.props,i=o.component,l=o.childFactory,s=va(o,["component","childFactory"]),a=this.state.contextValue,u=ev(this.state.children).map(l);return delete s.appear,delete s.enter,delete s.exit,i===null?h.createElement(ri.Provider,{value:a},u):h.createElement(ri.Provider,{value:a},h.createElement(i,s,u))},t}(h.Component);Sa.propTypes={};Sa.defaultProps=tv;const nv=Sa;function rv(e,t=!0){var n;(n=ov(e,t))==null||n.focus()}function ov(e,t=!0){const n='a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled):not([aria-disabled="true"]):not([tabindex="-1"]),*[tabindex]';return!t&&iv(e,n)?e:e.querySelector(n)}function iv(e,t){if(e.matches)return e.matches(t);const n=(e.ownerDocument||document).querySelectorAll(t);let r=n.length;for(;--r>=0&&n.item(r)!==e;)return r>-1}function lv({labelledBy:e,children:t,onClose:n,setClosing:r,width:o,...i}){const l=C.useRef(null),s=C.useCallback(()=>{l.current&&!l.current.contains(document.activeElement)&&rv(l.current)},[]),a=d=>{d.keyCode===27&&r(!0)},u=d=>{d.keyCode===27&&(r(!1),n())};return C.useLayoutEffect(s,[]),C.useLayoutEffect(()=>(document.addEventListener("keydown",a),document.addEventListener("keyup",u),()=>{document.removeEventListener("keydown",a),document.removeEventListener("keyup",u)}),[]),h.createElement(Y0,{classNames:sv,nodeRef:l,mountOnEnter:!0,unmountOnExit:!0,timeout:200,...i},h.createElement("div",{className:se.Container,ref:l},h.createElement("div",{role:"dialog","aria-modal":!0,"aria-labelledby":e,tabIndex:-1,className:se.Dialog},h.createElement("div",{className:Ce(se.Modal,se[`Width-${o}`])},t))))}const sv={appear:Ce(se.animateFadeUp,se.entering),appearActive:Ce(se.animateFadeUp,se.entered),enter:Ce(se.animateFadeUp,se.entering),enterActive:Ce(se.animateFadeUp,se.entered),exit:Ce(se.animateFadeUp,se.exiting),exitActive:Ce(se.animateFadeUp,se.exited)},av="_Header_rltzr_1",uv="_Title_rltzr_10",Rc={Header:av,Title:uv};function cv({id:e,closing:t,children:n,onClose:r}){return h.createElement("div",{className:Rc.Header},h.createElement("div",{id:e,className:Rc.Title},h.createElement("h2",null,n)),h.createElement(A0,{pressed:t,onClick:r}))}const fv="_BodyWrapper_11cpl_1",dv={BodyWrapper:fv},fs="modal-container";function pv(){return h.createElement("div",{id:fs})}function dp({children:e,title:t,open:n,onClose:r,width:o="large"}){const[i,l]=C.useState(!1);let s,a;n&&(s=h.createElement(lv,{labelledBy:"modal-header",onClose:r,setClosing:l,in:n,width:o},h.createElement(cv,{id:"modal-header",closing:i,onClose:r},t),h.createElement("div",{className:dv.BodyWrapper},e)),a=h.createElement(R0,{setClosing:l,onClick:r}));const u=document.getElementById(fs);return u===null?(n&&console.error(`Could not find element with id ${fs} to render Modal inside`),null):qd.createPortal(h.createElement(h.Fragment,null,h.createElement(nv,{appear:!0,enter:!0,exit:!0},s),a),u)}function hv(){const[e,t]=C.useState(!1),[n]=De({id:"AppHomeRow",fallback:y0}),{surface:r}=up(),{app:o}=ma();if(!o)return null;const i=r==="admin"&&o.handle?`/admin/apps/${o.handle}`:void 0;return h.createElement(Oi,null,h.createElement("td",null,h.createElement("span",{className:g0},o.title)),h.createElement("td",null,h.createElement(hs,{resourceUrl:i,rootUrl:o.url,title:"App home"})),h.createElement("td",null,h.createElement(ga,{type:"button",onClick:()=>t(!0)},n.translate("viewMobile")),h.createElement(bp,{code:e?{url:o.url,type:"home",title:o.title}:void 0,onClose:()=>t(!1)})),h.createElement("td",null,h.createElement(yp,null)))}const mv="_Title_mda4k_1";const gv="View mobile",vv={viewMobile:gv},yv="_PreviewLinksTitle_w3znb_1",Ev="_PreviewLinks_w3znb_1";const wv="Extension targets",Sv={previewLinksTitle:wv};function Cv({extension:e}){var n;const[t]=De({id:"PreviewLinks",fallback:Sv});if(e.surface==="point_of_sale")return h.createElement(yp,null);if(e.type==="ui_extension"){const r=e.extensionPoints&&e.extensionPoints.length>1,o=r?h.createElement("span",{className:yv},t.translate("previewLinksTitle"),":"):null;return h.createElement(h.Fragment,null,o,h.createElement("span",{className:Ce(r&&Ev)},(n=e.extensionPoints)==null?void 0:n.map(i=>{if(typeof i=="string")return null;const{root:l,target:s,resource:a}=i;return h.createElement(hs,{rootUrl:l.url,title:s,key:s,resourceUrl:a.url})})))}return h.createElement(hs,{rootUrl:e.development.root.url,resourceUrl:e.development.resource.url,title:e.type.replaceAll("_"," ")})}function pp(e){const t=Hr(),n=t.state.extensions,r=n.find(o=>o.uuid===e);return C.useMemo(()=>({extension:r,hide:()=>t.client.persist("update",{extensions:n.map(o=>({uuid:o.uuid,development:{hidden:o.uuid===e?!0:o.development.hidden}}))}),show:()=>t.client.persist("update",{extensions:n.map(o=>({uuid:o.uuid,development:{hidden:o.uuid===e?!1:o.development.hidden}}))}),focus:()=>t.client.emit("focus",[{uuid:e}]),unfocus:()=>t.client.emit("unfocus"),navigate:o=>t.client.emit("navigate",{url:o})}),[JSON.stringify(n)])}function hp(e){var t;return(t=e.extensionPoints)==null?void 0:t.some(n=>n.surface==="point_of_sale")}function _v(e){return El(e)?hp(e):e.surface==="point_of_sale"||e.surface==="admin"}function Tv({uuid:e}){const[t,n]=C.useState(!1),[r]=De({id:"ExtensionRow",fallback:vv}),{focus:o,unfocus:i,extension:l}=pp(e);return l?h.createElement(Oi,{onMouseEnter:o,onMouseLeave:i},h.createElement("td",null,h.createElement("span",{className:mv},l.handle)),h.createElement("td",null,h.createElement(Cv,{extension:l})),h.createElement("td",null,_v(l)&&h.createElement(ga,{id:"showQRCodeModalButton",type:"button",onClick:()=>n(!0)},r.translate("viewMobile")),h.createElement(bp,{code:t?{url:l.development.root.url,type:hp(l)?"point_of_sale":l.surface,title:l.handle}:void 0,onClose:()=>n(!1)})),h.createElement("td",null,h.createElement(Wp,{status:l.development.status}))):null}const xv="_Title_mda4k_1";const kv="View {type} preview instructions",Pv={viewPreviewInstructions:kv},Lv="View your post-purchase extension",Ov={intro:"Install",linkText:"Shopify's Chrome browser extension"},Mv="Open the Chrome extension and paste in the following URL:",Nv="Run a test purchase on your store to get your post-purchase UI.",Rv={label:"Copy URL to clipboard",success:"URL copied",error:"Couldn't copy URL"},Dv={title:Lv,point1:Ov,point2:Mv,point3:Nv,copy:Rv},Iv="_Instructions_eiqam_1",Av="_UrlContainer_eiqam_16",$v="_Url_eiqam_16",Fv="_CopyButton_eiqam_33";function mp(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=mp(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function yt(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=mp(e))&&(r&&(r+=" "),r+=t);return r}const xr=e=>typeof e=="number"&&!isNaN(e),en=e=>typeof e=="string",ve=e=>typeof e=="function",ko=e=>en(e)||ve(e)?e:null,dl=e=>C.isValidElement(e)||en(e)||ve(e)||xr(e);function zv(e,t,n){n===void 0&&(n=300);const{scrollHeight:r,style:o}=e;requestAnimationFrame(()=>{o.minHeight="initial",o.height=r+"px",o.transition=`all ${n}ms`,requestAnimationFrame(()=>{o.height="0",o.padding="0",o.margin="0",setTimeout(t,n)})})}function Pi(e){let{enter:t,exit:n,appendPosition:r=!1,collapse:o=!0,collapseDuration:i=300}=e;return function(l){let{children:s,position:a,preventExitTransition:u,done:d,nodeRef:g,isIn:m}=l;const v=r?`${t}--${a}`:t,S=r?`${n}--${a}`:n,w=C.useRef(0);return C.useLayoutEffect(()=>{const c=g.current,f=v.split(" "),p=y=>{y.target===g.current&&(c.dispatchEvent(new Event("d")),c.removeEventListener("animationend",p),c.removeEventListener("animationcancel",p),w.current===0&&y.type!=="animationcancel"&&c.classList.remove(...f))};c.classList.add(...f),c.addEventListener("animationend",p),c.addEventListener("animationcancel",p)},[]),C.useEffect(()=>{const c=g.current,f=()=>{c.removeEventListener("animationend",f),o?zv(c,d,i):d()};m||(u?f():(w.current=1,c.className+=` ${S}`,c.addEventListener("animationend",f)))},[m]),h.createElement(h.Fragment,null,s)}}function Dc(e,t){return e!=null?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const Pe={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter(r=>r!==t);return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach(t=>{const n=setTimeout(()=>{t(...[].slice.call(arguments,1))},0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)})}},co=e=>{let{theme:t,type:n,...r}=e;return h.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:t==="colored"?"currentColor":`var(--toastify-icon-color-${n})`,...r})},pl={info:function(e){return h.createElement(co,{...e},h.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return h.createElement(co,{...e},h.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return h.createElement(co,{...e},h.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return h.createElement(co,{...e},h.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return h.createElement("div",{className:"Toastify__spinner"})}};function Uv(e){const[,t]=C.useReducer(v=>v+1,0),[n,r]=C.useState([]),o=C.useRef(null),i=C.useRef(new Map).current,l=v=>n.indexOf(v)!==-1,s=C.useRef({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:l,getToast:v=>i.get(v)}).current;function a(v){let{containerId:S}=v;const{limit:w}=s.props;!w||S&&s.containerId!==S||(s.count-=s.queue.length,s.queue=[])}function u(v){r(S=>v==null?[]:S.filter(w=>w!==v))}function d(){const{toastContent:v,toastProps:S,staleId:w}=s.queue.shift();m(v,S,w)}function g(v,S){let{delay:w,staleId:c,...f}=S;if(!dl(v)||function(j){return!o.current||s.props.enableMultiContainer&&j.containerId!==s.props.containerId||i.has(j.toastId)&&j.updateId==null}(f))return;const{toastId:p,updateId:y,data:E}=f,{props:k}=s,x=()=>u(p),M=y==null;M&&s.count++;const N={...k,style:k.toastStyle,key:s.toastKey++,...Object.fromEntries(Object.entries(f).filter(j=>{let[z,J]=j;return J!=null})),toastId:p,updateId:y,data:E,closeToast:x,isIn:!1,className:ko(f.className||k.toastClassName),bodyClassName:ko(f.bodyClassName||k.bodyClassName),progressClassName:ko(f.progressClassName||k.progressClassName),autoClose:!f.isLoading&&(O=f.autoClose,V=k.autoClose,O===!1||xr(O)&&O>0?O:V),deleteToast(){const j=Dc(i.get(p),"removed");i.delete(p),Pe.emit(4,j);const z=s.queue.length;if(s.count=p==null?s.count-s.displayedToast:s.count-1,s.count<0&&(s.count=0),z>0){const J=p==null?s.props.limit:1;if(z===1||J===1)s.displayedToast++,d();else{const de=J>z?z:J;s.displayedToast=de;for(let X=0;X<de;X++)d()}}else t()}};var O,V;N.iconOut=function(j){let{theme:z,type:J,isLoading:de,icon:X}=j,Se=null;const $e={theme:z,type:J};return X===!1||(ve(X)?Se=X($e):C.isValidElement(X)?Se=C.cloneElement(X,$e):en(X)||xr(X)?Se=X:de?Se=pl.spinner():(at=>at in pl)(J)&&(Se=pl[J]($e))),Se}(N),ve(f.onOpen)&&(N.onOpen=f.onOpen),ve(f.onClose)&&(N.onClose=f.onClose),N.closeButton=k.closeButton,f.closeButton===!1||dl(f.closeButton)?N.closeButton=f.closeButton:f.closeButton===!0&&(N.closeButton=!dl(k.closeButton)||k.closeButton);let Ae=v;C.isValidElement(v)&&!en(v.type)?Ae=C.cloneElement(v,{closeToast:x,toastProps:N,data:E}):ve(v)&&(Ae=v({closeToast:x,toastProps:N,data:E})),k.limit&&k.limit>0&&s.count>k.limit&&M?s.queue.push({toastContent:Ae,toastProps:N,staleId:c}):xr(w)?setTimeout(()=>{m(Ae,N,c)},w):m(Ae,N,c)}function m(v,S,w){const{toastId:c}=S;w&&i.delete(w);const f={content:v,props:S};i.set(c,f),r(p=>[...p,c].filter(y=>y!==w)),Pe.emit(4,Dc(f,f.props.updateId==null?"added":"updated"))}return C.useEffect(()=>(s.containerId=e.containerId,Pe.cancelEmit(3).on(0,g).on(1,v=>o.current&&u(v)).on(5,a).emit(2,s),()=>{i.clear(),Pe.emit(3,s)}),[]),C.useEffect(()=>{s.props=e,s.isToastActive=l,s.displayedToast=n.length}),{getToastToRender:function(v){const S=new Map,w=Array.from(i.values());return e.newestOnTop&&w.reverse(),w.forEach(c=>{const{position:f}=c.props;S.has(f)||S.set(f,[]),S.get(f).push(c)}),Array.from(S,c=>v(c[0],c[1]))},containerRef:o,isToastActive:l}}function Ic(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function Ac(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Bv(e){const[t,n]=C.useState(!1),[r,o]=C.useState(!1),i=C.useRef(null),l=C.useRef({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,s=C.useRef(e),{autoClose:a,pauseOnHover:u,closeToast:d,onClick:g,closeOnClick:m}=e;function v(E){if(e.draggable){E.nativeEvent.type==="touchstart"&&E.nativeEvent.preventDefault(),l.didMove=!1,document.addEventListener("mousemove",f),document.addEventListener("mouseup",p),document.addEventListener("touchmove",f),document.addEventListener("touchend",p);const k=i.current;l.canCloseOnClick=!0,l.canDrag=!0,l.boundingRect=k.getBoundingClientRect(),k.style.transition="",l.x=Ic(E.nativeEvent),l.y=Ac(E.nativeEvent),e.draggableDirection==="x"?(l.start=l.x,l.removalDistance=k.offsetWidth*(e.draggablePercent/100)):(l.start=l.y,l.removalDistance=k.offsetHeight*(e.draggablePercent===80?1.5*e.draggablePercent:e.draggablePercent/100))}}function S(E){if(l.boundingRect){const{top:k,bottom:x,left:M,right:N}=l.boundingRect;E.nativeEvent.type!=="touchend"&&e.pauseOnHover&&l.x>=M&&l.x<=N&&l.y>=k&&l.y<=x?c():w()}}function w(){n(!0)}function c(){n(!1)}function f(E){const k=i.current;l.canDrag&&k&&(l.didMove=!0,t&&c(),l.x=Ic(E),l.y=Ac(E),l.delta=e.draggableDirection==="x"?l.x-l.start:l.y-l.start,l.start!==l.x&&(l.canCloseOnClick=!1),k.style.transform=`translate${e.draggableDirection}(${l.delta}px)`,k.style.opacity=""+(1-Math.abs(l.delta/l.removalDistance)))}function p(){document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",p),document.removeEventListener("touchmove",f),document.removeEventListener("touchend",p);const E=i.current;if(l.canDrag&&l.didMove&&E){if(l.canDrag=!1,Math.abs(l.delta)>l.removalDistance)return o(!0),void e.closeToast();E.style.transition="transform 0.2s, opacity 0.2s",E.style.transform=`translate${e.draggableDirection}(0)`,E.style.opacity="1"}}C.useEffect(()=>{s.current=e}),C.useEffect(()=>(i.current&&i.current.addEventListener("d",w,{once:!0}),ve(e.onOpen)&&e.onOpen(C.isValidElement(e.children)&&e.children.props),()=>{const E=s.current;ve(E.onClose)&&E.onClose(C.isValidElement(E.children)&&E.children.props)}),[]),C.useEffect(()=>(e.pauseOnFocusLoss&&(document.hasFocus()||c(),window.addEventListener("focus",w),window.addEventListener("blur",c)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",w),window.removeEventListener("blur",c))}),[e.pauseOnFocusLoss]);const y={onMouseDown:v,onTouchStart:v,onMouseUp:S,onTouchEnd:S};return a&&u&&(y.onMouseEnter=c,y.onMouseLeave=w),m&&(y.onClick=E=>{g&&g(E),l.canCloseOnClick&&d()}),{playToast:w,pauseToast:c,isRunning:t,preventExitTransition:r,toastRef:i,eventHandlers:y}}function gp(e){let{closeToast:t,theme:n,ariaLabel:r="close"}=e;return h.createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:o=>{o.stopPropagation(),t(o)},"aria-label":r},h.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},h.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function jv(e){let{delay:t,isRunning:n,closeToast:r,type:o="default",hide:i,className:l,style:s,controlledProgress:a,progress:u,rtl:d,isIn:g,theme:m}=e;const v=i||a&&u===0,S={...s,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:v?0:1};a&&(S.transform=`scaleX(${u})`);const w=yt("Toastify__progress-bar",a?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${m}`,`Toastify__progress-bar--${o}`,{"Toastify__progress-bar--rtl":d}),c=ve(l)?l({rtl:d,type:o,defaultClassName:w}):yt(w,l);return h.createElement("div",{role:"progressbar","aria-hidden":v?"true":"false","aria-label":"notification timer",className:c,style:S,[a&&u>=1?"onTransitionEnd":"onAnimationEnd"]:a&&u<1?null:()=>{g&&r()}})}const bv=e=>{const{isRunning:t,preventExitTransition:n,toastRef:r,eventHandlers:o}=Bv(e),{closeButton:i,children:l,autoClose:s,onClick:a,type:u,hideProgressBar:d,closeToast:g,transition:m,position:v,className:S,style:w,bodyClassName:c,bodyStyle:f,progressClassName:p,progressStyle:y,updateId:E,role:k,progress:x,rtl:M,toastId:N,deleteToast:O,isIn:V,isLoading:Ae,iconOut:j,closeOnClick:z,theme:J}=e,de=yt("Toastify__toast",`Toastify__toast-theme--${J}`,`Toastify__toast--${u}`,{"Toastify__toast--rtl":M},{"Toastify__toast--close-on-click":z}),X=ve(S)?S({rtl:M,position:v,type:u,defaultClassName:de}):yt(de,S),Se=!!x||!s,$e={closeToast:g,type:u,theme:J};let at=null;return i===!1||(at=ve(i)?i($e):C.isValidElement(i)?C.cloneElement(i,$e):gp($e)),h.createElement(m,{isIn:V,done:O,position:v,preventExitTransition:n,nodeRef:r},h.createElement("div",{id:N,onClick:a,className:X,...o,style:w,ref:r},h.createElement("div",{...V&&{role:k},className:ve(c)?c({type:u}):yt("Toastify__toast-body",c),style:f},j!=null&&h.createElement("div",{className:yt("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ae})},j),h.createElement("div",null,l)),at,h.createElement(jv,{...E&&!Se?{key:`pb-${E}`}:{},rtl:M,theme:J,delay:s,isRunning:t,isIn:V,closeToast:g,hide:d,type:u,style:y,className:p,controlledProgress:Se,progress:x||0})))},Li=function(e,t){return t===void 0&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},Hv=Pi(Li("bounce",!0));Pi(Li("slide",!0));Pi(Li("zoom"));Pi(Li("flip"));const ds=C.forwardRef((e,t)=>{const{getToastToRender:n,containerRef:r,isToastActive:o}=Uv(e),{className:i,style:l,rtl:s,containerId:a}=e;function u(d){const g=yt("Toastify__toast-container",`Toastify__toast-container--${d}`,{"Toastify__toast-container--rtl":s});return ve(i)?i({position:d,rtl:s,defaultClassName:g}):yt(g,ko(i))}return C.useEffect(()=>{t&&(t.current=r.current)},[]),h.createElement("div",{ref:r,className:"Toastify",id:a},n((d,g)=>{const m=g.length?{...l}:{...l,pointerEvents:"none"};return h.createElement("div",{className:u(d),style:m,key:`container-${d}`},g.map((v,S)=>{let{content:w,props:c}=v;return h.createElement(bv,{...c,isIn:o(c.toastId),style:{...c.style,"--nth":S+1,"--len":g.length},key:`toast-${c.key}`},w)}))}))});ds.displayName="ToastContainer",ds.defaultProps={position:"top-right",transition:Hv,autoClose:5e3,closeButton:gp,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let hl,bt=new Map,cr=[],Vv=1;function vp(){return""+Vv++}function Wv(e){return e&&(en(e.toastId)||xr(e.toastId))?e.toastId:vp()}function kr(e,t){return bt.size>0?Pe.emit(0,e,t):cr.push({content:e,options:t}),t.toastId}function oi(e,t){return{...t,type:t&&t.type||e,toastId:Wv(t)}}function fo(e){return(t,n)=>kr(t,oi(e,n))}function F(e,t){return kr(e,oi("default",t))}F.loading=(e,t)=>kr(e,oi("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),F.promise=function(e,t,n){let r,{pending:o,error:i,success:l}=t;o&&(r=en(o)?F.loading(o,n):F.loading(o.render,{...n,...o}));const s={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},a=(d,g,m)=>{if(g==null)return void F.dismiss(r);const v={type:d,...s,...n,data:m},S=en(g)?{render:g}:g;return r?F.update(r,{...v,...S}):F(S.render,{...v,...S}),m},u=ve(e)?e():e;return u.then(d=>a("success",l,d)).catch(d=>a("error",i,d)),u},F.success=fo("success"),F.info=fo("info"),F.error=fo("error"),F.warning=fo("warning"),F.warn=F.warning,F.dark=(e,t)=>kr(e,oi("default",{theme:"dark",...t})),F.dismiss=e=>{bt.size>0?Pe.emit(1,e):cr=cr.filter(t=>e!=null&&t.options.toastId!==e)},F.clearWaitingQueue=function(e){return e===void 0&&(e={}),Pe.emit(5,e)},F.isActive=e=>{let t=!1;return bt.forEach(n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)}),t},F.update=function(e,t){t===void 0&&(t={}),setTimeout(()=>{const n=function(r,o){let{containerId:i}=o;const l=bt.get(i||hl);return l&&l.getToast(r)}(e,t);if(n){const{props:r,content:o}=n,i={delay:100,...r,...t,toastId:t.toastId||e,updateId:vp()};i.toastId!==e&&(i.staleId=e);const l=i.render||o;delete i.render,kr(l,i)}},0)},F.done=e=>{F.update(e,{progress:1})},F.onChange=e=>(Pe.on(4,e),()=>{Pe.off(4,e)}),F.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},F.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},Pe.on(2,e=>{hl=e.containerId||e,bt.set(hl,e),cr.forEach(t=>{Pe.emit(0,t.content,t.options)}),cr=[]}).on(3,e=>{bt.delete(e.containerId||e),bt.size===0&&Pe.off(0).off(1).off(5)});function Gv({url:e,onClose:t,open:n}){const[r]=De({id:"PostPurchaseModal",fallback:Dv});function o(){e&&navigator.clipboard.writeText(e).then(()=>{F(r.translate("copy.success"),{toastId:`copy-${e}`})}).catch(()=>{F(r.translate("copy.error"),{type:"error",toastId:`copy-${e}-error`})})}return h.createElement(dp,{title:r.translate("title"),open:n,onClose:t,width:"large"},h.createElement("ol",{className:Iv},h.createElement("li",null,r.translate("point1.intro")," ",h.createElement("a",{href:"https://chrome.google.com/webstore/detail/shopify-post-purchase-dev/nenmcifhoegealiiblnpihbnjenleong",target:"_blank"},r.translate("point1.linkText"))),h.createElement("li",null,r.translate("point2"),h.createElement("span",{className:Av},h.createElement("span",{className:$v},e)," ",h.createElement("span",{className:Fv},h.createElement(ki,{type:"button",onClick:()=>o(),source:ai,accessibilityLabel:r.translate("copy.label")})))),h.createElement("li",null,r.translate("point3"))))}function Kv({uuid:e}){const[t,n]=C.useState(!1),[r]=De({id:"PostPurchaseRow",fallback:Pv}),{focus:o,unfocus:i,extension:l}=pp(e);return l?h.createElement(Oi,{onMouseEnter:o,onMouseLeave:i},h.createElement("td",null,h.createElement("span",{className:xv},l.title)),h.createElement("td",null,h.createElement(ga,{type:"button",onClick:()=>n(!0)},r.translate("viewPreviewInstructions",{type:l.type})),h.createElement(Gv,{onClose:()=>n(!1),url:l.development.root.url,open:t})),h.createElement("td",null),h.createElement("td",null,h.createElement(Wp,{status:l.development.status}))):null}const Qv="_NotApplicable_d2d93_1";function yp(){return h.createElement("span",{className:Qv},"--")}const Yv="_PreviewLink_m62df_1";const Xv={success:"URL copied",error:"Couldn't copy URL"},Zv="Preview {title}",Jv="Copy preview link for {title} to clipboard",qv={copy:Xv,linkLabel:Zv,iconLabel:Jv};function ey(){const e=Hr();return C.useMemo(()=>t=>e.client.emit("navigate",{url:t}),[e.client.emit])}const ps=window.top&&new URLSearchParams(location.search).get("embedded")==="true";function hs({rootUrl:e,resourceUrl:t,title:n}){const[r]=De({id:"PreviewLink",fallback:qv}),o=ey(),i=s=>{ps&&t&&(o(t),s.preventDefault())};function l(){navigator.clipboard.writeText(e).then(()=>{F(r.translate("copy.success"),{toastId:`copy-${e}`})}).catch(()=>{F(r.translate("copy.error"),{type:"error",toastId:`copy-${e}-error`})})}return h.createElement("span",{className:Yv},h.createElement("a",{href:e,target:ps?"_top":"_blank","aria-label":r.translate("linkLabel",{title:n}),onClick:i},n),h.createElement(ki,{type:"button",onClick:()=>l(),source:ai,accessibilityLabel:r.translate("iconLabel",{title:n})}))}const ty="View your work on mobile",ny={one:"Scan with your phone camera to see your work",two:"Or copy the URL to share:"},ry={copy:"Copy link",copied:"Link copied",content:"Scan to test {title} on mobile"},Ep={title:ty,right:ny,qrcode:ry},oy="_Wrapper_1tz7v_1",iy="_LeftColumn_1tz7v_6",ly="_QRCode_1tz7v_15",sy="_RightColumn_1tz7v_21",ay="_UrlCta_1tz7v_29";var uy=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},cy=uy,$c={"text/plain":"Text","text/html":"Url",default:"Text"},fy="Copy to clipboard: #{key}, Enter";function dy(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function py(e,t){var n,r,o,i,l,s,a=!1;t||(t={}),n=t.debug||!1;try{o=cy(),i=document.createRange(),l=document.getSelection(),s=document.createElement("span"),s.textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData>"u"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var g=$c[t.format]||$c.default;window.clipboardData.setData(g,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(s),i.selectNodeContents(s),l.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");a=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),a=!0}catch(g){n&&console.error("unable to copy using clipboardData: ",g),n&&console.error("falling back to prompt"),r=dy("message"in t?t.message:fy),window.prompt(r,e)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(i):l.removeAllRanges()),s&&document.body.removeChild(s),o()}return a}var hy=py;const my=si(hy);var wp={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},gy=wp;function Sp(e){this.mode=gy.MODE_8BIT_BYTE,this.data=e}Sp.prototype={getLength:function(e){return this.data.length},write:function(e){for(var t=0;t<this.data.length;t++)e.put(this.data.charCodeAt(t),8)}};var vy=Sp,Cp={L:1,M:0,Q:3,H:2},po=Cp;function be(e,t){this.totalCount=e,this.dataCount=t}be.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];be.getRSBlocks=function(e,t){var n=be.getRsBlockTable(e,t);if(n==null)throw new Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,o=new Array,i=0;i<r;i++)for(var l=n[i*3+0],s=n[i*3+1],a=n[i*3+2],u=0;u<l;u++)o.push(new be(s,a));return o};be.getRsBlockTable=function(e,t){switch(t){case po.L:return be.RS_BLOCK_TABLE[(e-1)*4+0];case po.M:return be.RS_BLOCK_TABLE[(e-1)*4+1];case po.Q:return be.RS_BLOCK_TABLE[(e-1)*4+2];case po.H:return be.RS_BLOCK_TABLE[(e-1)*4+3];default:return}};var yy=be;function _p(){this.buffer=new Array,this.length=0}_p.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Ey=_p,Ue={glog:function(e){if(e<1)throw new Error("glog("+e+")");return Ue.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return Ue.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var oe=0;oe<8;oe++)Ue.EXP_TABLE[oe]=1<<oe;for(var oe=8;oe<256;oe++)Ue.EXP_TABLE[oe]=Ue.EXP_TABLE[oe-4]^Ue.EXP_TABLE[oe-5]^Ue.EXP_TABLE[oe-6]^Ue.EXP_TABLE[oe-8];for(var oe=0;oe<255;oe++)Ue.LOG_TABLE[Ue.EXP_TABLE[oe]]=oe;var Tp=Ue,zt=Tp;function Po(e,t){if(e.length==null)throw new Error(e.length+"/"+t);for(var n=0;n<e.length&&e[n]==0;)n++;this.num=new Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}Po.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<e.getLength();r++)t[n+r]^=zt.gexp(zt.glog(this.get(n))+zt.glog(e.get(r)));return new Po(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=zt.glog(this.get(0))-zt.glog(e.get(0)),n=new Array(this.getLength()),r=0;r<this.getLength();r++)n[r]=this.get(r);for(var r=0;r<e.getLength();r++)n[r]^=zt.gexp(zt.glog(e.get(r))+t);return new Po(n,0).mod(e)}};var xp=Po,ke=wp,Fc=xp,wy=Tp,ft={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},ne={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;ne.getBCHDigit(t)-ne.getBCHDigit(ne.G15)>=0;)t^=ne.G15<<ne.getBCHDigit(t)-ne.getBCHDigit(ne.G15);return(e<<10|t)^ne.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;ne.getBCHDigit(t)-ne.getBCHDigit(ne.G18)>=0;)t^=ne.G18<<ne.getBCHDigit(t)-ne.getBCHDigit(ne.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;e!=0;)t++,e>>>=1;return t},getPatternPosition:function(e){return ne.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case ft.PATTERN000:return(t+n)%2==0;case ft.PATTERN001:return t%2==0;case ft.PATTERN010:return n%3==0;case ft.PATTERN011:return(t+n)%3==0;case ft.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case ft.PATTERN101:return t*n%2+t*n%3==0;case ft.PATTERN110:return(t*n%2+t*n%3)%2==0;case ft.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new Fc([1],0),n=0;n<e;n++)t=t.multiply(new Fc([1,wy.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case ke.MODE_NUMBER:return 10;case ke.MODE_ALPHA_NUM:return 9;case ke.MODE_8BIT_BYTE:return 8;case ke.MODE_KANJI:return 8;default:throw new Error("mode:"+e)}else if(t<27)switch(e){case ke.MODE_NUMBER:return 12;case ke.MODE_ALPHA_NUM:return 11;case ke.MODE_8BIT_BYTE:return 16;case ke.MODE_KANJI:return 10;default:throw new Error("mode:"+e)}else if(t<41)switch(e){case ke.MODE_NUMBER:return 14;case ke.MODE_ALPHA_NUM:return 13;case ke.MODE_8BIT_BYTE:return 16;case ke.MODE_KANJI:return 12;default:throw new Error("mode:"+e)}else throw new Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var o=0;o<t;o++){for(var i=0,l=e.isDark(r,o),s=-1;s<=1;s++)if(!(r+s<0||t<=r+s))for(var a=-1;a<=1;a++)o+a<0||t<=o+a||s==0&&a==0||l==e.isDark(r+s,o+a)&&i++;i>5&&(n+=3+i-5)}for(var r=0;r<t-1;r++)for(var o=0;o<t-1;o++){var u=0;e.isDark(r,o)&&u++,e.isDark(r+1,o)&&u++,e.isDark(r,o+1)&&u++,e.isDark(r+1,o+1)&&u++,(u==0||u==4)&&(n+=3)}for(var r=0;r<t;r++)for(var o=0;o<t-6;o++)e.isDark(r,o)&&!e.isDark(r,o+1)&&e.isDark(r,o+2)&&e.isDark(r,o+3)&&e.isDark(r,o+4)&&!e.isDark(r,o+5)&&e.isDark(r,o+6)&&(n+=40);for(var o=0;o<t;o++)for(var r=0;r<t-6;r++)e.isDark(r,o)&&!e.isDark(r+1,o)&&e.isDark(r+2,o)&&e.isDark(r+3,o)&&e.isDark(r+4,o)&&!e.isDark(r+5,o)&&e.isDark(r+6,o)&&(n+=40);for(var d=0,o=0;o<t;o++)for(var r=0;r<t;r++)e.isDark(r,o)&&d++;var g=Math.abs(100*d/t/t-50)/5;return n+=g*10,n}},Sy=ne,Cy=vy,kp=yy,Pp=Ey,It=Sy,_y=xp;function Ge(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var xe=Ge.prototype;xe.addData=function(e){var t=new Cy(e);this.dataList.push(t),this.dataCache=null};xe.isDark=function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw new Error(e+","+t);return this.modules[e][t]};xe.getModuleCount=function(){return this.moduleCount};xe.make=function(){if(this.typeNumber<1){var e=1;for(e=1;e<40;e++){for(var t=kp.getRSBlocks(e,this.errorCorrectLevel),n=new Pp,r=0,o=0;o<t.length;o++)r+=t[o].dataCount;for(var o=0;o<this.dataList.length;o++){var i=this.dataList[o];n.put(i.mode,4),n.put(i.getLength(),It.getLengthInBits(i.mode,e)),i.write(n)}if(n.getLengthInBits()<=r*8)break}this.typeNumber=e}this.makeImpl(!1,this.getBestMaskPattern())};xe.makeImpl=function(e,t){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++)this.modules[n][r]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),this.dataCache==null&&(this.dataCache=Ge.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)};xe.setupPositionProbePattern=function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(r==0||r==6)||0<=r&&r<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)};xe.getBestMaskPattern=function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=It.getLostPoint(this);(n==0||e>r)&&(e=r,t=n)}return t};xe.createMovieClip=function(e,t,n){var r=e.createEmptyMovieClip(t,n),o=1;this.make();for(var i=0;i<this.modules.length;i++)for(var l=i*o,s=0;s<this.modules[i].length;s++){var a=s*o,u=this.modules[i][s];u&&(r.beginFill(0,100),r.moveTo(a,l),r.lineTo(a+o,l),r.lineTo(a+o,l+o),r.lineTo(a,l+o),r.endFill())}return r};xe.setupTimingPattern=function(){for(var e=8;e<this.moduleCount-8;e++)this.modules[e][6]==null&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)this.modules[6][t]==null&&(this.modules[6][t]=t%2==0)};xe.setupPositionAdjustPattern=function(){for(var e=It.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],o=e[n];if(this.modules[r][o]==null)for(var i=-2;i<=2;i++)for(var l=-2;l<=2;l++)i==-2||i==2||l==-2||l==2||i==0&&l==0?this.modules[r+i][o+l]=!0:this.modules[r+i][o+l]=!1}};xe.setupTypeNumber=function(e){for(var t=It.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}};xe.setupTypeInfo=function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=It.getBCHTypeInfo(n),o=0;o<15;o++){var i=!e&&(r>>o&1)==1;o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(var o=0;o<15;o++){var i=!e&&(r>>o&1)==1;o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!e};xe.mapData=function(e,t){for(var n=-1,r=this.moduleCount-1,o=7,i=0,l=this.moduleCount-1;l>0;l-=2)for(l==6&&l--;;){for(var s=0;s<2;s++)if(this.modules[r][l-s]==null){var a=!1;i<e.length&&(a=(e[i]>>>o&1)==1);var u=It.getMask(t,r,l-s);u&&(a=!a),this.modules[r][l-s]=a,o--,o==-1&&(i++,o=7)}if(r+=n,r<0||this.moduleCount<=r){r-=n,n=-n;break}}};Ge.PAD0=236;Ge.PAD1=17;Ge.createData=function(e,t,n){for(var r=kp.getRSBlocks(e,t),o=new Pp,i=0;i<n.length;i++){var l=n[i];o.put(l.mode,4),o.put(l.getLength(),It.getLengthInBits(l.mode,e)),l.write(o)}for(var s=0,i=0;i<r.length;i++)s+=r[i].dataCount;if(o.getLengthInBits()>s*8)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+s*8+")");for(o.getLengthInBits()+4<=s*8&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=s*8||(o.put(Ge.PAD0,8),o.getLengthInBits()>=s*8));)o.put(Ge.PAD1,8);return Ge.createBytes(o,r)};Ge.createBytes=function(e,t){for(var n=0,r=0,o=0,i=new Array(t.length),l=new Array(t.length),s=0;s<t.length;s++){var a=t[s].dataCount,u=t[s].totalCount-a;r=Math.max(r,a),o=Math.max(o,u),i[s]=new Array(a);for(var d=0;d<i[s].length;d++)i[s][d]=255&e.buffer[d+n];n+=a;var g=It.getErrorCorrectPolynomial(u),m=new _y(i[s],g.getLength()-1),v=m.mod(g);l[s]=new Array(g.getLength()-1);for(var d=0;d<l[s].length;d++){var S=d+v.getLength()-l[s].length;l[s][d]=S>=0?v.get(S):0}}for(var w=0,d=0;d<t.length;d++)w+=t[d].totalCount;for(var c=new Array(w),f=0,d=0;d<r;d++)for(var s=0;s<t.length;s++)d<i[s].length&&(c[f++]=i[s][d]);for(var d=0;d<o;d++)for(var s=0;s<t.length;s++)d<l[s].length&&(c[f++]=l[s][d]);return c};var Ty=Ge;function Lo(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Lo=function(n){return typeof n}:Lo=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Lo(e)}function ii(){return ii=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ii.apply(this,arguments)}function zc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Lp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zc(n,!0).forEach(function(r){Yt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zc(n).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ca(e,t){if(e==null)return{};var n=xy(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xy(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Op(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mp(e,t,n){return t&&Uc(e.prototype,t),n&&Uc(e,n),e}function Np(e,t){return t&&(Lo(t)==="object"||typeof t=="function")?t:fr(e)}function li(e){return li=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},li(e)}function fr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ms(e,t)}function ms(e,t){return ms=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},ms(e,t)}function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Be=C,Dp=Ty,Ip=Cp;function Ap(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t+=String.fromCharCode(r):r<2048?(t+=String.fromCharCode(192|r>>6),t+=String.fromCharCode(128|r&63)):r<55296||r>=57344?(t+=String.fromCharCode(224|r>>12),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|r&63)):(n++,r=65536+((r&1023)<<10|e.charCodeAt(n)&1023),t+=String.fromCharCode(240|r>>18),t+=String.fromCharCode(128|r>>12&63),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|r&63))}return t}var _a={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},Ta=4,ky=.1;function $p(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=[];return e.forEach(function(r,o){var i=null;r.forEach(function(l,s){if(!l&&i!==null){n.push("M".concat(i+t," ").concat(o+t,"h").concat(s-i,"v1H").concat(i+t,"z")),i=null;return}if(s===r.length-1){if(!l)return;i===null?n.push("M".concat(s+t,",").concat(o+t," h1v1H").concat(s+t,"z")):n.push("M".concat(i+t,",").concat(o+t," h").concat(s+1-i,"v1H").concat(i+t,"z"));return}l&&i===null&&(i=s)})}),n.join("")}function Fp(e,t){return e.slice().map(function(n,r){return r<t.y||r>=t.y+t.h?n:n.map(function(o,i){return i<t.x||i>=t.x+t.w?o:!1})})}function zp(e,t){var n=e.imageSettings,r=e.size,o=e.includeMargin;if(n==null)return null;var i=o?Ta:0,l=t.length+i*2,s=Math.floor(r*ky),a=l/r,u=(n.width||s)*a,d=(n.height||s)*a,g=n.x==null?t.length/2-u/2:n.x*a,m=n.y==null?t.length/2-d/2:n.y*a,v=null;if(n.excavate){var S=Math.floor(g),w=Math.floor(m),c=Math.ceil(u+g-S),f=Math.ceil(d+m-w);v={x:S,y:w,w:c,h:f}}return{x:g,y:m,h:d,w:u,excavation:v}}var Py=function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0}(),Up=function(e){Rp(t,e);function t(){var n,r;Op(this,t);for(var o=arguments.length,i=new Array(o),l=0;l<o;l++)i[l]=arguments[l];return r=Np(this,(n=li(t)).call.apply(n,[this].concat(i))),Yt(fr(r),"_canvas",void 0),Yt(fr(r),"_image",void 0),Yt(fr(r),"state",{imgLoaded:!1}),Yt(fr(r),"handleImageLoad",function(){r.setState({imgLoaded:!0})}),r}return Mp(t,[{key:"componentDidMount",value:function(){this._image&&this._image.complete&&this.handleImageLoad(),this.update()}},{key:"componentWillReceiveProps",value:function(r){var o,i,l=(o=this.props.imageSettings)===null||o===void 0?void 0:o.src,s=(i=r.imageSettings)===null||i===void 0?void 0:i.src;l!==s&&this.setState({imgLoaded:!1})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var r=this.props,o=r.value,i=r.size,l=r.level,s=r.bgColor,a=r.fgColor,u=r.includeMargin,d=r.imageSettings,g=new Dp(-1,Ip[l]);if(g.addData(Ap(o)),g.make(),this._canvas!=null){var m=this._canvas,v=m.getContext("2d");if(!v)return;var S=g.modules;if(S===null)return;var w=u?Ta:0,c=S.length+w*2,f=zp(this.props,S);d!=null&&f!=null&&f.excavation!=null&&(S=Fp(S,f.excavation));var p=window.devicePixelRatio||1;m.height=m.width=i*p;var y=i/c*p;v.scale(y,y),v.fillStyle=s,v.fillRect(0,0,c,c),v.fillStyle=a,Py?v.fill(new Path2D($p(S,w))):S.forEach(function(E,k){E.forEach(function(x,M){x&&v.fillRect(M+w,k+w,1,1)})}),this.state.imgLoaded&&this._image&&f!=null&&v.drawImage(this._image,f.x+w,f.y+w,f.w,f.h)}}},{key:"render",value:function(){var r=this,o=this.props;o.value;var i=o.size;o.level,o.bgColor,o.fgColor;var l=o.style;o.includeMargin;var s=o.imageSettings,a=Ca(o,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),u=Lp({height:i,width:i},l),d=null,g=s&&s.src;return s!=null&&g!=null&&(d=Be.createElement("img",{src:g,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(v){return r._image=v}})),Be.createElement(Be.Fragment,null,Be.createElement("canvas",ii({style:u,height:i,width:i,ref:function(v){return r._canvas=v}},a)),d)}}]),t}(Be.PureComponent);Yt(Up,"defaultProps",_a);var Bp=function(e){Rp(t,e);function t(){return Op(this,t),Np(this,li(t).apply(this,arguments))}return Mp(t,[{key:"render",value:function(){var r=this.props,o=r.value,i=r.size,l=r.level,s=r.bgColor,a=r.fgColor,u=r.includeMargin,d=r.imageSettings,g=Ca(r,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),m=new Dp(-1,Ip[l]);m.addData(Ap(o)),m.make();var v=m.modules;if(v===null)return null;var S=u?Ta:0,w=v.length+S*2,c=zp(this.props,v),f=null;d!=null&&c!=null&&(c.excavation!=null&&(v=Fp(v,c.excavation)),f=Be.createElement("image",{xlinkHref:d.src,height:c.h,width:c.w,x:c.x+S,y:c.y+S,preserveAspectRatio:"none"}));var p=$p(v,S);return Be.createElement("svg",ii({shapeRendering:"crispEdges",height:i,width:i,viewBox:"0 0 ".concat(w," ").concat(w)},g),Be.createElement("path",{fill:s,d:"M0,0 h".concat(w,"v").concat(w,"H0z")}),Be.createElement("path",{fill:a,d:p}),f)}}]),t}(Be.PureComponent);Yt(Bp,"defaultProps",_a);var jp=function(t){var n=t.renderAs,r=Ca(t,["renderAs"]),o=n==="svg"?Bp:Up;return Be.createElement(o,r)};jp.defaultProps=Lp({renderAs:"canvas"},_a);var Ly=jp;const Oy=si(Ly);function bp({code:e,onClose:t}){const[n]=De({id:"QRCodeModal",fallback:Ep});return h.createElement(dp,{title:n.translate("title",{title:e==null?void 0:e.title}),open:!!e,onClose:t,width:"small"},e?h.createElement(My,{...e}):null)}function My({url:e,type:t}){const[n]=De({id:"QRCodeModal",fallback:Ep}),{store:r,app:o}=ma(),i=C.useMemo(()=>o?t==="point_of_sale"?`com.shopify.pos://pos-ui-extensions?url=${e}`:t==="home"?o.mobileUrl:`https://${r}/admin/extensions-dev/mobile?url=${e}`:null,[e,o,o==null?void 0:o.mobileUrl]),l=C.useCallback(()=>{i&&my(i)&&F(n.translate("qrcode.copied"),{toastId:`copy-qrcode-${i}`})},[i]);return i?h.createElement("div",{className:oy},h.createElement("span",{className:iy},h.createElement("span",{className:ly},h.createElement(Oy,{value:i,size:170}))),h.createElement("span",{className:sy},n.translate("right.one"),h.createElement("span",{className:ay},n.translate("right.two")," ",h.createElement(ki,{type:"button",source:ai,accessibilityLabel:n.translate("qrcode.copy"),onClick:l})))):null}const Ny="_Row_94ckx_1",Ry="_Hoverable_94ckx_9";function Oi({className:e,children:t,...n}){const r=Ce(e,Ny,n.onMouseEnter||n.onMouseLeave?Ry:void 0);return h.createElement("tr",{className:r,...n},t)}const xa="_Status_1aimo_1",Hp="_success_1aimo_10",Vp="_disconnected_1aimo_11",ka="_error_1aimo_12",Dy={Status:xa,success:Hp,disconnected:Vp,error:ka},Iy=Object.freeze(Object.defineProperty({__proto__:null,Status:xa,default:Dy,disconnected:Vp,error:ka,success:Hp},Symbol.toStringTag,{value:"Module"})),Ay={label:"Connected",tooltipMessage:"No connection issues detected."},$y={label:"Disconnected",tooltipMessage:"Extension not available. Return to the CLI and run the 'dev' command again."},Fy={label:"Build Error",tooltipMessage:"Check the CLI logs about an error in your source code."},zy={success:Ay,disconnected:$y,error:Fy},Uy="_Tooltip_ru6ke_1",By="_TooltipUnderline_ru6ke_9",Bc={Tooltip:Uy,TooltipUnderline:By},jy="_Popover_1ehpl_5",by={Popover:jy},jc=10;function Hy({targetRef:e,text:t}){const n=C.useRef(null),r=()=>{if(!e.current)return{x:0,y:0};const{x:o,y:i,height:l}=e.current.getBoundingClientRect(),{scrollY:s,scrollX:a}=window;return{x:o+a,y:i+l+jc+s}};return C.useLayoutEffect(()=>{if(!n.current||!(e!=null&&e.current))return;let{x:o,y:i}=r();const{innerWidth:l,innerHeight:s}=window,{height:a,width:u}=n.current.getBoundingClientRect();o+u>l&&(o-=u-e.current.getBoundingClientRect().width),i+a>s&&(i-=a+e.current.getBoundingClientRect().height+2*jc),n.current.style.top=`${i}px`,n.current.style.left=`${o}px`},[]),h.createElement("div",{className:by.Popover,role:"tooltip",ref:n},t)}function Vy({children:e,text:t}){const n=C.useRef(null),[r,o]=C.useState(!1),i=()=>{!n.current||r||(typeof e!="string"&&(n.current.firstChild.tabIndex=-1),o(!0))},l=s=>{var a;s.key==="Enter"&&((a=n.current)==null?void 0:a.firstChild).click()};return h.createElement("div",{className:Ce(Bc.Tooltip,typeof e=="string"&&Bc.TooltipUnderline),onMouseEnter:i,onFocus:i,onBlur:()=>o(!1),onMouseLeave:()=>o(!1),onKeyUp:l,ref:n,tabIndex:0},e,r&&h.createElement(Hy,{text:t,targetRef:n}))}function Wp({status:e}){const[t]=De({id:"Status",fallback:zy}),n=e?Iy[e||"error"]:ka;return h.createElement("span",{className:xa},h.createElement("span",{className:n}),h.createElement(Vy,{text:t.translate(`${e}.tooltipMessage`)},t.translate(`${e}.label`)))}const Wy="{installLink} to see changes live. Share preview links with teammates or clients.",Gy="Install your app",Ky={handle:"Handle",preview:"Preview link",mobile:"Mobile",view:"View",status:"Status",refresh:"Refresh",delete:"Delete"},Qy={viewColumnHeader:"Hide your local extensions to view what's in production."},Yy={show:"Show",hide:"Hide",selectAll:"Select all",deselectAll:"Deselect all"},Xy={noExtensions:"No extensions found",noExtensionsForSurface:"No extensions found for the surface: {surface}"},Zy={intro:Wy,introInstallCta:Gy,extensionList:Ky,tooltips:Qy,bulkActions:Yy,errors:Xy};function Jy(){const e=Hr();return C.useMemo(()=>e.state.extensions.map(({uuid:t,type:n})=>({uuid:t,type:n})),[e.state.extensions.length])}function qy(){const[e]=De({id:"Extensions",fallback:Zy}),t=Jy(),{surface:n}=up(),{app:r}=ma();if(!t.length)return h.createElement("div",{className:m0},n?e.translate("errors.noExtensionsForSurface",{surface:n}):e.translate("errors.noExtensions"));const o=e.translate("intro",{installLink:h.createElement("a",{href:r==null?void 0:r.url,target:"_blank","aria-label":e.translate("introInstallCta")},e.translate("introInstallCta"))});return h.createElement("section",{className:h0},ps?null:h.createElement("p",{className:p0},o),h.createElement("table",null,h.createElement("thead",null,h.createElement(Oi,null,h.createElement("th",null,e.translate("extensionList.handle")),h.createElement("th",null,e.translate("extensionList.preview")),h.createElement("th",null,e.translate("extensionList.mobile")),h.createElement("th",null,e.translate("extensionList.status")))),h.createElement("tbody",null,h.createElement(hv,null),t.map(({uuid:i,type:l})=>l==="checkout_post_purchase"?h.createElement(Kv,{key:i,uuid:i}):h.createElement(Tv,{key:i,uuid:i})))))}function eE(){return h.createElement(d0,null,h.createElement(u0,null,h.createElement(ap,{path:"*",element:h.createElement(qy,null)})))}const tE="_Toast_1qbvq_1";function nE(){return h.createElement("div",{className:tE},h.createElement(ds,{position:"bottom-center",theme:"dark",closeButton:!1,pauseOnFocusLoss:!1,closeOnClick:!0,hideProgressBar:!0}),h.createElement("style",null,`.Toastify__toast-body {
|
|
62
|
-
padding: 0 16px;
|
|
63
|
-
margin: 0;
|
|
64
|
-
}`))}const rE="_Theme_1aigu_1";function oE({children:e}){return h.createElement("div",{className:rE},e)}function iE(){return{}.VITE_CONNECTION_URL?{}.VITE_CONNECTION_URL.replace("https","wss").replace("/dev-console",""):`${location.protocol==="http:"?"ws:":"wss:"}//${location.host}/extensions`}const bc=new URLSearchParams(location.search).get("surface"),lE={connection:{url:iE()},surface:mf(bc)?bc:void 0},sE=new ah({locale:"en",onError(e){console.log(e)}});function aE(){return h.createElement(Cm,{options:lE},h.createElement(of.Provider,{value:sE},h.createElement(oE,null,h.createElement(Nm,null,h.createElement(eE,null),h.createElement(nE,null),h.createElement(pv,null)))))}ar.render(h.createElement(h.StrictMode,null,h.createElement(aE,null)),document.getElementById("root"));
|