showai-reader 0.10.0-reader.7ttebdmo → 0.10.0-reader.aq5ymwut
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/README.md +1 -1
- package/chunks/CardGrid-CBFTKZVN.js +2 -0
- package/chunks/CommandReference-EY22X3QM.js +3 -0
- package/chunks/{ComparisonMatrix-LFBHHO3A.js → ComparisonMatrix-L6NJIIZC.js} +1 -1
- package/chunks/{EventTimeline-TS5HI5GA.js → EventTimeline-YADOF2QZ.js} +1 -1
- package/chunks/{ExperimentTracker-MSRAHV5J.js → ExperimentTracker-4SSNBJ4M.js} +1 -1
- package/chunks/{ExternalDiagram-B6TDNZM4.js → ExternalDiagram-MQDNF7ZU.js} +1 -1
- package/chunks/{Flowchart-FDIMKFEA.js → Flowchart-HNUPZXJV.js} +1 -1
- package/chunks/{G2Chart-QP5UF6HK.js → G2Chart-UDU7DCPL.js} +2 -2
- package/chunks/LayerDiagram-AF2LXWXM.js +2 -0
- package/chunks/{Mindmap-6NWSYUKU.js → Mindmap-2LAHDLBK.js} +1 -1
- package/chunks/RichTextEditor-YNM6CQXB.js +157 -0
- package/chunks/{Roadmap-QWD7IZHX.js → Roadmap-LP2GFEHZ.js} +1 -1
- package/chunks/{Scene3D-Q5MGPU3X.js → Scene3D-5YJOMYXR.js} +2 -2
- package/chunks/{SequenceDiagram-WA7DFSY3.js → SequenceDiagram-SW2SZLVA.js} +1 -1
- package/chunks/{StatusTree-EHNSDOVH.js → StatusTree-VSAUQHRZ.js} +1 -1
- package/chunks/StepGuide-S6AHNGDL.js +1 -0
- package/chunks/StructureBrowser-TCH6NCWI.js +3 -0
- package/chunks/{Waterfall-A5MPISUU.js → Waterfall-3WOZCSRE.js} +1 -1
- package/chunks/chunk-5CTTY5BQ.js +2 -0
- package/chunks/chunk-CFW5JGMW.js +4 -0
- package/chunks/chunk-GB7ZVF7X.js +1 -0
- package/chunks/chunk-GLP5VV7P.js +1 -0
- package/chunks/{chunk-R2RMNI2B.js → chunk-IKXQEYHR.js} +1 -1
- package/chunks/{chunk-JAQUAFGK.js → chunk-KK52BZYB.js} +2 -2
- package/chunks/{chunk-NLCSXEUT.js → chunk-KQR52I3G.js} +8 -8
- package/chunks/{chunk-PTZCSSDG.js → chunk-MXNP25YA.js} +1 -1
- package/chunks/chunk-OJMAZ5B2.js +2 -0
- package/chunks/{chunk-NWWWOZDQ.js → chunk-RKCLMBWU.js} +1 -1
- package/chunks/{chunk-7ZRIRZ4A.js → chunk-RQY45SXE.js} +1 -1
- package/chunks/chunk-TUMMRXVT.js +1 -0
- package/chunks/chunk-UAOQCK47.js +1 -0
- package/chunks/{chunk-WRXJZR6G.js → chunk-XBPILGCT.js} +44 -39
- package/chunks/chunk-ZSTUMTZM.js +1 -0
- package/chunks/chunk-ZUTEJY6A.js +9 -0
- package/index.js +1 -1
- package/manifest.json +5 -5
- package/package.json +1 -1
- package/reader-AQ5YMWUT.js +51 -0
- package/chunks/CardGrid-6WXY2OUD.js +0 -2
- package/chunks/CommandReference-CKBSDW6N.js +0 -3
- package/chunks/LayerDiagram-HTH3JN4D.js +0 -2
- package/chunks/RichTextEditor-AC7S457D.js +0 -156
- package/chunks/StepGuide-UE7JVBQD.js +0 -1
- package/chunks/StructureBrowser-DG3TSDJF.js +0 -3
- package/chunks/chunk-7K7GQKOA.js +0 -1
- package/chunks/chunk-ECJLHLTK.js +0 -8
- package/chunks/chunk-GABDVURY.js +0 -1
- package/chunks/chunk-KYWOOES7.js +0 -2
- package/chunks/chunk-RHJ236MQ.js +0 -2
- package/chunks/chunk-WLKJ25NO.js +0 -1
- package/chunks/chunk-YOGTJ6FI.js +0 -4
- package/reader-7TTEBDMO.js +0 -52
- /package/chunks/{G2Chart-QP5UF6HK.js.LEGAL.txt → G2Chart-UDU7DCPL.js.LEGAL.txt} +0 -0
- /package/chunks/{Scene3D-Q5MGPU3X.js.LEGAL.txt → Scene3D-5YJOMYXR.js.LEGAL.txt} +0 -0
- /package/chunks/{chunk-KYWOOES7.js.LEGAL.txt → chunk-5CTTY5BQ.js.LEGAL.txt} +0 -0
- /package/chunks/{chunk-JAQUAFGK.js.LEGAL.txt → chunk-KK52BZYB.js.LEGAL.txt} +0 -0
- /package/chunks/{chunk-WRXJZR6G.js.LEGAL.txt → chunk-XBPILGCT.js.LEGAL.txt} +0 -0
- /package/{reader-7TTEBDMO.js.LEGAL.txt → reader-AQ5YMWUT.js.LEGAL.txt} +0 -0
package/reader-7TTEBDMO.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import{h as Ec}from"./chunks/chunk-3RZMLHCB.js";import{b as S0}from"./chunks/chunk-JXKAISUX.js";import{a as w0}from"./chunks/chunk-C4JCEMQN.js";import{a as f6,b as x0,c as g6,d as y6}from"./chunks/chunk-GABDVURY.js";import{a as k0}from"./chunks/chunk-77DN5DLU.js";import{a as kc,b as mp,c as Sc}from"./chunks/chunk-AIBH6MTQ.js";import{a as Cc}from"./chunks/chunk-NWWWOZDQ.js";import{f as Tc}from"./chunks/chunk-7ZRIRZ4A.js";import{f as Uo}from"./chunks/chunk-WLKJ25NO.js";import{$ as tt,A as o6,B as u0,C as cp,D as p0,E as m0,F as r6,G as vc,H as xc,I as f0,J as g0,K as Lt,L as dp,M as _l,N as wc,O as b0,P as bo,Q as i6,R as l6,S as Ul,T as u6,U as up,V as Vl,W as p6,X as h0,Y as m6,Z as pp,_ as pr,a as Pl,aa as E0,b as Kf,ba as M6,c as op,ca as mr,d as yc,da as Tn,e as Yf,ea as I6,f as ur,fa as z0,g as Bl,ga as A0,h as Jf,ha as N6,i as go,ia as O6,j as c0,k as Xf,ka as L6,l as Qf,m as jo,n as d0,o as rp,p as jl,q as Hl,r as ip,s as $n,t as lp,u as e6,v as t6,w as a6,x as n6,y as Ho,z as sp}from"./chunks/chunk-ECJLHLTK.js";import{D as b6,J as h6}from"./chunks/chunk-NLCSXEUT.js";import{a as fp,b as le,c as ql,d as _o,e as Fn,f as Wn,g as C0,h as E6,i as T0,j as Fl}from"./chunks/chunk-SNEZ3O5V.js";import{a as gp}from"./chunks/chunk-MENLQ7WW.js";import{a as v0,c as z6,d as A6}from"./chunks/chunk-KYWOOES7.js";import{a as w6,b as k6,c as S6,d as C6,e as T6}from"./chunks/chunk-PTZCSSDG.js";import"./chunks/chunk-5AW2WUSZ.js";import{b as y0}from"./chunks/chunk-DG67SWQA.js";import{b as Zl}from"./chunks/chunk-KF47DKNH.js";import{a as I0,b as N0,c as D6,d as Ka,e as ya,f as Ta,g as He}from"./chunks/chunk-7K7GQKOA.js";import{A as Ol,Aa as jf,Ab as ue,B as pn,Ba as i0,C as _r,D as yf,Da as Ot,Db as Wa,E as vf,Ea as Hf,Eb as M0,F as qu,Fa as _f,I as xf,Ia as Uf,J as Q1,Ja as Qu,K as wf,Ka as Vf,L as Ur,M as e0,Ma as ep,N as kf,Na as Rl,O as Sf,Oa as tp,P as Vi,Pa as Zf,Q as Cf,R as Bo,Ra as Gf,S as Fu,Sa as $f,T as Tf,U as t0,Ua as qf,V as Ef,Va as ap,W as a0,X as Wu,_ as zf,a as ct,b as rf,c as Ne,ca as Af,d as lf,db as pa,e as sf,ea as n0,eb as l0,f as cf,g as df,ga as Mf,h as uf,ha as o0,hb as np,i as pf,ia as If,ib as s0,j as Vu,ja as Ku,jb as Ff,k as mf,kb as Wf,l as ff,la as Nf,lb as on,m as Dl,ma as Df,mb as pe,n as gf,na as Yu,nb as Gn,oa as Ju,p as J1,pa as Of,q as Hr,qa as r0,r as Ui,rb as qn,sb as s6,t as bf,ta as Ll,u as Zu,ua as Lf,v as Gu,va as Rf,w as $u,wa as Xu,wb as c6,x as hf,xa as Pf,xb as d6,y as X1,ya as hc,z as Fa,za as Bf,zb as $l}from"./chunks/chunk-WRXJZR6G.js";import{a as rt,b as v6,c as Gl,d as x6,f as vt}from"./chunks/chunk-J6IRWTF7.js";import{a as Nl,c as U}from"./chunks/chunk-DCANE7XH.js";var $6=Nl(Zt=>{"use strict";function vp(e,t){var a=e.length;e.push(t);e:for(;0<a;){var n=a-1>>>1,o=e[n];if(0<O0(o,t))e[n]=t,e[a]=o,a=n;else break e}}function Vo(e){return e.length===0?null:e[0]}function R0(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var n=0,o=e.length,r=o>>>1;n<r;){var i=2*(n+1)-1,l=e[i],s=i+1,c=e[s];if(0>O0(l,a))s<o&&0>O0(c,l)?(e[n]=c,e[s]=a,n=s):(e[n]=l,e[i]=a,n=i);else if(s<o&&0>O0(c,a))e[n]=c,e[s]=a,n=s;else break e}}return t}function O0(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}Zt.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(P6=performance,Zt.unstable_now=function(){return P6.now()}):(bp=Date,B6=bp.now(),Zt.unstable_now=function(){return bp.now()-B6});var P6,bp,B6,fr=[],Vr=[],dw=1,Yn=null,Ya=3,xp=!1,Ac=!1,Mc=!1,wp=!1,_6=typeof setTimeout=="function"?setTimeout:null,U6=typeof clearTimeout=="function"?clearTimeout:null,j6=typeof setImmediate<"u"?setImmediate:null;function L0(e){for(var t=Vo(Vr);t!==null;){if(t.callback===null)R0(Vr);else if(t.startTime<=e)R0(Vr),t.sortIndex=t.expirationTime,vp(fr,t);else break;t=Vo(Vr)}}function kp(e){if(Mc=!1,L0(e),!Ac)if(Vo(fr)!==null)Ac=!0,Jl||(Jl=!0,Yl());else{var t=Vo(Vr);t!==null&&Sp(kp,t.startTime-e)}}var Jl=!1,Ic=-1,V6=5,Z6=-1;function G6(){return wp?!0:!(Zt.unstable_now()-Z6<V6)}function hp(){if(wp=!1,Jl){var e=Zt.unstable_now();Z6=e;var t=!0;try{e:{Ac=!1,Mc&&(Mc=!1,U6(Ic),Ic=-1),xp=!0;var a=Ya;try{t:{for(L0(e),Yn=Vo(fr);Yn!==null&&!(Yn.expirationTime>e&&G6());){var n=Yn.callback;if(typeof n=="function"){Yn.callback=null,Ya=Yn.priorityLevel;var o=n(Yn.expirationTime<=e);if(e=Zt.unstable_now(),typeof o=="function"){Yn.callback=o,L0(e),t=!0;break t}Yn===Vo(fr)&&R0(fr),L0(e)}else R0(fr);Yn=Vo(fr)}if(Yn!==null)t=!0;else{var r=Vo(Vr);r!==null&&Sp(kp,r.startTime-e),t=!1}}break e}finally{Yn=null,Ya=a,xp=!1}t=void 0}}finally{t?Yl():Jl=!1}}}var Yl;typeof j6=="function"?Yl=function(){j6(hp)}:typeof MessageChannel<"u"?(yp=new MessageChannel,H6=yp.port2,yp.port1.onmessage=hp,Yl=function(){H6.postMessage(null)}):Yl=function(){_6(hp,0)};var yp,H6;function Sp(e,t){Ic=_6(function(){e(Zt.unstable_now())},t)}Zt.unstable_IdlePriority=5;Zt.unstable_ImmediatePriority=1;Zt.unstable_LowPriority=4;Zt.unstable_NormalPriority=3;Zt.unstable_Profiling=null;Zt.unstable_UserBlockingPriority=2;Zt.unstable_cancelCallback=function(e){e.callback=null};Zt.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V6=0<e?Math.floor(1e3/e):5};Zt.unstable_getCurrentPriorityLevel=function(){return Ya};Zt.unstable_next=function(e){switch(Ya){case 1:case 2:case 3:var t=3;break;default:t=Ya}var a=Ya;Ya=t;try{return e()}finally{Ya=a}};Zt.unstable_requestPaint=function(){wp=!0};Zt.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=Ya;Ya=e;try{return t()}finally{Ya=a}};Zt.unstable_scheduleCallback=function(e,t,a){var n=Zt.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?n+a:n):a=n,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:dw++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>n?(e.sortIndex=a,vp(Vr,e),Vo(fr)===null&&e===Vo(Vr)&&(Mc?(U6(Ic),Ic=-1):Mc=!0,Sp(kp,a-n))):(e.sortIndex=o,vp(fr,e),Ac||xp||(Ac=!0,Jl||(Jl=!0,Yl()))),e};Zt.unstable_shouldYield=G6;Zt.unstable_wrapCallback=function(e){var t=Ya;return function(){var a=Ya;Ya=t;try{return e.apply(this,arguments)}finally{Ya=a}}}});var F6=Nl((kz,q6)=>{"use strict";q6.exports=$6()});var O9=Nl(b2=>{"use strict";var wa=F6(),D8=Ne(),uw=Gn();function te(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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."}function O8(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h1(e){for(var t=e,a=t;a&&!a.alternate;)t=a,(t.flags&4098)!==0&&(e=t.return),a=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function L8(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 R8(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function W6(e){if(h1(e)!==e)throw Error(te(188))}function pw(e){var t=e.alternate;if(!t){if(t=h1(e),t===null)throw Error(te(188));return t!==e?null:e}for(var a=e,n=t;;){var o=a.return;if(o===null)break;var r=o.alternate;if(r===null){if(n=o.return,n!==null){a=n;continue}break}if(o.child===r.child){for(r=o.child;r;){if(r===a)return W6(o),e;if(r===n)return W6(o),t;r=r.sibling}throw Error(te(188))}if(a.return!==n.return)a=o,n=r;else{for(var i=!1,l=o.child;l;){if(l===a){i=!0,a=o,n=r;break}if(l===n){i=!0,n=o,a=r;break}l=l.sibling}if(!i){for(l=r.child;l;){if(l===a){i=!0,a=r,n=o;break}if(l===n){i=!0,n=r,a=o;break}l=l.sibling}if(!i)throw Error(te(189))}}if(a.alternate!==n)throw Error(te(190))}if(a.tag!==3)throw Error(te(188));return a.stateNode.current===a?e:t}function P8(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=P8(e),t!==null)return t;e=e.sibling}return null}function yn(e,t,a,n,o,r){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&a(e,n,o,r)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&yn(e.child,t,a,n,o,r))return!0;e=e.sibling}return!1}function cl(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function K6(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function B8(e){var t=[null,null],a=cl(e);return a===null||j8(t,e,a.child,{foundSelf:!1}),t}function j8(e,t,a,n){for(;a!==null;){if(a===t)n.foundSelf=!0;else if(a.tag===5||a.tag===27||a.tag===6){if(n.foundSelf)return e[1]=a,!0;e[0]=a}else if((a.tag!==22||a.memoizedState===null)&&j8(e,t,a.child,n))return!0;a=a.sibling}return!1}function xa(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(te(559))}}var os=null,t3=null;function mw(e,t,a){return e===a?!0:e===t?(os=e,!0):!1}function fw(e,t,a){return e===a?(t3=e,!1):e===t?(t3!==null&&(os=e),!0):!1}function Y6(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function a3(e,t,a){for(var n=0,o=e;o;o=a(o))n++;o=0;for(var r=t;r;r=a(r))o++;for(;0<n-o;)e=a(e),n--;for(;0<o-n;)t=a(t),o--;for(;n--;){if(e===t||t!==null&&e===t.alternate)return e;e=a(e),t=a(t)}return null}var It=Object.assign,gw=Symbol.for("react.element"),P0=Symbol.for("react.transitional.element"),Bc=Symbol.for("react.portal"),rs=Symbol.for("react.fragment"),H8=Symbol.for("react.strict_mode"),n3=Symbol.for("react.profiler"),_8=Symbol.for("react.consumer"),Wo=Symbol.for("react.context"),p4=Symbol.for("react.forward_ref"),o3=Symbol.for("react.suspense"),r3=Symbol.for("react.suspense_list"),m4=Symbol.for("react.memo"),qr=Symbol.for("react.lazy"),i3=Symbol.for("react.activity"),bw=Symbol.for("react.legacy_hidden"),hw=Symbol.for("react.memo_cache_sentinel"),l3=Symbol.for("react.view_transition"),yw=Symbol.for("react.recoverable"),J6=Symbol.iterator;function Nc(e){return e===null||typeof e!="object"?null:(e=J6&&e[J6]||e["@@iterator"],typeof e=="function"?e:null)}var vw=Symbol.for("react.client.reference");function s3(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===vw?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case rs:return"Fragment";case n3:return"Profiler";case H8:return"StrictMode";case o3:return"Suspense";case r3:return"SuspenseList";case i3:return"Activity";case l3:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case Bc:return"Portal";case Wo:return e.displayName||"Context";case _8:return(e._context.displayName||"Context")+".Consumer";case p4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case m4:return t=e.displayName||null,t!==null?t:s3(e.type)||"Memo";case qr:t=e._payload,e=e._init;try{return s3(e(t))}catch{}}return null}var jc=Array.isArray,Ze=D8.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,gt=uw.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Yi={pending:!1,data:null,method:null,action:null},c3=[],is=-1;function tr(e){return{current:e}}function Ba(e){0>is||(e.current=c3[is],c3[is]=null,is--)}function Bt(e,t){is++,c3[is]=e.current,e.current=t}var Xo=tr(null),t1=tr(null),ti=tr(null),kd=tr(null);function Sd(e,t){switch(Bt(ti,t),Bt(t1,e),Bt(Xo,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?u8(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=u8(t),e=s9(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ba(Xo),Bt(Xo,e)}function Es(){Ba(Xo),Ba(t1),Ba(ti)}function d3(e){var t=e.memoizedState;t!==null&&(Ps._currentValue=t.memoizedState,Bt(kd,e)),t=Xo.current;var a=s9(t,e.type);t!==a&&(Bt(t1,e),Bt(Xo,a))}function Cd(e){t1.current===e&&(Ba(Xo),Ba(t1)),kd.current===e&&(Ba(kd),Ps._currentValue=Yi)}var Cp,X6;function Gr(e){if(Cp===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Cp=t&&t[1]||"",X6=-1<a.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Cp+e+X6}var Tp=!1;function Ep(e,t){if(!e||Tp)return"";Tp=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(y){var p=y}Reflect.construct(e,[],u)}else{try{u.call()}catch(y){p=y}u=!1;try{var g=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),u=!0,new e}finally{u&&(g!==void 0?Object.defineProperty(e.prototype,"props",g):delete e.prototype.props)}}}else{try{throw Error()}catch(y){p=y}(u=e())&&typeof u.catch=="function"&&u.catch(function(){})}}catch(y){if(y&&p&&typeof y.stack=="string")return[y.stack,p.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),i=r[0],l=r[1];if(i&&l){var s=i.split(`
|
|
4
|
-
`),c=l.split(`
|
|
5
|
-
`);for(o=n=0;n<s.length&&!s[n].includes("DetermineComponentFrameRoot");)n++;for(;o<c.length&&!c[o].includes("DetermineComponentFrameRoot");)o++;if(n===s.length||o===c.length)for(n=s.length-1,o=c.length-1;1<=n&&0<=o&&s[n]!==c[o];)o--;for(;1<=n&&0<=o;n--,o--)if(s[n]!==c[o]){if(n!==1||o!==1)do if(n--,o--,0>o||s[n]!==c[o]){var d=`
|
|
6
|
-
`+s[n].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=n&&0<=o);break}}}finally{Tp=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Gr(a):""}function xw(e,t){switch(e.tag){case 26:case 27:case 5:return Gr(e.type);case 16:return Gr("Lazy");case 13:return e.child!==t&&t!==null?Gr("Suspense Fallback"):Gr("Suspense");case 19:return Gr("SuspenseList");case 0:case 15:return Ep(e.type,!1);case 11:return Ep(e.type.render,!1);case 1:return Ep(e.type,!0);case 31:return Gr("Activity");case 30:return Gr("ViewTransition");default:return""}}function Q6(e){try{var t="",a=null;do t+=xw(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
|
7
|
-
Error generating stack: `+n.message+`
|
|
8
|
-
`+n.stack}}var u3=Object.prototype.hasOwnProperty,f4=wa.unstable_scheduleCallback,zp=wa.unstable_cancelCallback,ww=wa.unstable_shouldYield,kw=wa.unstable_requestPaint,Nn=wa.unstable_now,Sw=wa.unstable_getCurrentPriorityLevel,U8=wa.unstable_ImmediatePriority,V8=wa.unstable_UserBlockingPriority,Td=wa.unstable_NormalPriority,Cw=wa.unstable_LowPriority,Z8=wa.unstable_IdlePriority,Tw=wa.log,Ew=wa.unstable_setDisableYieldValue,y1=null,Dn=null;function Kr(e){if(typeof Tw=="function"&&Ew(e),Dn&&typeof Dn.setStrictMode=="function")try{Dn.setStrictMode(y1,e)}catch{}}var On=Math.clz32?Math.clz32:Mw,zw=Math.log,Aw=Math.LN2;function Mw(e){return e>>>=0,e===0?32:31-(zw(e)/Aw|0)|0}var B0=256,j0=262144,H0=4194304;function $i(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Jd(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var o=0,r=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var l=n&134217727;return l!==0?(n=l&~r,n!==0?o=$i(n):(i&=l,i!==0?o=$i(i):a||(a=l&~e,a!==0&&(o=$i(a))))):(l=n&~r,l!==0?o=$i(l):i!==0?o=$i(i):a||(a=n&~e,a!==0&&(o=$i(a)))),o===0?0:t!==0&&t!==o&&(t&r)===0&&(r=o&-o,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:o}function v1(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function G8(e,t){(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-On(a),o=1<<n;t|=e[n],a&=~o}return t}function Iw(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function $8(){var e=H0;return H0<<=1,(H0&62914560)===0&&(H0=4194304),e}function Ap(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function x1(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Nw(e,t,a,n,o,r){var i=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,c=e.hiddenUpdates;for(a=i&~a;0<a;){var d=31-On(a),u=1<<d;l[d]=0,s[d]=-1;var p=c[d];if(p!==null)for(c[d]=null,d=0;d<p.length;d++){var g=p[d];g!==null&&(g.lane&=-536870913)}a&=~u}n!==0&&q8(e,n,0),r!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=r&~(i&~t))}function q8(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-On(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function F8(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-On(a),o=1<<n;o&t|e[n]&t&&(e[n]|=t),a&=~o}}function W8(e,t){var a=t&-t;return a=(a&42)!==0?1:g4(a),(a&(e.suspendedLanes|t))!==0?0:a}function g4(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function b4(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function K8(){var e=gt.p;return e!==0?e:(e=window.event,e===void 0?32:I9(e.type))}function e7(e,t){var a=gt.p;try{return gt.p=e,t()}finally{gt.p=a}}var zr=Math.random().toString(36).slice(2),Ra="__reactFiber$"+zr,vn="__reactProps$"+zr,Hs="__reactContainer$"+zr,t7="__reactEvents$"+zr,Dw="__reactListeners$"+zr,Ow="__reactHandles$"+zr,a7="__reactResources$"+zr,w1="__reactMarker$"+zr,Ed="__reactLoad$"+zr;function Xd(e){delete e[Ra],delete e[vn],delete e[Dw],delete e[Ow]}function Wi(e){var t;if(t=e[Ra])return t;for(var a=e.parentNode;a;){if(t=a[Hs]||a[Ra]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=v8(e);e!==null;){if(a=e[Ra])return a;e=v8(e)}return t}e=a,a=e.parentNode}return null}function _s(e){if(e=e[Ra]||e[Hs]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Hc(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(te(33))}function bs(e){var t=e[a7];return t||(t=e[a7]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Aa(e){e[w1]=!0}function Y8(e){e[Ed]=void 0}var J8=new Set,X8={};function dl(e,t){zs(e,t),zs(e+"Capture",t)}function zs(e,t){for(X8[e]=t,e=0;e<t.length;e++)J8.add(t[e])}var Lw=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),n7={},o7={};function Rw(e){return u3.call(o7,e)?!0:u3.call(n7,e)?!1:Lw.test(e)?o7[e]=!0:(n7[e]=!0,!1)}var ut=!1;function r7(){var e=ut;return ut=!1,e}function nd(e,t,a){if(Rw(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,a)}}function _0(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,a)}}function gr(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,n)}}function zn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Q8(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pw(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,r=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(i){a=""+i,r.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function p3(e){if(!e._valueTracker){var t=Q8(e)?"checked":"value";e._valueTracker=Pw(e,t,""+e[t])}}function eg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Q8(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}var Bw=/[\n"\\]/g;function to(e){return e.replace(Bw,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function m3(e,t,a,n,o,r,i,l){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+zn(t)):e.value!==""+zn(t)&&(e.value=""+zn(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?i==="number"&&e.value==t?Mp(e,zn(e.value)):Mp(e,zn(t)):a!=null?Mp(e,zn(a)):n!=null&&e.removeAttribute("value"),o==null&&r!=null&&(e.defaultChecked=!!r),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+zn(l):e.removeAttribute("name")}function tg(e,t,a,n,o,r,i,l){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){p3(e);return}a=a!=null?""+zn(a):"",t=t!=null?""+zn(t):a,l||t===e.value||(e.value=t),e.defaultValue=t}n=n??o,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=l?e.checked:!!n,e.defaultChecked=!!n,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i),p3(e)}function Mp(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function hs(e,t,a,n){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&n&&(e[a].defaultSelected=!0)}else{for(a=""+zn(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,n&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function ag(e,t,a){if(t!=null&&(t=""+zn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+zn(a):""}function ng(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(te(92));if(jc(n)){if(1<n.length)throw Error(te(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=zn(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),p3(e)}function As(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var jw=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function i7(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||jw.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function og(e,t,a){if(t!=null&&typeof t!="object")throw Error(te(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="",ut=!0);for(var o in t)n=t[o],t.hasOwnProperty(o)&&a[o]!==n&&(i7(e,o,n),ut=!0)}else for(var r in t)t.hasOwnProperty(r)&&i7(e,r,t[r])}function h4(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Hw=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),_w=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function od(e){return _w.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ko(){}var f3=null;function y4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ls=null,ys=null;function l7(e){var t=_s(e);if(t&&(e=t.stateNode)){var a=e[vn]||null;e:switch(e=t.stateNode,t.type){case"input":if(m3(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+to(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var o=n[vn]||null;if(!o)throw Error(te(90));m3(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&eg(n)}break e;case"textarea":ag(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&hs(e,!!a.multiple,t,!1)}}}var Ip=!1;function rg(e,t,a){if(Ip)return e(t,a);Ip=!0;try{var n=e(t);return n}finally{if(Ip=!1,(ls!==null||ys!==null)&&(p2(),ls&&(t=ls,e=ys,ys=ls=null,l7(t),e)))for(t=0;t<e.length;t++)l7(e[t])}}function a1(e,t){var a=e.stateNode;if(a===null)return null;var n=a[vn]||null;if(n===null)return null;a=n[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":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(te(231,t,typeof a));return a}var wr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g3=!1;if(wr)try{Xl={},Object.defineProperty(Xl,"passive",{get:function(){g3=!0}}),window.addEventListener("test",Xl,Xl),window.removeEventListener("test",Xl,Xl)}catch{g3=!1}var Xl,Yr=null,v4=null,rd=null;function ig(){if(rd)return rd;var e,t=v4,a=t.length,n,o="value"in Yr?Yr.value:Yr.textContent,r=o.length;for(e=0;e<a&&t[e]===o[e];e++);var i=a-e;for(n=1;n<=i&&t[a-n]===o[r-n];n++);return rd=o.slice(e,1<n?1-n:void 0)}function id(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 U0(){return!0}function s7(){return!1}function cn(e){function t(a,n,o,r,i){this._reactName=a,this._targetInst=o,this.type=n,this.nativeEvent=r,this.target=i,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(a=e[l],this[l]=a?a(r):r[l]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?U0:s7,this.isPropagationStopped=s7,this}return It(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=U0)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=U0)},persist:function(){},isPersistent:U0}),t}var bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qd=cn(bi),k1=It({},bi,{view:0,detail:0}),Uw=cn(k1),Np,Dp,Dc,e2=It({},k1,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:x4,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!==Dc&&(Dc&&e.type==="mousemove"?(Np=e.screenX-Dc.screenX,Dp=e.screenY-Dc.screenY):Dp=Np=0,Dc=e),Np)},movementY:function(e){return"movementY"in e?e.movementY:Dp}}),c7=cn(e2),Vw=It({},e2,{dataTransfer:0}),Zw=cn(Vw),Gw=It({},k1,{relatedTarget:0}),Op=cn(Gw),$w=It({},bi,{animationName:0,elapsedTime:0,pseudoElement:0}),qw=cn($w),Fw=It({},bi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ww=cn(Fw),Kw=It({},bi,{data:0}),d7=cn(Kw),Yw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jw={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"},Xw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qw(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xw[e])?!!t[e]:!1}function x4(){return Qw}var ek=It({},k1,{key:function(e){if(e.key){var t=Yw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=id(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Jw[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:x4,charCode:function(e){return e.type==="keypress"?id(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?id(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),tk=cn(ek),ak=It({},e2,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),u7=cn(ak),nk=It({},bi,{submitter:0}),ok=cn(nk),rk=It({},k1,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:x4}),ik=cn(rk),lk=It({},bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),sk=cn(lk),ck=It({},e2,{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}),dk=cn(ck),uk=It({},bi,{newState:0,oldState:0,source:0}),pk=cn(uk),mk=[9,13,27,32],w4=wr&&"CompositionEvent"in window,Vc=null;wr&&"documentMode"in document&&(Vc=document.documentMode);var fk=wr&&"TextEvent"in window&&!Vc,lg=wr&&(!w4||Vc&&8<Vc&&11>=Vc),p7=" ",m7=!1;function sg(e,t){switch(e){case"keyup":return mk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ss=!1;function gk(e,t){switch(e){case"compositionend":return cg(t);case"keypress":return t.which!==32?null:(m7=!0,p7);case"textInput":return e=t.data,e===p7&&m7?null:e;default:return null}}function bk(e,t){if(ss)return e==="compositionend"||!w4&&sg(e,t)?(e=ig(),rd=v4=Yr=null,ss=!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 lg&&t.locale!=="ko"?null:t.data;default:return null}}var hk={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 f7(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!hk[e.type]:t==="textarea"}function dg(e,t,a,n){ls?ys?ys.push(n):ys=[n]:ls=n,t=Wd(t,"onChange"),0<t.length&&(a=new Qd("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var Zc=null,n1=null;function yk(e){r9(e,0)}function t2(e){var t=Hc(e);if(eg(t))return e}function g7(e,t){if(e==="change")return t}var ug=!1;wr&&(wr?(Z0="oninput"in document,Z0||(Lp=document.createElement("div"),Lp.setAttribute("oninput","return;"),Z0=typeof Lp.oninput=="function"),V0=Z0):V0=!1,ug=V0&&(!document.documentMode||9<document.documentMode));var V0,Z0,Lp;function b7(){Zc&&(Zc.detachEvent("onpropertychange",pg),n1=Zc=null)}function pg(e){if(e.propertyName==="value"&&t2(n1)){var t=[];dg(t,n1,e,y4(e)),rg(yk,t)}}function vk(e,t,a){e==="focusin"?(b7(),Zc=t,n1=a,Zc.attachEvent("onpropertychange",pg)):e==="focusout"&&b7()}function xk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return t2(n1)}function wk(e,t){if(e==="click")return t2(t)}function kk(e,t){if(e==="input"||e==="change")return t2(t)}function Sk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rn=typeof Object.is=="function"?Object.is:Sk;function o1(e,t){if(Rn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var o=a[n];if(!u3.call(t,o)||!Rn(e[o],t[o]))return!1}return!0}function b3(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 h7(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function y7(e,t){var a=h7(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=h7(a)}}function mg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function fg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=b3(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=b3(e.document)}return t}function k4(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 Ck=wr&&"documentMode"in document&&11>=document.documentMode,cs=null,h3=null,Gc=null,y3=!1;function v7(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;y3||cs==null||cs!==b3(n)||(n=cs,"selectionStart"in n&&k4(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),Gc&&o1(Gc,n)||(Gc=n,n=Wd(h3,"onSelect"),0<n.length&&(t=new Qd("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=cs)))}function Zi(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var ds={animationend:Zi("Animation","AnimationEnd"),animationiteration:Zi("Animation","AnimationIteration"),animationstart:Zi("Animation","AnimationStart"),transitionrun:Zi("Transition","TransitionRun"),transitionstart:Zi("Transition","TransitionStart"),transitioncancel:Zi("Transition","TransitionCancel"),transitionend:Zi("Transition","TransitionEnd")},Rp={},gg={};wr&&(gg=document.createElement("div").style,"AnimationEvent"in window||(delete ds.animationend.animation,delete ds.animationiteration.animation,delete ds.animationstart.animation),"TransitionEvent"in window||delete ds.transitionend.transition);function ul(e){if(Rp[e])return Rp[e];if(!ds[e])return e;var t=ds[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in gg)return Rp[e]=t[a];return e}var bg=ul("animationend"),hg=ul("animationiteration"),yg=ul("animationstart"),Tk=ul("transitionrun"),Ek=ul("transitionstart"),zk=ul("transitioncancel"),vg=ul("transitionend"),xg=new Map,v3="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");v3.push("scrollEnd");function ko(e,t){xg.set(e,t),dl(t,[e])}var Ak=0;function kr(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=wo.identifierPrefix;var a=Ak++;return e="_"+e+"t_"+a.toString(32)+"_",t.autoName=e}function x7(e){if(e==null||typeof e=="string")return e;var t=null,a=Ts;if(a!==null)for(var n=0;n<a.length;n++){var o=e[a[n]];if(o!=null){if(o==="none")return"none";t=t==null?o:t+(" "+o)}}return t??e.default}function Ar(e,t){return e=x7(e),t=x7(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var zd=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Xn=[],us=0,S4=0;function a2(){for(var e=us,t=S4=us=0;t<e;){var a=Xn[t];Xn[t++]=null;var n=Xn[t];Xn[t++]=null;var o=Xn[t];Xn[t++]=null;var r=Xn[t];if(Xn[t++]=null,n!==null&&o!==null){var i=n.pending;i===null?o.next=o:(o.next=i.next,i.next=o),n.pending=o}r!==0&&wg(a,o,r)}}function n2(e,t,a,n){Xn[us++]=e,Xn[us++]=t,Xn[us++]=a,Xn[us++]=n,S4|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function C4(e,t,a,n){return n2(e,t,a,n),Ad(e)}function pl(e,t){return n2(e,null,null,t),Ad(e)}function wg(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var o=!1,r=e.return;r!==null;)r.childLanes|=a,n=r.alternate,n!==null&&(n.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(o=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,o&&t!==null&&(o=31-On(a),e=r.hiddenUpdates,n=e[o],n===null?e[o]=[t]:n.push(t),t.lane=a|536870912),r):null}function Ad(e){if(50<e1)throw e1=0,bd=null,Error(te(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ps={};function Mk(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function bn(e,t,a,n){return new Mk(e,t,a,n)}function T4(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vr(e,t){var a=e.alternate;return a===null?(a=bn(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&1206910976,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function kg(e,t){e.flags&=1206910978;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ld(e,t,a,n,o,r){var i=0;if(n=e,typeof n=="function")T4(n)&&(i=1);else if(typeof n=="string")i=tC(e,a,Xo.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(n){case i3:return e=bn(31,a,t,o),e.elementType=i3,e.lanes=r,e;case rs:return Ji(a.children,o,r,t);case H8:i=8,o|=24;break;case n3:return e=bn(12,a,t,o|2),e.elementType=n3,e.lanes=r,e;case o3:return e=bn(13,a,t,o),e.elementType=o3,e.lanes=r,e;case r3:return e=bn(19,a,t,o),e.elementType=r3,e.lanes=r,e;case bw:case l3:return e=o|32,e=bn(30,a,t,e),e.elementType=l3,e.lanes=r,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case Wo:i=10;break e;case _8:i=9;break e;case p4:i=11;break e;case m4:i=14;break e;case qr:i=16,n=null;break e}i=29,a=Error(te(130,e===null?"null":typeof e,"")),n=null}return t=bn(i,a,t,o),t.elementType=e,t.type=n,t.lanes=r,t}function Ji(e,t,a,n){return e=bn(7,e,n,t),e.lanes=a,e}function Pp(e,t,a){return e=bn(6,e,null,t),e.lanes=a,e}function Sg(e){var t=bn(18,null,null,0);return t.stateNode=e,t}function Bp(e,t,a){return t=bn(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var w7=new WeakMap;function ao(e,t){if(typeof e=="object"&&e!==null){var a=w7.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Q6(t)},w7.set(e,t),t)}return{value:e,source:t,stack:Q6(t)}}var ms=[],fs=0,Md=null,r1=0,Qn=[],eo=0,ui=null,Yo=1,Jo="";function hr(e,t){ms[fs++]=r1,ms[fs++]=Md,Md=e,r1=t}function Cg(e,t,a){Qn[eo++]=Yo,Qn[eo++]=Jo,Qn[eo++]=ui,ui=e;var n=Yo;e=Jo;var o=32-On(n)-1;n&=~(1<<o),a+=1;var r=32-On(t)+o;if(30<r){var i=o-o%5;r=(n&(1<<i)-1).toString(32),n>>=i,o-=i,Yo=1<<32-On(t)+o|a<<o|n,Jo=r+e}else Yo=1<<r|a<<o|n,Jo=e}function o2(e){e.return!==null&&(hr(e,1),Cg(e,1,0))}function E4(e){for(;e===Md;)Md=ms[--fs],ms[fs]=null,r1=ms[--fs],ms[fs]=null;for(;e===ui;)ui=Qn[--eo],Qn[eo]=null,Jo=Qn[--eo],Qn[eo]=null,Yo=Qn[--eo],Qn[eo]=null}function Tg(e,t){Qn[eo++]=Yo,Qn[eo++]=Jo,Qn[eo++]=ui,Yo=t.id,Jo=t.overflow,ui=e}var Ma=null,Pt=null,Qe=!1,ai=null,no=!1,x3=Error(te(519));function pi(e){var t=Error(te(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw i1(ao(t,e)),x3}function k7(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[Ra]=e,t[vn]=n,a){case"dialog":at("cancel",t),at("close",t);break;case"iframe":case"object":case"embed":at("load",t);break;case"video":case"audio":for(a=0;a<d1.length;a++)at(d1[a],t);break;case"source":at("error",t);break;case"img":case"image":case"link":at("error",t),at("load",t);break;case"details":at("toggle",t);break;case"input":at("invalid",t),tg(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":at("invalid",t);break;case"textarea":at("invalid",t),ng(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||l9(t.textContent,a)?(n.popover!=null&&(at("beforetoggle",t),at("toggle",t)),n.onScroll!=null&&at("scroll",t),n.onScrollEnd!=null&&at("scrollend",t),n.onClick!=null&&(t.onclick=Ko),t=!0):t=!1,t||pi(e,!0)}function Id(e){for(Ma=e.return;Ma;)switch(Ma.tag){case 5:case 31:case 13:no=!1;return;case 27:case 3:no=!0;return;default:Ma=Ma.return}}function Ql(e){if(e!==Ma)return!1;if(!Qe)return Id(e),Qe=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||o4(e.type,e.memoizedProps)),a=!a),a&&Pt&&pi(e),Id(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(te(317));Pt=y8(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(te(317));Pt=y8(e)}else t===27?(t=Pt,hi(e.type)?(e=s4,s4=null,Pt=e):Pt=t):Pt=Ma?oo(e.stateNode.nextSibling):null;return!0}function tl(){Pt=Ma=null,Qe=!1}function jp(){var e=ai;return e!==null&&(fn===null?fn=e:fn.push.apply(fn,e),ai=null),e}function i1(e){ai===null?ai=[e]:ai.push(e)}var w3=tr(null),ml=null,yr=null;function Jr(e,t,a){Bt(w3,t._currentValue),t._currentValue=a}function xr(e){e._currentValue=w3.current,Ba(w3)}function sd(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function k3(e,t,a,n){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var r=o.dependencies;if(r!==null){var i=o.child;r=r.firstContext;e:for(;r!==null;){var l=r;r=o;for(var s=0;s<t.length;s++)if(l.context===t[s]){r.lanes|=a,l=r.alternate,l!==null&&(l.lanes|=a),sd(r.return,a,e),n||(i=null);break e}r=l.next}}else if(o.tag===18){if(i=o.return,i===null)throw Error(te(341));i.lanes|=a,r=i.alternate,r!==null&&(r.lanes|=a),sd(i,a,e),i=null}else o.tag===13&&o.memoizedState!==null&&o.memoizedState.dehydrated===null?(o.lanes|=a,i=o.alternate,i!==null&&(i.lanes|=a),sd(o.return,a,e),i=o.child,i=i!==null?i.sibling:null):i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===e){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}}function al(e,t,a,n){e=null;for(var o=t,r=!1;o!==null;){if(!r){if((o.flags&524288)!==0)r=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var i=o.alternate;if(i===null)throw Error(te(387));if(i=i.memoizedProps,i!==null){var l=o.type;Rn(o.pendingProps.value,i.value)||(e!==null?e.push(l):e=[l])}}else if(o===kd.current){if(i=o.alternate,i===null)throw Error(te(387));i.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(Ps):e=[Ps])}o=o.return}return e!==null&&k3(t,e,a,n),t.flags|=262144,e!==null}function Nd(e){for(e=e.firstContext;e!==null;){if(!Rn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function nl(e){ml=e,yr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pa(e){return Eg(ml,e)}function G0(e,t){return ml===null&&nl(e),Eg(e,t)}function Eg(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},yr===null){if(e===null)throw Error(te(308));yr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else yr=yr.next=t;return a}var Ik=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Nk=wa.unstable_scheduleCallback,Dk=wa.unstable_NormalPriority,fa={$$typeof:Wo,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function z4(){return{controller:new Ik,data:new Map,refCount:0}}function S1(e){e.refCount--,e.refCount===0&&Nk(Dk,function(){e.controller.abort()})}function S7(e,t){if((e.pendingLanes&4194048)!==0){var a=e.transitionTypes;for(a===null&&(a=e.transitionTypes=[]),e=0;e<t.length;e++){var n=t[e];a.indexOf(n)===-1&&a.push(n)}}}var _c=null;function Ok(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var $c=null,S3=0,ol=0,vs=null;function Lk(e,t){if($c===null){var a=$c=[];S3=0,ol=tm(),vs={status:"pending",value:void 0,then:function(n){a.push(n)}}}return S3++,t.then(C7,C7),t}function C7(){if(--S3===0&&(_c=null,$c!==null)){vs!==null&&(vs.status="fulfilled");var e=$c;$c=null,ol=0,vs=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Rk(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(n.status="rejected",n.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),n}var T7=Ze.S;Ze.S=function(e,t){if(Gb=Nn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Lk(e,t),_c!==null)for(var a=Os;a!==null;)S7(a,_c),a=a.next;if(a=e.types,a!==null){for(var n=Os;n!==null;)S7(n,a),n=n.next;if(ol!==0){n=_c,n===null&&(n=_c=[]);for(var o=0;o<a.length;o++){var r=a[o];n.indexOf(r)===-1&&n.push(r)}}}T7!==null&&T7(e,t)};var Xi=tr(null);function A4(){var e=Xi.current;return e!==null?e:Mt.pooledCache}function cd(e,t){t===null?Bt(Xi,Xi.current):Bt(Xi,t.pool)}function zg(){var e=A4();return e===null?null:{parent:fa._currentValue,pool:e}}var Us=Error(te(460)),M4=Error(te(474)),r2=Error(te(542)),Dd={then:function(){}};function E7(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ag(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Ko,Ko),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,A7(e),e===void 0&&!("reason"in t)?Error(te(600)):e;default:if(typeof t.status=="string")t.then(Ko,Ko);else{if(e=Mt,e!==null&&100<e.shellSuspendCounter)throw Error(te(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=n}},function(n){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,A7(e),e}throw Qi=t,Us}}function qi(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Qi=a,Us):a}}var Qi=null;function z7(){if(Qi===null)throw Error(te(459));var e=Qi;return Qi=null,e}function A7(e){if(e===Us||e===r2)throw Error(te(483))}var xs=null,l1=0;function $0(e){var t=l1;return l1+=1,xs===null&&(xs=[]),Ag(xs,e,t)}function Zr(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function q0(e,t){throw t.$$typeof===gw?Error(te(525)):(e=Object.prototype.toString.call(t),Error(te(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Mg(e){function t(f,m){if(e){var v=f.deletions;v===null?(f.deletions=[m],f.flags|=16):v.push(m)}}function a(f,m){if(!e)return null;for(;m!==null;)t(f,m),m=m.sibling;return null}function n(f){for(var m=new Map;f!==null;)f.key===null?m.set(f.index,f):m.set(f.key,f),f=f.sibling;return m}function o(f,m){return f=vr(f,m),f.index=0,f.sibling=null,f}function r(f,m,v){return f.index=v,e?(v=f.alternate,v!==null?(v=v.index,v<m?(f.flags|=2,m):v):(f.flags|=134217730,m)):(f.flags|=1048576,m)}function i(f){return e&&f.alternate===null&&(f.flags|=134217730),f}function l(f,m,v,T){return m===null||m.tag!==6?(m=Pp(v,f.mode,T),m.return=f,m):(m=o(m,v),m.return=f,m)}function s(f,m,v,T){var w=v.type;return w===rs?(f=d(f,m,v.props.children,T,v.key),Zr(f,v),f):m!==null&&(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===qr&&qi(w)===m.type)?(m=o(m,v.props),Zr(m,v),m.return=f,m):(m=ld(v.type,v.key,v.props,null,f.mode,T),Zr(m,v),m.return=f,m)}function c(f,m,v,T){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=Bp(v,f.mode,T),m.return=f,m):(m=o(m,v.children||[]),m.return=f,m)}function d(f,m,v,T,w){return m===null||m.tag!==7?(m=Ji(v,f.mode,T,w),m.return=f,m):(m=o(m,v),m.return=f,m)}function u(f,m,v){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Pp(""+m,f.mode,v),m.return=f,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case P0:return v=ld(m.type,m.key,m.props,null,f.mode,v),Zr(v,m),v.return=f,v;case Bc:return m=Bp(m,f.mode,v),m.return=f,m;case qr:return m=qi(m),u(f,m,v)}if(jc(m)||Nc(m))return m=Ji(m,f.mode,v,null),m.return=f,m;if(typeof m.then=="function")return u(f,$0(m),v);if(m.$$typeof===Wo)return u(f,G0(f,m),v);q0(f,m)}return null}function p(f,m,v,T){var w=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return w!==null?null:l(f,m,""+v,T);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case P0:return v.key===w?s(f,m,v,T):null;case Bc:return v.key===w?c(f,m,v,T):null;case qr:return v=qi(v),p(f,m,v,T)}if(jc(v)||Nc(v))return w!==null?null:d(f,m,v,T,null);if(typeof v.then=="function")return p(f,m,$0(v),T);if(v.$$typeof===Wo)return p(f,m,G0(f,v),T);q0(f,v)}return null}function g(f,m,v,T,w){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return f=f.get(v)||null,l(m,f,""+T,w);if(typeof T=="object"&&T!==null){switch(T.$$typeof){case P0:return f=f.get(T.key===null?v:T.key)||null,s(m,f,T,w);case Bc:return f=f.get(T.key===null?v:T.key)||null,c(m,f,T,w);case qr:return T=qi(T),g(f,m,v,T,w)}if(jc(T)||Nc(T))return f=f.get(v)||null,d(m,f,T,w,null);if(typeof T.then=="function")return g(f,m,v,$0(T),w);if(T.$$typeof===Wo)return g(f,m,v,G0(m,T),w);q0(m,T)}return null}function y(f,m,v,T){for(var w=null,E=null,L=m,H=m=0,S=null;L!==null&&H<v.length;H++){L.index>H?(S=L,L=null):S=L.sibling;var k=p(f,L,v[H],T);if(k===null){L===null&&(L=S);break}e&&L&&k.alternate===null&&t(f,L),m=r(k,m,H),E===null?w=k:E.sibling=k,E=k,L=S}if(H===v.length)return a(f,L),Qe&&hr(f,H),w;if(L===null){for(;H<v.length;H++)L=u(f,v[H],T),L!==null&&(m=r(L,m,H),E===null?w=L:E.sibling=L,E=L);return Qe&&hr(f,H),w}for(L=n(L);H<v.length;H++)S=g(L,f,H,v[H],T),S!==null&&(e&&(k=S.alternate,k!==null&&L.delete(k.key===null?H:k.key)),m=r(S,m,H),E===null?w=S:E.sibling=S,E=S);return e&&L.forEach(function(M){return t(f,M)}),Qe&&hr(f,H),w}function b(f,m,v,T){if(v==null)throw Error(te(151));for(var w=null,E=null,L=m,H=m=0,S=null,k=v.next();L!==null&&!k.done;H++,k=v.next()){L.index>H?(S=L,L=null):S=L.sibling;var M=p(f,L,k.value,T);if(M===null){L===null&&(L=S);break}e&&L&&M.alternate===null&&t(f,L),m=r(M,m,H),E===null?w=M:E.sibling=M,E=M,L=S}if(k.done)return a(f,L),Qe&&hr(f,H),w;if(L===null){for(;!k.done;H++,k=v.next())k=u(f,k.value,T),k!==null&&(m=r(k,m,H),E===null?w=k:E.sibling=k,E=k);return Qe&&hr(f,H),w}for(L=n(L);!k.done;H++,k=v.next())k=g(L,f,H,k.value,T),k!==null&&(e&&(S=k.alternate,S!==null&&L.delete(S.key===null?H:S.key)),m=r(k,m,H),E===null?w=k:E.sibling=k,E=k);return e&&L.forEach(function(O){return t(f,O)}),Qe&&hr(f,H),w}function x(f,m,v,T){if(typeof v=="object"&&v!==null&&v.type===rs&&v.key===null&&v.props.ref===void 0&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case P0:e:{for(var w=v.key;m!==null;){if(m.key===w){if(w=v.type,w===rs){if(m.tag===7){a(f,m.sibling),T=o(m,v.props.children),Zr(T,v),T.return=f,f=T;break e}}else if(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===qr&&qi(w)===m.type){a(f,m.sibling),T=o(m,v.props),Zr(T,v),T.return=f,f=T;break e}a(f,m);break}else t(f,m);m=m.sibling}v.type===rs?(T=Ji(v.props.children,f.mode,T,v.key),Zr(T,v),T.return=f,f=T):(T=ld(v.type,v.key,v.props,null,f.mode,T),Zr(T,v),T.return=f,f=T)}return i(f);case Bc:e:{for(w=v.key;m!==null;){if(m.key===w)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){a(f,m.sibling),T=o(m,v.children||[]),T.return=f,f=T;break e}else{a(f,m);break}else t(f,m);m=m.sibling}T=Bp(v,f.mode,T),T.return=f,f=T}return i(f);case qr:return v=qi(v),x(f,m,v,T)}if(jc(v))return y(f,m,v,T);if(Nc(v)){if(w=Nc(v),typeof w!="function")throw Error(te(150));return v=w.call(v),b(f,m,v,T)}if(typeof v.then=="function")return x(f,m,$0(v),T);if(v.$$typeof===Wo)return x(f,m,G0(f,v),T);q0(f,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,m!==null&&m.tag===6?(a(f,m.sibling),T=o(m,v),T.return=f,f=T):(a(f,m),T=Pp(v,f.mode,T),T.return=f,f=T),i(f)):a(f,m)}return function(f,m,v,T){try{l1=0;var w=x(f,m,v,T);return xs=null,w}catch(L){if(L===Us||L===r2)throw L;var E=bn(29,L,null,f.mode);return E.lanes=T,E.return=f,E}}}var rl=Mg(!0),Ig=Mg(!1),Fr=!1;function I4(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function C3(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ni(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function oi(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(ft&2)!==0){var o=n.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),n.pending=t,t=Ad(e),wg(e,null,a),t}return n2(e,n,t,a),Ad(e)}function qc(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,F8(e,a)}}function Hp(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var o=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var i={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?o=r=i:r=r.next=i,a=a.next}while(a!==null);r===null?o=r=t:r=r.next=t}else o=r=t;a={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var T3=!1;function Fc(){if(T3){var e=vs;if(e!==null)throw e}}function Wc(e,t,a,n){T3=!1;var o=e.updateQueue;Fr=!1;var r=o.firstBaseUpdate,i=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var s=l,c=s.next;s.next=null,i===null?r=c:i.next=c,i=s;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==i&&(l===null?d.firstBaseUpdate=c:l.next=c,d.lastBaseUpdate=s))}if(r!==null){var u=o.baseState;i=0,d=c=s=null,l=r;do{var p=l.lane&-536870913,g=p!==l.lane;if(g?(it&p)===p:(n&p)===p){p!==0&&p===ol&&(T3=!0),d!==null&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var y=e,b=l;p=t;var x=a;switch(b.tag){case 1:if(y=b.payload,typeof y=="function"){u=y.call(x,u,p);break e}u=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=b.payload,p=typeof y=="function"?y.call(x,u,p):y,p==null)break e;u=It({},u,p);break e;case 2:Fr=!0}}p=l.callback,p!==null&&(e.flags|=64,g&&(e.flags|=8192),g=o.callbacks,g===null?o.callbacks=[p]:g.push(p))}else g={lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(c=d=g,s=u):d=d.next=g,i|=p;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;g=l,l=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);d===null&&(s=u),o.baseState=s,o.firstBaseUpdate=c,o.lastBaseUpdate=d,r===null&&(o.shared.lanes=0),gi|=i,e.lanes=i,e.memoizedState=u}}function Ng(e,t){if(typeof e!="function")throw Error(te(191,e));e.call(t)}function Dg(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Ng(a[e],t)}var mi=tr(null),Od=tr(0);function M7(e,t){e=Er,Bt(Od,e),Bt(mi,t),Er=e|t.baseLanes}function E3(){Bt(Od,Er),Bt(mi,mi.current)}function N4(){Er=Od.current,Ba(mi),Ba(Od)}var _a=tr(null),Ja=null;function ri(e){var t=e.alternate;Bt(ja,ja.current&1),Bt(_a,e),Ja===null&&(t===null||mi.current!==null||t.memoizedState!==null)&&(Ja=e)}function z3(e){Bt(ja,ja.current),Bt(_a,e),Ja===null&&(Ja=e)}function Og(e){e.tag===22?(Bt(ja,ja.current),Bt(_a,e),Ja===null&&(Ja=e)):ii()}function ii(){Bt(ja,ja.current),Bt(_a,_a.current)}function An(e){Ba(_a),Ja===e&&(Ja=null),Ba(ja)}var ja=tr(0);function s1(e,t){Bt(_a,_a.current),Bt(ja,t)}function D4(e){Ba(ja),Ba(_a),Ja===e&&(Ja=null)}function Ld(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||l4(a)||rm(a)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)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 Sr=0,We=null,At=null,ma=null,Rd=!1,ws=!1,il=!1,Pd=0,c1=0,ks=null,Pk=0;function Qt(){throw Error(te(321))}function O4(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Rn(e[a],t[a]))return!1;return!0}function L4(e,t,a,n,o,r){return Sr=r,We=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ze.H=e===null||e.memoizedState===null?db:ub,il=!1,r=a(n,o),il=!1,ws&&(r=Rg(t,a,n,o)),Lg(e),r}function Lg(e){Ze.H=Bd;var t=At!==null&&At.next!==null;if(Sr=0,ma=At=We=null,Rd=!1,c1=0,ks=null,t)throw Error(te(300));e===null||ga||(e=e.dependencies,e!==null&&Nd(e)&&(ga=!0))}function Rg(e,t,a,n){We=e;var o=0;do{if(ws&&(ks=null),c1=0,ws=!1,25<=o)throw Error(te(301));if(o+=1,ma=At=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}Ze.H=Gk,r=t(a,n)}while(ws);return r}function Bk(){var e=Ze.H,t=e.useState()[0];return t=typeof t.then=="function"?C1(t):t,e=e.useState()[0],(At!==null?At.memoizedState:null)!==e&&(We.flags|=1024),t}function R4(){var e=Pd!==0;return Pd=0,e}function P4(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function B4(e){if(Rd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Rd=!1}Sr=0,ma=At=We=null,ws=!1,c1=Pd=0,ks=null}function sn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ma===null?We.memoizedState=ma=e:ma=ma.next=e,ma}function la(){if(At===null){var e=We.alternate;e=e!==null?e.memoizedState:null}else e=At.next;var t=ma===null?We.memoizedState:ma.next;if(t!==null)ma=t,At=e;else{if(e===null)throw We.alternate===null?Error(te(467)):Error(te(310));At=e,e={memoizedState:At.memoizedState,baseState:At.baseState,baseQueue:At.baseQueue,queue:At.queue,next:null},ma===null?We.memoizedState=ma=e:ma=ma.next=e}return ma}function i2(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function C1(e){var t=c1;return c1+=1,ks===null&&(ks=[]),e=Ag(ks,e,t),t=We,(ma===null?t.memoizedState:ma.next)===null&&(t=t.alternate,Ze.H=t===null||t.memoizedState===null?db:ub),e}function l2(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return C1(e);if(e.$$typeof===yw)return;if(e.$$typeof===Wo)return Pa(e)}throw Error(te(438,String(e)))}function j4(e){var t=null,a=We.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=We.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=i2(),We.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=hw;return t.index++,a}function Cr(e,t){return typeof t=="function"?t(e):t}function dd(e){var t=la();return H4(t,At,e)}function H4(e,t,a){var n=e.queue;if(n===null)throw Error(te(311));n.lastRenderedReducer=a;var o=e.baseQueue,r=n.pending;if(r!==null){if(o!==null){var i=o.next;o.next=r.next,r.next=i}t.baseQueue=o=r,n.pending=null}if(r=e.baseState,o===null)e.memoizedState=r;else{t=o.next;var l=i=null,s=null,c=t,d=!1;do{var u=c.lane&-536870913;if(u!==c.lane?(it&u)===u:(Sr&u)===u){var p=c.revertLane;if(p===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),u===ol&&(d=!0);else if((Sr&p)===p){c=c.next,p===ol&&(d=!0);continue}else u={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},s===null?(l=s=u,i=r):s=s.next=u,We.lanes|=p,gi|=p;u=c.action,il&&a(r,u),r=c.hasEagerState?c.eagerState:a(r,u)}else p={lane:u,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},s===null?(l=s=p,i=r):s=s.next=p,We.lanes|=u,gi|=u;c=c.next}while(c!==null&&c!==t);if(s===null?i=r:s.next=l,!Rn(r,e.memoizedState)&&(ga=!0,d&&(a=vs,a!==null)))throw a;e.memoizedState=r,e.baseState=i,e.baseQueue=s,n.lastRenderedState=r}return o===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function _p(e){var t=la(),a=t.queue;if(a===null)throw Error(te(311));a.lastRenderedReducer=e;var n=a.dispatch,o=a.pending,r=t.memoizedState;if(o!==null){a.pending=null;var i=o=o.next;do r=e(r,i.action),i=i.next;while(i!==o);Rn(r,t.memoizedState)||(ga=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,n]}function Pg(e,t,a){var n=We,o=la(),r=Qe;if(r){if(a===void 0)throw Error(te(407));a=a()}else a=t();var i=!Rn((At||o).memoizedState,a);if(i&&(o.memoizedState=a,ga=!0),o=o.queue,_4(Hg.bind(null,n,o,e),[e]),e=o.getSnapshot!==t||i||ma!==null&&(ma.memoizedState.tag&1)!==0,Ms(e?9:8,{destroy:void 0},jg.bind(null,n,o,a,t),null),e){if(n.flags|=2048,Mt===null)throw Error(te(349));r||(Sr&127)!==0||Bg(n,t,a)}return a}function Bg(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=We.updateQueue,t===null?(t=i2(),We.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function jg(e,t,a,n){t.value=a,t.getSnapshot=n,_g(t)&&Ug(e)}function Hg(e,t,a){return a(function(){_g(t)&&Ug(e)})}function _g(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Rn(e,a)}catch{return!0}}function Ug(e){var t=pl(e,2);t!==null&&hn(t,e,2)}function A3(e){var t=sn();if(typeof e=="function"){var a=e;if(e=a(),il){Kr(!0);try{a()}finally{Kr(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:e},t}function Vg(e,t,a,n){return e.baseState=a,H4(e,At,typeof n=="function"?n:Cr)}function jk(e,t,a,n,o){if(c2(e))throw Error(te(485));if(e=t.action,e!==null){var r={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){r.listeners.push(i)}};Ze.T!==null?a(!0):r.isTransition=!1,n(r),a=t.pending,a===null?(r.next=t.pending=r,Zg(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Zg(e,t){var a=t.action,n=t.payload,o=e.state;if(t.isTransition){var r=Ze.T,i={};i.types=r!==null?r.types:null,Ze.T=i;try{var l=a(o,n),s=Ze.S;s!==null&&s(i,l),I7(e,t,l)}catch(c){M3(e,t,c)}finally{r!==null&&i.types!==null&&(r.types=i.types),Ze.T=r}}else try{r=a(o,n),I7(e,t,r)}catch(c){M3(e,t,c)}}function I7(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){N7(e,t,n)},function(n){return M3(e,t,n)}):N7(e,t,a)}function N7(e,t,a){t.status="fulfilled",t.value=a,Gg(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Zg(e,a)))}function M3(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,Gg(t),t=t.next;while(t!==n)}e.action=null}function Gg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $g(e,t){return t}function D7(e,t){if(Qe){var a=Mt.formState;if(a!==null){e:{var n=We;if(Qe){if(Pt){t:{for(var o=Pt,r=no;o.nodeType!==8;){if(!r){o=null;break t}if(o=oo(o.nextSibling),o===null){o=null;break t}}r=o.data,o=r==="F!"||r==="F"?o:null}if(o){Pt=oo(o.nextSibling),n=o.data==="F!";break e}}pi(n)}n=!1}n&&(t=a[0])}}return a=sn(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$g,lastRenderedState:t},a.queue=n,a=lb.bind(null,We,n),n.dispatch=a,n=A3(!1),r=G4.bind(null,We,!1,n.queue),n=sn(),o={state:t,dispatch:null,action:e,pending:null},n.queue=o,a=jk.bind(null,We,o,r,a),o.dispatch=a,n.memoizedState=e,[t,a,!1]}function O7(e){var t=la();return qg(t,At,e)}function qg(e,t,a){if(t=H4(e,t,$g)[0],e=dd(Cr)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=C1(t)}catch(i){throw i===Us?r2:i}else n=t;t=la();var o=t.queue,r=o.dispatch;return a!==t.memoizedState&&(We.flags|=2048,Ms(9,{destroy:void 0},Hk.bind(null,o,a),null)),[n,r,e]}function Hk(e,t){e.action=t}function L7(e){var t=la(),a=At;if(a!==null)return qg(t,a,e);la(),t=t.memoizedState,a=la();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function Ms(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=We.updateQueue,t===null&&(t=i2(),We.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function Fg(){return la().memoizedState}function ud(e,t,a,n){var o=sn();We.flags|=e,o.memoizedState=Ms(1|t,{destroy:void 0},a,n===void 0?null:n)}function s2(e,t,a,n){var o=la();n=n===void 0?null:n;var r=o.memoizedState.inst;At!==null&&n!==null&&O4(n,At.memoizedState.deps)?o.memoizedState=Ms(t,r,a,n):(We.flags|=e,o.memoizedState=Ms(1|t,r,a,n))}function R7(e,t){ud(8390656,8,e,t)}function _4(e,t){s2(2048,8,e,t)}function _k(e){We.flags|=4;var t=We.updateQueue;if(t===null)t=i2(),We.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Wg(e){var t=la().memoizedState;return _k({ref:t,nextImpl:e}),function(){if((ft&2)!==0)throw Error(te(440));return t.impl.apply(void 0,arguments)}}function Kg(e,t){return s2(4,2,e,t)}function Yg(e,t){return s2(4,4,e,t)}function Jg(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Xg(e,t,a){a=a!=null?a.concat([e]):null,s2(4,4,Jg.bind(null,t,e),a)}function U4(){}function Qg(e,t){var a=la();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&O4(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function eb(e,t){var a=la();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&O4(t,n[1]))return n[0];if(n=e(),il){Kr(!0);try{e()}finally{Kr(!1)}}return a.memoizedState=[n,t],n}function V4(e,t,a){return a===void 0||(Sr&1073741824)!==0&&(it&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=qb(),We.lanes|=e,gi|=e,a)}function tb(e,t,a,n){return Rn(a,t)?a:mi.current!==null?(e=V4(e,a,n),Rn(e,t)||(ga=!0),e):(Sr&106)===0||(Sr&1073741824)!==0&&(it&261930)===0?(ga=!0,e.memoizedState=a):(e=qb(),We.lanes|=e,gi|=e,t)}function ab(e,t,a,n,o){var r=gt.p;gt.p=r!==0&&8>r?r:8;var i=Ze.T,l={};l.types=i!==null?i.types:null,Ze.T=l,G4(e,!1,t,a);try{var s=o(),c=Ze.S;if(c!==null&&c(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var d=Rk(s,n);Kc(e,t,d,Ln(e))}else Kc(e,t,n,Ln(e))}catch(u){Kc(e,t,{then:function(){},status:"rejected",reason:u},Ln())}finally{gt.p=r,i!==null&&l.types!==null&&(i.types=l.types),Ze.T=i}}function Uk(){}function I3(e,t,a,n){if(e.tag!==5)throw Error(te(476));var o=nb(e).queue;ab(e,o,t,Yi,a===null?Uk:function(){return ob(e),a(n)})}function nb(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Yi,baseState:Yi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:Yi},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cr,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ob(e){var t=nb(e);t.next===null&&(t=e.alternate.memoizedState),Kc(e,t.next.queue,{},Ln())}function Z4(){return Pa(Ps)}function rb(){return la().memoizedState}function ib(){return la().memoizedState}function Vk(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Ln();e=ni(a);var n=oi(t,e,a);n!==null&&(hn(n,t,a),qc(n,t,a)),t={cache:z4()},e.payload=t;return}t=t.return}}function Zk(e,t,a){var n=Ln();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},c2(e)?sb(t,a):(a=C4(e,t,a,n),a!==null&&(hn(a,e,n),cb(a,t,n)))}function lb(e,t,a){var n=Ln();Kc(e,t,a,n)}function Kc(e,t,a,n){var o={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(c2(e))sb(t,o);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var i=t.lastRenderedState,l=r(i,a);if(o.hasEagerState=!0,o.eagerState=l,Rn(l,i))return n2(e,t,o,0),Mt===null&&a2(),!1}catch{}if(a=C4(e,t,o,n),a!==null)return hn(a,e,n),cb(a,t,n),!0}return!1}function G4(e,t,a,n){if(n={lane:2,revertLane:tm(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},c2(e)){if(t)throw Error(te(479))}else t=C4(e,a,n,2),t!==null&&hn(t,e,2)}function c2(e){var t=e.alternate;return e===We||t!==null&&t===We}function sb(e,t){ws=Rd=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function cb(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,F8(e,a)}}var Bd={readContext:Pa,use:l2,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useLayoutEffect:Qt,useInsertionEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useSyncExternalStore:Qt,useId:Qt,useHostTransitionStatus:Qt,useFormState:Qt,useActionState:Qt,useOptimistic:Qt,useMemoCache:Qt,useCacheRefresh:Qt,useEffectEvent:Qt},db={readContext:Pa,use:l2,useCallback:function(e,t){return sn().memoizedState=[e,t===void 0?null:t],e},useContext:Pa,useEffect:R7,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ud(4194308,4,Jg.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ud(4194308,4,e,t)},useInsertionEffect:function(e,t){ud(4,2,e,t)},useMemo:function(e,t){var a=sn();t=t===void 0?null:t;var n=e();if(il){Kr(!0);try{e()}finally{Kr(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=sn();if(a!==void 0){var o=a(t);if(il){Kr(!0);try{a(t)}finally{Kr(!1)}}}else o=t;return n.memoizedState=n.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},n.queue=e,e=e.dispatch=Zk.bind(null,We,e),[n.memoizedState,e]},useRef:function(e){var t=sn();return e={current:e},t.memoizedState=e},useState:function(e){e=A3(e);var t=e.queue,a=lb.bind(null,We,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:U4,useDeferredValue:function(e,t){var a=sn();return V4(a,e,t)},useTransition:function(){var e=A3(!1);return e=ab.bind(null,We,e.queue,!0,!1),sn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=We,o=sn();if(Qe){if(a===void 0)throw Error(te(407));a=a()}else{if(a=t(),Mt===null)throw Error(te(349));(it&127)!==0||Bg(n,t,a)}o.memoizedState=a;var r={value:a,getSnapshot:t};return o.queue=r,R7(Hg.bind(null,n,r,e),[e]),n.flags|=2048,Ms(9,{destroy:void 0},jg.bind(null,n,r,a,t),null),a},useId:function(){var e=sn(),t=Mt.identifierPrefix;if(Qe){var a=Jo,n=Yo;a=(n&~(1<<32-On(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Pd++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Pk++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Z4,useFormState:D7,useActionState:D7,useOptimistic:function(e){var t=sn();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=G4.bind(null,We,!0,a),a.dispatch=t,[e,t]},useMemoCache:j4,useCacheRefresh:function(){return sn().memoizedState=Vk.bind(null,We)},useEffectEvent:function(e){var t=sn(),a={impl:e};return t.memoizedState=a,function(){if((ft&2)!==0)throw Error(te(440));return a.impl.apply(void 0,arguments)}}},ub={readContext:Pa,use:l2,useCallback:Qg,useContext:Pa,useEffect:_4,useImperativeHandle:Xg,useInsertionEffect:Kg,useLayoutEffect:Yg,useMemo:eb,useReducer:dd,useRef:Fg,useState:function(){return dd(Cr)},useDebugValue:U4,useDeferredValue:function(e,t){var a=la();return tb(a,At.memoizedState,e,t)},useTransition:function(){var e=dd(Cr)[0],t=la().memoizedState;return[typeof e=="boolean"?e:C1(e),t]},useSyncExternalStore:Pg,useId:rb,useHostTransitionStatus:Z4,useFormState:O7,useActionState:O7,useOptimistic:function(e,t){var a=la();return Vg(a,At,e,t)},useMemoCache:j4,useCacheRefresh:ib,useEffectEvent:Wg},Gk={readContext:Pa,use:l2,useCallback:Qg,useContext:Pa,useEffect:_4,useImperativeHandle:Xg,useInsertionEffect:Kg,useLayoutEffect:Yg,useMemo:eb,useReducer:_p,useRef:Fg,useState:function(){return _p(Cr)},useDebugValue:U4,useDeferredValue:function(e,t){var a=la();return At===null?V4(a,e,t):tb(a,At.memoizedState,e,t)},useTransition:function(){var e=_p(Cr)[0],t=la().memoizedState;return[typeof e=="boolean"?e:C1(e),t]},useSyncExternalStore:Pg,useId:rb,useHostTransitionStatus:Z4,useFormState:L7,useActionState:L7,useOptimistic:function(e,t){var a=la();return At!==null?Vg(a,At,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:j4,useCacheRefresh:ib,useEffectEvent:Wg};function Up(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:It({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var N3={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Ln(),o=ni(n);o.payload=t,a!=null&&(o.callback=a),t=oi(e,o,n),t!==null&&(hn(t,e,n),qc(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Ln(),o=ni(n);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=oi(e,o,n),t!==null&&(hn(t,e,n),qc(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ln(),n=ni(a);n.tag=2,t!=null&&(n.callback=t),t=oi(e,n,a),t!==null&&(hn(t,e,a),qc(t,e,a))}};function P7(e,t,a,n,o,r,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,r,i):t.prototype&&t.prototype.isPureReactComponent?!o1(a,n)||!o1(o,r):!0}function B7(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&N3.enqueueReplaceState(t,t.state,null)}function ll(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=It({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}function pb(e){zd(e)}function mb(e){console.error(e)}function fb(e){zd(e)}function jd(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function j7(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function D3(e,t,a){return a=ni(a),a.tag=3,a.payload={element:null},a.callback=function(){jd(e,t)},a}function gb(e){return e=ni(e),e.tag=3,e}function bb(e,t,a,n){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var r=n.value;e.payload=function(){return o(r)},e.callback=function(){j7(t,a,n)}}var i=a.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){j7(t,a,n),typeof o!="function"&&(li===null?li=new Set([this]):li.add(this));var l=n.stack;this.componentDidCatch(n.value,{componentStack:l!==null?l:""})})}function $k(e,t,a,n,o){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&al(t,a,o,!0),a=_a.current,a!==null){switch(a.tag){case 31:case 13:case 19:return Ja===null?qd():a.alternate===null&&ea===0&&(ea=3),a.flags&=-257,a.flags|=65536,a.lanes=o,n===Dd?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Wp(e,n,o)),!1;case 22:return a.flags|=65536,n===Dd?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Wp(e,n,o)),!1}throw Error(te(435,a.tag))}return Wp(e,n,o),qd(),!1}if(Qe)return t=_a.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,n!==x3&&(e=Error(te(422),{cause:n}),i1(ao(e,a)))):(n!==x3&&(t=Error(te(423),{cause:n}),i1(ao(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,n=ao(n,a),o=D3(e.stateNode,n,o),Hp(e,o),ea!==4&&(ea=2)),!1;var r=Error(te(520),{cause:n});if(r=ao(r,a),Qc===null?Qc=[r]:Qc.push(r),ea!==4&&(ea=2),t===null)return!0;n=ao(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=D3(a.stateNode,n,e),Hp(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(li===null||!li.has(r))))return a.flags|=65536,o&=-o,a.lanes|=o,o=gb(o),bb(o,e,a,n),Hp(a,o),!1;break;case 22:if(a.memoizedState!==null)return a.flags|=65536,!1}a=a.return}while(a!==null);return!1}var $4=Error(te(461)),ga=!1;function va(e,t,a,n){t.child=e===null?Ig(t,null,a,n):rl(t,e.child,a,n)}function H7(e,t,a,n,o){a=a.render;var r=t.ref;if("ref"in n){var i={};for(var l in n)l!=="ref"&&(i[l]=n[l])}else i=n;return nl(t),n=L4(e,t,a,i,r,o),l=R4(),e!==null&&!ga?(P4(e,t,o),Tr(e,t,o)):(Qe&&l&&o2(t),t.flags|=1,va(e,t,n,o),t.child)}function _7(e,t,a,n,o){if(e===null){var r=a.type;return typeof r=="function"&&!T4(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,hb(e,t,r,n,o)):(e=ld(a.type,null,n,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!F4(e,o)){var i=r.memoizedProps;if(a=a.compare,a=a!==null?a:o1,a(i,n)&&e.ref===t.ref)return Tr(e,t,o)}return t.flags|=1,e=vr(r,n),e.ref=t.ref,e.return=t,t.child=e}function hb(e,t,a,n,o){if(e!==null){var r=e.memoizedProps;if(o1(r,n)&&e.ref===t.ref)if(ga=!1,t.pendingProps=n=r,F4(e,o))(e.flags&131072)!==0&&(ga=!0);else return t.lanes=e.lanes,Tr(e,t,o)}return O3(e,t,a,n,o)}function yb(e,t,a,n){var o=n.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(n=t.child=e.child,o=0;n!==null;)o=o|n.lanes|n.childLanes,n=n.sibling;n=o&~r}else n=0,t.child=null;return U7(e,t,r,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&cd(t,r!==null?r.cachePool:null),r!==null?M7(t,r):E3(),Og(t);else return n=t.lanes=536870912,U7(e,t,r!==null?r.baseLanes|a:a,a,n)}else r!==null?(cd(t,r.cachePool),M7(t,r),ii(),t.memoizedState=null):(e!==null&&cd(t,null),E3(),ii());return va(e,t,o,a),t.child}function Yc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function U7(e,t,a,n,o){var r=A4();return r=r===null?null:{parent:fa._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&cd(t,null),E3(),Og(t),e!==null&&al(e,t,n,!0),t.childLanes=o,null}function pd(e,t){return t=d2({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function V7(e,t,a){return rl(t,e.child,null,a),e=pd(t,t.pendingProps),e.flags|=2,An(t),t.memoizedState=null,e}function qk(e,t,a){var n=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Qe){if(n.mode==="hidden")return e=pd(t,n),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Yc(null,e);if(z3(t),(e=Pt)?(e=y9(e,no),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Yo,overflow:Jo}:null,retryLane:536870912,hydrationErrors:null},a=Sg(e),a.return=t,t.child=a,Ma=t,Pt=null)):e=null,e===null)throw pi(t);return t.lanes=536870912,null}return pd(t,n)}var r=e.memoizedState;if(r!==null){var i=r.dehydrated;if(z3(t),o)if(t.flags&256)t.flags&=-257,t=V7(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(te(558));else if(ga||al(e,t,a,!1),o=(a&e.childLanes)!==0,ga||o){if(mi.current===null){if(n=Mt,n!==null&&(i=W8(n,a),i!==0&&i!==r.retryLane))throw r.retryLane=i,pl(e,i),hn(n,e,i),$4;qd()}t=V7(e,t,a)}else e=r.treeContext,Pt=oo(i.nextSibling),Ma=t,Qe=!0,ai=null,no=!1,e!==null&&Tg(t,e),t=pd(t,n),t.flags|=134221824;return t}return e=vr(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ts(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(te(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function O3(e,t,a,n,o){return nl(t),a=L4(e,t,a,n,void 0,o),n=R4(),e!==null&&!ga?(P4(e,t,o),Tr(e,t,o)):(Qe&&n&&o2(t),t.flags|=1,va(e,t,a,o),t.child)}function Z7(e,t,a,n,o,r){return nl(t),t.updateQueue=null,a=Rg(t,n,a,o),Lg(e),n=R4(),e!==null&&!ga?(P4(e,t,r),Tr(e,t,r)):(Qe&&n&&o2(t),t.flags|=1,va(e,t,a,r),t.child)}function G7(e,t,a,n,o){if(nl(t),t.stateNode===null){var r=ps,i=a.contextType;typeof i=="object"&&i!==null&&(r=Pa(i)),r=new a(n,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=N3,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=n,r.state=t.memoizedState,r.refs={},I4(t),i=a.contextType,r.context=typeof i=="object"&&i!==null?Pa(i):ps,r.state=t.memoizedState,i=a.getDerivedStateFromProps,typeof i=="function"&&(Up(t,a,i,n),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(i=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),i!==r.state&&N3.enqueueReplaceState(r,r.state,null),Wc(t,n,r,o),Fc(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){r=t.stateNode;var l=t.memoizedProps,s=ll(a,l);r.props=s;var c=r.context,d=a.contextType;i=ps,typeof d=="object"&&d!==null&&(i=Pa(d));var u=a.getDerivedStateFromProps;d=typeof u=="function"||typeof r.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,d||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(l||c!==i)&&B7(t,r,n,i),Fr=!1;var p=t.memoizedState;r.state=p,Wc(t,n,r,o),Fc(),c=t.memoizedState,l||p!==c||Fr?(typeof u=="function"&&(Up(t,a,u,n),c=t.memoizedState),(s=Fr||P7(t,a,s,n,p,c,i))?(d||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=c),r.props=n,r.state=c,r.context=i,n=s):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{r=t.stateNode,C3(e,t),i=t.memoizedProps,d=ll(a,i),r.props=d,u=t.pendingProps,p=r.context,c=a.contextType,s=ps,typeof c=="object"&&c!==null&&(s=Pa(c)),l=a.getDerivedStateFromProps,(c=typeof l=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(i!==u||p!==s)&&B7(t,r,n,s),Fr=!1,p=t.memoizedState,r.state=p,Wc(t,n,r,o),Fc();var g=t.memoizedState;i!==u||p!==g||Fr||e!==null&&e.dependencies!==null&&Nd(e.dependencies)?(typeof l=="function"&&(Up(t,a,l,n),g=t.memoizedState),(d=Fr||P7(t,a,d,n,p,g,s)||e!==null&&e.dependencies!==null&&Nd(e.dependencies))?(c||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,g,s),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,g,s)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=g),r.props=n,r.state=g,r.context=s,n=d):(typeof r.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),n=!1)}return r=n,ts(e,t),n=(t.flags&128)!==0,r||n?(r=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&n?(t.child=rl(t,e.child,null,o),t.child=rl(t,null,a,o)):va(e,t,a,o),t.memoizedState=r.state,e=t.child):e=Tr(e,t,o),e}function $7(e,t,a,n){return tl(),t.flags|=256,va(e,t,a,n),t.child}var L3={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function R3(e){return{baseLanes:e,cachePool:zg()}}function P3(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=In),e}function vb(e,t,a){var n=t.pendingProps,o=!1,r=(t.flags&128)!==0,i;if((i=r)||(i=e!==null&&e.memoizedState===null?!1:(ja.current&2)!==0),i&&(o=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Qe){if(o?ri(t):ii(),(e=Pt)?(e=y9(e,no),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ui!==null?{id:Yo,overflow:Jo}:null,retryLane:536870912,hydrationErrors:null},a=Sg(e),a.return=t,t.child=a,Ma=t,Pt=null)):e=null,e===null)throw pi(t);return rm(e)?t.lanes=32:t.lanes=536870912,null}return r=n.children,n=n.fallback,o?(ii(),o=t.mode,r=d2({mode:"hidden",children:r},o),n=Ji(n,o,a,null),r.return=t,n.return=t,r.sibling=n,t.child=r,n=t.child,n.memoizedState=R3(a),n.childLanes=P3(e,i,a),t.memoizedState=L3,Yc(null,n)):(ri(t),q4(t,r))}var l=e.memoizedState;if(l!==null){var s=l.dehydrated;if(s!==null)return Fk(e,t,r,i,n,s,l,a)}return o?(ii(),o=n.fallback,r=t.mode,l=e.child,s=l.sibling,n=vr(l,{mode:"hidden",children:n.children}),n.subtreeFlags=l.subtreeFlags&1206910976,s!==null?o=vr(s,o):(o=Ji(o,r,a,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,Yc(null,n),n=t.child,o=e.child.memoizedState,o===null?o=R3(a):(r=o.cachePool,r!==null?(l=fa._currentValue,r=r.parent!==l?{parent:l,pool:l}:r):r=zg(),o={baseLanes:o.baseLanes|a,cachePool:r}),n.memoizedState=o,n.childLanes=P3(e,i,a),t.memoizedState=L3,Yc(e.child,n)):(ri(t),a=e.child,e=a.sibling,a=vr(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=a,t.memoizedState=null,a)}function q4(e,t){return t=d2({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function d2(e,t){return e=bn(22,e,null,t),e.lanes=0,e}function F0(e,t,a){return rl(t,e.child,null,a),e=q4(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Fk(e,t,a,n,o,r,i,l){if(a)return t.flags&256?(ri(t),t.flags&=-257,F0(e,t,l)):t.memoizedState!==null?(ii(),t.child=e.child,t.flags|=128,null):(ii(),r=o.fallback,i=t.mode,o=d2({mode:"visible",children:o.children},i),r=Ji(r,i,l,null),r.flags|=2,o.return=t,r.return=t,o.sibling=r,t.child=o,rl(t,e.child,null,l),o=t.child,o.memoizedState=R3(l),o.childLanes=P3(e,n,l),t.memoizedState=L3,Yc(null,o));if(ri(t),rm(r)){if(n=r.nextSibling&&r.nextSibling.dataset,n)var s=n.dgst;return n=s,n!==""&&(o=Error(te(419)),o.stack="",o.digest=n,i1({value:o,source:null,stack:null})),F0(e,t,l)}if(ga||al(e,t,l,!1),n=(l&e.childLanes)!==0,ga||n){if(mi.current!==null)return F0(e,t,l);if(n=Mt,n!==null&&(o=W8(n,l),o!==0&&o!==i.retryLane))throw i.retryLane=o,pl(e,o),hn(n,e,o),$4;return l4(r)||qd(),F0(e,t,l)}return l4(r)?(t.flags|=192,t.child=e.child,null):(e=i.treeContext,Pt=oo(r.nextSibling),Ma=t,Qe=!0,ai=null,no=!1,e!==null&&Tg(t,e),t=q4(t,o.children),t.flags|=134221824,t)}function q7(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),sd(e.return,t,a)}function F7(e){for(var t=null;e!==null;){var a=e.alternate;a!==null&&Ld(a)===null&&(t=e),e=e.sibling}return t}function W0(e,t,a,n,o,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:o,treeForkCount:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=a,i.tailMode=o,i.treeForkCount=r)}function Vp(e){var t=e.child;for(e.child=null;t!==null;){var a=t.sibling;t.sibling=e.child,e.child=t,t=a}}function B3(e,t,a){var n=t.pendingProps,o=n.revealOrder,r=n.tail;n=n.children;var i=ja.current;if(t.flags&128)return s1(t,i),null;var l=(i&2)!==0;if(l?(i=i&1|2,t.flags|=128):i&=1,s1(t,i),o==="backwards"&&e!==null?(Vp(e),va(e,t,n,a),Vp(e)):va(e,t,n,a),n=Qe?r1:0,!l&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&q7(e,a,t);else if(e.tag===19)q7(e,a,t);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}switch(o){case"backwards":a=F7(t.child),a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null,Vp(t)),W0(t,!0,o,null,r,n);break;case"unstable_legacy-backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&Ld(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}W0(t,!0,a,null,r,n);break;case"together":W0(t,!1,null,null,void 0,n);break;case"independent":t.memoizedState=null;break;default:a=F7(t.child),a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),W0(t,!1,o,a,r,n)}return t.child}function W7(e,t,a){var n=t.pendingProps;return Jr(t,t.type,n.value),va(e,t,n.children,a),t.child}function Tr(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),gi|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(al(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(te(153));if(t.child!==null){for(e=t.child,a=vr(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=vr(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function F4(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Nd(e)))}function Wk(e,t,a){switch(t.tag){case 3:Sd(t,t.stateNode.containerInfo),Jr(t,fa,e.memoizedState.cache),tl();break;case 27:case 5:d3(t);break;case 4:Sd(t,t.stateNode.containerInfo);break;case 10:Jr(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,z3(t),null;break;case 13:var n=t.memoizedState;if(n!==null){if(n.dehydrated!==null)return ri(t),t.flags|=128,null;n=al(e,t,a,!1);var o=t.child.childLanes;return n||(a&o)!==0?vb(e,t,a):(ri(t),e=Tr(e,t,a),e!==null?e.sibling:null)}ri(t);break;case 19:if(t.flags&128)return B3(e,t,a);if(o=(e.flags&128)!==0,n=(a&t.childLanes)!==0,n||(al(e,t,a,!1),n=(a&t.childLanes)!==0),o){if(n)return B3(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),s1(t,ja.current),n)break;return null;case 22:return t.lanes=0,yb(e,t,a,t.pendingProps);case 24:Jr(t,fa,e.memoizedState.cache)}return Tr(e,t,a)}function xb(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ga=!0;else{if(!F4(e,a)&&(t.flags&128)===0)return ga=!1,Wk(e,t,a);ga=(e.flags&131072)!==0}else ga=!1,Qe&&(t.flags&1048576)!==0&&Cg(t,r1,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=qi(t.elementType),t.type=e,typeof e=="function")T4(e)?(n=ll(e,n),t.tag=1,t=G7(null,t,e,n,a)):(t.tag=0,t=O3(null,t,e,n,a));else{if(e!=null){var o=e.$$typeof;if(o===p4){t.tag=11,t=H7(null,t,e,n,a);break e}else if(o===m4){t.tag=14,t=_7(null,t,e,n,a);break e}else if(o===Wo){t.tag=10,t.type=e,t=W7(null,t,a);break e}}throw t=s3(e)||e,Error(te(306,t,""))}}return t;case 0:return O3(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,o=ll(n,t.pendingProps),G7(e,t,n,o,a);case 3:e:{if(Sd(t,t.stateNode.containerInfo),e===null)throw Error(te(387));n=t.pendingProps;var r=t.memoizedState;o=r.element,C3(e,t),Wc(t,n,null,a);var i=t.memoizedState;if(n=i.cache,Jr(t,fa,n),n!==r.cache&&k3(t,[fa],a,!0),Fc(),n=i.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=$7(e,t,n,a);break e}else if(n!==o){o=ao(Error(te(424)),t),i1(o),t=$7(e,t,n,a);break e}else for(e=t.stateNode.containerInfo,e.nodeType===9?e=e.body:e=e.nodeName==="HTML"?e.ownerDocument.body:e,Pt=oo(e.firstChild),Ma=t,Qe=!0,ai=null,no=!0,a=Ig(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|134221824,a=a.sibling;else{if(tl(),n===o){t=Tr(e,t,a);break e}va(e,t,n,a)}t=t.child}return t;case 26:return ts(e,t),e===null?(a=w8(t.type,null,t.pendingProps,null))?t.memoizedState=a:Qe||(t.stateNode=c9(t.type,t.pendingProps,ti.current,t)):t.memoizedState=w8(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return d3(t),e===null&&Qe&&(n=t.stateNode=v9(t.type,t.pendingProps,ti.current),Ma=t,no=!0,o=Pt,hi(t.type)?(s4=o,Pt=oo(n.firstChild)):Pt=o),va(e,t,t.pendingProps.children,a),ts(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Qe&&((o=n=Pt)&&(n=_S(n,t.type,t.pendingProps,no),n!==null?(t.stateNode=n,Ma=t,Pt=oo(n.firstChild),no=!1,o=!0):o=!1),o||pi(t)),d3(t),o=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,n=r.children,o4(o,r)?n=null:i!==null&&o4(o,i)&&(t.flags|=32),t.memoizedState!==null&&(o=L4(e,t,Bk,null,null,a),Ps._currentValue=o),ts(e,t),va(e,t,n,a),t.child;case 6:return e===null&&Qe&&((e=a=Pt)&&(a=US(a,t.pendingProps,no),a!==null?(t.stateNode=a,Ma=t,Pt=null,e=!0):e=!1),e||pi(t)),null;case 13:return vb(e,t,a);case 4:return Sd(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=rl(t,null,n,a):va(e,t,n,a),t.child;case 11:return H7(e,t,t.type,t.pendingProps,a);case 7:return n=t.pendingProps,ts(e,t),va(e,t,n,a),t.child;case 8:return va(e,t,t.pendingProps.children,a),t.child;case 12:return va(e,t,t.pendingProps.children,a),t.child;case 10:return W7(e,t,a);case 9:return o=t.type._context,n=t.pendingProps.children,nl(t),o=Pa(o),n=n(o),t.flags|=1,va(e,t,n,a),t.child;case 14:return _7(e,t,t.type,t.pendingProps,a);case 15:return hb(e,t,t.type,t.pendingProps,a);case 19:return B3(e,t,a);case 31:return qk(e,t,a);case 22:return yb(e,t,a,t.pendingProps);case 24:return nl(t),n=Pa(fa),e===null?(o=A4(),o===null&&(o=Mt,r=z4(),o.pooledCache=r,r.refCount++,r!==null&&(o.pooledCacheLanes|=a),o=r),t.memoizedState={parent:n,cache:o},I4(t),Jr(t,fa,o)):((e.lanes&a)!==0&&(C3(e,t),Wc(t,null,null,a),Fc()),o=e.memoizedState,r=t.memoizedState,o.parent!==n?(o={parent:n,cache:n},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Jr(t,fa,n)):(n=r.cache,Jr(t,fa,n),n!==o.cache&&k3(t,[fa],a,!0))),va(e,t,t.pendingProps.children,a),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),n=t.pendingProps,n.name!=null&&n.name!=="auto"?t.flags|=e===null?18882560:18874368:Qe&&o2(t),e!==null&&e.memoizedProps.name!==n.name?t.flags|=4194816:ts(e,t),va(e,t,n.children,a),t.child;case 29:throw t.pendingProps}throw Error(te(156,t.tag))}function br(e){e.flags|=4}function Zp(e,t,a,n,o){var r;if((r=(e.mode&32)!==0)&&(r=a===null?C8(t,n):C8(t,n)&&(n.src!==a.src||n.srcSet!==a.srcSet)),r){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Kb())e.flags|=8192;else throw Qi=Dd,M4}else e.flags&=-16777217}function K7(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!S9(t))if(Kb())e.flags|=8192;else throw Qi=Dd,M4}function K0(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?$8():536870912,e.lanes|=t,Is|=t)}function Oc(e,t){if(!Qe)switch(e.tailMode){case"visible":break;case"collapsed":for(var a=e.tail,n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null;break;default:for(t=e.tail,a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null}}function Rt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,n|=o.subtreeFlags&1206910976,n|=o.flags&1206910976,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function Kk(e,t,a){var n=t.pendingProps;switch(E4(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rt(t),null;case 1:return Rt(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xr(fa),Es(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Ql(t)?br(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,jp())),Rt(t),null;case 26:var o=t.type,r=t.memoizedState;return e===null?(br(t),r!==null?(Rt(t),K7(t,r)):(Rt(t),Zp(t,o,null,n,a))):r?r!==e.memoizedState?(br(t),Rt(t),K7(t,r)):(Rt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&br(t),Rt(t),Zp(t,o,e,n,a)),null;case 27:if(Cd(t),a=ti.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&br(t);else{if(!n){if(t.stateNode===null)throw Error(te(166));return Rt(t),t.subtreeFlags&=-33554433,null}e=Xo.current,Ql(t)?k7(t,e):(e=v9(o,n,a),t.stateNode=e,br(t))}return Rt(t),t.subtreeFlags&=-33554433,null;case 5:if(Cd(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&br(t);else{if(!n){if(t.stateNode===null)throw Error(te(166));return Rt(t),t.subtreeFlags&=-33554433,null}if(r=Xo.current,Ql(t))k7(t,r);else{var i=p1(ti.current);switch(r){case 1:r=i.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:r=i.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":r=i.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":r=i.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":r=i.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?i.createElement("select",{is:n.is}):i.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?i.createElement(o,{is:n.is}):i.createElement(o)}}r[Ra]=t,r[vn]=n;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)r.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=r;e:switch(Ha(r,o,n),o){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&br(t)}}return Rt(t),t.subtreeFlags&=-33554433,Zp(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&br(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(te(166));if(e=ti.current,Ql(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,o=Ma,o!==null)switch(o.tag){case 27:case 5:n=o.memoizedProps}e[Ra]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||l9(e.nodeValue,a)),e||pi(t,!0)}else e=p1(e).createTextNode(n),e[Ra]=t,t.stateNode=e}return Rt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Ql(t),a!==null){if(e===null){if(!n)throw Error(te(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(te(557));e[Ra]=t}else tl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Rt(t),e=!1}else a=jp(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(An(t),t):(An(t),null);if((t.flags&128)!==0)throw Error(te(558))}return Rt(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Ql(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(te(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(te(317));o[Ra]=t}else tl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Rt(t),o=!1}else o=jp(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(An(t),t):(An(t),null)}return An(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,o=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(o=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==o&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),K0(t,t.updateQueue),Rt(t),null);case 4:return Es(),e===null&&am(t.stateNode.containerInfo),t.flags|=67108864,Rt(t),null;case 10:return xr(t.type),Rt(t),null;case 19:if(D4(t),n=t.memoizedState,n===null)return Rt(t),null;if(o=(t.flags&128)!==0,r=n.rendering,r===null)if(o)Oc(n,!1);else{if(ea!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Ld(e),r!==null){for(t.flags|=128,Oc(n,!1),e=r.updateQueue,t.updateQueue=e,K0(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)kg(a,e),a=a.sibling;return s1(t,ja.current&1|2),Qe&&hr(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&Nn()>Gd&&(t.flags|=128,o=!0,Oc(n,!1),t.lanes=4194304)}else{if(!o)if(e=Ld(r),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,K0(t,e),Oc(n,!0),n.tail===null&&n.tailMode!=="collapsed"&&n.tailMode!=="visible"&&!r.alternate&&!Qe)return Rt(t),null}else 2*Nn()-n.renderingStartTime>Gd&&a!==536870912&&(t.flags|=128,o=!0,Oc(n,!1),t.lanes=4194304);n.isBackwards?(r.sibling=t.child,t.child=r):(e=n.last,e!==null?e.sibling=r:t.child=r,n.last=r)}if(n.tail!==null){e=n.tail;e:{for(a=e;a!==null;){if(a.alternate!==null){a=!1;break e}a=a.sibling}a=!0}return n.rendering=e,n.tail=e.sibling,n.renderingStartTime=Nn(),e.sibling=null,r=ja.current,r=o?r&1|2:r&1,n.tailMode==="visible"||n.tailMode==="collapsed"||!a||Qe?s1(t,r):(a=r,Bt(_a,t),Bt(ja,a),Ja===null&&(Ja=t)),Qe&&hr(t,n.treeForkCount),e}return Rt(t),null;case 22:case 23:return An(t),N4(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(Rt(t),t.subtreeFlags&6&&(t.flags|=8192)):Rt(t),a=t.updateQueue,a!==null&&K0(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&Ba(Xi),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),xr(fa),Rt(t),null;case 25:return null;case 30:return t.flags|=33554432,Rt(t),null}throw Error(te(156,t.tag))}function Yk(e,t){switch(E4(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xr(fa),Es(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Cd(t),null;case 31:if(t.memoizedState!==null){if(An(t),t.alternate===null)throw Error(te(340));tl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(An(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(te(340));tl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D4(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Es(),null;case 10:return xr(t.type),null;case 22:case 23:return An(t),N4(),e!==null&&Ba(Xi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xr(fa),null;case 25:return null;default:return null}}function wb(e,t){switch(E4(t),t.tag){case 3:xr(fa),Es();break;case 26:case 27:case 5:Cd(t);break;case 4:Es();break;case 31:t.memoizedState!==null&&An(t);break;case 13:An(t);break;case 19:D4(t);break;case 10:xr(t.type);break;case 22:case 23:An(t),N4(),e!==null&&Ba(Xi);break;case 24:xr(fa)}}function T1(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var o=n.next;a=o;do{if((a.tag&e)===e){n=void 0;var r=a.create,i=a.inst;n=r(),i.destroy=n}a=a.next}while(a!==o)}}catch(l){Tt(t,t.return,l)}}function fi(e,t,a){try{var n=t.updateQueue,o=n!==null?n.lastEffect:null;if(o!==null){var r=o.next;n=r;do{if((n.tag&e)===e){var i=n.inst,l=i.destroy;if(l!==void 0){i.destroy=void 0,o=t;var s=a,c=l;try{c()}catch(d){Tt(o,s,d)}}}n=n.next}while(n!==r)}}catch(d){Tt(t,t.return,d)}}function kb(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Dg(t,a)}catch(n){Tt(e,e.return,n)}}}function Sb(e,t,a){a.props=ll(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Tt(e,t,n)}}function qo(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:var o=e.stateNode,r=kr(e.memoizedProps,o);(o.ref===null||o.ref.name!==r)&&(o.ref=m9(r)),n=o.ref;break;case 7:if(e.stateNode===null){var i=new Pn(e);yn(e.child,!1,jS,i,void 0,void 0),e.stateNode=i}n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(l){Tt(e,t,l)}}function La(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(o){Tt(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Tt(e,t,o)}else a.current=null}function Hd(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var a=0;a<t.length;a++)h9(e.stateNode,t[a])}function Y7(e){for(var t=e.return;t!==null&&(K4(t)&&h9(e.stateNode,t.stateNode),!W4(t));)t=t.return}function Jc(e){for(var t=e.return;t!==null&&(K4(t)&&HS(e.stateNode,t.stateNode),!W4(t));)t=t.return}function W4(e){return e.tag===5||e.tag===3||e.tag===27}function K4(e){return e&&e.tag===7&&e.stateNode!==null}function j3(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(o){Tt(e,e.return,o)}}function Gp(e,t,a){try{var n=e.stateNode;xS(n,e.type,a,t),n[vn]=t}catch(o){Tt(e,e.return,o)}}function Cb(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hi(e.type)||e.tag===4}function $p(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cb(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&hi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function H3(e,t,a,n){var o=e.tag;if(o===5||o===6)o=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(o,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(o),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Ko)),Hd(e,n),ut=!0;else if(o!==4&&(o===27&&(Hd(e,n),n=null,hi(e.type)&&(a=e.stateNode,t=null)),e=e.child,e!==null))for(H3(e,t,a,n),e=e.sibling;e!==null;)H3(e,t,a,n),e=e.sibling}function _d(e,t,a,n){var o=e.tag;if(o===5||o===6)o=e.stateNode,t?a.insertBefore(o,t):a.appendChild(o),Hd(e,n),ut=!0;else if(o!==4&&(o===27&&(Hd(e,n),n=null,hi(e.type)&&(a=e.stateNode)),e=e.child,e!==null))for(_d(e,t,a,n),e=e.sibling;e!==null;)_d(e,t,a,n),e=e.sibling}function Tb(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Ha(t,n,a),t[Ra]=e,t[vn]=a}catch(r){Tt(e,e.return,r)}}var Ud=!1,Mn=null;function J7(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Ud=!0)}var Fo=null;function X7(){var e=Fo;return Fo=null,e}var gn=0;function Vs(e,t,a,n,o){return gn=0,Eb(e.child,t,a,n,o)}function Eb(e,t,a,n,o){for(var r=!1;e!==null;){if(e.tag===5){var i=e.stateNode;if(n!==null){var l=r4(i);n.push(l),l.view&&(r=!0)}else r||r4(i).view&&(r=!0);Ud=!0,d9(i,gn===0?t:t+"_"+gn,a),gn++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&o||Eb(e.child,t,a,n,o)&&(r=!0));e=e.sibling}return r}function er(e,t){for(;e!==null;)e.tag===5?u9(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||er(e.child,t)),e=e.sibling}function md(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(md(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(te(544));var a=t.name;t=Ar(t.default,t.share),t!=="none"&&(Vs(e,a,t,null,!1)||er(e.child,!1))}e=e.sibling}}function _3(e,t){if(e.tag===30){var a=e.stateNode,n=e.memoizedProps,o=kr(n,a),r=Ar(n.default,a.paired?n.share:n.enter);r!=="none"?Vs(e,o,r,null,!1)?(md(e),a.paired||t||Ns(e,n.onEnter)):er(e.child,!1):md(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)_3(e,t),e=e.sibling;else md(e)}function U3(e){if(Mn!==null&&Mn.size!==0){var t=Mn;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var a=e.memoizedProps,n=a.name;if(n!=null&&n!=="auto"){var o=t.get(n);if(o!==void 0){var r=Ar(a.default,a.share);if(r!=="none"&&(Vs(e,n,r,null,!1)?(r=e.stateNode,o.paired=r,r.paired=o,Ns(e,a.onShare)):er(e.child,!1)),t.delete(n),t.size===0)break}}}U3(e)}e=e.sibling}}}function V3(e){if(e.tag===30){var t=e.memoizedProps,a=kr(t,e.stateNode),n=Mn!==null?Mn.get(a):void 0,o=Ar(t.default,n!==void 0?t.share:t.exit);o!=="none"&&(Vs(e,a,o,null,!1)?n!==void 0?(o=e.stateNode,n.paired=o,o.paired=n,Mn.delete(a),Ns(e,t.onShare)):Ns(e,t.onExit):er(e.child,!1)),Mn!==null&&U3(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)V3(e),e=e.sibling;else Mn!==null&&U3(e)}function zb(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,a=kr(t,e.stateNode);t=Ar(t.default,t.update),e.flags&=-5,t!=="none"&&Vs(e,a,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&zb(e);e=e.sibling}}function Z3(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,er(e.child,!1))}Z3(e)}e=e.sibling}}function fd(e){if(e.tag===30)e.stateNode.paired=null,er(e.child,!1),Z3(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)fd(e),e=e.sibling;else Z3(e)}function Ab(e){for(e=e.child;e!==null;)e.tag===30?er(e.child,!1):(e.subtreeFlags&33554432)!==0&&Ab(e),e=e.sibling}function Y4(e,t,a,n,o,r,i){for(var l=!1;t!==null;){if(t.tag===5){var s=t.stateNode;if(r!==null&&gn<r.length){var c=r[gn],d=r4(s);(c.view||d.view)&&(l=!0);var u;if(u=(e.flags&4)===0)if(d.clip)u=!0;else{u=c.rect;var p=d.rect;u=u.y!==p.y||u.x!==p.x||u.height!==p.height||u.width!==p.width}u&&(e.flags|=4),d.abs?d=!c.abs:(c=c.rect,d=d.rect,d=c.height!==d.height||c.width!==d.width),d&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&d9(s,gn===0?a:a+"_"+gn,o),l&&(e.flags&4)!==0||(Fo===null&&(Fo=[]),Fo.push(s,gn===0?n:n+"_"+gn,t.memoizedProps)),gn++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&i?e.flags|=t.flags&32:Y4(e,t.child,a,n,o,r,i)&&(l=!0));t=t.sibling}return l}function Mb(e,t){for(e=e.child;e!==null;){if(e.tag===30){var a=e.memoizedProps,n=e.stateNode,o=kr(a,n),r=Ar(a.default,a.update);if(t){n=n.clones;var i=n===null?null:n.map(ES)}else i=e.memoizedState,e.memoizedState=null;n=e;var l=e.child;gn=0,o=Y4(n,l,o,o,r,i,!1),(e.flags&4)!==0&&o&&(t||Ns(e,a.onUpdate))}else(e.subtreeFlags&33554432)!==0&&Mb(e,t);e=e.sibling}}var Ea=!1,xt=!1,Zo=!1,qp=!1,Q7=typeof WeakSet=="function"?WeakSet:Set,za=null,Go=!1,Uc=!1,Vd=!1,G3=!1;function Jk(e,t,a){if(e=e.containerInfo,a4=Bs,e=fg(e),k4(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var r=o.anchorOffset,i=o.focusNode;o=o.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,c=-1,d=0,u=0,p=e,g=null;t:for(;;){for(var y;p!==n||r!==0&&p.nodeType!==3||(s=l+r),p!==i||o!==0&&p.nodeType!==3||(c=l+o),p.nodeType===3&&(l+=p.nodeValue.length),(y=p.firstChild)!==null;)g=p,p=y;for(;;){if(p===e)break t;if(g===n&&++d===r&&(s=l),g===i&&++u===o&&(c=l),(y=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=y}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(n4={focusedElem:e,selectionRange:n},Bs=!1,a=(a&335544064)===a,za=t,t=a?9270:1024;za!==null;){if(e=za,a&&(n=e.deletions,n!==null))for(r=0;r<n.length;r++)a&&V3(n[r]);if(e.alternate===null&&(e.flags&2)!==0)a&&J7(e),Y0(a);else{if(e.tag===22){if(n=e.alternate,e.memoizedState!==null){n!==null&&n.memoizedState===null&&a&&V3(n),Y0(a);continue}else if(n!==null&&n.memoizedState!==null){a&&J7(e),Y0(a);continue}}n=e.child,(e.subtreeFlags&t)!==0&&n!==null?(n.return=e,za=n):(a&&zb(e),Y0(a))}}Mn=null}function Y0(e){for(;za!==null;){var t=za,a=e,n=t.alternate,o=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((o&1024)!==0&&n!==null){a=void 0,o=n.memoizedProps,n=n.memoizedState;var r=t.stateNode;try{var i=ll(t.type,o);a=r.getSnapshotBeforeUpdate(i,n),r.__reactInternalSnapshotBeforeUpdate=a}catch(l){Tt(t,t.return,l)}}break;case 3:if((o&1024)!==0){if(n=t.stateNode.containerInfo,a=n.nodeType,a===9)i4(n);else if(a===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":i4(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:a&&n!==null&&(a=kr(n.memoizedProps,n.stateNode),o=t.memoizedProps,o=Ar(o.default,o.update),o!=="none"&&Vs(n,a,o,n.memoizedState=[],!0));break;default:if((o&1024)!==0)throw Error(te(163))}if(n=t.sibling,n!==null){n.return=t.return,za=n;break}za=t.return}}function Ib(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:$o(e,a),n&4&&T1(5,a);break;case 1:if($o(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){Tt(a,a.return,i)}else{var o=ll(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Tt(a,a.return,i)}}n&64&&kb(a),n&512&&qo(a,a.return);break;case 3:if($o(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Dg(e,t)}catch(i){Tt(a,a.return,i)}}break;case 27:t===null&&n&4&&Tb(a);case 26:case 5:$o(e,a),t===null&&n&4&&j3(a),n&512&&qo(a,a.return);break;case 12:$o(e,a);break;case 31:$o(e,a),n&4&&Lb(e,a);break;case 13:$o(e,a),n&4&&Rb(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=cS.bind(null,a),VS(e,a))));break;case 22:if(n=a.memoizedState!==null||Ea,!n){var r=t!==null&&t.memoizedState!==null||xt;t=Ea,o=xt,Ea=n,(xt=r)&&!o?(n=2,(a.subtreeFlags&8772)!==0&&(n|=1),yo(e,a,n)):$o(e,a),Ea=t,xt=o}break;case 30:$o(e,a),n&512&&qo(a,a.return);break;case 7:n&512&&qo(a,a.return);default:$o(e,a)}}function $3(e,t){for(e=e.child;e!==null;)Nb(e,t),e=e.sibling}function Nb(e,t){switch(e.tag){case 5:case 26:try{var a=e.stateNode;if(t){var n=a.style;typeof n.setProperty=="function"?n.setProperty("display","none","important"):n.display="none"}else{var o=e.stateNode,r=e.memoizedProps.style,i=r!=null&&r.hasOwnProperty("display")?r.display:null;o.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(s){Tt(e,e.return,s)}q3(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,ut=!0}catch(s){Tt(e,e.return,s)}break;case 18:try{var l=e.stateNode;t?g8(l,!0):g8(e.stateNode,!1)}catch(s){Tt(e,e.return,s)}break;case 22:case 23:e.memoizedState===null&&$3(e,t);break;default:$3(e,t)}}function q3(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var a=e,n=t;switch(a.tag){case 4:Nb(a,n);break e;case 22:a.memoizedState===null&&q3(a,n);break e;default:q3(a,n)}}e=e.sibling}}function Db(e){var t=e.alternate;t!==null&&(e.alternate=null,Db(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Xd(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Gt=null,mn=!1;function ho(e,t,a){for(a=a.child;a!==null;)Ob(e,t,a),a=a.sibling}function Ob(e,t,a){if(Dn&&typeof Dn.onCommitFiberUnmount=="function")try{Dn.onCommitFiberUnmount(y1,a)}catch{}switch(a.tag){case 26:xt||La(a,t),ho(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&!xt&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:xt||La(a,t),Jc(a);var n=Gt,o=mn;hi(a.type)&&(Gt=a.stateNode,mn=!1),ho(e,t,a),x9(a.stateNode,a.type,a.memoizedProps),Gt=n,mn=o;break;case 5:xt||La(a,t),Jc(a);case 6:if(a.tag===6&&Jc(a),n=Gt,o=mn,Gt=null,ho(e,t,a),Gt=n,mn=o,Gt!==null)if(mn)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(a.stateNode),ut=!0}catch(r){Tt(a,t,r)}else try{Gt.removeChild(a.stateNode),ut=!0}catch(r){Tt(a,t,r)}break;case 18:Gt!==null&&(mn?(e=Gt,f8(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),js(e)):f8(Gt,a.stateNode));break;case 4:n=Gt,o=mn,Gt=a.stateNode.containerInfo,mn=!0,ho(e,t,a),Gt=n,mn=o;break;case 0:case 11:case 14:case 15:fi(2,a,t),xt||fi(4,a,t),ho(e,t,a);break;case 1:xt||(La(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Sb(a,t,n)),ho(e,t,a);break;case 21:ho(e,t,a);break;case 22:xt=(n=xt)||a.memoizedState!==null,ho(e,t,a),xt=n;break;case 30:La(a,t),ho(e,t,a);break;case 7:xt||La(a,t),ho(e,t,a);break;default:ho(e,t,a)}}function Lb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{js(e)}catch(a){Tt(t,t.return,a)}}}function Rb(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{js(e)}catch(a){Tt(t,t.return,a)}}function Xk(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Q7),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Q7),t;default:throw Error(te(435,e.tag))}}function J0(e,t){var a=Xk(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var o=dS.bind(null,e,n);n.then(o,o)}})}function rn(e,t,a){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var r=n[o],i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 27:if(hi(s.type)){Gt=s.stateNode,mn=!1;break e}break;case 5:Gt=s.stateNode,mn=!1;break e;case 3:case 4:Gt=s.stateNode.containerInfo,mn=!0;break e}s=s.return}if(Gt===null)throw Error(te(160));Ob(i,l,r),Gt=null,mn=!1,i=r.alternate,i!==null&&(i.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Pb(t,e,a),t=t.sibling}var vo=null;function Pb(e,t,a){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(o&4&&(n=e.updateQueue,n=n!==null?n.events:null,n!==null))for(var r=0;r<n.length;r++){var i=n[r];i.ref.impl=i.nextImpl}rn(t,e,a),ln(e),o&4&&(fi(3,e,e.return),T1(3,e),fi(5,e,e.return));break;case 1:rn(t,e,a),ln(e),o&512&&(xt||n===null||La(n,n.return)),o&64&&Ea&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?t:a.concat(t))));break;case 26:if(r=vo,rn(t,e,a),ln(e),o&512&&(xt||n===null||La(n,n.return)),o&4)if(o=n!==null?n.memoizedState:null,a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null)if(Ea)e.stateNode=c9(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,a=e.memoizedProps,o=r.ownerDocument||r;t:switch(t){case"title":n=o.getElementsByTagName("title")[0],(!n||n[w1]||n[Ra]||n.namespaceURI==="http://www.w3.org/2000/svg"||n.hasAttribute("itemprop"))&&(n=o.createElement(t),o.head.insertBefore(n,o.querySelector("head > title"))),Ha(n,t,a),n[Ra]=e,Aa(n),t=n;break e;case"link":if(r=S8("link","href",o).get(t+(a.href||""))){for(i=0;i<r.length;i++)if(n=r[i],n.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&n.getAttribute("rel")===(a.rel==null?null:a.rel)&&n.getAttribute("title")===(a.title==null?null:a.title)&&n.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){r.splice(i,1);break t}}n=o.createElement(t),Ha(n,t,a),o.head.appendChild(n);break;case"meta":if(r=S8("meta","content",o).get(t+(a.content||""))){for(i=0;i<r.length;i++)if(n=r[i],n.getAttribute("content")===(a.content==null?null:""+a.content)&&n.getAttribute("name")===(a.name==null?null:a.name)&&n.getAttribute("property")===(a.property==null?null:a.property)&&n.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&n.getAttribute("charset")===(a.charSet==null?null:a.charSet)){r.splice(i,1);break t}}n=o.createElement(t),Ha(n,t,a),o.head.appendChild(n);break;default:throw Error(te(468,t))}n[Ra]=e,Aa(n),t=n}e.stateNode=t}else Ea||c4(r,e.type,e.stateNode);else e.stateNode=k8(r,a,e.memoizedProps);else o!==a?(o===null?(t=n.stateNode,t===null||xt||t.parentNode.removeChild(t)):o.count--,a===null?Ea||c4(r,e.type,e.stateNode):k8(r,a,e.memoizedProps)):a===null&&e.stateNode!==null&&Gp(e,e.memoizedProps,n.memoizedProps);break;case 27:rn(t,e,a),ln(e),o&512&&(xt||n===null||La(n,n.return)),n!==null&&o&4&&Gp(e,e.memoizedProps,n.memoizedProps);break;case 5:if(r=Zo,Zo=!1,rn(t,e,a),Zo=r,ln(e),o&512&&(xt||n===null||La(n,n.return)),e.flags&32){t=e.stateNode;try{As(t,""),ut=!0}catch(d){Tt(e,e.return,d)}}o&4&&e.stateNode!=null&&(t=e.memoizedProps,Gp(e,t,n!==null?n.memoizedProps:t)),o&1024&&(qp=!0);break;case 6:if(rn(t,e,a),ln(e),o&4){if(e.stateNode===null)throw Error(te(162));t=e.memoizedProps,a=e.stateNode;try{a.nodeValue=t,ut=!0}catch(d){Tt(e,e.return,d)}}break;case 3:if(ut=!1,yd=null,r=vo,vo=m1(t.containerInfo),rn(t,e,a),vo=r,ln(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{js(t.containerInfo)}catch(d){Tt(e,e.return,d)}qp&&(qp=!1,Bb(e)),ut=!1;break;case 4:o=Zo,Zo=Ea,n=r7(),r=vo,vo=m1(e.stateNode.containerInfo),rn(t,e,a),ln(e),vo=r,ut&&Uc&&(Vd=!0),ut=n,Zo=o;break;case 12:rn(t,e,a),ln(e);break;case 31:rn(t,e,a),ln(e),o&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,J0(e,t)));break;case 13:rn(t,e,a),ln(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(u2=Nn()),o&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,J0(e,t)));break;case 22:r=e.memoizedState!==null,i=n!==null&&n.memoizedState!==null;var l=Ea,s=xt,c=Zo;Ea=l||r,Zo=c||r,xt=s||i,rn(t,e,a),xt=s,Zo=c,Ea=l,ln(e),o&8192&&(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,!r||n===null||i||Ea||xt||(t=i||xt,a=Ea,n=xt,Ea=r||Ea,xt=t,$r(e,2),Ea=a,xt=n),!r&&Zo||$3(e,r)),o&4&&(t=e.updateQueue,t!==null&&(a=t.retryQueue,a!==null&&(t.retryQueue=null,J0(e,a))));break;case 19:rn(t,e,a),ln(e),o&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,J0(e,t)));break;case 30:o&512&&(xt||n===null||La(n,n.return)),o=r7(),r=Uc,i=(a&335544064)===a,l=e.memoizedProps,Uc=i&&Ar(l.default,l.update)!=="none",rn(t,e,a),ln(e),i&&n!==null&&ut&&(e.flags|=4),Uc=r,ut=o;break;case 21:break;case 7:o&512&&(xt||n===null||La(n,n.return)),n&&n.stateNode!==null&&(n.stateNode._fragmentFiber=e);default:rn(t,e,a),ln(e)}}function ln(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Cb(n)){a=n;break}n=n.return}n=null;for(var o=e.return;o!==null;){if(K4(o)){var r=o.stateNode;n===null?n=[r]:n.push(r)}if(W4(o))break;o=o.return}var i=n;if(a==null)throw Error(te(160));switch(a.tag){case 27:var l=a.stateNode,s=$p(e);_d(e,s,l,i);break;case 5:var c=a.stateNode;a.flags&32&&(As(c,""),a.flags&=-33);var d=$p(e);_d(e,d,c,i);break;case 3:case 4:var u=a.stateNode.containerInfo,p=$p(e);H3(e,p,u,i);break;default:throw Error(te(161))}}catch(g){Tt(e,e.return,g)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bb(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Bb(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Bs=!0,t.reset(),Bs=!1),e=e.sibling}}function es(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)jb(t,e),t=t.sibling;else Mb(t,!1)}function jb(e,t){var a=e.alternate;if(a===null)_3(e,!1);else switch(e.tag){case 3:if(G3=Go=!1,X7(),es(t,e),!Go&&!Vd){if(e=Fo,e!==null)for(var n=0;n<e.length;n+=3){a=e[n];var o=e[n+1];u9(a,e[n+2]),a=a.ownerDocument.documentElement,a!==null&&a.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+o+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),G3=!0}Fo=null;break;case 5:es(t,e);break;case 4:n=Go,Go=!1,es(t,e),Go&&(Vd=!0),Go=n;break;case 22:e.memoizedState===null&&(a.memoizedState!==null?_3(e,!1):es(t,e));break;case 30:n=Go,o=X7(),Go=!1,es(t,e),Go&&(e.flags|=4);var r=e.memoizedProps,i=e.stateNode;t=kr(r,i),i=kr(a.memoizedProps,i);var l=Ar(r.default,r.update);l==="none"?t=!1:(r=a.memoizedState,a.memoizedState=null,a=e.child,gn=0,t=Y4(e,a,t,i,l,r,!0),gn!==(r===null?0:r.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ns(e,e.memoizedProps.onUpdate),Fo=o):o!==null&&(o.push.apply(o,Fo),Fo=o),Go=(e.flags&32)!==0?!0:n;break;default:es(t,e)}}function $o(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ib(e,t.alternate,t),t=t.sibling}function $r(e,t){for(e=e.child;e!==null;){var a=e,n=t;switch(a.tag){case 0:case 11:case 14:case 15:fi(4,a,a.return),$r(a,n);break;case 1:La(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&Sb(a,a.return,o),$r(a,n);break;case 27:(n&2)!==0&&x9(a.stateNode,a.type,a.memoizedProps);case 5:La(a,a.return),a.tag!==5&&a.tag!==27||Jc(a),$r(a,n);break;case 6:Jc(a);break;case 26:La(a,a.return),o=a.stateNode,a.memoizedState!==null||o===null||xt||o.parentNode.removeChild(o),$r(a,n);break;case 22:a.memoizedState===null&&$r(a,n);break;case 30:La(a,a.return),$r(a,n);break;case 7:La(a,a.return);default:$r(a,n)}e=e.sibling}}function yo(e,t,a){for(a=(t.subtreeFlags&8772)!==0?a:a&-2,t=t.child;t!==null;){var n=t.alternate,o=e,r=t,i=r.flags,l=(a&1)!==0;switch(r.tag){case 0:case 11:case 15:yo(o,r,a),T1(4,r);break;case 1:if(yo(o,r,a),n=r,o=n.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(d){Tt(n,n.return,d)}if(n=r,o=n.updateQueue,o!==null){var s=n.stateNode;try{var c=o.shared.hiddenCallbacks;if(c!==null)for(o.shared.hiddenCallbacks=null,o=0;o<c.length;o++)Ng(c[o],s)}catch(d){Tt(n,n.return,d)}}l&&i&64&&kb(r),qo(r,r.return);break;case 27:(a&2)!==0&&Tb(r);case 5:r.tag!==5&&r.tag!==27||Y7(r),yo(o,r,a),l&&n===null&&i&4&&j3(r),qo(r,r.return);break;case 6:Y7(r);break;case 26:s=r.stateNode,r.memoizedState!==null||s===null||Ea||c4(m1(s.ownerDocument),r.type,s),yo(o,r,a),l&&n===null&&i&4&&j3(r),qo(r,r.return);break;case 12:yo(o,r,a);break;case 31:yo(o,r,a),l&&i&4&&Lb(o,r);break;case 13:yo(o,r,a),l&&i&4&&Rb(o,r);break;case 22:r.memoizedState===null&&yo(o,r,a),qo(r,r.return);break;case 30:yo(o,r,a),qo(r,r.return);break;case 7:qo(r,r.return);default:yo(o,r,a)}t=t.sibling}}function J4(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&S1(a))}function X4(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&S1(e))}function Jn(e,t,a,n){var o=(a&335544064)===a;if(t.subtreeFlags&(o?10262:10256))for(t=t.child;t!==null;)Hb(e,t,a,n),t=t.sibling;else o&&Ab(t)}function Hb(e,t,a,n){var o=(a&335544064)===a;o&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&fd(t);var r=t.flags;switch(t.tag){case 0:case 11:case 15:Jn(e,t,a,n),r&2048&&T1(9,t);break;case 1:Jn(e,t,a,n);break;case 3:Jn(e,t,a,n),o&&G3&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),r&2048&&(r=null,t.alternate!==null&&(r=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==r&&(t.refCount++,r!=null&&S1(r)));break;case 12:if(r&2048){Jn(e,t,a,n),r=t.stateNode;try{var i=t.memoizedProps,l=i.id,s=i.onPostCommit;typeof s=="function"&&s(l,t.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(c){Tt(t,t.return,c)}}else Jn(e,t,a,n);break;case 31:Jn(e,t,a,n);break;case 13:Jn(e,t,a,n);break;case 23:break;case 22:i=t.stateNode,l=t.alternate,t.memoizedState!==null?(o&&l!==null&&l.memoizedState===null&&fd(l),i._visibility&2?Jn(e,t,a,n):Xc(e,t)):(o&&l!==null&&l.memoizedState!==null&&fd(t),i._visibility&2?Jn(e,t,a,n):(i._visibility|=2,as(e,t,a,n,(t.subtreeFlags&10256)!==0||!1))),r&2048&&J4(l,t);break;case 24:Jn(e,t,a,n),r&2048&&X4(t.alternate,t);break;case 30:o&&(r=t.alternate,r!==null&&(er(r.child,!0),er(t.child,!0))),Jn(e,t,a,n);break;default:Jn(e,t,a,n)}}function as(e,t,a,n,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,i=t,l=a,s=n,c=i.flags;switch(i.tag){case 0:case 11:case 15:as(r,i,l,s,o),T1(8,i);break;case 23:break;case 22:var d=i.stateNode;i.memoizedState!==null?d._visibility&2?as(r,i,l,s,o):Xc(r,i):(d._visibility|=2,as(r,i,l,s,o)),o&&c&2048&&J4(i.alternate,i);break;case 24:as(r,i,l,s,o),o&&c&2048&&X4(i.alternate,i);break;default:as(r,i,l,s,o)}t=t.sibling}}function Xc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,o=n.flags;switch(n.tag){case 22:Xc(a,n),o&2048&&J4(n.alternate,n);break;case 24:Xc(a,n),o&2048&&X4(n.alternate,n);break;default:Xc(a,n)}t=t.sibling}}var Fi=8192;function Gi(e,t,a){if(e.subtreeFlags&Fi)for(e=e.child;e!==null;)_b(e,t,a),e=e.sibling}function _b(e,t,a){switch(e.tag){case 26:Gi(e,t,a),e.flags&Fi&&(e.memoizedState!==null?aC(a,vo,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&T8(a,e)));break;case 5:Gi(e,t,a),e.flags&Fi&&(e=e.stateNode,(t&335544128)===t&&T8(a,e));break;case 3:case 4:var n=vo;vo=m1(e.stateNode.containerInfo),Gi(e,t,a),vo=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Fi,Fi=16777216,Gi(e,t,a),Fi=n):Gi(e,t,a));break;case 30:if((e.flags&Fi)!==0&&(n=e.memoizedProps.name,n!=null&&n!=="auto")){var o=e.stateNode;o.paired=null,Mn===null&&(Mn=new Map),Mn.set(n,o)}Gi(e,t,a);break;default:Gi(e,t,a)}}function Ub(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Lc(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];za=n,Zb(n,e)}Ub(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vb(e),e=e.sibling}function Vb(e){switch(e.tag){case 0:case 11:case 15:Lc(e),e.flags&2048&&fi(9,e,e.return);break;case 3:Lc(e);break;case 12:Lc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,gd(e)):Lc(e);break;default:Lc(e)}}function gd(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];za=n,Zb(n,e)}Ub(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:fi(8,t,t.return),gd(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,gd(t));break;default:gd(t)}e=e.sibling}}function Zb(e,t){for(;za!==null;){var a=za;switch(a.tag){case 0:case 11:case 15:fi(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:S1(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,za=n;else e:for(a=e;za!==null;){n=za;var o=n.sibling,r=n.return;if(Db(n),n===a){za=null;break e}if(o!==null){o.return=r,za=o;break e}za=r}}}var Qk={getCacheForType:function(e){var t=Pa(fa),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Pa(fa).controller.signal}},eS=typeof WeakMap=="function"?WeakMap:Map,ft=0,Mt=null,nt=null,it=0,St=0,En=null,Xr=!1,Zs=!1,Q4=!1,Er=0,ea=0,gi=0,el=0,Zd=0,In=0,Is=0,Qc=null,fn=null,F3=!1,u2=0,Gb=0,Gd=1/0,$d=null,li=null,Yt=0,wo=null,sl=null,Qo=0,W3=0,K3=null,$b=null,Ss=null,Cs=null,Ts=null,e1=0,bd=null;function Ln(){return(ft&2)!==0&&it!==0?it&-it:Ze.T!==null?tm():K8()}function qb(){if(In===0)if((it&536870912)===0||Qe){var e=j0;j0<<=1,(j0&3932160)===0&&(j0=262144),In=e}else In=536870912;return e=_a.current,e!==null&&(e.flags|=32),In}function Ns(e,t){if(t!=null){var a=e.stateNode,n=a.ref;n===null&&(n=a.ref=m9(kr(e.memoizedProps,a))),Cs===null&&(Cs=[]),Cs.push(t.bind(null,n))}}function hn(e,t,a){(e===Mt&&(St===2||St===9)||e.cancelPendingCommit!==null)&&(Ds(e,0),Qr(e,it,In,!1)),x1(e,a),((ft&2)===0||e!==Mt)&&(e===Mt&&((ft&2)===0&&(el|=a),ea===4&&Qr(e,it,In,!1)),ar(e))}function Fb(e,t,a){if((ft&6)!==0)throw Error(te(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||v1(e,t),o=n?nS(e,t):Fp(e,t,!0),r=n;do{if(o===0){Zs&&!n&&Qr(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!tS(a)){o=Fp(e,t,!1),r=!1;continue}if(o===2){if(r=t,e.errorRecoveryDisabledLanes&r)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var l=e;o=Qc;var s=l.current.memoizedState.isDehydrated;if(s&&(Ds(l,i).flags|=256),i=Fp(l,i,!1),i!==2&&i!==6){if(Q4&&!s){l.errorRecoveryDisabledLanes|=r,el|=r,o=4;break e}r=fn,fn=o,r!==null&&(fn===null?fn=r:fn.push.apply(fn,r))}o=i}if(r=!1,o!==2)continue}}if(o===1){Ds(e,0),Qr(e,t,0,!0);break}e:{switch(n=e,r=o,r){case 0:case 1:throw Error(te(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Qr(n,t,In,!Xr);break e;case 2:fn=null;break;case 3:case 5:break;default:throw Error(te(329))}if((t&62914560)===t&&(o=u2+300-Nn(),10<o)){if(Qr(n,t,In,!Xr),Jd(n,0,!0)!==0)break e;Qo=t,n.timeoutHandle=nm(e8.bind(null,n,a,fn,$d,F3,t,In,el,Is,Xr,r,"Throttled",-0,0),o);break e}e8(n,a,fn,$d,F3,t,In,el,Is,Xr,r,null,-0,0)}}break}while(!0);ar(e)}function e8(e,t,a,n,o,r,i,l,s,c,d,u,p,g){e.timeoutHandle=-1;var y=t.subtreeFlags,b=(r&335544064)===r;if(u=null,(b||y&8192||(y&16785408)===16785408)&&(u={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ko},Mn=null,_b(t,r,u),b&&(y=u,b=e.containerInfo,b=(b.nodeType===9?b:b.ownerDocument).__reactViewTransition,b!=null&&(y.count++,y.waitingForViewTransition=!0,y=f1.bind(y),b.finished.then(y,y))),y=(r&62914560)===r?u2-Nn():(r&4194048)===r?Gb-Nn():0,y=nC(u,y),y!==null)){Qo=r,e.cancelPendingCommit=y(a8.bind(null,e,t,r,a,n,o,i,l,s,c,d,u,null,p,g)),Qr(e,r,i,!c);return}a8(e,t,r,a,n,o,i,l,s,c,d,u)}function tS(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var o=a[n],r=o.getSnapshot;o=o.value;try{if(!Rn(r(),o))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Qr(e,t,a,n){t=G8(e,t),t&=~Zd,t&=~el,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var o=t;0<o;){var r=31-On(o),i=1<<r;n[r]=-1,o&=~i}a!==0&&q8(e,a,t)}function p2(){return(ft&6)===0?(E1(0,!1),!1):!0}function em(){if(nt!==null){if(St===0)var e=nt.return;else e=nt,yr=ml=null,B4(e),xs=null,l1=0,e=nt;for(;e!==null;)wb(e.alternate,e),e=e.return;nt=null}}function Ds(e,t){var a=e.timeoutHandle;return a!==-1&&(e.timeoutHandle=-1,SS(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Qo=0,em(),Mt=e,nt=a=vr(e.current,null),it=t,St=0,En=null,Xr=!1,Zs=v1(e,t),Q4=!1,Is=In=Zd=el=gi=ea=0,fn=Qc=null,F3=!1,Er=G8(e,t),a2(),a}function Wb(e,t){We=null,Ze.H=Bd,t===Us||t===r2?(t=z7(),St=3):t===M4?(t=z7(),St=4):St=t===$4?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,En=t,nt===null&&(ea=1,jd(e,ao(t,e.current)))}function Kb(){var e=_a.current;return e===null?!0:(it&4194048)===it?Ja===null:(it&62914560)===it||(it&536870912)!==0?e===Ja:!1}function Yb(){var e=Ze.H;return Ze.H=Bd,e===null?Bd:e}function Jb(){var e=Ze.A;return Ze.A=Qk,e}function qd(){ea=4,Xr||(it&4194048)!==it&&_a.current!==null||(Zs=!0),(gi&134217727)===0&&(el&134217727)===0||Mt===null||Qr(Mt,it,In,!1)}function Fp(e,t,a){var n=ft;ft|=2;var o=Yb(),r=Jb();(Mt!==e||it!==t)&&($d=null,Ds(e,t)),t=!1;var i=ea;e:do try{if(St!==0&&nt!==null){var l=nt,s=En;switch(St){case 8:em(),i=6;break e;case 3:case 2:case 9:case 6:_a.current===null&&(t=!0);var c=St;if(St=0,En=null,gs(e,l,s,c),a&&Zs){i=0;break e}break;default:c=St,St=0,En=null,gs(e,l,s,c)}}aS(),i=ea;break}catch(d){Wb(e,d)}while(!0);return t&&e.shellSuspendCounter++,yr=ml=null,ft=n,Ze.H=o,Ze.A=r,nt===null&&(Mt=null,it=0,a2()),i}function aS(){for(;nt!==null;)Xb(nt)}function nS(e,t){var a=ft;ft|=2;var n=Yb(),o=Jb();Mt!==e||it!==t?($d=null,Gd=Nn()+500,Ds(e,t)):Zs=v1(e,t);e:do try{if(St!==0&&nt!==null){t=nt;var r=En;t:switch(St){case 1:St=0,En=null,gs(e,t,r,1);break;case 2:case 9:if(E7(r)){St=0,En=null,t8(t);break}t=function(){St!==2&&St!==9||Mt!==e||(St=7),ar(e)},r.then(t,t);break e;case 3:St=7;break e;case 4:St=5;break e;case 7:E7(r)?(St=0,En=null,t8(t)):(St=0,En=null,gs(e,t,r,7));break;case 5:var i=null;switch(nt.tag){case 26:i=nt.memoizedState;case 5:case 27:var l=nt;if(i?S9(i):l.stateNode.complete){St=0,En=null;var s=l.sibling;if(s!==null)nt=s;else{var c=l.return;c!==null?(nt=c,m2(c)):nt=null}break t}}St=0,En=null,gs(e,t,r,5);break;case 6:St=0,En=null,gs(e,t,r,6);break;case 8:em(),ea=6;break e;default:throw Error(te(462))}}oS();break}catch(d){Wb(e,d)}while(!0);return yr=ml=null,Ze.H=n,Ze.A=o,ft=a,nt!==null?0:(Mt=null,it=0,a2(),ea)}function oS(){for(;nt!==null&&!ww();)Xb(nt)}function Xb(e){var t=xb(e.alternate,e,Er);e.memoizedProps=e.pendingProps,t===null?m2(e):nt=t}function t8(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Z7(a,t,t.pendingProps,t.type,void 0,it);break;case 11:t=Z7(a,t,t.pendingProps,t.type.render,t.ref,it);break;case 5:B4(t);var n=t;n===Ma&&(Qe?(Id(n),n.tag===5&&n.stateNode!=null&&(Pt=n.stateNode)):(Id(n),Qe=!0));default:wb(a,t),t=nt=kg(t,Er),t=xb(a,t,Er)}e.memoizedProps=e.pendingProps,t===null?m2(e):nt=t}function gs(e,t,a,n){yr=ml=null,B4(t),xs=null,l1=0;var o=t.return;try{if($k(e,o,t,a,it)){ea=1,jd(e,ao(a,e.current)),nt=null;return}}catch(r){if(o!==null)throw nt=o,r;ea=1,jd(e,ao(a,e.current)),nt=null;return}t.flags&32768?(Qe||n===1?e=!0:Zs||(it&536870912)!==0?e=!1:(Xr=e=!0,(n===2||n===9||n===3||n===6)&&(n=_a.current,n!==null&&n.tag===13&&(n.flags|=16384))),Qb(t,e)):m2(t)}function m2(e){var t=e;do{if((t.flags&32768)!==0){Qb(t,Xr);return}e=t.return;var a=Kk(t.alternate,t,Er);if(a!==null){nt=a;return}if(t=t.sibling,t!==null){nt=t;return}nt=t=e}while(t!==null);ea===0&&(ea=5)}function Qb(e,t){do{var a=Yk(e.alternate,e);if(a!==null){a.flags&=32767,nt=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){nt=e;return}nt=e=a}while(e!==null);ea=6,nt=null}function a8(e,t,a,n,o,r,i,l,s,c,d,u){e.cancelPendingCommit=null;do f2();while(Yt!==0);if((ft&6)!==0)throw Error(te(327));if(t!==null){if(t===e.current)throw Error(te(177));e===Mt&&(nt=Mt=null,it=0),sl=t,wo=e,Qo=a,K3=o,$b=n,rS(e,t,a,i,l,s,u)}}function rS(e,t,a,n,o,r,i){var l=t.lanes|t.childLanes;if(W3=l,l|=S4,Nw(e,a,l,n,o,r),Cs=null,(a&335544064)===a?(Ts=Ok(e),n=10262):(Ts=null,n=10256),(t.subtreeFlags&n)!==0||(t.flags&n)!==0?(e.callbackNode=null,e.callbackPriority=0,uS(Td,function(){return Q3(),null})):(e.callbackNode=null,e.callbackPriority=0),Ud=!1,n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=Ze.T,Ze.T=null,o=gt.p,gt.p=2,r=ft,ft|=4;try{Jk(e,t,a)}finally{ft=r,gt.p=o,Ze.T=n}}Yt=1,Ud?Ss=MS(i,e.containerInfo,Ts,Y3,J3,lS,X3,Q3,iS,null,null):(Y3(),J3(),X3())}function iS(e){if(Yt!==0){var t=wo.onRecoverableError;t(e,{componentStack:null})}}function lS(){Yt===3&&(Yt=0,jb(sl,wo),Yt=4)}function Y3(){if(Yt===1){Yt=0;var e=wo,t=sl,a=Qo,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=Ze.T,Ze.T=null;var o=gt.p;gt.p=2;var r=ft;ft|=4;try{Uc=Vd=!1,Pb(t,e,a),a=n4;var i=fg(e.containerInfo),l=a.focusedElem,s=a.selectionRange;if(i!==l&&l&&l.ownerDocument&&mg(l.ownerDocument.documentElement,l)){if(s!==null&&k4(l)){var c=s.start,d=s.end;if(d===void 0&&(d=c),"selectionStart"in l)l.selectionStart=c,l.selectionEnd=Math.min(d,l.value.length);else{var u=l.ownerDocument||document,p=u&&u.defaultView||window;if(p.getSelection){var g=p.getSelection(),y=l.textContent.length,b=Math.min(s.start,y),x=s.end===void 0?b:Math.min(s.end,y);!g.extend&&b>x&&(i=x,x=b,b=i);var f=y7(l,b),m=y7(l,x);if(f&&m&&(g.rangeCount!==1||g.anchorNode!==f.node||g.anchorOffset!==f.offset||g.focusNode!==m.node||g.focusOffset!==m.offset)){var v=u.createRange();v.setStart(f.node,f.offset),g.removeAllRanges(),b>x?(g.addRange(v),g.extend(m.node,m.offset)):(v.setEnd(m.node,m.offset),g.addRange(v))}}}}for(u=[],g=l;g=g.parentNode;)g.nodeType===1&&u.push({element:g,left:g.scrollLeft,top:g.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<u.length;l++){var T=u[l];T.element.scrollLeft=T.left,T.element.scrollTop=T.top}}Bs=!!a4,n4=a4=null}finally{ft=r,gt.p=o,Ze.T=n}}e.current=t,Yt=2}}function J3(){if(Yt===2){Yt=0;var e=wo,t=sl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=Ze.T,Ze.T=null;var n=gt.p;gt.p=2;var o=ft;ft|=4;try{Ib(e,t.alternate,t)}finally{ft=o,gt.p=n,Ze.T=a}}Yt=3}}function X3(){if(Yt===4||Yt===3){Yt=0;var e=Ss;Ss=null,kw();var t=wo,a=sl,n=Qo,o=$b,r=(n&335544064)===n?10262:10256;if((a.subtreeFlags&r)!==0||(a.flags&r)!==0?Yt=5:(Yt=0,sl=wo=null,e9(t,t.pendingLanes)),r=t.pendingLanes,r===0&&(li=null),b4(n),a=a.stateNode,Dn&&typeof Dn.onCommitFiberRoot=="function")try{Dn.onCommitFiberRoot(y1,a,void 0,(a.current.flags&128)===128)}catch{}if(o!==null){a=Ze.T,r=gt.p,gt.p=2,Ze.T=null;try{for(var i=t.onRecoverableError,l=0;l<o.length;l++){var s=o[l];i(s.value,{componentStack:s.stack})}}finally{Ze.T=a,gt.p=r}}if(o=Cs,i=Ts,Ts=null,o!==null&&(Cs=null,i===null&&(i=[]),e!==null))for(s=0;s<o.length;s++)a=(0,o[s])(i),a!==void 0&&e.finished.finally(a);(Qo&3)!==0&&f2(),ar(t),r=t.pendingLanes,(n&261930)!==0&&(r&42)!==0?t===bd?e1++:(e1=0,bd=t):(e1=0,bd=null),E1(0,!1)}}function e9(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,S1(t)))}function f2(){return Ss!==null&&(Ss.skipTransition(),Ss=null),Y3(),J3(),X3(),Q3()}function Q3(){if(Yt!==5)return!1;var e=wo,t=W3;W3=0;var a=b4(Qo),n=Ze.T,o=gt.p;try{gt.p=32>a?32:a,Ze.T=null,a=K3,K3=null;var r=wo,i=Qo;if(Yt=0,sl=wo=null,Qo=0,(ft&6)!==0)throw Error(te(331));var l=ft;if(ft|=4,Vb(r.current),Hb(r,r.current,i,a),ft=l,E1(0,!1),Dn&&typeof Dn.onPostCommitFiberRoot=="function")try{Dn.onPostCommitFiberRoot(y1,r)}catch{}return!0}finally{gt.p=o,Ze.T=n,e9(e,t)}}function n8(e,t,a){t=ao(a,t),t=D3(e.stateNode,t,2),e=oi(e,t,2),e!==null&&(x1(e,2),ar(e))}function Tt(e,t,a){if(e.tag===3)n8(e,e,a);else for(;t!==null;){if(t.tag===3){n8(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(li===null||!li.has(n))){e=ao(a,e),a=gb(2),n=oi(t,a,2),n!==null&&(bb(a,n,t,e),x1(n,2),ar(n));break}}t=t.return}}function Wp(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new eS;var o=new Set;n.set(t,o)}else o=n.get(t),o===void 0&&(o=new Set,n.set(t,o));o.has(a)||(Q4=!0,o.add(a),e=sS.bind(null,e,t,a),t.then(e,e))}function sS(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Mt===e&&(it&a)===a&&((ea===4||ea===3&&(it&62914560)===it&&300>Nn()-u2)&&(ft&2)===0?Ds(e,0):Zd|=a,Is===it&&(Is=0)),ar(e)}function t9(e,t){t===0&&(t=$8()),e=pl(e,t),e!==null&&(x1(e,t),ar(e))}function cS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),t9(e,a)}function dS(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(te(314))}n!==null&&n.delete(t),t9(e,a)}function uS(e,t){return f4(e,t)}var Os=null,ns=null,e4=!1,Fd=!1,Kp=!1,ei=0;function ar(e){e!==ns&&e.next===null&&(ns===null?Os=ns=e:ns=ns.next=e),Fd=!0,e4||(e4=!0,mS())}function E1(e,t){if(!Kp&&Fd){Kp=!0;do for(var a=!1,n=Os;n!==null;){if(!t)if(e!==0){var o=n.pendingLanes;if(o===0)var r=0;else{var i=n.suspendedLanes,l=n.pingedLanes;r=(1<<31-On(42|e)+1)-1,r&=o&~(i&~l),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,o8(n,r))}else r=it,r=Jd(n,n===Mt?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||v1(n,r)||(a=!0,o8(n,r));n=n.next}while(a);Kp=!1}}function pS(){a9()}function a9(){Fd=e4=!1;var e=0;ei!==0&&kS()&&(e=ei);for(var t=Nn(),a=null,n=Os;n!==null;){var o=n.next,r=n9(n,t);r===0?(n.next=null,a===null?Os=o:a.next=o,o===null&&(ns=a)):(a=n,(e!==0||(r&3)!==0)&&(Fd=!0)),n=o}Yt!==0&&Yt!==5||E1(e,!1),ei!==0&&(ei=0)}function n9(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var i=31-On(r),l=1<<i,s=o[i];s===-1?((l&a)===0||(l&n)!==0)&&(o[i]=Iw(l,t)):s<=t&&(e.expiredLanes|=l),r&=~l}if(t=Mt,a=it,a=Jd(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(St===2||St===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&zp(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||v1(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&zp(n),b4(a)){case 2:case 8:a=V8;break;case 32:a=Td;break;case 268435456:a=Z8;break;default:a=Td}return n=o9.bind(null,e),a=f4(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&zp(n),e.callbackPriority=2,e.callbackNode=null,2}function o9(e,t){if(Yt!==0&&Yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(f2()&&e.callbackNode!==a)return null;var n=it;return n=Jd(e,e===Mt?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(Fb(e,n,t),n9(e,Nn()),e.callbackNode!=null&&e.callbackNode===a?o9.bind(null,e):null)}function o8(e,t){if(f2())return null;Fb(e,t,!0)}function mS(){CS(function(){(ft&6)!==0?f4(U8,pS):a9()})}function tm(){if(ei===0){var e=ol;e===0&&(e=B0,B0<<=1,(B0&261888)===0&&(B0=256)),ei=e}return ei}function r8(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:od(e)}function fS(e,t,a,n,o){if(t==="submit"&&a&&a.stateNode===o){var r=r8((o[vn]||null).action),i=n.submitter;i&&(t=(t=i[vn]||null)?r8(t.formAction):i.getAttribute("formAction"),t!==null&&(r=t,i=null));var l=new Qd("action","action",null,n,o);e.push({event:l,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(ei!==0){var s=new FormData(o,i);I3(a,{pending:!0,data:s,method:o.method,action:r},null,s)}}else typeof r=="function"&&(l.preventDefault(),s=new FormData(o,i),I3(a,{pending:!0,data:s,method:o.method,action:r},r,s))},currentTarget:o}]})}}for(X0=0;X0<v3.length;X0++)Q0=v3[X0],i8=Q0.toLowerCase(),l8=Q0[0].toUpperCase()+Q0.slice(1),ko(i8,"on"+l8);var Q0,i8,l8,X0;ko(bg,"onAnimationEnd");ko(hg,"onAnimationIteration");ko(yg,"onAnimationStart");ko("dblclick","onDoubleClick");ko("focusin","onFocus");ko("focusout","onBlur");ko(Tk,"onTransitionRun");ko(Ek,"onTransitionStart");ko(zk,"onTransitionCancel");ko(vg,"onTransitionEnd");zs("onMouseEnter",["mouseout","mouseover"]);zs("onMouseLeave",["mouseout","mouseover"]);zs("onPointerEnter",["pointerout","pointerover"]);zs("onPointerLeave",["pointerout","pointerover"]);dl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));dl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));dl("onBeforeInput",["compositionend","keypress","textInput","paste"]);dl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));dl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));dl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var d1="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(d1));function r9(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],o=n.event;n=n.listeners;e:{var r=void 0;if(t)for(var i=n.length-1;0<=i;i--){var l=n[i],s=l.instance,c=l.currentTarget;if(l=l.listener,s!==r&&o.isPropagationStopped())break e;r=l,o.currentTarget=c;try{r(o)}catch(d){zd(d)}o.currentTarget=null,r=s}else for(i=0;i<n.length;i++){if(l=n[i],s=l.instance,c=l.currentTarget,l=l.listener,s!==r&&o.isPropagationStopped())break e;r=l,o.currentTarget=c;try{r(o)}catch(d){zd(d)}o.currentTarget=null,r=s}}}}function at(e,t){var a=t[t7];a===void 0&&(a=t[t7]=new Set);var n=e+"__bubble";a.has(n)||(i9(t,e,2,!1),a.add(n))}function Yp(e,t,a){var n=0;t&&(n|=4),i9(a,e,n,t)}var ed="_reactListening"+Math.random().toString(36).slice(2);function am(e){if(!e[ed]){e[ed]=!0,J8.forEach(function(a){a!=="selectionchange"&&(gS.has(a)||Yp(a,!1,e),Yp(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ed]||(t[ed]=!0,Yp("selectionchange",!1,t))}}function i9(e,t,a,n){switch(I9(t)){case 2:var o=lC;break;case 8:o=sC;break;default:o=cm}a=o.bind(null,t,a,e),o=void 0,!g3||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),n?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function Jp(e,t,a,n,o){var r=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var i=n.tag;if(i===3||i===4){var l=n.stateNode.containerInfo;if(l===o)break;if(i===4)for(i=n.return;i!==null;){var s=i.tag;if((s===3||s===4)&&i.stateNode.containerInfo===o)return;i=i.return}for(;l!==null;){if(i=Wi(l),i===null)return;if(s=i.tag,s===5||s===6||s===26||s===27){n=r=i;continue e}l=l.parentNode}}n=n.return}rg(function(){var c=r,d=y4(a),u=[];e:{var p=xg.get(e);if(p!==void 0){var g=Qd,y=e;switch(e){case"keypress":if(id(a)===0)break e;case"keydown":case"keyup":g=tk;break;case"focusin":y="focus",g=Op;break;case"focusout":y="blur",g=Op;break;case"beforeblur":case"afterblur":g=Op;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=c7;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=Zw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=ik;break;case bg:case hg:case yg:g=qw;break;case vg:g=sk;break;case"scroll":case"scrollend":g=Uw;break;case"wheel":g=dk;break;case"copy":case"cut":case"paste":g=Ww;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=u7;break;case"submit":g=ok;break;case"toggle":case"beforetoggle":g=pk}var b=(t&4)!==0,x=!b&&(e==="scroll"||e==="scrollend"),f=b?p!==null?p+"Capture":null:p;b=[];for(var m=c,v;m!==null;){var T=m;if(v=T.stateNode,T=T.tag,T!==5&&T!==26&&T!==27||v===null||f===null||(T=a1(m,f),T!=null&&b.push(u1(m,T,v))),x)break;m=m.return}0<b.length&&(p=new g(p,y,null,a,d),u.push({event:p,listeners:b}))}}if((t&7)===0){e:{if(g=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",g&&a!==f3&&(y=a.relatedTarget||a.fromElement)&&(Wi(y)||y[Hs]))break e;(p||g)&&(y=d.window===d?d:(g=d.ownerDocument)?g.defaultView||g.parentWindow:window,p?(g=a.relatedTarget||a.toElement,p=c,g=g?Wi(g):null,g!==null&&(x=h1(g),b=g.tag,g!==x||b!==5&&b!==27&&b!==6)&&(g=null)):(p=null,g=c),p!==g&&(b=c7,T="onMouseLeave",f="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(b=u7,T="onPointerLeave",f="onPointerEnter",m="pointer"),x=p==null?y:Hc(p),v=g==null?y:Hc(g),y=new b(T,m+"leave",p,a,d),y.target=x,y.relatedTarget=v,T=null,Wi(d)===c&&(b=new b(f,m+"enter",g,a,d),b.target=v,b.relatedTarget=x,T=b),x=T,b=p&&g?a3(p,g,bS):null,p!==null&&s8(u,y,p,b,!1),g!==null&&x!==null&&s8(u,x,g,b,!0)))}e:{if(p=c?Hc(c):window,g=p.nodeName&&p.nodeName.toLowerCase(),g==="select"||g==="input"&&p.type==="file")var w=g7;else if(f7(p))if(ug)w=kk;else{w=xk;var E=vk}else g=p.nodeName,!g||g.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?c&&h4(c.elementType)&&(w=g7):w=wk;if(w&&(w=w(e,c))){dg(u,w,a,d);break e}E&&E(e,p,c)}switch(E=c?Hc(c):window,e){case"focusin":(f7(E)||E.contentEditable==="true")&&(cs=E,h3=c,Gc=null);break;case"focusout":Gc=h3=cs=null;break;case"mousedown":y3=!0;break;case"contextmenu":case"mouseup":case"dragend":y3=!1,v7(u,a,d);break;case"selectionchange":if(Ck)break;case"keydown":case"keyup":v7(u,a,d)}var L;if(w4)e:{switch(e){case"compositionstart":var H="onCompositionStart";break e;case"compositionend":H="onCompositionEnd";break e;case"compositionupdate":H="onCompositionUpdate";break e}H=void 0}else ss?sg(e,a)&&(H="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(H="onCompositionStart");H&&(lg&&a.locale!=="ko"&&(ss||H!=="onCompositionStart"?H==="onCompositionEnd"&&ss&&(L=ig()):(Yr=d,v4="value"in Yr?Yr.value:Yr.textContent,ss=!0)),E=Wd(c,H),0<E.length&&(H=new d7(H,e,null,a,d),u.push({event:H,listeners:E}),L?H.data=L:(L=cg(a),L!==null&&(H.data=L)))),(L=fk?gk(e,a):bk(e,a))&&(H=Wd(c,"onBeforeInput"),0<H.length&&(E=new d7("onBeforeInput","beforeinput",null,a,d),u.push({event:E,listeners:H}),E.data=L)),fS(u,e,c,a,d)}r9(u,t)})}function u1(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Wd(e,t){for(var a=t+"Capture",n=[];e!==null;){var o=e,r=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||r===null||(o=a1(e,a),o!=null&&n.unshift(u1(e,o,r)),o=a1(e,t),o!=null&&n.push(u1(e,o,r))),e.tag===3)return n;e=e.return}return[]}function bS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function s8(e,t,a,n,o){for(var r=t._reactName,i=[];a!==null&&a!==n;){var l=a,s=l.alternate,c=l.stateNode;if(l=l.tag,s!==null&&s===n)break;l!==5&&l!==26&&l!==27||c===null||(s=c,o?(c=a1(a,r),c!=null&&i.unshift(u1(a,c,s))):o||(c=a1(a,r),c!=null&&i.push(u1(a,c,s)))),a=a.return}i.length!==0&&e.push({event:t,listeners:i})}var hS=/\r\n?/g,yS=/\u0000|\uFFFD/g;function c8(e){return(typeof e=="string"?e:""+e).replace(hS,`
|
|
9
|
-
`).replace(yS,"")}function l9(e,t){return t=c8(t),c8(e)===t}function Ct(e,t,a,n,o,r){switch(a){case"children":if(typeof n=="string")t==="body"||t==="textarea"&&n===""||As(e,n);else if(typeof n=="number"||typeof n=="bigint")t!=="body"&&As(e,""+n);else return;break;case"className":_0(e,"class",n);break;case"tabIndex":_0(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":_0(e,a,n);break;case"style":og(e,n,r);return;case"data":if(t!=="object"){_0(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=od(n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(a==="formAction"?(t!=="input"&&Ct(e,t,"name",o.name,o,null),Ct(e,t,"formEncType",o.formEncType,o,null),Ct(e,t,"formMethod",o.formMethod,o,null),Ct(e,t,"formTarget",o.formTarget,o,null)):(Ct(e,t,"encType",o.encType,o,null),Ct(e,t,"method",o.method,o,null),Ct(e,t,"target",o.target,o,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=od(n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=Ko);return;case"onScroll":n!=null&&at("scroll",e);return;case"onScrollEnd":n!=null&&at("scrollend",e);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(te(61));if(a=n.__html,a!=null){if(o.children!=null)throw Error(te(60));r?.__html!==a&&(e.innerHTML=a)}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=od(n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":at("beforetoggle",e),at("toggle",e),nd(e,"popover",n);break;case"xlinkActuate":gr(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":gr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":gr(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":gr(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":gr(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":gr(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":gr(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":gr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":gr(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":nd(e,"is",n);break;case"innerText":case"textContent":return;default:if(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")a=Hw.get(a)||a,nd(e,a,n);else return}ut=!0}function t4(e,t,a,n,o,r){switch(a){case"style":og(e,n,r);return;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(te(61));if(a=n.__html,a!=null){if(o.children!=null)throw Error(te(60));r?.__html!==a&&(e.innerHTML=a)}}break;case"children":if(typeof n=="string")As(e,n);else if(typeof n=="number"||typeof n=="bigint")As(e,""+n);else return;break;case"onScroll":n!=null&&at("scroll",e);return;case"onScrollEnd":n!=null&&at("scrollend",e);return;case"onClick":n!=null&&(e.onclick=Ko);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!X8.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),r=a.slice(2,o?a.length-7:void 0),t=e[vn]||null,t=t!=null?t[a]:null,typeof t=="function"&&e.removeEventListener(r,t,o),typeof n=="function")){typeof t!="function"&&t!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(r,n,o);break e}ut=!0,a in e?e[a]=n:n===!0?e.setAttribute(a,""):nd(e,a,n)}return}ut=!0}function Ha(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",e),at("load",e);var n=!1,o=!1,r;for(r in a)if(a.hasOwnProperty(r)){var i=a[r];if(i!=null)switch(r){case"src":n=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(te(137,t));default:Ct(e,t,r,i,a,null)}}o&&Ct(e,t,"srcSet",a.srcSet,a,null),n&&Ct(e,t,"src",a.src,a,null);return;case"input":at("invalid",e);var l=r=i=o=null,s=null,c=null;for(n in a)if(a.hasOwnProperty(n)){var d=a[n];if(d!=null)switch(n){case"name":o=d;break;case"type":i=d;break;case"checked":s=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(te(137,t));break;default:Ct(e,t,n,d,a,null)}}tg(e,r,l,s,c,i,o,!1);return;case"select":at("invalid",e),n=i=r=null;for(o in a)if(a.hasOwnProperty(o)&&(l=a[o],l!=null))switch(o){case"value":r=l;break;case"defaultValue":i=l;break;case"multiple":n=l;default:Ct(e,t,o,l,a,null)}t=r,a=i,e.multiple=!!n,t!=null?hs(e,!!n,t,!1):a!=null&&hs(e,!!n,a,!0);return;case"textarea":at("invalid",e),r=o=n=null;for(i in a)if(a.hasOwnProperty(i)&&(l=a[i],l!=null))switch(i){case"value":n=l;break;case"defaultValue":o=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(te(91));break;default:Ct(e,t,i,l,a,null)}ng(e,n,o,r);return;case"option":for(s in a)a.hasOwnProperty(s)&&(n=a[s],n!=null)&&(s==="selected"?e.selected=n&&typeof n!="function"&&typeof n!="symbol":Ct(e,t,s,n,a,null));return;case"dialog":at("beforetoggle",e),at("toggle",e),at("cancel",e),at("close",e);break;case"iframe":case"object":at("load",e);break;case"video":case"audio":for(n=0;n<d1.length;n++)at(d1[n],e);break;case"image":at("error",e),at("load",e);break;case"details":at("toggle",e);break;case"embed":case"source":case"link":at("error",e),at("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in a)if(a.hasOwnProperty(c)&&(n=a[c],n!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(te(137,t));default:Ct(e,t,c,n,a,null)}return;default:if(h4(t)){for(d in a)a.hasOwnProperty(d)&&(n=a[d],n!==void 0&&t4(e,t,d,n,a,void 0));return}}for(l in a)a.hasOwnProperty(l)&&(n=a[l],n!=null&&Ct(e,t,l,n,a,null))}var vS={};function xS(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,r=null,i=null,l=null,s=null,c=null,d=null;for(g in a){var u=a[g];if(a.hasOwnProperty(g)&&u!=null)switch(g){case"checked":break;case"value":break;case"defaultValue":s=u;default:n.hasOwnProperty(g)||Ct(e,t,g,null,n,u)}}for(var p in n){var g=n[p];if(u=a[p],n.hasOwnProperty(p)&&(g!=null||u!=null))switch(p){case"type":g!==u&&(ut=!0),r=g;break;case"name":g!==u&&(ut=!0),o=g;break;case"checked":g!==u&&(ut=!0),c=g;break;case"defaultChecked":g!==u&&(ut=!0),d=g;break;case"value":g!==u&&(ut=!0),i=g;break;case"defaultValue":g!==u&&(ut=!0),l=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(te(137,t));break;default:g!==u&&Ct(e,t,p,g,n,u)}}m3(e,i,l,s,c,d,r,o);return;case"select":g=i=l=p=null;for(r in a)if(s=a[r],a.hasOwnProperty(r)&&s!=null)switch(r){case"value":break;case"multiple":g=s;default:n.hasOwnProperty(r)||Ct(e,t,r,null,n,s)}for(o in n)if(r=n[o],s=a[o],n.hasOwnProperty(o)&&(r!=null||s!=null))switch(o){case"value":r!==s&&(ut=!0),p=r;break;case"defaultValue":r!==s&&(ut=!0),l=r;break;case"multiple":r!==s&&(ut=!0),i=r;default:r!==s&&Ct(e,t,o,r,n,s)}t=l,a=i,n=g,p!=null?hs(e,!!a,p,!1):!!n!=!!a&&(t!=null?hs(e,!!a,t,!0):hs(e,!!a,a?[]:"",!1));return;case"textarea":g=p=null;for(l in a)if(o=a[l],a.hasOwnProperty(l)&&o!=null&&!n.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:Ct(e,t,l,null,n,o)}for(i in n)if(o=n[i],r=a[i],n.hasOwnProperty(i)&&(o!=null||r!=null))switch(i){case"value":o!==r&&(ut=!0),p=o;break;case"defaultValue":o!==r&&(ut=!0),g=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(te(91));break;default:o!==r&&Ct(e,t,i,o,n,r)}ag(e,p,g);return;case"option":for(var y in a)p=a[y],a.hasOwnProperty(y)&&p!=null&&!n.hasOwnProperty(y)&&(y==="selected"?e.selected=!1:Ct(e,t,y,null,n,p));for(s in n)p=n[s],g=a[s],n.hasOwnProperty(s)&&p!==g&&(p!=null||g!=null)&&(s==="selected"?(p!==g&&(ut=!0),e.selected=p&&typeof p!="function"&&typeof p!="symbol"):Ct(e,t,s,p,n,g));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in a)p=a[b],a.hasOwnProperty(b)&&p!=null&&!n.hasOwnProperty(b)&&Ct(e,t,b,null,n,p);for(c in n)if(p=n[c],g=a[c],n.hasOwnProperty(c)&&p!==g&&(p!=null||g!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(te(137,t));break;default:Ct(e,t,c,p,n,g)}return;default:if(h4(t)){for(var x in a)p=a[x],a.hasOwnProperty(x)&&p!==void 0&&!n.hasOwnProperty(x)&&t4(e,t,x,void 0,n,p);for(d in n)p=n[d],g=a[d],!n.hasOwnProperty(d)||p===g||p===void 0&&g===void 0||t4(e,t,d,p,n,g);return}}for(var f in a)p=a[f],a.hasOwnProperty(f)&&p!=null&&!n.hasOwnProperty(f)&&Ct(e,t,f,null,n,p);for(u in n)p=n[u],g=a[u],!n.hasOwnProperty(u)||p===g||p==null&&g==null||Ct(e,t,u,p,n,g)}function d8(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function wS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var o=a[n],r=o.transferSize,i=o.initiatorType,l=o.duration;if(r&&l&&d8(i)){for(i=0,l=o.responseEnd,n+=1;n<a.length;n++){var s=a[n],c=s.startTime;if(c>l)break;var d=s.transferSize,u=s.initiatorType;d&&d8(u)&&(s=s.responseEnd,i+=d*(s<l?1:(l-c)/(s-c)))}if(--n,t+=8*(r+i)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var a4=null,n4=null;function p1(e){return e.nodeType===9?e:e.ownerDocument}function u8(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function s9(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function c9(e,t,a,n){return a=p1(a).createElement(e),a[Ra]=n,a[vn]=t,Ha(a,e,t),Aa(a),a}function o4(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xp=null;function kS(){var e=window.event;return e&&e.type==="popstate"?e===Xp?!1:(Xp=e,!0):(Xp=null,!1)}var nm=typeof setTimeout=="function"?setTimeout:void 0,SS=typeof clearTimeout=="function"?clearTimeout:void 0,p8=typeof Promise=="function"?Promise:void 0,m8=typeof requestAnimationFrame=="function"?requestAnimationFrame:nm,CS=typeof queueMicrotask=="function"?queueMicrotask:typeof p8<"u"?function(e){return p8.resolve(null).then(e).catch(TS)}:nm;function TS(e){setTimeout(function(){throw e})}function hi(e){return e==="head"}function f8(e,t){var a=t,n=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(o),js(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")e3(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,e3(a);for(var r=a.firstChild;r;){var i=r.nextSibling,l=r.nodeName;r[w1]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=i}}else a==="body"&&e3(e.ownerDocument.body);a=o}while(a);js(t)}function g8(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function d9(e,t,a){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,a!=null&&(e.style.viewTransitionClass=a),a=getComputedStyle(e),a.display==="inline"){if(t=e.getClientRects(),t.length===1)var n=1;else for(var o=n=0;o<t.length;o++){var r=t[o];0<r.width&&0<r.height&&n++}n===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+a.paddingTop,e.marginBottom="-"+a.paddingBottom)}}function u9(e,t){e=e.style,t=t.style;var a=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=a==null||typeof a=="boolean"?"":(""+a).trim(),a=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=a==null||typeof a=="boolean"?"":(""+a).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(a=t.display,e.display=a==null||typeof a=="boolean"?"":a,a=t.margin,a!=null?e.margin=a:(a=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=a==null||typeof a=="boolean"?"":a,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function p9(e,t,a){return a=a.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=a.innerHeight&&e.left<=a.innerWidth}}function r4(e){var t=e.getBoundingClientRect(),a=getComputedStyle(e);return p9(t,a,e)}function ES(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var a=getComputedStyle(e);return p9(t,a,e)}function zS(e){return e.documentElement.clientHeight}function AS(e){this.addEventListener("load",e),this.addEventListener("error",e)}function MS(e,t,a,n,o,r,i,l,s){var c=t.nodeType===9?t:t.ownerDocument;try{var d=c.startViewTransition({update:function(){var p=c.defaultView,g=p.navigation&&p.navigation.transition,y=c.fonts.status;n();var b=[];if(y==="loaded"&&(zS(c),c.fonts.status==="loading"&&b.push(c.fonts.ready)),y=b.length,e!==null)for(var x=e.suspenseyImages,f=0,m=0;m<x.length;m++){var v=x[m];if(!v.complete){var T=v.getBoundingClientRect();if(0<T.bottom&&0<T.right&&T.top<p.innerHeight&&T.left<p.innerWidth){if(f+=C9(v),f>vd){b.length=y;break}v=new Promise(AS.bind(v)),b.push(v)}}}if(0<b.length)return p=Promise.race([Promise.all(b),new Promise(function(w){return setTimeout(w,500)})]).then(o,o),(g?Promise.allSettled([g.finished,p]):p).then(r,r);if(o(),g)return g.finished.then(r,r);r()},types:a});c.__reactViewTransition=d;var u=[];return d.ready.then(function(){for(var p=c.documentElement.getAnimations({subtree:!0}),g=0;g<p.length;g++){var y=p[g],b=y.effect,x=b.pseudoElement;if(x!=null&&x.startsWith("::view-transition")){u.push(y),y=b.getKeyframes();for(var f=x=void 0,m=!0,v=0;v<y.length;v++){var T=y[v],w=T.width;if(x===void 0)x=w;else if(x!==w){m=!1;break}if(w=T.height,f===void 0)f=w;else if(f!==w){m=!1;break}delete T.width,delete T.height,T.transform==="none"&&delete T.transform}m&&x!==void 0&&f!==void 0&&(b.setKeyframes(y),m=getComputedStyle(b.target,b.pseudoElement),m.width!==x||m.height!==f)&&(m=y[0],m.width=x,m.height=f,m=y[y.length-1],m.width=x,m.height=f,b.setKeyframes(y))}}i()},function(p){c.__reactViewTransition===d&&(c.__reactViewTransition=null);try{typeof p=="object"&&p!==null&&p.name==="InvalidStateError"&&(p.message==="View transition was skipped because document visibility state is hidden."||p.message==="Skipping view transition because document visibility state has become hidden."||p.message==="Skipping view transition because viewport size changed."||p.message==="Transition was aborted because of invalid state")&&(p=null),p!==null&&s(p)}finally{n(),o(),i()}}),d.finished.finally(function(){for(var p=0;p<u.length;p++)u[p].cancel();c.__reactViewTransition===d&&(c.__reactViewTransition=null),l()}),d}catch{return n(),o(),i(),null}}function Ki(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}Ki.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:It({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)};Ki.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,a=e.getAnimations({subtree:!0}),n=[],o=0;o<a.length;o++){var r=a[o].effect;r!==null&&r.target===e&&r.pseudoElement===t&&n.push(a[o])}return n};Ki.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function m9(e){return{name:e,group:new Ki("group",e),imagePair:new Ki("image-pair",e),old:new Ki("old",e),new:new Ki("new",e)}}function Pn(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Pn.prototype.addEventListener=function(e,t,a){var n=null,o=null;if(!(a!=null&&typeof a!="boolean"&&(n=a.signal||null,n!==null&&n.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var r=this._eventListeners;if(f9(r,e,t,a)===-1){var i=this,l=t;a!=null&&typeof a!="boolean"&&a.once===!0&&(l=function(s){i.removeEventListener(e,t,a),typeof t=="function"?t.call(this,s):t.handleEvent(s)}),n!==null&&(o=i.removeEventListener.bind(i,e,t,a),n.addEventListener("abort",o,{once:!0}),o=n.removeEventListener.bind(n,"abort",o)),n=Ls(a),r.push({type:e,listener:t,optionsOrUseCapture:a,attachedListener:l,cleanup:o}),yn(this._fragmentFiber.child,!1,IS,e,l,n)}this._eventListeners=r}};function IS(e,t,a,n){return xa(e).addEventListener(t,a,n),!1}Pn.prototype.removeEventListener=function(e,t,a){var n=this._eventListeners;if(n!==null&&(t=f9(n,e,t,a),t!==-1)){var o=n[t];a=o.attachedListener;var r=o.cleanup;o=Ls(o.optionsOrUseCapture),yn(this._fragmentFiber.child,!1,NS,e,a,o),n.splice(t,1),r!==null&&r()}};function NS(e,t,a,n){return xa(e).removeEventListener(t,a,n),!1}function Ls(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function b8(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function f9(e,t,a,n){if(e.length===0)return-1;n=b8(n);for(var o=0;o<e.length;o++){var r=e[o];if(r.type===t&&r.listener===a&&b8(r.optionsOrUseCapture)===n)return o}return-1}Pn.prototype.dispatchEvent=function(e){var t=cl(this._fragmentFiber);if(t===null)return!0;t=xa(t);var a=this._eventListeners;if(a!==null&&0<a.length||!e.bubbles){var n=t.nodeType===9?t.createComment(""):document.createTextNode("");if(a)for(var o=0;o<a.length;o++){var r=a[o];n.addEventListener(r.type,r.attachedListener,Ls(r.optionsOrUseCapture))}if(t.appendChild(n),e=n.dispatchEvent(e),a)for(o=0;o<a.length;o++)r=a[o],n.removeEventListener(r.type,r.attachedListener,Ls(r.optionsOrUseCapture));return t.removeChild(n),e}return t.dispatchEvent(e)};Pn.prototype.focus=function(e){yn(this._fragmentFiber.child,!0,g9,e,void 0,void 0)};function g9(e,t){return e.tag===6?!1:(e=xa(e),ZS(e,t))}Pn.prototype.focusLast=function(e){var t=[];yn(this._fragmentFiber.child,!0,om,t,void 0,void 0);for(var a=t.length-1;0<=a&&!g9(t[a],e);a--);};function om(e,t){return t.push(e),!1}Pn.prototype.blur=function(){var e=cl(this._fragmentFiber);e!==null&&(e=xa(e),e=p1(e).activeElement,e!==null&&yn(this._fragmentFiber.child,!1,DS,e,void 0,void 0))};function DS(e,t){return e.tag===6?!1:(e=xa(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Pn.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),yn(this._fragmentFiber.child,!1,OS,e,void 0,void 0)};function OS(e,t){return e.tag===6||(e=xa(e),t.observe(e)),!1}Pn.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),yn(this._fragmentFiber.child,!1,LS,e,void 0,void 0);for(var a=t=0;a<xo.length;a++){var n=xo[a];n.fragmentInstance===this&&n.observer===e?e.unobserve(n.instance):xo[t++]=n}xo.length=t}};function LS(e,t){return e.tag===6||(e=xa(e),t.unobserve(e)),!1}var xo=[],Qp=!1;function RS(e,t,a){xo.push({fragmentInstance:e,observer:t,instance:a}),Qp||(Qp=!0,GS(function(){Qp=!1;var n=xo;xo=[];for(var o=0;o<n.length;o++){var r=n[o];r.observer.unobserve(r.instance)}}))}Pn.prototype.getClientRects=function(){var e=[];return yn(this._fragmentFiber.child,!1,PS,e,void 0,void 0),e};function PS(e,t){if(e.tag===6){e=e.stateNode;var a=e.ownerDocument.createRange();a.selectNodeContents(e),t.push.apply(t,a.getClientRects())}else e=xa(e),t.push.apply(t,e.getClientRects());return!1}Pn.prototype.getRootNode=function(e){var t=cl(this._fragmentFiber);return t===null?this:xa(t).getRootNode(e)};Pn.prototype.compareDocumentPosition=function(e){var t=cl(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var a=[];yn(this._fragmentFiber.child,!1,om,a,void 0,void 0);var n=xa(t);if(a.length===0){if(a=n,K6(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(a=t)}t=this._fragmentFiber;var o=n=a.compareDocumentPosition(e);return a===e?o=Node.DOCUMENT_POSITION_CONTAINS:n&Node.DOCUMENT_POSITION_CONTAINED_BY&&(a=B8(t)[1],a===null?o=Node.DOCUMENT_POSITION_PRECEDING:(e=xa(a).compareDocumentPosition(e),o=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),o|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=xa(a[0]),o=xa(a[a.length-1]);var r=K6(this._fragmentFiber)?t.parentElement:n;if(r==null)return Node.DOCUMENT_POSITION_DISCONNECTED;n=r.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,r=r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=t.compareDocumentPosition(e),l=o.compareDocumentPosition(e),s=i&Node.DOCUMENT_POSITION_CONTAINED_BY||l&Node.DOCUMENT_POSITION_CONTAINED_BY;return l=n&&r&&i&Node.DOCUMENT_POSITION_FOLLOWING&&l&Node.DOCUMENT_POSITION_PRECEDING,t=n&&t===e||r&&o===e||s||l?Node.DOCUMENT_POSITION_CONTAINED_BY:!n&&t===e||!r&&o===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||BS(t,this._fragmentFiber,a[0],a[a.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function BS(e,t,a,n,o){var r=Wi(o);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(a=!!r)e:{for(;r!==null;){if(r.tag===7&&(r===t||r.alternate===t)){a=!0;break e}r=r.return}a=!1}return a}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(r===null)return r=o.ownerDocument,o===r||o===r.documentElement||o===r.body;e:{for(r=t,t=cl(t);r!==null;){if(!(r.tag!==5&&r.tag!==3&&r.tag!==27||r!==t&&r.alternate!==t)){r=!0;break e}r=r.return}r=!1}return r}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!r)&&!(t=r===a)&&(t=a3(a,r,Y6),t===null?t=!1:(yn(t,!0,mw,r,a),r=os,os=null,t=r!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!r)&&!(t=r===n)&&(t=a3(n,r,Y6),t===null?t=!1:(yn(t,!0,fw,r,n),r=os,t3=os=null,t=r!==null)),t):!1}function h8(e,t){var a=e.ownerDocument.createRange();a.selectNodeContents(e),e=a.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Pn.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(te(566));var t=[];yn(this._fragmentFiber.child,!1,om,t,void 0,void 0);var a=e!==!1;if(t.length===0){var n=B8(this._fragmentFiber);if(n=a?n[1]||n[0]||cl(this._fragmentFiber):n[0]||n[1],n===null)return;if(n.tag===6){e=xa(n),h8(e,a);return}if(n=xa(n),n.nodeType!==9){if(n.nodeType===11){a="host"in n?n.host:null,a!==null&&a.scrollIntoView(e);return}n.scrollIntoView(e)}}for(n=a?t.length-1:0;n!==(a?-1:t.length);){var o=t[n];o.tag===6?(o=xa(o),h8(o,a)):xa(o).scrollIntoView(e),n+=a?-1:1}};function jS(e,t){return e=xa(e),b9(e,t),!1}function b9(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function h9(e,t){var a=t._eventListeners;if(a!==null)for(var n=0;n<a.length;n++){var o=a[n];e.addEventListener(o.type,o.attachedListener,Ls(o.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(r){for(var i=0,l=0;l<xo.length;l++){var s=xo[l];(s.fragmentInstance!==t||s.observer!==r||s.instance!==e)&&(xo[i++]=s)}xo.length=i,r.observe(e)}),b9(e,t))}function HS(e,t){var a=t._eventListeners;if(a!==null)for(var n=0;n<a.length;n++){var o=a[n];e.removeEventListener(o.type,o.attachedListener,Ls(o.optionsOrUseCapture))}e.nodeType!==3&&(a=t._observers,a!==null&&a.forEach(function(r){typeof r.rootMargin=="string"?RS(t,r,e):r.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function i4(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":i4(a),Xd(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function _S(e,t,a,n){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[w1])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=oo(e.nextSibling),e===null)break}return null}function US(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=oo(e.nextSibling),e===null))return null;return e}function y9(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=oo(e.nextSibling),e===null))return null;return e}function l4(e){return e.data==="$?"||e.data==="$~"}function rm(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function VS(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function oo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var s4=null;function y8(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return oo(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function v8(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function ZS(e,t){function a(){n=!0}if(e.ownerDocument.activeElement===e)return!0;var n=!1;try{e.ownerDocument.addEventListener("focus",a,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",a,!0)}return n}function GS(e){m8(function(){m8(function(t){return e(t)})})}function v9(e,t,a){switch(t=p1(a),e){case"html":if(e=t.documentElement,!e)throw Error(te(452));return e;case"head":if(e=t.head,!e)throw Error(te(453));return e;case"body":if(e=t.body,!e)throw Error(te(454));return e;default:throw Error(te(451))}}function x9(e,t,a){for(var n in a){var o=a[n];a.hasOwnProperty(n)&&o!=null&&Ct(e,t,n,null,vS,o)}a.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===Ko&&(e.onclick=null),Xd(e)}function e3(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Xd(e)}var ro=new Map,x8=new Set;function m1(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Mr=gt.d;gt.d={f:$S,r:qS,D:FS,C:WS,L:KS,m:YS,X:XS,S:JS,M:QS};function $S(){var e=Mr.f(),t=p2();return e||t}function qS(e){var t=_s(e);t!==null&&t.tag===5&&t.type==="form"?ob(t):Mr.r(e)}var Gs=typeof document>"u"?null:document;function w9(e,t,a){var n=Gs;if(n&&typeof t=="string"&&t){var o=to(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),x8.has(o)||(x8.add(o),e={rel:e,crossOrigin:a,href:t},n.querySelector(o)===null&&(t=n.createElement("link"),Ha(t,"link",e),Aa(t),n.head.appendChild(t)))}}function FS(e){Mr.D(e),w9("dns-prefetch",e,null)}function WS(e,t){Mr.C(e,t),w9("preconnect",e,t)}function KS(e,t,a){Mr.L(e,t,a);var n=Gs;if(n&&e&&t){var o='link[rel="preload"][as="'+to(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+to(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+to(a.imageSizes)+'"]')):o+='[href="'+to(e)+'"]';var r=o;switch(t){case"style":r=Rs(e);break;case"script":r=$s(e)}if(!(ro.has(r)||(e=It({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),ro.set(r,e),n.querySelector(o)!==null||t==="style"&&n.querySelector(z1(r))||t==="script"&&n.querySelector(A1(r))))){var i=n.createElement("link");Ha(i,"link",e),t==="style"&&(i[Ed]=!0,i.onload=i.onerror=function(){Y8(i)}),Aa(i),n.head.appendChild(i)}}}function YS(e,t){Mr.m(e,t);var a=Gs;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+to(n)+'"][href="'+to(e)+'"]',r=o;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=$s(e)}if(!ro.has(r)&&(e=It({rel:"modulepreload",href:e},t),ro.set(r,e),a.querySelector(o)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(A1(r)))return}n=a.createElement("link"),Ha(n,"link",e),Aa(n),a.head.appendChild(n)}}}function JS(e,t,a){Mr.S(e,t,a);var n=Gs;if(n&&e){var o=bs(n).hoistableStyles,r=Rs(e);t=t||"default";var i=o.get(r);if(!i){var l={loading:0,preload:null};if(i=n.querySelector(z1(r)))l.loading=5;else{e=It({rel:"stylesheet",href:e,"data-precedence":t},a),(a=ro.get(r))&&im(e,a);var s=i=n.createElement("link");Aa(s),Ha(s,"link",e),s._p=new Promise(function(c,d){s.onload=c,s.onerror=d}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,hd(i,t,n)}i={type:"stylesheet",instance:i,count:1,state:l},o.set(r,i)}}}function XS(e,t){Mr.X(e,t);var a=Gs;if(a&&e){var n=bs(a).hoistableScripts,o=$s(e),r=n.get(o);r||(r=a.querySelector(A1(o)),r||(e=It({src:e,async:!0},t),(t=ro.get(o))&&lm(e,t),r=a.createElement("script"),Aa(r),Ha(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(o,r))}}function QS(e,t){Mr.M(e,t);var a=Gs;if(a&&e){var n=bs(a).hoistableScripts,o=$s(e),r=n.get(o);r||(r=a.querySelector(A1(o)),r||(e=It({src:e,async:!0,type:"module"},t),(t=ro.get(o))&&lm(e,t),r=a.createElement("script"),Aa(r),Ha(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(o,r))}}function w8(e,t,a,n){var o=(o=ti.current)?m1(o):null;if(!o)throw Error(te(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Rs(a.href),t=bs(o).hoistableStyles,n=t.get(a),n||(n={type:"style",instance:null,count:0,state:null},t.set(a,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Rs(a.href);var r=bs(o).hoistableStyles,i=r.get(e);if(i||(o=o.ownerDocument||o,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,i),(r=o.querySelector(z1(e)))?r._p||(i.instance=r,i.state.loading=5):(r=ro.get(e),r||(r={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ro.set(e,r)),eC(o,e,r,i.state))),t&&n===null)throw Error(te(528,""));return i}if(t&&n!==null)throw Error(te(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(a=$s(a),t=bs(o).hoistableScripts,n=t.get(a),n||(n={type:"script",instance:null,count:0,state:null},t.set(a,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(te(444,e))}}function Rs(e){return'href="'+to(e)+'"'}function z1(e){return'link[rel="stylesheet"]['+e+"]"}function k9(e){return It({},e,{"data-precedence":e.precedence,precedence:null})}function eC(e,t,a,n){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Ed]!==!0){n.loading=1;return}}else t=e.createElement("link"),t[Ed]=!0,t.onload=t.onerror=Y8.bind(null,t),Ha(t,"link",a),Aa(t),e.head.appendChild(t);n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2})}function $s(e){return'[src="'+to(e)+'"]'}function A1(e){return"script[async]"+e}function k8(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+to(a.href)+'"]');if(n)return t.instance=n,Aa(n),n;var o=It({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),Aa(n),Ha(n,"style",o),hd(n,a.precedence,e),t.instance=n;case"stylesheet":o=Rs(a.href);var r=e.querySelector(z1(o));if(r)return t.state.loading|=4,t.instance=r,Aa(r),r;n=k9(a),(o=ro.get(o))&&im(n,o),r=(e.ownerDocument||e).createElement("link"),Aa(r);var i=r;return i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),Ha(r,"link",n),t.state.loading|=4,hd(r,a.precedence,e),t.instance=r;case"script":return r=$s(a.src),(o=e.querySelector(A1(r)))?(t.instance=o,Aa(o),o):(n=a,(o=ro.get(r))&&(n=It({},a),lm(n,o)),e=e.ownerDocument||e,o=e.createElement("script"),Aa(o),Ha(o,"link",n),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(te(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,hd(n,a.precedence,e));return t.instance}function hd(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=n.length?n[n.length-1]:null,r=o,i=0;i<n.length;i++){var l=n[i];if(l.dataset.precedence===t)r=l;else if(r!==o)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function im(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lm(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var yd=null;function S8(e,t,a){if(yd===null){var n=new Map,o=yd=new Map;o.set(a,n)}else o=yd,n=o.get(a),n||(n=new Map,o.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var r=a[o];if(!(r[w1]||r[Ra]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var i=r.getAttribute(t)||"";i=e+i;var l=n.get(i);l?l.push(r):n.set(i,[r])}}return n}function c4(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function tC(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;return t.rel==="stylesheet"?(e=t.disabled,typeof t.precedence=="string"&&e==null):!0;case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function C8(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function S9(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function C9(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function T8(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=C9(t),e.suspenseyImages.push(t)),e=oC.bind(e),t.decode().then(e,e))}function aC(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var o=Rs(n.href),r=t.querySelector(z1(o));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=f1.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,Aa(r);return}r=t.ownerDocument||t,n=k9(n),(o=ro.get(o))&&im(n,o),r=r.createElement("link"),Aa(r);var i=r;i._p=new Promise(function(l,s){i.onload=l,i.onerror=s}),Ha(r,"link",n),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=f1.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var vd=0;function nC(e,t){return e.stylesheets&&e.count===0&&xd(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&xd(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&vd===0&&(vd=62500*wS());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&xd(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>vd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(o)}}:null}function T9(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)xd(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function f1(){this.count--,T9(this)}function oC(){this.imgCount--,T9(this)}var Kd=null;function xd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Kd=new Map,t.forEach(rC,e),Kd=null,f1.call(e))}function rC(e,t){if(!(t.state.loading&4)){var a=Kd.get(e);if(a)var n=a.get(null);else{a=new Map,Kd.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<o.length;r++){var i=o[r];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(a.set(i.dataset.precedence,i),n=i)}n&&a.set(null,n)}o=t.instance,i=o.getAttribute("data-precedence"),r=a.get(i)||n,r===n&&a.set(null,o),a.set(i,o),this.count++,n=f1.bind(this),o.addEventListener("load",n),o.addEventListener("error",n),r?r.parentNode.insertBefore(o,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var Ps={$$typeof:Wo,Provider:null,Consumer:null,_currentValue:Yi,_currentValue2:Yi,_threadCount:0};function iC(e,t,a,n,o,r,i,l,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ap(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ap(0),this.hiddenUpdates=Ap(null),this.identifierPrefix=n,this.onUncaughtError=o,this.onCaughtError=r,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.transitionTypes=null,this.incompleteTransitions=new Map}function E9(e,t,a,n,o,r,i,l,s,c,d,u){return e=new iC(e,t,a,i,s,c,d,u,l),t=1,r===!0&&(t|=24),r=bn(3,null,null,t),e.current=r,r.stateNode=e,t=z4(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:n,isDehydrated:a,cache:t},I4(r),e}function z9(e){return e?(e=ps,e):ps}function A9(e,t,a,n,o,r){o=z9(o),n.context===null?n.context=o:n.pendingContext=o,n=ni(t),n.payload={element:a},r=r===void 0?null:r,r!==null&&(n.callback=r),a=oi(e,n,t),a!==null&&(hn(a,e,t),qc(a,e,t))}function E8(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function sm(e,t){E8(e,t),(e=e.alternate)&&E8(e,t)}function M9(e){if(e.tag===13||e.tag===31){var t=pl(e,67108864);t!==null&&hn(t,e,67108864),sm(e,67108864)}}function z8(e){if(e.tag===13||e.tag===31){var t=Ln();t=g4(t);var a=pl(e,t);a!==null&&hn(a,e,t),sm(e,t)}}var Bs=!0;function lC(e,t,a,n){var o=Ze.T;Ze.T=null;var r=gt.p;try{gt.p=2,cm(e,t,a,n)}finally{gt.p=r,Ze.T=o}}function sC(e,t,a,n){var o=Ze.T;Ze.T=null;var r=gt.p;try{gt.p=8,cm(e,t,a,n)}finally{gt.p=r,Ze.T=o}}function cm(e,t,a,n){if(Bs){var o=d4(n);if(o===null)Jp(e,t,n,Yd,a),A8(e,n);else if(dC(o,e,t,a,n))n.stopPropagation();else if(A8(e,n),t&4&&-1<cC.indexOf(e)){for(;o!==null;){var r=_s(o);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var i=$i(r.pendingLanes);if(i!==0){var l=r;for(l.pendingLanes|=2,l.entangledLanes|=2;i;){var s=1<<31-On(i);l.entanglements[1]|=s,i&=~s}ar(r),(ft&6)===0&&(Gd=Nn()+500,E1(0,!1))}}break;case 31:case 13:l=pl(r,2),l!==null&&hn(l,r,2),p2(),sm(r,2)}if(r=d4(n),r===null&&Jp(e,t,n,Yd,a),r===o)break;o=r}o!==null&&n.stopPropagation()}else Jp(e,t,n,null,a)}}function d4(e){return e=y4(e),dm(e)}var Yd=null;function dm(e){if(Yd=null,e=Wi(e),e!==null){var t=h1(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=L8(t),e!==null)return e;e=null}else if(a===31){if(e=R8(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Yd=e,null}function I9(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Sw()){case U8:return 2;case V8:return 8;case Td:case Cw:return 32;case Z8:return 268435456;default:return 32}default:return 32}}var u4=!1,si=null,ci=null,di=null,g1=new Map,b1=new Map,Wr=[],cC="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function A8(e,t){switch(e){case"focusin":case"focusout":si=null;break;case"dragenter":case"dragleave":ci=null;break;case"mouseover":case"mouseout":di=null;break;case"pointerover":case"pointerout":g1.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":b1.delete(t.pointerId)}}function Rc(e,t,a,n,o,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:r,targetContainers:[o]},t!==null&&(t=_s(t),t!==null&&M9(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function dC(e,t,a,n,o){switch(t){case"focusin":return si=Rc(si,e,t,a,n,o),!0;case"dragenter":return ci=Rc(ci,e,t,a,n,o),!0;case"mouseover":return di=Rc(di,e,t,a,n,o),!0;case"pointerover":var r=o.pointerId;return g1.set(r,Rc(g1.get(r)||null,e,t,a,n,o)),!0;case"gotpointercapture":return r=o.pointerId,b1.set(r,Rc(b1.get(r)||null,e,t,a,n,o)),!0}return!1}function N9(e){var t=Wi(e.target);if(t!==null){var a=h1(t);if(a!==null){if(t=a.tag,t===13){if(t=L8(a),t!==null){e.blockedOn=t,e7(e.priority,function(){z8(a)});return}}else if(t===31){if(t=R8(a),t!==null){e.blockedOn=t,e7(e.priority,function(){z8(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=d4(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);f3=n,a.target.dispatchEvent(n),f3=null}else return t=_s(a),t!==null&&M9(t),e.blockedOn=a,!1;t.shift()}return!0}function M8(e,t,a){wd(e)&&a.delete(t)}function uC(){u4=!1,si!==null&&wd(si)&&(si=null),ci!==null&&wd(ci)&&(ci=null),di!==null&&wd(di)&&(di=null),g1.forEach(M8),b1.forEach(M8)}function td(e,t){e.blockedOn===t&&(e.blockedOn=null,u4||(u4=!0,wa.unstable_scheduleCallback(wa.unstable_NormalPriority,uC)))}var ad=null;function I8(e){ad!==e&&(ad=e,wa.unstable_scheduleCallback(wa.unstable_NormalPriority,function(){ad===e&&(ad=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],o=e[t+2];if(typeof n!="function"){if(dm(n||a)===null)continue;break}var r=_s(a);r!==null&&(e.splice(t,3),t-=3,I3(r,{pending:!0,data:o,method:a.method,action:n},n,o))}}))}function js(e){function t(s){return td(s,e)}si!==null&&td(si,e),ci!==null&&td(ci,e),di!==null&&td(di,e),g1.forEach(t),b1.forEach(t);for(var a=0;a<Wr.length;a++){var n=Wr[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<Wr.length&&(a=Wr[0],a.blockedOn===null);)N9(a),a.blockedOn===null&&Wr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var o=a[n],r=a[n+1],i=o[vn]||null;if(typeof r=="function")i||I8(a);else if(i){var l=null;if(r&&r.hasAttribute("formAction")){if(o=r,i=r[vn]||null)l=i.formAction;else if(dm(o)!==null)continue}else l=i.action;typeof l=="function"?a[n+1]=l:(a.splice(n,3),n-=3),I8(a)}}}function D9(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(i){return o=i})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function um(e){this._internalRoot=e}g2.prototype.render=um.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(te(409));var a=t.current,n=Ln();A9(a,n,e,t,null,null)};g2.prototype.unmount=um.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;A9(e.current,2,null,e,null,null),p2(),t[Hs]=null}};function g2(e){this._internalRoot=e}g2.prototype.unstable_scheduleHydration=function(e){if(e){var t=K8();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Wr.length&&t!==0&&t<Wr[a].priority;a++);Wr.splice(a,0,e),a===0&&N9(e)}};var N8=D8.version;if(N8!=="19.3.0")throw Error(te(527,N8,"19.3.0"));gt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(te(188)):(e=Object.keys(e).join(","),Error(te(268,e)));return e=pw(t),e=e!==null?P8(e):null,e=e===null?null:e.stateNode,e};var pC={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:Ze,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Pc=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Pc.isDisabled&&Pc.supportsFiber))try{y1=Pc.inject(pC),Dn=Pc}catch{}var Pc;b2.createRoot=function(e,t){if(!O8(e))throw Error(te(299));var a=!1,n="",o=pb,r=mb,i=fb;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=E9(e,1,!1,null,null,a,n,null,o,r,i,D9),e[Hs]=t.current,am(e),new um(t)};b2.hydrateRoot=function(e,t,a){if(!O8(e))throw Error(te(299));var n=!1,o="",r=pb,i=mb,l=fb,s=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(i=a.onCaughtError),a.onRecoverableError!==void 0&&(l=a.onRecoverableError),a.formState!==void 0&&(s=a.formState)),t=E9(e,1,!0,t,a??null,n,o,s,r,i,l,D9),t.context=z9(null),a=t.current,n=Ln(),n=g4(n),o=ni(n),o.callback=null,oi(a,o,n),a=n,t.current.lanes=a,x1(t,a),ar(t),e[Hs]=t.current,am(e),new g2(t)};b2.version="19.3.0"});var h2=Nl((Cz,R9)=>{"use strict";function L9(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(L9)}catch(e){console.error(e)}}L9(),R9.exports=O9()});var Hh=Nl(qm=>{"use strict";var cT=Symbol.for("react.fragment");qm.Fragment=cT;qm.jsxDEV=void 0});var Uh=Nl((JA,_h)=>{"use strict";_h.exports=Hh()});var ra=U(Ne(),1);var R6=U(Ne(),1);function Wl(e){if(typeof e!="string")return!1;if(/^data:image\/(?:png|jpeg|gif|webp|avif);base64,[a-z\d+/=\s]+$/i.test(e))return!0;if(!/^https?:\/\//i.test(e)||/[\u0000-\u0020]/.test(e))return!1;try{return["http:","https:"].includes(new URL(e).protocol)}catch{return!1}}function zc(e,t="page.icon"){if(typeof e!="string")throw new Error(`${t} must be text or an image URL.`);if(Wl(e)){if(e.length>(e.startsWith("data:")?1e6:2048))throw new Error(`${t} image is too large.`)}else if(e.length>64||/^[a-z][a-z\d+.-]*:/i.test(e)||/[\u0000-\u001f]/.test(e))throw new Error(`${t} must be at most 64 characters, a web image URL, or embedded raster data.`);return e}var D0=U(pe(),1);function Kn({value:e="",size:t=18,fallback:a}){let[n,o]=(0,R6.useState)(null),r=Wl(e);return(0,D0.jsx)("span",{className:"page-icon",style:{display:"inline-flex",flexShrink:0,width:t,height:t,alignItems:"center",justifyContent:"center",fontSize:t,lineHeight:1,overflow:"hidden",verticalAlign:"middle"},"aria-hidden":"true",children:r&&n!==e?(0,D0.jsx)("img",{src:e,alt:"",draggable:!1,referrerPolicy:"no-referrer",onError:()=>o(e),style:{width:"100%",height:"100%",objectFit:"contain",borderRadius:3}}):e&&!r?e:a??(0,D0.jsx)(Bo,{size:t})})}function Kl(e){let t=e.nodeType===9?e:e.ownerDocument,a=t.defaultView,n=e.nodeType===9?t.body:e,o=t.createElement("style");o.textContent=`
|
|
10
|
-
.showai-icon-tooltip {
|
|
11
|
-
position: fixed; inset: auto; margin: 0; box-sizing: border-box;
|
|
12
|
-
max-width: min(280px, calc(100vw - 16px)); padding: 7px 10px;
|
|
13
|
-
border: 1px solid #ffffff20; border-radius: 8px;
|
|
14
|
-
background: #222; color: #fff; box-shadow: 0 4px 14px #0003;
|
|
15
|
-
font: 500 12px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
|
|
16
|
-
text-align: left; white-space: normal; overflow-wrap: anywhere;
|
|
17
|
-
letter-spacing: normal; z-index: 2147483647; pointer-events: none;
|
|
18
|
-
}
|
|
19
|
-
.showai-icon-tooltip::backdrop { pointer-events: none; }
|
|
20
|
-
@media print { .showai-icon-tooltip { display: none !important; } }
|
|
21
|
-
`;let r=t.createElement("div");r.className="showai-icon-tooltip",r.id=`showai-icon-tooltip-${a.crypto.randomUUID()}`,r.setAttribute("role","tooltip"),r.setAttribute("popover","manual"),n.append(o,r);let i=null,l=null,s=0,c=0,d=!1,u=null,p=null,g=C=>C.getAttribute("data-icon-tooltip")?.trim()||(C===i?l:C.getAttribute("title"))?.trim()||C.getAttribute("aria-label")?.trim()||[...(C.getAttribute("aria-labelledby")||"").split(/\s+/)].map(N=>e.getElementById(N)?.textContent||"").join(" ").trim()||C.textContent?.trim(),y=C=>{let N=C.composedPath(),z=N.find(A=>A?.matches&&A.getRootNode()===e&&A.matches("button, summary, a, [role='button']"));if(z)return g(z)?z:null;for(let A of N)if(!(!A?.matches||A.getRootNode()!==e)){if(A===r)return r;if(A.matches("[data-icon-tooltip], svg[aria-label], [role='img'][aria-label]"))return g(A)?A:null}return null},b=()=>{if(a.clearTimeout(s),i){let C=(i.getAttribute("aria-describedby")||"").split(/\s+/).filter(N=>N&&N!==r.id);C.length?i.setAttribute("aria-describedby",C.join(" ")):i.removeAttribute("aria-describedby"),l!==null&&!i.hasAttribute("title")&&i.setAttribute("title",l)}r.hidePopover(),i=null,l=null},x=C=>{let N=t.createTreeWalker(C,a.NodeFilter.SHOW_TEXT);for(let z=N.nextNode();z;z=N.nextNode()){if(!/[\p{L}\p{N}]/u.test(z.textContent))continue;let A=z.parentElement;if(A.closest("svg, [hidden]")||a.getComputedStyle(A).visibility!=="visible")continue;let P=t.createRange();if(P.selectNodeContents(z),[...P.getClientRects()].some(Z=>Z.width>1&&Z.height>1))return!0}return!1},f=()=>{let C=i;if(!C)return;if(!C.isConnected||!C.getClientRects().length)return b();if(x(C)){r.hidePopover();let ee=(C.getAttribute("aria-describedby")||"").split(/\s+/).filter(j=>j&&j!==r.id);ee.length?C.setAttribute("aria-describedby",ee.join(" ")):C.removeAttribute("aria-describedby");return}r.textContent=g(C),r.showPopover();let N=C.getBoundingClientRect(),z=r.getBoundingClientRect(),A=t.documentElement.clientWidth,q=t.documentElement.clientHeight,P=N.bottom+6,Z=P+z.height<=q-8?P:N.top-z.height-6;r.style.left=`${Math.max(8,Math.min(N.left+(N.width-z.width)/2,A-z.width-8))}px`,r.style.top=`${Math.max(8,Math.min(Z,q-z.height-8))}px`;let F=(C.getAttribute("aria-describedby")||"").split(/\s+/).filter(Boolean);C.setAttribute("aria-describedby",[...new Set([...F,r.id])].join(" "))},m=C=>{a.clearTimeout(s),C!==i&&(b(),!(!C||C===r)&&(i=C,l=C.getAttribute("title"),C.removeAttribute("title"),f()))},v=()=>{a.clearTimeout(s),s=a.setTimeout(()=>{u!==r&&m(u||p)},90)},T=C=>{C.pointerType!=="touch"&&(u=y(C),u===r?a.clearTimeout(s):m(u||p))},w=C=>{i?.contains(C.relatedTarget)||r.contains(C.relatedTarget)||(u=null,v())},E=C=>{d||(p=y(C),m(p))},L=()=>{p=null,v()},H=C=>{C.key==="Escape"&&b()},S=()=>{u=null,p=null,b()},k=()=>{S(),d=!0,a.clearTimeout(c),c=a.setTimeout(()=>{d=!1},0)},M=new a.MutationObserver(()=>{i&&(i.hasAttribute("title")&&(l=i.getAttribute("title"),i.removeAttribute("title")),!i.isConnected||!i.getClientRects().length?b():x(i)?f():r.matches(":popover-open")?r.textContent!==g(i)&&(r.textContent=g(i)):f())});M.observe(n,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["aria-label","title","data-icon-tooltip","hidden","class","style"]});let O=[["pointerover",T],["pointerout",w],["focusin",E],["focusout",L],["keydown",H],["pointerdown",k],["contextmenu",S],["wheel",S],["scroll",S]];for(let[C,N]of O)e.addEventListener(C,N,!0);return a.addEventListener("resize",S),a.addEventListener("blur",S),()=>{a.clearTimeout(c),b(),M.disconnect();for(let[C,N]of O)e.removeEventListener(C,N,!0);a.removeEventListener("resize",S),a.removeEventListener("blur",S),r.remove(),o.remove()}}var ew=U(h2(),1);function jt(e){let t=new Map,a=(n,o)=>{n.attrs?.id&&t.set(n.attrs.id,{node:n,parent:o});for(let r of n.content??[])a(r,n)};return a(e,null),t}function y2(e,t){let a=e.attrs.points,n=e.attrs.extent;return[a[0],a.at(-1)].map(o=>d0(t,{x:o.x/n[0],y:o.y/n[1]}))}function M1(e,t,a,n){let o=y2(e,t),r=a.get(e.attrs.id)?.parent;for(let[i,l]of["start","end"].entries()){let s=e.attrs.bindings?.[l],c=s&&a.get(s.targetId),d=s&&n[s.targetId];c&&Ho(r,n)&&c.parent===r&&d&&$n(c.node).bindTarget&&(o[i]=d0(d,s.anchor))}return o}function I1(e,t,a,n=e.attrs.bindings){let o=jl(a),r=Math.max(4,e.attrs.strokeWidth*2),i=o.x-r,l=o.y-r,s=o.width+r*2,c=o.height+r*2,d={...e.attrs,extent:[s,c],points:a.map(p=>({x:p.x-i,y:p.y-l}))};n&&Object.keys(n).length?d.bindings=n:delete d.bindings;let u={...t,x:i,y:l,width:s,height:c};return delete u.rotation,{node:{...e,attrs:d},frame:u}}function fl(e){let t=jt(e.content),a=new Map,n=e.layout;for(let[r,{node:i,parent:l}]of t){if(i.type!=="drawing"||i.attrs.tool!=="arrow"||!i.attrs.bindings||!n?.[r])continue;let s={};for(let d of["start","end"]){let u=i.attrs.bindings[d],p=u&&t.get(u.targetId);p&&Ho(l,n)&&p.parent===l&&n[u.targetId]&&$n(p.node).bindTarget&&(s[d]=u)}let c=I1(i,n[r],M1(i,n[r],t,n),s);(JSON.stringify(c.node.attrs)!==JSON.stringify(i.attrs)||JSON.stringify(c.frame)!==JSON.stringify(n[r]))&&(a.set(r,c.node),n===e.layout&&(n={...n}),n[r]=c.frame)}if(!a.size)return e;let o=r=>{if(a.has(r.attrs?.id))return a.get(r.attrs.id);if(!r.content)return r;let i=r.content.map(o);return i.some((l,s)=>l!==r.content[s])?{...r,content:i}:r};return e.content=o(e.content),e.layout=n,e}function v2(e,t,a,n=0,o=new Set){let r=jt(e.content),i=r.get(t)?.node;if(!Ho(i,e.layout))return null;let l=(i?.content??[]).flatMap(c=>{let d=c.attrs?.id,u=e.layout?.[d];return u&&!o.has(d)&&$n(c).bindTarget?[{id:d,node:c,frame:u,point:a,tolerance:n,scale:1}]:[]}),s=m0(l);return s?{targetId:s.id,anchor:s.node.type==="surface"&&s.node.attrs?.kind==="page"?rp(s.frame,a):mC(s.frame,a)}:null}function mC(e,t,a=16){let n=rp(e,t),o=e.width,r=jo(e);if(!o||!r)return n;let i={x:n.x*o,y:n.y*r},l=[{x:.5,y:0},{x:1,y:.5},{x:.5,y:1},{x:0,y:.5}],s=u=>Math.hypot(u.x*o-i.x,u.y*r-i.y),c=l.reduce((u,p)=>s(p)<s(u)?p:u),d=Math.min(i.x,o-i.x,i.y,r-i.y);return s(c)<=a||d>a?c:n}function P9(e,t){return Object.fromEntries(Object.entries(e??{}).filter(([,a])=>t.has(a.targetId)))}var fC=(e,t)=>Object.hasOwn(e,t),pm=e=>e!==null&&typeof e=="object",gC=(e,t,a)=>Object.defineProperty(e,t,{value:a,enumerable:!0,writable:!0,configurable:!0});var mm=e=>pm(e)&&!Array.isArray(e)?typeof e.attrs?.id=="string"&&e.attrs.id?e.attrs.id:typeof e.id=="string"&&e.id?e.id:null:null;function B9(e){if(!e.length||!mm(e[0]))return null;let t=new Map;for(let a of e){let n=mm(a);if(!n||t.has(n))return null;t.set(n,a)}return t}function fm(e,t){if(!pm(e)||!pm(t)||Array.isArray(e)!==Array.isArray(t))return e===t?e:t;let a=Object.keys(e),n=Object.keys(t),o=a.length===n.length&&(!Array.isArray(t)||e.length===t.length),r=Array.isArray(t)&&B9(t)?B9(e):null,i=t;for(let l of n){let s=fC(e,l),c=r?mm(t[l]):null,d=r?r.has(c):s,u=r?r.get(c):e[l],p=d?fm(u,t[l]):t[l];(!s||p!==e[l])&&(o=!1),p!==t[l]&&(i===t&&(i=Array.isArray(t)?t.slice():Object.fromEntries(Object.entries(t))),gC(i,l,p))}return o?e:i}var bC=new Set(["__proto__","prototype","constructor"]),gl=e=>e&&typeof e=="object"&&!Array.isArray(e),gm=(e,t=200)=>typeof e=="string"&&e.length>0&&e.length<=t&&!bC.has(e),bm=e=>e.text??(e.content??[]).map(bm).join("");function j9(){return{version:1,enabled:!0,source:{mode:"headings",maxLevel:3},initialState:"auto",placement:"auto",width:220}}function hm(e){let t=new Map;function a(n){n.attrs?.id&&t.set(n.attrs.id,n),!["surface","widget","stepper"].includes(n.type)&&n.content?.forEach(a)}return e.content?.forEach(a),t}function x2(e,t){let a=o=>{throw new Error(`Page outline: ${o}`)};if((t.type!=="surface"||t.attrs?.kind!=="page")&&a("only Page can have an outline."),(!gl(e)||e.version!==1||typeof e.enabled!="boolean")&&a("requires version 1 and enabled."),["auto","expanded","collapsed"].includes(e.initialState)||a("invalid initialState."),["auto","floating","docked"].includes(e.placement)||a("invalid placement."),(!Number.isFinite(e.width)||e.width<180||e.width>480)&&a("width must be 180\u2013480."),e.renderer!==void 0){let o=e.renderer;(!gl(o)||typeof o.componentId!="string"||typeof o.version!="string"||typeof o.integrity!="string"||!/^[a-z][a-z0-9-]{0,79}$/.test(o.componentId)||!/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[\w.-]+)?$/.test(o.version)||!/^sha256-[a-f0-9]{64}$/.test(o.integrity)||!gl(o.props))&&a("renderer requires an exact component revision and props."),o.scope!==void 0&&!["builtin","project","global","published"].includes(o.scope)&&a("invalid renderer scope.")}let n=e.source;if(gl(n)||a("source is required."),n.mode==="headings"){if((!Number.isInteger(n.maxLevel)||n.maxLevel<1||n.maxLevel>6)&&a("maxLevel must be 1\u20136."),n.overrides!==void 0){gl(n.overrides)||a("overrides must be an object.");for(let[o,r]of Object.entries(n.overrides))(!gm(o)||!gl(r)||r.title!==void 0&&(typeof r.title!="string"||r.title.length>2e3)||r.hidden!==void 0&&typeof r.hidden!="boolean")&&a("invalid heading override.")}}else if(n.mode==="manual"){let o=new Set,r=0,i=(l,s=0)=>{(!Array.isArray(l)||s>24)&&a("manual entries must be a tree up to 24 levels.");for(let c of l)(++r>3e3||!gl(c)||!gm(c.id,240)||o.has(c.id))&&a("manual entries require unique IDs (at most 3000)."),o.add(c.id),c.title!==void 0&&(typeof c.title!="string"||c.title.length>2e3)&&a("invalid entry title."),c.nodeId!==void 0&&!gm(c.nodeId)&&a("invalid entry target."),!c.nodeId&&!c.title?.trim()&&a("groups require a title."),c.children!==void 0&&i(c.children,s+1)};i(n.entries)}else a("source mode must be headings or manual.");return e}function qs(e,t=e.attrs?.outline){if(!t||e.attrs?.kind!=="page")return{items:[],targets:new Map,missing:[]};let a=hm(e),n=new Map,o=[],r=c=>(bm(c).trim()||c.attrs?.name||c.type||"").slice(0,2e3);if(t.source.mode==="manual"){let c=(d,u)=>d.flatMap(p=>{let g=p.nodeId?a.get(p.nodeId):void 0;p.nodeId&&!g&&o.push(p.id);let y=!!p.nodeId&&!g&&!p.title?.trim(),b=c(p.children??[],y?u:u+1);return y?b:!g&&!b.length?[]:(g&&n.set(p.id,p.nodeId),[{id:p.id,navigable:!!g,title:p.title?.trim()||(g?r(g):""),level:u,children:b}])});return{items:c(t.source.entries,1),targets:n,missing:o}}let i=[],l=[];for(let[c,d]of a){if(d.type!=="heading"||d.attrs.level>t.source.maxLevel)continue;let u=t.source.overrides?.[c],p=(u?.title??bm(d)).trim(),g=!!u?.hidden||!p,y={id:`heading:${c}`,navigable:!0,hidden:g,title:p.slice(0,2e3),level:d.attrs.level,children:[]};for(;l.length&&l.at(-1).level>=y.level;)l.pop();(l.at(-1)?.children??i).push(y),l.push(y),g||n.set(y.id,c)}let s=c=>c.flatMap(({hidden:d,...u})=>{let p=s(u.children);return d?p:[{...u,children:p}]});return{items:s(i),targets:n,missing:o}}function ym(e){return e.flatMap(t=>[t,...ym(t.children)])}function H9(e,t,a){let n=structuredClone(e);if(n.source.mode==="headings"&&n.source.overrides)n.source.overrides=Object.fromEntries(Object.entries(n.source.overrides).flatMap(([o,r])=>t.has(o)?[[t.get(o),r]]:[]));else if(n.source.mode==="manual"){let o=r=>r.flatMap(i=>{let l=o(i.children??[]),s=i.nodeId?t.get(i.nodeId):void 0;return i.nodeId&&!s&&!l.length?[]:[{id:a?a():i.id,...i.title!==void 0?{title:i.title}:i.nodeId&&!s?{title:i.nodeId}:{},...s?{nodeId:s}:{},...l.length?{children:l}:{}}]});n.source.entries=o(n.source.entries)}return n}function _9({width:e,gutter:t,panelWidth:a,widthMode:n,preferred:o="auto",pinned:r=!1,previous:i}){return e<640||(r||o==="docked")&&e-a<560?"drawer":r||o==="docked"?"docked":o==="floating"||n==="full"?"floating":t>=a+16+(i==="margin"?0:24)?"margin":"floating"}var Fs=e=>e.content?.type==="surface",vm=e=>Ua(e)?3:Fs(e)?2:1;function Et(e,t,a=null){t(e,a),Array.isArray(e.content)&&e.content.forEach(n=>Et(n,t,e))}function U9(e){let t=2166136261;for(let a of e)t=Math.imul(t^a.charCodeAt(0),16777619);return`node-${(t>>>0).toString(16)}`}function yi(e,{repairLegacy:t=!1}={}){let a=new Set;Et(e.content,i=>{i.attrs?.id&&a.add(i.attrs.id)});let n=new Set,o=new Set(["__proto__","prototype","constructor"]),r=(i,l)=>{let s=i.attrs?.id;if((!["surface","doc","text"].includes(i.type)||i.type==="surface"&&Ua(e))&&(!s||t&&(n.has(s)||o.has(s)))){let c=U9(`${e.id}:${l}`);for(;a.has(c);)c+="-copy";a.add(c),i.attrs={...i.attrs,id:c}}i.attrs?.id&&n.add(i.attrs.id),Array.isArray(i.content)&&i.content.forEach((c,d)=>r(c,`${l}/${d}`))};return r(e.content,""),e}function Ke(e,t){let a;return Et(e.content,(n,o)=>{n.attrs?.id===t&&(a={node:n,parent:o})}),a}function w2(e){if(Ua(e))return vi(e);if(!Fs(e))return e;e.layout??={};let t=a=>{let n=0;for(let o of a.content??[]){let r=o.attrs?.id,i=a.type==="surface"||a.type==="region"&&e.layout[a.attrs.id]?.mode==="free";r&&(i||o.type==="region")&&(Object.hasOwn(e.layout,r)||(e.layout[r]={x:n,y:0,width:o.type==="region"?920:360,...o.type==="region"?{mode:"flow",columns:2,gap:24}:{}}),n=Math.max(n,e.layout[r].x+e.layout[r].width+64)),o.type==="region"&&t(o)}};return t(e.content),e.views??={initial:null,saved:[],readingOrder:(e.content.content??[]).map(a=>a.attrs.id)},e}function k2(e,{includeTitle:t=!0}={}){let a=structuredClone(e);if(Fs(a))return w2(yi(a));yi(a,{repairLegacy:!0});let n=a.content.content??[],o=n.filter(c=>!c.attrs?.canvas),r=new Set;Et(a.content,c=>{c.attrs?.id&&r.add(c.attrs.id)});let i=c=>{let d=U9(`${a.id}:${c}`);for(;r.has(d);)d+="-copy";return r.add(d),d},l=[],s={};if(o.length||t&&a.title){let c=i("initial-region");t&&a.title&&o.unshift({type:"heading",attrs:{id:i("legacy-title"),level:1},content:[{type:"text",text:a.title}]}),l.push({type:"region",attrs:{id:c,name:t&&a.title?a.title.slice(0,200):"\u5185\u5BB9\u533A\u57DF"},content:o}),s[c]={x:0,y:0,width:1e3,mode:"flow",columns:2,gap:24}}for(let c of n.filter(d=>d.attrs?.canvas)){let d=c.attrs.id;l.push({type:"region",attrs:{id:d,name:"\u5185\u5BB9\u533A\u57DF"},content:c.content??[]}),s[d]={...c.attrs.canvas,mode:"flow",columns:2,gap:24}}return a.content={type:"surface",content:l},a.layout=s,a.views={initial:null,saved:[],readingOrder:l.map(c=>c.attrs.id)},a}var hC=new WeakSet;function Ia(e,t={}){if(t.shareWith&&t.clone===!1)throw new TypeError("Structural sharing requires an independent normalization clone");let a=yC(e,t),n=t.shareWith?fm(t.shareWith,a):a;return hC.add(n),n}function yC(e,{clone:t=!0}={}){let a=w2(yi(t?structuredClone(e):e));if(Ua(a))return wm(a);if(!Fs(a))return a;let n=new Set,o=new Set;Et(a.content,s=>{s.attrs?.id&&n.add(s.attrs.id),s.type==="region"&&o.add(s.attrs.id)});for(let s of Object.keys(a.layout))if(!n.has(s))delete a.layout[s];else if(!o.has(s)){let{mode:c,columns:d,gap:u,...p}=a.layout[s];(c!==void 0||d!==void 0||u!==void 0)&&(a.layout[s]=p)}let r=(a.content.content??[]).map(s=>s.attrs.id),i=new Set(r),l=a.views.saved.map(s=>({...s,targets:s.targets.filter(c=>n.has(c))})).filter(s=>s.targets.length);return a.views={initial:l.some(s=>s.id===a.views.initial)?a.views.initial:null,saved:l,readingOrder:[...new Set([...a.views.readingOrder.filter(s=>i.has(s)),...r])]},a}function V9(e){if(Ua(e))return Ws(e);if(!Fs(e))return e.content.content??[];let t=e.content.content??[],a=e.views?.readingOrder??[],n=new Map(t.map(r=>[r.attrs?.id,r])),o=new Set(a);return[...a.map(r=>n.get(r)).filter(Boolean),...t.filter(r=>!o.has(r.attrs.id))]}function xm(e,t=()=>crypto.randomUUID()){let a=structuredClone(e),n=new Map;if(Et(a.content,o=>{if(["doc","text"].includes(o.type)||o.type==="surface"&&!Ua(a))return;let r=o.attrs?.id,i=t();r&&n.set(r,i),o.attrs={...o.attrs,id:i}}),Et(a.content,o=>{if(o.attrs?.outline&&(o.attrs.outline=H9(o.attrs.outline,n,t)),!o.attrs?.bindings)return;let r={};for(let i of["start","end"]){let l=o.attrs.bindings[i],s=l&&n.get(l.targetId);s&&(r[i]={...l,targetId:s})}Object.keys(r).length?o.attrs.bindings=r:delete o.attrs.bindings}),Fs(a)){if(a.layout=Object.fromEntries(Object.entries(a.layout??{}).map(([i,l])=>[n.get(i)??i,l])),Ua(a))return a.surfaceViews=Object.fromEntries(Object.entries(a.surfaceViews??{}).map(([i,l])=>{let s=new Map(l.saved.map(c=>[c.id,t()]));return[n.get(i),{initial:s.get(l.initial)??null,saved:l.saved.map(c=>({...c,id:s.get(c.id),targets:c.targets.map(d=>n.get(d))})),readingOrder:l.readingOrder.map(c=>n.get(c))}]})),a;let o=a.views??{initial:null,saved:[],readingOrder:[]},r=new Map(o.saved.map(i=>[i.id,t()]));a.views={initial:r.get(o.initial)??null,saved:o.saved.map(i=>({...i,id:r.get(i.id),targets:i.targets.map(l=>n.get(l)??l)})),readingOrder:o.readingOrder.map(i=>n.get(i)??i)}}return a}function S2(e){let t={},a=(n,o)=>{n.attrs?.id&&(t[n.attrs.id]=o);let r=n.attrs?.id?[...o,n.attrs.id]:o;n.content?.forEach(i=>a(i,r))};return a(e.content,[]),t}var Ua=e=>e.content?.type==="surface"&&["page","board"].includes(e.content.attrs?.kind),ta=e=>e.attrs?.kind==="board"?"board":"page",Z9=(e=[])=>({initial:null,saved:[],readingOrder:e.map(t=>t.attrs.id)}),km=(e,t=e.content)=>e.surfaceViews?.[t.attrs?.id]??e.views??Z9(t.content);function C2(e="page",t=e==="page"?"Page":"Board",a=crypto.randomUUID()){if(!["page","board"].includes(e))throw new Error("Surface kind must be page or board.");return{type:"surface",attrs:{id:a,kind:e,name:t},content:e==="page"?[{type:"richText",attrs:{id:crypto.randomUUID(),name:"\u5BCC\u6587\u672C"},content:[{type:"paragraph",attrs:{id:crypto.randomUUID()}}]}]:[]}}function Ws(e,t=e.content){let a=t.content??[];if(ta(t)==="page"||t.type!=="surface")return a;let n=km(e,t).readingOrder,o=new Map(a.map(i=>[i.attrs?.id,i])),r=new Set(n);return[...n.map(i=>o.get(i)).filter(Boolean),...a.filter(i=>!r.has(i.attrs.id))]}function vi(e){return Ua(e)&&(yi(e),e.layout={...e.layout??{}},e.surfaceViews={...e.surfaceViews??{}},e.views===void 0&&delete e.views,Et(e.content,t=>{if(!["surface","region"].includes(t.type))return;t.type==="surface"&&!Object.hasOwn(e.surfaceViews,t.attrs.id)&&(e.surfaceViews[t.attrs.id]=Z9(t.content));let a=0;for(let n of t.content??[]){if(!n.attrs?.id)continue;let o=t.type==="surface"?ta(t)==="board":e.layout[t.attrs.id]?.mode==="free";if(o||["surface","region"].includes(n.type)){Object.hasOwn(e.layout,n.attrs.id)||(e.layout[n.attrs.id]={x:a,y:0,width:n.type==="surface"?760:n.type==="region"?920:360,...n.type==="surface"?{height:460,heightMode:ta(n)==="page"&&!o?"auto":"fixed"}:{},...n.type==="region"?{mode:"flow",columns:2,gap:24}:{}});let r=e.layout[n.attrs.id];a=Math.max(a,r.x+r.width+48)}}})),e}function N1(e,{includeTitle:t=!0}={}){let a=structuredClone(e);if(Ua(a))return vi(a);let n=(()=>{let o=new Set;Et(a.content,s=>{s.attrs?.id&&o.add(s.attrs.id)});let r=`surface-${a.id.slice(0,150)}`,i=r,l=0;for(;o.has(i);)i=`${r}-${++l}`;return i})();if(a.content.type==="doc"){yi(a,{repairLegacy:!0});let o={},r=new Set;Et(a.content,l=>{l.attrs?.id&&r.add(l.attrs.id)});let i=(a.content.content??[]).map(l=>{if(!l.attrs?.canvas)return l;let s=l.attrs.canvas,c=`${l.attrs.id.slice(0,170)}-board`;for(;r.has(c);)c+="-copy";r.add(c);let d={type:"region",attrs:{id:l.attrs.id,name:"\u5185\u5BB9\u533A\u57DF"},content:l.content??[]};return o[d.attrs.id]={x:s.x??0,y:s.y??0,width:s.width??1e3,mode:"flow",columns:2,gap:24},o[c]={x:0,y:0,width:s.width??760,height:s.height??460,heightMode:"fixed"},{type:"surface",attrs:{id:c,kind:"board",name:"Board"},content:[d]}});a.content={type:"surface",attrs:{id:n,kind:"page",name:t&&a.title?a.title.slice(0,200):"Page"},content:i},a.layout=o,a.surfaceViews={}}else{let o=k2(a,{includeTitle:t});Object.assign(a,o);let r=a.content.content??[];if(r.length===1&&r[0].type==="region"&&(a.layout[r[0].attrs.id]?.mode??"flow")==="flow")return a.content.attrs={id:n,kind:"page",name:t&&a.title?a.title.slice(0,200):"Page"},a.surfaceViews={[n]:a.views},delete a.views,vi(a);let i=new Set;Et(a.content,s=>{s.attrs?.id&&i.add(s.attrs.id)});let l=`${n}-board`;for(;i.has(l);)l+="-copy";a.content.attrs={id:l,kind:"board",name:"Board"},a.surfaceViews={[l]:a.views},a.content={type:"surface",attrs:{id:n,kind:"page",name:t&&a.title?a.title.slice(0,200):"Page"},content:[a.content]},a.layout[l]={x:0,y:0,width:920,height:520,heightMode:"fixed"}}return delete a.views,vi(a)}function wm(e){vi(e);let t=new Map,a=new Map;Et(e.content,(n,o)=>{n.attrs?.id&&(t.set(n.attrs.id,n),a.set(n.attrs.id,o))});for(let[n,o]of Object.entries(e.layout)){let r=t.get(n);if(!r||r===e.content){delete e.layout[n];continue}let i={...o};Ho(a.get(n),e.layout)||delete i.rotation,r.type!=="region"&&(delete i.mode,delete i.columns,delete i.gap),r.type!=="surface"&&delete i.heightMode,(r.type==="drawing"||r.type==="surface"&&i.heightMode!=="auto")&&delete i.contentSize,JSON.stringify(o)!==JSON.stringify(i)&&(e.layout[n]=i)}for(let n of Object.keys(e.surfaceViews)){let o=t.get(n);if(o?.type!=="surface"){delete e.surfaceViews[n];continue}let r=new Set;Et(o,d=>{d.attrs?.id&&r.add(d.attrs.id)});let i=(o.content??[]).map(d=>d.attrs.id),l=new Set(i),s=e.surfaceViews[n],c=s.saved.map(d=>({...d,targets:d.targets.filter(u=>r.has(u)&&u!==n)})).filter(d=>d.targets.length);e.surfaceViews[n]={initial:c.some(d=>d.id===s.initial)?s.initial:null,saved:c,readingOrder:[...new Set([...s.readingOrder.filter(d=>l.has(d)),...i])]}}return fl(e)}function G9(e,t,a){let n=N1(e),o=Ke(n,t);if(o?.node.type!=="surface")throw new Error("Only a Page or Board can be wrapped.");o.node===n.content&&n.title&&["Page","Board"].includes(o.node.attrs.name)&&(o.node.attrs.name=n.title.slice(0,200));let r=C2(a);if(r.content=[o.node],o.parent){o.parent.content[o.parent.content.indexOf(o.node)]=r;let i=n.layout[t];i&&(n.layout[r.attrs.id]={...i,...a==="board"?{heightMode:"fixed",height:i.height??460}:{}})}else n.content=r;return n.layout[t]={x:0,y:0,width:760,height:520,heightMode:a==="page"&&ta(o.node)==="page"?"auto":"fixed"},wm(n)}var xi=(e,t,a)=>typeof e=="number"&&Number.isFinite(e)&&e>=t&&e<=a,wi=e=>{throw new Error(`Invalid logical ink source: ${e}`)};function Sm(e,t){if(t!==void 0){Bl(e),(!Array.isArray(t)||t.length>1024)&&wi("fragment list");for(let a of t){Bl(a);for(let n of["brushVersion","brush","width","opacity","extent","transform"])JSON.stringify(a[n])!==JSON.stringify(e[n])&&wi(`fragment ${n} must match its logical stroke`)}}}function Cm(e,t,a=[]){if(e===void 0)return;(!e||e.format!=="showai-input-v1"||typeof e.sourceID!="string"||!e.sourceID||e.sourceID.length>256||e.composite!=="single-opacity-coverage"||e.fragmentCount!==1+a.length||e.compositeOpacity!==t?.opacity)&&wi("source identity, fragment count or opacity"),Object.keys(e).some(i=>!["format","sourceID","configuration","raw","curves","fragmentCount","compositeOpacity","composite"].includes(i))&&wi("unknown source field");let n={width:[.5,40],creationZoom:[.001,1024],fitTolerance:[1e-6,1e4],flattenTolerance:[1e-6,1e4],positionWindow:[0,1],jitterWindow:[0,1],forceBackward:[0,1e4],forceForward:[0,1e4],forceTime:[0,1],minimumFraction:[0,10],maximumFraction:[0,10],curveBlend:[0,1],estimateTimeout:[0,10]},o=e.configuration;(!o||o.version!==1||![0,1,2].includes(o.mode)||Object.keys(o).some(i=>!["version","mode",...Object.keys(n)].includes(i))||Object.entries(n).some(([i,[l,s]])=>!xi(o[i],l,s))||o.maximumFraction<o.minimumFraction||o.width!==t.width)&&wi("input configuration"),(!Array.isArray(e.raw)||!e.raw.length||e.raw.length>1e6||!Array.isArray(e.curves)||e.curves.length>1e6)&&wi("raw input/curve count");let r=-1/0;for(let i of e.raw)(!Array.isArray(i)||i.length!==10||!xi(i[0],-1e6,1e6)||!xi(i[1],-1e6,1e6)||!xi(i[2],0,1e6)||i[2]<r||!xi(i[3],0,100)||!xi(i[4],-100,100)||!xi(i[5],-100,100)||i.slice(6,9).some(l=>!Number.isInteger(l)||l<0||l>4294967295)||![0,1].includes(i[9]))&&wi("raw actual point"),r=i[2];for(let i of e.curves)(!i||Object.keys(i).some(l=>!["points","firstRaw","lastRaw","steps"].includes(l))||!Array.isArray(i.points)||i.points.length!==8||i.points.some(l=>!xi(l,-1e6,1e6))||!Number.isInteger(i.firstRaw)||!Number.isInteger(i.lastRaw)||i.firstRaw<0||i.lastRaw<i.firstRaw||i.lastRaw>=e.raw.length||!Number.isInteger(i.steps)||i.steps<1||i.steps>1e7)&&wi("fitted curve provenance")}var Tm=["ink","inkFragments","color","strokeWidth","pressure"],vC=[...Tm,"node","layout","placement"],xC=(e,t)=>Object.hasOwn(e,t),wC=(e,t)=>e<t?-1:e>t?1:0,bl=e=>typeof e=="number"&&Number.isFinite(e),T2=e=>typeof e=="string"&&e.length>0&&e.length<=256&&!/[\u0000-\u001f]/.test(e),nr=e=>{throw new Error(`Invalid ink operation: ${e}`)};function D1(e){return e===null||typeof e=="string"||typeof e=="boolean"||bl(e)?JSON.stringify(e):Array.isArray(e)?`[${e.map(D1).join(",")}]`:e&&typeof e=="object"&&[Object.prototype,null].includes(Object.getPrototypeOf(e))?`{${Object.keys(e).sort(wC).map(t=>`${JSON.stringify(t)}:${D1(e[t])}`).join(",")}}`:nr("only finite JSON values are supported")}var $9=null,kC=e=>((typeof e!="string"||!/^[a-f0-9]{64}$/.test(e))&&nr("SHA-256 provider must return 64 lowercase hexadecimal characters synchronously"),e);function q9(e){let t=typeof e=="string"?e:D1(e);return $9?kC($9(t)):SC(t)}function SC(e){let t=[];for(let s of e){let c=s.codePointAt(0),d=c>=55296&&c<=57343?65533:c;d<128?t.push(d):d<2048?t.push(192|d>>6,128|d&63):d<65536?t.push(224|d>>12,128|d>>6&63,128|d&63):t.push(240|d>>18,128|d>>12&63,128|d>>6&63,128|d&63)}let a=t.length*8;for(t.push(128);t.length%64!==56;)t.push(0);for(let s=7;s>=0;--s)t.push(Math.floor(a/2**(s*8))&255);let n=[],o=[];for(let s=2;n.length<64;++s){let c=!0;for(let d=2;d*d<=s;++d)if(s%d===0){c=!1;break}c&&(o.length<8&&o.push(Math.floor(Math.sqrt(s)*2**32)>>>0),n.push(Math.floor(Math.cbrt(s)*2**32)>>>0))}let r=(s,c)=>s>>>c|s<<32-c,i=new Int32Array(64),l=o;for(let s=0;s<t.length;s+=64){for(let f=0;f<16;++f)i[f]=t[s+f*4]<<24|t[s+f*4+1]<<16|t[s+f*4+2]<<8|t[s+f*4+3];for(let f=16;f<64;++f){let m=i[f-15],v=i[f-2];i[f]=i[f-16]+(r(m,7)^r(m,18)^m>>>3)+i[f-7]+(r(v,17)^r(v,19)^v>>>10)}let[c,d,u,p,g,y,b,x]=l;for(let f=0;f<64;++f){let m=x+(r(g,6)^r(g,11)^r(g,25))+(g&y^~g&b)+n[f]+i[f],v=(r(c,2)^r(c,13)^r(c,22))+(c&d^c&u^d&u);x=b,b=y,y=g,g=p+m|0,p=u,u=d,d=c,c=m+v|0}[c,d,u,p,g,y,b,x].forEach((f,m)=>{l[m]=l[m]+f>>>0})}return l.map(s=>s.toString(16).padStart(8,"0")).join("")}function CC(e){(!e||!bl(e.x)||!bl(e.y)||!bl(e.width)||e.width<=0||e.height!==void 0&&(!bl(e.height)||e.height<=0)||e.rotation!==void 0&&!bl(e.rotation))&&nr("invalid stroke layout")}function F9(e,t){return[...vC,"alive"].includes(e)||nr("unsupported field"),TC(e,t)}function TC(e,t){Tm.includes(e)&&t===null||(e==="ink"?Bl(t):e==="inkFragments"?((!Array.isArray(t)||t.length>1024)&&nr("invalid ink fragments"),t.forEach(Bl)):e==="placement"&&(!t||!T2(t.parentId)||![t.after,t.before].every(a=>a===null||T2(a)))?nr("invalid stroke placement"):e==="node"&&(!t?.attrs||!T2(t.attrs.id)||Tm.some(a=>xC(t.attrs,a)))?nr("node metadata must exclude mutable ink attributes"):e==="layout"?CC(t):e==="color"&&(!T2(t)||t.length>128)?nr("invalid color"):e==="strokeWidth"&&(!bl(t)||t<.5||t>40)?nr("invalid stroke width"):e==="pressure"&&typeof t!="boolean"&&nr("invalid pressure flag"))}var EC="showai-ink-state-v1",zm=class extends Error{constructor(t){super(`Ink causal state: ${t}`),this.name="InkWireError",this.code="INK_CAUSAL_CONFLICT"}},Em=["node","ink","inkFragments","color","strokeWidth","pressure","layout","placement","alive"],E2=(e,t)=>Object.hasOwn(e,t);var Mm=e=>q9(e??null);var Va=e=>{throw new zm(e)},zC=/^([a-zA-Z0-9][a-zA-Z0-9_-]{0,95}):([1-9][0-9]*)$/;function Am(e){let t=zC.exec(e);return(!t||!Number.isSafeInteger(Number(t[2])))&&Va("invalid edit dot"),[t[1],Number(t[2])]}var AC=(e,t)=>{let[a,n]=Am(t);return(e[a]??0)>=n};var MC=Mm(!0),K9=Mm(!1),IC=e=>e?.fields?.alive?.some(([,t])=>t===K9)??!1;function W9(e){(!e||typeof e!="object"||Array.isArray(e)||Object.keys(e).length>512)&&Va("invalid causal clock");for(let[t,a]of Object.entries(e))(!/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,95}$/.test(t)||!Number.isSafeInteger(a)||a<1)&&Va("invalid causal clock entry")}function Y9(e){D1(e),(e?.format!==EC||!Number.isSafeInteger(e.level)||e.level<0||!e.strokes||!e.contexts||Object.keys(e.strokes).length>1e5)&&Va("unsupported format or excessive state"),W9(e.clock);for(let[t,a]of Object.entries(e.contexts))Am(t),W9(a),(!AC(a,t)||Object.entries(a).some(([n,o])=>(e.clock[n]??0)<o))&&Va("context exceeds its causal clock");for(let[t,a]of Object.entries(e.levels??{}))(!E2(e.contexts,t)||!Number.isSafeInteger(a)||a<1)&&Va("invalid event level");for(let[t,a]of Object.entries(e.digests??{}))(!E2(e.contexts,t)||!/^[a-f0-9]{64}$/.test(a))&&Va("invalid event digest");for(let[t,a]of Object.entries(e.eventDigests??{}))(!E2(e.contexts,t)||!/^[a-f0-9]{64}$/.test(a))&&Va("invalid snapshot edit digest");for(let[t,a]of Object.entries(e.strokes)){(!t||["__proto__","prototype","constructor"].includes(t)||!Array.isArray(a.born)||a.born.length!==3||!Number.isSafeInteger(a.born[0])||a.born[0]<1||!Number.isSafeInteger(a.born[2])||a.born[2]<0)&&Va("invalid stroke identity"),Am(a.born[1]),a.unplaced!==void 0&&a.unplaced!==!0&&Va("invalid placement conflict marker"),a.fields?.alive?.length||Va("missing liveness heads");for(let[n,o]of Object.entries(a.fields)){(!Em.includes(n)||!Array.isArray(o)||!o.length||o.length>64)&&Va("invalid field heads");let r=new Set;for(let i of o)(!Array.isArray(i)||i.length!==2||!E2(e.contexts,i[0])||!/^[a-f0-9]{64}$/.test(i[1])||r.has(i[0]))&&Va("invalid head reference"),r.add(i[0]),n==="alive"&&![MC,K9].includes(i[1])&&Va("invalid liveness digest")}!IC(a)&&Em.filter(n=>n!=="inkFragments").some(n=>!a.fields[n]?.length)&&Va("visible stroke is missing field heads");for(let[n,o]of Object.entries(a.variants??{})){(!Em.includes(n)||!o||Array.isArray(o))&&Va("invalid conflict variants");for(let[r,i]of Object.entries(o))(Mm(i)!==r||!a.fields[n]?.some(([,l])=>r===l))&&Va("variant digest differs from its head"),n!=="alive"&&F9(n,i)}}return e}var NC=["rectangle","ellipse","arrow"];var J9=[14,16,22,30];function io(e){return e?.type==="drawing"&&NC.includes(e.attrs?.tool)&&!e.attrs?.ink}function z2(e,t=2){return e==="arrow"?4:Math.max(8,t+6)}function X9(e,t,a,n=2){let o=z2(e,n);if(e==="ellipse"){let r=(1-Math.SQRT1_2)/2;return{x:t*r+o/2,y:a*r+o/2,width:Math.max(1,t*Math.SQRT1_2-o),height:Math.max(1,a*Math.SQRT1_2-o)}}return{x:o,y:o,width:Math.max(1,t-o*2),height:Math.max(1,a-o*2)}}var DC=/[\u1100-\u115f\u2e80-\u303e\u3041-\u33ff\u3400-\u4dbf\u4e00-\u9fff\ua000-\ua4cf\uac00-\ud7a3\uf900-\ufaff\ufe30-\ufe4f\uff00-\uff60\uffe0-\uffe6]/;function OC(e){return DC.test(e)?1:e===" "?.3:/[A-Z0-9MW@#%&]/.test(e)?.64:.54}function Im(e,t=16,a){let n=0,o=0;for(let r of String(e).split(`
|
|
22
|
-
`)){let i=0,l=1;for(let s of r){let c=OC(s)*t;a&&i+c>a&&i>0?(o=Math.max(o,i),i=c,l++):i+=c}o=Math.max(o,i),n+=l}return{width:Math.ceil(o),height:Math.ceil(n*t*1.3)}}function Q9(e,t,a=16,n,o=2){let r=z2(e,o),i=e==="ellipse"?Math.SQRT2:1,l=Im(t,a,n/i-r*2);return Math.ceil((l.height+r*2)*i)}var Nm=new Set(["__proto__","constructor","prototype"]),lo=(e,t)=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error(`${t} must be an object.`)},$t=(e,t,a,n)=>{if(typeof e!="number"||!Number.isFinite(e)||e<t||e>a)throw new Error(`${n} must be between ${t} and ${a}.`)};function th(e){if(Ua(e))return LC(e);let t=new Set,a=new Map;Et(e.content,n=>{if(["surface","text"].includes(n.type))return;let o=n.attrs?.id;if(typeof o!="string"||!o.trim()||o.length>200||Nm.has(o)||t.has(o))throw new Error("Whiteboard nodes require unique, non-reserved ids.");if(t.add(o),a.set(o,n),n.attrs?.canvas!=null)throw new Error("Whiteboard positions belong in layout, not attrs.canvas.")}),e.layout!==void 0&&lo(e.layout,"layout"),w2(e);for(let[n,o]of Object.entries(e.layout)){if(!t.has(n))throw new Error(`Layout references an unknown node: ${n}.`);if(lo(o,`layout.${n}`),Object.keys(o).some(r=>!["x","y","width","height","mode","columns","gap"].includes(r)))throw new Error(`Unsupported layout field for ${n}.`);if(o.rotation!==void 0){let r=a.get(n);if(!$n(r).rotate)throw new Error(`Rotation is not supported for ${n}.`);$t(o.rotation,-360,360,`layout.${n}.rotation`)}if($t(o.x,-1e6,1e6,`layout.${n}.x`),$t(o.y,-1e6,1e6,`layout.${n}.y`),$t(o.width,120,1e4,`layout.${n}.width`),o.height!==void 0&&$t(o.height,40,1e6,`layout.${n}.height`),o.mode!==void 0&&(a.get(n).type!=="region"||!["flow","grid","free"].includes(o.mode)))throw new Error(`Invalid region layout: ${n}.`);if(a.get(n).type!=="region"&&(o.columns!==void 0||o.gap!==void 0))throw new Error(`Only regions can define columns and gap: ${n}.`);if(o.columns!==void 0&&($t(o.columns,1,12,`layout.${n}.columns`),!Number.isInteger(o.columns)))throw new Error("Grid columns must be an integer.");o.gap!==void 0&&$t(o.gap,0,160,`layout.${n}.gap`)}ah(e.views,t,(e.content.content??[]).map(n=>n.attrs.id))}function ah(e,t,a){if(lo(e,"views"),Object.keys(e).some(i=>!["initial","saved","readingOrder"].includes(i)))throw new Error("Unsupported view configuration.");let{saved:n,readingOrder:o}=e;if(!Array.isArray(n)||n.length>100)throw new Error("At most 100 saved views are supported.");let r=new Set;for(let i of n){if(lo(i,"view"),Object.keys(i).some(l=>!["id","name","targets"].includes(l)))throw new Error("Unsupported saved view field.");if(typeof i.id!="string"||!i.id.trim()||i.id.length>200||Nm.has(i.id)||r.has(i.id))throw new Error("Saved views require unique ids.");if(r.add(i.id),typeof i.name!="string"||!i.name.trim()||i.name.length>200)throw new Error("Saved views require a name of at most 200 characters.");if(!Array.isArray(i.targets)||!i.targets.length||i.targets.length>1e3||new Set(i.targets).size!==i.targets.length||i.targets.some(l=>!t.has(l)))throw new Error("Saved view targets must reference existing nodes.")}if(e.initial??=null,e.initial!==null&&!r.has(e.initial))throw new Error("The initial view does not exist.");if(!Array.isArray(o)||new Set(o).size!==o.length||o.some(i=>!a.includes(i)))throw new Error("Reading order must contain unique root node ids.");e.readingOrder=[...o,...a.filter(i=>!o.includes(i))]}function LC(e){let t=new Set,a=new Map,n=new Map,o=new Map,r=(i,l,s)=>{if(i.type==="text")return;let c=i.attrs?.id;if(typeof c!="string"||!c.trim()||c.length>200||Nm.has(c)||t.has(c))throw new Error("Container nodes require unique, non-reserved ids.");if(t.add(c),a.set(c,i),n.set(c,l),o.set(c,s),i.attrs?.outline!==void 0&&x2(i.attrs.outline,i),i.attrs?.canvas!=null)throw new Error("Positions belong in layout.");if(c0(i),i.type==="surface"){if(!["page","board"].includes(i.attrs.kind))throw new Error("Surface kind must be page or board.");if(i.attrs.inkState!==void 0){if(i.attrs.kind!=="board")throw new Error("Causal ink metadata requires a Board.");Y9(i.attrs.inkState)}if(i.attrs.widthMode!==void 0&&(i.attrs.kind!=="page"||!["standard","wide","full"].includes(i.attrs.widthMode)))throw new Error("Page width mode must be standard, wide or full.");if(l&&!["surface","region"].includes(l.type))throw new Error("A surface requires a container parent.");if(i.attrs.frameless!==void 0&&(i.attrs.kind!=="page"||typeof i.attrs.frameless!="boolean"))throw new Error("Only Pages support the boolean frameless setting.");s=i}if(i.type==="drawing"){if(Sm(i.attrs.ink,i.attrs.inkFragments),Cm(i.attrs.inkInput,i.attrs.ink,i.attrs.inkFragments),i.attrs.ink!==void 0&&(l6(i.attrs.ink),i.attrs.tool!=="pen"&&!(yc(i.attrs.ink)&&i.attrs.tool==="highlighter")))throw new Error("Native ink uses the pen drawing tool.");if(s?.attrs.kind!=="board")throw new Error("Drawings belong inside a Board.");if(!["pen","highlighter","rectangle","ellipse","arrow"].includes(i.attrs.tool))throw new Error("Unknown drawing tool.");if(!(i.attrs.color==="none"&&["rectangle","ellipse"].includes(i.attrs.tool))&&!/^#[0-9a-fA-F]{6}$/.test(i.attrs.color))throw new Error("Drawing color must be a six-digit hex value, or none for a rectangle or ellipse.");if(i.attrs.fillColor!==void 0&&i.attrs.fillColor!=="none"&&!/^#[0-9a-fA-F]{6}$/.test(i.attrs.fillColor))throw new Error("Drawing fill must be none or a six-digit hex value.");if(!Array.isArray(i.attrs.extent)||i.attrs.extent.length!==2)throw new Error("Drawing extent requires width and height.");if(i.attrs.extent.forEach(d=>$t(d,1,1e6,"drawing.extent")),$t(i.attrs.strokeWidth,.5,40,"drawing.strokeWidth"),i.attrs.pressure!==void 0&&typeof i.attrs.pressure!="boolean")throw new Error("drawing.pressure must be boolean.");if(!Array.isArray(i.attrs.points)||i.attrs.points.length<2||i.attrs.points.length>2e4)throw new Error("A drawing needs 2\u201320000 points.");for(let d of i.attrs.points)lo(d,"drawing point"),$t(d.x,-1e6,1e6,"point.x"),$t(d.y,-1e6,1e6,"point.y"),d.pressure!==void 0&&$t(d.pressure,0,1,"point.pressure");if((i.attrs.label!==void 0||i.attrs.labelSize!==void 0)&&!io(i))throw new Error("Only rectangle, ellipse and arrow drawings can have a label.");if(i.attrs.label!==void 0&&(typeof i.attrs.label!="string"||!i.attrs.label.trim()||i.attrs.label.length>2e3))throw new Error(`drawing.label must be non-empty text of at most ${2e3} characters.`);i.attrs.labelSize!==void 0&&$t(i.attrs.labelSize,8,160,"drawing.labelSize")}for(let d of i.content??[])r(d,i,s)};r(e.content,null,null);for(let[i,l]of a)if(l.attrs?.bindings!==void 0){if(l.type!=="drawing"||l.attrs.tool!=="arrow")throw new Error("Only arrows can define endpoint bindings.");lo(l.attrs.bindings,"bindings");for(let[s,c]of Object.entries(l.attrs.bindings)){if(!["start","end"].includes(s))throw new Error("Unknown arrow endpoint.");if(lo(c,"binding"),Object.keys(c).some(u=>!["targetId","anchor"].includes(u)))throw new Error("Unsupported binding field.");let d=a.get(c.targetId);if(!d||n.get(i)!==n.get(c.targetId)||!$n(d).bindTarget)throw new Error("Arrow bindings require a non-arrow sibling target.");if(lo(c.anchor,"binding.anchor"),Object.keys(c.anchor).some(u=>!["x","y"].includes(u)))throw new Error("Unsupported anchor field.");$t(c.anchor.x,0,1,"binding.anchor.x"),$t(c.anchor.y,0,1,"binding.anchor.y")}}if(e.views!==void 0)throw new Error("Version 3 stores views per surface in surfaceViews.");e.layout!==void 0&&lo(e.layout,"layout"),e.surfaceViews!==void 0&&lo(e.surfaceViews,"surfaceViews"),vi(e);for(let[i,l]of a){let s=Object.values(l.attrs?.bindings??{});if(s.length&&(!Ho(n.get(i),e.layout)||!e.layout[i]||s.some(c=>!e.layout[c.targetId])))throw new Error("Arrow bindings require framed siblings in a Board or free-layout region.")}for(let[i,l]of Object.entries(e.layout)){let s=a.get(i),c=n.get(i);if(!s||!c||!["surface","region"].includes(c.type))throw new Error(`Layout requires a direct container child: ${i}.`);if(lo(l,`layout.${i}`),go(s)&&(l.mode!=="free"||!(l.height>0)||l.contentSize!==void 0))throw new Error("inkArchiveGroup requires a fixed free-layout frame.");if(Object.keys(l).some(d=>!["x","y","width","height","heightMode","rotation","contentSize","mode","columns","gap","locked"].includes(d)))throw new Error("Unsupported layout field.");if(l.locked!==void 0&&l.locked!==!0)throw new Error("layout.locked must be true when present.");if(l.contentSize!==void 0){if(lo(l.contentSize,"layout.contentSize"),s.type==="drawing"||s.type==="surface"&&l.heightMode!=="auto")throw new Error("Content size hints require content-sized objects.");if(Object.keys(l.contentSize).some(d=>!["width","height"].includes(d)))throw new Error("Unsupported content size hint.");$t(l.contentSize.width,1,1e4,"contentSize.width"),$t(l.contentSize.height,1,1e6,"contentSize.height")}if(l.rotation!==void 0){let d=a.get(i);if(!$n(d).rotate||l.rotation!==0&&!Ho(c,e.layout))throw new Error(`Rotation is not supported for ${i}.`);$t(l.rotation,-360,360,`layout.${i}.rotation`)}if($t(l.x,-1e6,1e6,`layout.${i}.x`),$t(l.y,-1e6,1e6,`layout.${i}.y`),$t(l.width,s.type==="drawing"||go(s)||(s.attrs?.nativeInk??s.attrs?.data?.nativeInk)?1:120,go(s)||s.attrs?.ink||(s.attrs?.nativeInk??s.attrs?.data?.nativeInk)?1e6:1e4,`layout.${i}.width`),l.height!==void 0&&$t(l.height,s.type==="drawing"||go(s)||(s.attrs?.nativeInk??s.attrs?.data?.nativeInk)?1:40,1e6,`layout.${i}.height`),l.heightMode!==void 0&&(s.type!=="surface"||!["fixed","auto"].includes(l.heightMode)||ta(s)==="board"&&l.heightMode==="auto"))throw new Error("Only embedded Pages support auto height; Boards use a fixed viewport.");if(s.type!=="region"&&["mode","columns","gap"].some(d=>l[d]!==void 0))throw new Error("Only regions can define mode, columns and gap.");if(l.mode!==void 0&&!["flow","grid","free"].includes(l.mode))throw new Error("Unknown region layout.");if(l.columns!==void 0&&($t(l.columns,1,12,"columns"),!Number.isInteger(l.columns)))throw new Error("Columns must be an integer.");l.gap!==void 0&&$t(l.gap,0,160,"gap")}for(let[i,l]of Object.entries(e.surfaceViews)){let s=a.get(i);if(s?.type!=="surface")throw new Error("View owner must be an existing surface.");let c=new Set;Et(s,d=>{d!==s&&d.attrs?.id&&c.add(d.attrs.id)}),ah(l,c,(s.content??[]).map(d=>d.attrs.id))}}var Da=e=>{throw new Error(e)},Om=e=>!!e&&typeof e=="object"&&!Array.isArray(e);function Na(e,t){(typeof e!="string"||!e.trim())&&Da(`${t} must be non-empty text.`)}function So(e,t){e!==void 0&&Na(e,t)}function Ks(e,t,a,n=0){return(!Array.isArray(e)||e.length<n||e.length>a)&&Da(`${t} must be an array of ${n} to ${a} items.`),e.forEach((o,r)=>{Om(o)||Da(`${t}[${r}] must be an object.`)}),e}function Dm(e,t,a){return e===void 0?[]:Ks(e,t,a)}function M2(e,t,a){Na(t,a),e.has(t)&&Da(`${a} duplicates id ${t}.`),e.add(t)}function A2(e,t,a){e.has(t)||Da(`${a} must name an existing part.`)}var nh=["new","changed","retired","kept"],oh=["input","action","result","note"],so={parts:6,steps:10,actions:12,entries:24,fields:8,blocks:8,callouts:6,details:10,sources:8};function RC(e,t,a,n){let o=`steps[${t}]`;M2(n,e.id,`${o}.id`),Na(e.label,`${o}.label`),Na(e.takeaway,`${o}.takeaway`),So(e.actionsHeading,`${o}.actionsHeading`),Ks(e.actions,`${o}.actions`,so.actions,1).forEach((l,s)=>{let c=`${o}.actions[${s}]`;Na(l.actor,`${c}.actor`),Na(l.text,`${c}.text`),So(l.code,`${c}.code`),l.kind!==void 0&&!oh.includes(l.kind)&&Da(`${c}.kind must be one of ${oh.join(", ")}.`),l.illustrative!==void 0&&typeof l.illustrative!="boolean"&&Da(`${c}.illustrative must be true or false.`)});let r=new Set;Dm(e.entries,`${o}.entries`,so.entries).forEach((l,s)=>{let c=`${o}.entries[${s}]`;M2(r,l.id,`${c}.id`),A2(a,l.partId,`${c}.partId`),Na(l.title,`${c}.title`),nh.includes(l.status)||Da(`${c}.status must be one of ${nh.join(", ")}.`),So(l.statusLabel,`${c}.statusLabel`),So(l.note,`${c}.note`),Ks(l.fields,`${c}.fields`,so.fields,1).forEach((d,u)=>{Na(d.label,`${c}.fields[${u}].label`),Na(d.value,`${c}.fields[${u}].value`),d.mono!==void 0&&typeof d.mono!="boolean"&&Da(`${c}.fields[${u}].mono must be true or false.`)})});let i=new Set;if(Dm(e.partNotes,`${o}.partNotes`,so.parts).forEach((l,s)=>{A2(a,l.partId,`${o}.partNotes[${s}].partId`),i.has(l.partId)&&Da(`${o}.partNotes has more than one note for ${l.partId}.`),i.add(l.partId),Na(l.text,`${o}.partNotes[${s}].text`)}),e.output!==void 0){let l=e.output;Om(l)||Da(`${o}.output must be an object.`),Na(l.heading,`${o}.output.heading`);let s=new Set,c=Ks(l.blocks,`${o}.output.blocks`,so.blocks,1);c.forEach((d,u)=>{let p=`${o}.output.blocks[${u}]`;M2(s,d.id,`${p}.id`),d.partId!==void 0&&A2(a,d.partId,`${p}.partId`),Na(d.label,`${p}.label`),Na(d.text,`${p}.text`),d.callouts!==void 0&&((!Array.isArray(d.callouts)||d.callouts.length>so.callouts)&&Da(`${p}.callouts must be an array of at most ${so.callouts} items.`),d.callouts.forEach((g,y)=>Na(g,`${p}.callouts[${y}]`)))}),l.hidePartId!==void 0&&(A2(a,l.hidePartId,`${o}.output.hidePartId`),c.some(d=>d.partId===l.hidePartId)||Da(`${o}.output.hidePartId must match the part of at least one block.`)),So(l.hideLabel,`${o}.output.hideLabel`),So(l.hideNote,`${o}.output.hideNote`)}e.details!==void 0&&((!Array.isArray(e.details)||e.details.length>so.details)&&Da(`${o}.details must be an array of at most ${so.details} items.`),e.details.forEach((l,s)=>Na(l,`${o}.details[${s}]`))),Dm(e.sources,`${o}.sources`,so.sources).forEach((l,s)=>{Na(l.label,`${o}.sources[${s}].label`),(typeof l.url!="string"||!/^https?:\/\//i.test(l.url))&&Da(`${o}.sources[${s}].url must be an http(s) URL.`)})}function I2(e){Om(e)||Da("Step walkthrough data must be an object."),Na(e.title,"title"),So(e.question,"question"),So(e.note,"note"),So(e.stateHeading,"stateHeading");let t=new Set;Ks(e.parts,"parts",so.parts,1).forEach((n,o)=>{M2(t,n.id,`parts[${o}].id`),Na(n.label,`parts[${o}].label`),So(n.plain,`parts[${o}].plain`),So(n.how,`parts[${o}].how`),n.tone!==void 0&&!kc.includes(n.tone)&&Da(`parts[${o}].tone must be one of ${kc.join(", ")}.`)});let a=new Set;return Ks(e.steps,"steps",so.steps,1).forEach((n,o)=>RC(n,o,t,a)),e.initialStep!==void 0&&!a.has(e.initialStep)&&Da("initialStep must name an existing step."),e}var ze=e=>{throw new Error(e)},Si=e=>!!e&&typeof e=="object"&&!Array.isArray(e),O1=e=>typeof e=="number"&&Number.isFinite(e),rh=["sum","product","average"],ih=["slider","stepper","toggle","choice"],Co={inputs:30,options:8,formulas:60,outputs:6,breakdown:12,presets:8,criteria:8,rankingItems:30,expression:500,depth:48},PC=/^[A-Za-z_][A-Za-z0-9_]*$/,Rm={min:[1,16],max:[1,16],round:[1,2],floor:[1,1],ceil:[1,1],abs:[1,1],sqrt:[1,1],clamp:[3,3],if:[3,3]},pA=Object.keys(Rm),BC=["<","<=",">",">=","==","!="];function jC(e){let t=[],a=0;for(;a<e.length;){let n=e.slice(a),o=/^\s+/.exec(n);if(o){a+=o[0].length;continue}let r=/^(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?/.exec(n);if(r){t.push({type:"num",value:Number(r[0]),at:a}),a+=r[0].length;continue}let i=/^[A-Za-z_][A-Za-z0-9_]*/.exec(n);if(i){t.push({type:"id",value:i[0],at:a}),a+=i[0].length;continue}let l=/^(?:<=|>=|==|!=|[-+*/^(),<>])/.exec(n);l||ze(`Unexpected character "${n[0]}" at position ${a+1}.`),t.push({type:"op",value:l[0],at:a}),a+=l[0].length}return t}function HC(e){(typeof e!="string"||!e.trim())&&ze("Expression must be non-empty text."),e.length>Co.expression&&ze(`Expression must be at most ${Co.expression} characters.`);let t=jC(e),a=0,n=0,o=()=>t[a],r=()=>o()?`position ${o().at+1}`:"the end of the expression",i=x=>o()?.type==="op"&&o().value===x,l=x=>{i(x)||ze(`Expected "${x}" at ${r()}.`),a+=1},s=x=>{n+=1,n>Co.depth&&ze("Expression is nested too deeply.");let f=x();return n-=1,f};function c(){let x=d();for(;o()?.type==="op"&&BC.includes(o().value);)x={type:"binary",op:t[a++].value,left:x,right:d()};return x}function d(){let x=u();for(;i("+")||i("-");)x={type:"binary",op:t[a++].value,left:x,right:u()};return x}function u(){let x=p();for(;i("*")||i("/");)x={type:"binary",op:t[a++].value,left:x,right:p()};return x}function p(){if(i("-")||i("+")){let x=t[a++].value;return s(()=>({type:"unary",op:x,arg:p()}))}return g()}function g(){let x=y();return i("^")?(a+=1,{type:"binary",op:"^",left:x,right:s(p)}):x}function y(){let x=o();if(x||ze("Expression ended unexpectedly."),x.type==="num")return a+=1,{type:"num",value:x.value};if(x.type==="id"){if(a+=1,!i("("))return{type:"ref",id:x.value};let f=Rm[x.value];f||ze(`Unknown function "${x.value}".`),a+=1;let m=[];if(!i(")"))for(m.push(s(c));i(",");)a+=1,m.push(s(c));return l(")"),(m.length<f[0]||m.length>f[1])&&ze(`${x.value}() takes ${f[0]===f[1]?f[0]:`${f[0]} to ${f[1]}`} argument(s).`),{type:"call",name:x.value,args:m}}if(x.value==="("){a+=1;let f=s(c);return l(")"),f}ze(`Unexpected "${x.value}" at ${r()}.`)}let b=c();return a<t.length&&ze(`Unexpected "${o().value}" at ${r()}.`),b}function lh(e){let t=new Set,a=n=>{n.type==="ref"?t.add(n.id):n.type==="unary"?a(n.arg):n.type==="binary"?(a(n.left),a(n.right)):n.type==="call"&&n.args.forEach(a)};return a(e),[...t]}function _C(e,t){let a=n=>{switch(n.type){case"num":return n.value;case"ref":{let o=t[n.id];return typeof o!="number"&&ze(`Unknown id "${n.id}".`),o}case"unary":return n.op==="-"?-a(n.arg):a(n.arg);case"binary":{let o=a(n.left),r=a(n.right);switch(n.op){case"+":return o+r;case"-":return o-r;case"*":return o*r;case"/":return o/r;case"^":return o**r;case"<":return o<r?1:0;case"<=":return o<=r?1:0;case">":return o>r?1:0;case">=":return o>=r?1:0;case"==":return o===r?1:0;default:return o!==r?1:0}}default:{if(n.name==="if")return a(n.args[0])?a(n.args[1]):a(n.args[2]);let o=n.args.map(a);switch(n.name){case"min":return Math.min(...o);case"max":return Math.max(...o);case"round":{let r=10**Math.max(0,Math.min(10,Math.round(o[1]??0)));return Math.round(o[0]*r)/r}case"floor":return Math.floor(o[0]);case"ceil":return Math.ceil(o[0]);case"abs":return Math.abs(o[0]);case"sqrt":return Math.sqrt(o[0]);default:return Math.min(Math.max(o[0],o[1]),o[2])}}}};return a(e)}var Ci=e=>e.type??"slider";function D2(e){let t=Ci(e);return t==="toggle"?e.value?1:0:t==="choice"?O1(e.value)?e.value:e.options[0].value:O1(e.value)?e.value:0}function O2(e,t){let a=Ci(e);return a==="toggle"?t?1:0:a==="choice"?e.options.some(n=>n.value===t)?t:D2(e):Math.min(e.max,Math.max(e.min,t))}function sh(e){return e.formulas===void 0&&e.outputs===void 0&&(e.operation!==void 0||e.ranking===void 0)}function ch(e,t){let a=new Map;e.forEach((i,l)=>{try{a.set(i.id,HC(i.expr))}catch(s){ze(`formulas[${l}].expr: ${s.message}`)}}),e.forEach((i,l)=>{for(let s of lh(a.get(i.id)))!t.has(s)&&!a.has(s)&&ze(`formulas[${l}].expr references unknown id "${s}".`)});let n=[],o=new Map,r=(i,l)=>{if(o.get(i)!=="done"){o.get(i)==="active"&&ze(`formulas contain a cycle: ${[...l.slice(l.indexOf(i)),i].join(" -> ")}.`),o.set(i,"active");for(let s of lh(a.get(i)))a.has(s)&&r(s,[...l,i]);o.set(i,"done"),n.push({id:i,tree:a.get(i)})}};for(let i of e)r(i.id,[]);return n}function Pm(e){let t=Array.isArray(e.inputs)?e.inputs:[];return ch(Array.isArray(e.formulas)?e.formulas:[],new Set(t.map(a=>a.id)))}function dh(e,t={},a=Pm(e)){let n=Object.create(null);for(let o of Array.isArray(e.inputs)?e.inputs:[])n[o.id]=O2(o,t[o.id]??D2(o));for(let{id:o,tree:r}of a)n[o]=_C(r,n);return n}function uh(e,t){let n=(e.breakdown?.items??[]).map(r=>({...r,value:t[r.formula]})),o=n.reduce((r,i)=>r+(Number.isFinite(i.value)?Math.abs(i.value):0),0);return n.map(r=>({...r,share:o&&Number.isFinite(r.value)?Math.abs(r.value)/o:0}))}function ph(e,t){let a=e.scale??10,n=e.criteria.map(r=>{let i=typeof r.weight=="string"?t[r.weight]:r.weight??1;return Number.isFinite(i)?Math.max(0,i):0}),o=n.reduce((r,i)=>r+i,0);return e.items.map((r,i)=>{let l=e.criteria.map((s,c)=>({id:s.id,value:o?n[c]*(r.scores[s.id]??0)*100/(o*a):0}));return{item:r,index:i,parts:l,score:l.reduce((s,c)=>s+c.value,0)}}).sort((r,i)=>i.score-r.score||r.index-i.index)}function mh(e,t={},a){if(!Number.isFinite(e))return"";let n=e/(t.divisor??1),o=t.decimals===void 0?{maximumFractionDigits:2}:{minimumFractionDigits:t.decimals,maximumFractionDigits:t.decimals},r=new Intl.NumberFormat(a,o).format(Math.abs(n)),i=Number(r.replace(/[^\d.]/g,""))===0;return`${n<0&&!i?"\u2212":t.signed?i?"\xB1":"+":""}${t.prefix??""}${r}${t.suffix??""}`}function fh(e,t,a=1e3){(typeof e!="string"||e.length>a)&&ze(`${t} must be text of at most ${a} characters.`)}function Jt(e,t,a){e!==void 0&&fh(e,t,a)}function N2(e,t){(typeof e!="string"||!e.trim()||e.length>200)&&ze(`${t} must be non-empty text of at most 200 characters.`)}function Ir(e,t){O1(e)||ze(`${t} must be a finite number.`)}function ki(e,t,a,n=0){return(!Array.isArray(e)||e.length<n||e.length>a)&&ze(`${t} must be an array of ${n} to ${a} items.`),e.forEach((o,r)=>{Si(o)||ze(`${t}[${r}] must be an object.`)}),e}function gh(e,t){e!==void 0&&!/^#[0-9a-fA-F]{6}$/.test(e)&&ze(`${t} must be a six-digit hex color.`)}function Lm(e,t){e!==void 0&&(Si(e)||ze(`${t} must be an object.`),Jt(e.prefix,`${t}.prefix`,20),Jt(e.suffix,`${t}.suffix`,20),e.decimals!==void 0&&(!Number.isInteger(e.decimals)||e.decimals<0||e.decimals>6)&&ze(`${t}.decimals must be an integer from 0 to 6.`),e.divisor!==void 0&&(!O1(e.divisor)||e.divisor<=0)&&ze(`${t}.divisor must be a positive number.`),e.signed!==void 0&&typeof e.signed!="boolean"&&ze(`${t}.signed must be true or false.`))}function UC(e,t){(typeof e.id!="string"||!e.id)&&ze(`${t}.id must be non-empty text.`),fh(e.label,`${t}.label`),Jt(e.unit,`${t}.unit`,40),Jt(e.hint,`${t}.hint`);let a=Ci(e);if(ih.includes(a)||ze(`${t}.type must be one of ${ih.join(", ")}.`),(a==="slider"||a==="stepper")&&(Ir(e.min,`${t}.min`),Ir(e.max,`${t}.max`),Ir(e.value,`${t}.value`),e.min>=e.max&&ze(`${t}.max must be greater than min.`),(a==="slider"||e.step!==void 0)&&(Ir(e.step,`${t}.step`),e.step<=0&&ze(`${t}.step must be greater than 0.`))),a==="toggle"&&e.value!==void 0&&e.value!==0&&e.value!==1&&ze(`${t}.value must be 0 or 1.`),a==="choice"){let n=ki(e.options,`${t}.options`,Co.options,2),o=new Set;n.forEach((r,i)=>{N2(r.label,`${t}.options[${i}].label`),Ir(r.value,`${t}.options[${i}].value`),Jt(r.note,`${t}.options[${i}].note`,200),o.has(r.value)&&ze(`${t}.options contains duplicate value ${r.value}.`),o.add(r.value)}),e.value!==void 0&&!o.has(e.value)&&ze(`${t}.value must equal one of the option values.`)}}function VC(e,t,a){Ir(t,a);let n=Ci(e);n==="toggle"&&t!==0&&t!==1&&ze(`${a} must be 0 or 1.`),n==="choice"&&!e.options.some(o=>o.value===t)&&ze(`${a} must equal one of the option values.`),(n==="slider"||n==="stepper")&&(t<e.min||t>e.max)&&ze(`${a} must be within ${e.min} to ${e.max}.`)}function ZC(e,t,a){Si(e)||ze(`${t} must be an object.`),typeof e.value=="string"?a.has(e.value)||ze(`${t}.value references unknown id "${e.value}".`):Ir(e.value,`${t}.value`),Jt(e.label,`${t}.label`,200),Jt(e.above,`${t}.above`,200),Jt(e.below,`${t}.below`,200)}function GC(e,t){Si(e)||ze("ranking must be an object."),Jt(e.title,"ranking.title",200),e.scale!==void 0&&(!O1(e.scale)||e.scale<=0)&&ze("ranking.scale must be a positive number.");let a=e.scale??10;e.decimals!==void 0&&(!Number.isInteger(e.decimals)||e.decimals<0||e.decimals>2)&&ze("ranking.decimals must be an integer from 0 to 2.");let n=ki(e.criteria,"ranking.criteria",Co.criteria,1),o=new Set;n.forEach((l,s)=>{let c=`ranking.criteria[${s}]`;(typeof l.id!="string"||!l.id)&&ze(`${c}.id must be non-empty text.`),o.has(l.id)&&ze(`ranking.criteria contains duplicate id ${l.id}.`),o.add(l.id),N2(l.label,`${c}.label`),Jt(l.hint,`${c}.hint`,200),gh(l.color,`${c}.color`),typeof l.weight=="string"?t.has(l.weight)||ze(`${c}.weight references unknown id "${l.weight}".`):l.weight!==void 0&&(Ir(l.weight,`${c}.weight`),l.weight<0&&ze(`${c}.weight must not be negative.`))});let r=ki(e.items,"ranking.items",Co.rankingItems,1),i=new Set;r.forEach((l,s)=>{let c=`ranking.items[${s}]`;(typeof l.id!="string"||!l.id)&&ze(`${c}.id must be non-empty text.`),i.has(l.id)&&ze(`ranking.items contains duplicate id ${l.id}.`),i.add(l.id),N2(l.label,`${c}.label`),Jt(l.note,`${c}.note`,300),Si(l.scores)||ze(`${c}.scores must be an object.`);for(let[d,u]of Object.entries(l.scores))o.has(d)||ze(`${c}.scores.${d} does not match a criterion id.`),Ir(u,`${c}.scores.${d}`),(u<0||u>a)&&ze(`${c}.scores.${d} must be within 0 to ${a}.`)})}function Ys(e){Si(e)||ze("Playground data must be an object."),Jt(e.title,"title",200),Jt(e.description,"description",2e3),Jt(e.resultLabel,"resultLabel",200),Jt(e.unit,"unit",40),Jt(e.note,"note",1e3),e.operation!==void 0&&!rh.includes(e.operation)&&ze(`operation must be one of ${rh.join(", ")}.`);let t=ki(e.inputs,"inputs",Co.inputs),a=new Set;if(t.forEach((n,o)=>{UC(n,`inputs[${o}]`),a.has(n.id)&&ze(`inputs contains duplicate id ${n.id}.`),a.add(n.id)}),e.formulas!==void 0){let n=ki(e.formulas,"formulas",Co.formulas);n.forEach((o,r)=>{let i=`formulas[${r}]`;(typeof o.id!="string"||!PC.test(o.id))&&ze(`${i}.id must start with a letter or _ and use only letters, digits and _.`),Rm[o.id]&&ze(`${i}.id "${o.id}" is a reserved function name.`),a.has(o.id)&&ze(`${i}.id ${o.id} duplicates another id.`),a.add(o.id),Jt(o.label,`${i}.label`,200),Jt(o.unit,`${i}.unit`,40),Lm(o.format,`${i}.format`),typeof o.expr!="string"&&ze(`${i}.expr must be text.`)}),ch(n,new Set(t.map(o=>o.id)))}if(e.outputs!==void 0&&ki(e.outputs,"outputs",Co.outputs,1).forEach((o,r)=>{let i=`outputs[${r}]`;a.has(o.formula)||ze(`${i}.formula references unknown id "${o.formula}".`),Jt(o.label,`${i}.label`,200),Jt(o.unit,`${i}.unit`,40),Jt(o.hint,`${i}.hint`,300),Lm(o.format,`${i}.format`),o.target!==void 0&&ZC(o.target,`${i}.target`,a)}),e.breakdown!==void 0){Si(e.breakdown)||ze("breakdown must be an object."),Jt(e.breakdown.title,"breakdown.title",200),Lm(e.breakdown.format,"breakdown.format");let n=ki(e.breakdown.items,"breakdown.items",Co.breakdown,1),o=new Set;n.forEach((r,i)=>{let l=`breakdown.items[${i}]`;a.has(r.formula)||ze(`${l}.formula references unknown id "${r.formula}".`),o.has(r.formula)&&ze(`breakdown.items repeats ${r.formula}.`),o.add(r.formula),Jt(r.label,`${l}.label`,200),gh(r.color,`${l}.color`)})}if(e.presets!==void 0){let n=ki(e.presets,"presets",Co.presets,1),o=new Map(t.map(r=>[r.id,r]));n.forEach((r,i)=>{let l=`presets[${i}]`;N2(r.label,`${l}.label`),(!Si(r.values)||!Object.keys(r.values).length)&&ze(`${l}.values must be an object with at least one input value.`);for(let[s,c]of Object.entries(r.values)){let d=o.get(s);d||ze(`${l}.values.${s} does not match an input id.`),VC(d,c,`${l}.values.${s}`)}})}return e.ranking!==void 0&&GC(e.ranking,a),e}var Vt=e=>{throw new Error(e)},Bm=e=>!!e&&typeof e=="object"&&!Array.isArray(e),$C=new Set(["id","__proto__","prototype","constructor"]),bh=["text","number","select","checkbox","url","date"],hh=["table","board","calendar"],yh=["month","week","heatmap"],L2=53,qC=366,R2=864e5;function Ti(e){if(typeof e!="string")return null;let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(!t)return null;let[a,n,o]=t.slice(1).map(Number),r=Date.UTC(a,n-1,o),i=new Date(r);return i.getUTCMonth()!==n-1||i.getUTCDate()!==o?null:Math.round(r/R2)}function P2(e){return new Date(e*R2).toISOString().slice(0,10)}function xh(e=new Date){return Math.round(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())/R2)}function FC(e){return new Date(e*R2).getUTCDay()}function hl(e,t=1){return e-(FC(e)-t+7)%7}function wh(e){if(typeof e!="string")return"";let t=/^\s*(\d{4})[-/.](\d{1,2})[-/.](\d{1,2})/.exec(e);if(!t)return"";let a=`${t[1]}-${t[2].padStart(2,"0")}-${t[3].padStart(2,"0")}`;return Ti(a)===null?"":a}function vh(e){if(typeof e!="string")return null;let t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return null;let a=Number(t[1])*60+Number(t[2]);return Number(t[2])<60&&a<=1440?a:null}function WC(e,t){Bm(e)||Vt("calendar must be an object.");let a=(n,o)=>{let r=e[n];if(r===void 0)return;typeof r!="string"&&Vt(`calendar.${n} must be a column id string.`);let i=t.find(l=>l.id===r);i||Vt(`calendar.${n} refers to missing column ${r}.`),o.includes(i.type)||Vt(`calendar.${n} must refer to a ${o.join(" or ")} column.`)};a("dateColumn",["date"]),a("endDateColumn",["date"]),a("startTimeColumn",["text"]),a("endTimeColumn",["text"]),a("colorColumn",["select"]),a("doneColumn",["checkbox"]),e.endDateColumn!==void 0&&e.endDateColumn===e.dateColumn&&Vt("calendar.endDateColumn must differ from calendar.dateColumn."),e.endTimeColumn!==void 0&&!e.startTimeColumn&&Vt("calendar.endTimeColumn requires calendar.startTimeColumn."),e.mode!==void 0&&!yh.includes(e.mode)&&Vt(`calendar.mode must be one of ${yh.join(", ")}.`),e.initialDate!==void 0&&Ti(e.initialDate)===null&&Vt("calendar.initialDate must be a YYYY-MM-DD date."),e.weekStartsOn!==void 0&&![0,1].includes(e.weekStartsOn)&&Vt("calendar.weekStartsOn must be 0 (Sunday) or 1 (Monday)."),e.weeks!==void 0&&(!Number.isInteger(e.weeks)||e.weeks<1||e.weeks>L2)&&Vt(`calendar.weeks must be an integer from 1 to ${L2}.`);for(let n of Object.keys(e))["dateColumn","endDateColumn","startTimeColumn","endTimeColumn","colorColumn","doneColumn","mode","initialDate","weekStartsOn","weeks"].includes(n)||Vt(`calendar.${n} is not a supported setting.`)}function B2(e){Bm(e)||Vt("Component data must be an object.");for(let o of["title","description","groupBy"])e[o]!==void 0&&(typeof e[o]!="string"||e[o].length>1e4)&&Vt(`${o} must be text, at most 10000 characters.`);let t=(o,r)=>{if(e[o]===void 0)return[];(!Array.isArray(e[o])||e[o].length>r)&&Vt(`${o} must be an array of at most ${r} items.`);let i=new Set;for(let[l,s]of e[o].entries())Bm(s)||Vt(`${o}[${l}] must be an object.`),(typeof s.id!="string"||!s.id||s.id.length>200)&&Vt(`${o}[${l}].id must be non-empty text.`),i.has(s.id)&&Vt(`${o} contains duplicate id ${s.id}.`),$C.has(s.id)&&(o==="columns"||s.id!=="id")&&Vt(`${o}[${l}].id cannot use the reserved name ${s.id}.`),i.add(s.id);return e[o]},a=t("columns",50);for(let[o,r]of a.entries()){let i=`columns[${o}]`;(typeof r.name!="string"||r.name.length>1e3)&&Vt(`${i}.name must be text, at most 1000 characters.`),bh.includes(r.type)||Vt(`${i}.type must be one of ${bh.join(", ")}.`),r.options!==void 0&&(!Array.isArray(r.options)||r.options.length>200||!r.options.every(l=>typeof l=="string"))&&Vt(`${i}.options must be an array of at most 200 texts.`)}let n=a.filter(o=>o.type==="date");for(let[o,r]of t("rows",5e3).entries()){for(let[i,l]of Object.entries(r))["string","number","boolean"].includes(typeof l)||Vt(`rows[${o}].${i} must be text, a number or a boolean.`);for(let i of n){let l=r[i.id];l!==void 0&&l!==""&&Ti(l)===null&&Vt(`rows[${o}].${i.id} must be a YYYY-MM-DD date or empty.`)}}return e.view!==void 0&&!hh.includes(e.view)&&Vt(`view must be one of ${hh.join(", ")}.`),e.calendar!==void 0&&WC(e.calendar,a),e.view==="calendar"&&!n.length&&Vt("view calendar requires a date column."),e}function kh(e,t){let a=[];for(let n of e){let o=Ti(n[t.dateColumn]);if(o===null)continue;let r=t.endDateColumn?Ti(n[t.endDateColumn]):null;(r===null||r<o||r-o>=qC)&&(r=o);let i=t.startTimeColumn?vh(n[t.startTimeColumn]):null,l=i!==null&&t.endTimeColumn?vh(n[t.endTimeColumn]):null;l!==null&&l<=i&&(l=null),a.push({row:n,start:o,end:r,startMinute:i,endMinute:l,done:t.doneColumn?n[t.doneColumn]===!0:!1})}return a.sort((n,o)=>n.start-o.start||(n.startMinute??-1)-(o.startMinute??-1)||o.end-n.end)}function jm(e,t,a){let n=new Map;for(let o=t;o<=a;o+=1)n.set(o,[]);for(let o of e)for(let r=Math.max(t,o.start);r<=Math.min(a,o.end);r+=1)n.get(r).push(o);return n}function Sh(e){let t=[];return{placed:e.filter(n=>n.startMinute!==null).map(n=>{let o=n.endMinute??Math.min(1440,n.startMinute+60),r=t.findIndex(i=>i<=n.startMinute);return r<0?r=t.push(o)-1:t[r]=o,{entry:n,lane:r,end:o}}),laneCount:Math.max(1,t.length)}}function Ch(e,t){let a=t.weekStartsOn??1,n=t.weeks??12,o=hl(t.endDay,a)-(n-1)*7,r=o+n*7-1,i=t.countDone?e.filter(x=>x.done):e,l=jm(i,o,r),s=[],c=0;for(let x=o;x<=r;x+=1){let f=l.get(x).length;c=Math.max(c,f),s.push({day:x,count:f})}for(let x of s)x.level=x.count?Math.max(1,Math.ceil(x.count/c*4)):0;let d=Math.min(r,t.today),u=0,p=0,g=0;for(let x=o;x<=d;x+=1){let f=l.get(x).length>0;f&&(g+=1),p=f?p+1:0,u=Math.max(u,p)}let y=0,b=d;for(b>=o&&b===t.today&&!l.get(b).length&&(b-=1);b>=o&&l.get(b).length;b-=1)y+=1;return{from:o,to:r,cells:s,max:c,current:y,longest:u,activeDays:g,elapsedDays:Math.max(0,d-o+1)}}var j2={video:["video/mp4","video/webm","video/ogg","video/quicktime"],audio:["audio/mpeg","audio/mp4","audio/wav","audio/x-wav","audio/ogg","audio/webm","audio/flac","audio/aac"],pdf:["application/pdf"]},Th=Lt.resourceBytes;function KC(e,t){let a=typeof t=="string"&&t.match(/^data:([^;,]+);base64,[a-z\d+/=\s]+$/i);return a&&j2[e]?.includes(a[1].toLowerCase())?a[1].toLowerCase():void 0}function Ei(e,t){if(!(typeof t!="string"||/^[\u0000-\u0020]|[\u0000-\u001f]/.test(t))){if(KC(e,t))return t;try{let a=new URL(t);if(["http:","https:"].includes(a.protocol))return a.href}catch{}}}function Eh(e,t){let n={mp4:"video/mp4",webm:e==="audio"?"audio/webm":"video/webm",ogv:"video/ogg",mov:"video/quicktime",mp3:"audio/mpeg",m4a:"audio/mp4",wav:"audio/wav",oga:"audio/ogg",ogg:e==="video"?"video/ogg":"audio/ogg",flac:"audio/flac",aac:"audio/aac",pdf:"application/pdf"}[t.name.split(".").pop()?.toLowerCase()];return n&&j2[e]?.includes(n)?n:j2[e]?.includes(t.type)?t.type:void 0}function Hm(e){let t=e.doi?.trim().replace(/^https?:\/\/(?:dx\.)?doi\.org\//i,""),a=e.url||(t?`https://doi.org/${t}`:"");return Ei("pdf",a)}function To(e,t){if(!t||typeof t!="object"||Array.isArray(t))throw new Error("\u7EC4\u4EF6\u6570\u636E\u5FC5\u987B\u662F\u5BF9\u8C61\u3002");let a=(n,o,r=1e4)=>{if(n!==void 0&&(typeof n!="string"||n.length>r))throw new Error(`${o}\u5FC5\u987B\u662F\u6587\u5B57\uFF0C\u957F\u5EA6\u4E0D\u8D85\u8FC7 ${r}\u3002`)};if(["title","description","caption","fileName"].forEach(n=>a(t[n],n)),e==="references"){if(!Array.isArray(t.items)||t.items.length>500)throw new Error("\u53C2\u8003\u6587\u732E\u6700\u591A\u652F\u6301 500 \u6761\u3002");let n=new Set;for(let o of t.items){if(!o||typeof o!="object"||Array.isArray(o))throw new Error("\u53C2\u8003\u6587\u732E\u6761\u76EE\u5FC5\u987B\u662F\u5BF9\u8C61\u3002");if(typeof o.id!="string"||!o.id.trim()||n.has(o.id)||["__proto__","constructor","prototype"].includes(o.id))throw new Error("\u53C2\u8003\u6587\u732E\u9700\u8981\u4E0D\u91CD\u590D\u7684 id\u3002");if(n.add(o.id),typeof o.title!="string"||!o.title.trim())throw new Error("\u53C2\u8003\u6587\u732E\u9700\u8981\u6807\u9898\u3002");for(let r of["id","title","authors","year","venue","doi","url","note"])a(o[r],r);if(o.url&&!Ei("pdf",o.url))throw new Error("\u6587\u732E\u94FE\u63A5\u9700\u8981 http \u6216 https \u7F51\u5740\u3002");if(o.doi&&!/^10\.\d{4,9}\/\S+$/i.test(o.doi.replace(/^https?:\/\/(?:dx\.)?doi\.org\//i,"")))throw new Error("DOI \u683C\u5F0F\u5E94\u4E3A 10.xxxx/\u2026\u3002")}return}if(!j2[e])throw new Error(`\u672A\u77E5\u7684\u6587\u4EF6\u7EC4\u4EF6\uFF1A${e}`);if(t.src!==void 0&&t.src!==""&&!Ei(e,t.src))throw new Error("\u6587\u4EF6\u9700\u8981 http\u3001https \u6216\u5339\u914D\u6587\u4EF6\u7C7B\u578B\u7684\u5185\u5D4C\u5730\u5740\u3002");if(t.poster&&!(Ei("pdf",t.poster)||/^data:image\/(png|jpeg|gif|webp|avif);base64,[a-z\d+/=\s]+$/i.test(t.poster)))throw new Error("\u5C01\u9762\u9700\u8981\u6709\u6548\u56FE\u7247\u5730\u5740\u3002");if(t.page!==void 0&&(!Number.isInteger(t.page)||t.page<1||t.page>1e5))throw new Error("\u521D\u59CB\u9875\u7801\u5FC5\u987B\u662F\u6B63\u6574\u6570\u3002");if(t.height!==void 0&&(typeof t.height!="number"||!Number.isFinite(t.height)||t.height<240||t.height>1200))throw new Error("\u9605\u8BFB\u533A\u9AD8\u5EA6\u9700\u8981\u5728 240 \u5230 1200 \u4E4B\u95F4\u3002");if(t.aspectRatio!==void 0&&!["16:9","4:3","1:1","9:16"].includes(t.aspectRatio))throw new Error("\u753B\u9762\u6BD4\u4F8B\u4E0D\u53D7\u652F\u6301\u3002");for(let n of["loop","muted"])if(t[n]!==void 0&&typeof t[n]!="boolean")throw new Error(`${n}\u5FC5\u987B\u662F\u5E03\u5C14\u503C\u3002`)}var zh=Lt.publicationBytes,_m=/^sha256-[a-f0-9]{64}$/,YC=/^[a-z][a-z0-9-]{0,79}$/,JC=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[a-zA-Z0-9.-]+)?$/;function H2(e){return`${e.kind}:${e.id}@${e.version}#${e.integrity}`}function Um(e,t){if(!e||typeof e!="object"||Array.isArray(e)||!["component","template"].includes(e.kind)||t&&e.kind!==t||typeof e.id!="string"||typeof e.version!="string"||typeof e.integrity!="string"||!YC.test(e.id)||!JC.test(e.version)||!_m.test(e.integrity))throw new Error("A publication requires an exact kind/id/version/integrity reference.");if(e.scope!==void 0&&!["project","global","published","builtin"].includes(e.scope))throw new Error("Invalid publication reference scope.");if(e.projectId!==void 0&&(typeof e.projectId!="string"||!/^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$/.test(e.projectId)))throw new Error("Invalid publication project reference.");return{kind:e.kind,id:e.id,version:e.version,integrity:e.integrity,...e.scope?{scope:e.scope}:{},...e.projectId?{projectId:e.projectId}:{}}}function Vm(e){if(typeof e!="string"||e.length>8192)throw new Error("Publication URL must be an HTTPS URL or a loopback HTTP URL.");let t=new URL(e),a=t.hostname.split("."),n=t.hostname==="localhost"||t.hostname==="[::1]"||a.length===4&&a[0]==="127"&&a.every(o=>/^\d+$/.test(o)&&Number(o)<=255);if(t.username||t.password||t.hash||t.protocol!=="https:"&&!(t.protocol==="http:"&&n))throw new Error("Publications require HTTPS; HTTP is allowed only on loopback. Credentials, fragments and file URLs are forbidden.");return t.href}function _2(e){if(!Array.isArray(e)||e.length>100)throw new Error("remoteComponents must contain at most 100 locked locators.");let t=new Set;return e.map(a=>{if(!a||typeof a!="object"||Array.isArray(a))throw new Error("Invalid published component locator.");let n=Um(a.ref,"component"),o=H2(n);if(t.has(o))throw new Error(`Duplicate remote component: ${o}`);if(t.add(o),!_m.test(a.sha256)||!_m.test(a.manifestIntegrity)||!Number.isSafeInteger(a.bytes)||a.bytes<1||a.bytes>zh||typeof a.verifiedAt!="string"||!Number.isFinite(Date.parse(a.verifiedAt)))throw new Error("Remote components require verified byte length, SHA-256 and publication metadata.");return{ref:n,bundleRef:Um(a.bundleRef),url:Vm(a.url),sha256:a.sha256,bytes:a.bytes,manifestUrl:Vm(a.manifestUrl),manifestIntegrity:a.manifestIntegrity,verifiedAt:a.verifiedAt}})}async function XC(e){if(!globalThis.crypto?.subtle)throw Object.assign(new Error("\u7EC4\u4EF6\u5B8C\u6574\u6027\u6821\u9A8C\u9700\u8981 HTTPS \u6216\u5728\u672C\u673A\u6253\u5F00\u9875\u9762\u3002"),{code:"INTEGRITY_UNAVAILABLE"});let t=await globalThis.crypto.subtle.digest("SHA-256",e);return"sha256-"+[...new Uint8Array(t)].map(a=>a.toString(16).padStart(2,"0")).join("")}async function QC(e,t={}){let a=Vm(e),n=await fetch(a,{credentials:"omit",mode:"cors",redirect:"error",cache:"no-store",referrerPolicy:"no-referrer",headers:{Accept:"application/json"},signal:t.signal?AbortSignal.any([t.signal,AbortSignal.timeout(15e3)]):AbortSignal.timeout(15e3)});if(!n.ok)throw new Error(`Published component request failed (${n.status}): ${a}`);if(t.requireCors&&n.headers.get("access-control-allow-origin")!=="*")throw new Error(`Publication must serve Access-Control-Allow-Origin: * so portable readers can load it: ${a}`);let o=t.maxBytes??zh;if(!n.body)throw new Error("Published bundle response has no body.");let r=n.body.getReader(),i=[],l=0;for(;;){let{value:d,done:u}=await r.read();if(u)break;if(l+=d.byteLength,l>o)throw await r.cancel(),new Error("Published bundle exceeds its size limit.");i.push(d)}let s=new Uint8Array(l),c=0;for(let d of i)s.set(d,c),c+=d.byteLength;return{bytes:s,text:new TextDecoder("utf-8",{fatal:!0}).decode(s),sha256:await XC(s),cors:n.headers.get("access-control-allow-origin")}}async function Ah(e,t={}){let a=_2(e),n=new Map,o=0,r=[];for(let i of a){let l=`${i.url}#${i.sha256}`,s=n.get(l);if(!s){let d;try{d=await QC(i.url,{signal:t.signal,maxBytes:i.bytes})}catch(u){throw Object.assign(new Error(`\u65E0\u6CD5\u52A0\u8F7D\u7EC4\u4EF6 ${i.ref.id}@${i.ref.version}\uFF1A${u instanceof Error?u.message:"\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25"}\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u548C\u53D1\u5E03\u670D\u52A1\u5668\u7684 CORS \u8BBE\u7F6E\u3002`,{cause:u}),{code:"COMPONENT_FETCH_FAILED",params:{component:`${i.ref.id}@${i.ref.version}`,reason:u instanceof Error?u.message:""}})}if(d.bytes.byteLength!==i.bytes||d.sha256!==i.sha256)throw Object.assign(new Error(`\u7EC4\u4EF6 ${i.ref.id}@${i.ref.version} \u7684\u6587\u4EF6\u6821\u9A8C\u5931\u8D25\uFF08SHA-256 \u6216\u5B57\u8282\u6570\u4E0D\u4E00\u81F4\uFF09\u3002`),{code:"COMPONENT_CHECKSUM_FAILED",params:{component:`${i.ref.id}@${i.ref.version}`}});if(o+=d.bytes.byteLength,o>Lt.publicationTransferBytes)throw new Error("Remote component downloads exceed the 512 MiB limit.");if(s=JSON.parse(d.text),s?.format!=="showai-catalog-bundle"||s.version!==1||!Array.isArray(s.components))throw new Error("Unsupported published component bundle.");n.set(l,s)}if(H2(Um(s.root))!==H2(i.bundleRef))throw new Error(`Published bundle revision does not match ${i.ref.id}@${i.ref.version}.`);let c=s.components.map(d=>d?.component).find(d=>d?.id===i.ref.id&&d?.version===i.ref.version&&d?.integrity===i.ref.integrity);if(!c||typeof c.html!="string"||!c.html.includes("<!--SHOWAI_COMPONENT_DATA-->")||c.schema===void 0||typeof c.name!="string")throw new Error(`Published bundle does not contain the exact component revision ${H2(i.ref)}.`);r.push(c)}return r}var ZA=Lt.artifactBytes;var Gm=12e3,Ih=48,Nh=new Set(["__proto__","prototype","constructor"]),tT=new Set(["doc","surface","drawing","region","richText","paragraph","text","heading","blockquote","bulletList","orderedList","listItem","taskList","taskItem","codeBlock","hardBreak","mathInline","mathBlock","horizontalRule","image","table","tableRow","tableCell","tableHeader","callout","toggle","stepper","step","widget"]),aT=new Set(["bold","italic","strike","code","underline","link","highlight","textStyle","annotation"]),Zm=new Set(["id","level","textAlign","align","type","start","checked","language","src","alt","title","width","height","colspan","rowspan","colwidth","backgroundColor","open","summary","icon","tone","kind","data","canvas","name","frameless","latex","display","componentStyle","caption","fit","nativeInk"]),nT=new Set(["href","title","target","rel","class","color","backgroundColor","fontFamily","fontSize","mode","note"]);function Za(e,t){if(e===null||typeof e!="object"||Array.isArray(e))throw new Error(`${t} must be an object.`);return e}function Xt(e,t,a=1e6){if(typeof e!="string"||e.length>a)throw new Error(`${t} must be text, at most ${a} characters.`);return e}function zi(e,t=!1){if(typeof e!="string")return!1;if(t&&/^data:image\/(?:png|jpeg|gif|webp|avif);base64,[a-z\d+/=\s]+$/i.test(e)||!t&&e.startsWith("#"))return!0;if(/^[\u0000-\u0020]|[\u0000-\u001f]/.test(e))return!1;try{let a=new URL(e);return(t?["http:","https:"]:["http:","https:","mailto:","tel:"]).includes(a.protocol)}catch{return!1}}function U2(e,t,a=0){if(a>Ih)throw new Error(`${t} is nested too deeply.`);if(!(e===null||typeof e=="boolean")){if(typeof e=="number"){if(!Number.isFinite(e))throw new Error(`${t} must be a finite number.`);return}if(typeof e=="string"){Xt(e,t,Lt.authoringRequestBytes);return}if(Array.isArray(e)){if(e.length>Gm)throw new Error(`${t} contains too many items.`);e.forEach((n,o)=>U2(n,`${t}[${o}]`,a+1));return}if(Za(e,t),Object.getPrototypeOf(e)!==Object.prototype&&Object.getPrototypeOf(e)!==null)throw new Error(`${t} must contain plain JSON objects.`);for(let[n,o]of Object.entries(e)){if(Nh.has(n))throw new Error(`${t} contains a reserved key.`);U2(o,`${t}.${n}`,a+1)}}}function Mh(e,t,a,n=!1){Za(e,t);for(let[o,r]of Object.entries(e)){if(!a.has(o))throw new Error(`Unsupported attribute ${t}.${o}.`);if(r!=null){if(o==="href"&&!zi(r))throw new Error(`${t}.href must be a safe web, email, or anchor URL.`);if(o==="src"&&r!==""&&!zi(r,!0))throw new Error(`${t}.src must be a web URL or embedded raster image.`);if(["textAlign","align"].includes(o)&&!["left","center","right","justify"].includes(r))throw new Error(`${t}.${o} is not supported.`);if(o==="level"&&![1,2,3,4,5,6].includes(r))throw new Error(`${t}.level must be 1 through 6.`);if(o==="type"&&!["1","a","A","i","I"].includes(r))throw new Error(`${t}.type must be an ordered-list marker style.`);if(["open","checked"].includes(o)&&typeof r!="boolean")throw new Error(`${t}.${o} must be true or false.`);if(["colspan","rowspan","start"].includes(o)&&(!Number.isInteger(r)||r<1||r>1e4))throw new Error(`${t}.${o} must be a positive integer.`);if(["id","language","alt","title","summary","icon","tone","kind","target","rel","class"].includes(o)&&Xt(r,`${t}.${o}`,o==="icon"&&n?1e6:1e4),["width","height"].includes(o)&&!(typeof r=="number"&&Number.isFinite(r)&&r>0&&r<=1e4)&&!(typeof r=="string"&&/^\d{1,5}(?:px|%)?$/.test(r)))throw new Error(`${t}.${o} must be a positive image dimension.`);if(o==="colwidth"&&(!Array.isArray(r)||r.length>100||!r.every(i=>Number.isInteger(i)&&i>=0&&i<=1e4)))throw new Error(`${t}.colwidth must contain non-negative column widths.`);if(["color","backgroundColor"].includes(o)&&(typeof r!="string"||!/^(?:#[a-f\d]{3,8}|[a-z]{1,24}|rgba?\([\d\s.,%]+\)|hsla?\([\d\s.,%]+\))$/i.test(r)))throw new Error(`${t}.${o} must be a CSS color.`)}}}function oT(e,t,a){if(Object.hasOwn(f6,e)){x0(e,t);return}if(e==="step-walkthrough"){I2(t);return}if(["comparison-matrix","status-tree","experiment-tracker"].includes(e)){Zl(e,t);return}if(e==="custom"&&bo(t.props,"Component instance data",Lt.componentPropsBytes),["video","audio","pdf","references"].includes(e)){To(e,t);return}if(e.startsWith("g2-")){w0(t);return}if(e==="mindmap"){y0(t);return}if(e==="flowchart"){v0(t);return}if(e==="scene-3d"){k0(t);return}if(e==="sequence-diagram"||e==="layer-diagram"){Sc(e,t);return}if(e==="step-guide"||e==="command-reference"){Cc(e,t);return}if(e==="structure-browser"||e==="card-grid"){Tc(e,t);return}if(e==="roadmap"||e==="waterfall"){Ec(e,t);return}if(e==="event-timeline"){S0(t);return}if(e==="playground"){Ys(t);return}if(e==="database"){B2(t);return}if(["text","image","table","callout","toggle","stepper","divider","code"].includes(e)){if(pr(e,t),(e==="text"&&typeof t.content=="object"||t.document)&&$m(t.document??t.content,`${a}.content`,{count:0,surface:!1,resource:!1}),e==="image"&&t.src&&!zi(t.src,!0))throw new Error(`${a}.src must be a safe raster image URL.`);return}if(!["chart","database","metrics","playground","gallery","bookmark"].includes(e))return;let n=(i,l)=>{if(t[i]===void 0)return[];if(!Array.isArray(t[i])||t[i].length>l)throw new Error(`${a}.${i} must be an array of at most ${l} items.`);return t[i]},o=(i,l)=>{i!==void 0&&Xt(i,`${a}.${l}`,1e4)},r=(i,l=!1)=>{let s=new Set;for(let[c,d]of i.entries())if(Za(d,`${a}[${c}]`),l){if(Xt(d.id,`${a}[${c}].id`,200),!d.id||s.has(d.id)||Nh.has(d.id))throw new Error(`${a} requires unique, non-reserved IDs.`);s.add(d.id)}return i};if(o(t.title,"title"),o(t.description,"description"),e==="chart"){let i=n("labels",500),l=r(n("series",20));for(let s of i)Xt(s,`${a}.labels`,1e3);if(t.type!==void 0&&!["line","bar"].includes(t.type))throw new Error(`${a}.type must be line or bar.`);for(let s of l){if(Xt(s.name,`${a}.series.name`,1e3),!Array.isArray(s.values)||s.values.length!==i.length||!s.values.every(c=>typeof c=="number"&&Number.isFinite(c)))throw new Error(`${a}.series values must be finite numbers matching labels.`);if(s.color!==void 0&&(typeof s.color!="string"||!/^#(?:[a-f\d]{3}|[a-f\d]{4}|[a-f\d]{6}|[a-f\d]{8})$/i.test(s.color)))throw new Error(`${a}.series color must be a hex color.`)}o(t.unit,"unit")}if(e==="metrics")for(let i of r(n("items",100))){if(Xt(i.label,`${a}.item.label`,1e3),!["string","number"].includes(typeof i.value))throw new Error(`${a}.item.value must be text or a number.`);if(o(i.unit,"item.unit"),o(i.detail,"item.detail"),i.trend!==void 0&&(typeof i.trend!="number"||!Number.isFinite(i.trend)))throw new Error(`${a}.item.trend must be a finite number.`)}if(e==="gallery"){if(t.columns!==void 0&&![1,2,3].includes(t.columns))throw new Error(`${a}.columns must be 1, 2, or 3.`);for(let i of r(n("images",100),!0)){if(i.src!==""&&!zi(i.src,!0))throw new Error(`${a}.image.src must be a safe raster image URL.`);o(i.alt,"image.alt"),o(i.caption,"image.caption")}}if(e==="bookmark"){if(t.url!==void 0&&t.url!==""&&!zi(t.url))throw new Error(`${a}.url must be a safe URL.`);if(t.image!==void 0&&t.image!==""&&!zi(t.image,!0))throw new Error(`${a}.image must be a safe raster image URL.`)}}function $m(e,t,a,n=0,o=null){if(++a.count>Gm)throw new Error(`Document exceeds ${Gm} nodes.`);if(n>Ih)throw new Error("Document is nested too deeply.");let r=Za(e,t);if(!a.resource&&r.type==="surface"&&r.attrs&&Object.keys(r.attrs).length)throw new Error("Whiteboard root metadata belongs on the page, not the content node.");if(r.attrs?.name!==void 0&&(typeof r.attrs.name!="string"||r.attrs.name.length>200))throw new Error("Content names must contain at most 200 characters.");if(!a.resource&&r.type==="surface"&&n!==0)throw new Error("A whiteboard root cannot be nested.");if(r.type==="region"&&(!["surface","region"].includes(o)||!a.surface))throw new Error(`${r.type} requires a whiteboard or region parent.`);if(a.surface&&r.attrs?.canvas!=null)throw new Error("Whiteboard layout must be stored outside content.");if(!tT.has(r.type))throw new Error(`Unsupported block type at ${t}: ${String(r.type)}.`);for(let c of Object.keys(r))if(!["type","attrs","content","marks","text"].includes(c))throw new Error(`Unsupported node field ${t}.${c}.`);if(r.type==="text"){if(Xt(r.text,`${t}.text`),!r.text.length)throw new Error(`${t}.text cannot be empty.`)}else if(r.text!==void 0)throw new Error(`Only text nodes can have a text field: ${t}.`);if(r.attrs!==void 0&&Mh(r.attrs,`${t}.attrs`,r.type==="drawing"?new Set(["id","name","tool","color","fillColor","strokeWidth","pressure","extent","points","bindings","ink","inkFragments","inkInput","label","labelSize"]):r.type==="surface"?new Set([...Zm,"widthMode","inkState","outline"]):r.type==="region"?new Set([...Zm,"inkArchiveGroup"]):Zm,r.type==="surface"),c0(r),r.attrs?.frameless!==void 0&&(r.type!=="surface"||r.attrs.kind!=="page"||typeof r.attrs.frameless!="boolean"))throw new Error(`${t}.attrs.frameless requires a Page and a boolean.`);if(r.type==="surface"&&r.attrs?.icon!==void 0&&zc(r.attrs.icon,`${t}.attrs.icon`),r.attrs?.canvas!=null){if(n!==1||r.type!=="callout")throw new Error(`${t}.attrs.canvas is only supported on top-level callouts.`);if(Xt(r.attrs.id,`${t}.attrs.id`,200),!r.attrs.id.trim())throw new Error(`${t} needs a stable canvas id.`);let c=Za(r.attrs.canvas,`${t}.attrs.canvas`);if(Object.keys(c).some(d=>!["x","y","width"].includes(d)))throw new Error(`${t}.attrs.canvas contains an unsupported field.`);for(let d of["x","y"])if(typeof c[d]!="number"||!Number.isFinite(c[d])||Math.abs(c[d])>1e6)throw new Error(`${t}.attrs.canvas.${d} must be finite and within \xB11000000.`);if(typeof c.width!="number"||!Number.isFinite(c.width)||c.width<240||c.width>1600)throw new Error(`${t}.attrs.canvas.width must be between 240 and 1600.`)}if(r.type==="image"&&r.attrs?.src!==""&&!zi(r.attrs?.src,!0))throw new Error(`${t} requires a safe image src.`);if(r.type==="image"&&pr("image",Object.fromEntries(Object.entries({...r.attrs.componentStyle,...r.attrs}).filter(([c,d])=>d!=null&&!["width","height"].includes(c)))),r.attrs?.nativeInk!=null&&r.type!=="image")throw new Error(`${t}.nativeInk requires an image node.`);if(r.attrs?.componentStyle&&(Za(r.attrs.componentStyle,`${t}.componentStyle`),pr("divider",r.attrs.componentStyle)),r.type==="richText"&&pr("text",{...r.attrs?.data,content:{type:"doc",content:r.content??[]},format:"richtext"}),r.type==="widget"){if(Xt(r.attrs?.kind,`${t}.attrs.kind`,80),!/^[a-z][a-z0-9-]*$/.test(r.attrs.kind))throw new Error("Widget kind must use lowercase letters, numbers, and hyphens.");Za(r.attrs?.data,`${t}.attrs.data`),oT(r.attrs.kind,r.attrs.data,`${t}.attrs.data`)}if(r.marks!==void 0){if(!["text","hardBreak"].includes(r.type))throw new Error(`${t} cannot have inline marks.`);if(!Array.isArray(r.marks))throw new Error(`${t}.marks must be an array.`);for(let[c,d]of r.marks.entries()){Za(d,`${t}.marks[${c}]`);for(let u of Object.keys(d))if(!["type","attrs"].includes(u))throw new Error(`Unsupported mark field: ${u}.`);if(!aT.has(d.type))throw new Error(`Unsupported text mark: ${String(d.type)}.`);if(d.attrs!==void 0&&Mh(d.attrs,`${t}.marks[${c}].attrs`,nT),d.attrs?.mode!=null&&(d.type!=="highlight"||!["lower","full"].includes(d.attrs.mode)))throw new Error("Highlight mode must be lower or full.");if(d.type==="link"&&!zi(d.attrs?.href))throw new Error("Links require a safe href.");if(c6(d))throw new Error(`Annotations require a note of 1\u2013${1e3} characters.`)}}if(r.content!==void 0){if(!Array.isArray(r.content))throw new Error(`${t}.content must be an array.`);if(["text","image","widget","drawing","hardBreak","horizontalRule"].includes(r.type))throw new Error(`${t} cannot contain child blocks.`);r.content.forEach((c,d)=>$m(c,`${t}.content[${d}]`,a,n+1,r.type))}let i=r.content??[],l=["richText","paragraph","heading","mathBlock","blockquote","bulletList","orderedList","taskList","codeBlock","horizontalRule","image","table","callout","toggle","stepper","widget"],s={doc:l,surface:[...l,"region","richText",...a.resource?["surface","drawing"]:[]],region:[...l,"region","richText",...a.resource?["surface","drawing"]:[]],richText:l,paragraph:["text","hardBreak","mathInline"],heading:["text","hardBreak","mathInline"],codeBlock:["text"],blockquote:l,callout:l,toggle:l,stepper:["step"],step:l,bulletList:["listItem"],orderedList:["listItem"],listItem:l,taskList:["taskItem"],taskItem:l,table:["tableRow"],tableRow:["tableCell","tableHeader"],tableCell:l,tableHeader:l}[r.type];if(s&&i.some(c=>!s.includes(c.type)))throw new Error(`${t} contains an invalid child block.`);if(r.type==="stepper"&&i.length>pp)throw new Error(`${t} must contain at most ${pp} steps.`);if(["blockquote","callout","toggle","stepper","step","bulletList","orderedList","listItem","taskList","taskItem","table","tableRow","tableCell","tableHeader"].includes(r.type)&&!i.length)throw new Error(`${t} must contain at least one child block.`);if(["listItem","taskItem"].includes(r.type)&&i[0]?.type!=="paragraph")throw new Error(`${t} must start with a paragraph.`);if(r.type==="codeBlock"&&i.some(c=>c.marks?.length))throw new Error(`${t} cannot contain formatted code.`)}function V2(e){U2(e,"document"),bo(e);let t=structuredClone(Za(e,"document")),a;if(t.templateContext!==void 0){let s=Za(t.templateContext,"document.templateContext");if(s.format!==1||!Array.isArray(s.templates)||s.templates.length>8)throw new Error("Invalid page template context.");let c=p=>{let g=Za(p,"Template reference");if(g.kind!=="template"||typeof g.id!="string"||!/^[a-zA-Z0-9][a-zA-Z0-9_-]{0,99}$/.test(g.id)||typeof g.version!="string"||!/^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$/.test(g.version)||!/^sha256-[a-f0-9]{64}$/.test(g.integrity)||g.scope!==void 0&&!["builtin","project","global","published"].includes(g.scope))throw new Error("Page template references require exact id/version/integrity.");return{kind:"template",id:g.id,version:g.version,integrity:g.integrity,...g.scope?{scope:g.scope}:{}}},d=c(s.system),u=s.templates.map(c);if(d.id!=="system-presentation"||d.scope!=="builtin"||new Set(u.map(p=>p.id)).size!==u.length)throw new Error("Page template context requires the builtin system baseline and distinct templates.");a={format:1,system:d,templates:u}}if(Xt(t.id,"document.id",200),Xt(t.title,"document.title",1e3),!t.id)throw new Error("Document id is required.");if(!["doc","surface"].includes(t.content?.type))throw new Error("Page content must be a doc or surface node.");let n=t.content.type==="surface",o=Ua(t);if(n)yi(t);else if(t.layout!==void 0||t.views!==void 0||t.surfaceViews!==void 0)throw new Error("Layout and views require a surface root.");$m(t.content,"document.content",{count:0,surface:n,resource:o}),n&&th(t);let r=new Set((t.content.content??[]).filter(s=>s.attrs?.canvas!=null).map(s=>s.attrs.id));if(r.size){let s=new Set,c=d=>{let u=d.attrs?.id;if(r.has(u)){if(s.has(u))throw new Error(`Duplicate canvas id: ${u}.`);s.add(u)}d.content?.forEach(c)};c(t.content)}let i=new Date().toISOString();for(let s of["createdAt","updatedAt"])if(t[s]!==void 0&&(typeof t[s]!="string"||!Number.isFinite(Date.parse(t[s]))))throw new Error(`document.${s} must be an ISO date string.`);t.parentId!=null&&Xt(t.parentId,"document.parentId",200);for(let s of["favorite","archived"])if(t[s]!==void 0&&typeof t[s]!="boolean")throw new Error(`document.${s} must be true or false.`);if(t.comments!==void 0&&!Array.isArray(t.comments))throw new Error("document.comments must be an array.");let l=(t.comments??[]).map((s,c)=>{if(Za(s,`comments[${c}]`),Xt(s.id,"comment.id",200),Xt(s.text,"comment.text",1e4),typeof s.createdAt!="string"||!Number.isFinite(Date.parse(s.createdAt)))throw new Error("comment.createdAt must be an ISO date string.");if(typeof s.resolved!="boolean")throw new Error("comment.resolved must be true or false.");return{id:s.id,text:s.text,createdAt:s.createdAt,resolved:s.resolved}});return{id:t.id,title:t.title,icon:t.icon===void 0?"\u2726":zc(t.icon,"document.icon"),cover:t.cover===void 0?"none":Xt(t.cover,"document.cover",2e3),parentId:t.parentId??null,favorite:t.favorite??!1,archived:t.archived??!1,createdAt:t.createdAt??i,updatedAt:t.updatedAt??i,content:t.content,...o?{layout:t.layout,surfaceViews:t.surfaceViews}:n?{layout:t.layout,views:t.views}:{},comments:l,...a?{templateContext:a}:{}}}function Dh(e){if(e===void 0)return;if(!Array.isArray(e)||e.length>100)throw new Error("components must be an array of at most 100 packages.");U2(e,"components"),wc("Embedded components JSON",b0(e).jsonBytes,Lt.artifactBytes);let t=new Set;return e.map((a,n)=>{if(Za(a,`components[${n}]`),Xt(a.id,"component.id",80),Xt(a.name,"component.name",200),Xt(a.version,"component.version",80),Xt(a.html,"component.html",Lt.authoringRequestBytes),Xt(a.integrity,"component.integrity",200),!/^[a-z][a-z0-9-]*$/.test(a.id)||!/^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$/.test(a.version))throw new Error("Invalid component identity.");let o=`${a.id}@${a.version}#${a.integrity}`;if(t.has(o))throw new Error(`Duplicate embedded component: ${o}`);return t.add(o),typeof a.schema!="boolean"&&Za(a.schema,"component.schema"),a.inline!==void 0&&(Za(a.inline,"component.inline"),Xt(a.inline.script,"component.inline.script",Lt.authoringRequestBytes),Xt(a.inline.styles,"component.inline.styles",Lt.authoringRequestBytes)),i6(a),structuredClone(a)})}function Oh(e,t){Za(e,"selection");let a=new Set,n=r=>{r.attrs?.id&&!["doc","text"].includes(r.type)&&a.add(r.attrs.id),r.content?.forEach(n)};n(t.content);let o=e.blockIds;if(!Array.isArray(o)||!o.length||o.some(r=>typeof r!="string"||!a.has(r))||new Set(o).size!==o.length)throw new Error("Artifact selection must reference unique existing block ids.");return{blockIds:[...o]}}function Lh(e){wc("Artifact JSON",typeof e=="string"?dp(e):b0(e).jsonBytes,Lt.artifactBytes);let t=Za(typeof e=="string"?JSON.parse(e):e,"artifact");if(t.format!=="showai"||![1,2,3].includes(t.version))throw new Error('Expected a ShowAI artifact with format "showai" and version 1, 2 or 3.');if(t.presentation!==void 0&&!["spatial","reading"].includes(t.presentation))throw new Error("Unknown page presentation.");let a=V2(t.document);if(t.version!==vm(a))throw new Error("Artifact version does not match its page model.");return{format:"showai",version:t.version,document:a,...t.presentation?{presentation:t.presentation}:{},...t.selection===void 0?{}:{selection:Oh(t.selection,a)},...t.components===void 0?{}:{components:Dh(t.components)},...t.remoteComponents===void 0?{}:{remoteComponents:_2(t.remoteComponents)}}}function Rh(e,t,a,n,o){if(n!==void 0&&!["spatial","reading"].includes(n))throw new Error("Unknown page presentation.");let r={format:"showai",version:vm(e),document:V2(e),...n?{presentation:n}:{},...o?{selection:Oh(o,e)}:{},...t?.length?{components:Dh(t)}:{},...a?.length?{remoteComponents:_2(a)}:{}};wc("Artifact JSON",b0(r).prettyJsonBytes,Lt.artifactBytes);let i=JSON.stringify(r,null,2);return wc("Artifact JSON",dp(i),Lt.artifactBytes),i}var $x=U(Ne(),1);var Ft=U(Ne(),1);var Js="default-src 'none'; script-src 'unsafe-inline' 'wasm-unsafe-eval'; style-src 'unsafe-inline'; img-src data: blob:; media-src data:; font-src data:; connect-src 'none'; object-src 'none'; frame-src about:; base-uri 'none'; form-action 'none'";var Ph=U(Ne(),1);function rT(){let e=document.documentElement.dataset.theme;if(e==="light"||e==="dark")return e;let t=localStorage.getItem("showai:appearance");return t==="dark"||!t&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function iT(e){let t=new MutationObserver(e);return t.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>t.disconnect()}function Z2(){return(0,Ph.useSyncExternalStore)(iT,rT,()=>"light")}function G2(e,t,a){let n=(o,r)=>{document.documentElement.dataset.theme=o,document.documentElement.style.colorScheme=o;for(let[i,l]of Object.entries(r))i.startsWith("--")&&document.documentElement.style.setProperty(i,l)};n(t,a),window.addEventListener("message",o=>{o.source===parent&&o.data?.channel===e&&o.data.type==="showai:theme"&&(o.data.theme==="light"||o.data.theme==="dark")&&n(o.data.theme,o.data.tokens??{})})}function Xs(){let e=getComputedStyle(document.documentElement);return Object.fromEntries([...e].filter(t=>t.startsWith("--")).map(t=>[t,e.getPropertyValue(t)]))}var ot=U(Ne(),1);var lT=/^[a-z][a-z0-9-]{0,79}$/,sT=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[a-zA-Z0-9.-]+)?$/,Bh="<!--SHOWAI_COMPONENT_DATA-->";function Qs(e,t){if(!e.includes(Bh))throw new Error("\u7EC4\u4EF6\u7F3A\u5C11\u8FD0\u884C\u5165\u53E3\u3002");return e.replace(Bh,()=>t)}function $2(e,t=0){if(t>40)throw new Error("Component data is nested too deeply.");if(!(e===null||typeof e=="string"||typeof e=="boolean")&&!(typeof e=="number"&&Number.isFinite(e))){if(Array.isArray(e)){e.forEach(a=>$2(a,t+1));return}if(e&&typeof e=="object"&&Object.getPrototypeOf(e)===Object.prototype){for(let[a,n]of Object.entries(e)){if(["__proto__","prototype","constructor"].includes(a))throw new Error("Component data contains a reserved property.");$2(n,t+1)}return}throw new Error("Component data must contain only JSON values.")}}function jh(e,t=e.defaultData){return $2(t),bo(t,"Component instance data",Lt.componentPropsBytes),{...Ai({componentId:e.id,version:e.version,integrity:e.integrity,props:structuredClone(t)})}}function Ai(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Custom block data must be an object.");let t=e;if(typeof t.componentId!="string"||!lT.test(t.componentId))throw new Error("A custom block needs a valid componentId.");if(typeof t.version!="string"||!sT.test(t.version))throw new Error("A custom block needs an exact component version.");if(t.integrity!==void 0&&(typeof t.integrity!="string"||!/^sha256-[a-f0-9]{64}$/.test(t.integrity)))throw new Error("Invalid component integrity hash.");if(t.scope!==void 0&&!["project","global","published","builtin"].includes(String(t.scope)))throw new Error("Invalid component scope.");if(!t.props||typeof t.props!="object"||Array.isArray(t.props))throw new Error("Custom block props must be an object.");return $2(t.props),bo(t.props,"Component instance data",Lt.componentPropsBytes),{componentId:t.componentId,version:t.version,props:t.props,...t.integrity?{integrity:t.integrity}:{},...t.scope?{scope:t.scope}:{}}}var dT=U(Ne(),1),uT=U(Gn(),1),pT=U(h2(),1),mT=U(pe(),1),fT=U(Uh(),1),zo=U(Ne(),1);var Eo=rt("customComponents",{"zh-CN":{notInstalled:"\u7EC4\u4EF6\u5C1A\u672A\u5B89\u88C5",notInstalledError:"\u7EC4\u4EF6\u5C1A\u672A\u5B89\u88C5\u3002",installRequired:"\u9700\u8981\u5B89\u88C5\u7EC4\u4EF6 {component}\u3002\u9875\u9762\u6570\u636E\u5DF2\u4FDD\u7559\u3002",installRequiredIntegrity:"\u9700\u8981\u5B89\u88C5\u7EC4\u4EF6 {component}\uFF08{integrity}\uFF09\u3002\u9875\u9762\u6570\u636E\u5DF2\u4FDD\u7559\u3002",ambiguousVersion:"\u7EC4\u4EF6 {component} \u6709\u591A\u4E2A\u4E0D\u540C\u5185\u5BB9\u7248\u672C\uFF0C\u8BF7\u6307\u5B9A\u5B8C\u6574\u6027\u6307\u7EB9\u3002",invalidJson:"JSON \u683C\u5F0F\u4E0D\u6B63\u786E\u3002",notJsonObject:"\u7EC4\u4EF6\u6570\u636E\u5FC5\u987B\u662F\u6709\u6548\u7684 JSON \u5BF9\u8C61\u3002",dataTooLarge:"\u7EC4\u4EF6\u6570\u636E\u8D85\u9650\u3002",dataChanged:"\u7EC4\u4EF6\u6570\u636E\u5DF2\u66F4\u65B0\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u7F16\u8F91\u540E\u518D\u4FEE\u6539\u3002",validationTimeout:"\u7EC4\u4EF6\u672A\u54CD\u5E94\u6570\u636E\u6821\u9A8C\uFF0C\u8BF7\u91CD\u65B0\u52A0\u8F7D\u7EC4\u4EF6\u540E\u518D\u8BD5\u3002",cannotDisplay:"\u7EC4\u4EF6\u65E0\u6CD5\u663E\u793A\u3002",viewportLockFailed:"\u65E0\u6CD5\u4FDD\u5B58\u9605\u8BFB\u9501\u72B6\u6001\uFF1A{error}",invalidProps:"\u6570\u636E\u4E0D\u7B26\u5408\u7EC4\u4EF6\u7684\u5C5E\u6027\u8981\u6C42\u3002",editData:"\u7F16\u8F91\u7EC4\u4EF6\u6570\u636E",data:"\u7EC4\u4EF6\u6570\u636E",propsJson:"\u7EC4\u4EF6\u5C5E\u6027 JSON",validating:"\u6821\u9A8C\u4E2D\u2026",apply:"\u5E94\u7528",inlineOnlyInConversation:"\u6B64\u8FD0\u884C\u65B9\u5F0F\u4EC5\u7528\u4E8E\u5BF9\u8BDD\u5185\u7684\u72EC\u7ACB\u9875\u9762\u3002",inlineUnavailable:"\u7EC4\u4EF6 {component} \u5C1A\u65E0\u5BF9\u8BDD\u5185\u8FD0\u884C\u7248\u672C\uFF0C\u8BF7\u4ECE\u6E90\u7801\u5BFC\u5165\u65B0\u7248\u672C\u540E\u91CD\u65B0\u5BFC\u51FA\u3002",inlineBlocked:"\u5BBF\u4E3B\u672A\u5141\u8BB8\u6B64\u7EC4\u4EF6\u8FD0\u884C\u3002","media.title":"\u672C\u673A\u6587\u4EF6","media.close":"\u5173\u95ED","media.loading":"\u6B63\u5728\u6253\u5F00\u2026","media.unsupported":"\u8FD9\u4E2A\u6587\u4EF6\u4E0D\u80FD\u5728 ShowAI \u91CC\u9884\u89C8\uFF0C\u53EF\u4EE5\u5728\u6587\u4EF6\u5939\u4E2D\u6253\u5F00\u3002","media.unavailable":"\u8FD9\u91CC\u4E0D\u80FD\u6253\u5F00\u672C\u673A\u6587\u4EF6\u3002\u8BF7\u5728 ShowAI \u684C\u9762\u7248\u6216\u672C\u673A\u6D4F\u89C8\u5668\u7248\u4E2D\u67E5\u770B\u3002","media.failed":"\u65E0\u6CD5\u6253\u5F00\u6587\u4EF6\uFF1A{error}","media.notFound":"\u627E\u4E0D\u5230\u8FD9\u4E2A\u6587\u4EF6\uFF0C\u53EF\u80FD\u5DF2\u7ECF\u79FB\u52A8\u6216\u5220\u9664\u3002","media.playFailed":"\u65E0\u6CD5\u64AD\u653E\u8FD9\u4E2A\u6587\u4EF6\uFF0C\u53EF\u80FD\u662F\u7F16\u7801\u683C\u5F0F\u4E0D\u53D7\u652F\u6301\u3002","media.copyPath":"\u590D\u5236\u4F4D\u7F6E","media.copied":"\u5DF2\u590D\u5236","media.reveal":"\u5728\u6587\u4EF6\u5939\u4E2D\u663E\u793A"},en:{notInstalled:"Component not installed",notInstalledError:"This component isn't installed.",installRequired:"Install component {component} to show this block. The page data is kept.",installRequiredIntegrity:"Install component {component} ({integrity}) to show this block. The page data is kept.",ambiguousVersion:"Component {component} has several versions with different content. Specify its integrity fingerprint.",invalidJson:"The JSON is malformed.",notJsonObject:"Component data must be a valid JSON object.",dataTooLarge:"The component data is too large.",dataChanged:"The component data has changed. Reopen the editor before making changes.",validationTimeout:"The component didn't respond to data validation. Reload the component and try again.",cannotDisplay:"This component can't be displayed.",viewportLockFailed:"Couldn't save the reading lock state: {error}",invalidProps:"The data doesn't match the component's property rules.",editData:"Edit component data",data:"Component data",propsJson:"Component properties JSON",validating:"Validating\u2026",apply:"Apply",inlineOnlyInConversation:"This mode only runs in standalone pages inside a conversation.",inlineUnavailable:"Component {component} has no in-conversation build yet. Import a new version from source and export again.",inlineBlocked:"The host didn't allow this component to run.","media.title":"Local file","media.close":"Close","media.loading":"Opening\u2026","media.unsupported":"ShowAI can't preview this file. Open it from its folder instead.","media.unavailable":"Local files can't be opened here. View this page in the ShowAI desktop app or local browser mode.","media.failed":"Couldn't open the file: {error}","media.notFound":"This file can't be found. It may have been moved or deleted.","media.playFailed":"Couldn't play this file. Its format may not be supported.","media.copyPath":"Copy location","media.copied":"Copied","media.reveal":"Show in folder"}});var eM=Object.freeze({modelBytes:8192,totalBytes:16384,labelChars:80,depth:20,perMessage:6});function q2(e,t={modelBytes:8192,totalBytes:16384,labelChars:80,depth:20}){let a=i=>!!i&&typeof i=="object"&&!Array.isArray(i)&&[Object.prototype,null].includes(Object.getPrototypeOf(i)),n=(i,l)=>l>t.depth?!1:i===null||["string","boolean"].includes(typeof i)?!0:typeof i=="number"?Number.isFinite(i):Array.isArray(i)?i.every(s=>n(s,l+1)):a(i)&&Object.entries(i).every(([s,c])=>!["__proto__","constructor","prototype"].includes(s)&&n(c,l+1)),o=i=>new TextEncoder().encode(JSON.stringify(i)).byteLength;if(!a(e))return"The snapshot must be an object.";let r=Object.keys(e).filter(i=>!["model","private","label"].includes(i));return r.length?`Unknown snapshot fields: ${r.join(", ")}.`:e.model===void 0||e.model===null?"model is required.":n(e.model,1)?e.private!==void 0&&!n(e.private,1)?"private must contain only JSON values.":e.label!==void 0&&(typeof e.label!="string"||!e.label.trim()||e.label.length>t.labelChars)?`label must be non-empty text of at most ${t.labelChars} characters.`:o(e.model)>t.modelBytes?`model exceeds ${t.modelBytes} bytes of JSON.`:o(e)>t.totalBytes?`The snapshot exceeds ${t.totalBytes} bytes of JSON.`:"":"model must contain only JSON values."}var L1=U(pe(),1),gT="showai:conversation-context",Vh=new Map;function F2({component:e,data:t,host:a,outline:n,onError:o}){let r=(0,zo.useRef)(null),i=(0,zo.useRef)(null),l=(0,zo.useRef)(t),[s,c]=(0,zo.useState)(""),d=ue(Eo);l.current=t;let u=(0,zo.useRef)(n);return u.current=n,(0,zo.useEffect)(()=>o?.(s),[s,o]),(0,zo.useEffect)(()=>{if(!r.current||!a.hasAttribute("data-showai-inline-root")||!a.contains(r.current)||window.showai){c(d("inlineOnlyInConversation"));return}if(!e.inline){c(d("inlineUnavailable",{component:`${e.id}@${e.version}`}));return}let p=r.current.shadowRoot??r.current.attachShadow({mode:"open"}),g=document.createElement("style");g.textContent=":host{display:block;font:14px/1.6 system-ui,sans-serif;color:inherit}*{box-sizing:border-box}button,input,select,textarea{font:inherit}.component-root{display:flow-root;overflow-wrap:anywhere}"+e.inline.styles.replace(/:root\b|(?<![\w-])(?:html|body)(?=\s*[{,])/g,":host");let y=document.createElement("div");y.className="component-root",p.replaceChildren(g,y);let b=Kl(p),x=globalThis,f=x.__SHOWAI_COMPONENT_HOST__,m=`__showai_mount_${crypto.randomUUID().replaceAll("-","")}`;x.__SHOWAI_COMPONENT_HOST__={react:dT,client:pT,dom:uT,jsx:mT,jsxDev:fT};let v=r.current.closest("[data-block-id],[data-surface-id]"),T=v?.dataset.blockId??v?.dataset.surfaceId,w=!!T&&!!a.closest("[data-showai-conversation]"),E=H=>{let S=q2(H);if(S)throw new Error(`onContext: ${S}`);if(navigator.userActivation&&!navigator.userActivation.isActive)return!1;let k=JSON.parse(JSON.stringify(H));return Vh.set(T,k),r.current?.dispatchEvent(new CustomEvent(gT,{bubbles:!0,composed:!0,detail:{blockId:T,componentId:e.id,name:e.name,snapshot:k}})),!0};x[m]=H=>{i.current=H.mount(y,{data:l.current,outline:u.current,onError:c,...w?{onContext:E,context:Vh.get(T)}:{}})};let L=document.createElement("script");L.textContent=`(()=>{${e.inline.script}
|
|
23
|
-
globalThis[${JSON.stringify(m)}](ShowAIInlineComponent);})();`;try{a.appendChild(L),i.current||c(d("inlineBlocked"))}finally{L.remove(),delete x[m],f===void 0?delete x.__SHOWAI_COMPONENT_HOST__:x.__SHOWAI_COMPONENT_HOST__=f}return()=>{b();let H=i.current;i.current=null,queueMicrotask(()=>H?.destroy())}},[e.integrity,a]),(0,zo.useEffect)(()=>i.current?.update(t,n),[t,n]),(0,L1.jsxs)("section",{"aria-label":e.name,style:{margin:"18px 0"},children:[(0,L1.jsx)("div",{ref:r}),s&&(0,L1.jsx)("p",{role:"alert",className:"custom-props-error",children:s})]})}var bT=vt(Eo),Zh=(e,t,a)=>`${e}@${t}#${a}`;function Gh(e){let t=new Map;for(let a of e){let n=Zh(a.id,a.version,a.integrity),o=t.get(n);if(o&&(o.html!==a.html||JSON.stringify(o.schema)!==JSON.stringify(a.schema)||JSON.stringify(o.inline)!==JSON.stringify(a.inline)))throw new Error(`Conflicting component payloads claim the same fingerprint: ${n}.`);o||t.set(n,a)}return t}function $h(e,t){if(t.integrity)return e.get(Zh(t.componentId,t.version,t.integrity));let a=[...e.values()].filter(n=>n.id===t.componentId&&n.version===t.version&&(!t.scope||n.scope===t.scope));if(a.length>1)throw new Error(bT("ambiguousVersion",{component:`${t.componentId}@${t.version}`}));return a[0]}function hT(e){if(!(typeof e!="string"||e.length>8192))return Fn(e)}function qh(e){document.addEventListener("click",t=>{if(!t.isTrusted||t.defaultPrevented||t.button!==0)return;let a=t.composedPath().find(o=>o instanceof HTMLAnchorElement&&o.hasAttribute("href"));if(!a||a.hasAttribute("download"))return;let n=a.getAttribute("href")??"";if(/^file:/i.test(n)){t.preventDefault(),parent.postMessage({channel:e,type:"showai:open-media",url:n},"*");return}/^https?:\/\//i.test(n)&&(t.preventDefault(),parent.postMessage({channel:e,type:"showai:open-url",url:n},"*"))})}function Fh(e){let t=hT(e);if(!t||navigator.userActivation?.isActive!==!0)return!1;let a=document.createElement("a");return a.href=t,a.target="_blank",a.rel="noopener noreferrer",a.referrerPolicy="no-referrer",a.click(),!0}var Nr=U(Ne(),1),Jh=U(h2(),1);var yT="showai-media";function Wh(e){return typeof e=="string"&&e.length<=4096&&/^file:/i.test(e)}function Kh(e){return window.__SHOWAI_LOCAL__?`/api/media/${e}`:`${yT}://media/${e}`}ct(`.showai-custom-block{position:relative}.custom-props-trigger{position:absolute;right:8px;top:-13px;z-index:2;width:28px;height:26px;display:grid;place-items:center;padding:0;border:1px solid var(--border, #dfe6df);border-radius:6px;color:var(--text-secondary, #657465);background:var(--surface, #fff);cursor:pointer;opacity:0;transition:opacity .12s ease}.showai-custom-block:hover>.custom-props-trigger,.showai-custom-block:focus-within>.custom-props-trigger{opacity:1}.custom-props-trigger:focus-visible{outline:2px solid var(--accent, #547c63);outline-offset:3px}.custom-props-editor{padding:14px;margin-bottom:12px;border:1px solid var(--border, #dfe6df);border-radius:9px;background:var(--surface, #fff);color:var(--text, #292d29);font:13px/1.5 system-ui,sans-serif}.custom-props-editor>label{display:block;font-weight:600;margin-bottom:8px}.custom-props-editor textarea{display:block;width:100%;resize:vertical;min-height:110px;max-height:400px;padding:10px;border:1px solid var(--border, #dfe6df);border-radius:6px;background:var(--bg, #fff);color:inherit;font:12px/1.65 ui-monospace,monospace}.custom-props-error{color:#ae3c3c;margin:9px 0 0;font-size:12px;overflow-wrap:anywhere}.custom-props-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.custom-props-actions button{padding:5px 12px;border:1px solid var(--border, #dfe6df);border-radius:6px;font:inherit;color:inherit;background:transparent;cursor:pointer}.custom-props-actions button:last-child{color:#fff;background:var(--accent, #547c63);border-color:transparent}.custom-props-actions button:disabled{opacity:.5;cursor:default}@media(hover:none){.custom-props-trigger{opacity:1}}@media print{.custom-props-trigger,.custom-props-editor{display:none!important}}@media(prefers-reduced-motion:reduce){.custom-props-trigger{transition:none}}.showai-local-media{position:fixed;inset:0;z-index:500;display:flex;align-items:center;justify-content:center;padding:50px 65px;background:#101611f2;backdrop-filter:blur(12px);color:#f1f5ee;font:13px/1.5 Avenir Next,PingFang SC,system-ui,sans-serif}.showai-local-media figure{margin:0;min-width:0;max-width:100%;max-height:100%;display:flex;flex-direction:column;align-items:center}.showai-local-media video,.showai-local-media img{max-width:100%;max-height:calc(100dvh - 190px);object-fit:contain;display:block;background:#000;border-radius:6px}.showai-local-media audio{width:min(560px,80vw)}.showai-local-media figcaption{font-size:12px;line-height:1.8;text-align:center;padding:15px 0 0;overflow-wrap:anywhere}.showai-local-media figcaption>span{display:block;color:#a8b2a7;font-size:10px;padding-top:5px}.showai-local-media-close{position:absolute;top:20px;right:22px;width:39px;height:39px;display:flex;align-items:center;justify-content:center;border:1px solid #ffffff15;border-radius:50%;background:#ffffff0b;color:#f1f5ee;cursor:pointer}.showai-local-media-close:hover{background:#ffffff20}.showai-local-media-note{margin:0 0 12px;font-size:14px;text-align:center}.showai-local-media-path{user-select:all;font-family:ui-monospace,Menlo,monospace}.showai-local-media figcaption>.showai-local-media-actions{display:flex;justify-content:center;gap:8px;padding-top:10px}.showai-local-media-actions>button{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border:1px solid #ffffff26;border-radius:999px;background:#ffffff0f;color:#f1f5ee;font:inherit;font-size:12px;cursor:pointer}.showai-local-media-actions>button:hover{background:#ffffff20}.showai-local-media-close:focus-visible,.showai-local-media-actions>button:focus-visible{outline:2px solid #b8ceba;outline-offset:3px}@media(prefers-reduced-motion:reduce){.showai-local-media{backdrop-filter:none}}
|
|
24
|
-
`);var aa=U(pe(),1),W2=null;function Xh(e){if(!Wh(e)||navigator.userActivation?.isActive!==!0)return!1;W2?.();let t=document.createElement("div");document.body.append(t);let a=(0,Jh.createRoot)(t),n=()=>{W2===n&&(W2=null,a.unmount(),t.remove())};return W2=n,a.render((0,aa.jsx)(vT,{link:e,onClose:n})),!0}function vT({link:e,onClose:t}){let a=vt(Eo),[n,o]=(0,Nr.useState)({status:"loading"}),[r,i]=(0,Nr.useState)(!1),[l,s]=(0,Nr.useState)(""),[c,d]=(0,Nr.useState)(!1),u=(0,Nr.useRef)(null),p=window.showai;(0,Nr.useEffect)(()=>{let f=document.activeElement;return u.current?.focus(),p?p.invoke("media:open",{path:e}).then(m=>o({status:"ready",grant:m})).catch(m=>o({status:"error",message:m?.code==="NOT_FOUND"?a("media.notFound"):a("media.failed",{error:Yh(m)})})):o({status:"error",message:a("media.unavailable")}),()=>f?.focus({preventScroll:!0})},[]);let g=n.status==="ready"?n.grant:void 0,y=g?.path??xT(e),b=async()=>{try{await navigator.clipboard.writeText(y)}catch{await p?.invoke("clipboard:write",{text:y})}i(!0)},x=g?.kind?Kh(g.token):void 0;return(0,aa.jsxs)("div",{className:"showai-local-media",role:"dialog","aria-modal":"true","aria-label":g?.name??a("media.title"),onClick:f=>{f.target===f.currentTarget&&t()},onKeyDown:f=>{if(f.key==="Escape"&&(f.stopPropagation(),t()),f.key==="Tab"){let m=Array.from(f.currentTarget.querySelectorAll("button,video,audio")),v=m[0],T=m.at(-1);f.shiftKey&&document.activeElement===v&&(f.preventDefault(),T?.focus()),!f.shiftKey&&document.activeElement===T&&(f.preventDefault(),v?.focus())}},children:[(0,aa.jsx)("button",{ref:u,type:"button",className:"showai-local-media-close","aria-label":a("media.close"),onClick:t,children:(0,aa.jsx)(on,{size:24})}),(0,aa.jsxs)("figure",{children:[n.status==="loading"&&(0,aa.jsx)("p",{className:"showai-local-media-note",children:a("media.loading")}),n.status==="error"&&(0,aa.jsx)("p",{className:"showai-local-media-note",role:"alert",children:n.message}),g&&!g.kind&&(0,aa.jsx)("p",{className:"showai-local-media-note",children:a("media.unsupported")}),x&&c&&(0,aa.jsx)("p",{className:"showai-local-media-note",role:"alert",children:a("media.playFailed")}),x&&g?.kind==="video"&&!c&&(0,aa.jsx)("video",{src:x,controls:!0,autoPlay:!0,playsInline:!0,onError:()=>d(!0)}),x&&g?.kind==="audio"&&!c&&(0,aa.jsx)("audio",{src:x,controls:!0,autoPlay:!0,onError:()=>d(!0)}),x&&g?.kind==="image"&&!c&&(0,aa.jsx)("img",{src:x,alt:g.name,onError:()=>d(!0)}),(0,aa.jsxs)("figcaption",{children:[g?.name??y.split("/").at(-1),(0,aa.jsx)("span",{className:"showai-local-media-path",children:y}),(0,aa.jsxs)("span",{className:"showai-local-media-actions",children:[(0,aa.jsxs)("button",{type:"button",onClick:()=>{b()},children:[(0,aa.jsx)(Q1,{size:13}),a(r?"media.copied":"media.copyPath")]}),g&&p&&(0,aa.jsxs)("button",{type:"button",onClick:()=>{p.invoke("media:reveal",{token:g.token}).catch(f=>s(a("media.failed",{error:Yh(f)})))},children:[(0,aa.jsx)(t0,{size:13}),a("media.reveal")]})]}),l&&(0,aa.jsx)("span",{role:"alert",children:l})]})]})]})}function xT(e){let t=e.replace(/^file:(\/\/(localhost)?)?/i,"");try{return decodeURIComponent(t)}catch{return t}}function Yh(e){let t=e?.message;return typeof t=="string"?t:String(e)}function Qh(e){let t=!0,a=window.requestAnimationFrame.bind(window),n=window.cancelAnimationFrame.bind(window),o=window.setInterval.bind(window),r=new Map,i=l=>{let s=r.get(l);s&&(s.native=a(c=>{s.native=null,t&&(r.delete(l),s.callback(c))}))};window.requestAnimationFrame=l=>{let s=0,c=a(d=>{let u=r.get(s);u&&(u.native=null,t&&(r.delete(s),l(d)))});return s=c,r.set(s,{callback:l,native:t?c:null}),t||n(c),s},window.cancelAnimationFrame=l=>{let s=r.get(l);s?.native!==null&&s?.native!==void 0?n(s.native):n(l),r.delete(l)},window.setInterval=((l,s,...c)=>typeof l=="function"?o(()=>{t&&l.apply(window,c)},s):o(l,s,...c)),window.addEventListener("message",l=>{if(!(l.source!==window.parent||l.data?.channel!==e||l.data?.type!=="showai:activity"||typeof l.data.active!="boolean")&&t!==l.data.active){t=l.data.active;for(let[s,c]of r)!t&&c.native!==null?(n(c.native),c.native=null):t&&c.native===null&&i(s)}})}var Xa=rt("common",{"zh-CN":{cancel:"\u53D6\u6D88",close:"\u5173\u95ED",confirm:"\u786E\u8BA4",save:"\u4FDD\u5B58",delete:"\u5220\u9664",remove:"\u79FB\u9664",rename:"\u91CD\u547D\u540D",edit:"\u7F16\u8F91",done:"\u5B8C\u6210",retry:"\u91CD\u8BD5",open:"\u6253\u5F00",copy:"\u590D\u5236",copied:"\u5DF2\u590D\u5236",create:"\u521B\u5EFA",add:"\u6DFB\u52A0",back:"\u8FD4\u56DE",next:"\u4E0B\u4E00\u6B65",continue:"\u7EE7\u7EED",search:"\u641C\u7D22",loading:"\u6B63\u5728\u52A0\u8F7D\u2026",opening:"\u6B63\u5728\u6253\u5F00\u2026",reading:"\u6B63\u5728\u8BFB\u53D6\u2026",saving:"\u6B63\u5728\u4FDD\u5B58\u2026",saved:"\u5DF2\u4FDD\u5B58",untitled:"\u65E0\u6807\u9898",untitledPage:"\u672A\u547D\u540D\u9875\u9762",more:"\u66F4\u591A",options:"\u9009\u9879",settings:"\u8BBE\u7F6E",refresh:"\u5237\u65B0",import:"\u5BFC\u5165",export:"\u5BFC\u51FA",preview:"\u9884\u89C8",details:"\u8BE6\u60C5",unknownError:"\u672A\u77E5\u9519\u8BEF",lightAppearance:"\u6D45\u8272\u5916\u89C2",darkAppearance:"\u6DF1\u8272\u5916\u89C2",pageOptions:"\u9875\u9762\u9009\u9879",downloadSource:"\u4E0B\u8F7D\u6E90\u6587\u4EF6",print:"\u6253\u5370",dismissNotice:"\u5173\u95ED\u63D0\u793A"},en:{cancel:"Cancel",close:"Close",confirm:"Confirm",save:"Save",delete:"Delete",remove:"Remove",rename:"Rename",edit:"Edit",done:"Done",retry:"Retry",open:"Open",copy:"Copy",copied:"Copied",create:"Create",add:"Add",back:"Back",next:"Next",continue:"Continue",search:"Search",loading:"Loading\u2026",opening:"Opening\u2026",reading:"Reading\u2026",saving:"Saving\u2026",saved:"Saved",untitled:"Untitled",untitledPage:"Untitled page",more:"More",options:"Options",settings:"Settings",refresh:"Refresh",import:"Import",export:"Export",preview:"Preview",details:"Details",unknownError:"Unknown error",lightAppearance:"Light appearance",darkAppearance:"Dark appearance",pageOptions:"Page options",downloadSource:"Download source file",print:"Print",dismissNotice:"Dismiss notice"}});var ey=U(Ne(),1),ec=(0,ey.createContext)(null);var qt=U(pe(),1),K2=(0,ot.createContext)(new Map),Y2=(0,ot.createContext)(null),ay=()=>(0,ot.useContext)(Y2);function Fm({components:e,children:t,inlineHost:a=null}){let n=(0,ot.useMemo)(()=>Gh(e),[e]);return(0,qt.jsx)(K2.Provider,{value:n,children:(0,qt.jsx)(Y2.Provider,{value:a,children:t})})}function tc(){let e=(0,ot.useContext)(K2);return(0,ot.useMemo)(()=>[...e.values()],[e])}function ny({components:e,children:t}){let a=(0,ot.useContext)(K2),n=(0,ot.useContext)(Y2),o=(0,ot.useMemo)(()=>[...a.values(),...e],[a,e]);return(0,qt.jsx)(Fm,{components:o,inlineHost:n,children:t})}function yl(e){return JSON.stringify(e).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function ty(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;let t=(a,n=0)=>n>40?!1:a===null||typeof a=="boolean"||typeof a=="string"?!0:typeof a=="number"?Number.isFinite(a):Array.isArray(a)?a.every(o=>t(o,n+1)):!!a&&typeof a=="object"&&Object.getPrototypeOf(a)===Object.prototype&&Object.entries(a).every(([o,r])=>!["__proto__","constructor","prototype"].includes(o)&&t(r,n+1));return t(e)}function oy({data:e,onChange:t,readOnly:a}){let n=Ai(e),o=(0,ot.useContext)(K2),r=(0,ot.useContext)(Y2),i=$h(o,n),l=ue(Eo),s=`${n.componentId}@${n.version}`;return i&&r?(0,qt.jsx)(F2,{component:i,data:n.props,host:r},i.integrity):i?(0,qt.jsx)(wT,{component:i,data:e,onChange:t,readOnly:a},i.integrity):(0,qt.jsx)("section",{className:"sb-block sb-unavailable","aria-label":l("notInstalled"),children:(0,qt.jsxs)("div",{style:{padding:18},children:[(0,qt.jsx)("strong",{children:n.componentId}),(0,qt.jsx)("p",{children:n.integrity?l("installRequiredIntegrity",{component:s,integrity:n.integrity.slice(7,19)}):l("installRequired",{component:s})})]})})}function wT({component:e,data:t,onChange:a,readOnly:n}){let o=Ai(t),r=(0,ot.useRef)(null),i=Z2(),l=ue(Eo),s=ue(Xa),c=$l(),d=(0,ot.useRef)(i),[u]=(0,ot.useState)(()=>crypto.randomUUID());y6(r,u);let[p,g]=(0,ot.useState)(180),[y,b]=(0,ot.useState)(""),[x,f]=(0,ot.useState)(!1),[m,v]=(0,ot.useState)(""),[T,w]=(0,ot.useState)(""),[E,L]=(0,ot.useState)(!1),H=(0,ot.useRef)(""),S=(0,ot.useRef)(null),k=(0,ot.useRef)(null),M=(0,ot.useContext)(ec),O=(0,ot.useRef)({data:t,parsed:o,onChange:a,readOnly:n,assistant:M}),C=(0,ot.useRef)({props:o.props,readOnly:!!n||!a});O.current={data:t,parsed:o,onChange:a,readOnly:n,assistant:M};let N=()=>{let j=r.current?.closest("[data-block-id],[data-surface-id]");return j?.dataset.blockId??j?.dataset.surfaceId},z=!!a&&!n,A=()=>{k.current&&window.clearTimeout(k.current.timeout),k.current=null,L(!1)},q=()=>{A(),f(!1),requestAnimationFrame(()=>S.current?.focus())},P=()=>{H.current=JSON.stringify(O.current.parsed.props),v(JSON.stringify(O.current.parsed.props,null,2)),w(""),f(!0)},Z=()=>{let j;try{j=JSON.parse(m)}catch($){w($ instanceof Error?$.message:l("invalidJson"));return}if(!ty(j)){w(l("notJsonObject"));return}try{bo(j,"Component instance data",Lt.componentPropsBytes)}catch($){w($ instanceof Error?$.message:l("dataTooLarge"));return}if(JSON.stringify(O.current.parsed.props)!==H.current){w(l("dataChanged"));return}A(),w("");let K=crypto.randomUUID(),_=window.setTimeout(()=>{k.current=null,L(!1),w(l("validationTimeout"))},5e3);k.current={id:K,props:j,timeout:_},L(!0),r.current?.contentWindow?.postMessage({channel:u,type:"showai:validate",requestId:K,props:j},"*")},F=(0,ot.useMemo)(()=>`<!doctype html><meta http-equiv="Content-Security-Policy" content="${Js}">`+Qs(e.html,`<style>body{color:var(--text)}</style><script>document.documentElement.lang=document.documentElement.dataset.showaiLocale=${yl(c)};(${Qh.toString()})(${yl(u)});(${G2.toString()})(${yl(u)},${yl(d.current)},${yl(Xs())});<\/script><script id="showai-component-data" type="application/json">${yl({channel:u,...C.current})}<\/script>`)+`<script>${g6(u)}(${Kl.toString()})(document);(${qh.toString()})(${yl(u)});<\/script>`,[e.html,u,c]),ee=()=>{let j=O.current;r.current?.contentWindow?.postMessage({channel:u,type:"showai:props",props:j.parsed.props,readOnly:!!j.readOnly||!j.onChange,context:!!j.assistant&&!!N()},"*")};return(0,ot.useEffect)(()=>{let j=r.current,K=()=>j?.contentWindow?.postMessage({channel:u,type:"showai:activity",active:!0},"*");return K(),j?.addEventListener("load",K),()=>{j?.removeEventListener("load",K),j?.contentWindow?.postMessage({channel:u,type:"showai:activity",active:!1},"*")}},[u]),(0,ot.useEffect)(()=>{let j=K=>{if(K.source!==r.current?.contentWindow||!K.data||K.data.channel!==u)return;if(K.data.type==="showai:ready"){ee();let D=N(),V=D?O.current.assistant?.pendingComponentContext(D):void 0;V&&r.current?.contentWindow?.postMessage({channel:u,type:"showai:context-restore",snapshot:V},"*")}if(K.data.type==="showai:context"){let D=K.data.snapshot,V=N();if(!V||q2(D))return;O.current.assistant?.componentContext({...D,blockId:V,componentId:O.current.parsed.componentId,name:e.name});return}if(K.data.type==="showai:open-url"){let D=new CustomEvent("showai:component-link",{bubbles:!0,cancelable:!0,detail:{url:K.data.url}});r.current?.dispatchEvent(D)!==!1&&Fh(K.data.url);return}if(K.data.type==="showai:open-media"){Xh(K.data.url);return}if(K.data.type==="showai:height"&&typeof K.data.height=="number"&&Number.isFinite(K.data.height)&&g(Math.min(4e3,Math.max(48,Math.ceil(K.data.height)))),K.data.type==="showai:error"&&b(String(K.data.message||l("cannotDisplay")).slice(0,500)),K.data.type==="showai:valid"&&b(""),["showai:viewport-lock-get","showai:viewport-lock-set"].includes(K.data.type)&&typeof K.data.scope=="string"&&/^[a-z0-9-]+:\d{1,4}$/.test(K.data.scope)){let D=K.data.scope,V=w6(r.current,D),B=!0,de="";try{K.data.type==="showai:viewport-lock-set"&&typeof K.data.locked=="boolean"&&S6(V,K.data.locked),B=k6(V)}catch(he){de=l("viewportLockFailed",{error:String(he)})}r.current?.contentWindow?.postMessage({channel:u,type:"showai:viewport-lock-state",scope:D,locked:B,error:de},"*")}if(K.data.type==="showai:reading-wheel"&&[K.data.deltaX,K.data.deltaY,K.data.deltaMode].every(Number.isFinite)){let D=r.current,V=new WheelEvent("wheel",{bubbles:!0,cancelable:!0,deltaX:K.data.deltaX,deltaY:K.data.deltaY,deltaMode:K.data.deltaMode,ctrlKey:K.data.ctrlKey===!0,metaKey:K.data.metaKey===!0,shiftKey:K.data.shiftKey===!0});if(D.dispatchEvent(V)&&!V.ctrlKey&&!V.metaKey){let B=V.deltaY*(V.deltaMode===1?16:V.deltaMode===2?D.clientHeight:1);for(let de=D.parentElement;de&&B;de=de.parentElement){if(!/auto|scroll/.test(getComputedStyle(de).overflowY))continue;let he=de.scrollTop;de.scrollTop+=B,B-=de.scrollTop-he}}}let _=O.current,$=k.current;if(K.data.type==="showai:validation"&&$&&$.id===K.data.requestId&&(A(),K.data.valid!==!0?w(String(K.data.message||l("invalidProps")).slice(0,1e3)):JSON.stringify(_.parsed.props)!==H.current?w(l("dataChanged")):!_.readOnly&&_.onChange&&(_.onChange({..._.data,props:$.props}),q())),K.data.type==="showai:change"&&!_.readOnly&&_.onChange&&ty(K.data.props)){try{bo(K.data.props,"Component instance data",Lt.componentPropsBytes)}catch(D){w(D instanceof Error?D.message:l("dataTooLarge"));return}_.onChange({..._.data,props:K.data.props})}};return window.addEventListener("message",j),()=>{window.removeEventListener("message",j),k.current&&window.clearTimeout(k.current.timeout)}},[u]),(0,ot.useEffect)(ee,[o.props,n,z,u,!!M]),(0,ot.useEffect)(()=>{let j=()=>r.current?.contentWindow?.postMessage({channel:u,type:"showai:theme",theme:i,tokens:Xs()},"*"),K=r.current;return K?.addEventListener("load",j),j(),()=>K?.removeEventListener("load",j)},[i,u]),(0,qt.jsxs)("section",{className:"showai-custom-block","aria-label":e.name,style:{margin:"18px 0"},children:[z&&!x&&(0,qt.jsx)("button",{ref:S,type:"button",className:"custom-props-trigger","aria-label":l("editData"),title:l("editData"),onClick:P,children:(0,qt.jsx)(Rl,{size:15})}),z&&x&&(0,qt.jsxs)("div",{className:"custom-props-editor",onKeyDown:j=>{j.key==="Escape"&&(j.stopPropagation(),q())},children:[(0,qt.jsx)("label",{htmlFor:`${u}-props`,children:l("data")}),(0,qt.jsx)("textarea",{id:`${u}-props`,"aria-label":l("propsJson"),value:m,spellCheck:!1,rows:Math.max(5,Math.min(14,m.split(`
|
|
25
|
-
`).length)),autoFocus:!0,onChange:j=>{v(j.target.value),w("")},disabled:E}),T&&(0,qt.jsx)("p",{role:"alert",className:"custom-props-error",children:T}),(0,qt.jsxs)("div",{className:"custom-props-actions",children:[(0,qt.jsx)("button",{type:"button",onClick:q,children:s("cancel")}),(0,qt.jsx)("button",{type:"button",disabled:E,onClick:Z,children:l(E?"validating":"apply")})]})]}),!x&&T&&(0,qt.jsx)("p",{role:"alert",className:"custom-props-error",children:T}),(0,qt.jsx)("iframe",{ref:r,title:e.name,srcDoc:F,sandbox:"allow-scripts allow-forms allow-downloads",referrerPolicy:"no-referrer",onLoad:ee,allow:"camera 'none'; microphone 'none'; geolocation 'none'; clipboard-read 'none'; clipboard-write 'none'",style:{width:"100%",height:p,border:0,display:"block",background:"transparent"}}),y&&(0,qt.jsx)("p",{role:"alert",style:{color:"#ae3c3c",fontSize:12},children:y})]})}var or=rt("pageOutline",{"zh-CN":{entryTitle:"\u663E\u793A\u540D\u79F0",entryTarget:"\u8DF3\u8F6C\u76EE\u6807",group:"\u65B0\u5206\u7EC4",missingTarget:"\u76EE\u6807\u5DF2\u5220\u9664",up:"\u4E0A\u79FB",down:"\u4E0B\u79FB",indent:"\u964D\u4F4E\u5C42\u7EA7",outdent:"\u63D0\u5347\u5C42\u7EA7",removeEntry:"\u79FB\u9664\u6761\u76EE",addEntry:"\u6DFB\u52A0\u76EE\u5F55\u6761\u76EE",title:"\u672C\u9875\u76EE\u5F55",settings:"\u76EE\u5F55\u8BBE\u7F6E",enable:"\u542F\u7528\u672C\u9875\u76EE\u5F55",expand:"\u5C55\u5F00\u76EE\u5F55",collapse:"\u6536\u8D77\u76EE\u5F55",pin:"\u56FA\u5B9A\u76EE\u5F55",unpin:"\u53D6\u6D88\u56FA\u5B9A",close:"\u5173\u95ED",apply:"\u5E94\u7528",renderer:"\u76EE\u5F55\u7EC4\u4EF6",builtin:"\u9605\u8BFB\u7D22\u5F15\uFF08\u5185\u7F6E\uFF09",loading:"\u6B63\u5728\u52A0\u8F7D\u76EE\u5F55\u7EC4\u4EF6\u2026",unavailable:"\u76EE\u5F55\u7EC4\u4EF6\u4E0D\u53EF\u7528\uFF0C\u5DF2\u663E\u793A\u57FA\u7840\u76EE\u5F55\u3002",empty:"\u6DFB\u52A0\u6B63\u6587\u6807\u9898\u6216\u76EE\u5F55\u6761\u76EE\u540E\u5373\u53EF\u5BFC\u822A\u3002",source:"\u76EE\u5F55\u5185\u5BB9",headings:"\u6B63\u6587\u6807\u9898",manual:"\u624B\u52A8\u76EE\u5F55",depth:"\u6536\u5F55\u6807\u9898\u6DF1\u5EA6",config:"\u7ED3\u6784\u914D\u7F6E\uFF08JSON\uFF09",props:"\u7EC4\u4EF6\u53C2\u6570\uFF08JSON\uFF09",initial:"\u521D\u59CB\u72B6\u6001",auto:"\u81EA\u52A8",expanded:"\u5C55\u5F00",collapsed:"\u6536\u8D77",placement:"\u76EE\u5F55\u4F4D\u7F6E",floating:"\u6D6E\u52A8",docked:"\u56FA\u5B9A\u4FA7\u680F",width:"\u76EE\u5F55\u5BBD\u5EA6\uFF08px\uFF09",missing:"\u6709 {count} \u4E2A\u76EE\u6807\u5DF2\u5931\u6548\uFF0C\u8BF7\u4FEE\u6539\u624B\u52A8\u76EE\u5F55\u3002",remove:"\u79FB\u9664\u76EE\u5F55\u914D\u7F6E",invalidJson:"\u8BF7\u8F93\u5165\u6709\u6548\u7684 JSON\u3002",errorChanged:"\u9875\u9762\u76EE\u5F55\u5DF2\u88AB\u4FEE\u6539\uFF0C\u8BF7\u91CD\u65B0\u6253\u5F00\u8BBE\u7F6E\u3002",rendererChanged:"\u8BF7\u5148\u5E94\u7528\u5F53\u524D\u7EC4\u4EF6\u9009\u62E9\uFF0C\u518D\u4FEE\u6539\u7EC4\u4EF6\u53C2\u6570\u3002",manualHint:"\u6761\u76EE\u4F7F\u7528 id\u3001title\u3001nodeId\u3001children\uFF1B\u5206\u7EC4\u53EF\u7701\u7565 nodeId\u3002",headingsHint:"\u4EE5\u6807\u9898\u8282\u70B9 ID \u4E3A\u952E\u8BBE\u7F6E title \u6216 hidden\u3002",sourceCode:"\u76EE\u5F55\u7EC4\u4EF6\u53EF\u5728\u7EC4\u4EF6\u5E93\u7684\u201C\u9875\u9762\u76EE\u5F55\u201D\u5206\u7C7B\u4E2D\u7F16\u8F91\u3002",rendererError:"\u76EE\u5F55\u7EC4\u4EF6\uFF1A{error}",errorMissingTarget:"\u76EE\u6807\u4E0D\u5B58\u5728\u6216\u4E0D\u5C5E\u4E8E\u5F53\u524D Page\u3002"},en:{entryTitle:"Display title",entryTarget:"Navigation target",group:"New group",missingTarget:"Target removed",up:"Move up",down:"Move down",indent:"Indent",outdent:"Outdent",removeEntry:"Remove entry",addEntry:"Add outline entry",title:"On this page",settings:"Outline settings",enable:"Enable page outline",expand:"Expand outline",collapse:"Collapse outline",pin:"Pin outline",unpin:"Unpin outline",close:"Close",apply:"Apply",renderer:"Outline component",builtin:"Reading index (built in)",loading:"Loading outline component\u2026",unavailable:"Outline component unavailable. Showing the basic outline.",empty:"Add headings or outline entries to start navigating.",source:"Outline content",headings:"Page headings",manual:"Manual outline",depth:"Heading depth",config:"Structure configuration (JSON)",props:"Component parameters (JSON)",initial:"Initial state",auto:"Automatic",expanded:"Expanded",collapsed:"Collapsed",placement:"Placement",floating:"Floating",docked:"Docked sidebar",width:"Outline width (px)",missing:"{count} targets are unavailable. Update the manual outline.",remove:"Remove outline configuration",invalidJson:"Enter valid JSON.",errorChanged:"The outline has changed. Reopen settings.",rendererChanged:"Apply the component selection before editing its parameters.",manualHint:"Entries use id, title, nodeId and children. Groups may omit nodeId.",headingsHint:"Use heading node IDs as keys with title or hidden overrides.",sourceCode:"Edit outline components in the Page outlines category of the component library.",rendererError:"Outline component: {error}",errorMissingTarget:"Target is missing or outside this Page."}});var co=U(Ne(),1);var P1=U(pe(),1),R1=e=>JSON.stringify(e).replace(/</g,"\\u003c").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029");function ry({component:e,contract:t,onError:a}){let n=ay();return(0,P1.jsx)(Wm,{onError:a,children:n?(0,P1.jsx)(F2,{component:e,data:t.props,outline:t,host:n,onError:a}):(0,P1.jsx)(kT,{component:e,contract:t,onError:a})})}var Wm=class extends co.Component{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(t){this.props.onError(String(t?.message??t??"Outline renderer failed.").slice(0,500))}render(){return this.state.failed?null:this.props.children}};function kT({component:e,contract:t,onError:a}){let n=(0,co.useRef)(null),[o]=(0,co.useState)(()=>crypto.randomUUID()),r=(0,co.useRef)({contract:t,onError:a});r.current={contract:t,onError:a};let i=(0,co.useMemo)(()=>`<!doctype html><meta http-equiv="Content-Security-Policy" content="${Js}">`+Qs(e.html,`<script>(${G2.toString()})(${R1(o)},${R1(t.outline.theme)},${R1(Xs())});window.addEventListener('keydown',event=>{if(event.key==='Escape'){event.preventDefault();parent.postMessage({channel:${R1(o)},type:'showai:outline-action',action:'collapse'},'*');}},true);<\/script><script id="showai-component-data" type="application/json">${R1({channel:o,props:t.props,readOnly:!0,outline:t.outline})}<\/script>`),[e.html,o]),l=()=>{let s=r.current.contract;n.current?.contentWindow?.postMessage({channel:o,type:"showai:props",props:s.props,readOnly:!0},"*"),n.current?.contentWindow?.postMessage({channel:o,type:"showai:outline",outline:s.outline},"*"),n.current?.contentWindow?.postMessage({channel:o,type:"showai:theme",theme:s.outline.theme,tokens:Xs()},"*")};return(0,co.useEffect)(()=>{let s=window.setTimeout(()=>r.current.onError("Outline component did not become ready."),8e3),c=d=>{if(d.source!==n.current?.contentWindow||d.data?.channel!==o)return;let u=d.data,p=r.current.contract;u.type==="showai:ready"&&(clearTimeout(s),l()),u.type==="showai:error"&&r.current.onError(String(u.message).slice(0,500)),u.type==="showai:outline-action"&&(u.action==="collapse"&&p.collapse(),u.action==="navigate"&&typeof u.itemId=="string"&&p.navigate(u.itemId),u.action==="branch"&&typeof u.itemId=="string"&&typeof u.expanded=="boolean"&&p.setBranchExpanded(u.itemId,u.expanded))};return window.addEventListener("message",c),()=>{clearTimeout(s),window.removeEventListener("message",c)}},[o]),(0,co.useEffect)(l,[t,o]),(0,P1.jsx)("iframe",{ref:n,className:"page-outline-frame",title:e.name,sandbox:"allow-scripts",srcDoc:i,onLoad:l})}ct(`.page-outline-shell{position:relative;height:100%;min-height:0}.page-outline-shell[data-outline-docked=true]>.container-page{width:calc(100% - var(--page-outline-width) - 24px)}.page-outline-panel{position:absolute;inset:var(--page-outline-top, 16px) 12px 16px auto;z-index:35;display:flex;flex-direction:column;max-width:calc(100% - 24px);border-radius:9px;background:var(--paper, var(--bg));color:var(--text);overflow:hidden}.page-outline-panel[hidden],.page-outline-rail[hidden]{display:none}.page-outline-panel[data-placement=floating],.page-outline-panel[data-placement=drawer]{border:1px solid var(--line);box-shadow:0 8px 32px #00000020}.page-outline-panel[data-placement=docked]{border-left:1px solid var(--line);border-radius:0}.page-outline-panel>header{display:flex;align-items:center;gap:3px;flex-shrink:0;padding:9px 8px 12px}.page-outline-panel>header strong{flex:1;min-width:0;font-size:12px;font-weight:600}.page-outline-panel>header button{background:transparent;border:0;border-radius:5px;padding:6px;color:var(--muted);display:flex;cursor:pointer}.page-outline-panel>header button:hover{background:var(--hover);color:var(--text)}.page-outline-panel>header button[aria-pressed=true]{color:var(--accent);background:var(--hover)}.page-outline-content{flex:1;min-height:0;overflow:auto;padding:0 10px 14px;scrollbar-width:thin}.page-outline-content ol{list-style:none;margin:0;padding:0}.page-outline-content ol ol{margin-left:15px}.page-outline-row{display:flex;align-items:baseline;gap:3px}.page-outline-item{text-align:left;min-width:0;overflow-wrap:anywhere;flex:1;padding:7px 6px;font-size:12px!important;line-height:1.6;border:0;background:transparent;color:var(--muted);border-radius:5px;cursor:pointer}.page-outline-item:hover{background:var(--hover);color:var(--text)}.page-outline-item[aria-current=location]{color:var(--accent);background:var(--hover);font-weight:600}.page-outline-branch{padding:6px 0;flex-shrink:0;border:0;background:transparent;color:var(--muted);cursor:pointer}.page-outline-branch[aria-expanded=true] svg{transform:rotate(90deg)}.page-outline-rail{position:absolute;right:12px;top:var(--page-outline-top, 20px);z-index:35;display:flex;flex-direction:column;align-items:center;gap:9px;border:1px solid var(--line);background:var(--paper, var(--bg));color:var(--muted);padding:10px 8px;border-radius:8px;cursor:pointer}.page-outline-rail span{writing-mode:vertical-rl;font-size:11px;letter-spacing:2px}.page-outline-backdrop{position:absolute;inset:0;z-index:34;border:0;padding:0;background:#00000020}.page-outline-frame{display:block;width:100%;height:100%;min-height:150px;border:0;background:transparent}.page-outline-content:has(>.page-outline-frame){overflow:hidden;padding:0}.page-outline-empty,.page-outline-error{font-size:12px;color:var(--muted);padding:8px;line-height:1.7;overflow-wrap:anywhere}.page-outline-error span{display:block}.page-outline-settings{max-width:560px}.page-outline-settings-body{padding:4px 22px 22px;overflow:auto}.page-outline-settings-body label{display:flex;flex-direction:column;gap:7px;font-size:12px;margin:14px 0}.page-outline-settings-body label.page-outline-enable{flex-direction:row;align-items:center;font-size:14px}.page-outline-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}.page-outline-settings-body select,.page-outline-settings-body input[type=number],.page-outline-settings-body textarea{width:100%;padding:8px;border:1px solid var(--line);border-radius:6px;background:var(--paper, var(--bg));color:var(--text);font:inherit}.page-outline-settings-body textarea{resize:vertical;font-family:var(--font-mono, monospace)}.page-outline-settings-body details{font-size:12px;margin-top:12px}.page-outline-hint{font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0}.page-outline-settings-body footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.page-outline-settings-body footer button{border:1px solid var(--line);background:var(--paper, var(--bg));color:var(--text);border-radius:6px;padding:8px 12px;cursor:pointer}.page-outline-settings-body footer .page-outline-apply{background:var(--accent);color:var(--paper, var(--bg))}@media(pointer:coarse){.page-outline-panel>header button,.page-outline-branch,.page-outline-item{min-height:44px}.page-outline-branch{min-width:28px}}@media print{.page-outline-rail,.page-outline-backdrop,.page-outline-panel{display:none!important}.page-outline-shell,.page-outline-shell>.container-page{display:contents}}.portable-app>.container-workspace>.container-main>.page-outline-shell{--page-outline-top: 68px}.outline-manual-editor ol{list-style:none;margin:0;padding:0}.outline-manual-editor ol ol{margin-left:18px;border-left:1px solid var(--line);padding-left:9px}.outline-manual-row{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0}.outline-manual-row input{min-width:0;width:100%;padding:7px;background:var(--paper);border:1px solid var(--line);border-radius:5px;color:var(--text);font:inherit}.outline-manual-row select{min-width:0}.outline-manual-actions{display:flex;grid-column:1/-1;justify-content:flex-end}.outline-manual-actions button,.outline-manual-add{display:inline-flex;gap:6px;align-items:center;border:0;background:transparent;color:var(--muted);padding:6px;cursor:pointer}.outline-manual-actions button:hover,.outline-manual-add:hover{background:var(--hover)}.outline-manual-actions button:disabled{opacity:.35;cursor:default}.page-outline-print{display:none}@media print{.page-outline-print{display:block;margin:20px 0 30px;break-inside:avoid}.page-outline-print ol{list-style:decimal;margin-left:20px;padding-left:10px}}.page-outline-content[data-custom=true]{padding:0;overflow:hidden}.page-outline-content[data-custom=true]>section{height:100%;margin:0!important;overflow:auto}.outline-manual-editor{max-height:360px;overflow:auto;margin:12px 0}
|
|
26
|
-
`);var et=U(pe(),1);function ST({outline:e,navigate:t,setBranchExpanded:a}){let n=ue(or),o=new Set(e.expandedItemIds),r=i=>(0,et.jsx)("ol",{children:i.map(l=>(0,et.jsxs)("li",{children:[(0,et.jsxs)("div",{className:"page-outline-row",children:[l.children.length>0&&(0,et.jsx)("button",{type:"button",className:"page-outline-branch","aria-expanded":o.has(l.id),"aria-label":`${o.has(l.id)?n("collapse"):n("expand")} ${l.title}`,onClick:()=>a(l.id,!o.has(l.id)),children:(0,et.jsx)(pn,{size:12})}),l.navigable?(0,et.jsx)("button",{type:"button",className:"page-outline-item","aria-current":e.activeItemId===l.id?"location":void 0,onClick:()=>t(l.id),children:l.title}):(0,et.jsx)("span",{className:"page-outline-item",children:l.title})]}),l.children.length>0&&o.has(l.id)&&r(l.children)]},l.id))});return e.items.length?(0,et.jsx)("nav",{"aria-label":n("title"),children:r(e.items)}):(0,et.jsx)("p",{className:"page-outline-empty",children:n("empty")})}function iy(e){let t=e.page.attrs?.outline;return t?.enabled?(0,et.jsx)(CT,{...e,config:t},e.page.attrs.id):null}function CT({page:e,documentId:t,scroll:a,shell:n,view:o,onSettings:r,config:i}){let l=ue(or),s=Z2(),c=$l(),d=tc(),u=(0,Ft.useMemo)(()=>qs(e,i),[e,i]),p=(0,Ft.useMemo)(()=>ym(u.items),[u]),[,g]=(0,Ft.useState)(0),[y,b]=(0,Ft.useState)("floating"),[x,f]=(0,Ft.useState)({width:i.width,height:400}),[m,v]=(0,Ft.useState)(null),T=JSON.stringify(i.renderer??null),[w,E]=(0,Ft.useState)(null),L=w?.key===T?w.message:"",H=(0,Ft.useCallback)(j=>E({key:T,message:j}),[T]),S=(0,Ft.useRef)(null),k=(0,Ft.useRef)(null),M=i.initialState==="auto"?void 0:i.initialState==="expanded",O=o.pinned??i.placement==="docked",C=o.expanded??M??(y==="margin"||y==="docked"),N=(0,Ft.useRef)({placement:y,expanded:C});N.current={placement:y,expanded:C};let z=(0,Ft.useCallback)(()=>g(j=>j+1),[]),A=(0,Ft.useCallback)(()=>{o.expanded=!1,z(),requestAnimationFrame(()=>S.current?.focus())},[o,z]);(0,Ft.useEffect)(()=>{let j=n.current,K=a.current;if(!j||!K)return;let _=K.querySelector(":scope > .container-page-column"),$=()=>{let V=j.getBoundingClientRect();if(!V.width)return;let B=_?.getBoundingClientRect(),de=Math.min(i.width,Math.max(180,V.width-24)),he=_9({width:V.width,gutter:B?V.right-B.right:0,panelWidth:de,widthMode:e.attrs?.widthMode??"standard",preferred:o.pinned===!1&&i.placement==="docked"?"auto":i.placement,pinned:o.pinned,previous:N.current.placement});N.current.placement!==he&&N.current.expanded&&o.expanded===void 0&&(o.expanded=!0);let ye=Math.max(100,V.height-(Number.parseFloat(getComputedStyle(j).getPropertyValue("--page-outline-top"))||16)-16);b(he),f(_e=>_e.width===de&&_e.height===ye?_e:{width:de,height:ye})};$();let D=new ResizeObserver($);return D.observe(j),D.observe(K),_&&D.observe(_),()=>D.disconnect()},[i.width,i.placement,e.attrs?.widthMode,o.pinned,n,a]),(0,Ft.useEffect)(()=>{let j=n.current;if(!j)return;j.dataset.outlineDocked=String(C&&y==="docked"),j.style.setProperty("--page-outline-width",`${x.width}px`);let K=a.current;return K&&(K.inert=C&&y==="drawer"),()=>{delete j.dataset.outlineDocked,j.style.removeProperty("--page-outline-width"),K&&(K.inert=!1)}},[C,y,x.width,n,a]);let q=(0,Ft.useCallback)(j=>{let K=a.current;return[...K?.querySelectorAll(`[data-block-id="${CSS.escape(j)}"],[data-surface-id="${CSS.escape(j)}"]`)??[]].find(_=>_.closest(".container-page")===K)},[a]),P=(0,Ft.useCallback)(j=>{let K=u.targets.get(j);if(!K)return;let _=q(K),$=a.current;if(!(!_||!$)){for(let D=_.parentElement;D&&D!==$;D=D.parentElement)D instanceof HTMLDetailsElement&&(D.open=!0);$.scrollTo({top:$.scrollTop+_.getBoundingClientRect().top-$.getBoundingClientRect().top-24,behavior:matchMedia("(prefers-reduced-motion: reduce)").matches?"instant":"smooth"}),v(j),y==="drawer"&&A()}},[u,q,a,y,A]);(0,Ft.useEffect)(()=>{let j=a.current;if(!j)return;let K=0,_=()=>{cancelAnimationFrame(K),K=requestAnimationFrame(()=>{let V=j.getBoundingClientRect().top+72,B=null;for(let de of p){let he=u.targets.get(de.id),ye=he?q(he):void 0;ye&&ye.getClientRects().length&&ye.getBoundingClientRect().top<=V&&(B=de.id)}v(B)})};_(),j.addEventListener("scroll",_,{passive:!0});let $=new ResizeObserver(_);$.observe(j);let D=j.firstElementChild;return D&&$.observe(D),()=>{cancelAnimationFrame(K),j.removeEventListener("scroll",_),$.disconnect()}},[u,p,q,a]),(0,Ft.useEffect)(()=>{if(!C)return;let j=$=>{$.key==="Escape"&&($.stopPropagation(),A())},K=$=>{y==="floating"&&$.target instanceof Node&&n.current?.contains($.target)&&!k.current?.contains($.target)&&!S.current?.contains($.target)&&A()},_=$=>{y==="drawer"&&$.target instanceof Node&&!k.current?.contains($.target)&&!($.target instanceof Element&&$.target.closest(".studio-modal-shade"))&&k.current?.querySelector("button")?.focus()};return n.current?.addEventListener("keydown",j),window.addEventListener("pointerdown",K),document.addEventListener("focusin",_),()=>{n.current?.removeEventListener("keydown",j),window.removeEventListener("pointerdown",K),document.removeEventListener("focusin",_)}},[C,y,A,n]);let Z=i.renderer?d.find(j=>j.id===i.renderer.componentId&&j.version===i.renderer.version&&j.integrity===i.renderer.integrity&&j.role==="page-outline"&&j.pageOutlineProtocol===1):void 0,F={props:i.renderer?.props??{},outline:{protocol:1,pageId:e.attrs.id,items:u.items,activeItemId:m,expandedItemIds:o.branches??p.filter(j=>j.children.length).map(j=>j.id),container:{placement:y,width:x.width,height:Math.max(80,x.height-52)},theme:s,locale:c},navigate:P,setBranchExpanded:(j,K)=>{if(!p.some($=>$.id===j&&$.children.length))return;let _=new Set(o.branches??p.filter($=>$.children.length).map($=>$.id));K?_.add(j):_.delete(j),o.branches=[..._],z()},collapse:A},ee=()=>{o.expanded=!0,z(),requestAnimationFrame(()=>k.current?.querySelector("button")?.focus())};return(0,et.jsxs)(et.Fragment,{children:[C&&y==="drawer"&&(0,et.jsx)("button",{type:"button",className:"page-outline-backdrop","aria-label":l("collapse"),onClick:A}),(0,et.jsxs)("button",{ref:S,type:"button",className:"page-outline-rail","data-surface-ui":!0,"aria-label":l(C?"collapse":"expand"),"aria-expanded":C,onClick:C?A:ee,hidden:C,children:[(0,et.jsx)(Nf,{size:16}),(0,et.jsx)("span",{children:l("title")})]}),(0,et.jsxs)("aside",{ref:k,className:"page-outline-panel","data-placement":y,"data-outline-page":e.attrs.id,"data-resource-id":t,hidden:!C,"data-surface-ui":!0,role:y==="drawer"?"dialog":void 0,"aria-modal":y==="drawer"?!0:void 0,"aria-label":l("title"),style:{width:x.width},children:[(0,et.jsxs)("header",{children:[(0,et.jsx)("strong",{children:l("title")}),r&&(0,et.jsx)("button",{type:"button","aria-label":l("settings"),onClick:r,children:(0,et.jsx)(Rl,{size:14})}),y!=="drawer"&&(0,et.jsx)("button",{type:"button","aria-label":l(O?"unpin":"pin"),"aria-pressed":O,onClick:()=>{o.pinned=!O,o.expanded=!0,z()},children:O?(0,et.jsx)(jf,{size:14}):(0,et.jsx)(i0,{size:14})}),(0,et.jsx)("button",{type:"button","aria-label":l("collapse"),onClick:A,children:(0,et.jsx)(on,{size:14})})]}),(0,et.jsxs)("div",{className:"page-outline-content","data-custom":Z&&!L?!0:void 0,children:[i.renderer&&(!Z||L)&&(0,et.jsxs)("p",{className:"page-outline-error",role:"status",children:[l("unavailable"),L&&(0,et.jsx)("span",{children:L})]}),Z&&!L?(0,et.jsx)(ry,{component:Z,contract:F,onError:H},Z.integrity):(0,et.jsx)(ST,{...F})]})]})]})}function ly({page:e}){let t=ue(or);if(!e.attrs?.outline?.enabled||e.attrs.kind!=="page")return null;let a=qs(e),n=o=>(0,et.jsx)("ol",{children:o.map(r=>(0,et.jsxs)("li",{children:[a.targets.has(r.id)?(0,et.jsx)("a",{href:`#${a.targets.get(r.id)}`,children:r.title}):r.title,r.children.length>0&&n(r.children)]},r.id))});return(0,et.jsxs)("nav",{className:"page-outline-print","aria-label":t("title"),children:[(0,et.jsx)("h2",{children:t("title")}),n(a.items)]})}var Qa=U(pe(),1);function sy({page:e,entries:t,onChange:a}){let n=ue(or),o=s=>s.text??s.content?.map(o).join("")??s.attrs?.name??s.type??"",r=[...hm(e)].filter(([,s])=>s.type!=="text").map(([s,c])=>({id:s,label:(o(c)||c.attrs?.name||c.type).slice(0,100)})),i=(s,c)=>{let d=structuredClone(t),u=(p,g)=>{let y=p.findIndex(b=>b.id===s);if(y>=0){if(typeof c=="object")Object.assign(p[y],c);else if(c==="remove")p.splice(y,1);else if(c==="up"&&y>0)[p[y-1],p[y]]=[p[y],p[y-1]];else if(c==="down"&&y<p.length-1)[p[y+1],p[y]]=[p[y],p[y+1]];else if(c==="indent"&&y>0){let b=p.splice(y,1)[0];(p[y-1].children??=[]).push(b)}else c==="outdent"&&g&&g.siblings.splice(g.index+1,0,p.splice(y,1)[0]);return!0}return p.some((b,x)=>b.children&&u(b.children,{siblings:p,index:x}))};u(d),a(d)},l=(s,c=0)=>(0,Qa.jsx)("ol",{children:s.map((d,u)=>(0,Qa.jsxs)("li",{children:[(0,Qa.jsxs)("div",{className:"outline-manual-row",children:[(0,Qa.jsx)("input",{"aria-label":n("entryTitle"),value:d.title??"",placeholder:r.find(p=>p.id===d.nodeId)?.label??n("group"),onChange:p=>i(d.id,{title:p.target.value||void 0})}),(0,Qa.jsxs)("select",{"aria-label":n("entryTarget"),value:d.nodeId??"",onChange:p=>i(d.id,{nodeId:p.target.value||void 0,...!p.target.value&&!d.title?{title:n("group")}:{}}),children:[(0,Qa.jsx)("option",{value:"",children:n("group")}),d.nodeId&&!r.some(p=>p.id===d.nodeId)&&(0,Qa.jsx)("option",{value:d.nodeId,children:n("missingTarget")}),r.map(p=>(0,Qa.jsx)("option",{value:p.id,children:p.label},p.id))]}),(0,Qa.jsx)("div",{className:"outline-manual-actions",children:[["up",Hr,u===0],["down",Dl,u===s.length-1],["indent",pn,u===0||c>=23],["outdent",_r,c===0],["remove",pa,!1]].map(([p,g,y])=>(0,Qa.jsx)("button",{type:"button","aria-label":n(p==="remove"?"removeEntry":p),disabled:y,onClick:()=>i(d.id,p),children:(0,Qa.jsx)(g,{size:13})},p))})]}),d.children?.length?l(d.children,c+1):null]},d.id))});return(0,Qa.jsxs)("div",{className:"outline-manual-editor",children:[l(t),(0,Qa.jsxs)("button",{type:"button",className:"outline-manual-add",onClick:()=>a([...t,{id:crypto.randomUUID(),title:n("group")}]),children:[(0,Qa.jsx)(Ot,{size:14}),n("addEntry")]})]})}var dn=U(Ne(),1);var j1=U(Ne(),1);var B1=rt("studio",{"zh-CN":{"scope.builtin":"\u5185\u7F6E","scope.global":"\u5168\u5C40","scope.published":"\u5DF2\u53D1\u5E03","scope.project":"\u9879\u76EE",selectPages:"\u9009\u62E9\u9875\u9762",selectPage:"\u9009\u62E9\u300C{title}\u300D",selectedPages:"\u5DF2\u9009 {count} \u4E2A\u9875\u9762",selectAllPages:"\u5168\u9009\u9875\u9762",finishPageSelection:"\u5B8C\u6210\u9009\u62E9",pageSelectionActions:"\u9875\u9762\u6279\u91CF\u64CD\u4F5C",movePages:"\u79FB\u52A8\u9875\u9762",deletePages:"\u5220\u9664\u9875\u9762",deletePagesConfirm:"\u5220\u9664\u9009\u4E2D\u7684 {count} \u4E2A\u9875\u9762\uFF1F",movePagesDescription:"\u5C06\u9009\u4E2D\u7684 {count} \u4E2A\u9875\u9762\u79FB\u52A8\u5230\uFF1A",targetProject:"\u76EE\u6807\u9879\u76EE",targetFolder:"\u76EE\u6807\u6587\u4EF6\u5939",projectRoot:"\u9879\u76EE\u6839\u76EE\u5F55",pagesMoved:"\u5DF2\u79FB\u52A8 {count} \u4E2A\u9875\u9762",pagesDeleted:"\u5DF2\u5220\u9664 {count} \u4E2A\u9875\u9762",batchPageFailed:"\u5DF2\u5B8C\u6210 {completed} \u4E2A\u9875\u9762\uFF0C\u5269\u4F59 {remaining} \u4E2A\u9875\u9762\u672A\u5B8C\u6210\uFF1A{error}",folderMissing:"\u8FD9\u4E2A\u6587\u4EF6\u5939\u5DF2\u4E0D\u5B58\u5728\u3002",directoryView:"\u89C6\u56FE",libraryUndo:"\u64A4\u9500\u76EE\u5F55\u79FB\u52A8",libraryRedo:"\u91CD\u505A\u76EE\u5F55\u79FB\u52A8","view.list":"\u5217\u8868","view.small":"\u7F29\u7565\u56FE\uFF08\u5C0F\uFF09","view.medium":"\u7F29\u7565\u56FE\uFF08\u4E2D\uFF09","view.large":"\u7F29\u7565\u56FE\uFF08\u5927\uFF09",pageImported:"\u9875\u9762\u5DF2\u5BFC\u5165",pageExported:"\u9875\u9762\u5DF2\u5BFC\u51FA",siteExportedRemote:"\u7F51\u7AD9\u5DF2\u5BFC\u51FA\uFF0C\u7EC4\u4EF6\u6309\u56FA\u5B9A\u53D1\u5E03\u7248\u672C\u8054\u7F51\u52A0\u8F7D",siteExportedBundled:"\u7F51\u7AD9\u5DF2\u5BFC\u51FA\uFF0C\u53EF\u90E8\u7F72\u5230\u9759\u6001\u6258\u7BA1","create.folder":"\u6587\u4EF6\u5939","create.page":"\u9875\u9762","create.board":"\u767D\u677F","sort.name":"\u6309\u540D\u79F0\u6392\u5E8F","sort.createdAt":"\u6309\u521B\u5EFA\u65E5\u671F\u6392\u5E8F","sort.updatedAt":"\u6309\u7F16\u8F91\u65E5\u671F\u6392\u5E8F","sort.manual":"\u624B\u52A8\u987A\u5E8F",moved:"\u5DF2\u8C03\u6574\u4F4D\u7F6E",moveProjectUp:"\u9879\u76EE\u4E0A\u79FB",moveProjectDown:"\u9879\u76EE\u4E0B\u79FB",deleted:"\u5DF2\u5220\u9664",openPageFirst:"\u5148\u6253\u5F00\u4E00\u4E2A\u9875\u9762\uFF0C\u518D\u63D2\u5165\u7EC4\u4EF6","heading.recent":"\u6700\u8FD1","heading.project":"\u9879\u76EE","heading.templates":"\u6A21\u677F","heading.components":"\u7EC4\u4EF6","heading.settings":"\u8BBE\u7F6E",resolveDraftFirst:"\u8BF7\u5148\u4FDD\u5B58\u6216\u5904\u7406\u5F53\u524D\u9875\u9762\u7684\u8349\u7A3F\u3002",noComponentVersion:"\u8FD9\u4E2A\u7ED3\u679C\u6CA1\u6709\u53EF\u6253\u5F00\u7684\u7EC4\u4EF6\u7248\u672C\u3002",noTemplateVersion:"\u8FD9\u4E2A\u7ED3\u679C\u6CA1\u6709\u53EF\u6253\u5F00\u7684\u6A21\u677F\u7248\u672C\u3002",backToRecent:"\u8FD4\u56DE\u6700\u8FD1",updatingProjects:"\u6B63\u5728\u66F4\u65B0\u9879\u76EE\u5217\u8868\u2026",pageTitle:"\u9875\u9762\u6807\u9898",componentSource:"\u7EC4\u4EF6\u6765\u6E90","filter.all":"\u5168\u90E8","filter.builtin":"\u5185\u7F6E","filter.custom":"\u81EA\u5B9A\u4E49",addContent:"\u6DFB\u52A0\u5185\u5BB9",addContentHint:"\u6DFB\u52A0\u6587\u4EF6\u5939\u3001\u9875\u9762\u6216\u767D\u677F",catalogProjectLabel:"\u9879\u76EE",catalogProject:"\u76EE\u5F55\u9879\u76EE",chooseProject:"\u9009\u62E9\u9879\u76EE",catalogScopeLabel:"\u8303\u56F4",catalogScope:"\u76EE\u5F55\u8303\u56F4",showAllVersions:"\u663E\u793A\u6240\u6709\u7248\u672C",searchComponents:"\u641C\u7D22\u7EC4\u4EF6",searchTemplates:"\u641C\u7D22\u6A21\u677F",viewExternalChanges:"\u67E5\u770B\u5916\u90E8\u6587\u4EF6\u4FEE\u6539",searchRecentPages:"\u641C\u7D22\u6700\u8FD1\u9875\u9762",searchPages:"\u641C\u7D22\u9875\u9762",searchLibrary:"\u641C\u7D22\u5185\u5BB9\u5E93",searchScope:"\u641C\u7D22\u8303\u56F4","searchScope.recent":"\u6700\u8FD1\u9875\u9762","searchScope.project":"\u5F53\u524D\u9879\u76EE\u9875\u9762","searchScope.library":"\u6574\u4E2A\u5185\u5BB9\u5E93",newProject:"\u65B0\u5EFA\u9879\u76EE",revealProjectFolder:"\u6253\u5F00\u9879\u76EE\u76EE\u5F55",exportSite:"\u5BFC\u51FA\u7F51\u7AD9",folderActions:"\u5F53\u524D\u76EE\u5F55\u64CD\u4F5C",componentProjectLabel:"\u9879\u76EE\uFF1A",allProjects:"\u5168\u90E8\u9879\u76EE",revealPageFile:"\u663E\u793A\u9875\u9762\u6587\u4EF6",exportPage:"\u5BFC\u51FA\u9875\u9762",pageActions:"\u9875\u9762\u64CD\u4F5C",dismissError:"\u5173\u95ED\u9519\u8BEF\u63D0\u793A",backgroundSaveIssue:"\u5176\u4ED6\u9875\u9762\u7684\u540E\u53F0\u4FDD\u5B58\u9700\u8981\u5904\u7406\uFF0C\u8349\u7A3F\u5DF2\u4FDD\u7559\u3002",viewIssue:"\u67E5\u770B \xB7 {title}",retainedSyncConflict:"\u8DE8\u8BBE\u5907\u4FEE\u6539\u672A\u80FD\u5408\u5E76\uFF0C\u4E24\u4EFD\u5185\u5BB9\u53CA\u6765\u6E90\u8BB0\u5F55\u5747\u5DF2\u4FDD\u7559\u3002",viewOtherVariant:"\u67E5\u770B\u53E6\u4E00\u4EFD \xB7 {account} \xB7 \u8BBE\u5907 {device}",saveConflictTitle:"\u4FDD\u5B58\u5931\u8D25\uFF1A\u6587\u4EF6\u6709\u65B0\u7684\u4FEE\u6539",saveProblemTitle:"\u4FDD\u5B58\u9047\u5230\u95EE\u9898",draftKeptAsCopy:"\u8349\u7A3F\u5DF2\u4FDD\u7559\u4E3A\u526F\u672C",keepAsCopy:"\u4FDD\u7559\u4E3A\u526F\u672C",saveAgain:"\u91CD\u65B0\u4FDD\u5B58",resolveExternal:"\u5904\u7406\u5916\u90E8\u4FEE\u6539",compareAndMerge:"\u6BD4\u8F83\u5E76\u5408\u5E76",discardAndLoad:"\u653E\u5F03\u4FEE\u6539\uFF0C\u8F7D\u5165\u5F53\u524D\u6587\u4EF6",retrySave:"\u91CD\u8BD5\u4FDD\u5B58",draftsAvailable:"\u6709\u5176\u4ED6\u7F16\u8F91\u7A97\u53E3\u7559\u4E0B\u7684\u672C\u673A\u8349\u7A3F\uFF0C\u53EF\u9009\u62E9\u6062\u590D\u3002",restoreDraft:"\u6062\u590D\u8349\u7A3F \xB7 {time}",librarySwitched:"\u5185\u5BB9\u5E93\u5DF2\u5207\u6362",libraryPathCopied:"\u5185\u5BB9\u5E93\u8DEF\u5F84\u5DF2\u590D\u5236",launchConfigCopied:"\u672C\u5730\u542F\u52A8\u914D\u7F6E\u5DF2\u590D\u5236",pinned:"\u5DF2\u7F6E\u9876",itemActions:"{title}\u7684\u64CD\u4F5C",noMatchingContent:"\u6CA1\u6709\u5339\u914D\u7684\u5185\u5BB9",folderEmpty:"\u6587\u4EF6\u5939\u4E3A\u7A7A",projectEmpty:"\u9879\u76EE\u4E3A\u7A7A",emptyHint:"\u70B9\u51FB\u5DE6\u4E0A\u89D2\u7684 + \u6DFB\u52A0\u9875\u9762\u6216\u767D\u677F\uFF0C\u6216\u6253\u5F00 Agent \u8BA9\u5B83\u5199\u7B2C\u4E00\u9875",viewTemplate:"\u67E5\u770B\u6A21\u677F {name} {version} {scope}",noMatchingTemplates:"\u6CA1\u6709\u5339\u914D\u7684\u6A21\u677F",noTemplates:"\u6682\u65E0\u8FD9\u7C7B\u6A21\u677F",siteExportMode:"\u7F51\u7AD9\u5BFC\u51FA\u65B9\u5F0F",exportOffline:"\u79BB\u7EBF\u7F51\u7AD9 \xB7 \u6253\u5305\u7EC4\u4EF6",exportOnline:"\u8054\u7F51\u7F51\u7AD9 \xB7 \u5F15\u7528\u53D1\u5E03\u7EC4\u4EF6",projectListActions:"\u9879\u76EE\u5217\u8868\u64CD\u4F5C",newGroup:"\u65B0\u5EFA\u5206\u7EC4",groupActions:"{name}\u7684\u5206\u7EC4\u64CD\u4F5C",renameGroup:"\u91CD\u547D\u540D\u5206\u7EC4",removeGroup:"\u79FB\u9664\u5206\u7EC4",groupRemoved:"\u5DF2\u79FB\u9664\u5206\u7EC4\uFF0C\u9879\u76EE\u5DF2\u79FB\u56DE\u9879\u76EE\u5217\u8868",openInNewTab:"\u5728\u65B0\u6807\u7B7E\u9875\u6253\u5F00",cmdClick:"\u2318 \u70B9\u51FB",ctrlClick:"Ctrl \u70B9\u51FB",shiftClick:"\u21E7 \u70B9\u51FB",openInNewWindow:"\u5728\u65B0\u7A97\u53E3\u6253\u5F00",setIcon:"\u8BBE\u7F6E\u56FE\u6807\u2026",pin:"\u7F6E\u9876",unpin:"\u53D6\u6D88\u7F6E\u9876",moveToGroup:"\u79FB\u5230\u5206\u7EC4\u2026",removeFromGroup:"\u79FB\u51FA\u5206\u7EC4",duplicatePage:"\u590D\u5236\u9875\u9762",exportWithPublished:"\u5F15\u7528\u5DF2\u53D1\u5E03\u7EC4\u4EF6\u5BFC\u51FA",exportSnippet:"\u5BFC\u51FA\u4F1A\u8BDD\u7247\u6BB5",exportReading:"\u5BFC\u51FA\u9605\u8BFB\u7F51\u9875",exportOnlinePage:"\u5BFC\u51FA\u5728\u7EBF\u7F51\u9875 \xB7 \u8054\u7F51\u52A0\u8F7D\u9605\u8BFB\u5668",iconKeptInDraft:"\u56FE\u6807\u4FDD\u7559\u5728\u672C\u673A\u8349\u7A3F\u4E2D\uFF0C\u8BF7\u5904\u7406\u9875\u9762\u4FDD\u5B58\u9519\u8BEF\u6216\u51B2\u7A81\u3002",libraryUpgraded:"\u5185\u5BB9\u5E93\u5DF2\u5347\u7EA7\uFF0C\u539F\u59CB\u6587\u4EF6\u5DF2\u4FDD\u7559",mergeSaved:"\u5408\u5E76\u7248\u672C\u5DF2\u4FDD\u5B58",externalKeptAsDraft:"\u5916\u90E8\u6587\u4EF6\u5DF2\u4FDD\u7559\u4E3A\u8349\u7A3F\uFF0C\u53EF\u901A\u8FC7 Agent \u7EE7\u7EED\u5904\u7406",externalResolved:"\u5916\u90E8\u4FEE\u6539\u5DF2\u5904\u7406\uFF0C\u5FEB\u7167\u4ECD\u53EF\u4FDD\u7559\u67E5\u770B",groupName:"\u5206\u7EC4\u540D\u79F0",newFolder:"\u65B0\u6587\u4EF6\u5939",folderName:"\u6587\u4EF6\u5939\u540D\u79F0",name:"\u540D\u79F0",newPage:"\u65B0\u9875\u9762",newPageAria:"\u65B0\u5EFA Page",newBoardAria:"\u65B0\u5EFA Board",blankPage:"Page \u7A7A\u767D\u9875\u9762",blankBoard:"Board \u767D\u677F",moveToGroupTitle:"\u79FB\u5230\u5206\u7EC4",group:"\u5206\u7EC4",targetGroup:"\u76EE\u6807\u5206\u7EC4",ungrouped:"\u9879\u76EE\uFF08\u672A\u5206\u7EC4\uFF09",move:"\u79FB\u52A8",deleteProject:"\u5220\u9664\u9879\u76EE",deleteFolder:"\u5220\u9664\u6587\u4EF6\u5939",deletePage:"\u5220\u9664\u9875\u9762",deleteConfirm:"\u5220\u9664\u300C{title}\u300D\uFF1F",deleteChildren:"\u5176\u4E2D\u7684\u9875\u9762\u548C\u5B50\u6587\u4EF6\u5939\u4E5F\u4F1A\u4ECE\u5217\u8868\u4E2D\u79FB\u9664\u3002",projectSettings:"\u9879\u76EE\u8BBE\u7F6E",newProjectTitle:"\u65B0\u9879\u76EE",projectName:"\u9879\u76EE\u540D\u79F0",projectNamePlaceholder:"\u4F8B\u5982\uFF1A\u591A\u6A21\u6001\u6A21\u578B\u8C03\u7814",setProjectIcon:"\u8BBE\u7F6E\u9879\u76EE\u56FE\u6807",setIconButton:"\u8BBE\u7F6E\u56FE\u6807",createProject:"\u521B\u5EFA\u9879\u76EE",projectIcon:"\u9879\u76EE\u56FE\u6807",folderSettings:"\u6587\u4EF6\u5939\u8BBE\u7F6E",setFolderIcon:"\u8BBE\u7F6E\u6587\u4EF6\u5939\u56FE\u6807",folderIcon:"\u6587\u4EF6\u5939\u56FE\u6807",closeDialog:"\u5173\u95ED\u5F39\u7A97",setPageIcon:"\u8BBE\u7F6E\u9875\u9762\u56FE\u6807",addIcon:"\u6DFB\u52A0\u56FE\u6807",bodyPageTitle:"\u6B63\u6587\u9875\u9762\u6807\u9898","icon.unsupportedType":"\u8BF7\u9009\u62E9 PNG\u3001JPEG\u3001GIF\u3001WebP \u6216 AVIF \u56FE\u7247\u3002","icon.tooLarge":"\u56FE\u7247\u9700\u5C0F\u4E8E 8 MB\u3002","icon.readCancelled":"\u56FE\u7247\u8BFB\u53D6\u5DF2\u53D6\u6D88","icon.pageIcon":"\u9875\u9762\u56FE\u6807","icon.text":"\u6587\u5B57\u6216 Emoji","icon.common":"\u5E38\u7528\u56FE\u6807","icon.use":"\u4F7F\u7528 {icon}","icon.upload":"\u4E0A\u4F20\u56FE\u7247","icon.help":"\u652F\u6301 PNG\u3001JPEG\u3001GIF\u3001WebP\u3001AVIF\uFF0C\u6700\u5927 8 MB\u3002\u5927\u5C3A\u5BF8\u56FE\u7247\u4F1A\u7F29\u5C0F\u4E3A\u56FE\u6807\u3002","icon.url":"\u56FE\u7247\u94FE\u63A5","icon.urlAria":"\u56FE\u6807\u56FE\u7247\u94FE\u63A5","icon.remove":"\u79FB\u9664\u56FE\u6807","icon.processing":"\u5904\u7406\u4E2D\u2026"},en:{selectPages:"Select pages",selectPage:"Select \u201C{title}\u201D",selectedPages:"{count} pages selected",selectAllPages:"Select all pages",finishPageSelection:"Done selecting",pageSelectionActions:"Bulk page actions",movePages:"Move pages",deletePages:"Delete pages",deletePagesConfirm:"Delete the {count} selected pages?",movePagesDescription:"Move the {count} selected pages to:",targetProject:"Destination project",targetFolder:"Destination folder",projectRoot:"Project root",pagesMoved:"Moved {count} pages",pagesDeleted:"Deleted {count} pages",batchPageFailed:"Completed {completed} pages; {remaining} pages remain: {error}","scope.builtin":"Built-in","scope.global":"Global","scope.published":"Published","scope.project":"Project",directoryView:"View",libraryUndo:"Undo library move",libraryRedo:"Redo library move","view.list":"List","view.small":"Small thumbnails","view.medium":"Medium thumbnails","view.large":"Large thumbnails",folderMissing:"This folder no longer exists.",pageImported:"Page imported",pageExported:"Page exported",siteExportedRemote:"Site exported. Components load online from their pinned published versions.",siteExportedBundled:"Site exported. Ready to deploy to static hosting.","create.folder":"Folder","create.page":"Page","create.board":"Board","sort.name":"Sort by name","sort.createdAt":"Sort by date created","sort.updatedAt":"Sort by date edited","sort.manual":"Manual order",moved:"Moved",moveProjectUp:"Move project up",moveProjectDown:"Move project down",deleted:"Deleted",openPageFirst:"Open a page before inserting a component","heading.recent":"Recent","heading.project":"Project","heading.templates":"Templates","heading.components":"Components","heading.settings":"Settings",resolveDraftFirst:"Save or resolve the current page's draft first.",noComponentVersion:"This result has no component version to open.",noTemplateVersion:"This result has no template version to open.",backToRecent:"Back to Recent",updatingProjects:"Updating project list\u2026",pageTitle:"Page title",componentSource:"Component source","filter.all":"All","filter.builtin":"Built-in","filter.custom":"Custom",addContent:"Add content",addContentHint:"Add a folder, page or board",catalogProjectLabel:"Project",catalogProject:"Catalog project",chooseProject:"Choose project",catalogScopeLabel:"Scope",catalogScope:"Catalog scope",showAllVersions:"Show all versions",searchComponents:"Search components",searchTemplates:"Search templates",viewExternalChanges:"Review external file changes",searchRecentPages:"Search recent pages",searchPages:"Search pages",searchLibrary:"Search library",searchScope:"Search scope","searchScope.recent":"Recent pages","searchScope.project":"Pages in this project","searchScope.library":"Entire library",newProject:"New project",revealProjectFolder:"Open project folder",exportSite:"Export site",folderActions:"Folder actions",componentProjectLabel:"Project:",allProjects:"All projects",revealPageFile:"Show page file",exportPage:"Export page",pageActions:"Page actions",dismissError:"Dismiss error",backgroundSaveIssue:"Background saves for other pages need attention. Their drafts are kept.",viewIssue:"View \xB7 {title}",retainedSyncConflict:"Changes from different devices couldn't be merged. Both versions and their source records are kept.",viewOtherVariant:"View other copy \xB7 {account} \xB7 device {device}",saveConflictTitle:"Couldn't save: the file has new changes",saveProblemTitle:"There was a problem saving",draftKeptAsCopy:"Draft kept as a copy",keepAsCopy:"Keep as copy",saveAgain:"Save again",resolveExternal:"Resolve external changes",compareAndMerge:"Compare and merge",discardAndLoad:"Discard changes and load current file",retrySave:"Retry save",draftsAvailable:"Other editing windows left local drafts you can restore.",restoreDraft:"Restore draft \xB7 {time}",librarySwitched:"Library switched",libraryPathCopied:"Library path copied",launchConfigCopied:"Local launch configuration copied",pinned:"Pinned",itemActions:"Actions for {title}",noMatchingContent:"No matching content",folderEmpty:"This folder is empty",projectEmpty:"This project is empty",emptyHint:"Click + at the top left to add a page or board, or open the agent and let it write the first page",viewTemplate:"View template {name} {version} {scope}",noMatchingTemplates:"No matching templates",noTemplates:"No templates of this kind",siteExportMode:"Site export options",exportOffline:"Offline site \xB7 bundle components",exportOnline:"Online site \xB7 use published components",projectListActions:"Project list actions",newGroup:"New group",groupActions:"Group actions for {name}",renameGroup:"Rename group",removeGroup:"Remove group",groupRemoved:"Group removed. Its projects moved back to the project list.",openInNewTab:"Open in new tab",cmdClick:"\u2318-click",ctrlClick:"Ctrl-click",shiftClick:"\u21E7-click",openInNewWindow:"Open in new window",setIcon:"Set icon\u2026",pin:"Pin",unpin:"Unpin",moveToGroup:"Move to group\u2026",removeFromGroup:"Remove from group",duplicatePage:"Duplicate page",exportWithPublished:"Export with published components",exportSnippet:"Export chat snippet",exportReading:"Export reading page",exportOnlinePage:"Export online page \xB7 loads the reader from a CDN",iconKeptInDraft:"The icon is kept in the local draft. Resolve the page's save error or conflict.",libraryUpgraded:"Library upgraded. Original files are kept.",mergeSaved:"Merged version saved",externalKeptAsDraft:"External file kept as a draft. You can continue with the Agent.",externalResolved:"External changes resolved. The snapshot is still available to review.",groupName:"Group name",newFolder:"New folder",folderName:"Folder name",name:"Name",newPage:"New page",newPageAria:"New page",newBoardAria:"New board",blankPage:"Blank page",blankBoard:"Board",moveToGroupTitle:"Move to group",group:"Group",targetGroup:"Target group",ungrouped:"Projects (ungrouped)",move:"Move",deleteProject:"Delete project",deleteFolder:"Delete folder",deletePage:"Delete page",deleteConfirm:"Delete \u201C{title}\u201D?",deleteChildren:" Its pages and subfolders will also be removed from the list.",projectSettings:"Project settings",newProjectTitle:"New project",projectName:"Project name",projectNamePlaceholder:"e.g. Multimodal model research",setProjectIcon:"Set project icon",setIconButton:"Set icon",createProject:"Create project",projectIcon:"Project icon",folderSettings:"Folder settings",setFolderIcon:"Set folder icon",folderIcon:"Folder icon",closeDialog:"Close dialog",setPageIcon:"Set page icon",addIcon:"Add icon",bodyPageTitle:"Page title","icon.unsupportedType":"Choose a PNG, JPEG, GIF, WebP or AVIF image.","icon.tooLarge":"Images must be smaller than 8 MB.","icon.readCancelled":"Image reading was cancelled.","icon.pageIcon":"Page icon","icon.text":"Text or emoji","icon.common":"Common icons","icon.use":"Use {icon}","icon.upload":"Upload image","icon.help":"PNG, JPEG, GIF, WebP and AVIF up to 8 MB. Large images are scaled down to icon size.","icon.url":"Image URL","icon.urlAria":"Icon image URL","icon.remove":"Remove icon","icon.processing":"Processing\u2026"}});var en=U(pe(),1);function H1({title:e,children:t,onClose:a,wide:n=!1,className:o="",titleAccessory:r,headerContent:i,headerActions:l,dismissible:s=!0,initialFocus:c="auto",returnFocus:d}){let u=ue(B1),p=(0,j1.useRef)(null),g=(0,j1.useRef)(a);return g.current=s?a:()=>{},(0,j1.useEffect)(()=>{let y=document.activeElement;(c==="container"?p.current:p.current?.querySelector(o.includes("catalog-")?'[role="tab"][aria-selected="true"]':"input:not([disabled]),textarea:not([disabled]),select:not([disabled])")??p.current?.querySelector("button"))?.focus();let b=x=>{if(p.current===[...document.querySelectorAll('[role="dialog"]')].at(-1)){if(x.key==="Escape"){if(p.current?.contains(document.fullscreenElement)||document.querySelector('[role="menu"]'))return;g.current()}if(x.key==="Tab"){let f=[...p.current?.querySelectorAll('button:not([disabled]),input:not([disabled]),textarea:not([disabled]),select:not([disabled]),a[href],summary,[tabindex],[contenteditable="true"]')??[]].filter(T=>T.offsetParent!==null&&T.tabIndex>=0&&!T.closest("[inert]")),m=f[0],v=f.at(-1);if(document.activeElement===p.current||!p.current?.contains(document.activeElement)){x.preventDefault(),(x.shiftKey?v:m)?.focus();return}x.shiftKey&&document.activeElement===m&&(x.preventDefault(),v?.focus()),!x.shiftKey&&document.activeElement===v&&(x.preventDefault(),m?.focus())}}};return document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b),(d?.isConnected?d:y)?.focus({preventScroll:!0})}},[]),(0,en.jsx)("div",{className:"studio-modal-shade",onMouseDown:y=>{s&&y.target===y.currentTarget&&a()},children:(0,en.jsxs)("div",{ref:p,role:"dialog","aria-modal":"true","aria-label":e,tabIndex:-1,className:`studio-modal ${n?"wide":""} ${o}`,children:[(0,en.jsxs)("header",{children:[r?(0,en.jsxs)("div",{className:"studio-modal-title",children:[(0,en.jsx)("h2",{children:e}),r]}):(0,en.jsx)("h2",{children:e}),i,l?(0,en.jsxs)("div",{className:"studio-modal-header-actions",children:[l," ",s&&(0,en.jsx)("button",{className:"studio-icon","aria-label":u("closeDialog"),onClick:a,children:(0,en.jsx)(on,{size:18})})]}):(0,en.jsxs)(en.Fragment,{children:[" ",s&&(0,en.jsx)("button",{className:"studio-icon","aria-label":u("closeDialog"),onClick:a,children:(0,en.jsx)(on,{size:18})})]})]}),t]})})}var Bn=U(Ne(),1);var cy=U(Ne(),1),dy=(0,cy.createContext)(null);var uy={text:"text",callout:"text",toggle:"text",stepper:"text",divider:"text",code:"text",bookmark:"text",references:"text",image:"image",gallery:"image",table:"table",database:"table",chart:"data",metrics:"data",playground:"data","step-walkthrough":"flow","comparison-matrix":"table","status-tree":"flow","experiment-tracker":"data","scene-3d":"image","event-timeline":"data",waterfall:"data",roadmap:"flow","card-grid":"other","structure-browser":"data","command-reference":"text","step-guide":"flow","layer-diagram":"flow","sequence-diagram":"flow",flowchart:"flow",archify:"flow","diagram-design":"flow","fireworks-tech-graph":"flow",mindmap:"flow",page:"surface",board:"surface"};function py(e){return!("kind"in e)&&e.role==="page-outline"?"outline":"kind"in e?e.kind.startsWith("g2-")?"data":uy[e.kind]??"other":e.category?e.category:uy[e.id.replace(/^my-/,"")]??"other"}function my(e){let t=n=>JSON.stringify([n.scope,n.scope==="project"?n.projectId:null,n.id]),a=new Map;for(let n of e){if("kind"in n)continue;let o=t(n),r=a.get(o),[i,l]=n.version.split("-"),[s,c]=(r?.version??"0.0.0-legacy").split("-"),d=i.localeCompare(s,void 0,{numeric:!0})||(!l&&c?1:l&&!c?-1:(l??"").localeCompare(c??"",void 0,{numeric:!0}));(!r||d>0)&&a.set(o,n)}return e.filter(n=>"kind"in n||a.get(t(n))?.version===n.version)}var J2=[{kind:"text",name:"\u5BCC\u6587\u672C",description:"\u7EDF\u4E00\u7684\u5BCC\u6587\u672C\u7EC4\u4EF6\uFF1AApp \u8F93\u5165\u4E0E AI \u5199\u5165\u4F7F\u7528\u540C\u4E00\u5185\u5BB9\u6811\uFF0C\u652F\u6301\u6807\u9898\u3001\u5217\u8868\u3001\u8868\u683C\u3001\u516C\u5F0F\u3001\u5B57\u4F53\u3001\u5B57\u53F7\u3001\u989C\u8272\u3001\u4E0B\u5212\u7EBF\u3001\u9AD8\u4EAE\u548C\u6BB5\u843D\u5BF9\u9F50\uFF1B\u7EC4\u4EF6\u81EA\u5E26\u9009\u4E2D\u3001\u60AC\u505C\u53CA\u8868\u683C\u83DC\u5355\uFF0C\u517C\u5BB9 Markdown \u4E0E\u7EAF\u6587\u672C\u5BFC\u5165\u3002",version:"2.0.0",defaultData:{content:{type:"doc",content:[{type:"paragraph",content:[]}]},format:"richtext"}},{kind:"image",name:"\u56FE\u7247",description:"\u5355\u5F20\u56FE\u50CF\u4E0E\u56FE\u6CE8\uFF0C\u53EF\u8C03\u6574\u5C3A\u5BF8\u3001\u88C1\u5207\u548C\u5706\u89D2\u3002\u79BB\u7EBF\u9875\u9762\u4F7F\u7528\u5185\u5D4C\u56FE\u50CF\u3002",version:"2.0.0",defaultData:{src:"",alt:"",caption:""}},{kind:"table",name:"\u8868\u683C",description:"\u7EDF\u4E00\u7684\u8868\u683C\u7EC4\u4EF6\uFF0C\u652F\u6301\u5BCC\u6587\u672C\u5355\u5143\u683C\u3001\u5408\u5E76\u62C6\u5206\u3001\u884C\u5217\u7F16\u8F91\u3001\u5217\u5BBD\u548C\u5BF9\u9F50\uFF1B\u517C\u5BB9\u4E8C\u7EF4\u6570\u7EC4\u5BFC\u5165\uFF0C\u5355\u5143\u683C\u7EDF\u4E00\u4FDD\u5B58\u4E3A\u5BCC\u6587\u672C\u3002",version:"2.0.0",defaultData:{title:"",columns:["\u540D\u79F0","\u8BF4\u660E"],rows:[["",""]]}},{kind:"callout",name:"\u63D0\u793A\u6846",description:"\u5E26\u6807\u9898\u548C Markdown \u6B63\u6587\u7684\u63D0\u793A\u3001\u5F15\u7528\u6216\u8BF4\u660E\u3002",version:"2.0.0",defaultData:{title:"\u63D0\u793A",content:"\u8865\u5145\u4E00\u6761\u8BF4\u660E\u3002"}},{kind:"toggle",name:"\u6298\u53E0\u5185\u5BB9",description:"\u6309\u9700\u5C55\u5F00\u8865\u5145\u4FE1\u606F\uFF0C\u6B63\u6587\u652F\u6301\u5BCC\u6587\u672C\u548C Markdown \u5BFC\u5165\u3002",version:"2.0.0",defaultData:{summary:"\u5C55\u5F00\u5185\u5BB9",content:"\u8FD9\u91CC\u662F\u8865\u5145\u8BF4\u660E\u3002",open:!1}},{kind:"stepper",name:"\u9010\u6B65\u5207\u6362",description:"\u6309\u987A\u5E8F\u9010\u6B65\u5C55\u793A\u5185\u5BB9\uFF1A\u9876\u90E8\u662F\u5E26\u7F16\u53F7\u7684\u6B65\u9AA4\u6761\uFF0C\u4E00\u6B21\u663E\u793A\u4E00\u6B65\uFF0C\u6BCF\u4E00\u6B65\u53EF\u4EE5\u653E\u6587\u5B57\u3001\u56FE\u7247\u3001\u8868\u683C\u548C\u5176\u4ED6\u7EC4\u4EF6\u3002",version:"1.0.0",defaultData:{steps:[{title:"\u7B2C\u4E00\u6B65",content:"\u8FD9\u4E00\u6B65\u7684\u5185\u5BB9\u3002"},{title:"\u7B2C\u4E8C\u6B65",content:"\u4E0B\u4E00\u6B65\u7684\u5185\u5BB9\u3002"}]}},{kind:"divider",name:"\u5206\u9694\u7EBF",description:"\u5728\u9875\u9762\u5185\u5BB9\u4E4B\u95F4\u5EFA\u7ACB\u8F7B\u91CF\u7684\u89C6\u89C9\u5206\u9694\u3002",version:"2.0.0",defaultData:{color:"#dce1d7"}},{kind:"code",name:"\u4EE3\u7801\u5757",description:"\u4FDD\u7559\u7F29\u8FDB\u4E0E\u6362\u884C\u7684\u4EE3\u7801\u7247\u6BB5\uFF0C\u53EF\u58F0\u660E\u8BED\u8A00\u5E76\u81EA\u5B9A\u4E49\u5916\u89C2\u3002",version:"2.0.0",defaultData:{content:"",language:""}}];var Nt=[{kind:"chart",name:"\u6570\u636E\u56FE\u8868",description:"\u4EA4\u4E92\u5F0F\u6298\u7EBF\u56FE\u3001\u67F1\u72B6\u56FE\u548C\u53EF\u5C55\u5F00\u7684\u539F\u59CB\u6570\u636E\u3002",defaultData:{title:"\u6570\u636E\u56FE\u8868",type:"line",labels:[],series:[],unit:""},version:"1.0.0"},{kind:"database",name:"\u6570\u636E\u5E93",description:"\u5E26\u7B5B\u9009\u3001\u6392\u5E8F\u548C\u8868\u683C/\u770B\u677F/\u65E5\u5386\u89C6\u56FE\u7684\u6570\u636E\u5E93\u3002\u5355\u5143\u683C\u652F\u6301\u6587\u5B57\u3001\u6570\u5B57\u3001\u9009\u62E9\u3001\u590D\u9009\u6846\u3001\u94FE\u63A5\u548C\u65E5\u671F\uFF1B\u65E5\u5386\u53EF\u6309\u6708\u3001\u6309\u5468\uFF08\u542B\u65F6\u95F4\u8F74\uFF09\u6216\u4EE5\u70ED\u529B\u56FE\u67E5\u770B\u3002",defaultData:{title:"\u6570\u636E\u5E93",columns:[{id:"name",name:"\u540D\u79F0",type:"text"}],rows:[]},version:"1.1.0"},{kind:"metrics",name:"\u5173\u952E\u6307\u6807",description:"\u663E\u793A\u6709\u6765\u6E90\u7684\u6570\u503C\u3001\u5355\u4F4D\u3001\u53D8\u5316\u548C\u8BF4\u660E\u3002",defaultData:{title:"\u5173\u952E\u6307\u6807",items:[]},version:"1.0.0"},{kind:"playground",name:"\u4EA4\u4E92\u8BA1\u7B97",description:"\u7528\u6ED1\u5757\u3001\u6B65\u8FDB\u3001\u5F00\u5173\u548C\u9009\u9879\u9A71\u52A8\u58F0\u660E\u5F0F\u516C\u5F0F\uFF0C\u5C55\u793A\u7ED3\u679C\u3001\u76EE\u6807\u5DEE\u8DDD\u3001\u6784\u6210\u5360\u6BD4\u4E0E\u52A0\u6743\u6392\u540D\u3002",defaultData:{title:"\u4EA4\u4E92\u8BA1\u7B97",inputs:[],operation:"sum",resultLabel:"\u8BA1\u7B97\u7ED3\u679C",unit:""},version:"1.1.0"},{kind:"gallery",name:"\u56FE\u7247\u753B\u5ECA",description:"\u5305\u542B\u56FE\u6CE8\u7684\u56FE\u7247\u96C6\u5408\u3002\u5BFC\u51FA\u79BB\u7EBF\u9875\u9762\u65F6\u4F7F\u7528\u5185\u5D4C PNG\u3001JPEG\u3001GIF\u3001WebP \u6216 AVIF\u3002",defaultData:{title:"\u56FE\u7247\u753B\u5ECA",columns:2,images:[]},version:"1.0.0"},{kind:"bookmark",name:"\u6765\u6E90\u4E66\u7B7E",description:"\u5E26\u6807\u9898\u3001\u63CF\u8FF0\u548C\u53EF\u9009\u7F29\u7565\u56FE\u7684\u5916\u90E8\u6765\u6E90\u94FE\u63A5\u3002",defaultData:{title:"",description:"",url:"",image:""},version:"1.0.0"},{kind:"mindmap",name:"\u601D\u7EF4\u5BFC\u56FE",description:"\u4E2D\u5FC3\u4E3B\u9898\u7684\u5206\u652F\u81EA\u7136\u5E73\u8861\u5C55\u5F00\uFF0C\u6216\u9009\u62E9\u5355\u5411\u5E03\u5C40\uFF1B\u652F\u6301\u952E\u76D8\u7F16\u8F91\u3001\u6298\u53E0\u548C\u64A4\u9500\u3002",defaultData:{title:"\u601D\u7EF4\u5BFC\u56FE",height:460,nodes:[{id:"root",parentId:null,label:"\u4E2D\u5FC3\u4E3B\u9898"},{id:"branch-1",parentId:"root",label:"\u4E3B\u9898\u4E00"},{id:"branch-2",parentId:"root",label:"\u4E3B\u9898\u4E8C"},{id:"branch-3",parentId:"branch-1",label:"\u5B50\u4E3B\u9898"}],layout:"radial",direction:"right"},version:"1.0.0"},{kind:"flowchart",name:"\u4EA4\u4E92\u6D41\u7A0B\u56FE",description:"\u57FA\u4E8E React Flow \u7684\u53EF\u7F29\u653E\u6D41\u7A0B\u56FE\uFF0C\u652F\u6301\u8282\u70B9\u8BE6\u60C5\u3001\u5206\u652F\u5173\u7CFB\u3001\u591A\u6761\u6D41\u7A0B\u548C\u7F16\u8F91\u8282\u70B9\uFF1B\u53EF\u9009\u8DEF\u7EBF\u9010\u6B65\u8BB2\u89E3\u4E0E\u9636\u6BB5\u64AD\u653E\uFF0C\u6309\u6B65\u9AA4\u9AD8\u4EAE\u8282\u70B9\u548C\u8FDE\u7EBF\u3002",version:"1.1.0",defaultData:{title:"\u4EA4\u4E92\u6D41\u7A0B\u56FE",flows:[{id:"process",label:"\u6D41\u7A0B",direction:"TB",nodes:[{id:"start",label:"\u660E\u786E\u95EE\u9898",kind:"request",detail:"\u63CF\u8FF0\u60F3\u7406\u89E3\u7684\u95EE\u9898\u4E0E\u8BFB\u8005\u9700\u8981\u3002"},{id:"work",label:"\u6574\u7406\u5185\u5BB9",kind:"skill",detail:"\u7EC4\u7EC7\u6709\u4F9D\u636E\u7684\u5185\u5BB9\u3002"},{id:"result",label:"\u9605\u8BFB\u4E0E\u63A2\u7D22",kind:"result",detail:"\u4F7F\u7528\u7ED3\u679C\u5B8C\u6210\u7406\u89E3\u3002"}],edges:[{id:"a",source:"start",target:"work"},{id:"b",source:"work",target:"result"}]}]}},{kind:"video",name:"\u89C6\u9891",description:"\u4FDD\u7559\u753B\u9762\u6BD4\u4F8B\u7684\u89C6\u9891\u64AD\u653E\u5668\uFF0C\u652F\u6301\u672C\u5730\u4E0A\u4F20\u3001\u5728\u7EBF\u6587\u4EF6\u3001\u5C01\u9762\u4E0E\u8BF4\u660E\u3002",version:"1.0.0",defaultData:{title:"",src:"",caption:"",fileName:"",aspectRatio:"16:9"}},{kind:"audio",name:"\u97F3\u9891",description:"\u7D27\u51D1\u97F3\u9891\u64AD\u653E\u5668\uFF0C\u652F\u6301\u672C\u5730\u4E0A\u4F20\u3001\u5728\u7EBF\u6587\u4EF6\u4E0E\u8BF4\u660E\u3002",version:"1.0.0",defaultData:{title:"",src:"",caption:"",fileName:""}},{kind:"pdf",name:"PDF \u6587\u6863",description:"\u5185\u7F6E PDF \u9605\u8BFB\u5668\uFF0C\u652F\u6301\u7FFB\u9875\u3001\u7F29\u653E\u3001\u521D\u59CB\u9875\u7801\u3001\u672C\u9875\u6587\u5B57\u548C\u4E0B\u8F7D\u3002",version:"1.0.0",defaultData:{title:"",src:"",caption:"",fileName:"",page:1,height:560}},{kind:"references",name:"\u53C2\u8003\u6587\u732E",description:"\u6309\u7F16\u53F7\u7EC4\u7EC7\u4F5C\u8005\u3001\u5E74\u4EFD\u3001\u6807\u9898\u3001\u51FA\u5904\u3001DOI\u3001\u94FE\u63A5\u4E0E\u5907\u6CE8\uFF0C\u652F\u6301\u6B63\u6587\u951A\u70B9\u5F15\u7528\u3002",version:"1.0.0",defaultData:{title:"\u53C2\u8003\u6587\u732E",items:[]}},{kind:"step-walkthrough",name:"\u5206\u6B65\u6F14\u793A",description:"\u7528\u4E00\u4E2A\u5177\u4F53\u4F8B\u5B50\u9010\u6B65\u6F14\u793A\u673A\u5236\uFF1A\u6BCF\u4E00\u6B65\u7ED9\u51FA\u4E00\u53E5\u8981\u70B9\uFF0C\u5DE6\u680F\u662F\u5B9E\u9645\u53D1\u751F\u7684\u8F93\u5165\u4E0E\u64CD\u4F5C\uFF0C\u53F3\u680F\u662F\u5404\u7EC4\u6210\u90E8\u5206\u6B64\u523B\u7684\u5177\u4F53\u6761\u76EE\uFF08\u65B0\u589E\u3001\u5DF2\u66F4\u65B0\u3001\u5DF2\u5931\u6548\u3001\u672A\u53D8\uFF09\uFF1B\u6700\u540E\u53EF\u5C55\u793A\u8F93\u51FA\u539F\u6587\u5E76\u9690\u85CF\u67D0\u4E00\u90E8\u5206\u4F5C\u5BF9\u6BD4\u3002",version:"1.0.0",defaultData:{title:"\u5206\u6B65\u6F14\u793A",parts:[{id:"state",label:"\u72B6\u6001"}],steps:[{id:"s1",label:"\u7B2C\u4E00\u6B65",takeaway:"\u8FD9\u4E00\u6B65\u7684\u8981\u70B9\u3002",actions:[{actor:"\u64CD\u4F5C",text:"\u63CF\u8FF0\u8FD9\u4E00\u6B65\u5B9E\u9645\u505A\u4E86\u4EC0\u4E48\u3002"}]}]}},{kind:"comparison-matrix",name:"\u5BF9\u6BD4\u77E9\u9635",description:"\u6309\u7EF4\u5EA6\u9010\u884C\u5BF9\u6BD4\u591A\u4E2A\u65B9\u6848\uFF0C\u7528\u91C7\u7528\u3001\u4E0D\u91C7\u7528\u3001\u90E8\u5206\u91C7\u7528\u7B49\u6807\u8BB0\u533A\u5206\uFF0C\u53EF\u7A81\u51FA\u81EA\u5DF1\u7684\u65B9\u6848\u5E76\u53EA\u770B\u5DEE\u5F02\u3002",defaultData:{title:"\u5BF9\u6BD4\u77E9\u9635",rows:[{id:"r1",label:"\u7EF4\u5EA6"}],columns:[{id:"a",label:"\u65B9\u6848 A"},{id:"b",label:"\u65B9\u6848 B"}],cells:[]},version:"1.0.0"},{kind:"status-tree",name:"\u72B6\u6001\u6811",description:"\u628A\u6761\u76EE\u6309\u7C7B\u522B\u5C55\u5F00\u6210\u6811\uFF0C\u7528\u989C\u8272\u3001\u56FE\u6807\u548C\u7EBF\u578B\u533A\u5206\u8D70\u901A\u3001\u6CA1\u8D70\u901A\u3001\u8FDB\u884C\u4E2D\u3001\u5F85\u63A2\u7D22\u4E0E\u6401\u7F6E\uFF0C\u70B9\u51FB\u67E5\u770B\u4F9D\u636E\u3002",defaultData:{title:"\u72B6\u6001\u6811",groups:[{id:"g1",label:"\u65B9\u5411",items:[{id:"i1",label:"\u6761\u76EE",status:"todo"}]}]},version:"1.0.0"},{kind:"experiment-tracker",name:"\u5B9E\u9A8C\u8FFD\u8E2A",description:"\u5728\u4E00\u4E2A\u753B\u9762\u91CC\u8FFD\u8E2A\u4E00\u7EC4\u5B9E\u9A8C\uFF1A\u968F\u65F6\u95F4\u7684\u6563\u70B9\u4E0E\u6700\u4F18\u524D\u6CBF\u3001\u53EF\u7B5B\u9009\u7684\u8FD0\u884C\u5217\u8868\u3001\u8D44\u6E90\u4E0E\u6210\u672C\uFF0C\u4EE5\u53CA\u8BAD\u7EC3\u66F2\u7EBF\u5C0F\u56FE\u3002",defaultData:{title:"\u5B9E\u9A8C\u8FFD\u8E2A",metric:{label:"\u6307\u6807",direction:"higher"},experiments:[{id:"E01",name:"\u57FA\u7EBF",status:"kept",start:"2026-01-01T09:00",score:0}]},version:"1.0.0"},{kind:"scene-3d",name:"3D \u573A\u666F",description:"\u7528 Three.js \u6E32\u67D3\u53EF\u65CB\u8F6C\u7684\u4E09\u7EF4\u6A21\u578B\uFF1A\u57FA\u672C\u5F62\u4F53\u3001\u5206\u7EC4\u3001\u5750\u6807\u7BAD\u5934\u3001\u7EBF\u6761\u4E0E\u6807\u6CE8\uFF0C\u6ED1\u5757\u53EF\u9A71\u52A8\u7269\u4F53\u7684\u5E73\u79FB\u3001\u65CB\u8F6C\u4E0E\u7F29\u653E\uFF0C\u5E76\u53EF\u81EA\u52A8\u6F14\u793A\u3002",defaultData:{title:"3D \u573A\u666F",parameters:[{id:"turn",label:"\u8F6C\u52A8",min:-180,max:180,step:1,value:30,unit:"\xB0",demo:!0}],objects:[{type:"group",id:"shapes",bindings:[{parameter:"turn",property:"rotation.y"}],children:[{type:"box",size:[1.2,1.2,1.2],position:[0,.6,0],color:"#4f7cac",label:"\u7ACB\u65B9\u4F53"},{type:"sphere",radius:.6,position:[1.9,.6,0],color:"#d1784c",label:"\u7403\u4F53"},{type:"cone",radius:.6,height:1.3,position:[-1.9,.65,0],color:"#5a9a78",label:"\u5706\u9525"}]}]},version:"1.0.0"},{kind:"sequence-diagram",name:"\u65F6\u5E8F\u56FE",description:"\u53C2\u4E0E\u8005\u751F\u547D\u7EBF\u4E0E\u6309\u65F6\u95F4\u6392\u5217\u7684\u8C03\u7528\u3001\u8FD4\u56DE\u548C\u5907\u6CE8\uFF0C\u53EF\u9010\u6B65\u64AD\u653E\uFF1A\u672A\u5230\u8FBE\u7684\u6B65\u9AA4\u53D8\u6DE1\uFF0C\u5F53\u524D\u6B65\u9AA4\u7684\u8BF4\u660E\u663E\u793A\u5728\u56FE\u4E0B\u65B9\uFF0C\u7A84\u5C4F\u6539\u4E3A\u7EB5\u5411\u6B65\u9AA4\u5217\u8868\u3002",defaultData:{title:"\u65F6\u5E8F\u56FE",actors:[{id:"user",label:"\u7528\u6237",tone:"slate"},{id:"web",label:"\u7F51\u9875",tone:"accent"},{id:"api",label:"\u670D\u52A1\u7AEF",tone:"teal"}],steps:[{from:"user",to:"web",label:"\u63D0\u4EA4\u8868\u5355",detail:"\u7528\u6237\u586B\u5199\u5185\u5BB9\u540E\u70B9\u51FB\u63D0\u4EA4\u3002"},{from:"web",to:"api",label:"\u53D1\u9001\u8BF7\u6C42",detail:"\u7F51\u9875\u628A\u8868\u5355\u5185\u5BB9\u53D1\u9001\u7ED9\u670D\u52A1\u7AEF\u3002"},{from:"api",to:"web",label:"\u8FD4\u56DE\u7ED3\u679C",kind:"reply",detail:"\u670D\u52A1\u7AEF\u4FDD\u5B58\u6210\u529F\u540E\u8FD4\u56DE\u65B0\u8BB0\u5F55\u7684\u7F16\u53F7\u3002"}]},version:"1.0.0"},{kind:"layer-diagram",name:"\u5206\u5C42\u67B6\u6784\u56FE",description:"\u81EA\u4E0A\u800C\u4E0B\u7684\u6C34\u5E73\u5206\u5C42\uFF0C\u6BCF\u5C42\u6709\u540D\u79F0\u3001\u8BF4\u660E\u3001\u8272\u8C03\u548C\u6A21\u5757\u6807\u7B7E\uFF1B\u70B9\u9009\u6A21\u5757\u5728\u56FE\u4E0B\u663E\u793A\u5B83\u7684\u804C\u8D23\u4E0E\u4F4D\u7F6E\u3002",defaultData:{layers:[{id:"ui",name:"\u754C\u9762\u5C42",modules:[{id:"pages",name:"\u9875\u9762",detail:"\u8D1F\u8D23\u5C55\u793A\u548C\u7528\u6237\u8F93\u5165\u3002"}]},{id:"service",name:"\u670D\u52A1\u5C42",modules:[{id:"api",name:"\u63A5\u53E3",detail:"\u5904\u7406\u8BF7\u6C42\u5E76\u8C03\u7528\u6570\u636E\u5C42\u3002"}]},{id:"data",name:"\u6570\u636E\u5C42",modules:[{id:"db",name:"\u6570\u636E\u5E93",detail:"\u4FDD\u5B58\u4E1A\u52A1\u6570\u636E\u3002"}]}],initial:"api"},version:"1.0.0"},{kind:"step-guide",name:"\u64CD\u4F5C\u6B65\u9AA4",description:"\u5E26\u7F16\u53F7\u7AD6\u8F74\u7684\u64CD\u4F5C\u6B65\u9AA4\uFF1A\u6BCF\u6B65\u6709\u8BF4\u660E\u3001\u53EF\u590D\u5236\u5E76\u6309\u5E73\u53F0\u5207\u6362\u7684\u4EE3\u7801\u3001\u63D0\u793A\u4E0E\u5B8C\u6210\u7ED3\u679C\uFF1B\u53EF\u52A0\u5012\u8BA1\u65F6\u4E0E\u65F6\u95F4\u7EBF\uFF0C\u4E5F\u53EF\u9010\u6B65\u4E13\u6CE8\u9605\u8BFB\u3002",defaultData:{steps:[{title:"\u5B89\u88C5\u4F9D\u8D56",body:"\u5728\u9879\u76EE\u76EE\u5F55\u4E2D\u8FD0\u884C\uFF1A",code:"npm install",lang:"sh",result:"\u7EC8\u7AEF\u663E\u793A `added` \u4E0E\u5B89\u88C5\u7684\u5305\u6570\u91CF\u3002"},{title:"\u542F\u52A8\u670D\u52A1",code:"npm run dev",lang:"sh",note:"\u4F7F\u7528\u671F\u95F4\u4FDD\u6301\u7EC8\u7AEF\u8FD0\u884C\u3002"},{title:"\u6253\u5F00\u6D4F\u89C8\u5668",body:"\u8BBF\u95EE\u7EC8\u7AEF\u663E\u793A\u7684\u5730\u5740\uFF0C\u786E\u8BA4\u9875\u9762\u6B63\u5E38\u663E\u793A\u3002"}]},version:"1.0.0"},{kind:"command-reference",name:"\u547D\u4EE4\u53C2\u8003",description:"\u6309\u5206\u7EC4\u5217\u51FA\u547D\u4EE4\uFF0C\u53EF\u641C\u7D22\u5E76\u9AD8\u4EAE\u5339\u914D\uFF0C\u6309\u5206\u7EC4\u7B5B\u9009\uFF1B\u5C55\u5F00\u6761\u76EE\u67E5\u770B\u8BF4\u660E\u3001\u53C2\u6570\u8868\u548C\u53EF\u590D\u5236\u7684\u793A\u4F8B\u3002",defaultData:{groups:[{id:"basic",label:"\u57FA\u7840"},{id:"data",label:"\u6570\u636E"}],commands:[{group:"basic",command:"app start [--port PORT]",summary:"\u542F\u52A8\u672C\u5730\u670D\u52A1",params:[{name:"--port PORT",meaning:"\u6307\u5B9A\u7AEF\u53E3\uFF0C\u9ED8\u8BA4 3000"}],examples:[{code:"app start --port 8080"}]},{group:"basic",command:"app status",summary:"\u67E5\u770B\u670D\u52A1\u72B6\u6001"},{group:"data",command:"app export --out FILE",summary:"\u628A\u6570\u636E\u5BFC\u51FA\u4E3A JSON \u6587\u4EF6",detail:"\u5BFC\u51FA\u524D\u4F1A\u5148\u4FDD\u5B58\u672A\u5B8C\u6210\u7684\u4FEE\u6539\u3002"}]},version:"1.0.0"},{kind:"structure-browser",name:"\u7ED3\u6784\u6D4F\u89C8\u5668",description:"\u5DE6\u4FA7\u662F\u53EF\u5C55\u5F00\u7684\u6587\u4EF6\u5939\u3001\u6587\u4EF6\u6216 JSON \u5B57\u6BB5\u6811\uFF0C\u53F3\u4FA7\u663E\u793A\u6240\u9009\u9879\u7684\u8DEF\u5F84\u3001\u7C7B\u578B\u3001\u8BF4\u660E\u548C\u53EF\u590D\u5236\u7684\u793A\u4F8B\u3002",defaultData:{nodes:[{name:"name",kind:"field",type:"string",badge:"\u5FC5\u586B",summary:"\u5305\u540D\uFF1A\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u548C\u8FDE\u5B57\u7B26\uFF0C\u53D1\u5E03\u540E\u4E0D\u80FD\u66F4\u6539\u3002"},{name:"version",kind:"field",type:"semver",badge:"\u5FC5\u586B",summary:"\u8BED\u4E49\u5316\u7248\u672C\uFF0C\u4F8B\u5982 `1.4.0`\u3002"},{name:"scripts",kind:"object",type:"object",summary:"\u53EF\u7528 `npm run <\u540D\u79F0>` \u6267\u884C\u7684\u547D\u4EE4\u3002",detail:"\u6BCF\u4E2A\u952E\u662F\u547D\u4EE4\u540D\uFF0C\u503C\u662F\u5728\u9879\u76EE\u6839\u76EE\u5F55\u6267\u884C\u7684 shell \u547D\u4EE4\u3002",example:`{
|
|
27
|
-
"dev": "vite",
|
|
28
|
-
"build": "vite build"
|
|
29
|
-
}`,exampleLang:"json",children:[{name:"dev",kind:"field",type:"string",summary:"\u542F\u52A8\u672C\u5730\u5F00\u53D1\u670D\u52A1\u3002"},{name:"build",kind:"field",type:"string",summary:"\u751F\u6210\u53EF\u53D1\u5E03\u7684\u4EA7\u7269\u3002"}]},{name:"dependencies",kind:"object",type:"object",badge:"\u53EF\u9009",summary:"\u8FD0\u884C\u65F6\u4F9D\u8D56\uFF1A\u5305\u540D\u5230\u7248\u672C\u8303\u56F4\u3002"}],initial:"scripts",caption:"\u70B9\u51FB\u5DE6\u4FA7\u4EFB\u4E00\u9879\u67E5\u770B\u8BF4\u660E\uFF1B\u7528 \u2191 \u2193 \u79FB\u52A8\uFF0C\u2192 \u5C55\u5F00\uFF0C\u2190 \u6536\u8D77\u3002"},version:"1.0.0"},{kind:"card-grid",name:"\u5361\u7247\u5BFC\u822A",description:"\u7528\u5E26\u56FE\u6807\u3001\u6807\u9898\u3001\u8BF4\u660E\u548C\u6807\u7B7E\u7684\u5361\u7247\u7EC4\u7EC7\u5165\u53E3\u6216\u5206\u7C7B\uFF0C\u53EF\u6574\u5361\u94FE\u63A5\uFF0C\u652F\u6301\u7F51\u683C\u4E0E\u7D27\u51D1\u5217\u8868\u4E24\u79CD\u6392\u5217\u3002",defaultData:{columns:3,cards:[{icon:"\u{1F680}",title:"\u5FEB\u901F\u4E0A\u624B",body:"\u5341\u5206\u949F\u5B8C\u6210\u5B89\u88C5\uFF0C\u8DD1\u901A\u7B2C\u4E00\u4E2A\u793A\u4F8B\u3002",tone:"brand",tag:"\u63A8\u8350"},{icon:"\u{1F9ED}",title:"\u6838\u5FC3\u6982\u5FF5",body:"\u4E86\u89E3\u9879\u76EE\u3001\u9875\u9762\u548C\u7EC4\u4EF6\u4E4B\u95F4\u7684\u5173\u7CFB\u3002",tone:"teal"},{icon:"\u{1F6E0}\uFE0F",title:"\u5E38\u89C1\u95EE\u9898",body:"\u5B89\u88C5\u5931\u8D25\u3001\u7AEF\u53E3\u5360\u7528\u548C\u6743\u9650\u95EE\u9898\u7684\u5904\u7406\u529E\u6CD5\u3002",tone:"warm"}]},version:"1.0.0"},{kind:"roadmap",name:"\u8DEF\u7EBF\u56FE",description:"\u6309\u65E5\u671F\u9605\u8BFB\u4E00\u4EFD\u4EE5\u5929\u6216\u5468\u8BA1\u7684\u8BA1\u5212\uFF1A\u5DE5\u4F5C\u6D41\u6CF3\u9053\u3001\u8D1F\u8D23\u4EBA\u989C\u8272\u3001\u72B6\u6001\u3001\u4F9D\u8D56\u4E0E\u91CC\u7A0B\u7891\uFF0C\u53EF\u6309\u8D1F\u8D23\u4EBA\u7A81\u51FA\u5E76\u67E5\u770B\u6BCF\u9879\u7684\u5B8C\u6210\u6807\u51C6\u4E0E\u5B83\u89E3\u9501\u7684\u5DE5\u4F5C\u3002",defaultData:{title:"\u8DEF\u7EBF\u56FE",start:"2026-11-02",end:"2026-11-15",today:"2026-11-04",owners:[{id:"a",label:"\u8D1F\u8D23\u4EBA A",color:"#3b74b8"},{id:"b",label:"\u8D1F\u8D23\u4EBA B",color:"#2f8f6b"}],lanes:[{id:"build",label:"\u5F00\u53D1"},{id:"launch",label:"\u53D1\u5E03"}],items:[{id:"design",lane:"build",owner:"a",title:"\u65B9\u6848\u8BBE\u8BA1",start:"2026-11-02",end:"2026-11-04",status:"done"},{id:"impl",lane:"build",owner:"b",title:"\u5B9E\u73B0\u4E0E\u6D4B\u8BD5",start:"2026-11-05",end:"2026-11-11",status:"active",progress:.3,depends:["design"]},{id:"release",lane:"launch",owner:"a",title:"\u53D1\u5E03\u4E0E\u516C\u544A",start:"2026-11-12",end:"2026-11-13",status:"todo",depends:["impl"],doneWhen:"\u65B0\u7248\u672C\u4E0A\u7EBF\u5E76\u53D1\u51FA\u516C\u544A\u3002"}],milestones:[{date:"2026-11-13",label:"\u4E0A\u7EBF"}]},version:"1.0.0"},{kind:"waterfall",name:"\u7011\u5E03\u6865\u56FE",description:"\u4ECE\u671F\u521D\u503C\u7ECF\u8FC7\u9010\u9879\u589E\u52A0\u4E0E\u51CF\u5C11\u8D70\u5230\u671F\u672B\u503C\uFF0C\u70B9\u51FB\u4EFB\u4E00\u67F1\u5B50\u67E5\u770B\u5B83\u7684\u6784\u6210\u4E0E\u5360\u6BD4\uFF1B\u5404\u9879\u7D2F\u8BA1\u4E0E\u5408\u8BA1\u5BF9\u4E0D\u4E0A\u65F6\u7ED9\u51FA\u63D0\u793A\u3002",defaultData:{title:"\u7011\u5E03\u6865\u56FE",steps:[{id:"start",label:"\u671F\u521D",kind:"total",value:100},{id:"gain",label:"\u589E\u52A0",kind:"up",value:30,breakdown:{title:"\u589E\u52A0\u6765\u6E90",items:[{label:"\u6765\u6E90 A",value:20},{label:"\u6765\u6E90 B",value:10}]}},{id:"loss",label:"\u51CF\u5C11",kind:"down",value:12},{id:"end",label:"\u671F\u672B",kind:"total",value:118}]},version:"1.0.0"},{kind:"event-timeline",name:"\u4E8B\u4EF6\u65F6\u95F4\u7EBF",description:"\u5728\u65F6\u95F4\u8F74\u4E0A\u53E0\u52A0 1\u20133 \u6761\u6307\u6807\u66F2\u7EBF\u3001\u9636\u6BB5\u8272\u5E26\u548C\u4E8B\u4EF6\u6807\u8BB0\uFF0C\u62D6\u52A8\u6216\u70B9\u51FB\u4E8B\u4EF6\u65F6\u66F2\u7EBF\u6E38\u6807\u4E0E\u4E8B\u4EF6\u5217\u8868\u540C\u6B65\u3002",defaultData:{title:"\u4E8B\u4EF6\u65F6\u95F4\u7EBF",axis:{type:"number",start:1,prefix:"\u7B2C ",unit:" \u5929",label:"\u8FDB\u5EA6"},series:[{id:"s1",label:"\u6307\u6807",values:[12,14,13,21,26,24,30]}],kinds:[{id:"change",label:"\u53D8\u66F4",tone:"info"},{id:"result",label:"\u7ED3\u679C",tone:"good"}],events:[{at:1,kind:"change",title:"\u5F00\u59CB\u8C03\u6574",detail:"\u8BF4\u660E\u8FD9\u4E00\u6B65\u505A\u4E86\u4EC0\u4E48\u3002"},{at:3,kind:"change",title:"\u7B2C\u4E8C\u6B21\u8C03\u6574",detail:"\u8BF4\u660E\u4E3A\u4F55\u6307\u6807\u5728\u8FD9\u4E4B\u540E\u4E0A\u5347\u3002"},{at:6,kind:"result",title:"\u8FBE\u5230\u76EE\u6807",detail:"\u8BB0\u5F55\u7ED3\u8BBA\u4E0E\u4F9D\u636E\u3002"}]},version:"1.0.0"}];var fy=[{kind:"page",name:"Page \u9875\u9762",description:"\u6309\u987A\u5E8F\u7EC4\u7EC7\u6587\u5B57\u3001\u56FE\u7247\u548C\u7EC4\u4EF6\uFF0C\u53EF\u5D4C\u5165\u9875\u9762\u6216\u767D\u677F\uFF0C\u4E5F\u53EF\u5C55\u5F00\u7F16\u8F91\u3002",version:"1.0.0",insertion:{nodeType:"surface",surfaceKind:"page"},defaultData:{title:"Page"}},{kind:"board",name:"Board \u767D\u677F",description:"\u5728\u72EC\u7ACB\u7A7A\u95F4\u4E2D\u6446\u653E\u7EC4\u4EF6\u548C\u7ED8\u753B\uFF0C\u53EF\u5D4C\u5165\u9875\u9762\u6216\u5176\u4ED6\u767D\u677F\u3002",version:"1.0.0",insertion:{nodeType:"surface",surfaceKind:"board"},defaultData:{title:"Board"}}];var X2=[{kind:"g2-bar",name:"\u67F1\u72B6\u56FE",description:"\u6BD4\u8F83\u7C7B\u522B\u4E4B\u95F4\u7684\u6570\u503C\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u67F1\u72B6\u56FE",datasets:{main:[{genre:"Sports",sold:275},{genre:"Strategy",sold:115},{genre:"Action",sold:120},{genre:"Shooter",sold:350},{genre:"Other",sold:150}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-line",name:"\u6298\u7EBF\u56FE",description:"\u89C2\u5BDF\u8FDE\u7EED\u53D8\u5316\u4E0E\u8D8B\u52BF\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u6298\u7EBF\u56FE",datasets:{main:[{date:"2007-04-23T00:00:00.000Z",close:93.24},{date:"2007-05-01T00:00:00.000Z",close:99.47},{date:"2007-05-08T00:00:00.000Z",close:105.06},{date:"2007-05-14T00:00:00.000Z",close:107.52},{date:"2007-05-21T00:00:00.000Z",close:113.54},{date:"2007-05-29T00:00:00.000Z",close:118.77},{date:"2007-06-06T00:00:00.000Z",close:123.64},{date:"2007-06-12T00:00:00.000Z",close:117.5},{date:"2007-06-19T00:00:00.000Z",close:121.55},{date:"2007-06-26T00:00:00.000Z",close:121.89},{date:"2007-07-05T00:00:00.000Z",close:132.75},{date:"2007-07-11T00:00:00.000Z",close:134.07},{date:"2007-07-18T00:00:00.000Z",close:140},{date:"2007-07-25T00:00:00.000Z",close:146},{date:"2007-08-02T00:00:00.000Z",close:136.49},{date:"2007-08-09T00:00:00.000Z",close:126.39},{date:"2007-08-15T00:00:00.000Z",close:117.05},{date:"2007-08-22T00:00:00.000Z",close:131.07},{date:"2007-08-29T00:00:00.000Z",close:136.25},{date:"2007-09-07T00:00:00.000Z",close:131.77},{date:"2007-09-13T00:00:00.000Z",close:138.81},{date:"2007-09-20T00:00:00.000Z",close:144.15},{date:"2007-09-27T00:00:00.000Z",close:153.47},{date:"2007-10-05T00:00:00.000Z",close:161.45},{date:"2007-10-11T00:00:00.000Z",close:167.25},{date:"2007-10-18T00:00:00.000Z",close:170.42},{date:"2007-10-25T00:00:00.000Z",close:184.7},{date:"2007-11-02T00:00:00.000Z",close:187.87},{date:"2007-11-09T00:00:00.000Z",close:165.37},{date:"2007-11-15T00:00:00.000Z",close:166.39},{date:"2007-11-25T00:00:00.000Z",close:172.54},{date:"2007-12-03T00:00:00.000Z",close:178.86},{date:"2007-12-09T00:00:00.000Z",close:194.21},{date:"2007-12-16T00:00:00.000Z",close:184.4},{date:"2007-12-23T00:00:00.000Z",close:198.8},{date:"2008-01-02T00:00:00.000Z",close:194.84},{date:"2008-01-09T00:00:00.000Z",close:179.4},{date:"2008-01-15T00:00:00.000Z",close:159.64},{date:"2008-01-23T00:00:00.000Z",close:135.6},{date:"2008-01-30T00:00:00.000Z",close:135.36},{date:"2008-02-07T00:00:00.000Z",close:121.24},{date:"2008-02-13T00:00:00.000Z",close:127.46},{date:"2008-02-21T00:00:00.000Z",close:119.46},{date:"2008-02-28T00:00:00.000Z",close:125.02},{date:"2008-03-07T00:00:00.000Z",close:122.25},{date:"2008-03-13T00:00:00.000Z",close:126.61},{date:"2008-03-23T00:00:00.000Z",close:139.53},{date:"2008-03-30T00:00:00.000Z",close:143.5},{date:"2008-04-07T00:00:00.000Z",close:155.89},{date:"2008-04-13T00:00:00.000Z",close:147.78},{date:"2008-04-20T00:00:00.000Z",close:168.16},{date:"2008-04-27T00:00:00.000Z",close:172.24},{date:"2008-05-05T00:00:00.000Z",close:184.73},{date:"2008-05-11T00:00:00.000Z",close:188.16},{date:"2008-05-18T00:00:00.000Z",close:183.6},{date:"2008-05-26T00:00:00.000Z",close:186.43},{date:"2008-06-03T00:00:00.000Z",close:185.37},{date:"2008-06-09T00:00:00.000Z",close:185.64},{date:"2008-06-16T00:00:00.000Z",close:181.43},{date:"2008-06-23T00:00:00.000Z",close:173.25},{date:"2008-07-01T00:00:00.000Z",close:174.68},{date:"2008-07-09T00:00:00.000Z",close:174.25},{date:"2008-07-15T00:00:00.000Z",close:172.81},{date:"2008-07-22T00:00:00.000Z",close:166.26},{date:"2008-07-29T00:00:00.000Z",close:159.88},{date:"2008-08-06T00:00:00.000Z",close:164.19},{date:"2008-08-12T00:00:00.000Z",close:179.3},{date:"2008-08-19T00:00:00.000Z",close:175.84},{date:"2008-08-26T00:00:00.000Z",close:174.67},{date:"2008-09-04T00:00:00.000Z",close:161.22},{date:"2008-09-10T00:00:00.000Z",close:152.65},{date:"2008-09-17T00:00:00.000Z",close:134.09},{date:"2008-09-24T00:00:00.000Z",close:131.93},{date:"2008-10-02T00:00:00.000Z",close:100.1},{date:"2008-10-09T00:00:00.000Z",close:88.74},{date:"2008-10-15T00:00:00.000Z",close:101.89},{date:"2008-10-22T00:00:00.000Z",close:98.23},{date:"2008-10-29T00:00:00.000Z",close:111.04},{date:"2008-11-06T00:00:00.000Z",close:99.1},{date:"2008-11-12T00:00:00.000Z",close:96.44},{date:"2008-11-19T00:00:00.000Z",close:80.49},{date:"2008-11-26T00:00:00.000Z",close:95},{date:"2008-12-04T00:00:00.000Z",close:91.41},{date:"2008-12-10T00:00:00.000Z",close:95},{date:"2008-12-17T00:00:00.000Z",close:89.43},{date:"2008-12-24T00:00:00.000Z",close:85.04},{date:"2009-01-01T00:00:00.000Z",close:85.35},{date:"2009-01-08T00:00:00.000Z",close:92.7},{date:"2009-01-14T00:00:00.000Z",close:83.38},{date:"2009-01-22T00:00:00.000Z",close:88.36},{date:"2009-01-29T00:00:00.000Z",close:90.13},{date:"2009-02-06T00:00:00.000Z",close:99.72},{date:"2009-02-12T00:00:00.000Z",close:99.16},{date:"2009-02-22T00:00:00.000Z",close:86.95},{date:"2009-03-02T00:00:00.000Z",close:87.94},{date:"2009-03-09T00:00:00.000Z",close:83.11},{date:"2009-03-15T00:00:00.000Z",close:95.42},{date:"2009-03-22T00:00:00.000Z",close:107.66},{date:"2009-03-29T00:00:00.000Z",close:104.49},{date:"2009-04-06T00:00:00.000Z",close:118.45},{date:"2009-04-12T00:00:00.000Z",close:120.22},{date:"2009-04-19T00:00:00.000Z",close:120.5},{date:"2009-04-26T00:00:00.000Z",close:124.73},{date:"2009-05-04T00:00:00.000Z",close:132.07},{date:"2009-05-10T00:00:00.000Z",close:129.57},{date:"2009-05-17T00:00:00.000Z",close:126.65},{date:"2009-05-25T00:00:00.000Z",close:130.78},{date:"2009-06-02T00:00:00.000Z",close:139.49},{date:"2009-06-09T00:00:00.000Z",close:142.72},{date:"2009-06-15T00:00:00.000Z",close:136.35},{date:"2009-06-22T00:00:00.000Z",close:134.01},{date:"2009-06-29T00:00:00.000Z",close:142.43},{date:"2009-07-07T00:00:00.000Z",close:135.4},{date:"2009-07-13T00:00:00.000Z",close:142.27},{date:"2009-07-20T00:00:00.000Z",close:151.51},{date:"2009-07-27T00:00:00.000Z",close:160},{date:"2009-08-04T00:00:00.000Z",close:165.55},{date:"2009-08-11T00:00:00.000Z",close:165.31},{date:"2009-08-18T00:00:00.000Z",close:164.6},{date:"2009-08-25T00:00:00.000Z",close:167.41},{date:"2009-09-02T00:00:00.000Z",close:165.18},{date:"2009-09-09T00:00:00.000Z",close:172.56},{date:"2009-09-16T00:00:00.000Z",close:184.55},{date:"2009-09-23T00:00:00.000Z",close:183.82},{date:"2009-10-01T00:00:00.000Z",close:180.86},{date:"2009-10-08T00:00:00.000Z",close:189.27},{date:"2009-10-14T00:00:00.000Z",close:190.56},{date:"2009-10-21T00:00:00.000Z",close:205.2},{date:"2009-10-28T00:00:00.000Z",close:196.35},{date:"2009-11-05T00:00:00.000Z",close:194.03},{date:"2009-11-11T00:00:00.000Z",close:201.99},{date:"2009-11-18T00:00:00.000Z",close:200.51},{date:"2009-11-25T00:00:00.000Z",close:204.19},{date:"2009-12-03T00:00:00.000Z",close:196.48},{date:"2009-12-09T00:00:00.000Z",close:196.43},{date:"2009-12-16T00:00:00.000Z",close:191.86},{date:"2009-12-23T00:00:00.000Z",close:209.04},{date:"2009-12-30T00:00:00.000Z",close:210.73},{date:"2010-01-07T00:00:00.000Z",close:210.58},{date:"2010-01-13T00:00:00.000Z",close:209.43},{date:"2010-01-20T00:00:00.000Z",close:208.07},{date:"2010-01-27T00:00:00.000Z",close:199.29},{date:"2010-02-04T00:00:00.000Z",close:192.05},{date:"2010-02-10T00:00:00.000Z",close:198.67},{date:"2010-02-17T00:00:00.000Z",close:202.93},{date:"2010-02-24T00:00:00.000Z",close:202},{date:"2010-03-04T00:00:00.000Z",close:210.71},{date:"2010-03-10T00:00:00.000Z",close:225.5},{date:"2010-03-17T00:00:00.000Z",close:224.65},{date:"2010-03-24T00:00:00.000Z",close:226.65},{date:"2010-04-01T00:00:00.000Z",close:235.97},{date:"2010-04-08T00:00:00.000Z",close:239.95},{date:"2010-04-14T00:00:00.000Z",close:248.92},{date:"2010-04-21T00:00:00.000Z",close:266.47},{date:"2010-04-28T00:00:00.000Z",close:268.64},{date:"2010-05-06T00:00:00.000Z",close:246.25},{date:"2010-05-12T00:00:00.000Z",close:258.36},{date:"2010-05-19T00:00:00.000Z",close:237.76},{date:"2010-05-26T00:00:00.000Z",close:253.35},{date:"2010-06-03T00:00:00.000Z",close:263.12},{date:"2010-06-09T00:00:00.000Z",close:250.51},{date:"2010-06-16T00:00:00.000Z",close:271.87},{date:"2010-06-23T00:00:00.000Z",close:269},{date:"2010-07-01T00:00:00.000Z",close:248.48},{date:"2010-07-08T00:00:00.000Z",close:258.09},{date:"2010-07-14T00:00:00.000Z",close:251.45},{date:"2010-07-21T00:00:00.000Z",close:259.02},{date:"2010-07-28T00:00:00.000Z",close:258.11},{date:"2010-08-05T00:00:00.000Z",close:261.7},{date:"2010-08-11T00:00:00.000Z",close:251.79},{date:"2010-08-18T00:00:00.000Z",close:249.88},{date:"2010-08-25T00:00:00.000Z",close:240.28},{date:"2010-09-02T00:00:00.000Z",close:252.17},{date:"2010-09-09T00:00:00.000Z",close:263.07},{date:"2010-09-15T00:00:00.000Z",close:276.57},{date:"2010-09-22T00:00:00.000Z",close:288.92},{date:"2010-09-29T00:00:00.000Z",close:283.75},{date:"2010-10-07T00:00:00.000Z",close:289.22},{date:"2010-10-13T00:00:00.000Z",close:302.31},{date:"2010-10-20T00:00:00.000Z",close:309.52},{date:"2010-10-27T00:00:00.000Z",close:305.24},{date:"2010-11-04T00:00:00.000Z",close:318.27},{date:"2010-11-10T00:00:00.000Z",close:316.66},{date:"2010-11-17T00:00:00.000Z",close:308.43},{date:"2010-11-25T00:00:00.000Z",close:315},{date:"2010-12-03T00:00:00.000Z",close:317.44},{date:"2010-12-09T00:00:00.000Z",close:320.56},{date:"2010-12-16T00:00:00.000Z",close:320.61},{date:"2010-12-26T00:00:00.000Z",close:324.68},{date:"2011-01-03T00:00:00.000Z",close:329.57},{date:"2011-01-09T00:00:00.000Z",close:342.46},{date:"2011-01-17T00:00:00.000Z",close:340.65},{date:"2011-01-24T00:00:00.000Z",close:341.4},{date:"2011-02-01T00:00:00.000Z",close:345.03},{date:"2011-02-08T00:00:00.000Z",close:355.2},{date:"2011-02-14T00:00:00.000Z",close:359.9},{date:"2011-02-22T00:00:00.000Z",close:342.62},{date:"2011-03-02T00:00:00.000Z",close:352.12},{date:"2011-03-09T00:00:00.000Z",close:352.47},{date:"2011-03-15T00:00:00.000Z",close:330.01},{date:"2011-03-22T00:00:00.000Z",close:339.19},{date:"2011-03-29T00:00:00.000Z",close:348.63},{date:"2011-04-06T00:00:00.000Z",close:338.04},{date:"2011-04-12T00:00:00.000Z",close:336.13},{date:"2011-04-19T00:00:00.000Z",close:342.41},{date:"2011-04-27T00:00:00.000Z",close:346.75},{date:"2011-05-05T00:00:00.000Z",close:346.75},{date:"2011-05-11T00:00:00.000Z",close:346.57},{date:"2011-05-18T00:00:00.000Z",close:340.53},{date:"2011-05-25T00:00:00.000Z",close:335},{date:"2011-06-03T00:00:00.000Z",close:343.44},{date:"2011-06-09T00:00:00.000Z",close:325.9},{date:"2011-06-16T00:00:00.000Z",close:320.26},{date:"2011-06-23T00:00:00.000Z",close:326.35},{date:"2011-07-01T00:00:00.000Z",close:343.26},{date:"2011-07-10T00:00:00.000Z",close:354},{date:"2011-07-17T00:00:00.000Z",close:373.8},{date:"2011-07-24T00:00:00.000Z",close:398.5},{date:"2011-08-01T00:00:00.000Z",close:396.75},{date:"2011-08-08T00:00:00.000Z",close:353.21},{date:"2011-08-14T00:00:00.000Z",close:383.41},{date:"2011-08-21T00:00:00.000Z",close:356.44},{date:"2011-08-28T00:00:00.000Z",close:389.97},{date:"2011-09-06T00:00:00.000Z",close:379.74},{date:"2011-09-12T00:00:00.000Z",close:384.62},{date:"2011-09-19T00:00:00.000Z",close:413.45},{date:"2011-09-26T00:00:00.000Z",close:399.26},{date:"2011-10-04T00:00:00.000Z",close:372.5},{date:"2011-10-10T00:00:00.000Z",close:400.29},{date:"2011-10-17T00:00:00.000Z",close:422.24},{date:"2011-10-24T00:00:00.000Z",close:397.77},{date:"2011-11-01T00:00:00.000Z",close:396.51},{date:"2011-11-08T00:00:00.000Z",close:406.23},{date:"2011-11-14T00:00:00.000Z",close:388.83},{date:"2011-11-21T00:00:00.000Z",close:376.51},{date:"2011-11-29T00:00:00.000Z",close:382.2},{date:"2011-12-07T00:00:00.000Z",close:389.09},{date:"2011-12-13T00:00:00.000Z",close:380.19},{date:"2011-12-20T00:00:00.000Z",close:396.44},{date:"2011-12-28T00:00:00.000Z",close:405.12},{date:"2012-01-06T00:00:00.000Z",close:422.4},{date:"2012-01-12T00:00:00.000Z",close:419.81},{date:"2012-01-22T00:00:00.000Z",close:427.41},{date:"2012-01-29T00:00:00.000Z",close:453.01},{date:"2012-02-06T00:00:00.000Z",close:463.97},{date:"2012-02-12T00:00:00.000Z",close:502.6},{date:"2012-02-20T00:00:00.000Z",close:514.85},{date:"2012-02-27T00:00:00.000Z",close:535.41},{date:"2012-03-06T00:00:00.000Z",close:530.26},{date:"2012-03-12T00:00:00.000Z",close:568.1},{date:"2012-03-19T00:00:00.000Z",close:605.96},{date:"2012-03-26T00:00:00.000Z",close:614.48},{date:"2012-04-03T00:00:00.000Z",close:629.32},{date:"2012-04-10T00:00:00.000Z",close:626.2},{date:"2012-04-17T00:00:00.000Z",close:608.34},{date:"2012-04-24T00:00:00.000Z",close:610},{date:"2012-05-01T00:00:00.000Z",close:582.13}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-area",name:"\u9762\u79EF\u56FE",description:"\u901A\u8FC7\u586B\u5145\u9762\u79EF\u5F3A\u8C03\u8D8B\u52BF\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u9762\u79EF\u56FE",datasets:{main:[{date:"2007-04-23T00:00:00.000Z",close:93.24},{date:"2007-05-01T00:00:00.000Z",close:99.47},{date:"2007-05-08T00:00:00.000Z",close:105.06},{date:"2007-05-14T00:00:00.000Z",close:107.52},{date:"2007-05-21T00:00:00.000Z",close:113.54},{date:"2007-05-29T00:00:00.000Z",close:118.77},{date:"2007-06-06T00:00:00.000Z",close:123.64},{date:"2007-06-12T00:00:00.000Z",close:117.5},{date:"2007-06-19T00:00:00.000Z",close:121.55},{date:"2007-06-26T00:00:00.000Z",close:121.89},{date:"2007-07-05T00:00:00.000Z",close:132.75},{date:"2007-07-11T00:00:00.000Z",close:134.07},{date:"2007-07-18T00:00:00.000Z",close:140},{date:"2007-07-25T00:00:00.000Z",close:146},{date:"2007-08-02T00:00:00.000Z",close:136.49},{date:"2007-08-09T00:00:00.000Z",close:126.39},{date:"2007-08-15T00:00:00.000Z",close:117.05},{date:"2007-08-22T00:00:00.000Z",close:131.07},{date:"2007-08-29T00:00:00.000Z",close:136.25},{date:"2007-09-07T00:00:00.000Z",close:131.77},{date:"2007-09-13T00:00:00.000Z",close:138.81},{date:"2007-09-20T00:00:00.000Z",close:144.15},{date:"2007-09-27T00:00:00.000Z",close:153.47},{date:"2007-10-05T00:00:00.000Z",close:161.45},{date:"2007-10-11T00:00:00.000Z",close:167.25},{date:"2007-10-18T00:00:00.000Z",close:170.42},{date:"2007-10-25T00:00:00.000Z",close:184.7},{date:"2007-11-02T00:00:00.000Z",close:187.87},{date:"2007-11-09T00:00:00.000Z",close:165.37},{date:"2007-11-15T00:00:00.000Z",close:166.39},{date:"2007-11-25T00:00:00.000Z",close:172.54},{date:"2007-12-03T00:00:00.000Z",close:178.86},{date:"2007-12-09T00:00:00.000Z",close:194.21},{date:"2007-12-16T00:00:00.000Z",close:184.4},{date:"2007-12-23T00:00:00.000Z",close:198.8},{date:"2008-01-02T00:00:00.000Z",close:194.84},{date:"2008-01-09T00:00:00.000Z",close:179.4},{date:"2008-01-15T00:00:00.000Z",close:159.64},{date:"2008-01-23T00:00:00.000Z",close:135.6},{date:"2008-01-30T00:00:00.000Z",close:135.36},{date:"2008-02-07T00:00:00.000Z",close:121.24},{date:"2008-02-13T00:00:00.000Z",close:127.46},{date:"2008-02-21T00:00:00.000Z",close:119.46},{date:"2008-02-28T00:00:00.000Z",close:125.02},{date:"2008-03-07T00:00:00.000Z",close:122.25},{date:"2008-03-13T00:00:00.000Z",close:126.61},{date:"2008-03-23T00:00:00.000Z",close:139.53},{date:"2008-03-30T00:00:00.000Z",close:143.5},{date:"2008-04-07T00:00:00.000Z",close:155.89},{date:"2008-04-13T00:00:00.000Z",close:147.78},{date:"2008-04-20T00:00:00.000Z",close:168.16},{date:"2008-04-27T00:00:00.000Z",close:172.24},{date:"2008-05-05T00:00:00.000Z",close:184.73},{date:"2008-05-11T00:00:00.000Z",close:188.16},{date:"2008-05-18T00:00:00.000Z",close:183.6},{date:"2008-05-26T00:00:00.000Z",close:186.43},{date:"2008-06-03T00:00:00.000Z",close:185.37},{date:"2008-06-09T00:00:00.000Z",close:185.64},{date:"2008-06-16T00:00:00.000Z",close:181.43},{date:"2008-06-23T00:00:00.000Z",close:173.25},{date:"2008-07-01T00:00:00.000Z",close:174.68},{date:"2008-07-09T00:00:00.000Z",close:174.25},{date:"2008-07-15T00:00:00.000Z",close:172.81},{date:"2008-07-22T00:00:00.000Z",close:166.26},{date:"2008-07-29T00:00:00.000Z",close:159.88},{date:"2008-08-06T00:00:00.000Z",close:164.19},{date:"2008-08-12T00:00:00.000Z",close:179.3},{date:"2008-08-19T00:00:00.000Z",close:175.84},{date:"2008-08-26T00:00:00.000Z",close:174.67},{date:"2008-09-04T00:00:00.000Z",close:161.22},{date:"2008-09-10T00:00:00.000Z",close:152.65},{date:"2008-09-17T00:00:00.000Z",close:134.09},{date:"2008-09-24T00:00:00.000Z",close:131.93},{date:"2008-10-02T00:00:00.000Z",close:100.1},{date:"2008-10-09T00:00:00.000Z",close:88.74},{date:"2008-10-15T00:00:00.000Z",close:101.89},{date:"2008-10-22T00:00:00.000Z",close:98.23},{date:"2008-10-29T00:00:00.000Z",close:111.04},{date:"2008-11-06T00:00:00.000Z",close:99.1},{date:"2008-11-12T00:00:00.000Z",close:96.44},{date:"2008-11-19T00:00:00.000Z",close:80.49},{date:"2008-11-26T00:00:00.000Z",close:95},{date:"2008-12-04T00:00:00.000Z",close:91.41},{date:"2008-12-10T00:00:00.000Z",close:95},{date:"2008-12-17T00:00:00.000Z",close:89.43},{date:"2008-12-24T00:00:00.000Z",close:85.04},{date:"2009-01-01T00:00:00.000Z",close:85.35},{date:"2009-01-08T00:00:00.000Z",close:92.7},{date:"2009-01-14T00:00:00.000Z",close:83.38},{date:"2009-01-22T00:00:00.000Z",close:88.36},{date:"2009-01-29T00:00:00.000Z",close:90.13},{date:"2009-02-06T00:00:00.000Z",close:99.72},{date:"2009-02-12T00:00:00.000Z",close:99.16},{date:"2009-02-22T00:00:00.000Z",close:86.95},{date:"2009-03-02T00:00:00.000Z",close:87.94},{date:"2009-03-09T00:00:00.000Z",close:83.11},{date:"2009-03-15T00:00:00.000Z",close:95.42},{date:"2009-03-22T00:00:00.000Z",close:107.66},{date:"2009-03-29T00:00:00.000Z",close:104.49},{date:"2009-04-06T00:00:00.000Z",close:118.45},{date:"2009-04-12T00:00:00.000Z",close:120.22},{date:"2009-04-19T00:00:00.000Z",close:120.5},{date:"2009-04-26T00:00:00.000Z",close:124.73},{date:"2009-05-04T00:00:00.000Z",close:132.07},{date:"2009-05-10T00:00:00.000Z",close:129.57},{date:"2009-05-17T00:00:00.000Z",close:126.65},{date:"2009-05-25T00:00:00.000Z",close:130.78},{date:"2009-06-02T00:00:00.000Z",close:139.49},{date:"2009-06-09T00:00:00.000Z",close:142.72},{date:"2009-06-15T00:00:00.000Z",close:136.35},{date:"2009-06-22T00:00:00.000Z",close:134.01},{date:"2009-06-29T00:00:00.000Z",close:142.43},{date:"2009-07-07T00:00:00.000Z",close:135.4},{date:"2009-07-13T00:00:00.000Z",close:142.27},{date:"2009-07-20T00:00:00.000Z",close:151.51},{date:"2009-07-27T00:00:00.000Z",close:160},{date:"2009-08-04T00:00:00.000Z",close:165.55},{date:"2009-08-11T00:00:00.000Z",close:165.31},{date:"2009-08-18T00:00:00.000Z",close:164.6},{date:"2009-08-25T00:00:00.000Z",close:167.41},{date:"2009-09-02T00:00:00.000Z",close:165.18},{date:"2009-09-09T00:00:00.000Z",close:172.56},{date:"2009-09-16T00:00:00.000Z",close:184.55},{date:"2009-09-23T00:00:00.000Z",close:183.82},{date:"2009-10-01T00:00:00.000Z",close:180.86},{date:"2009-10-08T00:00:00.000Z",close:189.27},{date:"2009-10-14T00:00:00.000Z",close:190.56},{date:"2009-10-21T00:00:00.000Z",close:205.2},{date:"2009-10-28T00:00:00.000Z",close:196.35},{date:"2009-11-05T00:00:00.000Z",close:194.03},{date:"2009-11-11T00:00:00.000Z",close:201.99},{date:"2009-11-18T00:00:00.000Z",close:200.51},{date:"2009-11-25T00:00:00.000Z",close:204.19},{date:"2009-12-03T00:00:00.000Z",close:196.48},{date:"2009-12-09T00:00:00.000Z",close:196.43},{date:"2009-12-16T00:00:00.000Z",close:191.86},{date:"2009-12-23T00:00:00.000Z",close:209.04},{date:"2009-12-30T00:00:00.000Z",close:210.73},{date:"2010-01-07T00:00:00.000Z",close:210.58},{date:"2010-01-13T00:00:00.000Z",close:209.43},{date:"2010-01-20T00:00:00.000Z",close:208.07},{date:"2010-01-27T00:00:00.000Z",close:199.29},{date:"2010-02-04T00:00:00.000Z",close:192.05},{date:"2010-02-10T00:00:00.000Z",close:198.67},{date:"2010-02-17T00:00:00.000Z",close:202.93},{date:"2010-02-24T00:00:00.000Z",close:202},{date:"2010-03-04T00:00:00.000Z",close:210.71},{date:"2010-03-10T00:00:00.000Z",close:225.5},{date:"2010-03-17T00:00:00.000Z",close:224.65},{date:"2010-03-24T00:00:00.000Z",close:226.65},{date:"2010-04-01T00:00:00.000Z",close:235.97},{date:"2010-04-08T00:00:00.000Z",close:239.95},{date:"2010-04-14T00:00:00.000Z",close:248.92},{date:"2010-04-21T00:00:00.000Z",close:266.47},{date:"2010-04-28T00:00:00.000Z",close:268.64},{date:"2010-05-06T00:00:00.000Z",close:246.25},{date:"2010-05-12T00:00:00.000Z",close:258.36},{date:"2010-05-19T00:00:00.000Z",close:237.76},{date:"2010-05-26T00:00:00.000Z",close:253.35},{date:"2010-06-03T00:00:00.000Z",close:263.12},{date:"2010-06-09T00:00:00.000Z",close:250.51},{date:"2010-06-16T00:00:00.000Z",close:271.87},{date:"2010-06-23T00:00:00.000Z",close:269},{date:"2010-07-01T00:00:00.000Z",close:248.48},{date:"2010-07-08T00:00:00.000Z",close:258.09},{date:"2010-07-14T00:00:00.000Z",close:251.45},{date:"2010-07-21T00:00:00.000Z",close:259.02},{date:"2010-07-28T00:00:00.000Z",close:258.11},{date:"2010-08-05T00:00:00.000Z",close:261.7},{date:"2010-08-11T00:00:00.000Z",close:251.79},{date:"2010-08-18T00:00:00.000Z",close:249.88},{date:"2010-08-25T00:00:00.000Z",close:240.28},{date:"2010-09-02T00:00:00.000Z",close:252.17},{date:"2010-09-09T00:00:00.000Z",close:263.07},{date:"2010-09-15T00:00:00.000Z",close:276.57},{date:"2010-09-22T00:00:00.000Z",close:288.92},{date:"2010-09-29T00:00:00.000Z",close:283.75},{date:"2010-10-07T00:00:00.000Z",close:289.22},{date:"2010-10-13T00:00:00.000Z",close:302.31},{date:"2010-10-20T00:00:00.000Z",close:309.52},{date:"2010-10-27T00:00:00.000Z",close:305.24},{date:"2010-11-04T00:00:00.000Z",close:318.27},{date:"2010-11-10T00:00:00.000Z",close:316.66},{date:"2010-11-17T00:00:00.000Z",close:308.43},{date:"2010-11-25T00:00:00.000Z",close:315},{date:"2010-12-03T00:00:00.000Z",close:317.44},{date:"2010-12-09T00:00:00.000Z",close:320.56},{date:"2010-12-16T00:00:00.000Z",close:320.61},{date:"2010-12-26T00:00:00.000Z",close:324.68},{date:"2011-01-03T00:00:00.000Z",close:329.57},{date:"2011-01-09T00:00:00.000Z",close:342.46},{date:"2011-01-17T00:00:00.000Z",close:340.65},{date:"2011-01-24T00:00:00.000Z",close:341.4},{date:"2011-02-01T00:00:00.000Z",close:345.03},{date:"2011-02-08T00:00:00.000Z",close:355.2},{date:"2011-02-14T00:00:00.000Z",close:359.9},{date:"2011-02-22T00:00:00.000Z",close:342.62},{date:"2011-03-02T00:00:00.000Z",close:352.12},{date:"2011-03-09T00:00:00.000Z",close:352.47},{date:"2011-03-15T00:00:00.000Z",close:330.01},{date:"2011-03-22T00:00:00.000Z",close:339.19},{date:"2011-03-29T00:00:00.000Z",close:348.63},{date:"2011-04-06T00:00:00.000Z",close:338.04},{date:"2011-04-12T00:00:00.000Z",close:336.13},{date:"2011-04-19T00:00:00.000Z",close:342.41},{date:"2011-04-27T00:00:00.000Z",close:346.75},{date:"2011-05-05T00:00:00.000Z",close:346.75},{date:"2011-05-11T00:00:00.000Z",close:346.57},{date:"2011-05-18T00:00:00.000Z",close:340.53},{date:"2011-05-25T00:00:00.000Z",close:335},{date:"2011-06-03T00:00:00.000Z",close:343.44},{date:"2011-06-09T00:00:00.000Z",close:325.9},{date:"2011-06-16T00:00:00.000Z",close:320.26},{date:"2011-06-23T00:00:00.000Z",close:326.35},{date:"2011-07-01T00:00:00.000Z",close:343.26},{date:"2011-07-10T00:00:00.000Z",close:354},{date:"2011-07-17T00:00:00.000Z",close:373.8},{date:"2011-07-24T00:00:00.000Z",close:398.5},{date:"2011-08-01T00:00:00.000Z",close:396.75},{date:"2011-08-08T00:00:00.000Z",close:353.21},{date:"2011-08-14T00:00:00.000Z",close:383.41},{date:"2011-08-21T00:00:00.000Z",close:356.44},{date:"2011-08-28T00:00:00.000Z",close:389.97},{date:"2011-09-06T00:00:00.000Z",close:379.74},{date:"2011-09-12T00:00:00.000Z",close:384.62},{date:"2011-09-19T00:00:00.000Z",close:413.45},{date:"2011-09-26T00:00:00.000Z",close:399.26},{date:"2011-10-04T00:00:00.000Z",close:372.5},{date:"2011-10-10T00:00:00.000Z",close:400.29},{date:"2011-10-17T00:00:00.000Z",close:422.24},{date:"2011-10-24T00:00:00.000Z",close:397.77},{date:"2011-11-01T00:00:00.000Z",close:396.51},{date:"2011-11-08T00:00:00.000Z",close:406.23},{date:"2011-11-14T00:00:00.000Z",close:388.83},{date:"2011-11-21T00:00:00.000Z",close:376.51},{date:"2011-11-29T00:00:00.000Z",close:382.2},{date:"2011-12-07T00:00:00.000Z",close:389.09},{date:"2011-12-13T00:00:00.000Z",close:380.19},{date:"2011-12-20T00:00:00.000Z",close:396.44},{date:"2011-12-28T00:00:00.000Z",close:405.12},{date:"2012-01-06T00:00:00.000Z",close:422.4},{date:"2012-01-12T00:00:00.000Z",close:419.81},{date:"2012-01-22T00:00:00.000Z",close:427.41},{date:"2012-01-29T00:00:00.000Z",close:453.01},{date:"2012-02-06T00:00:00.000Z",close:463.97},{date:"2012-02-12T00:00:00.000Z",close:502.6},{date:"2012-02-20T00:00:00.000Z",close:514.85},{date:"2012-02-27T00:00:00.000Z",close:535.41},{date:"2012-03-06T00:00:00.000Z",close:530.26},{date:"2012-03-12T00:00:00.000Z",close:568.1},{date:"2012-03-19T00:00:00.000Z",close:605.96},{date:"2012-03-26T00:00:00.000Z",close:614.48},{date:"2012-04-03T00:00:00.000Z",close:629.32},{date:"2012-04-10T00:00:00.000Z",close:626.2},{date:"2012-04-17T00:00:00.000Z",close:608.34},{date:"2012-04-24T00:00:00.000Z",close:610},{date:"2012-05-01T00:00:00.000Z",close:582.13}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-scatter-plot",name:"\u6563\u70B9\u56FE",description:"\u89C2\u5BDF\u53D8\u91CF\u5173\u7CFB\u4E0E\u79BB\u7FA4\u70B9\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u6563\u70B9\u56FE",datasets:{main:[{height:161,weight:50},{height:167,weight:55},{height:171,weight:63},{height:174,weight:58},{height:176,weight:65},{height:178,weight:70},{height:180,weight:72},{height:182,weight:75},{height:185,weight:78},{height:188,weight:82}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-bubble-chart",name:"\u6C14\u6CE1\u56FE",description:"\u7528\u6C14\u6CE1\u5927\u5C0F\u589E\u52A0\u4E00\u4E2A\u6570\u503C\u7EF4\u5EA6\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u6C14\u6CE1\u56FE",datasets:{main:[{continent:"Americas",Country:"Argentina",LifeExpectancy:75.32,GDP:12779.37964,Population:40301927},{continent:"Americas",Country:"Brazil",LifeExpectancy:72.39,GDP:9065.800825,Population:190010647},{continent:"Americas",Country:"Canada",LifeExpectancy:80.653,GDP:36319.23501,Population:33390141},{continent:"Americas",Country:"Chile",LifeExpectancy:78.553,GDP:13171.63885,Population:16284741},{continent:"Americas",Country:"Colombia",LifeExpectancy:72.889,GDP:7006.580419,Population:44227550},{continent:"Americas",Country:"Costa Rica",LifeExpectancy:78.782,GDP:9645.06142,Population:4133884},{continent:"Americas",Country:"Cuba",LifeExpectancy:78.273,GDP:8948.102923,Population:11416987},{continent:"Americas",Country:"Dominican Republic",LifeExpectancy:72.235,GDP:6025.374752,Population:9319622},{continent:"Americas",Country:"Ecuador",LifeExpectancy:74.994,GDP:6873.262326,Population:13755680},{continent:"Americas",Country:"El Salvador",LifeExpectancy:71.878,GDP:5728.353514,Population:6939688},{continent:"Americas",Country:"Guatemala",LifeExpectancy:70.259,GDP:5186.050003,Population:12572928},{continent:"Americas",Country:"Honduras",LifeExpectancy:70.198,GDP:3548.330846,Population:7483763},{continent:"Americas",Country:"Jamaica",LifeExpectancy:72.567,GDP:7320.880262,Population:2780132},{continent:"Americas",Country:"Mexico",LifeExpectancy:76.195,GDP:11977.57496,Population:108700891},{continent:"Americas",Country:"Nicaragua",LifeExpectancy:72.899,GDP:2749.320965,Population:5675356},{continent:"Americas",Country:"Panama",LifeExpectancy:75.537,GDP:9809.185636,Population:3242173},{continent:"Americas",Country:"Paraguay",LifeExpectancy:71.752,GDP:4172.838464,Population:6667147},{continent:"Americas",Country:"Peru",LifeExpectancy:71.421,GDP:7408.905561,Population:28674757},{continent:"Americas",Country:"Puerto Rico",LifeExpectancy:78.746,GDP:19328.70901,Population:3942491},{continent:"Americas",Country:"Trinidad and Tobago",LifeExpectancy:69.819,GDP:18008.50924,Population:1056608},{continent:"Americas",Country:"United States",LifeExpectancy:78.242,GDP:42951.65309,Population:301139947},{continent:"Americas",Country:"Uruguay",LifeExpectancy:76.384,GDP:10611.46299,Population:3447496},{continent:"Americas",Country:"Venezuela",LifeExpectancy:73.747,GDP:11415.80569,Population:26084662},{continent:"Asia",Country:"China",LifeExpectancy:72.961,GDP:4959.114854,Population:1318683096},{continent:"Asia",Country:"Hong Kong, China",LifeExpectancy:82.208,GDP:39724.97867,Population:6980412},{continent:"Asia",Country:"Japan",LifeExpectancy:82.603,GDP:31656.06806,Population:127467972},{continent:"Asia",Country:"Korea, Dem. Rep.",LifeExpectancy:67.297,GDP:1593.06548,Population:23301725},{continent:"Asia",Country:"Korea, Rep.",LifeExpectancy:78.623,GDP:23348.13973,Population:49044790},{continent:"Europe",Country:"Albania",LifeExpectancy:76.423,GDP:5937.029526,Population:3600523},{continent:"Europe",Country:"Austria",LifeExpectancy:79.829,GDP:36126.4927,Population:8199783},{continent:"Europe",Country:"Belgium",LifeExpectancy:79.441,GDP:33692.60508,Population:10392226},{continent:"Europe",Country:"Bosnia and Herzegovina",LifeExpectancy:74.852,GDP:7446.298803,Population:4552198},{continent:"Europe",Country:"Bulgaria",LifeExpectancy:73.005,GDP:10680.79282,Population:7322858},{continent:"Europe",Country:"Croatia",LifeExpectancy:75.748,GDP:14619.22272,Population:4493312},{continent:"Europe",Country:"Czech Republic",LifeExpectancy:76.486,GDP:22833.30851,Population:10228744},{continent:"Europe",Country:"Denmark",LifeExpectancy:78.332,GDP:35278.41874,Population:5468120},{continent:"Europe",Country:"Finland",LifeExpectancy:79.313,GDP:33207.0844,Population:5238460},{continent:"Europe",Country:"France",LifeExpectancy:80.657,GDP:30470.0167,Population:61083916},{continent:"Europe",Country:"Germany",LifeExpectancy:79.406,GDP:32170.37442,Population:82400996},{continent:"Europe",Country:"Greece",LifeExpectancy:79.483,GDP:27538.41188,Population:10706290},{continent:"Europe",Country:"Hungary",LifeExpectancy:73.338,GDP:18008.94444,Population:9956108},{continent:"Europe",Country:"Iceland",LifeExpectancy:81.757,GDP:36180.78919,Population:301931},{continent:"Europe",Country:"Ireland",LifeExpectancy:78.885,GDP:40675.99635,Population:4109086},{continent:"Europe",Country:"Italy",LifeExpectancy:80.546,GDP:28569.7197,Population:58147733},{continent:"Europe",Country:"Montenegro",LifeExpectancy:74.543,GDP:9253.896111,Population:684736},{continent:"Europe",Country:"Netherlands",LifeExpectancy:79.762,GDP:36797.93332,Population:16570613},{continent:"Europe",Country:"Norway",LifeExpectancy:80.196,GDP:49357.19017,Population:4627926},{continent:"Europe",Country:"Poland",LifeExpectancy:75.563,GDP:15389.92468,Population:38518241},{continent:"Europe",Country:"Portugal",LifeExpectancy:78.098,GDP:20509.64777,Population:10642836},{continent:"Europe",Country:"Romania",LifeExpectancy:72.476,GDP:10808.47561,Population:22276056},{continent:"Europe",Country:"Serbia",LifeExpectancy:74.002,GDP:9786.534714,Population:10150265},{continent:"Europe",Country:"Slovak Republic",LifeExpectancy:74.663,GDP:18678.31435,Population:5447502},{continent:"Europe",Country:"Slovenia",LifeExpectancy:77.926,GDP:25768.25759,Population:2009245},{continent:"Europe",Country:"Spain",LifeExpectancy:80.941,GDP:28821.0637,Population:40448191},{continent:"Europe",Country:"Sweden",LifeExpectancy:80.884,GDP:33859.74835,Population:9031088},{continent:"Europe",Country:"Switzerland",LifeExpectancy:81.701,GDP:37506.41907,Population:7554661},{continent:"Europe",Country:"Turkey",LifeExpectancy:71.777,GDP:8458.276384,Population:71158647},{continent:"Europe",Country:"United Kingdom",LifeExpectancy:79.425,GDP:33203.26128,Population:60776238},{continent:"Oceania",Country:"Australia",LifeExpectancy:81.235,GDP:34435.36744,Population:20434176},{continent:"Oceania",Country:"New Zealand",LifeExpectancy:80.204,GDP:25185.00911,Population:4115771}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-multi-set-bar",name:"\u5206\u7EC4\u67F1\u72B6\u56FE",description:"\u5E76\u6392\u6BD4\u8F83\u4E0D\u540C\u7CFB\u5217\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5206\u7EC4\u67F1\u72B6\u56FE",datasets:{main:[{year:"2001",genre:"Sports",sold:27500},{year:"2001",genre:"Strategy",sold:11500},{year:"2001",genre:"Action",sold:6e3},{year:"2001",genre:"Shooter",sold:3500},{year:"2001",genre:"Other",sold:1500},{year:"2002",genre:"Sports",sold:29500},{year:"2002",genre:"Strategy",sold:10500},{year:"2002",genre:"Action",sold:8e3},{year:"2002",genre:"Shooter",sold:4500},{year:"2002",genre:"Other",sold:1800},{year:"2003",genre:"Sports",sold:30500},{year:"2003",genre:"Strategy",sold:12500},{year:"2003",genre:"Action",sold:4e3},{year:"2003",genre:"Shooter",sold:6500},{year:"2003",genre:"Other",sold:2e3}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-bi-directional-bar",name:"\u53CC\u5411\u6761\u5F62\u56FE",description:"\u5411\u4E24\u4FA7\u6BD4\u8F83\u6B63\u8D1F\u6216\u4E24\u7EC4\u6570\u636E\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u53CC\u5411\u6761\u5F62\u56FE",datasets:{main:[{department:"Dept 0",group:"Group0",people:37,type:"completed"},{department:"Dept 0",group:"Group0",people:9,type:"uncompleted"},{department:"Dept 0",group:"Group1",people:27,type:"completed"},{department:"Dept 0",group:"Group1",people:10,type:"uncompleted"},{department:"Dept 1",group:"Group2",people:37,type:"completed"},{department:"Dept 1",group:"Group2",people:19,type:"uncompleted"},{department:"Dept 1",group:"Group3",people:37,type:"completed"},{department:"Dept 1",group:"Group3",people:29,type:"uncompleted"},{department:"Dept 2",group:"Group4",people:20,type:"completed"},{department:"Dept 2",group:"Group4",people:2,type:"uncompleted"},{department:"Dept 2",group:"Group5",people:40,type:"completed"},{department:"Dept 2",group:"Group5",people:10,type:"uncompleted"},{department:"Dept 3",group:"Group6",people:25,type:"completed"},{department:"Dept 3",group:"Group6",people:3,type:"uncompleted"},{department:"Dept 3",group:"Group7",people:55,type:"completed"},{department:"Dept 3",group:"Group7",people:8,type:"uncompleted"}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-radar-chart",name:"\u96F7\u8FBE\u56FE",description:"\u6BD4\u8F83\u591A\u4E2A\u7EF4\u5EA6\u7684\u8F6E\u5ED3\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u96F7\u8FBE\u56FE",datasets:{main:[{ability:"Language",score:8.8},{ability:"Logic",score:9},{ability:"Affinity",score:7.2},{ability:"Sports",score:4.5},{ability:"Learning",score:8.3}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-radial-bar",name:"\u5F84\u5411\u6761\u5F62\u56FE",description:"\u5728\u6781\u5750\u6807\u4E2D\u6392\u5217\u6761\u5F62\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5F84\u5411\u6761\u5F62\u56FE",datasets:{main:[{question:"Taiwan Relations",percent:.21,odd:0},{question:"China's Growing Military Power",percent:.47,odd:1},{question:"China's Impact on Global Environment",percent:.49,odd:0},{question:"US Trade Deficit with China",percent:.52,odd:1},{question:"China's Human Rights Policy",percent:.53,odd:0},{question:"Cyber Attacks from China",percent:.54,odd:1},{question:"China Taking Away American Jobs",percent:.6,odd:0},{question:"China Holding US Massive Debt",percent:.67,odd:1}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-parallel",name:"\u5E73\u884C\u5750\u6807",description:"\u89C2\u5BDF\u591A\u7EF4\u6570\u503C\u7684\u7EC4\u5408\u6A21\u5F0F\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5E73\u884C\u5750\u6807",datasets:{main:[{name:"AMC Ambassador Brougham","economy (mpg)":13,cylinders:8,"displacement (cc)":360,"power (hp)":175,"weight (lb)":3821,"0-60 mph (s)":11,year:73},{name:"AMC Ambassador SST","economy (mpg)":17,cylinders:8,"displacement (cc)":304,"power (hp)":150,"weight (lb)":3672,"0-60 mph (s)":11.5,year:72},{name:"AMC Concord DL","economy (mpg)":18.1,cylinders:6,"displacement (cc)":258,"power (hp)":120,"weight (lb)":3410,"0-60 mph (s)":15.1,year:78},{name:"AMC Concord","economy (mpg)":19.4,cylinders:6,"displacement (cc)":232,"power (hp)":90,"weight (lb)":3210,"0-60 mph (s)":17.2,year:78},{name:"AMC Gremlin","economy (mpg)":18,cylinders:6,"displacement (cc)":232,"power (hp)":100,"weight (lb)":2789,"0-60 mph (s)":15,year:73},{name:"AMC Gremlin","economy (mpg)":20,cylinders:6,"displacement (cc)":232,"power (hp)":100,"weight (lb)":2914,"0-60 mph (s)":16,year:75},{name:"AMC Hornet Sportabout (Wagon)","economy (mpg)":18,cylinders:6,"displacement (cc)":258,"power (hp)":110,"weight (lb)":2962,"0-60 mph (s)":13.5,year:71},{name:"AMC Hornet","economy (mpg)":18,cylinders:6,"displacement (cc)":232,"power (hp)":100,"weight (lb)":2945,"0-60 mph (s)":16,year:73},{name:"AMC Hornet","economy (mpg)":22.5,cylinders:6,"displacement (cc)":232,"power (hp)":90,"weight (lb)":3085,"0-60 mph (s)":17.6,year:76},{name:"AMC Matador (Wagon)","economy (mpg)":15,cylinders:8,"displacement (cc)":304,"power (hp)":150,"weight (lb)":3892,"0-60 mph (s)":12.5,year:72},{name:"AMC Matador","economy (mpg)":15,cylinders:6,"displacement (cc)":258,"power (hp)":110,"weight (lb)":3730,"0-60 mph (s)":19,year:75},{name:"AMC Matador","economy (mpg)":16,cylinders:6,"displacement (cc)":258,"power (hp)":110,"weight (lb)":3632,"0-60 mph (s)":18,year:74},{name:"AMC Pacer D/L","economy (mpg)":17.5,cylinders:6,"displacement (cc)":258,"power (hp)":95,"weight (lb)":3193,"0-60 mph (s)":17.8,year:76},{name:"AMC Rebel SST (Wagon)","economy (mpg)":null,cylinders:8,"displacement (cc)":360,"power (hp)":175,"weight (lb)":3850,"0-60 mph (s)":11,year:70},{name:"AMC Spirit DL","economy (mpg)":27.4,cylinders:4,"displacement (cc)":121,"power (hp)":80,"weight (lb)":2670,"0-60 mph (s)":15,year:79},{name:"Audi 100 LS","economy (mpg)":23,cylinders:4,"displacement (cc)":115,"power (hp)":95,"weight (lb)":2694,"0-60 mph (s)":15,year:75},{name:"Audi 4000","economy (mpg)":34.3,cylinders:4,"displacement (cc)":97,"power (hp)":78,"weight (lb)":2188,"0-60 mph (s)":15.8,year:80},{name:"Audi 5000S (Diesel)","economy (mpg)":36.4,cylinders:5,"displacement (cc)":121,"power (hp)":67,"weight (lb)":2950,"0-60 mph (s)":19.9,year:80},{name:"BMW 2002","economy (mpg)":26,cylinders:4,"displacement (cc)":121,"power (hp)":113,"weight (lb)":2234,"0-60 mph (s)":12.5,year:70},{name:"Buick Century 350","economy (mpg)":13,cylinders:8,"displacement (cc)":350,"power (hp)":175,"weight (lb)":4100,"0-60 mph (s)":13,year:73},{name:"Buick Century Luxus (Wagon)","economy (mpg)":13,cylinders:8,"displacement (cc)":350,"power (hp)":150,"weight (lb)":4699,"0-60 mph (s)":14.5,year:74},{name:"Buick Century","economy (mpg)":17,cylinders:6,"displacement (cc)":231,"power (hp)":110,"weight (lb)":3907,"0-60 mph (s)":21,year:75},{name:"Buick Electra 225 Custom","economy (mpg)":12,cylinders:8,"displacement (cc)":455,"power (hp)":225,"weight (lb)":4951,"0-60 mph (s)":11,year:73},{name:"Buick Estate Wagon (Wagon)","economy (mpg)":16.9,cylinders:8,"displacement (cc)":350,"power (hp)":155,"weight (lb)":4360,"0-60 mph (s)":14.9,year:79},{name:"Buick Opel Isuzu Deluxe","economy (mpg)":30,cylinders:4,"displacement (cc)":111,"power (hp)":80,"weight (lb)":2155,"0-60 mph (s)":14.8,year:77},{name:"Buick Skyhawk","economy (mpg)":21,cylinders:6,"displacement (cc)":231,"power (hp)":110,"weight (lb)":3039,"0-60 mph (s)":15,year:75},{name:"Buick Skylark Limited","economy (mpg)":28.4,cylinders:4,"displacement (cc)":151,"power (hp)":90,"weight (lb)":2670,"0-60 mph (s)":16,year:79},{name:"Buick Skylark","economy (mpg)":26.6,cylinders:4,"displacement (cc)":151,"power (hp)":84,"weight (lb)":2635,"0-60 mph (s)":16.4,year:81},{name:"Cadillac Seville","economy (mpg)":16.5,cylinders:8,"displacement (cc)":350,"power (hp)":180,"weight (lb)":4380,"0-60 mph (s)":12.1,year:76},{name:"Chevrolet Bel Air","economy (mpg)":15,cylinders:8,"displacement (cc)":350,"power (hp)":145,"weight (lb)":4440,"0-60 mph (s)":14,year:75},{name:"Chevrolet Caprice Classic","economy (mpg)":13,cylinders:8,"displacement (cc)":400,"power (hp)":150,"weight (lb)":4464,"0-60 mph (s)":12,year:73},{name:"Chevrolet Caprice Classic","economy (mpg)":17.5,cylinders:8,"displacement (cc)":305,"power (hp)":145,"weight (lb)":3880,"0-60 mph (s)":12.5,year:77},{name:"Chevrolet Cavalier Wagon","economy (mpg)":27,cylinders:4,"displacement (cc)":112,"power (hp)":88,"weight (lb)":2640,"0-60 mph (s)":18.6,year:82},{name:"Chevrolet Chevelle Concours (Wagon)","economy (mpg)":null,cylinders:8,"displacement (cc)":350,"power (hp)":165,"weight (lb)":4142,"0-60 mph (s)":11.5,year:70},{name:"Chevrolet Chevelle Malibu Classic","economy (mpg)":16,cylinders:6,"displacement (cc)":250,"power (hp)":100,"weight (lb)":3781,"0-60 mph (s)":17,year:74},{name:"Chevrolet Chevelle Malibu","economy (mpg)":17,cylinders:6,"displacement (cc)":250,"power (hp)":100,"weight (lb)":3329,"0-60 mph (s)":15.5,year:71},{name:"Chevrolet Chevette","economy (mpg)":29,cylinders:4,"displacement (cc)":85,"power (hp)":52,"weight (lb)":2035,"0-60 mph (s)":22.2,year:76},{name:"Chevrolet Chevette","economy (mpg)":30.5,cylinders:4,"displacement (cc)":98,"power (hp)":63,"weight (lb)":2051,"0-60 mph (s)":17,year:77},{name:"Chevrolet Citation","economy (mpg)":23.5,cylinders:6,"displacement (cc)":173,"power (hp)":110,"weight (lb)":2725,"0-60 mph (s)":12.6,year:81},{name:"Chevrolet Citation","economy (mpg)":28.8,cylinders:6,"displacement (cc)":173,"power (hp)":115,"weight (lb)":2595,"0-60 mph (s)":11.3,year:79},{name:"Chevrolet Impala","economy (mpg)":11,cylinders:8,"displacement (cc)":400,"power (hp)":150,"weight (lb)":4997,"0-60 mph (s)":14,year:73},{name:"Chevrolet Impala","economy (mpg)":14,cylinders:8,"displacement (cc)":350,"power (hp)":165,"weight (lb)":4209,"0-60 mph (s)":12,year:71},{name:"Chevrolet Malibu Classic (Wagon)","economy (mpg)":19.2,cylinders:8,"displacement (cc)":267,"power (hp)":125,"weight (lb)":3605,"0-60 mph (s)":15,year:79},{name:"Chevrolet Malibu","economy (mpg)":20.5,cylinders:6,"displacement (cc)":200,"power (hp)":95,"weight (lb)":3155,"0-60 mph (s)":18.2,year:78},{name:"Chevrolet Monte Carlo Landau","economy (mpg)":19.2,cylinders:8,"displacement (cc)":305,"power (hp)":145,"weight (lb)":3425,"0-60 mph (s)":13.2,year:78},{name:"Chevrolet Monte Carlo","economy (mpg)":15,cylinders:8,"displacement (cc)":400,"power (hp)":150,"weight (lb)":3761,"0-60 mph (s)":9.5,year:70},{name:"Chevrolet Nova Custom","economy (mpg)":16,cylinders:6,"displacement (cc)":250,"power (hp)":100,"weight (lb)":3278,"0-60 mph (s)":18,year:73},{name:"Chevrolet Nova","economy (mpg)":18,cylinders:6,"displacement (cc)":250,"power (hp)":105,"weight (lb)":3459,"0-60 mph (s)":16,year:75},{name:"Chevrolet Vega (Wagon)","economy (mpg)":22,cylinders:4,"displacement (cc)":140,"power (hp)":72,"weight (lb)":2408,"0-60 mph (s)":19,year:71},{name:"Chevrolet Vega","economy (mpg)":20,cylinders:4,"displacement (cc)":140,"power (hp)":90,"weight (lb)":2408,"0-60 mph (s)":19.5,year:72},{name:"Chevrolet Vega","economy (mpg)":25,cylinders:4,"displacement (cc)":140,"power (hp)":75,"weight (lb)":2542,"0-60 mph (s)":17,year:74},{name:"Chevy C10","economy (mpg)":13,cylinders:8,"displacement (cc)":350,"power (hp)":145,"weight (lb)":4055,"0-60 mph (s)":12,year:76},{name:"Chevy S-10","economy (mpg)":31,cylinders:4,"displacement (cc)":119,"power (hp)":82,"weight (lb)":2720,"0-60 mph (s)":19.4,year:82},{name:"Chrysler Lebaron Medallion","economy (mpg)":26,cylinders:4,"displacement (cc)":156,"power (hp)":92,"weight (lb)":2585,"0-60 mph (s)":14.5,year:82},{name:"Chrysler Lebaron Town & Country (Wagon)","economy (mpg)":18.5,cylinders:8,"displacement (cc)":360,"power (hp)":150,"weight (lb)":3940,"0-60 mph (s)":13,year:79},{name:"Chrysler Newport Royal","economy (mpg)":13,cylinders:8,"displacement (cc)":400,"power (hp)":190,"weight (lb)":4422,"0-60 mph (s)":12.5,year:72},{name:"Datsun 1200","economy (mpg)":35,cylinders:4,"displacement (cc)":72,"power (hp)":69,"weight (lb)":1613,"0-60 mph (s)":18,year:71},{name:"Datsun 200SX","economy (mpg)":32.9,cylinders:4,"displacement (cc)":119,"power (hp)":100,"weight (lb)":2615,"0-60 mph (s)":14.8,year:81},{name:"Datsun 210","economy (mpg)":37,cylinders:4,"displacement (cc)":85,"power (hp)":65,"weight (lb)":1975,"0-60 mph (s)":19.4,year:81},{name:"Datsun 280ZX","economy (mpg)":32.7,cylinders:6,"displacement (cc)":168,"power (hp)":132,"weight (lb)":2910,"0-60 mph (s)":11.4,year:80},{name:"Datsun 310","economy (mpg)":37.2,cylinders:4,"displacement (cc)":86,"power (hp)":65,"weight (lb)":2019,"0-60 mph (s)":16.4,year:80},{name:"Datsun 510 Hatchback","economy (mpg)":37,cylinders:4,"displacement (cc)":119,"power (hp)":92,"weight (lb)":2434,"0-60 mph (s)":15,year:80},{name:"Datsun 610","economy (mpg)":22,cylinders:4,"displacement (cc)":108,"power (hp)":94,"weight (lb)":2379,"0-60 mph (s)":16.5,year:73},{name:"Datsun 710","economy (mpg)":32,cylinders:4,"displacement (cc)":83,"power (hp)":61,"weight (lb)":2003,"0-60 mph (s)":19,year:74},{name:"Datsun 810","economy (mpg)":22,cylinders:6,"displacement (cc)":146,"power (hp)":97,"weight (lb)":2815,"0-60 mph (s)":14.5,year:77},{name:"Datsun B210 GX","economy (mpg)":39.4,cylinders:4,"displacement (cc)":85,"power (hp)":70,"weight (lb)":2070,"0-60 mph (s)":18.6,year:78},{name:"Datsun F-10 Hatchback","economy (mpg)":33.5,cylinders:4,"displacement (cc)":85,"power (hp)":70,"weight (lb)":1945,"0-60 mph (s)":16.8,year:77},{name:"Datsun PL510","economy (mpg)":27,cylinders:4,"displacement (cc)":97,"power (hp)":88,"weight (lb)":2130,"0-60 mph (s)":14.5,year:71},{name:"Dodge Aries Wagon (Wagon)","economy (mpg)":25.8,cylinders:4,"displacement (cc)":156,"power (hp)":92,"weight (lb)":2620,"0-60 mph (s)":14.4,year:81},{name:"Dodge Aspen SE","economy (mpg)":20,cylinders:6,"displacement (cc)":225,"power (hp)":100,"weight (lb)":3651,"0-60 mph (s)":17.7,year:76},{name:"Dodge Aspen","economy (mpg)":19.1,cylinders:6,"displacement (cc)":225,"power (hp)":90,"weight (lb)":3381,"0-60 mph (s)":18.7,year:80},{name:"Dodge Charger 2.2","economy (mpg)":36,cylinders:4,"displacement (cc)":135,"power (hp)":84,"weight (lb)":2370,"0-60 mph (s)":13,year:82},{name:"Dodge Colt Hardtop","economy (mpg)":25,cylinders:4,"displacement (cc)":97.5,"power (hp)":80,"weight (lb)":2126,"0-60 mph (s)":17,year:72},{name:"Dodge Colt M/M","economy (mpg)":33.5,cylinders:4,"displacement (cc)":98,"power (hp)":83,"weight (lb)":2075,"0-60 mph (s)":15.9,year:77},{name:"Dodge Colt","economy (mpg)":27.9,cylinders:4,"displacement (cc)":156,"power (hp)":105,"weight (lb)":2800,"0-60 mph (s)":14.4,year:80},{name:"Dodge Coronet Brougham","economy (mpg)":16,cylinders:8,"displacement (cc)":318,"power (hp)":150,"weight (lb)":4190,"0-60 mph (s)":13,year:76},{name:"Dodge Coronet Custom","economy (mpg)":15,cylinders:8,"displacement (cc)":318,"power (hp)":150,"weight (lb)":3777,"0-60 mph (s)":12.5,year:73},{name:"Dodge D200","economy (mpg)":11,cylinders:8,"displacement (cc)":318,"power (hp)":210,"weight (lb)":4382,"0-60 mph (s)":13.5,year:70},{name:"Dodge Diplomat","economy (mpg)":19.4,cylinders:8,"displacement (cc)":318,"power (hp)":140,"weight (lb)":3735,"0-60 mph (s)":13.2,year:78},{name:"Dodge Monaco (Wagon)","economy (mpg)":12,cylinders:8,"displacement (cc)":383,"power (hp)":180,"weight (lb)":4955,"0-60 mph (s)":11.5,year:71},{name:"Dodge Omni","economy (mpg)":30.9,cylinders:4,"displacement (cc)":105,"power (hp)":75,"weight (lb)":2230,"0-60 mph (s)":14.5,year:78},{name:"Dodge St. Regis","economy (mpg)":18.2,cylinders:8,"displacement (cc)":318,"power (hp)":135,"weight (lb)":3830,"0-60 mph (s)":15.2,year:79},{name:"Fiat 124 TC","economy (mpg)":26,cylinders:4,"displacement (cc)":116,"power (hp)":75,"weight (lb)":2246,"0-60 mph (s)":14,year:74},{name:"Fiat 128","economy (mpg)":24,cylinders:4,"displacement (cc)":90,"power (hp)":75,"weight (lb)":2108,"0-60 mph (s)":15.5,year:74},{name:"Fiat 131","economy (mpg)":28,cylinders:4,"displacement (cc)":107,"power (hp)":86,"weight (lb)":2464,"0-60 mph (s)":15.5,year:76},{name:"Fiat X1.9","economy (mpg)":31,cylinders:4,"displacement (cc)":79,"power (hp)":67,"weight (lb)":2e3,"0-60 mph (s)":16,year:74},{name:"Ford Country Squire (Wagon)","economy (mpg)":13,cylinders:8,"displacement (cc)":400,"power (hp)":170,"weight (lb)":4746,"0-60 mph (s)":12,year:71},{name:"Ford Country","economy (mpg)":12,cylinders:8,"displacement (cc)":400,"power (hp)":167,"weight (lb)":4906,"0-60 mph (s)":12.5,year:73},{name:"Ford Escort 4W","economy (mpg)":34.4,cylinders:4,"displacement (cc)":98,"power (hp)":65,"weight (lb)":2045,"0-60 mph (s)":16.2,year:81},{name:"Ford F250","economy (mpg)":10,cylinders:8,"displacement (cc)":360,"power (hp)":215,"weight (lb)":4615,"0-60 mph (s)":14,year:70},{name:"Ford Fairmont (Man)","economy (mpg)":25.1,cylinders:4,"displacement (cc)":140,"power (hp)":88,"weight (lb)":2720,"0-60 mph (s)":15.4,year:78},{name:"Ford Fairmont Futura","economy (mpg)":24,cylinders:4,"displacement (cc)":140,"power (hp)":92,"weight (lb)":2865,"0-60 mph (s)":16.4,year:82},{name:"Ford Fiesta","economy (mpg)":36.1,cylinders:4,"displacement (cc)":98,"power (hp)":66,"weight (lb)":1800,"0-60 mph (s)":14.4,year:78},{name:"Ford Galaxie 500","economy (mpg)":14,cylinders:8,"displacement (cc)":351,"power (hp)":153,"weight (lb)":4129,"0-60 mph (s)":13,year:72},{name:"Ford Galaxie 500","economy (mpg)":15,cylinders:8,"displacement (cc)":429,"power (hp)":198,"weight (lb)":4341,"0-60 mph (s)":10,year:70},{name:"Ford Gran Torino (Wagon)","economy (mpg)":14,cylinders:8,"displacement (cc)":302,"power (hp)":140,"weight (lb)":4638,"0-60 mph (s)":16,year:74},{name:"Ford Gran Torino","economy (mpg)":14.5,cylinders:8,"displacement (cc)":351,"power (hp)":152,"weight (lb)":4215,"0-60 mph (s)":12.8,year:76},{name:"Ford Granada Ghia","economy (mpg)":18,cylinders:6,"displacement (cc)":250,"power (hp)":78,"weight (lb)":3574,"0-60 mph (s)":21,year:76},{name:"Ford Granada L","economy (mpg)":22,cylinders:6,"displacement (cc)":232,"power (hp)":112,"weight (lb)":2835,"0-60 mph (s)":14.7,year:82},{name:"Ford LTD Landau","economy (mpg)":17.6,cylinders:8,"displacement (cc)":302,"power (hp)":129,"weight (lb)":3725,"0-60 mph (s)":13.4,year:79},{name:"Ford LTD","economy (mpg)":14,cylinders:8,"displacement (cc)":351,"power (hp)":148,"weight (lb)":4657,"0-60 mph (s)":13.5,year:75},{name:"Ford Maverick","economy (mpg)":18,cylinders:6,"displacement (cc)":250,"power (hp)":88,"weight (lb)":3021,"0-60 mph (s)":16.5,year:73},{name:"Ford Maverick","economy (mpg)":21,cylinders:6,"displacement (cc)":200,"power (hp)":85,"weight (lb)":2587,"0-60 mph (s)":16,year:70},{name:"Ford Mustang Boss 302","economy (mpg)":null,cylinders:8,"displacement (cc)":302,"power (hp)":140,"weight (lb)":3353,"0-60 mph (s)":8,year:70},{name:"Ford Mustang GL","economy (mpg)":27,cylinders:4,"displacement (cc)":140,"power (hp)":86,"weight (lb)":2790,"0-60 mph (s)":15.6,year:82},{name:"Ford Mustang II","economy (mpg)":13,cylinders:8,"displacement (cc)":302,"power (hp)":129,"weight (lb)":3169,"0-60 mph (s)":12,year:75},{name:"Ford Pinto (Wagon)","economy (mpg)":22,cylinders:4,"displacement (cc)":122,"power (hp)":86,"weight (lb)":2395,"0-60 mph (s)":16,year:72},{name:"Ford Pinto","economy (mpg)":18,cylinders:6,"displacement (cc)":171,"power (hp)":97,"weight (lb)":2984,"0-60 mph (s)":14.5,year:75},{name:"Ford Pinto","economy (mpg)":23,cylinders:4,"displacement (cc)":140,"power (hp)":83,"weight (lb)":2639,"0-60 mph (s)":17,year:75},{name:"Ford Pinto","economy (mpg)":26,cylinders:4,"displacement (cc)":122,"power (hp)":80,"weight (lb)":2451,"0-60 mph (s)":16.5,year:74},{name:"Ford Ranger","economy (mpg)":28,cylinders:4,"displacement (cc)":120,"power (hp)":79,"weight (lb)":2625,"0-60 mph (s)":18.6,year:82},{name:"Ford Torino (Wagon)","economy (mpg)":null,cylinders:8,"displacement (cc)":351,"power (hp)":153,"weight (lb)":4034,"0-60 mph (s)":11,year:70},{name:"Ford Torino","economy (mpg)":17,cylinders:8,"displacement (cc)":302,"power (hp)":140,"weight (lb)":3449,"0-60 mph (s)":10.5,year:70},{name:"Honda Accord CVCC","economy (mpg)":31.5,cylinders:4,"displacement (cc)":98,"power (hp)":68,"weight (lb)":2045,"0-60 mph (s)":18.5,year:77},{name:"Honda Accord","economy (mpg)":32.4,cylinders:4,"displacement (cc)":107,"power (hp)":72,"weight (lb)":2290,"0-60 mph (s)":17,year:80},{name:"Honda Civic (Auto)","economy (mpg)":32,cylinders:4,"displacement (cc)":91,"power (hp)":67,"weight (lb)":1965,"0-60 mph (s)":15.7,year:82},{name:"Honda Civic 1500 GL","economy (mpg)":44.6,cylinders:4,"displacement (cc)":91,"power (hp)":67,"weight (lb)":1850,"0-60 mph (s)":13.8,year:80},{name:"Honda Civic CVCC","economy (mpg)":36.1,cylinders:4,"displacement (cc)":91,"power (hp)":60,"weight (lb)":1800,"0-60 mph (s)":16.4,year:78},{name:"Honda Civic","economy (mpg)":33,cylinders:4,"displacement (cc)":91,"power (hp)":53,"weight (lb)":1795,"0-60 mph (s)":17.4,year:76},{name:"Honda Prelude","economy (mpg)":33.7,cylinders:4,"displacement (cc)":107,"power (hp)":75,"weight (lb)":2210,"0-60 mph (s)":14.4,year:81},{name:"Maxda RX-3","economy (mpg)":18,cylinders:3,"displacement (cc)":70,"power (hp)":90,"weight (lb)":2124,"0-60 mph (s)":13.5,year:73},{name:"Mazda 626","economy (mpg)":31.6,cylinders:4,"displacement (cc)":120,"power (hp)":74,"weight (lb)":2635,"0-60 mph (s)":18.3,year:81},{name:"Mazda GLC Custom L","economy (mpg)":37,cylinders:4,"displacement (cc)":91,"power (hp)":68,"weight (lb)":2025,"0-60 mph (s)":18.2,year:82},{name:"Mazda GLC Deluxe","economy (mpg)":32.8,cylinders:4,"displacement (cc)":78,"power (hp)":52,"weight (lb)":1985,"0-60 mph (s)":19.4,year:78},{name:"Mazda RX-2 Coupe","economy (mpg)":19,cylinders:3,"displacement (cc)":70,"power (hp)":97,"weight (lb)":2330,"0-60 mph (s)":13.5,year:72},{name:"Mazda RX-7 Gs","economy (mpg)":23.7,cylinders:3,"displacement (cc)":70,"power (hp)":100,"weight (lb)":2420,"0-60 mph (s)":12.5,year:80},{name:"Mercedes-Benz 280S","economy (mpg)":16.5,cylinders:6,"displacement (cc)":168,"power (hp)":120,"weight (lb)":3820,"0-60 mph (s)":16.7,year:76},{name:"Mercury Capri 2000","economy (mpg)":23,cylinders:4,"displacement (cc)":122,"power (hp)":86,"weight (lb)":2220,"0-60 mph (s)":14,year:71},{name:"Mercury Cougar Brougham","economy (mpg)":15,cylinders:8,"displacement (cc)":302,"power (hp)":130,"weight (lb)":4295,"0-60 mph (s)":14.9,year:77},{name:"Mercury Lynx L","economy (mpg)":36,cylinders:4,"displacement (cc)":98,"power (hp)":70,"weight (lb)":2125,"0-60 mph (s)":17.3,year:82},{name:"Mercury Marquis","economy (mpg)":11,cylinders:8,"displacement (cc)":429,"power (hp)":208,"weight (lb)":4633,"0-60 mph (s)":11,year:72},{name:"Mercury Monarch","economy (mpg)":15,cylinders:6,"displacement (cc)":250,"power (hp)":72,"weight (lb)":3432,"0-60 mph (s)":21,year:75},{name:"Mercury Zephyr","economy (mpg)":20.8,cylinders:6,"displacement (cc)":200,"power (hp)":85,"weight (lb)":3070,"0-60 mph (s)":16.7,year:78},{name:"Oldsmobile Cutlass Ciera (Diesel)","economy (mpg)":38,cylinders:6,"displacement (cc)":262,"power (hp)":85,"weight (lb)":3015,"0-60 mph (s)":17,year:82},{name:"Oldsmobile Cutlass Salon Brougham","economy (mpg)":19.9,cylinders:8,"displacement (cc)":260,"power (hp)":110,"weight (lb)":3365,"0-60 mph (s)":15.5,year:78},{name:"Oldsmobile Cutlass Supreme","economy (mpg)":17,cylinders:8,"displacement (cc)":260,"power (hp)":110,"weight (lb)":4060,"0-60 mph (s)":19,year:77},{name:"Oldsmobile Omega Brougham","economy (mpg)":26.8,cylinders:6,"displacement (cc)":173,"power (hp)":115,"weight (lb)":2700,"0-60 mph (s)":12.9,year:79},{name:"Oldsmobile Starfire SX","economy (mpg)":23.8,cylinders:4,"displacement (cc)":151,"power (hp)":85,"weight (lb)":2855,"0-60 mph (s)":17.6,year:78},{name:"Opel 1900","economy (mpg)":25,cylinders:4,"displacement (cc)":116,"power (hp)":81,"weight (lb)":2220,"0-60 mph (s)":16.9,year:76},{name:"Opel Manta","economy (mpg)":24,cylinders:4,"displacement (cc)":116,"power (hp)":75,"weight (lb)":2158,"0-60 mph (s)":15.5,year:73},{name:"Peugeot 304","economy (mpg)":30,cylinders:4,"displacement (cc)":79,"power (hp)":70,"weight (lb)":2074,"0-60 mph (s)":19.5,year:71},{name:"Peugeot 504","economy (mpg)":19,cylinders:4,"displacement (cc)":120,"power (hp)":88,"weight (lb)":3270,"0-60 mph (s)":21.9,year:76},{name:"Peugeot 504","economy (mpg)":25,cylinders:4,"displacement (cc)":110,"power (hp)":87,"weight (lb)":2672,"0-60 mph (s)":17.5,year:70},{name:"Peugeot 505S Turbo Diesel","economy (mpg)":28.1,cylinders:4,"displacement (cc)":141,"power (hp)":80,"weight (lb)":3230,"0-60 mph (s)":20.4,year:81},{name:"Plymouth Arrow GS","economy (mpg)":25.5,cylinders:4,"displacement (cc)":122,"power (hp)":96,"weight (lb)":2300,"0-60 mph (s)":15.5,year:77},{name:"Plymouth Champ","economy (mpg)":39,cylinders:4,"displacement (cc)":86,"power (hp)":64,"weight (lb)":1875,"0-60 mph (s)":16.4,year:81},{name:"Plymouth Custom Suburb","economy (mpg)":13,cylinders:8,"displacement (cc)":360,"power (hp)":170,"weight (lb)":4654,"0-60 mph (s)":13,year:73},{name:"Plymouth Duster","economy (mpg)":22,cylinders:6,"displacement (cc)":198,"power (hp)":95,"weight (lb)":2833,"0-60 mph (s)":15.5,year:70},{name:"Plymouth Fury Gran Sedan","economy (mpg)":14,cylinders:8,"displacement (cc)":318,"power (hp)":150,"weight (lb)":4237,"0-60 mph (s)":14.5,year:73},{name:"Plymouth Fury III","economy (mpg)":14,cylinders:8,"displacement (cc)":440,"power (hp)":215,"weight (lb)":4312,"0-60 mph (s)":8.5,year:70},{name:"Plymouth Fury","economy (mpg)":18,cylinders:6,"displacement (cc)":225,"power (hp)":95,"weight (lb)":3785,"0-60 mph (s)":19,year:75},{name:"Plymouth Horizon 4","economy (mpg)":34.7,cylinders:4,"displacement (cc)":105,"power (hp)":63,"weight (lb)":2215,"0-60 mph (s)":14.9,year:81},{name:"Plymouth Horizon TC3","economy (mpg)":34.5,cylinders:4,"displacement (cc)":105,"power (hp)":70,"weight (lb)":2150,"0-60 mph (s)":14.9,year:79},{name:"Plymouth Reliant","economy (mpg)":27.2,cylinders:4,"displacement (cc)":135,"power (hp)":84,"weight (lb)":2490,"0-60 mph (s)":15.7,year:81},{name:"Plymouth Sapporo","economy (mpg)":23.2,cylinders:4,"displacement (cc)":156,"power (hp)":105,"weight (lb)":2745,"0-60 mph (s)":16.7,year:78},{name:"Plymouth Satellite Custom (Wagon)","economy (mpg)":14,cylinders:8,"displacement (cc)":318,"power (hp)":150,"weight (lb)":4077,"0-60 mph (s)":14,year:72},{name:"Plymouth Satellite Sebring","economy (mpg)":18,cylinders:6,"displacement (cc)":225,"power (hp)":105,"weight (lb)":3613,"0-60 mph (s)":16.5,year:74},{name:"Plymouth Valiant Custom","economy (mpg)":19,cylinders:6,"displacement (cc)":225,"power (hp)":95,"weight (lb)":3264,"0-60 mph (s)":16,year:75},{name:"Plymouth Valiant","economy (mpg)":22,cylinders:6,"displacement (cc)":225,"power (hp)":100,"weight (lb)":3233,"0-60 mph (s)":15.4,year:76},{name:"Plymouth Volare Premier V8","economy (mpg)":13,cylinders:8,"displacement (cc)":318,"power (hp)":150,"weight (lb)":3940,"0-60 mph (s)":13.2,year:76},{name:"Pontiac Astro","economy (mpg)":23,cylinders:4,"displacement (cc)":140,"power (hp)":78,"weight (lb)":2592,"0-60 mph (s)":18.5,year:75},{name:"Pontiac Catalina","economy (mpg)":14,cylinders:8,"displacement (cc)":400,"power (hp)":175,"weight (lb)":4385,"0-60 mph (s)":12,year:72},{name:"Pontiac Catalina","economy (mpg)":16,cylinders:8,"displacement (cc)":400,"power (hp)":170,"weight (lb)":4668,"0-60 mph (s)":11.5,year:75},{name:"Pontiac Grand Prix Lj","economy (mpg)":16,cylinders:8,"displacement (cc)":400,"power (hp)":180,"weight (lb)":4220,"0-60 mph (s)":11.1,year:77},{name:"Pontiac J2000 Se Hatchback","economy (mpg)":31,cylinders:4,"displacement (cc)":112,"power (hp)":85,"weight (lb)":2575,"0-60 mph (s)":16.2,year:82},{name:"Pontiac Phoenix LJ","economy (mpg)":19.2,cylinders:6,"displacement (cc)":231,"power (hp)":105,"weight (lb)":3535,"0-60 mph (s)":19.2,year:78},{name:"Pontiac Phoenix","economy (mpg)":33.5,cylinders:4,"displacement (cc)":151,"power (hp)":90,"weight (lb)":2556,"0-60 mph (s)":13.2,year:79},{name:"Pontiac Sunbird Coupe","economy (mpg)":24.5,cylinders:4,"displacement (cc)":151,"power (hp)":88,"weight (lb)":2740,"0-60 mph (s)":16,year:77},{name:"Renault 12 (Wagon)","economy (mpg)":26,cylinders:4,"displacement (cc)":96,"power (hp)":69,"weight (lb)":2189,"0-60 mph (s)":18,year:72},{name:"Renault 18I","economy (mpg)":34.5,cylinders:4,"displacement (cc)":100,"power (hp)":null,"weight (lb)":2320,"0-60 mph (s)":15.8,year:81},{name:"Renault Lecar Deluxe","economy (mpg)":40.9,cylinders:4,"displacement (cc)":85,"power (hp)":null,"weight (lb)":1835,"0-60 mph (s)":17.3,year:80},{name:"Saab 99E","economy (mpg)":25,cylinders:4,"displacement (cc)":104,"power (hp)":95,"weight (lb)":2375,"0-60 mph (s)":17.5,year:70},{name:"Saab 99LE","economy (mpg)":24,cylinders:4,"displacement (cc)":121,"power (hp)":110,"weight (lb)":2660,"0-60 mph (s)":14,year:73},{name:"Subaru DL","economy (mpg)":30,cylinders:4,"displacement (cc)":97,"power (hp)":67,"weight (lb)":1985,"0-60 mph (s)":16.4,year:77},{name:"Subaru","economy (mpg)":26,cylinders:4,"displacement (cc)":108,"power (hp)":93,"weight (lb)":2391,"0-60 mph (s)":15.5,year:74},{name:"Toyota Carina","economy (mpg)":20,cylinders:4,"displacement (cc)":97,"power (hp)":88,"weight (lb)":2279,"0-60 mph (s)":19,year:73},{name:"Toyota Celica GT","economy (mpg)":32,cylinders:4,"displacement (cc)":144,"power (hp)":96,"weight (lb)":2665,"0-60 mph (s)":13.9,year:82},{name:"Toyota Corolla 1200","economy (mpg)":32,cylinders:4,"displacement (cc)":71,"power (hp)":65,"weight (lb)":1836,"0-60 mph (s)":21,year:74},{name:"Toyota Corolla Liftback","economy (mpg)":26,cylinders:4,"displacement (cc)":97,"power (hp)":75,"weight (lb)":2265,"0-60 mph (s)":18.2,year:77},{name:"Toyota Corolla","economy (mpg)":28,cylinders:4,"displacement (cc)":97,"power (hp)":75,"weight (lb)":2155,"0-60 mph (s)":16.4,year:76},{name:"Toyota Corolla","economy (mpg)":32.2,cylinders:4,"displacement (cc)":108,"power (hp)":75,"weight (lb)":2265,"0-60 mph (s)":15.2,year:80},{name:"Toyota Corolla","economy (mpg)":34,cylinders:4,"displacement (cc)":108,"power (hp)":70,"weight (lb)":2245,"0-60 mph (s)":16.9,year:82},{name:"Toyota Corona Liftback","economy (mpg)":29.8,cylinders:4,"displacement (cc)":134,"power (hp)":90,"weight (lb)":2711,"0-60 mph (s)":15.5,year:80},{name:"Toyota Corona","economy (mpg)":24,cylinders:4,"displacement (cc)":134,"power (hp)":96,"weight (lb)":2702,"0-60 mph (s)":13.5,year:75},{name:"Toyota Corona","economy (mpg)":27.5,cylinders:4,"displacement (cc)":134,"power (hp)":95,"weight (lb)":2560,"0-60 mph (s)":14.2,year:78},{name:"Toyota Cressida","economy (mpg)":25.4,cylinders:6,"displacement (cc)":168,"power (hp)":116,"weight (lb)":2900,"0-60 mph (s)":12.6,year:81},{name:"Toyota Mark II","economy (mpg)":20,cylinders:6,"displacement (cc)":156,"power (hp)":122,"weight (lb)":2807,"0-60 mph (s)":13.5,year:73},{name:"Toyota Tercel","economy (mpg)":37.7,cylinders:4,"displacement (cc)":89,"power (hp)":62,"weight (lb)":2050,"0-60 mph (s)":17.3,year:81},{name:"Triumph TR7 Coupe","economy (mpg)":35,cylinders:4,"displacement (cc)":122,"power (hp)":88,"weight (lb)":2500,"0-60 mph (s)":15.1,year:80},{name:"Volkswagen 1131 Deluxe Sedan","economy (mpg)":26,cylinders:4,"displacement (cc)":97,"power (hp)":46,"weight (lb)":1835,"0-60 mph (s)":20.5,year:70},{name:"Volkswagen Dasher (Diesel)","economy (mpg)":43.4,cylinders:4,"displacement (cc)":90,"power (hp)":48,"weight (lb)":2335,"0-60 mph (s)":23.7,year:80},{name:"Volkswagen Dasher","economy (mpg)":26,cylinders:4,"displacement (cc)":79,"power (hp)":67,"weight (lb)":1963,"0-60 mph (s)":15.5,year:74},{name:"Volkswagen Jetta","economy (mpg)":33,cylinders:4,"displacement (cc)":105,"power (hp)":74,"weight (lb)":2190,"0-60 mph (s)":14.2,year:81},{name:"Volkswagen Pickup","economy (mpg)":44,cylinders:4,"displacement (cc)":97,"power (hp)":52,"weight (lb)":2130,"0-60 mph (s)":24.6,year:82},{name:"Volkswagen Rabbit Custom Diesel","economy (mpg)":43.1,cylinders:4,"displacement (cc)":90,"power (hp)":48,"weight (lb)":1985,"0-60 mph (s)":21.5,year:78},{name:"Volkswagen Rabbit Custom","economy (mpg)":31.9,cylinders:4,"displacement (cc)":89,"power (hp)":71,"weight (lb)":1925,"0-60 mph (s)":14,year:79},{name:"Volkswagen Rabbit","economy (mpg)":29,cylinders:4,"displacement (cc)":90,"power (hp)":70,"weight (lb)":1937,"0-60 mph (s)":14,year:75},{name:"Volkswagen Rabbit","economy (mpg)":29.5,cylinders:4,"displacement (cc)":97,"power (hp)":71,"weight (lb)":1825,"0-60 mph (s)":12.2,year:76},{name:"Volkswagen Scirocco","economy (mpg)":31.5,cylinders:4,"displacement (cc)":89,"power (hp)":71,"weight (lb)":1990,"0-60 mph (s)":14.9,year:78},{name:"Volkswagen Super Beetle","economy (mpg)":26,cylinders:4,"displacement (cc)":97,"power (hp)":46,"weight (lb)":1950,"0-60 mph (s)":21,year:73},{name:"Volvo 144EA","economy (mpg)":19,cylinders:4,"displacement (cc)":121,"power (hp)":112,"weight (lb)":2868,"0-60 mph (s)":15.5,year:73},{name:"Volvo 244DL","economy (mpg)":22,cylinders:4,"displacement (cc)":121,"power (hp)":98,"weight (lb)":2945,"0-60 mph (s)":14.5,year:75},{name:"Volvo 264GL","economy (mpg)":17,cylinders:6,"displacement (cc)":163,"power (hp)":125,"weight (lb)":3140,"0-60 mph (s)":13.6,year:78},{name:"Volvo Diesel","economy (mpg)":30.7,cylinders:6,"displacement (cc)":145,"power (hp)":76,"weight (lb)":3160,"0-60 mph (s)":19.6,year:81}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-regressioncurve",name:"\u56DE\u5F52\u66F2\u7EBF",description:"\u5728\u6563\u70B9\u4E0A\u53E0\u52A0\u62DF\u5408\u8D8B\u52BF\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u56DE\u5F52\u66F2\u7EBF",datasets:{main:[[.067732,3.176513],[.42781,3.816464],[.995731,4.550095],[.738336,4.256571],[.981083,4.560815],[.526171,3.929515],[.378887,3.52617],[.033859,3.156393],[.132791,3.110301],[.138306,3.149813],[.247809,3.476346],[.64827,4.119688],[.731209,4.282233],[.236833,3.486582],[.969788,4.655492],[.607492,3.965162],[.358622,3.5149],[.147846,3.125947],[.63782,4.094115],[.230372,3.476039],[.070237,3.21061],[.067154,3.190612],[.925577,4.631504],[.717733,4.29589],[.015371,3.085028],[.33507,3.44808],[.040486,3.16744],[.212575,3.364266],[.617218,3.993482],[.541196,3.891471],[.045353,3.143259],[.126762,3.114204],[.556486,3.851484],[.901144,4.621899],[.958476,4.580768],[.274561,3.620992],[.394396,3.580501],[.87248,4.618706],[.409932,3.676867],[.908969,4.641845],[.166819,3.175939],[.665016,4.26498],[.263727,3.558448],[.231214,3.436632],[.552928,3.831052],[.047744,3.182853],[.365746,3.498906],[.495002,3.946833],[.493466,3.900583],[.792101,4.238522],[.76966,4.23308],[.251821,3.521557],[.181951,3.203344],[.808177,4.278105],[.334116,3.555705],[.33863,3.502661],[.452584,3.859776],[.69477,4.275956],[.590902,3.916191],[.307928,3.587961],[.148364,3.183004],[.70218,4.225236],[.721544,4.231083],[.666886,4.240544],[.124931,3.222372],[.618286,4.021445],[.381086,3.567479],[.385643,3.56258],[.777175,4.262059],[.116089,3.208813],[.115487,3.169825],[.66351,4.193949],[.254884,3.491678],[.993888,4.533306],[.295434,3.550108],[.952523,4.636427],[.307047,3.557078],[.277261,3.552874],[.279101,3.494159],[.175724,3.206828],[.156383,3.195266],[.733165,4.221292],[.848142,4.413372],[.771184,4.184347],[.429492,3.742878],[.162176,3.201878],[.917064,4.648964],[.315044,3.510117],[.201473,3.274434],[.297038,3.579622],[.336647,3.489244],[.666109,4.237386],[.583888,3.913749],[.085031,3.22899],[.687006,4.286286],[.949655,4.628614],[.189912,3.239536],[.844027,4.457997],[.333288,3.513384],[.427035,3.729674],[.466369,3.834274],[.550659,3.811155],[.278213,3.598316],[.918769,4.692514],[.886555,4.604859],[.569488,3.864912],[.066379,3.184236],[.335751,3.500796],[.426863,3.743365],[.395746,3.622905],[.694221,4.310796],[.27276,3.583357],[.503495,3.901852],[.067119,3.233521],[.038326,3.105266],[.599122,3.865544],[.947054,4.628625],[.671279,4.231213],[.434811,3.791149],[.509381,3.968271],[.749442,4.25391],[.058014,3.19471],[.482978,3.996503],[.466776,3.904358],[.357767,3.503976],[.949123,4.557545],[.41732,3.699876],[.920461,4.613614],[.156433,3.140401],[.656662,4.206717],[.616418,3.969524],[.853428,4.476096],[.133295,3.136528],[.693007,4.279071],[.178449,3.200603],[.199526,3.299012],[.073224,3.209873],[.286515,3.632942],[.182026,3.248361],[.621523,3.995783],[.344584,3.563262],[.398556,3.649712],[.480369,3.951845],[.15335,3.145031],[.171846,3.181577],[.867082,4.637087],[.223855,3.404964],[.528301,3.873188],[.890192,4.633648],[.106352,3.154768],[.917886,4.623637],[.014855,3.078132],[.567682,3.913596],[.068854,3.221817],[.603535,3.938071],[.53205,3.880822],[.651362,4.176436],[.901225,4.648161],[.204337,3.332312],[.696081,4.240614],[.963924,4.532224],[.98139,4.557105],[.987911,4.610072],[.990947,4.636569],[.736021,4.229813],[.253574,3.50086],[.674722,4.245514],[.939368,4.605182],[.235419,3.45434],[.110521,3.180775],[.218023,3.38082],[.869778,4.56502],[.19683,3.279973],[.958178,4.554241],[.972673,4.63352],[.745797,4.281037],[.445674,3.844426],[.470557,3.891601],[.549236,3.849728],[.335691,3.492215],[.884739,4.592374],[.918916,4.632025],[.441815,3.75675],[.116598,3.133555],[.359274,3.567919],[.814811,4.363382],[.387125,3.560165],[.982243,4.564305],[.78088,4.215055],[.652565,4.174999],[.87003,4.58664],[.604755,3.960008],[.255212,3.529963],[.730546,4.213412],[.493829,3.908685],[.257017,3.585821],[.833735,4.374394],[.070095,3.213817],[.52707,3.952681],[.116163,3.129283]]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-pie",name:"\u997C\u56FE",description:"\u5C55\u793A\u6574\u4F53\u4E2D\u7684\u7C7B\u522B\u5360\u6BD4\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u997C\u56FE",datasets:{main:[{browser:"Chrome",value:61.04},{browser:"Safari",value:15.12},{browser:"Edge",value:10.52},{browser:"Firefox",value:7.19},{browser:"Samsung Internet",value:2.98},{browser:"Opera",value:3.15}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-donut-chart",name:"\u73AF\u56FE",description:"\u4E2D\u5FC3\u7559\u767D\u7684\u6BD4\u4F8B\u8868\u8FBE\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u73AF\u56FE",datasets:{main:[{genre:"Sports",sold:27500},{genre:"Strategy",sold:11500},{genre:"Action",sold:6e3},{genre:"Shooter",sold:3500},{genre:"Other",sold:1500}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-stacked-bar",name:"\u5806\u53E0\u67F1\u72B6\u56FE",description:"\u6BD4\u8F83\u603B\u91CF\u53CA\u5404\u90E8\u5206\u6784\u6210\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5806\u53E0\u67F1\u72B6\u56FE",datasets:{main:[{name:"London",month:"Jan.",rainfall:18.9},{name:"London",month:"Feb.",rainfall:28.8},{name:"London",month:"Mar.",rainfall:39.3},{name:"London",month:"Apr.",rainfall:81.4},{name:"London",month:"May",rainfall:47},{name:"London",month:"Jun.",rainfall:20.3},{name:"London",month:"Jul.",rainfall:24},{name:"London",month:"Aug.",rainfall:35.6},{name:"Berlin",month:"Jan.",rainfall:12.4},{name:"Berlin",month:"Feb.",rainfall:23.2},{name:"Berlin",month:"Mar.",rainfall:34.5},{name:"Berlin",month:"Apr.",rainfall:99.7},{name:"Berlin",month:"May",rainfall:52.6},{name:"Berlin",month:"Jun.",rainfall:35.5},{name:"Berlin",month:"Jul.",rainfall:37.4},{name:"Berlin",month:"Aug.",rainfall:42.4}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-stacked-area",name:"\u5806\u53E0\u9762\u79EF\u56FE",description:"\u89C2\u5BDF\u6784\u6210\u968F\u65F6\u95F4\u53D8\u5316\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5806\u53E0\u9762\u79EF\u56FE",datasets:{main:[{country:"Asia",year:"1750",value:502},{country:"Asia",year:"1800",value:635},{country:"Asia",year:"1850",value:809},{country:"Asia",year:"1900",value:5268},{country:"Asia",year:"1950",value:4400},{country:"Asia",year:"1999",value:3634},{country:"Asia",year:"2050",value:947},{country:"Africa",year:"1750",value:106},{country:"Africa",year:"1800",value:107},{country:"Africa",year:"1850",value:111},{country:"Africa",year:"1900",value:1766},{country:"Africa",year:"1950",value:221},{country:"Africa",year:"1999",value:767},{country:"Africa",year:"2050",value:133},{country:"Europe",year:"1750",value:163},{country:"Europe",year:"1800",value:203},{country:"Europe",year:"1850",value:276},{country:"Europe",year:"1900",value:628},{country:"Europe",year:"1950",value:547},{country:"Europe",year:"1999",value:729},{country:"Europe",year:"2050",value:408},{country:"Oceania",year:"1750",value:200},{country:"Oceania",year:"1800",value:200},{country:"Oceania",year:"1850",value:200},{country:"Oceania",year:"1900",value:460},{country:"Oceania",year:"1950",value:230},{country:"Oceania",year:"1999",value:300},{country:"Oceania",year:"2050",value:300}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-rose",name:"\u73AB\u7470\u56FE",description:"\u4EE5\u6247\u533A\u534A\u5F84\u8868\u73B0\u6570\u503C\u5DEE\u5F02\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u73AB\u7470\u56FE",datasets:{main:[{country:"China",cost:96},{country:"Germany",cost:121},{country:"USA",cost:100},{country:"Japan",cost:111},{country:"Korea",cost:102},{country:"France",cost:124},{country:"Italy",cost:123},{country:"Netherlands",cost:111},{country:"Belgium",cost:123},{country:"UK",cost:109},{country:"Canada",cost:115},{country:"Russia",cost:99},{country:"Mexico",cost:91},{country:"India",cost:87},{country:"Switzerland",cost:125},{country:"Australia",cost:130},{country:"Spain",cost:109},{country:"Brazil",cost:123},{country:"Thailand",cost:91},{country:"Indonesia",cost:83},{country:"Poland",cost:101},{country:"Sweden",cost:116},{country:"Austria",cost:111},{country:"Czech",cost:107}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-mosaic",name:"\u9A6C\u8D5B\u514B\u56FE",description:"\u4EE5\u5BBD\u5EA6\u4E0E\u9762\u79EF\u8868\u73B0\u5206\u7C7B\u6784\u6210\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u9A6C\u8D5B\u514B\u56FE",datasets:{main:[{market:"Auburn, AL",segment:"Almond lovers",value:3840},{market:"Auburn, AL",segment:"Berry buyers",value:1920},{market:"Auburn, AL",segment:"Carrots-n-more",value:960},{market:"Auburn, AL",segment:"Delicious-n-new",value:400},{market:"Birmingham, AL",segment:"Almond lovers",value:1600},{market:"Birmingham, AL",segment:"Berry buyers",value:1440},{market:"Birmingham, AL",segment:"Carrots-n-more",value:960},{market:"Birmingham, AL",segment:"Delicious-n-new",value:400},{market:"Gainesville, FL",segment:"Almond lovers",value:640},{market:"Gainesville, FL",segment:"Berry buyers",value:960},{market:"Gainesville, FL",segment:"Carrots-n-more",value:640},{market:"Gainesville, FL",segment:"Delicious-n-new",value:400},{market:"Durham, NC",segment:"Almond lovers",value:320},{market:"Durham, NC",segment:"Berry buyers",value:480},{market:"Durham, NC",segment:"Carrots-n-more",value:640},{market:"Durham, NC",segment:"Delicious-n-new",value:400}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-treemap",name:"\u77E9\u5F62\u6811\u56FE",description:"\u7528\u5D4C\u5957\u77E9\u5F62\u8868\u73B0\u5C42\u7EA7\u4E0E\u5360\u6BD4\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u77E9\u5F62\u6811\u56FE",datasets:{main:[{name:"flare",size:null},{name:"flare.analytics",size:null},{name:"flare.analytics.cluster",size:null},{name:"flare.analytics.cluster.AgglomerativeCluster",size:3938},{name:"flare.analytics.cluster.CommunityStructure",size:3812},{name:"flare.analytics.cluster.HierarchicalCluster",size:6714},{name:"flare.analytics.cluster.MergeEdge",size:743},{name:"flare.analytics.graph",size:null},{name:"flare.analytics.graph.BetweennessCentrality",size:3534},{name:"flare.analytics.graph.LinkDistance",size:5731},{name:"flare.analytics.graph.MaxFlowMinCut",size:7840},{name:"flare.analytics.graph.ShortestPaths",size:5914},{name:"flare.analytics.graph.SpanningTree",size:3416},{name:"flare.analytics.optimization",size:null},{name:"flare.analytics.optimization.AspectRatioBanker",size:7074},{name:"flare.animate",size:null},{name:"flare.animate.Easing",size:17010},{name:"flare.animate.FunctionSequence",size:5842},{name:"flare.animate.interpolate",size:null},{name:"flare.animate.interpolate.ArrayInterpolator",size:1983},{name:"flare.animate.interpolate.ColorInterpolator",size:2047},{name:"flare.animate.interpolate.DateInterpolator",size:1375},{name:"flare.animate.interpolate.Interpolator",size:8746},{name:"flare.animate.interpolate.MatrixInterpolator",size:2202},{name:"flare.animate.interpolate.NumberInterpolator",size:1382},{name:"flare.animate.interpolate.ObjectInterpolator",size:1629},{name:"flare.animate.interpolate.PointInterpolator",size:1675},{name:"flare.animate.interpolate.RectangleInterpolator",size:2042},{name:"flare.animate.ISchedulable",size:1041},{name:"flare.animate.Parallel",size:5176},{name:"flare.animate.Pause",size:449},{name:"flare.animate.Scheduler",size:5593},{name:"flare.animate.Sequence",size:5534},{name:"flare.animate.Transition",size:9201},{name:"flare.animate.Transitioner",size:19975},{name:"flare.animate.TransitionEvent",size:1116},{name:"flare.animate.Tween",size:6006},{name:"flare.data",size:null},{name:"flare.data.converters",size:null},{name:"flare.data.converters.Converters",size:721},{name:"flare.data.converters.DelimitedTextConverter",size:4294},{name:"flare.data.converters.GraphMLConverter",size:9800},{name:"flare.data.converters.IDataConverter",size:1314},{name:"flare.data.converters.JSONConverter",size:2220},{name:"flare.data.DataField",size:1759},{name:"flare.data.DataSchema",size:2165},{name:"flare.data.DataSet",size:586},{name:"flare.data.DataSource",size:3331},{name:"flare.data.DataTable",size:772},{name:"flare.data.DataUtil",size:3322},{name:"flare.display",size:null},{name:"flare.display.DirtySprite",size:8833},{name:"flare.display.LineSprite",size:1732},{name:"flare.display.RectSprite",size:3623},{name:"flare.display.TextSprite",size:10066},{name:"flare.flex",size:null},{name:"flare.flex.FlareVis",size:4116},{name:"flare.physics",size:null},{name:"flare.physics.DragForce",size:1082},{name:"flare.physics.GravityForce",size:1336},{name:"flare.physics.IForce",size:319},{name:"flare.physics.NBodyForce",size:10498},{name:"flare.physics.Particle",size:2822},{name:"flare.physics.Simulation",size:9983},{name:"flare.physics.Spring",size:2213},{name:"flare.physics.SpringForce",size:1681},{name:"flare.query",size:null},{name:"flare.query.AggregateExpression",size:1616},{name:"flare.query.And",size:1027},{name:"flare.query.Arithmetic",size:3891},{name:"flare.query.Average",size:891},{name:"flare.query.BinaryExpression",size:2893},{name:"flare.query.Comparison",size:5103},{name:"flare.query.CompositeExpression",size:3677},{name:"flare.query.Count",size:781},{name:"flare.query.DateUtil",size:4141},{name:"flare.query.Distinct",size:933},{name:"flare.query.Expression",size:5130},{name:"flare.query.ExpressionIterator",size:3617},{name:"flare.query.Fn",size:3240},{name:"flare.query.If",size:2732},{name:"flare.query.IsA",size:2039},{name:"flare.query.Literal",size:1214},{name:"flare.query.Match",size:3748},{name:"flare.query.Maximum",size:843},{name:"flare.query.methods",size:null},{name:"flare.query.methods.add",size:593},{name:"flare.query.methods.and",size:330},{name:"flare.query.methods.average",size:287},{name:"flare.query.methods.count",size:277},{name:"flare.query.methods.distinct",size:292},{name:"flare.query.methods.div",size:595},{name:"flare.query.methods.eq",size:594},{name:"flare.query.methods.fn",size:460},{name:"flare.query.methods.gt",size:603},{name:"flare.query.methods.gte",size:625},{name:"flare.query.methods.iff",size:748},{name:"flare.query.methods.isa",size:461},{name:"flare.query.methods.lt",size:597},{name:"flare.query.methods.lte",size:619},{name:"flare.query.methods.max",size:283},{name:"flare.query.methods.min",size:283},{name:"flare.query.methods.mod",size:591},{name:"flare.query.methods.mul",size:603},{name:"flare.query.methods.neq",size:599},{name:"flare.query.methods.not",size:386},{name:"flare.query.methods.or",size:323},{name:"flare.query.methods.orderby",size:307},{name:"flare.query.methods.range",size:772},{name:"flare.query.methods.select",size:296},{name:"flare.query.methods.stddev",size:363},{name:"flare.query.methods.sub",size:600},{name:"flare.query.methods.sum",size:280},{name:"flare.query.methods.update",size:307},{name:"flare.query.methods.variance",size:335},{name:"flare.query.methods.where",size:299},{name:"flare.query.methods.xor",size:354},{name:"flare.query.methods._",size:264},{name:"flare.query.Minimum",size:843},{name:"flare.query.Not",size:1554},{name:"flare.query.Or",size:970},{name:"flare.query.Query",size:13896},{name:"flare.query.Range",size:1594},{name:"flare.query.StringUtil",size:4130},{name:"flare.query.Sum",size:791},{name:"flare.query.Variable",size:1124},{name:"flare.query.Variance",size:1876},{name:"flare.query.Xor",size:1101},{name:"flare.scale",size:null},{name:"flare.scale.IScaleMap",size:2105},{name:"flare.scale.LinearScale",size:1316},{name:"flare.scale.LogScale",size:3151},{name:"flare.scale.OrdinalScale",size:3770},{name:"flare.scale.QuantileScale",size:2435},{name:"flare.scale.QuantitativeScale",size:4839},{name:"flare.scale.RootScale",size:1756},{name:"flare.scale.Scale",size:4268},{name:"flare.scale.ScaleType",size:1821},{name:"flare.scale.TimeScale",size:5833},{name:"flare.util",size:null},{name:"flare.util.Arrays",size:8258},{name:"flare.util.Colors",size:10001},{name:"flare.util.Dates",size:8217},{name:"flare.util.Displays",size:12555},{name:"flare.util.Filter",size:2324},{name:"flare.util.Geometry",size:10993},{name:"flare.util.heap",size:null},{name:"flare.util.heap.FibonacciHeap",size:9354},{name:"flare.util.heap.HeapNode",size:1233},{name:"flare.util.IEvaluable",size:335},{name:"flare.util.IPredicate",size:383},{name:"flare.util.IValueProxy",size:874},{name:"flare.util.math",size:null},{name:"flare.util.math.DenseMatrix",size:3165},{name:"flare.util.math.IMatrix",size:2815},{name:"flare.util.math.SparseMatrix",size:3366},{name:"flare.util.Maths",size:17705},{name:"flare.util.Orientation",size:1486},{name:"flare.util.palette",size:null},{name:"flare.util.palette.ColorPalette",size:6367},{name:"flare.util.palette.Palette",size:1229},{name:"flare.util.palette.ShapePalette",size:2059},{name:"flare.util.palette.SizePalette",size:2291},{name:"flare.util.Property",size:5559},{name:"flare.util.Shapes",size:19118},{name:"flare.util.Sort",size:6887},{name:"flare.util.Stats",size:6557},{name:"flare.util.Strings",size:22026},{name:"flare.vis",size:null},{name:"flare.vis.axis",size:null},{name:"flare.vis.axis.Axes",size:1302},{name:"flare.vis.axis.Axis",size:24593},{name:"flare.vis.axis.AxisGridLine",size:652},{name:"flare.vis.axis.AxisLabel",size:636},{name:"flare.vis.axis.CartesianAxes",size:6703},{name:"flare.vis.controls",size:null},{name:"flare.vis.controls.AnchorControl",size:2138},{name:"flare.vis.controls.ClickControl",size:3824},{name:"flare.vis.controls.Control",size:1353},{name:"flare.vis.controls.ControlList",size:4665},{name:"flare.vis.controls.DragControl",size:2649},{name:"flare.vis.controls.ExpandControl",size:2832},{name:"flare.vis.controls.HoverControl",size:4896},{name:"flare.vis.controls.IControl",size:763},{name:"flare.vis.controls.PanZoomControl",size:5222},{name:"flare.vis.controls.SelectionControl",size:7862},{name:"flare.vis.controls.TooltipControl",size:8435},{name:"flare.vis.data",size:null},{name:"flare.vis.data.Data",size:20544},{name:"flare.vis.data.DataList",size:19788},{name:"flare.vis.data.DataSprite",size:10349},{name:"flare.vis.data.EdgeSprite",size:3301},{name:"flare.vis.data.NodeSprite",size:19382},{name:"flare.vis.data.render",size:null},{name:"flare.vis.data.render.ArrowType",size:698},{name:"flare.vis.data.render.EdgeRenderer",size:5569},{name:"flare.vis.data.render.IRenderer",size:353},{name:"flare.vis.data.render.ShapeRenderer",size:2247},{name:"flare.vis.data.ScaleBinding",size:11275},{name:"flare.vis.data.Tree",size:7147},{name:"flare.vis.data.TreeBuilder",size:9930},{name:"flare.vis.events",size:null},{name:"flare.vis.events.DataEvent",size:2313},{name:"flare.vis.events.SelectionEvent",size:1880},{name:"flare.vis.events.TooltipEvent",size:1701},{name:"flare.vis.events.VisualizationEvent",size:1117},{name:"flare.vis.legend",size:null},{name:"flare.vis.legend.Legend",size:20859},{name:"flare.vis.legend.LegendItem",size:4614},{name:"flare.vis.legend.LegendRange",size:10530},{name:"flare.vis.operator",size:null},{name:"flare.vis.operator.distortion",size:null},{name:"flare.vis.operator.distortion.BifocalDistortion",size:4461},{name:"flare.vis.operator.distortion.Distortion",size:6314},{name:"flare.vis.operator.distortion.FisheyeDistortion",size:3444},{name:"flare.vis.operator.encoder",size:null},{name:"flare.vis.operator.encoder.ColorEncoder",size:3179},{name:"flare.vis.operator.encoder.Encoder",size:4060},{name:"flare.vis.operator.encoder.PropertyEncoder",size:4138},{name:"flare.vis.operator.encoder.ShapeEncoder",size:1690},{name:"flare.vis.operator.encoder.SizeEncoder",size:1830},{name:"flare.vis.operator.filter",size:null},{name:"flare.vis.operator.filter.FisheyeTreeFilter",size:5219},{name:"flare.vis.operator.filter.GraphDistanceFilter",size:3165},{name:"flare.vis.operator.filter.VisibilityFilter",size:3509},{name:"flare.vis.operator.IOperator",size:1286},{name:"flare.vis.operator.label",size:null},{name:"flare.vis.operator.label.Labeler",size:9956},{name:"flare.vis.operator.label.RadialLabeler",size:3899},{name:"flare.vis.operator.label.StackedAreaLabeler",size:3202},{name:"flare.vis.operator.layout",size:null},{name:"flare.vis.operator.layout.AxisLayout",size:6725},{name:"flare.vis.operator.layout.BundledEdgeRouter",size:3727},{name:"flare.vis.operator.layout.CircleLayout",size:9317},{name:"flare.vis.operator.layout.CirclePackingLayout",size:12003},{name:"flare.vis.operator.layout.DendrogramLayout",size:4853},{name:"flare.vis.operator.layout.ForceDirectedLayout",size:8411},{name:"flare.vis.operator.layout.IcicleTreeLayout",size:4864},{name:"flare.vis.operator.layout.IndentedTreeLayout",size:3174},{name:"flare.vis.operator.layout.Layout",size:7881},{name:"flare.vis.operator.layout.NodeLinkTreeLayout",size:12870},{name:"flare.vis.operator.layout.PieLayout",size:2728},{name:"flare.vis.operator.layout.RadialTreeLayout",size:12348},{name:"flare.vis.operator.layout.RandomLayout",size:870},{name:"flare.vis.operator.layout.StackedAreaLayout",size:9121},{name:"flare.vis.operator.layout.TreeMapLayout",size:9191},{name:"flare.vis.operator.Operator",size:2490},{name:"flare.vis.operator.OperatorList",size:5248},{name:"flare.vis.operator.OperatorSequence",size:4190},{name:"flare.vis.operator.OperatorSwitch",size:2581},{name:"flare.vis.operator.SortOperator",size:2023},{name:"flare.vis.Visualization",size:16540}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-sunburst",name:"\u65ED\u65E5\u56FE",description:"\u6309\u540C\u5FC3\u5C42\u7EA7\u5C55\u5F00\u7EC4\u6210\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u65ED\u65E5\u56FE",datasets:{main:{label:"root",children:[{label:"\u7C7B\u522B 1",children:[{label:"\u7C7B\u522B 1.1",children:[{label:"\u7C7B\u522B 1.1.1",children:[{label:"\u7C7B\u522B 1.1.1.1",children:[{label:"\u7C7B\u522B 1.1.1.1.1",children:null,uv:1,sum:1,count:0}],uv:0,sum:1,count:0}],uv:0,sum:1,count:0}],uv:0,sum:1,count:0}],uv:0,sum:1,count:0},{label:"\u7C7B\u522B 2",children:[{label:"\u7C7B\u522B 2.1",children:[{label:"\u7C7B\u522B 2.1.1",children:[{label:"\u7C7B\u522B 2.1.1.1",children:[{label:"\u7C7B\u522B 2.1.1.1.1",value:"\u53E3\u7891-\u672C\u5730\u751F\u6D3B\u4E8B\u4E1A\u90E8-\u4E1C\u6210\u897F\u5C31\u5927\u533A-\u5927\u4E2D\u53F0-\u8FD0\u8425",children:[{label:"\u7C7B\u522B 2.1.1.1.1.1",children:null,uv:1,sum:1,count:0},{label:"\u7C7B\u522B 2.1.1.1.1.2",children:null,uv:1,sum:1,count:0}],uv:1,sum:3,count:0}],uv:1,sum:4,count:0},{label:"\u7C7B\u522B 2.1.1.2",children:null,uv:1,sum:1,count:0}],uv:0,sum:5,count:0},{label:"\u7C7B\u522B 2.1.2",children:[{label:"\u7C7B\u522B 2.1.2.1",children:null,uv:1,sum:1,count:0},{label:"\u7C7B\u522B 2.1.2.2",children:[{label:"\u7C7B\u522B 2.1.2.2.1",children:null,uv:1,sum:1,count:0}],uv:0,sum:1,count:0}],uv:0,sum:2,count:0},{label:"\u7C7B\u522B 2.1.3",children:[{label:"\u7C7B\u522B 2.1.3.1",children:null,uv:1,sum:1,count:0}],uv:0,sum:1,count:0},{label:"\u7C7B\u522B 2.1.4",children:[{label:"\u7C7B\u522B 2.1.4.1",children:null,uv:2,sum:2,count:0}],uv:0,sum:2,count:0},{label:"\u7C7B\u522B 2.1.5",children:null,uv:1,sum:1,count:0}],uv:1,sum:12,count:0},{label:"\u7C7B\u522B 2.2",children:[{label:"\u7C7B\u522B 2.2.1",children:null,uv:1,sum:1,count:0}],uv:1,sum:2,count:0},{label:"\u7C7B\u522B 2.3",children:null,uv:1,sum:1,count:0},{label:"\u7C7B\u522B 2.4",children:[{label:"\u7C7B\u522B 2.4.1",children:[{label:"\u7C7B\u522B 2.4.1.1",children:null,uv:1,sum:1,count:0}],uv:0,sum:1,count:0}],uv:0,sum:1,count:0},{label:"\u7C7B\u522B 2.5",children:[{label:"\u7C7B\u522B 2.5.1",children:null,uv:3,sum:3,count:0}],uv:0,sum:3,count:0}],uv:1,sum:20,count:0},{label:"\u7C7B\u522B 3",children:[{label:"\u7C7B\u522B 3.1",children:[{label:"\u7C7B\u522B 3.1.1",children:[{label:"\u7C7B\u522B 3.1.1.1",children:[{label:"\u7C7B\u522B 3.1.1.1.1",children:[{label:"\u7C7B\u522B 3.1.1.1.1.1",children:null,uv:1,sum:1,count:0}],uv:0,sum:1,count:0}],uv:0,sum:1,count:0},{label:"\u7C7B\u522B 3.1.1.2",children:[{label:"\u7C7B\u522B 3.1.1.2.1",children:[{label:"\u7C7B\u522B 3.1.1.2.1.1",children:null,uv:2,sum:2,count:0}],uv:0,sum:2,count:0}],uv:1,sum:3,count:0}],uv:0,sum:4,count:0},{label:"\u7C7B\u522B 3.1.2",children:[{label:"\u7C7B\u522B 3.1.2.1",children:null,uv:3,sum:3,count:0},{label:"\u7C7B\u522B 3.1.2.2",children:[{_id:"\u6570\u636E\u4EA7\u54C1&\u8FD0\u8425",label:"\u6570\u636E\u4EA7\u54C1&\u8FD0\u8425",value:"\u8682\u8681\u91D1\u670D-\u5E73\u53F0\u6570\u636E\u6280\u672F\u4E8B\u4E1A\u7FA4-\u6570\u636E\u5E73\u53F0\u90E8-\u6570\u636E\u8D44\u4EA7\u5E73\u53F0-\u6570\u636E\u4EA7\u54C1&\u8FD0\u8425",children:null,uv:1,sum:1,count:0}],uv:0,sum:1,count:0}],uv:0,sum:4,count:0}],uv:0,sum:8,count:0},{label:"\u7C7B\u522B 3.2",children:[{label:"\u7C7B\u522B 3.2.1",children:[{label:"\u7C7B\u522B 3.2.1.1",children:null,uv:1,sum:1,count:0},{label:"\u7C7B\u522B 3.2.1.2",children:[{label:"\u7C7B\u522B 3.2.1.2.1",children:null,uv:1,sum:1,count:0},{label:"\u7C7B\u522B 3.2.1.2.2",children:[{_id:"\u57CE\u5E02\u6C11\u751F\u8FD0\u8425",label:"\u57CE\u5E02\u6C11\u751F\u8FD0\u8425",value:"\u8682\u8681\u91D1\u670D-\u652F\u4ED8\u5B9D\u4E8B\u4E1A\u7FA4-\u5546\u5BB6\u670D\u52A1\u53CA\u5F00\u653E\u5E73\u53F0\u4E8B\u4E1A\u90E8-\u516C\u5171\u670D\u52A1\u90E8-\u8FD0\u8425\u90E8-\u57CE\u5E02\u6C11\u751F\u8FD0\u8425",children:null,uv:1,sum:1,count:0}],uv:0,sum:1,count:0}],uv:1,sum:3,count:0}],uv:0,sum:4,count:0}],uv:0,sum:4,count:0},{label:"\u7C7B\u522B 3.3",children:[{label:"\u7C7B\u522B 3.3.1",children:[{label:"\u7C7B\u522B 3.3.1.1",children:null,uv:1,sum:1,count:0}],uv:0,sum:1,count:0}],uv:1,sum:2,count:0},{label:"\u7C7B\u522B 3.4",children:[{label:"\u7C7B\u522B 3.4.1",children:[{label:"\u7C7B\u522B 3.4.1.1",children:null,uv:1,sum:1,count:0},{label:"3.4.1.2",children:null,uv:1,sum:1,count:0}],uv:0,sum:2,count:0},{label:"\u7C7B\u522B 3.4.2",children:null,uv:1,sum:1,count:0},{label:"\u7C7B\u522B 3.4.3",children:[{label:"\u7C7B\u522B 3.4.3.1",children:null,uv:1,sum:1,count:0}],uv:0,sum:1,count:0}],uv:0,sum:4,count:0},{label:"\u7C7B\u522B 3.5",children:[{label:"\u7C7B\u522B 3.5.1",children:[{label:"\u7C7B\u522B 3.5.1.1",children:null,uv:2,sum:2,count:0}],uv:0,sum:2,count:0},{label:"\u7C7B\u522B 3.5.2",children:[{label:"\u7C7B\u522B 3.5.2.1",children:null,uv:1,sum:1,count:0}],uv:0,sum:1,count:0}],uv:0,sum:3,count:0},{label:"\u7C7B\u522B 3.6",children:[{label:"\u7C7B\u522B 3.6.1",children:[{label:"\u7C7B\u522B 3.6.1.1",children:null,uv:1,sum:1,count:0},{label:"\u7C7B\u522B 3.6.1.2",children:null,uv:1,sum:1,count:0}],uv:0,sum:2,count:0}],uv:1,sum:3,count:0},{label:"\u7C7B\u522B 3.7",children:[{label:"\u7C7B\u522B 3.7.1",children:[{label:"\u7C7B\u522B 3.7.1.1",children:[{label:"\u7C7B\u522B 3.7.1.1.1",children:null,uv:1,sum:1,count:0}],uv:0,sum:1,count:0}],uv:0,sum:1,count:0}],uv:0,sum:1,count:0}],uv:0,sum:25,count:0}]}},theme:"indigo",height:320,legend:!1,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-funnel",name:"\u6F0F\u6597\u56FE",description:"\u5C55\u793A\u9636\u6BB5\u6570\u91CF\u7684\u53D8\u5316\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u6F0F\u6597\u56FE",datasets:{main:[{stage:"Visits",value:8043},{stage:"Inquiries",value:2136},{stage:"Quotes",value:908},{stage:"Negotiations",value:691},{stage:"Deals",value:527}]},theme:"indigo",height:320,legend:!1,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-histogram",name:"\u76F4\u65B9\u56FE",description:"\u5206\u7BB1\u89C2\u5BDF\u6570\u503C\u9891\u7387\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u76F4\u65B9\u56FE",datasets:{main:[{name:14513,carat:1.35,cut:"Ideal",color:"J",clarity:"VS2",depth:61.4,table:57,price:5862,x:7.1,y:7.13,z:4.37},{name:27015,carat:2.25,cut:"Ideal",color:"I",clarity:"SI2",depth:62.4,table:57,price:17143,x:8.39,y:8.32,z:5.21},{name:44895,carat:.5,cut:"Very-Good",color:"E",clarity:"VS2",depth:63.4,table:58,price:1629,x:5.06,y:5.04,z:3.2},{name:17434,carat:1.41,cut:"Premium",color:"D",clarity:"SI2",depth:61.1,table:56,price:6988,x:7.19,y:7.15,z:4.38},{name:47315,carat:.23,cut:"Very-Good",color:"E",clarity:"VVS2",depth:61.5,table:59,price:530,x:3.95,y:3.98,z:2.44},{name:3143,carat:.7,cut:"Ideal",color:"E",clarity:"SI1",depth:61.6,table:56,price:3330,x:5.7,y:5.72,z:3.52},{name:46417,carat:.55,cut:"Ideal",color:"D",clarity:"VS2",depth:61,table:56,price:1768,x:5.31,y:5.28,z:3.23},{name:23762,carat:1.51,cut:"Premium",color:"F",clarity:"SI1",depth:61.4,table:58,price:11817,x:7.43,y:7.35,z:4.54},{name:51424,carat:.85,cut:"Good",color:"J",clarity:"VS1",depth:63.6,table:57,price:2372,x:6.01,y:5.94,z:3.8},{name:20118,carat:1.31,cut:"Ideal",color:"H",clarity:"VS1",depth:61.5,table:55,price:8583,x:7.05,y:7.02,z:4.33},{name:20160,carat:1.21,cut:"Ideal",color:"G",clarity:"VS1",depth:62.6,table:56,price:8616,x:6.77,y:6.81,z:4.25},{name:2420,carat:.91,cut:"Fair",color:"H",clarity:"SI1",depth:64.8,table:57,price:3180,x:6.12,y:6.07,z:3.95},{name:38208,carat:.43,cut:"Ideal",color:"F",clarity:"SI1",depth:61.8,table:56,price:1016,x:4.87,y:4.84,z:3},{name:18724,carat:1.75,cut:"Premium",color:"I",clarity:"SI1",depth:60.8,table:58,price:7644,x:7.83,y:7.79,z:4.75},{name:35751,carat:.3,cut:"Premium",color:"D",clarity:"VS2",depth:62.9,table:58,price:911,x:4.26,y:4.23,z:2.67},{name:21427,carat:1.5,cut:"Ideal",color:"I",clarity:"VS1",depth:62.8,table:57,price:9533,x:7.24,y:7.28,z:4.56},{name:6488,carat:.96,cut:"Premium",color:"G",clarity:"SI2",depth:61.1,table:59,price:4059,x:6.32,y:6.28,z:3.85},{name:7732,carat:.3,cut:"Very-Good",color:"G",clarity:"VS1",depth:62.6,table:56,price:581,x:4.29,y:4.31,z:2.69},{name:33956,carat:.23,cut:"Very-Good",color:"E",clarity:"VVS2",depth:60.2,table:57,price:465,x:3.99,y:4.05,z:2.42},{name:29982,carat:.31,cut:"Ideal",color:"F",clarity:"VVS2",depth:61.2,table:56,price:716,x:4.4,y:4.43,z:2.7},{name:45512,carat:.51,cut:"Ideal",color:"E",clarity:"SI1",depth:61.5,table:57,price:1682,x:5.11,y:5.16,z:3.16},{name:40938,carat:.23,cut:"Very-Good",color:"E",clarity:"VVS1",depth:60.8,table:56,price:499,x:3.94,y:3.99,z:2.41},{name:22716,carat:1.01,cut:"Premium",color:"D",clarity:"VVS2",depth:62.4,table:58,price:10732,x:6.39,y:6.44,z:4},{name:595,carat:.76,cut:"Very-Good",color:"H",clarity:"SI1",depth:60.9,table:55,price:2838,x:5.92,y:5.94,z:3.61},{name:3874,carat:.81,cut:"Ideal",color:"F",clarity:"SI1",depth:62.3,table:55,price:3481,x:5.96,y:6,z:3.72},{name:50802,carat:.71,cut:"Premium",color:"E",clarity:"SI2",depth:61.4,table:59,price:2306,x:5.74,y:5.7,z:3.51},{name:27284,carat:2.03,cut:"Very-Good",color:"G",clarity:"SI2",depth:62.7,table:55,price:17752,x:8.07,y:8.14,z:5.08},{name:4623,carat:.91,cut:"Ideal",color:"E",clarity:"SI1",depth:60.7,table:56,price:3665,x:6.26,y:6.22,z:3.79},{name:3516,carat:.71,cut:"Ideal",color:"F",clarity:"VS1",depth:61.5,table:57,price:3404,x:5.7,y:5.74,z:3.52},{name:8663,carat:1.16,cut:"Very-Good",color:"H",clarity:"SI2",depth:63.2,table:57,price:4455,x:6.66,y:6.7,z:4.22},{name:34751,carat:.41,cut:"Premium",color:"H",clarity:"SI1",depth:62,table:59,price:876,x:4.8,y:4.78,z:2.97},{name:45458,carat:.7,cut:"Good",color:"I",clarity:"SI2",depth:63.5,table:56,price:1675,x:5.59,y:5.63,z:3.56},{name:42691,carat:.5,cut:"Ideal",color:"E",clarity:"SI1",depth:61.6,table:57,price:1337,x:5.08,y:5.11,z:3.14},{name:10216,carat:1.26,cut:"Ideal",color:"J",clarity:"SI2",depth:62.5,table:53,price:4742,x:6.9,y:6.86,z:4.3},{name:2493,carat:.9,cut:"Good",color:"I",clarity:"SI1",depth:63,table:53,price:3196,x:6.08,y:6.15,z:3.85},{name:9911,carat:1.01,cut:"Premium",color:"E",clarity:"SI2",depth:62.9,table:59,price:4688,x:6.37,y:6.31,z:3.99},{name:38697,carat:.37,cut:"Ideal",color:"E",clarity:"VS2",depth:61.9,table:53,price:1041,x:4.65,y:4.62,z:2.87},{name:36243,carat:.54,cut:"Ideal",color:"I",clarity:"SI2",depth:60.9,table:57,price:935,x:5.26,y:5.31,z:3.22},{name:33880,carat:.3,cut:"Premium",color:"E",clarity:"VS2",depth:60.7,table:59,price:844,x:4.33,y:4.3,z:2.62},{name:1993,carat:.91,cut:"Premium",color:"F",clarity:"SI2",depth:62.1,table:56,price:3096,x:6.26,y:6.21,z:3.87},{name:235,carat:.64,cut:"Ideal",color:"D",clarity:"VS1",depth:61.5,table:56,price:2787,x:5.54,y:5.55,z:3.41},{name:5256,carat:1.01,cut:"Very-Good",color:"I",clarity:"SI2",depth:61.4,table:63,price:3792,x:6.33,y:6.38,z:3.9},{name:25643,carat:2.15,cut:"Ideal",color:"I",clarity:"SI1",depth:62.5,table:57,price:14534,x:8.2,y:8.16,z:5.11},{name:32459,carat:.38,cut:"Ideal",color:"H",clarity:"VVS2",depth:61.6,table:56,price:794,x:4.67,y:4.72,z:2.89},{name:29415,carat:.42,cut:"Very-Good",color:"E",clarity:"SI2",depth:62.9,table:56,price:700,x:4.77,y:4.8,z:3.01},{name:25732,carat:1.51,cut:"Good",color:"G",clarity:"IF",depth:62.8,table:60,price:14654,x:7.18,y:7.24,z:4.53},{name:31089,carat:.33,cut:"Very-Good",color:"G",clarity:"VVS2",depth:60,table:63,price:752,x:4.45,y:4.49,z:2.68},{name:1719,carat:.32,cut:"Good",color:"G",clarity:"VS2",depth:63.3,table:54,price:561,x:4.36,y:4.39,z:2.77},{name:40481,carat:.55,cut:"Very-Good",color:"G",clarity:"SI1",depth:60.7,table:56,price:1141,x:5.32,y:5.38,z:3.25},{name:24538,carat:1.62,cut:"Ideal",color:"F",clarity:"SI1",depth:62.7,table:56,price:12828,x:7.5,y:7.44,z:4.68},{name:29106,carat:.34,cut:"Ideal",color:"H",clarity:"VS2",depth:62.5,table:54,price:689,x:4.54,y:4.49,z:2.82},{name:16819,carat:1.21,cut:"Premium",color:"H",clarity:"VS2",depth:58.8,table:59,price:6708,x:7.01,y:6.98,z:4.11},{name:21432,carat:1.51,cut:"Good",color:"E",clarity:"SI1",depth:65.5,table:56,price:9539,x:7.12,y:7.16,z:4.68},{name:2845,carat:.56,cut:"Ideal",color:"D",clarity:"VVS1",depth:61.8,table:56,price:3270,x:5.28,y:5.31,z:3.27},{name:31546,carat:.3,cut:"Ideal",color:"E",clarity:"VVS2",depth:62.1,table:57,price:766,x:4.27,y:4.3,z:2.66},{name:22374,carat:.31,cut:"Premium",color:"H",clarity:"VS2",depth:62.5,table:60,price:628,x:4.36,y:4.31,z:2.71},{name:40311,carat:.4,cut:"Premium",color:"E",clarity:"VS1",depth:62.5,table:58,price:1125,x:4.72,y:4.69,z:2.94},{name:40891,carat:.5,cut:"Fair",color:"E",clarity:"SI1",depth:65,table:58,price:1176,x:4.98,y:4.9,z:3.21},{name:784,carat:.53,cut:"Ideal",color:"F",clarity:"VVS1",depth:61.4,table:57,price:2860,x:5.23,y:5.2,z:3.2},{name:44163,carat:.5,cut:"Very-Good",color:"D",clarity:"VS2",depth:61.1,table:58,price:1565,x:5.09,y:5.18,z:3.14},{name:22887,carat:1.36,cut:"Premium",color:"F",clarity:"VS2",depth:59.3,table:60,price:10929,x:7.23,y:7.2,z:4.28},{name:21716,carat:.28,cut:"Very-Good",color:"F",clarity:"VVS2",depth:60.2,table:58,price:628,x:4.26,y:4.28,z:2.57},{name:38412,carat:.35,cut:"Ideal",color:"G",clarity:"VVS2",depth:61,table:57,price:1024,x:4.58,y:4.54,z:2.78},{name:52284,carat:.59,cut:"Very-Good",color:"E",clarity:"VVS2",depth:61.7,table:59,price:2494,x:5.37,y:5.36,z:3.31},{name:15622,carat:1.01,cut:"Very-Good",color:"F",clarity:"VS2",depth:63.1,table:56,price:6267,x:6.41,y:6.37,z:4.03},{name:32858,carat:.4,cut:"Ideal",color:"H",clarity:"VS1",depth:61.8,table:56,price:807,x:4.74,y:4.78,z:2.94},{name:49842,carat:.71,cut:"Premium",color:"H",clarity:"VS2",depth:61.3,table:58,price:2169,x:5.76,y:5.82,z:3.55},{name:39854,carat:.57,cut:"Good",color:"J",clarity:"VS2",depth:63.3,table:56,price:1100,x:5.24,y:5.28,z:3.33},{name:13418,carat:1.5,cut:"Ideal",color:"I",clarity:"I1",depth:61.8,table:57,price:5510,x:7.39,y:7.31,z:4.54},{name:28687,carat:.36,cut:"Ideal",color:"G",clarity:"VS1",depth:62.3,table:57,price:678,x:4.55,y:4.57,z:2.84},{name:23642,carat:1.51,cut:"Premium",color:"F",clarity:"SI1",depth:62.8,table:59,price:11666,x:7.31,y:7.28,z:4.58},{name:42559,carat:.42,cut:"Ideal",color:"D",clarity:"VVS2",depth:62.1,table:55,price:1326,x:4.78,y:4.81,z:2.98},{name:53456,carat:.7,cut:"Very-Good",color:"D",clarity:"SI1",depth:61.1,table:57,price:2677,x:5.74,y:5.66,z:3.48},{name:36223,carat:.36,cut:"Ideal",color:"D",clarity:"VS2",depth:60,table:56,price:933,x:4.68,y:4.66,z:2.8},{name:10157,carat:1.02,cut:"Very-Good",color:"H",clarity:"SI1",depth:61.6,table:58,price:4727,x:6.49,y:6.54,z:4.01},{name:51812,carat:.71,cut:"Ideal",color:"F",clarity:"SI1",depth:61.6,table:56,price:2416,x:5.71,y:5.75,z:3.53},{name:47244,carat:.62,cut:"Premium",color:"G",clarity:"VS2",depth:61.1,table:59,price:1841,x:5.56,y:5.5,z:3.38},{name:15775,carat:1.28,cut:"Ideal",color:"I",clarity:"VS2",depth:61.4,table:57,price:6308,x:7.04,y:6.97,z:4.3},{name:44224,carat:.5,cut:"Ideal",color:"D",clarity:"VS1",depth:63,table:57,price:1571,x:5.06,y:5,z:3.17},{name:29997,carat:.43,cut:"Premium",color:"D",clarity:"SI2",depth:62.6,table:58,price:716,x:4.79,y:4.82,z:3.01},{name:53543,carat:.78,cut:"Fair",color:"H",clarity:"VS2",depth:54.7,table:67,price:2691,x:6.25,y:6.15,z:3.4},{name:11508,carat:1.01,cut:"Ideal",color:"I",clarity:"SI1",depth:62.5,table:56,price:5020,x:6.4,y:6.36,z:3.99},{name:37817,carat:.36,cut:"Very-Good",color:"G",clarity:"IF",depth:60.4,table:62,price:1002,x:4.6,y:4.64,z:2.79},{name:21203,carat:1.57,cut:"Ideal",color:"J",clarity:"VVS2",depth:61.4,table:57,price:9346,x:7.45,y:7.5,z:4.59},{name:38367,carat:.43,cut:"Premium",color:"D",clarity:"SI1",depth:62.4,table:60,price:1022,x:4.82,y:4.79,z:3},{name:39676,carat:.42,cut:"Premium",color:"G",clarity:"VS2",depth:62.6,table:57,price:1087,x:4.8,y:4.76,z:2.99},{name:51879,carat:.71,cut:"Very-Good",color:"H",clarity:"VS2",depth:59.2,table:63,price:2428,x:5.81,y:5.85,z:3.45},{name:50007,carat:.7,cut:"Very-Good",color:"F",clarity:"SI2",depth:60.7,table:58,price:2195,x:5.73,y:5.77,z:3.49},{name:19620,carat:1.03,cut:"Ideal",color:"F",clarity:"VS1",depth:62.8,table:54,price:8237,x:6.48,y:6.39,z:4.05},{name:43432,carat:.54,cut:"Very-Good",color:"E",clarity:"SI2",depth:60.7,table:56.5,price:1415,x:5.24,y:5.28,z:3.19},{name:15335,carat:1.36,cut:"Premium",color:"J",clarity:"VS2",depth:58.4,table:59,price:6157,x:7.4,y:7.27,z:4.28},{name:4350,carat:.72,cut:"Premium",color:"D",clarity:"VS1",depth:62.7,table:56,price:3601,x:5.76,y:5.69,z:3.59},{name:40304,carat:.4,cut:"Ideal",color:"E",clarity:"VS1",depth:61.2,table:57,price:1125,x:4.77,y:4.74,z:2.91},{name:51318,carat:.31,cut:"Ideal",color:"H",clarity:"VS1",depth:61.1,table:57,price:544,x:4.35,y:4.39,z:2.67},{name:41128,carat:.52,cut:"Premium",color:"G",clarity:"SI2",depth:61.5,table:59,price:1196,x:5.19,y:5.15,z:3.18},{name:49406,carat:.5,cut:"Very-Good",color:"E",clarity:"VVS2",depth:59.1,table:61,price:2106,x:5.19,y:5.23,z:3.08},{name:28924,carat:.3,cut:"Ideal",color:"H",clarity:"VVS1",depth:61.9,table:55,price:684,x:4.32,y:4.34,z:2.68},{name:32473,carat:.33,cut:"Very-Good",color:"G",clarity:"VVS1",depth:61.2,table:57,price:795,x:4.47,y:4.5,z:2.74},{name:42924,carat:.41,cut:"Very-Good",color:"D",clarity:"VVS2",depth:61.2,table:55,price:1364,x:4.79,y:4.82,z:2.95},{name:35346,carat:.42,cut:"Very-Good",color:"H",clarity:"SI1",depth:63.1,table:57,price:898,x:4.78,y:4.76,z:3.01},{name:12471,carat:1.08,cut:"Premium",color:"H",clarity:"VS2",depth:62.1,table:58,price:5250,x:6.63,y:6.51,z:4.08},{name:19807,carat:1.5,cut:"Ideal",color:"I",clarity:"SI1",depth:62.3,table:56,price:8371,x:7.35,y:7.41,z:4.6},{name:49271,carat:.64,cut:"Ideal",color:"E",clarity:"SI1",depth:62,table:56,price:2089,x:5.57,y:5.53,z:3.44},{name:2423,carat:.95,cut:"Premium",color:"G",clarity:"SI2",depth:62.6,table:58,price:3181,x:6.22,y:6.18,z:3.88},{name:24658,carat:1.72,cut:"Premium",color:"H",clarity:"SI1",depth:61.4,table:59,price:12998,x:7.71,y:7.64,z:4.71},{name:22254,carat:1.18,cut:"Ideal",color:"G",clarity:"VVS2",depth:61.3,table:55,price:10308,x:6.86,y:6.81,z:4.19},{name:11008,carat:.97,cut:"Premium",color:"E",clarity:"SI1",depth:61,table:61,price:4915,x:6.32,y:6.28,z:3.84},{name:40260,carat:.4,cut:"Premium",color:"H",clarity:"VVS2",depth:60.6,table:60,price:1125,x:4.79,y:4.75,z:2.89},{name:16242,carat:1.01,cut:"Premium",color:"G",clarity:"VS1",depth:62.6,table:59,price:6499,x:6.38,y:6.46,z:4.02},{name:28129,carat:.29,cut:"Very-Good",color:"F",clarity:"VVS2",depth:62.7,table:58,price:664,x:4.22,y:4.26,z:2.66},{name:21334,carat:1.53,cut:"Premium",color:"G",clarity:"SI1",depth:58.4,table:59,price:9476,x:7.62,y:7.55,z:4.43},{name:31566,carat:.31,cut:"Ideal",color:"D",clarity:"VVS2",depth:62,table:56,price:766,x:4.34,y:4.37,z:2.7},{name:17354,carat:1.33,cut:"Good",color:"I",clarity:"VS1",depth:63.7,table:56,price:6963,x:6.92,y:6.96,z:4.42},{name:19647,carat:1.52,cut:"Premium",color:"J",clarity:"VS1",depth:62.4,table:59,price:8258,x:7.36,y:7.31,z:4.58},{name:18829,carat:1.27,cut:"Very-Good",color:"H",clarity:"VS2",depth:62.6,table:57,price:7715,x:6.91,y:6.95,z:4.34},{name:19774,carat:1.52,cut:"Premium",color:"F",clarity:"SI2",depth:62.3,table:59,price:8342,x:7.37,y:7.33,z:4.58},{name:31682,carat:.26,cut:"Ideal",color:"E",clarity:"VVS2",depth:62,table:56,price:769,x:4.13,y:4.1,z:2.55},{name:8951,carat:1.19,cut:"Premium",color:"I",clarity:"SI2",depth:59.5,table:59,price:4498,x:6.95,y:6.89,z:4.12},{name:32729,carat:.31,cut:"Premium",color:"F",clarity:"VS2",depth:62,table:60,price:802,x:4.34,y:4.3,z:2.68},{name:46613,carat:.51,cut:"Ideal",color:"D",clarity:"VS2",depth:62.7,table:55,price:1787,x:5.09,y:5.12,z:3.2},{name:20765,carat:1.22,cut:"Ideal",color:"G",clarity:"VS1",depth:60.7,table:57,price:9002,x:6.93,y:6.94,z:4.21},{name:12363,carat:.26,cut:"Very-Good",color:"E",clarity:"VVS2",depth:62.6,table:58,price:597,x:4.07,y:4.11,z:2.56},{name:26640,carat:2.03,cut:"Very-Good",color:"E",clarity:"SI2",depth:63.7,table:58,price:16412,x:7.91,y:7.94,z:5.05},{name:17076,carat:1.24,cut:"Premium",color:"H",clarity:"SI1",depth:60.2,table:60,price:6808,x:6.94,y:6.91,z:4.17},{name:27719,carat:.32,cut:"Premium",color:"I",clarity:"VS1",depth:59.8,table:60,price:648,x:4.46,y:4.44,z:2.66},{name:37924,carat:.23,cut:"Very-Good",color:"D",clarity:"VVS1",depth:61.7,table:59,price:485,x:3.94,y:3.97,z:2.44},{name:14827,carat:1.21,cut:"Ideal",color:"H",clarity:"SI1",depth:61.2,table:57,price:5973,x:6.86,y:6.93,z:4.22},{name:16966,carat:1.22,cut:"Premium",color:"H",clarity:"SI1",depth:61.8,table:57,price:6776,x:6.86,y:6.82,z:4.23},{name:2789,carat:.81,cut:"Ideal",color:"H",clarity:"VS1",depth:61.8,table:58,price:3257,x:5.97,y:6.04,z:3.71},{name:14068,carat:.3,cut:"Ideal",color:"G",clarity:"VS1",depth:62.6,table:57,price:605,x:4.27,y:4.29,z:2.68},{name:16780,carat:1.02,cut:"Ideal",color:"G",clarity:"VS1",depth:62.2,table:56,price:6683,x:6.46,y:6.4,z:4},{name:50928,carat:.71,cut:"Ideal",color:"I",clarity:"SI1",depth:61.6,table:55,price:2319,x:5.72,y:5.74,z:3.53},{name:52609,carat:.7,cut:"Very-Good",color:"G",clarity:"SI1",depth:62.5,table:59,price:2545,x:5.69,y:5.73,z:3.57},{name:31166,carat:.41,cut:"Premium",color:"E",clarity:"SI1",depth:60.1,table:60,price:755,x:4.79,y:4.83,z:2.89},{name:2594,carat:.64,cut:"Ideal",color:"F",clarity:"VVS2",depth:60.9,table:56,price:3217,x:5.57,y:5.59,z:3.4},{name:41268,carat:.31,cut:"Ideal",color:"I",clarity:"VS1",depth:61.9,table:54.5,price:502,x:4.33,y:4.36,z:2.69},{name:17708,carat:.3,cut:"Very-Good",color:"F",clarity:"VVS2",depth:64.2,table:56,price:613,x:4.22,y:4.26,z:2.72},{name:15112,carat:1,cut:"Ideal",color:"D",clarity:"SI1",depth:62.7,table:57,price:6073,x:6.34,y:6.38,z:3.99},{name:39215,carat:.42,cut:"Very-Good",color:"D",clarity:"VS1",depth:60.7,table:60,price:1066,x:4.81,y:4.88,z:2.94},{name:43088,carat:.51,cut:"Premium",color:"E",clarity:"SI1",depth:62.4,table:59,price:1381,x:5.07,y:5.12,z:3.18},{name:48645,carat:.27,cut:"Ideal",color:"E",clarity:"VS2",depth:60.8,table:56,price:537,x:4.25,y:4.23,z:2.58},{name:41967,carat:.23,cut:"Very-Good",color:"E",clarity:"VVS2",depth:61.1,table:58,price:505,x:3.93,y:3.99,z:2.42},{name:37024,carat:.33,cut:"Premium",color:"G",clarity:"VVS2",depth:61.9,table:58,price:965,x:4.43,y:4.39,z:2.73},{name:33773,carat:.48,cut:"Ideal",color:"I",clarity:"SI1",depth:61.9,table:53,price:841,x:5.06,y:5.08,z:3.14},{name:21635,carat:1.02,cut:"Very-Good",color:"F",clarity:"VVS2",depth:63.7,table:59,price:9728,x:6.34,y:6.38,z:4.05},{name:2696,carat:.9,cut:"Very-Good",color:"G",clarity:"SI2",depth:63.4,table:59,price:3246,x:6.08,y:6.04,z:3.84},{name:6065,carat:1.01,cut:"Very-Good",color:"G",clarity:"SI2",depth:62.1,table:61,price:3966,x:6.27,y:6.38,z:3.93},{name:49421,carat:.55,cut:"Ideal",color:"E",clarity:"VS1",depth:61.2,table:57,price:2107,x:5.3,y:5.28,z:3.24},{name:48692,carat:.58,cut:"Ideal",color:"H",clarity:"VVS1",depth:61.6,table:56,price:2006,x:5.35,y:5.39,z:3.31},{name:6230,carat:.9,cut:"Good",color:"F",clarity:"SI1",depth:58.8,table:60,price:4004,x:6.22,y:6.26,z:3.67},{name:4418,carat:1.01,cut:"Good",color:"E",clarity:"SI2",depth:63.9,table:58,price:3611,x:6.37,y:6.31,z:4.05},{name:47490,carat:.72,cut:"Ideal",color:"J",clarity:"SI1",depth:62.3,table:56,price:1864,x:5.75,y:5.78,z:3.59},{name:35086,carat:.3,cut:"Ideal",color:"F",clarity:"IF",depth:61.1,table:58,price:886,x:4.32,y:4.36,z:2.65},{name:25518,carat:2.14,cut:"Ideal",color:"I",clarity:"SI2",depth:61.9,table:56,price:14321,x:8.22,y:8.26,z:5.1},{name:38319,carat:.52,cut:"Ideal",color:"I",clarity:"SI1",depth:62,table:54,price:1019,x:5.17,y:5.19,z:3.21},{name:30835,carat:.33,cut:"Ideal",color:"H",clarity:"VS1",depth:60.2,table:57,price:743,x:4.54,y:4.5,z:2.72},{name:39296,carat:.3,cut:"Ideal",color:"H",clarity:"VS2",depth:62.5,table:57,price:491,x:4.26,y:4.29,z:2.67},{name:18648,carat:1.03,cut:"Ideal",color:"F",clarity:"VS1",depth:59,table:55,price:7613,x:6.62,y:6.67,z:3.92},{name:38577,carat:.4,cut:"Premium",color:"G",clarity:"VS2",depth:62.8,table:61,price:1035,x:4.67,y:4.63,z:2.92},{name:3507,carat:.76,cut:"Ideal",color:"E",clarity:"SI1",depth:61.2,table:56,price:3401,x:5.88,y:5.91,z:3.61},{name:46196,carat:.5,cut:"Ideal",color:"F",clarity:"VS2",depth:60.9,table:57,price:1749,x:5.14,y:5.16,z:3.14},{name:36046,carat:.34,cut:"Very-Good",color:"G",clarity:"IF",depth:61,table:56,price:924,x:4.5,y:4.54,z:2.76},{name:2473,carat:.76,cut:"Ideal",color:"E",clarity:"VS2",depth:61.5,table:56,price:3192,x:5.92,y:5.89,z:3.63},{name:30749,carat:.34,cut:"Ideal",color:"H",clarity:"VVS1",depth:62.2,table:54,price:740,x:4.48,y:4.53,z:2.8},{name:1949,carat:.72,cut:"Ideal",color:"F",clarity:"VS1",depth:62.4,table:56,price:3084,x:5.76,y:5.72,z:3.58},{name:14586,carat:1.05,cut:"Premium",color:"H",clarity:"VS1",depth:60.1,table:57,price:5886,x:6.62,y:6.59,z:3.97},{name:47900,carat:.54,cut:"Ideal",color:"G",clarity:"VVS2",depth:61.7,table:57,price:1914,x:5.23,y:5.26,z:3.23},{name:8729,carat:.27,cut:"Ideal",color:"E",clarity:"VVS1",depth:62,table:56,price:586,x:4.16,y:4.19,z:2.59},{name:35578,carat:.35,cut:"Premium",color:"F",clarity:"VS2",depth:62,table:59,price:906,x:4.55,y:4.51,z:2.81},{name:52563,carat:.7,cut:"Ideal",color:"I",clarity:"VVS1",depth:62.3,table:55,price:2536,x:5.7,y:5.64,z:3.53},{name:30140,carat:.32,cut:"Premium",color:"G",clarity:"VS2",depth:62.6,table:60,price:720,x:4.36,y:4.33,z:2.72},{name:34915,carat:.34,cut:"Ideal",color:"F",clarity:"VS2",depth:62.9,table:55,price:880,x:4.48,y:4.46,z:2.81},{name:18768,carat:1.35,cut:"Premium",color:"H",clarity:"SI1",depth:62.4,table:58,price:7673,x:7.03,y:6.95,z:4.36},{name:903,carat:.72,cut:"Very-Good",color:"H",clarity:"VS1",depth:62.2,table:54,price:2877,x:5.74,y:5.76,z:3.57},{name:27807,carat:.3,cut:"Ideal",color:"G",clarity:"VVS2",depth:61.9,table:57,price:650,x:4.3,y:4.33,z:2.66},{name:2392,carat:.32,cut:"Ideal",color:"E",clarity:"SI1",depth:61.8,table:55,price:561,x:4.42,y:4.45,z:2.74},{name:50763,carat:.75,cut:"Very-Good",color:"I",clarity:"SI1",depth:63.7,table:56,price:2300,x:5.73,y:5.77,z:3.66},{name:35952,carat:.3,cut:"Ideal",color:"F",clarity:"SI1",depth:61.9,table:56,price:475,x:4.29,y:4.33,z:2.67},{name:30531,carat:.38,cut:"Premium",color:"D",clarity:"SI1",depth:62.2,table:58,price:733,x:4.57,y:4.63,z:2.86},{name:17233,carat:1.55,cut:"Premium",color:"J",clarity:"SI2",depth:62.6,table:57,price:6890,x:7.37,y:7.32,z:4.6},{name:3899,carat:.89,cut:"Premium",color:"H",clarity:"VS1",depth:60.5,table:59,price:3489,x:6.22,y:6.17,z:3.75},{name:44124,carat:.5,cut:"Premium",color:"E",clarity:"VS2",depth:62,table:58,price:1559,x:5.07,y:5.09,z:3.15},{name:46353,carat:.57,cut:"Ideal",color:"F",clarity:"SI1",depth:61.9,table:56,price:1759,x:5.33,y:5.37,z:3.31},{name:42806,carat:.59,cut:"Ideal",color:"J",clarity:"VS2",depth:60.8,table:57,price:1352,x:5.47,y:5.42,z:3.31},{name:13593,carat:1.01,cut:"Very-Good",color:"F",clarity:"VS2",depth:61,table:59,price:5560,x:6.39,y:6.46,z:3.92},{name:34268,carat:.29,cut:"Very-Good",color:"H",clarity:"VVS2",depth:62.2,table:54,price:466,x:4.23,y:4.26,z:2.64},{name:35461,carat:.33,cut:"Premium",color:"F",clarity:"VVS2",depth:62.3,table:60,price:901,x:4.43,y:4.4,z:2.75},{name:13886,carat:1.03,cut:"Premium",color:"D",clarity:"SI1",depth:63,table:59,price:5653,x:6.44,y:6.39,z:4.04},{name:38406,carat:.35,cut:"Premium",color:"H",clarity:"VVS1",depth:61.2,table:60,price:1024,x:4.55,y:4.5,z:2.77},{name:3705,carat:1,cut:"Ideal",color:"E",clarity:"SI2",depth:62.9,table:56,price:3450,x:6.32,y:6.3,z:3.97},{name:43649,carat:.51,cut:"Good",color:"E",clarity:"SI1",depth:63.6,table:58,price:1434,x:5,y:4.97,z:3.17},{name:41002,carat:.43,cut:"Ideal",color:"G",clarity:"VVS1",depth:61.8,table:55,price:1183,x:4.87,y:4.9,z:3.02},{name:51931,carat:.72,cut:"Very-Good",color:"F",clarity:"SI1",depth:62.6,table:55,price:2440,x:5.71,y:5.76,z:3.59},{name:22375,carat:.31,cut:"Ideal",color:"H",clarity:"VS2",depth:63,table:57,price:628,x:4.34,y:4.32,z:2.73},{name:23409,carat:2,cut:"Good",color:"I",clarity:"SI2",depth:64.2,table:52,price:11400,x:7.91,y:7.88,z:5.07},{name:50658,carat:.31,cut:"Very-Good",color:"E",clarity:"SI1",depth:62,table:58,price:544,x:4.3,y:4.35,z:2.68},{name:3106,carat:.72,cut:"Ideal",color:"D",clarity:"SI1",depth:62.2,table:56,price:3322,x:5.77,y:5.74,z:3.58},{name:11307,carat:1.09,cut:"Ideal",color:"F",clarity:"SI2",depth:61.2,table:57,price:4981,x:6.64,y:6.6,z:4.05},{name:39931,carat:.35,cut:"Very-Good",color:"I",clarity:"VS2",depth:61.7,table:57,price:491,x:4.52,y:4.56,z:2.8},{name:43833,carat:.59,cut:"Very-Good",color:"I",clarity:"VS2",depth:60.3,table:59,price:1445,x:5.41,y:5.43,z:3.27},{name:50106,carat:.51,cut:"Ideal",color:"F",clarity:"VVS1",depth:60.9,table:57,price:2208,x:5.16,y:5.21,z:3.16},{name:5353,carat:.74,cut:"Ideal",color:"D",clarity:"VS1",depth:61.7,table:55,price:3813,x:5.79,y:5.85,z:3.59},{name:16756,carat:1.45,cut:"Very-Good",color:"J",clarity:"VS2",depth:62.8,table:57,price:6671,x:7.14,y:7.17,z:4.49},{name:40205,carat:.53,cut:"Good",color:"J",clarity:"VS2",depth:63.8,table:57,price:1122,x:5.12,y:5.1,z:3.26},{name:52489,carat:.73,cut:"Very-Good",color:"E",clarity:"SI1",depth:63.3,table:60,price:2523,x:5.65,y:5.7,z:3.59},{name:1757,carat:.77,cut:"Very-Good",color:"F",clarity:"SI1",depth:59.6,table:60,price:3044,x:5.95,y:5.97,z:3.55},{name:5619,carat:1,cut:"Good",color:"H",clarity:"SI2",depth:63.2,table:59,price:3874,x:6.24,y:6.29,z:3.96},{name:49142,carat:1.05,cut:"Good",color:"E",clarity:"I1",depth:64.1,table:58,price:2066,x:6.46,y:6.32,z:4.09},{name:30970,carat:.38,cut:"Premium",color:"I",clarity:"SI1",depth:60.5,table:58,price:746,x:4.72,y:4.67,z:2.84},{name:17873,carat:1.15,cut:"Premium",color:"D",clarity:"SI1",depth:61.1,table:53,price:7213,x:6.83,y:6.76,z:4.15},{name:45024,carat:.54,cut:"Ideal",color:"H",clarity:"VS1",depth:61.5,table:56,price:1637,x:5.24,y:5.23,z:3.22},{name:51049,carat:.73,cut:"Fair",color:"I",clarity:"VS1",depth:55.9,table:66,price:2330,x:6.11,y:6.01,z:3.39},{name:24439,carat:1.5,cut:"Good",color:"F",clarity:"VS2",depth:60.2,table:58,price:12693,x:7.31,y:7.35,z:4.41},{name:53423,carat:.71,cut:"Premium",color:"G",clarity:"VS2",depth:60.3,table:60,price:2671,x:5.76,y:5.81,z:3.49},{name:21820,carat:1.51,cut:"Ideal",color:"I",clarity:"VS2",depth:62.6,table:55,price:9891,x:7.29,y:7.34,z:4.58},{name:10643,carat:.93,cut:"Premium",color:"G",clarity:"VS2",depth:62.2,table:59,price:4834,x:6.21,y:6.26,z:3.88},{name:21919,carat:1.5,cut:"Ideal",color:"F",clarity:"SI2",depth:62.9,table:55,price:9996,x:7.28,y:7.26,z:4.57},{name:14459,carat:1.06,cut:"Ideal",color:"F",clarity:"SI1",depth:61.9,table:57,price:5834,x:6.57,y:6.54,z:4.06},{name:10217,carat:1.21,cut:"Premium",color:"H",clarity:"SI1",depth:60.5,table:60,price:4743,x:6.81,y:6.72,z:4.09},{name:9804,carat:.9,cut:"Good",color:"G",clarity:"VVS2",depth:62.6,table:58,price:4668,x:6.1,y:6.13,z:3.83},{name:53268,carat:.7,cut:"Premium",color:"F",clarity:"VS2",depth:62.2,table:59,price:2648,x:5.68,y:5.64,z:3.52},{name:6773,carat:.9,cut:"Good",color:"G",clarity:"VS1",depth:65.8,table:59,price:4108,x:6,y:6.04,z:3.96},{name:10387,carat:.38,cut:"Ideal",color:"I",clarity:"SI1",depth:61.8,table:54,price:593,x:4.66,y:4.7,z:2.89},{name:35272,carat:.3,cut:"Ideal",color:"G",clarity:"IF",depth:61.4,table:57,price:895,x:4.33,y:4.37,z:2.67},{name:8344,carat:1.02,cut:"Very-Good",color:"E",clarity:"SI2",depth:60.5,table:58,price:4398,x:6.54,y:6.58,z:3.97},{name:7972,carat:.9,cut:"Very-Good",color:"H",clarity:"VS1",depth:62.2,table:57,price:4324,x:6.1,y:6.15,z:3.81},{name:593,carat:.7,cut:"Ideal",color:"E",clarity:"VS1",depth:61.8,table:56,price:2837,x:5.74,y:5.69,z:3.53},{name:51831,carat:.7,cut:"Good",color:"H",clarity:"VS1",depth:59.4,table:62,price:2421,x:5.71,y:5.74,z:3.4},{name:46596,carat:.54,cut:"Ideal",color:"F",clarity:"VS2",depth:61.4,table:57,price:1786,x:5.25,y:5.2,z:3.21},{name:47761,carat:.52,cut:"Ideal",color:"H",clarity:"VVS1",depth:61.7,table:53,price:1893,x:5.19,y:5.25,z:3.22},{name:10972,carat:1.2,cut:"Premium",color:"H",clarity:"SI2",depth:59.6,table:60,price:4906,x:6.91,y:6.84,z:4.1},{name:42703,carat:.52,cut:"Premium",color:"G",clarity:"SI1",depth:62.8,table:61,price:1338,x:5.14,y:5.11,z:3.22},{name:48210,carat:.62,cut:"Very-Good",color:"D",clarity:"SI1",depth:61.3,table:58,price:1949,x:5.47,y:5.49,z:3.36},{name:33775,carat:.41,cut:"Ideal",color:"D",clarity:"SI2",depth:62.6,table:57,price:841,x:4.77,y:4.72,z:2.97},{name:7478,carat:1.07,cut:"Premium",color:"H",clarity:"SI1",depth:58.9,table:59,price:4235,x:6.76,y:6.71,z:3.97},{name:29757,carat:.3,cut:"Premium",color:"D",clarity:"SI1",depth:62.6,table:56,price:709,x:4.29,y:4.24,z:2.67},{name:31575,carat:.4,cut:"Ideal",color:"F",clarity:"VS2",depth:62.3,table:54,price:767,x:4.74,y:4.77,z:2.96},{name:44462,carat:.55,cut:"Premium",color:"I",clarity:"VVS1",depth:61.3,table:59,price:1593,x:5.27,y:5.3,z:3.24},{name:38587,carat:.39,cut:"Ideal",color:"F",clarity:"VVS2",depth:61.9,table:54.8,price:1036,x:4.68,y:4.69,z:2.9},{name:27555,carat:1.7,cut:"Premium",color:"E",clarity:"VS2",depth:58.6,table:62,price:18342,x:7.92,y:7.84,z:4.62},{name:44242,carat:.51,cut:"Premium",color:"F",clarity:"VS2",depth:62.4,table:58,price:1574,x:5.13,y:5.1,z:3.19},{name:26898,carat:2.01,cut:"Premium",color:"F",clarity:"SI2",depth:61.3,table:61,price:16881,x:8.11,y:8.01,z:4.94},{name:17613,carat:1.3,cut:"Very-Good",color:"H",clarity:"VS2",depth:62.5,table:59,price:7092,x:6.93,y:6.96,z:4.34},{name:3654,carat:1.01,cut:"Ideal",color:"F",clarity:"I1",depth:62.2,table:54,price:3439,x:6.44,y:6.42,z:4},{name:36607,carat:.32,cut:"Very-Good",color:"G",clarity:"SI1",depth:63,table:56,price:477,x:4.35,y:4.38,z:2.75},{name:24304,carat:1.51,cut:"Very-Good",color:"G",clarity:"VS2",depth:58.7,table:63,price:12551,x:7.45,y:7.4,z:4.36},{name:35901,carat:.32,cut:"Ideal",color:"G",clarity:"IF",depth:61.9,table:55,price:918,x:4.38,y:4.44,z:2.73},{name:48842,carat:.55,cut:"Ideal",color:"D",clarity:"VS2",depth:62.3,table:55,price:2030,x:5.29,y:5.24,z:3.28},{name:198,carat:.7,cut:"Premium",color:"E",clarity:"SI1",depth:61,table:58,price:2777,x:5.78,y:5.72,z:3.51},{name:9850,carat:1.01,cut:"Premium",color:"F",clarity:"SI2",depth:61.9,table:58,price:4676,x:6.39,y:6.34,z:3.94},{name:16383,carat:1.04,cut:"Very-Good",color:"G",clarity:"VS1",depth:63.2,table:56,price:6541,x:6.39,y:6.46,z:4.06},{name:15196,carat:1.02,cut:"Very-Good",color:"I",clarity:"VS2",depth:61.5,table:57,price:6104,x:6.4,y:6.44,z:3.95},{name:21578,carat:1.51,cut:"Good",color:"H",clarity:"SI1",depth:61.8,table:62,price:9681,x:7.25,y:7.29,z:4.49},{name:24653,carat:1.7,cut:"Premium",color:"H",clarity:"VS2",depth:61.9,table:60,price:12992,x:7.61,y:7.57,z:4.7},{name:41641,carat:.4,cut:"Ideal",color:"H",clarity:"IF",depth:62.7,table:57,price:1238,x:4.7,y:4.68,z:2.94},{name:51041,carat:.82,cut:"Premium",color:"E",clarity:"SI2",depth:60,table:56,price:2329,x:6.11,y:6.08,z:3.66},{name:13187,carat:1.24,cut:"Ideal",color:"J",clarity:"VS2",depth:62.8,table:56,price:5451,x:6.83,y:6.8,z:4.28},{name:36299,carat:.34,cut:"Premium",color:"E",clarity:"SI2",depth:61.7,table:58,price:477,x:4.5,y:4.54,z:2.79},{name:5298,carat:.71,cut:"Ideal",color:"D",clarity:"VS1",depth:62.1,table:57,price:3801,x:5.7,y:5.73,z:3.55},{name:42092,carat:.7,cut:"Fair",color:"E",clarity:"I1",depth:66.1,table:58,price:1273,x:5.61,y:5.51,z:3.67},{name:44441,carat:.59,cut:"Premium",color:"D",clarity:"SI2",depth:62.6,table:61,price:1590,x:5.33,y:5.27,z:3.32},{name:7552,carat:1.01,cut:"Very-Good",color:"G",clarity:"SI2",depth:62,table:58,price:4249,x:6.37,y:6.41,z:3.96},{name:44034,carat:.42,cut:"Ideal",color:"D",clarity:"VVS1",depth:61.8,table:55,price:1547,x:4.83,y:4.85,z:2.99},{name:53637,carat:.3,cut:"Ideal",color:"D",clarity:"SI1",depth:61.6,table:57,price:552,x:4.28,y:4.32,z:2.65},{name:15094,carat:1.01,cut:"Ideal",color:"G",clarity:"VS1",depth:62.4,table:56,price:6066,x:6.37,y:6.42,z:3.99},{name:8085,carat:1.01,cut:"Premium",color:"D",clarity:"SI2",depth:62.6,table:60,price:4338,x:6.4,y:6.37,z:4},{name:11949,carat:1.01,cut:"Very-Good",color:"E",clarity:"SI1",depth:58.2,table:59,price:5132,x:6.54,y:6.59,z:3.82},{name:43274,carat:.3,cut:"Very-Good",color:"I",clarity:"SI1",depth:63.3,table:59,price:506,x:4.3,y:4.23,z:2.7},{name:42144,carat:.5,cut:"Very-Good",color:"E",clarity:"SI1",depth:60.7,table:59,price:1281,x:5.09,y:5.13,z:3.1},{name:48614,carat:.51,cut:"Ideal",color:"F",clarity:"VVS2",depth:61.7,table:56,price:1998,x:5.12,y:5.15,z:3.17},{name:36379,carat:.34,cut:"Ideal",color:"F",clarity:"IF",depth:62.2,table:55,price:941,x:4.47,y:4.5,z:2.79},{name:19343,carat:1.06,cut:"Premium",color:"E",clarity:"VS1",depth:63,table:58,price:8044,x:6.49,y:6.46,z:4.08},{name:13269,carat:1,cut:"Good",color:"G",clarity:"VS2",depth:63.7,table:57,price:5484,x:6.32,y:6.28,z:4.01},{name:51509,carat:.55,cut:"Ideal",color:"G",clarity:"IF",depth:61.1,table:57,price:2383,x:5.26,y:5.31,z:3.23},{name:13997,carat:1.19,cut:"Very-Good",color:"H",clarity:"SI1",depth:63.3,table:55,price:5698,x:6.76,y:6.69,z:4.26},{name:38677,carat:.3,cut:"Ideal",color:"D",clarity:"VVS2",depth:61.4,table:55,price:1041,x:4.34,y:4.36,z:2.67},{name:22495,carat:2,cut:"Premium",color:"I",clarity:"SI2",depth:62.3,table:57,price:10528,x:8.12,y:8.05,z:5.03},{name:23070,carat:1.18,cut:"Ideal",color:"E",clarity:"VS1",depth:61.4,table:57,price:11104,x:6.77,y:6.81,z:4.17},{name:26961,carat:1.54,cut:"Ideal",color:"F",clarity:"VS2",depth:61,table:56,price:17029,x:7.44,y:7.49,z:4.55},{name:35767,carat:.4,cut:"Premium",color:"E",clarity:"VS2",depth:60.7,table:60,price:912,x:4.7,y:4.75,z:2.87},{name:43689,carat:.5,cut:"Good",color:"D",clarity:"SI1",depth:62.9,table:59,price:1436,x:4.94,y:5.01,z:3.13},{name:35824,carat:.31,cut:"Ideal",color:"F",clarity:"IF",depth:62.2,table:54,price:914,x:4.37,y:4.41,z:2.73},{name:33982,carat:.41,cut:"Good",color:"G",clarity:"VS1",depth:63.3,table:62,price:847,x:4.67,y:4.71,z:2.97},{name:30468,carat:.31,cut:"Very-Good",color:"D",clarity:"SI1",depth:63.1,table:57,price:732,x:4.32,y:4.3,z:2.72},{name:28751,carat:.31,cut:"Premium",color:"E",clarity:"VS2",depth:60.3,table:58,price:680,x:4.37,y:4.42,z:2.65},{name:16066,carat:1.01,cut:"Ideal",color:"F",clarity:"VS2",depth:62,table:56,price:6416,x:6.46,y:6.51,z:4.02},{name:6640,carat:.85,cut:"Ideal",color:"E",clarity:"SI1",depth:63,table:56,price:4089,x:6,y:6.04,z:3.79}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-boxplot",name:"\u7BB1\u7EBF\u56FE",description:"\u5C55\u793A\u5206\u4F4D\u6570\u4E0E\u79BB\u7FA4\u503C\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u7BB1\u7EBF\u56FE",datasets:{main:[{Expt:1,Run:1,Speed:850},{Expt:1,Run:2,Speed:740},{Expt:1,Run:3,Speed:900},{Expt:1,Run:4,Speed:1070},{Expt:1,Run:5,Speed:930},{Expt:1,Run:6,Speed:850},{Expt:1,Run:7,Speed:950},{Expt:1,Run:8,Speed:980},{Expt:1,Run:9,Speed:980},{Expt:1,Run:10,Speed:880},{Expt:1,Run:11,Speed:1e3},{Expt:1,Run:12,Speed:980},{Expt:1,Run:13,Speed:930},{Expt:1,Run:14,Speed:650},{Expt:1,Run:15,Speed:760},{Expt:1,Run:16,Speed:810},{Expt:1,Run:17,Speed:1e3},{Expt:1,Run:18,Speed:1e3},{Expt:1,Run:19,Speed:960},{Expt:1,Run:20,Speed:960},{Expt:2,Run:1,Speed:960},{Expt:2,Run:2,Speed:940},{Expt:2,Run:3,Speed:960},{Expt:2,Run:4,Speed:940},{Expt:2,Run:5,Speed:880},{Expt:2,Run:6,Speed:800},{Expt:2,Run:7,Speed:850},{Expt:2,Run:8,Speed:880},{Expt:2,Run:9,Speed:900},{Expt:2,Run:10,Speed:840},{Expt:2,Run:11,Speed:830},{Expt:2,Run:12,Speed:790},{Expt:2,Run:13,Speed:810},{Expt:2,Run:14,Speed:880},{Expt:2,Run:15,Speed:880},{Expt:2,Run:16,Speed:830},{Expt:2,Run:17,Speed:800},{Expt:2,Run:18,Speed:790},{Expt:2,Run:19,Speed:760},{Expt:2,Run:20,Speed:800},{Expt:3,Run:1,Speed:880},{Expt:3,Run:2,Speed:880},{Expt:3,Run:3,Speed:880},{Expt:3,Run:4,Speed:860},{Expt:3,Run:5,Speed:720},{Expt:3,Run:6,Speed:720},{Expt:3,Run:7,Speed:620},{Expt:3,Run:8,Speed:860},{Expt:3,Run:9,Speed:970},{Expt:3,Run:10,Speed:950},{Expt:3,Run:11,Speed:880},{Expt:3,Run:12,Speed:910},{Expt:3,Run:13,Speed:850},{Expt:3,Run:14,Speed:870},{Expt:3,Run:15,Speed:840},{Expt:3,Run:16,Speed:840},{Expt:3,Run:17,Speed:850},{Expt:3,Run:18,Speed:840},{Expt:3,Run:19,Speed:840},{Expt:3,Run:20,Speed:840},{Expt:4,Run:1,Speed:890},{Expt:4,Run:2,Speed:810},{Expt:4,Run:3,Speed:810},{Expt:4,Run:4,Speed:820},{Expt:4,Run:5,Speed:800},{Expt:4,Run:6,Speed:770},{Expt:4,Run:7,Speed:760},{Expt:4,Run:8,Speed:740},{Expt:4,Run:9,Speed:750},{Expt:4,Run:10,Speed:760},{Expt:4,Run:11,Speed:910},{Expt:4,Run:12,Speed:920},{Expt:4,Run:13,Speed:890},{Expt:4,Run:14,Speed:860},{Expt:4,Run:15,Speed:880},{Expt:4,Run:16,Speed:720},{Expt:4,Run:17,Speed:840},{Expt:4,Run:18,Speed:850},{Expt:4,Run:19,Speed:850},{Expt:4,Run:20,Speed:780},{Expt:5,Run:1,Speed:890},{Expt:5,Run:2,Speed:840},{Expt:5,Run:3,Speed:780},{Expt:5,Run:4,Speed:810},{Expt:5,Run:5,Speed:760},{Expt:5,Run:6,Speed:810},{Expt:5,Run:7,Speed:790},{Expt:5,Run:8,Speed:810},{Expt:5,Run:9,Speed:820},{Expt:5,Run:10,Speed:850},{Expt:5,Run:11,Speed:870},{Expt:5,Run:12,Speed:870},{Expt:5,Run:13,Speed:810},{Expt:5,Run:14,Speed:740},{Expt:5,Run:15,Speed:810},{Expt:5,Run:16,Speed:940},{Expt:5,Run:17,Speed:950},{Expt:5,Run:18,Speed:800},{Expt:5,Run:19,Speed:810},{Expt:5,Run:20,Speed:870}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-violin",name:"\u5C0F\u63D0\u7434\u56FE",description:"\u53E0\u52A0\u5BC6\u5EA6\u4E0E\u5206\u5E03\u6458\u8981\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5C0F\u63D0\u7434\u56FE",datasets:{main:[{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.5},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.2},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.1},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.6},{species:"I. setosa",x:"PetalWidth",y:.4},{species:"I. setosa",x:"SepalWidth",y:3.9},{species:"I. setosa",x:"PetalWidth",y:.3},{species:"I. setosa",x:"SepalWidth",y:3.4},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.4},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:2.9},{species:"I. setosa",x:"PetalWidth",y:.1},{species:"I. setosa",x:"SepalWidth",y:3.1},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.7},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.4},{species:"I. setosa",x:"PetalWidth",y:.1},{species:"I. setosa",x:"SepalWidth",y:3},{species:"I. setosa",x:"PetalWidth",y:.1},{species:"I. setosa",x:"SepalWidth",y:3},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:4},{species:"I. setosa",x:"PetalWidth",y:.4},{species:"I. setosa",x:"SepalWidth",y:4.4},{species:"I. setosa",x:"PetalWidth",y:.4},{species:"I. setosa",x:"SepalWidth",y:3.9},{species:"I. setosa",x:"PetalWidth",y:.3},{species:"I. setosa",x:"SepalWidth",y:3.5},{species:"I. setosa",x:"PetalWidth",y:.3},{species:"I. setosa",x:"SepalWidth",y:3.8},{species:"I. setosa",x:"PetalWidth",y:.3},{species:"I. setosa",x:"SepalWidth",y:3.8},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.4},{species:"I. setosa",x:"PetalWidth",y:.4},{species:"I. setosa",x:"SepalWidth",y:3.7},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.6},{species:"I. setosa",x:"PetalWidth",y:.5},{species:"I. setosa",x:"SepalWidth",y:3.3},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.4},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3},{species:"I. setosa",x:"PetalWidth",y:.4},{species:"I. setosa",x:"SepalWidth",y:3.4},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.5},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.4},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.2},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.1},{species:"I. setosa",x:"PetalWidth",y:.4},{species:"I. setosa",x:"SepalWidth",y:3.4},{species:"I. setosa",x:"PetalWidth",y:.1},{species:"I. setosa",x:"SepalWidth",y:4.1},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:4.2},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.1},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.2},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.5},{species:"I. setosa",x:"PetalWidth",y:.1},{species:"I. setosa",x:"SepalWidth",y:3.6},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.4},{species:"I. setosa",x:"PetalWidth",y:.3},{species:"I. setosa",x:"SepalWidth",y:3.5},{species:"I. setosa",x:"PetalWidth",y:.3},{species:"I. setosa",x:"SepalWidth",y:2.3},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.2},{species:"I. setosa",x:"PetalWidth",y:.6},{species:"I. setosa",x:"SepalWidth",y:3.5},{species:"I. setosa",x:"PetalWidth",y:.4},{species:"I. setosa",x:"SepalWidth",y:3.8},{species:"I. setosa",x:"PetalWidth",y:.3},{species:"I. setosa",x:"SepalWidth",y:3},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.8},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.2},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.7},{species:"I. setosa",x:"PetalWidth",y:.2},{species:"I. setosa",x:"SepalWidth",y:3.3},{species:"I. versicolor",x:"PetalWidth",y:1.4},{species:"I. versicolor",x:"SepalWidth",y:3.2},{species:"I. versicolor",x:"PetalWidth",y:1.5},{species:"I. versicolor",x:"SepalWidth",y:3.2},{species:"I. versicolor",x:"PetalWidth",y:1.5},{species:"I. versicolor",x:"SepalWidth",y:3.1},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:2.3},{species:"I. versicolor",x:"PetalWidth",y:1.5},{species:"I. versicolor",x:"SepalWidth",y:2.8},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:2.8},{species:"I. versicolor",x:"PetalWidth",y:1.6},{species:"I. versicolor",x:"SepalWidth",y:3.3},{species:"I. versicolor",x:"PetalWidth",y:1},{species:"I. versicolor",x:"SepalWidth",y:2.4},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:2.9},{species:"I. versicolor",x:"PetalWidth",y:1.4},{species:"I. versicolor",x:"SepalWidth",y:2.7},{species:"I. versicolor",x:"PetalWidth",y:1},{species:"I. versicolor",x:"SepalWidth",y:2},{species:"I. versicolor",x:"PetalWidth",y:1.5},{species:"I. versicolor",x:"SepalWidth",y:3},{species:"I. versicolor",x:"PetalWidth",y:1},{species:"I. versicolor",x:"SepalWidth",y:2.2},{species:"I. versicolor",x:"PetalWidth",y:1.4},{species:"I. versicolor",x:"SepalWidth",y:2.9},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:2.9},{species:"I. versicolor",x:"PetalWidth",y:1.4},{species:"I. versicolor",x:"SepalWidth",y:3.1},{species:"I. versicolor",x:"PetalWidth",y:1.5},{species:"I. versicolor",x:"SepalWidth",y:3},{species:"I. versicolor",x:"PetalWidth",y:1},{species:"I. versicolor",x:"SepalWidth",y:2.7},{species:"I. versicolor",x:"PetalWidth",y:1.5},{species:"I. versicolor",x:"SepalWidth",y:2.2},{species:"I. versicolor",x:"PetalWidth",y:1.1},{species:"I. versicolor",x:"SepalWidth",y:2.5},{species:"I. versicolor",x:"PetalWidth",y:1.8},{species:"I. versicolor",x:"SepalWidth",y:3.2},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:2.8},{species:"I. versicolor",x:"PetalWidth",y:1.5},{species:"I. versicolor",x:"SepalWidth",y:2.5},{species:"I. versicolor",x:"PetalWidth",y:1.2},{species:"I. versicolor",x:"SepalWidth",y:2.8},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:2.9},{species:"I. versicolor",x:"PetalWidth",y:1.4},{species:"I. versicolor",x:"SepalWidth",y:3},{species:"I. versicolor",x:"PetalWidth",y:1.4},{species:"I. versicolor",x:"SepalWidth",y:2.8},{species:"I. versicolor",x:"PetalWidth",y:1.7},{species:"I. versicolor",x:"SepalWidth",y:3},{species:"I. versicolor",x:"PetalWidth",y:1.5},{species:"I. versicolor",x:"SepalWidth",y:2.9},{species:"I. versicolor",x:"PetalWidth",y:1},{species:"I. versicolor",x:"SepalWidth",y:2.6},{species:"I. versicolor",x:"PetalWidth",y:1.1},{species:"I. versicolor",x:"SepalWidth",y:2.4},{species:"I. versicolor",x:"PetalWidth",y:1},{species:"I. versicolor",x:"SepalWidth",y:2.4},{species:"I. versicolor",x:"PetalWidth",y:1.2},{species:"I. versicolor",x:"SepalWidth",y:2.7},{species:"I. versicolor",x:"PetalWidth",y:1.6},{species:"I. versicolor",x:"SepalWidth",y:2.7},{species:"I. versicolor",x:"PetalWidth",y:1.5},{species:"I. versicolor",x:"SepalWidth",y:3},{species:"I. versicolor",x:"PetalWidth",y:1.6},{species:"I. versicolor",x:"SepalWidth",y:3.4},{species:"I. versicolor",x:"PetalWidth",y:1.5},{species:"I. versicolor",x:"SepalWidth",y:3.1},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:2.3},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:3},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:2.5},{species:"I. versicolor",x:"PetalWidth",y:1.2},{species:"I. versicolor",x:"SepalWidth",y:2.6},{species:"I. versicolor",x:"PetalWidth",y:1.4},{species:"I. versicolor",x:"SepalWidth",y:3},{species:"I. versicolor",x:"PetalWidth",y:1.2},{species:"I. versicolor",x:"SepalWidth",y:2.6},{species:"I. versicolor",x:"PetalWidth",y:1},{species:"I. versicolor",x:"SepalWidth",y:2.3},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:2.7},{species:"I. versicolor",x:"PetalWidth",y:1.2},{species:"I. versicolor",x:"SepalWidth",y:3},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:2.9},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:2.9},{species:"I. versicolor",x:"PetalWidth",y:1.1},{species:"I. versicolor",x:"SepalWidth",y:2.5},{species:"I. versicolor",x:"PetalWidth",y:1.3},{species:"I. versicolor",x:"SepalWidth",y:2.8},{species:"I. virginica",x:"PetalWidth",y:2.5},{species:"I. virginica",x:"SepalWidth",y:3.3},{species:"I. virginica",x:"PetalWidth",y:1.9},{species:"I. virginica",x:"SepalWidth",y:2.7},{species:"I. virginica",x:"PetalWidth",y:2.1},{species:"I. virginica",x:"SepalWidth",y:3},{species:"I. virginica",x:"PetalWidth",y:1.8},{species:"I. virginica",x:"SepalWidth",y:2.9},{species:"I. virginica",x:"PetalWidth",y:2.2},{species:"I. virginica",x:"SepalWidth",y:3},{species:"I. virginica",x:"PetalWidth",y:2.1},{species:"I. virginica",x:"SepalWidth",y:3},{species:"I. virginica",x:"PetalWidth",y:1.7},{species:"I. virginica",x:"SepalWidth",y:2.5},{species:"I. virginica",x:"PetalWidth",y:1.8},{species:"I. virginica",x:"SepalWidth",y:2.9},{species:"I. virginica",x:"PetalWidth",y:1.8},{species:"I. virginica",x:"SepalWidth",y:2.5},{species:"I. virginica",x:"PetalWidth",y:2.5},{species:"I. virginica",x:"SepalWidth",y:3.6},{species:"I. virginica",x:"PetalWidth",y:2},{species:"I. virginica",x:"SepalWidth",y:3.2},{species:"I. virginica",x:"PetalWidth",y:1.9},{species:"I. virginica",x:"SepalWidth",y:2.7},{species:"I. virginica",x:"PetalWidth",y:2.1},{species:"I. virginica",x:"SepalWidth",y:3},{species:"I. virginica",x:"PetalWidth",y:2},{species:"I. virginica",x:"SepalWidth",y:2.5},{species:"I. virginica",x:"PetalWidth",y:2.4},{species:"I. virginica",x:"SepalWidth",y:2.8},{species:"I. virginica",x:"PetalWidth",y:2.3},{species:"I. virginica",x:"SepalWidth",y:3.2},{species:"I. virginica",x:"PetalWidth",y:1.8},{species:"I. virginica",x:"SepalWidth",y:3},{species:"I. virginica",x:"PetalWidth",y:2.2},{species:"I. virginica",x:"SepalWidth",y:3.8},{species:"I. virginica",x:"PetalWidth",y:2.3},{species:"I. virginica",x:"SepalWidth",y:2.6},{species:"I. virginica",x:"PetalWidth",y:1.5},{species:"I. virginica",x:"SepalWidth",y:2.2},{species:"I. virginica",x:"PetalWidth",y:2.3},{species:"I. virginica",x:"SepalWidth",y:3.2},{species:"I. virginica",x:"PetalWidth",y:2},{species:"I. virginica",x:"SepalWidth",y:2.8},{species:"I. virginica",x:"PetalWidth",y:2},{species:"I. virginica",x:"SepalWidth",y:2.8},{species:"I. virginica",x:"PetalWidth",y:1.8},{species:"I. virginica",x:"SepalWidth",y:2.7},{species:"I. virginica",x:"PetalWidth",y:2.1},{species:"I. virginica",x:"SepalWidth",y:3.3},{species:"I. virginica",x:"PetalWidth",y:1.8},{species:"I. virginica",x:"SepalWidth",y:3.2},{species:"I. virginica",x:"PetalWidth",y:1.8},{species:"I. virginica",x:"SepalWidth",y:2.8},{species:"I. virginica",x:"PetalWidth",y:1.8},{species:"I. virginica",x:"SepalWidth",y:3},{species:"I. virginica",x:"PetalWidth",y:2.1},{species:"I. virginica",x:"SepalWidth",y:2.8},{species:"I. virginica",x:"PetalWidth",y:1.6},{species:"I. virginica",x:"SepalWidth",y:3},{species:"I. virginica",x:"PetalWidth",y:1.9},{species:"I. virginica",x:"SepalWidth",y:2.8},{species:"I. virginica",x:"PetalWidth",y:2},{species:"I. virginica",x:"SepalWidth",y:3.8},{species:"I. virginica",x:"PetalWidth",y:2.2},{species:"I. virginica",x:"SepalWidth",y:2.8},{species:"I. virginica",x:"PetalWidth",y:1.5},{species:"I. virginica",x:"SepalWidth",y:2.8},{species:"I. virginica",x:"PetalWidth",y:1.4},{species:"I. virginica",x:"SepalWidth",y:2.6},{species:"I. virginica",x:"PetalWidth",y:2.3},{species:"I. virginica",x:"SepalWidth",y:3},{species:"I. virginica",x:"PetalWidth",y:2.4},{species:"I. virginica",x:"SepalWidth",y:3.4},{species:"I. virginica",x:"PetalWidth",y:1.8},{species:"I. virginica",x:"SepalWidth",y:3.1},{species:"I. virginica",x:"PetalWidth",y:1.8},{species:"I. virginica",x:"SepalWidth",y:3},{species:"I. virginica",x:"PetalWidth",y:2.1},{species:"I. virginica",x:"SepalWidth",y:3.1},{species:"I. virginica",x:"PetalWidth",y:2.4},{species:"I. virginica",x:"SepalWidth",y:3.1},{species:"I. virginica",x:"PetalWidth",y:2.3},{species:"I. virginica",x:"SepalWidth",y:3.1},{species:"I. virginica",x:"PetalWidth",y:1.9},{species:"I. virginica",x:"SepalWidth",y:2.7},{species:"I. virginica",x:"PetalWidth",y:2.3},{species:"I. virginica",x:"SepalWidth",y:3.2},{species:"I. virginica",x:"PetalWidth",y:2.5},{species:"I. virginica",x:"SepalWidth",y:3.3},{species:"I. virginica",x:"PetalWidth",y:2.3},{species:"I. virginica",x:"SepalWidth",y:3},{species:"I. virginica",x:"PetalWidth",y:1.9},{species:"I. virginica",x:"SepalWidth",y:2.5},{species:"I. virginica",x:"PetalWidth",y:2},{species:"I. virginica",x:"SepalWidth",y:3},{species:"I. virginica",x:"PetalWidth",y:2.3},{species:"I. virginica",x:"SepalWidth",y:3.4},{species:"I. virginica",x:"PetalWidth",y:1.8},{species:"I. virginica",x:"SepalWidth",y:3},{species:"I. virginica",x:"SepalLength",y:5.9}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-distributioncurve",name:"\u5206\u5E03\u66F2\u7EBF",description:"\u89C2\u5BDF\u8FDE\u7EED\u6982\u7387\u6216\u5BC6\u5EA6\u5F62\u72B6\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5206\u5E03\u66F2\u7EBF",datasets:{main:[{value:121.72824144190116},{value:134.53005046206954},{value:90.79176705424099},{value:94.32573307805073},{value:77.42922286933072},{value:91.68029199768837},{value:120.88054342410787},{value:74.36588320567199},{value:108.58881642847071},{value:110.04307686849299},{value:125.13790134666284},{value:90.461174968711},{value:97.76157231111534},{value:101.22032183542008},{value:109.6275824086669},{value:113.7525616080301},{value:100.16933159981245},{value:140.2581759435272},{value:74.16556547120851},{value:108.16004214556074},{value:108.9069560773736},{value:95.71671217179536},{value:106.62235622748314},{value:114.38712001429866},{value:100.1170840428587},{value:88.44352205555762},{value:99.36127189260709},{value:131.5477714086248},{value:84.1637415049112},{value:91.5257190884416},{value:103.39730803316579},{value:106.91616741430411},{value:92.57699450501721},{value:100.61220412689394},{value:91.21982455760255},{value:103.61545760076058},{value:62.57573041661533},{value:84.02913052767195},{value:78.29906370432252},{value:102.52922037327333},{value:72.08999079190045},{value:88.8145054512117},{value:97.86918983094425},{value:96.75026337009419},{value:90.43792738177285},{value:106.43866791279318},{value:127.882707520433},{value:84.0295894694514},{value:86.62489759752766},{value:89.25187366133059},{value:78.86374910726573},{value:106.30467146214538},{value:75.23263150845114},{value:119.29264369657577},{value:99.21826135371124},{value:130.10011032751007},{value:88.98401556638301},{value:114.99126526790997},{value:93.67149648343995},{value:104.76060354081392},{value:94.5279475813098},{value:113.73000670051968},{value:95.07701112519686},{value:89.17612970638793},{value:78.3162833648096},{value:98.64425312797474},{value:97.79956603252444},{value:115.54447783418476},{value:73.99300531285854},{value:87.4699110406466},{value:100.02351362514105},{value:110.60274875151053},{value:118.90780444164409},{value:81.87747685987212},{value:107.36296685768916},{value:112.49540126022757},{value:89.5840694006615},{value:98.00357584824835},{value:77.26702373660035},{value:106.97187781508568},{value:92.17296152584319},{value:92.90206126114744},{value:108.33351235890882},{value:69.95501004009256},{value:94.26019035288286},{value:95.40203398029897},{value:120.59509417982552},{value:92.23262439972304},{value:107.31697332128222},{value:86.64602345126883},{value:116.59360080101901},{value:106.1230761724693},{value:82.42970628472428},{value:91.84309165637671},{value:93.44607953457057},{value:93.2631958994601},{value:113.58632676926469},{value:78.11109031805339},{value:97.55330291946062},{value:96.50248195787509},{value:106.26643965795635},{value:87.55909254345445},{value:124.26941868752695},{value:113.02592428550543},{value:87.82797389767532},{value:106.30508820995195},{value:127.47940635057554},{value:92.79591586141561},{value:117.07966619811934},{value:87.87378167772904},{value:98.11270468963106},{value:101.65315783351278},{value:95.40936324149689},{value:84.08629388797391},{value:74.88566678161553},{value:77.03266730396847},{value:108.8358359665808},{value:97.20045471088476},{value:134.71462438300512},{value:94.86269204120528},{value:98.67687398609858},{value:112.37128397602297},{value:114.77704149675215},{value:121.62656828836793},{value:120.72039384834005},{value:102.07071181905195},{value:102.82959039133931},{value:87.50952714207374},{value:128.3239796746725},{value:83.91628262526561},{value:82.81814963899538},{value:97.66981210814629},{value:90.18909376618582},{value:91.99477270552096},{value:100.22539404392082},{value:94.43197502316993},{value:101.48581298140851},{value:73.72571903137825},{value:96.77347625966117},{value:105.36701274552453},{value:106.47390851914908},{value:76.00983399952028},{value:73.74032751764395},{value:87.91598498987972},{value:112.65166837568749},{value:93.91867824022127},{value:98.78598711826324},{value:121.78281030860838},{value:91.19889222784529},{value:95.28879570903385},{value:85.06755406996346},{value:101.82718580958635},{value:86.63213940682716},{value:78.00950274748823},{value:89.31800807678192},{value:84.67474606129477},{value:88.68077925010479},{value:108.95633186895033},{value:107.09592152791517},{value:97.97200603096744},{value:73.60070254212062},{value:78.35374700113361},{value:81.91584973109242},{value:104.09835434798805},{value:79.48246157034407},{value:111.55144752067068},{value:92.52071828006203},{value:54.962797338269326},{value:94.95624315624552},{value:72.38101547186547},{value:88.72339098985601},{value:113.99768620466952},{value:68.08634488690531},{value:113.00541280383409},{value:111.68068754988113},{value:107.52896729282787},{value:90.35163810751992},{value:107.85814659756251},{value:99.14201321150904},{value:95.72717984037926},{value:86.41409452594857},{value:106.02891203477455},{value:90.00712756403499},{value:78.40263966783307},{value:93.26913293545442},{value:86.66895025903774},{value:99.63046447149537},{value:94.03798522688115},{value:106.07959786217037},{value:87.96048096192402},{value:119.36482430208369},{value:93.20280614261458},{value:102.43871066721645},{value:104.08906607577474},{value:108.71887210866358},{value:111.64706142624998},{value:111.87610521537646},{value:97.71825111365838},{value:90.5306888053288},{value:93.36681591431542},{value:77.26359513010738},{value:94.44315942703788},{value:118.77747539045373},{value:90.47240089809281},{value:112.76459928020087},{value:86.37020523429673},{value:86.98022879103034},{value:104.16397522004553},{value:105.76724221200554},{value:92.69296196698643},{value:97.42992792516843},{value:105.22568375170172},{value:105.37991018528483},{value:118.67492622720033},{value:70.16804872999876},{value:104.33622455699468},{value:125.32688223260942},{value:100.91351085285383},{value:105.19097273299396},{value:92.36309183724882},{value:85.16440891086876},{value:78.02740563387817},{value:115.70067445637883},{value:100.04342181965174},{value:79.16551650747961},{value:118.88388799956928},{value:94.2037615260092},{value:98.49408089891976},{value:93.66830106902061},{value:93.37052341316755},{value:87.09373073717643},{value:95.56889551711448},{value:102.59622254275912},{value:69.01153810228928},{value:100.62454181692758},{value:79.64541281686638},{value:89.78037459764009},{value:105.50407823152322},{value:121.30190387681455},{value:116.58661950936265},{value:124.90661411401557},{value:94.35298221669889},{value:68.77343453303801},{value:109.42604273380425},{value:63.2681006383366},{value:130.84257069837003},{value:109.59372549733757},{value:109.45756624536632},{value:100.27443137641856},{value:103.54239989382071},{value:91.67097255426597}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-heatmap",name:"\u5BC6\u5EA6\u70ED\u529B\u56FE",description:"\u89C2\u5BDF\u4E8C\u7EF4\u7A7A\u95F4\u7684\u70ED\u70B9\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5BC6\u5EA6\u70ED\u529B\u56FE",datasets:{"layer-1":[{g:541,l:85,tmp:858},{g:566,l:131,tmp:326},{g:85,l:207,tmp:184},{g:552,l:153,tmp:367},{g:409,l:440,tmp:754},{g:186,l:127,tmp:55},{g:990,l:29,tmp:549},{g:28,l:313,tmp:320},{g:257,l:327,tmp:540},{g:352,l:343,tmp:944},{g:969,l:160,tmp:934},{g:227,l:194,tmp:471},{g:910,l:98,tmp:289},{g:285,l:448,tmp:894},{g:900,l:195,tmp:132},{g:337,l:243,tmp:715},{g:238,l:11,tmp:244},{g:607,l:234,tmp:1},{g:85,l:435,tmp:548},{g:336,l:387,tmp:607},{g:320,l:342,tmp:635},{g:20,l:475,tmp:561},{g:42,l:412,tmp:115},{g:821,l:442,tmp:756},{g:810,l:180,tmp:834},{g:119,l:422,tmp:801},{g:980,l:168,tmp:44},{g:729,l:100,tmp:88},{g:40,l:384,tmp:441},{g:351,l:362,tmp:724},{g:515,l:245,tmp:567},{g:496,l:226,tmp:720},{g:43,l:51,tmp:622},{g:775,l:491,tmp:748},{g:302,l:202,tmp:489},{g:308,l:88,tmp:996},{g:793,l:96,tmp:759},{g:637,l:437,tmp:465},{g:586,l:172,tmp:202},{g:110,l:399,tmp:936},{g:54,l:442,tmp:692},{g:804,l:365,tmp:450},{g:730,l:139,tmp:520},{g:994,l:230,tmp:71},{g:394,l:210,tmp:945},{g:840,l:470,tmp:940},{g:260,l:427,tmp:986},{g:261,l:174,tmp:145},{g:377,l:363,tmp:979},{g:241,l:201,tmp:807},{g:11,l:413,tmp:102},{g:226,l:288,tmp:208},{g:224,l:386,tmp:263},{g:828,l:252,tmp:136},{g:376,l:227,tmp:914},{g:453,l:184,tmp:513},{g:327,l:188,tmp:498},{g:283,l:224,tmp:949},{g:948,l:123,tmp:57},{g:532,l:405,tmp:225},{g:810,l:170,tmp:57},{g:642,l:421,tmp:48},{g:45,l:39,tmp:642},{g:678,l:257,tmp:225},{g:807,l:372,tmp:673},{g:498,l:142,tmp:414},{g:176,l:143,tmp:577},{g:42,l:443,tmp:247},{g:497,l:463,tmp:842},{g:191,l:40,tmp:501},{g:877,l:157,tmp:70},{g:709,l:434,tmp:110},{g:406,l:322,tmp:716},{g:765,l:241,tmp:374},{g:316,l:284,tmp:147},{g:550,l:314,tmp:903},{g:711,l:408,tmp:938},{g:523,l:36,tmp:298},{g:40,l:125,tmp:91},{g:297,l:64,tmp:165},{g:785,l:93,tmp:614},{g:843,l:301,tmp:507},{g:84,l:225,tmp:358},{g:202,l:455,tmp:193},{g:199,l:62,tmp:182},{g:704,l:358,tmp:428},{g:655,l:363,tmp:213},{g:727,l:296,tmp:667},{g:920,l:39,tmp:776},{g:694,l:229,tmp:770},{g:757,l:375,tmp:441},{g:734,l:238,tmp:580},{g:688,l:37,tmp:685},{g:245,l:488,tmp:683},{g:783,l:45,tmp:573},{g:921,l:17,tmp:893},{g:555,l:31,tmp:424},{g:334,l:305,tmp:928},{g:610,l:446,tmp:123},{g:257,l:259,tmp:990},{g:351,l:130,tmp:625},{g:26,l:207,tmp:786},{g:218,l:311,tmp:981},{g:767,l:110,tmp:838},{g:988,l:241,tmp:109},{g:487,l:457,tmp:817},{g:424,l:228,tmp:517},{g:512,l:225,tmp:608},{g:598,l:148,tmp:755},{g:739,l:187,tmp:583},{g:99,l:61,tmp:891},{g:968,l:321,tmp:554},{g:998,l:414,tmp:133},{g:519,l:381,tmp:99},{g:563,l:422,tmp:5},{g:613,l:477,tmp:557},{g:441,l:161,tmp:447},{g:673,l:58,tmp:826},{g:451,l:225,tmp:116},{g:141,l:354,tmp:922},{g:521,l:145,tmp:193},{g:794,l:41,tmp:990},{g:241,l:98,tmp:81},{g:910,l:190,tmp:678},{g:310,l:133,tmp:523},{g:16,l:453,tmp:842},{g:953,l:370,tmp:261},{g:887,l:184,tmp:239},{g:63,l:360,tmp:199},{g:928,l:257,tmp:572},{g:266,l:309,tmp:350},{g:448,l:203,tmp:256},{g:238,l:31,tmp:231},{g:84,l:22,tmp:796},{g:431,l:86,tmp:21},{g:195,l:468,tmp:526},{g:816,l:326,tmp:696},{g:952,l:50,tmp:999},{g:670,l:437,tmp:440},{g:259,l:278,tmp:871},{g:15,l:50,tmp:17},{g:167,l:59,tmp:387},{g:393,l:110,tmp:162},{g:306,l:354,tmp:183},{g:214,l:249,tmp:611},{g:521,l:218,tmp:571},{g:841,l:379,tmp:510},{g:187,l:340,tmp:356},{g:340,l:184,tmp:597},{g:439,l:383,tmp:217},{g:916,l:99,tmp:703},{g:203,l:234,tmp:478},{g:876,l:20,tmp:636},{g:551,l:73,tmp:74},{g:278,l:219,tmp:387},{g:686,l:418,tmp:577},{g:921,l:317,tmp:593},{g:699,l:344,tmp:381},{g:233,l:60,tmp:462},{g:937,l:483,tmp:890},{g:246,l:270,tmp:467},{g:788,l:499,tmp:214},{g:366,l:315,tmp:909},{g:817,l:393,tmp:512},{g:761,l:50,tmp:361},{g:911,l:369,tmp:579},{g:646,l:92,tmp:5},{g:87,l:428,tmp:206},{g:454,l:483,tmp:996},{g:885,l:179,tmp:99},{g:348,l:154,tmp:997},{g:415,l:118,tmp:901},{g:532,l:346,tmp:216},{g:326,l:309,tmp:797},{g:243,l:189,tmp:725},{g:343,l:433,tmp:472},{g:947,l:137,tmp:966},{g:770,l:296,tmp:43},{g:66,l:178,tmp:392},{g:225,l:147,tmp:396},{g:757,l:66,tmp:94},{g:644,l:111,tmp:767},{g:669,l:409,tmp:43},{g:829,l:75,tmp:445},{g:761,l:496,tmp:771},{g:740,l:92,tmp:355},{g:964,l:196,tmp:332},{g:316,l:194,tmp:851},{g:694,l:458,tmp:876},{g:273,l:363,tmp:585},{g:225,l:56,tmp:520},{g:940,l:464,tmp:572},{g:100,l:60,tmp:283},{g:656,l:395,tmp:320},{g:87,l:79,tmp:488},{g:803,l:223,tmp:610},{g:468,l:133,tmp:827},{g:691,l:215,tmp:796},{g:776,l:29,tmp:859},{g:927,l:7,tmp:396},{g:330,l:463,tmp:468},{g:233,l:245,tmp:345},{g:780,l:247,tmp:946},{g:959,l:183,tmp:460},{g:494,l:318,tmp:795},{g:926,l:135,tmp:941},{g:197,l:318,tmp:763},{g:614,l:464,tmp:192},{g:399,l:261,tmp:473},{g:746,l:77,tmp:574},{g:23,l:83,tmp:615},{g:177,l:8,tmp:976},{g:95,l:265,tmp:208},{g:336,l:255,tmp:42},{g:669,l:171,tmp:124},{g:945,l:167,tmp:749},{g:979,l:0,tmp:745},{g:611,l:91,tmp:990},{g:335,l:51,tmp:487},{g:261,l:161,tmp:377},{g:726,l:344,tmp:208},{g:25,l:136,tmp:703},{g:181,l:19,tmp:311},{g:875,l:360,tmp:260},{g:885,l:335,tmp:294},{g:362,l:316,tmp:349},{g:767,l:184,tmp:985},{g:799,l:426,tmp:716},{g:305,l:85,tmp:451},{g:90,l:61,tmp:621},{g:693,l:208,tmp:123},{g:72,l:243,tmp:116},{g:65,l:199,tmp:147},{g:257,l:274,tmp:221},{g:979,l:432,tmp:344},{g:973,l:181,tmp:811},{g:645,l:357,tmp:89},{g:686,l:240,tmp:829},{g:869,l:365,tmp:455},{g:219,l:418,tmp:619},{g:26,l:427,tmp:922},{g:247,l:243,tmp:645},{g:757,l:273,tmp:81},{g:518,l:425,tmp:268},{g:841,l:426,tmp:530},{g:818,l:31,tmp:27},{g:251,l:185,tmp:462},{g:636,l:175,tmp:7},{g:380,l:442,tmp:609},{g:161,l:487,tmp:817},{g:596,l:320,tmp:718}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-color-map",name:"\u8272\u5757\u56FE",description:"\u7528\u989C\u8272\u7F16\u7801\u7F51\u683C\u4E2D\u7684\u6570\u503C\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u8272\u5757\u56FE",datasets:{main:[{month:"January",product:"Product A",sales:123},{month:"January",product:"Product B",sales:231},{month:"January",product:"Product C",sales:145},{month:"February",product:"Product A",sales:132},{month:"February",product:"Product B",sales:112},{month:"February",product:"Product C",sales:178},{month:"March",product:"Product A",sales:99},{month:"March",product:"Product B",sales:288},{month:"March",product:"Product C",sales:133},{month:"April",product:"Product A",sales:181},{month:"April",product:"Product B",sales:223},{month:"April",product:"Product C",sales:141},{month:"May",product:"Product A",sales:152},{month:"May",product:"Product B",sales:219},{month:"May",product:"Product C",sales:109},{month:"June",product:"Product A",sales:167},{month:"June",product:"Product B",sales:187},{month:"June",product:"Product C",sales:255}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-contourline",name:"\u7B49\u9AD8\u7EBF\u56FE",description:"\u7528\u7B49\u503C\u66F2\u7EBF\u8868\u8FBE\u8FDE\u7EED\u573A\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u7B49\u9AD8\u7EBF\u56FE",datasets:{main:[{x:30,y:25,level:20,lineId:"line_20"},{x:31.190083208180017,y:26.09147868243255,level:20,lineId:"line_20"},{x:31.549296260726187,y:27.383748894295273,level:20,lineId:"line_20"},{x:30.830127018922195,y:28.366025403784437,level:20,lineId:"line_20"},{x:29.35422747605366,y:28.653630669218604,level:20,lineId:"line_20"},{x:27.77424542764679,y:28.306216955136122,level:20,lineId:"line_20"},{x:26.633974596215563,y:27.830127018922195,level:20,lineId:"line_20"},{x:26.036452538961413,y:27.847629947132894,level:20,lineId:"line_20"},{x:25.645003094236753,y:28.657994321942063,level:20,lineId:"line_20"},{x:25,y:30,level:20,lineId:"line_20"},{x:23.90852131756745,y:31.190083208180017,level:20,lineId:"line_20"},{x:22.616251105704727,y:31.549296260726187,level:20,lineId:"line_20"},{x:21.633974596215563,y:30.830127018922195,level:20,lineId:"line_20"},{x:21.346369330781393,y:29.35422747605366,level:20,lineId:"line_20"},{x:21.693783044863878,y:27.77424542764679,level:20,lineId:"line_20"},{x:22.169872981077805,y:26.633974596215563,level:20,lineId:"line_20"},{x:22.152370052867106,y:26.036452538961413,level:20,lineId:"line_20"},{x:21.342005678057937,y:25.645003094236753,level:20,lineId:"line_20"},{x:20,y:25,level:20,lineId:"line_20"},{x:18.80991679181998,y:23.90852131756745,level:20,lineId:"line_20"},{x:18.450703739273813,y:22.616251105704727,level:20,lineId:"line_20"},{x:19.16987298107781,y:21.63397459621556,level:20,lineId:"line_20"},{x:20.645772523946338,y:21.346369330781396,level:20,lineId:"line_20"},{x:22.22575457235321,y:21.693783044863878,level:20,lineId:"line_20"},{x:23.366025403784437,y:22.169872981077805,level:20,lineId:"line_20"},{x:23.963547461038583,y:22.152370052867106,level:20,lineId:"line_20"},{x:24.354996905763247,y:21.342005678057937,level:20,lineId:"line_20"},{x:25,y:20,level:20,lineId:"line_20"},{x:26.091478682432548,y:18.809916791819983,level:20,lineId:"line_20"},{x:27.38374889429527,y:18.450703739273813,level:20,lineId:"line_20"},{x:28.36602540378444,y:19.16987298107781,level:20,lineId:"line_20"},{x:28.653630669218604,y:20.645772523946338,level:20,lineId:"line_20"},{x:28.306216955136122,y:22.22575457235321,level:20,lineId:"line_20"},{x:27.830127018922195,y:23.366025403784437,level:20,lineId:"line_20"},{x:27.847629947132894,y:23.963547461038587,level:20,lineId:"line_20"},{x:28.657994321942056,y:24.354996905763244,level:20,lineId:"line_20"},{x:30,y:25,level:20,lineId:"line_20"},{x:34.647189589668926,y:25.84401972398134,level:40,lineId:"line_40"},{x:35.36636504407723,y:27.777659142006712,level:40,lineId:"line_40"},{x:34.94184795390791,y:29.635959837119863,level:40,lineId:"line_40"},{x:33.425449967637654,y:30.89956358014864,level:40,lineId:"line_40"},{x:31.36396103067893,y:31.36396103067893,level:40,lineId:"line_40"},{x:29.42481227417019,y:31.3192868295642,level:40,lineId:"line_40"},{x:27.97116887421273,y:31.37169221275179,level:40,lineId:"line_40"},{x:26.88108366983866,y:32.020299829126,level:40,lineId:"line_40"},{x:25.724783645476506,y:33.28431497598249,level:40,lineId:"line_40"},{x:24.155980276018656,y:34.64718958966893,level:40,lineId:"line_40"},{x:22.222340857993284,y:35.366365044077234,level:40,lineId:"line_40"},{x:20.36404016288014,y:34.94184795390791,level:40,lineId:"line_40"},{x:19.100436419851363,y:33.42544996763766,level:40,lineId:"line_40"},{x:18.63603896932107,y:31.36396103067893,level:40,lineId:"line_40"},{x:18.6807131704358,y:29.424812274170193,level:40,lineId:"line_40"},{x:18.62830778724821,y:27.97116887421273,level:40,lineId:"line_40"},{x:17.979700170874004,y:26.881083669838663,level:40,lineId:"line_40"},{x:16.715685024017514,y:25.72478364547651,level:40,lineId:"line_40"},{x:15.352810410331072,y:24.15598027601866,level:40,lineId:"line_40"},{x:14.633634955922771,y:22.22234085799329,level:40,lineId:"line_40"},{x:15.05815204609209,y:20.36404016288014,level:40,lineId:"line_40"},{x:16.574550032362342,y:19.100436419851363,level:40,lineId:"line_40"},{x:18.63603896932107,y:18.63603896932107,level:40,lineId:"line_40"},{x:20.575187725829807,y:18.6807131704358,level:40,lineId:"line_40"},{x:22.028831125787267,y:18.62830778724821,level:40,lineId:"line_40"},{x:23.11891633016134,y:17.979700170874,level:40,lineId:"line_40"},{x:24.275216354523494,y:16.71568502401751,level:40,lineId:"line_40"},{x:25.84401972398134,y:15.352810410331072,level:40,lineId:"line_40"},{x:27.77765914200672,y:14.63363495592277,level:40,lineId:"line_40"},{x:29.635959837119863,y:15.058152046092092,level:40,lineId:"line_40"},{x:30.89956358014864,y:16.574550032362346,level:40,lineId:"line_40"},{x:31.36396103067893,y:18.63603896932107,level:40,lineId:"line_40"},{x:31.3192868295642,y:20.575187725829807,level:40,lineId:"line_40"},{x:31.37169221275179,y:22.028831125787267,level:40,lineId:"line_40"},{x:32.020299829126,y:23.11891633016134,level:40,lineId:"line_40"},{x:33.28431497598249,y:24.275216354523494,level:40,lineId:"line_40"},{x:38,y:25,level:60,lineId:"line_60"},{x:39.068545232277685,y:27.480664103767992,level:60,lineId:"line_60"},{x:39.06683722701346,y:30.119910040900624,level:60,lineId:"line_60"},{x:37.758330249197705,y:32.366025403784434,level:60,lineId:"line_60"},{x:35.48258302100548,y:33.79593154671092,level:60,lineId:"line_60"},{x:32.91654630513911,y:34.434572500087945,level:60,lineId:"line_60"},{x:30.633974596215563,y:34.7583302491977,level:60,lineId:"line_60"},{x:28.772613685566764,y:35.36517091342016,level:60,lineId:"line_60"},{x:27.034188515572197,y:36.53645634603973,level:60,lineId:"line_60"},{x:25,y:38,level:60,lineId:"line_60"},{x:22.519335896232008,y:39.068545232277685,level:60,lineId:"line_60"},{x:19.880089959099376,y:39.06683722701346,level:60,lineId:"line_60"},{x:17.633974596215566,y:37.758330249197705,level:60,lineId:"line_60"},{x:16.204068453289082,y:35.48258302100548,level:60,lineId:"line_60"},{x:15.565427499912055,y:32.91654630513911,level:60,lineId:"line_60"},{x:15.241669750802297,y:30.63397459621556,level:60,lineId:"line_60"},{x:14.634829086579838,y:28.772613685566764,level:60,lineId:"line_60"},{x:13.463543653960272,y:27.034188515572193,level:60,lineId:"line_60"},{x:12.000000000000002,y:25,level:60,lineId:"line_60"},{x:10.931454767722316,y:22.519335896232004,level:60,lineId:"line_60"},{x:10.933162772986543,y:19.88008995909938,level:60,lineId:"line_60"},{x:12.241669750802298,y:17.63397459621556,level:60,lineId:"line_60"},{x:14.517416978994513,y:16.204068453289082,level:60,lineId:"line_60"},{x:17.083453694860893,y:15.565427499912055,level:60,lineId:"line_60"},{x:19.366025403784434,y:15.241669750802297,level:60,lineId:"line_60"},{x:21.22738631443323,y:14.634829086579842,level:60,lineId:"line_60"},{x:22.965811484427803,y:13.463543653960274,level:60,lineId:"line_60"},{x:24.999999999999996,y:12.000000000000002,level:60,lineId:"line_60"},{x:27.48066410376799,y:10.931454767722318,level:60,lineId:"line_60"},{x:30.119910040900614,y:10.933162772986543,level:60,lineId:"line_60"},{x:32.36602540378444,y:12.241669750802298,level:60,lineId:"line_60"},{x:33.79593154671092,y:14.517416978994513,level:60,lineId:"line_60"},{x:34.434572500087945,y:17.083453694860893,level:60,lineId:"line_60"},{x:34.7583302491977,y:19.366025403784434,level:60,lineId:"line_60"},{x:35.365170913420165,y:21.22738631443324,level:60,lineId:"line_60"},{x:36.53645634603972,y:22.965811484427796,level:60,lineId:"line_60"},{x:38,y:24.999999999999996,level:60,lineId:"line_60"},{x:42.616747174402896,y:26.54126566596261,level:80,lineId:"line_80"},{x:43.09377165438978,y:29.848211502826878,level:80,lineId:"line_80"},{x:42.1923102502011,y:33.01690593104546,level:80,lineId:"line_80"},{x:39.97866632194959,y:35.488175070957006,level:80,lineId:"line_80"},{x:37.020815280171306,y:37.020815280171306,level:80,lineId:"line_80"},{x:34.013423764978555,y:37.872503183876134,level:80,lineId:"line_80"},{x:31.352114968138324,y:38.62215450904499,level:80,lineId:"line_80"},{x:28.951636030658825,y:39.747706439438545,level:80,lineId:"line_80"},{x:26.42202958745777,y:41.25387256071645,level:80,lineId:"line_80"},{x:23.45873433403739,y:42.616747174402896,level:80,lineId:"line_80"},{x:20.15178849717312,y:43.09377165438978,level:80,lineId:"line_80"},{x:16.983094068954543,y:42.19231025020112,level:80,lineId:"line_80"},{x:14.511824929042996,y:39.97866632194959,level:80,lineId:"line_80"},{x:12.979184719828693,y:37.020815280171306,level:80,lineId:"line_80"},{x:12.127496816123868,y:34.01342376497856,level:80,lineId:"line_80"},{x:11.37784549095501,y:31.352114968138324,level:80,lineId:"line_80"},{x:10.252293560561457,y:28.95163603065883,level:80,lineId:"line_80"},{x:8.746127439283551,y:26.42202958745778,level:80,lineId:"line_80"},{x:7.383252825597108,y:23.4587343340374,level:80,lineId:"line_80"},{x:6.906228345610224,y:20.15178849717313,level:80,lineId:"line_80"},{x:7.807689749798886,y:16.983094068954543,level:80,lineId:"line_80"},{x:10.021333678050409,y:14.511824929042996,level:80,lineId:"line_80"},{x:12.97918471982869,y:12.979184719828693,level:80,lineId:"line_80"},{x:15.986576235021435,y:12.127496816123868,level:80,lineId:"line_80"},{x:18.64788503186167,y:11.377845490955012,level:80,lineId:"line_80"},{x:21.048363969341175,y:10.252293560561453,level:80,lineId:"line_80"},{x:23.57797041254223,y:8.746127439283548,level:80,lineId:"line_80"},{x:26.5412656659626,y:7.383252825597108,level:80,lineId:"line_80"},{x:29.848211502826885,y:6.906228345610224,level:80,lineId:"line_80"},{x:33.01690593104546,y:7.807689749798893,level:80,lineId:"line_80"},{x:35.488175070957006,y:10.021333678050413,level:80,lineId:"line_80"},{x:37.020815280171306,y:12.97918471982869,level:80,lineId:"line_80"},{x:37.872503183876134,y:15.986576235021433,level:80,lineId:"line_80"},{x:38.62215450904499,y:18.64788503186167,level:80,lineId:"line_80"},{x:39.747706439438545,y:21.048363969341175,level:80,lineId:"line_80"},{x:41.25387256071645,y:23.57797041254223,level:80,lineId:"line_80"},{x:46,y:25,level:100,lineId:"line_100"},{x:46.94700725637534,y:28.869849525103437,level:100,lineId:"line_100"},{x:46.58437819330072,y:32.856071187505975,level:100,lineId:"line_100"},{x:44.68653347947321,y:36.366025403784434,level:100,lineId:"line_100"},{x:41.61093856595731,y:38.938232424203235,level:100,lineId:"line_100"},{x:38.05884718263142,y:40.56292804503977,level:100,lineId:"line_100"},{x:34.633974596215566,y:41.68653347947321,level:100,lineId:"line_100"},{x:31.508774832172115,y:42.88271187970743,level:100,lineId:"line_100"},{x:28.423373936907637,y:44.414918370137386,level:100,lineId:"line_100"},{x:25,y:46,level:100,lineId:"line_100"},{x:21.130150474896563,y:46.94700725637534,level:100,lineId:"line_100"},{x:17.14392881249403,y:46.58437819330072,level:100,lineId:"line_100"},{x:13.633974596215566,y:44.68653347947321,level:100,lineId:"line_100"},{x:11.061767575796765,y:41.61093856595731,level:100,lineId:"line_100"},{x:9.437071954960231,y:38.058847182631425,level:100,lineId:"line_100"},{x:8.313466520526788,y:34.63397459621556,level:100,lineId:"line_100"},{x:7.117288120292574,y:31.508774832172115,level:100,lineId:"line_100"},{x:5.585081629862611,y:28.423373936907637,level:100,lineId:"line_100"},{x:4,y:25.000000000000004,level:100,lineId:"line_100"},{x:3.052992743624653,y:21.13015047489656,level:100,lineId:"line_100"},{x:3.415621806699278,y:17.14392881249403,level:100,lineId:"line_100"},{x:5.3134665205267915,y:13.63397459621556,level:100,lineId:"line_100"},{x:8.389061434042688,y:11.061767575796766,level:100,lineId:"line_100"},{x:11.941152817368579,y:9.437071954960231,level:100,lineId:"line_100"},{x:15.366025403784429,y:8.313466520526788,level:100,lineId:"line_100"},{x:18.491225167827874,y:7.117288120292574,level:100,lineId:"line_100"},{x:21.576626063092363,y:5.585081629862611,level:100,lineId:"line_100"},{x:24.999999999999996,y:4,level:100,lineId:"line_100"},{x:28.869849525103426,y:3.052992743624653,level:100,lineId:"line_100"},{x:32.85607118750596,y:3.4156218066992743,level:100,lineId:"line_100"},{x:36.36602540378444,y:5.313466520526788,level:100,lineId:"line_100"},{x:38.938232424203235,y:8.389061434042688,level:100,lineId:"line_100"},{x:40.56292804503977,y:11.941152817368575,level:100,lineId:"line_100"},{x:41.68653347947321,y:15.366025403784429,level:100,lineId:"line_100"},{x:42.88271187970743,y:18.49122516782789,level:100,lineId:"line_100"},{x:44.414918370137386,y:21.576626063092345,level:100,lineId:"line_100"},{x:46,y:24.999999999999996,level:100,lineId:"line_100"}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-stem-leaf",name:"\u830E\u53F6\u56FE",description:"\u4FDD\u7559\u6570\u503C\u7EC6\u8282\u5E76\u5C55\u793A\u5206\u5E03\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u830E\u53F6\u56FE",datasets:{main:[{x:.4,y:0,text:"9",type:"stem",fill:"#333",fontSize:18,fontWeight:"bold"},{x:.47,y:0,text:"2",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.51,y:0,text:"3",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.5499999999999999,y:0,text:"5",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.4,y:1,text:"8",type:"stem",fill:"#333",fontSize:18,fontWeight:"bold"},{x:.47,y:1,text:"1",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.51,y:1,text:"2",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.5499999999999999,y:1,text:"3",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.59,y:1,text:"5",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.63,y:1,text:"7",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.6699999999999999,y:1,text:"9",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.4,y:2,text:"7",type:"stem",fill:"#333",fontSize:18,fontWeight:"bold"},{x:.47,y:2,text:"1",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.51,y:2,text:"2",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.5499999999999999,y:2,text:"3",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.59,y:2,text:"4",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.63,y:2,text:"5",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.6699999999999999,y:2,text:"6",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.71,y:2,text:"8",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.75,y:2,text:"9",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.4,y:3,text:"6",type:"stem",fill:"#333",fontSize:18,fontWeight:"bold"},{x:.47,y:3,text:"5",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.51,y:3,text:"7",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"},{x:.5499999999999999,y:3,text:"9",type:"leaf",fill:"#1890ff",fontSize:14,fontWeight:"normal"}],"layer-1":[.45]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-sankey",name:"\u6851\u57FA\u56FE",description:"\u8FDE\u63A5\u5BBD\u5EA6\u8868\u8FBE\u6D41\u91CF\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u6851\u57FA\u56FE",datasets:{main:[{source:"Agricultural 'waste'",target:"Bio-conversion",value:124.729},{source:"Bio-conversion",target:"Liquid",value:.597},{source:"Bio-conversion",target:"Losses",value:26.862},{source:"Bio-conversion",target:"Solid",value:280.322},{source:"Bio-conversion",target:"Gas",value:81.144},{source:"Biofuel imports",target:"Liquid",value:35},{source:"Biomass imports",target:"Solid",value:35},{source:"Coal imports",target:"Coal",value:11.606},{source:"Coal reserves",target:"Coal",value:63.965},{source:"Coal",target:"Solid",value:75.571},{source:"District heating",target:"Industry",value:10.639},{source:"District heating",target:"Heating and cooling - commercial",value:22.505},{source:"District heating",target:"Heating and cooling - homes",value:46.184},{source:"Electricity grid",target:"Over generation / exports",value:104.453},{source:"Electricity grid",target:"Heating and cooling - homes",value:113.726},{source:"Electricity grid",target:"H2 conversion",value:27.14},{source:"Electricity grid",target:"Industry",value:342.165},{source:"Electricity grid",target:"Road transport",value:37.797},{source:"Electricity grid",target:"Agriculture",value:4.412},{source:"Electricity grid",target:"Heating and cooling - commercial",value:40.858},{source:"Electricity grid",target:"Losses",value:56.691},{source:"Electricity grid",target:"Rail transport",value:7.863},{source:"Electricity grid",target:"Lighting & appliances - commercial",value:90.008},{source:"Electricity grid",target:"Lighting & appliances - homes",value:93.494},{source:"Gas imports",target:"Ngas",value:40.719},{source:"Gas reserves",target:"Ngas",value:82.233},{source:"Gas",target:"Heating and cooling - commercial",value:.129},{source:"Gas",target:"Losses",value:1.401},{source:"Gas",target:"Thermal generation",value:151.891},{source:"Gas",target:"Agriculture",value:2.096},{source:"Gas",target:"Industry",value:48.58},{source:"Geothermal",target:"Electricity grid",value:7.013},{source:"H2 conversion",target:"H2",value:20.897},{source:"H2 conversion",target:"Losses",value:6.242},{source:"H2",target:"Road transport",value:20.897},{source:"Hydro",target:"Electricity grid",value:6.995},{source:"Liquid",target:"Industry",value:121.066},{source:"Liquid",target:"International shipping",value:128.69},{source:"Liquid",target:"Road transport",value:135.835},{source:"Liquid",target:"Domestic aviation",value:14.458},{source:"Liquid",target:"International aviation",value:206.267},{source:"Liquid",target:"Agriculture",value:3.64},{source:"Liquid",target:"National navigation",value:33.218},{source:"Liquid",target:"Rail transport",value:4.413},{source:"Marine algae",target:"Bio-conversion",value:4.375},{source:"Ngas",target:"Gas",value:122.952},{source:"Nuclear",target:"Thermal generation",value:839.978},{source:"Oil imports",target:"Oil",value:504.287},{source:"Oil reserves",target:"Oil",value:107.703},{source:"Oil",target:"Liquid",value:611.99},{source:"Other waste",target:"Solid",value:56.587},{source:"Other waste",target:"Bio-conversion",value:77.81},{source:"Pumped heat",target:"Heating and cooling - homes",value:193.026},{source:"Pumped heat",target:"Heating and cooling - commercial",value:70.672},{source:"Solar PV",target:"Electricity grid",value:59.901},{source:"Solar Thermal",target:"Heating and cooling - homes",value:19.263},{source:"Solar",target:"Solar Thermal",value:19.263},{source:"Solar",target:"Solar PV",value:59.901},{source:"Solid",target:"Agriculture",value:.882},{source:"Solid",target:"Thermal generation",value:400.12},{source:"Solid",target:"Industry",value:46.477},{source:"Thermal generation",target:"Electricity grid",value:525.531},{source:"Thermal generation",target:"Losses",value:787.129},{source:"Thermal generation",target:"District heating",value:79.329},{source:"Tidal",target:"Electricity grid",value:9.452},{source:"UK land based bioenergy",target:"Bio-conversion",value:182.01},{source:"Wave",target:"Electricity grid",value:19.013},{source:"Wind",target:"Electricity grid",value:289.366}]},theme:"indigo",height:320,legend:!1,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-chord",name:"\u5F26\u56FE",description:"\u5706\u73AF\u5185\u5C55\u793A\u5173\u7CFB\u5F3A\u5EA6\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5F26\u56FE",datasets:{main:{links:[{source:"Beijing",target:"Shanghai",value:100},{source:"Beijing",target:"Guangzhou",value:80},{source:"Beijing",target:"Shenzhen",value:60},{source:"Shanghai",target:"Beijing",value:70},{source:"Shanghai",target:"Guangzhou",value:90},{source:"Shanghai",target:"Shenzhen",value:50},{source:"Guangzhou",target:"Beijing",value:40},{source:"Guangzhou",target:"Shanghai",value:85},{source:"Guangzhou",target:"Shenzhen",value:120},{source:"Shenzhen",target:"Beijing",value:35},{source:"Shenzhen",target:"Shanghai",value:45},{source:"Shenzhen",target:"Guangzhou",value:110}]}},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-arcdiagram",name:"\u5F27\u56FE",description:"\u5728\u7EBF\u6027\u8282\u70B9\u4E4B\u95F4\u8FDE\u63A5\u5F27\u7EBF\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5F27\u56FE",datasets:{main:{nodes:[{id:0,label:"Myriel",modularity_class:"0",size:28.685715},{id:1,label:"Napoleon",modularity_class:"0",size:4},{id:2,label:"MlleBaptistine",modularity_class:"1",size:9.485714},{id:3,label:"MmeMagloire",modularity_class:"1",size:9.485714},{id:4,label:"CountessDeLo",modularity_class:"0",size:4},{id:5,label:"Geborand",modularity_class:"0",size:4},{id:6,label:"Champtercier",modularity_class:"0",size:4},{id:7,label:"Cravatte",modularity_class:"0",size:4},{id:8,label:"Count",modularity_class:"0",size:4},{id:9,label:"OldMan",modularity_class:"0",size:4},{id:10,label:"Labarre",modularity_class:"1",size:4},{id:11,label:"Valjean",modularity_class:"1",size:100},{id:12,label:"Marguerite",modularity_class:"1",size:6.742859},{id:13,label:"MmeDeR",modularity_class:"1",size:4},{id:14,label:"Isabeau",modularity_class:"1",size:4},{id:15,label:"Gervais",modularity_class:"1",size:4},{id:16,label:"Tholomyes",modularity_class:"2",size:25.942856},{id:17,label:"Listolier",modularity_class:"2",size:20.457146},{id:18,label:"Fameuil",modularity_class:"2",size:20.457146},{id:19,label:"Blacheville",modularity_class:"2",size:20.457146},{id:20,label:"Favourite",modularity_class:"2",size:20.457146},{id:21,label:"Dahlia",modularity_class:"2",size:20.457146},{id:22,label:"Zephine",modularity_class:"2",size:20.457146},{id:23,label:"Fantine",modularity_class:"2",size:42.4},{id:24,label:"MmeThenardier",modularity_class:"7",size:31.428574},{id:25,label:"Thenardier",modularity_class:"7",size:45.142853},{id:26,label:"Cosette",modularity_class:"6",size:31.428574},{id:27,label:"Javert",modularity_class:"7",size:47.88571},{id:28,label:"Fauchelevent",modularity_class:"4",size:12.228573},{id:29,label:"Bamatabois",modularity_class:"3",size:23.2},{id:30,label:"Perpetue",modularity_class:"2",size:6.742859},{id:31,label:"Simplice",modularity_class:"2",size:12.228573},{id:32,label:"Scaufflaire",modularity_class:"1",size:4},{id:33,label:"Woman1",modularity_class:"1",size:6.742859},{id:34,label:"Judge",modularity_class:"3",size:17.714287},{id:35,label:"Champmathieu",modularity_class:"3",size:17.714287},{id:36,label:"Brevet",modularity_class:"3",size:17.714287},{id:37,label:"Chenildieu",modularity_class:"3",size:17.714287},{id:38,label:"Cochepaille",modularity_class:"3",size:17.714287},{id:39,label:"Pontmercy",modularity_class:"6",size:9.485714},{id:40,label:"Boulatruelle",modularity_class:"7",size:4},{id:41,label:"Eponine",modularity_class:"7",size:31.428574},{id:42,label:"Anzelma",modularity_class:"7",size:9.485714},{id:43,label:"Woman2",modularity_class:"6",size:9.485714},{id:44,label:"MotherInnocent",modularity_class:"4",size:6.742859},{id:45,label:"Gribier",modularity_class:"4",size:4},{id:46,label:"Jondrette",modularity_class:"5",size:4},{id:47,label:"MmeBurgon",modularity_class:"5",size:6.742859},{id:48,label:"Gavroche",modularity_class:"8",size:61.600006},{id:49,label:"Gillenormand",modularity_class:"6",size:20.457146},{id:50,label:"Magnon",modularity_class:"6",size:6.742859},{id:51,label:"MlleGillenormand",modularity_class:"6",size:20.457146},{id:52,label:"MmePontmercy",modularity_class:"6",size:6.742859},{id:53,label:"MlleVaubois",modularity_class:"6",size:4},{id:54,label:"LtGillenormand",modularity_class:"6",size:12.228573},{id:55,label:"Marius",modularity_class:"6",size:53.37143},{id:56,label:"BaronessT",modularity_class:"6",size:6.742859},{id:57,label:"Mabeuf",modularity_class:"8",size:31.428574},{id:58,label:"Enjolras",modularity_class:"8",size:42.4},{id:59,label:"Combeferre",modularity_class:"8",size:31.428574},{id:60,label:"Prouvaire",modularity_class:"8",size:25.942856},{id:61,label:"Feuilly",modularity_class:"8",size:31.428574},{id:62,label:"Courfeyrac",modularity_class:"8",size:36.91429},{id:63,label:"Bahorel",modularity_class:"8",size:34.17143},{id:64,label:"Bossuet",modularity_class:"8",size:36.91429},{id:65,label:"Joly",modularity_class:"8",size:34.17143},{id:66,label:"Grantaire",modularity_class:"8",size:28.685715},{id:67,label:"MotherPlutarch",modularity_class:"8",size:4},{id:68,label:"Gueulemer",modularity_class:"7",size:28.685715},{id:69,label:"Babet",modularity_class:"7",size:28.685715},{id:70,label:"Claquesous",modularity_class:"7",size:28.685715},{id:71,label:"Montparnasse",modularity_class:"7",size:25.942856},{id:72,label:"Toussaint",modularity_class:"1",size:9.485714},{id:73,label:"Child1",modularity_class:"8",size:6.742859},{id:74,label:"Child2",modularity_class:"8",size:6.742859},{id:75,label:"Brujon",modularity_class:"7",size:20.457146},{id:76,label:"MmeHucheloup",modularity_class:"8",size:20.457146}],links:[{source:"1",target:"0"},{source:"2",target:"0"},{source:"3",target:"0"},{source:"3",target:"2"},{source:"4",target:"0"},{source:"5",target:"0"},{source:"6",target:"0"},{source:"7",target:"0"},{source:"8",target:"0"},{source:"9",target:"0"},{source:"11",target:"0"},{source:"11",target:"2"},{source:"11",target:"3"},{source:"11",target:"10"},{source:"12",target:"11"},{source:"13",target:"11"},{source:"14",target:"11"},{source:"15",target:"11"},{source:"17",target:"16"},{source:"18",target:"16"},{source:"18",target:"17"},{source:"19",target:"16"},{source:"19",target:"17"},{source:"19",target:"18"},{source:"20",target:"16"},{source:"20",target:"17"},{source:"20",target:"18"},{source:"20",target:"19"},{source:"21",target:"16"},{source:"21",target:"17"},{source:"21",target:"18"},{source:"21",target:"19"},{source:"21",target:"20"},{source:"22",target:"16"},{source:"22",target:"17"},{source:"22",target:"18"},{source:"22",target:"19"},{source:"22",target:"20"},{source:"22",target:"21"},{source:"23",target:"11"},{source:"23",target:"12"},{source:"23",target:"16"},{source:"23",target:"17"},{source:"23",target:"18"},{source:"23",target:"19"},{source:"23",target:"20"},{source:"23",target:"21"},{source:"23",target:"22"},{source:"24",target:"11"},{source:"24",target:"23"},{source:"25",target:"11"},{source:"25",target:"23"},{source:"25",target:"24"},{source:"26",target:"11"},{source:"26",target:"16"},{source:"26",target:"24"},{source:"26",target:"25"},{source:"27",target:"11"},{source:"27",target:"23"},{source:"27",target:"24"},{source:"27",target:"25"},{source:"27",target:"26"},{source:"28",target:"11"},{source:"28",target:"27"},{source:"29",target:"11"},{source:"29",target:"23"},{source:"29",target:"27"},{source:"30",target:"23"},{source:"31",target:"11"},{source:"31",target:"23"},{source:"31",target:"27"},{source:"31",target:"30"},{source:"32",target:"11"},{source:"33",target:"11"},{source:"33",target:"27"},{source:"34",target:"11"},{source:"34",target:"29"},{source:"35",target:"11"},{source:"35",target:"29"},{source:"35",target:"34"},{source:"36",target:"11"},{source:"36",target:"29"},{source:"36",target:"34"},{source:"36",target:"35"},{source:"37",target:"11"},{source:"37",target:"29"},{source:"37",target:"34"},{source:"37",target:"35"},{source:"37",target:"36"},{source:"38",target:"11"},{source:"38",target:"29"},{source:"38",target:"34"},{source:"38",target:"35"},{source:"38",target:"36"},{source:"38",target:"37"},{source:"39",target:"25"},{source:"40",target:"25"},{source:"41",target:"24"},{source:"41",target:"25"},{source:"42",target:"24"},{source:"42",target:"25"},{source:"42",target:"41"},{source:"43",target:"11"},{source:"43",target:"26"},{source:"43",target:"27"},{source:"44",target:"11"},{source:"44",target:"28"},{source:"45",target:"28"},{source:"47",target:"46"},{source:"48",target:"11"},{source:"48",target:"25"},{source:"48",target:"27"},{source:"48",target:"47"},{source:"49",target:"11"},{source:"49",target:"26"},{source:"50",target:"24"},{source:"50",target:"49"},{source:"51",target:"11"},{source:"51",target:"26"},{source:"51",target:"49"},{source:"52",target:"39"},{source:"52",target:"51"},{source:"53",target:"51"},{source:"54",target:"26"},{source:"54",target:"49"},{source:"54",target:"51"},{source:"55",target:"11"},{source:"55",target:"16"},{source:"55",target:"25"},{source:"55",target:"26"},{source:"55",target:"39"},{source:"55",target:"41"},{source:"55",target:"48"},{source:"55",target:"49"},{source:"55",target:"51"},{source:"55",target:"54"},{source:"56",target:"49"},{source:"56",target:"55"},{source:"57",target:"41"},{source:"57",target:"48"},{source:"57",target:"55"},{source:"58",target:"11"},{source:"58",target:"27"},{source:"58",target:"48"},{source:"58",target:"55"},{source:"58",target:"57"},{source:"59",target:"48"},{source:"59",target:"55"},{source:"59",target:"57"},{source:"59",target:"58"},{source:"60",target:"48"},{source:"60",target:"58"},{source:"60",target:"59"},{source:"61",target:"48"},{source:"61",target:"55"},{source:"61",target:"57"},{source:"61",target:"58"},{source:"61",target:"59"},{source:"61",target:"60"},{source:"62",target:"41"},{source:"62",target:"48"},{source:"62",target:"55"},{source:"62",target:"57"},{source:"62",target:"58"},{source:"62",target:"59"},{source:"62",target:"60"},{source:"62",target:"61"},{source:"63",target:"48"},{source:"63",target:"55"},{source:"63",target:"57"},{source:"63",target:"58"},{source:"63",target:"59"},{source:"63",target:"60"},{source:"63",target:"61"},{source:"63",target:"62"},{source:"64",target:"11"},{source:"64",target:"48"},{source:"64",target:"55"},{source:"64",target:"57"},{source:"64",target:"58"},{source:"64",target:"59"},{source:"64",target:"60"},{source:"64",target:"61"},{source:"64",target:"62"},{source:"64",target:"63"},{source:"65",target:"48"},{source:"65",target:"55"},{source:"65",target:"57"},{source:"65",target:"58"},{source:"65",target:"59"},{source:"65",target:"60"},{source:"65",target:"61"},{source:"65",target:"62"},{source:"65",target:"63"},{source:"65",target:"64"},{source:"66",target:"48"},{source:"66",target:"58"},{source:"66",target:"59"},{source:"66",target:"60"},{source:"66",target:"61"},{source:"66",target:"62"},{source:"66",target:"63"},{source:"66",target:"64"},{source:"66",target:"65"},{source:"67",target:"57"},{source:"68",target:"11"},{source:"68",target:"24"},{source:"68",target:"25"},{source:"68",target:"27"},{source:"68",target:"41"},{source:"68",target:"48"},{source:"69",target:"11"},{source:"69",target:"24"},{source:"69",target:"25"},{source:"69",target:"27"},{source:"69",target:"41"},{source:"69",target:"48"},{source:"69",target:"68"},{source:"70",target:"11"},{source:"70",target:"24"},{source:"70",target:"25"},{source:"70",target:"27"},{source:"70",target:"41"},{source:"70",target:"58"},{source:"70",target:"68"},{source:"70",target:"69"},{source:"71",target:"11"},{source:"71",target:"25"},{source:"71",target:"27"},{source:"71",target:"41"},{source:"71",target:"48"},{source:"71",target:"68"},{source:"71",target:"69"},{source:"71",target:"70"},{source:"72",target:"11"},{source:"72",target:"26"},{source:"72",target:"27"},{source:"73",target:"48"},{source:"74",target:"48"},{source:"74",target:"73"},{source:"75",target:"25"},{source:"75",target:"41"},{source:"75",target:"48"},{source:"75",target:"68"},{source:"75",target:"69"},{source:"75",target:"70"},{source:"75",target:"71"},{source:"76",target:"48"},{source:"76",target:"58"},{source:"76",target:"62"},{source:"76",target:"63"},{source:"76",target:"64"},{source:"76",target:"65"},{source:"76",target:"66"}]}},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-pack",name:"\u5706\u5F62\u6253\u5305\u56FE",description:"\u7528\u5305\u542B\u5173\u7CFB\u8868\u8FBE\u5C42\u7EA7\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5706\u5F62\u6253\u5305\u56FE",datasets:{main:{name:"flare",children:[{name:"analytics",children:[{name:"cluster",children:[{name:"AgglomerativeCluster",value:3938},{name:"CommunityStructure",value:3812},{name:"HierarchicalCluster",value:6714},{name:"MergeEdge",value:743}]},{name:"graph",children:[{name:"BetweennessCentrality",value:3534},{name:"LinkDistance",value:5731},{name:"MaxFlowMinCut",value:7840},{name:"ShortestPaths",value:5914},{name:"SpanningTree",value:3416}]},{name:"optimization",children:[{name:"AspectRatioBanker",value:7074}]}]},{name:"animate",children:[{name:"Easing",value:17010},{name:"FunctionSequence",value:5842},{name:"interpolate",children:[{name:"ArrayInterpolator",value:1983},{name:"ColorInterpolator",value:2047},{name:"DateInterpolator",value:1375},{name:"Interpolator",value:8746},{name:"MatrixInterpolator",value:2202},{name:"NumberInterpolator",value:1382},{name:"ObjectInterpolator",value:1629},{name:"PointInterpolator",value:1675},{name:"RectangleInterpolator",value:2042}]},{name:"ISchedulable",value:1041},{name:"Parallel",value:5176},{name:"Pause",value:449},{name:"Scheduler",value:5593},{name:"Sequence",value:5534},{name:"Transition",value:9201},{name:"Transitioner",value:19975},{name:"TransitionEvent",value:1116},{name:"Tween",value:6006}]},{name:"data",children:[{name:"converters",children:[{name:"Converters",value:721},{name:"DelimitedTextConverter",value:4294},{name:"GraphMLConverter",value:9800},{name:"IDataConverter",value:1314},{name:"JSONConverter",value:2220}]},{name:"DataField",value:1759},{name:"DataSchema",value:2165},{name:"DataSet",value:586},{name:"DataSource",value:3331},{name:"DataTable",value:772},{name:"DataUtil",value:3322}]},{name:"display",children:[{name:"DirtySprite",value:8833},{name:"LineSprite",value:1732},{name:"RectSprite",value:3623},{name:"TextSprite",value:10066}]},{name:"flex",children:[{name:"FlareVis",value:4116}]},{name:"physics",children:[{name:"DragForce",value:1082},{name:"GravityForce",value:1336},{name:"IForce",value:319},{name:"NBodyForce",value:10498},{name:"Particle",value:2822},{name:"Simulation",value:9983},{name:"Spring",value:2213},{name:"SpringForce",value:1681}]},{name:"query",children:[{name:"AggregateExpression",value:1616},{name:"And",value:1027},{name:"Arithmetic",value:3891},{name:"Average",value:891},{name:"BinaryExpression",value:2893},{name:"Comparison",value:5103},{name:"CompositeExpression",value:3677},{name:"Count",value:781},{name:"DateUtil",value:4141},{name:"Distinct",value:933},{name:"Expression",value:5130},{name:"ExpressionIterator",value:3617},{name:"Fn",value:3240},{name:"If",value:2732},{name:"IsA",value:2039},{name:"Literal",value:1214},{name:"Match",value:3748},{name:"Maximum",value:843},{name:"methods",children:[{name:"add",value:593},{name:"and",value:330},{name:"average",value:287},{name:"count",value:277},{name:"distinct",value:292},{name:"div",value:595},{name:"eq",value:594},{name:"fn",value:460},{name:"gt",value:603},{name:"gte",value:625},{name:"iff",value:748},{name:"isa",value:461},{name:"lt",value:597},{name:"lte",value:619},{name:"max",value:283},{name:"min",value:283},{name:"mod",value:591},{name:"mul",value:603},{name:"neq",value:599},{name:"not",value:386},{name:"or",value:323},{name:"orderby",value:307},{name:"range",value:772},{name:"select",value:296},{name:"stddev",value:363},{name:"sub",value:600},{name:"sum",value:280},{name:"update",value:307},{name:"variance",value:335},{name:"where",value:299},{name:"xor",value:354},{name:"_",value:264}]},{name:"Minimum",value:843},{name:"Not",value:1554},{name:"Or",value:970},{name:"Query",value:13896},{name:"Range",value:1594},{name:"StringUtil",value:4130},{name:"Sum",value:791},{name:"Variable",value:1124},{name:"Variance",value:1876},{name:"Xor",value:1101}]},{name:"scale",children:[{name:"IScaleMap",value:2105},{name:"LinearScale",value:1316},{name:"LogScale",value:3151},{name:"OrdinalScale",value:3770},{name:"QuantileScale",value:2435},{name:"QuantitativeScale",value:4839},{name:"RootScale",value:1756},{name:"Scale",value:4268},{name:"ScaleType",value:1821},{name:"TimeScale",value:5833}]},{name:"util",children:[{name:"Arrays",value:8258},{name:"Colors",value:10001},{name:"Dates",value:8217},{name:"Displays",value:12555},{name:"Filter",value:2324},{name:"Geometry",value:10993},{name:"heap",children:[{name:"FibonacciHeap",value:9354},{name:"HeapNode",value:1233}]},{name:"IEvaluable",value:335},{name:"IPredicate",value:383},{name:"IValueProxy",value:874},{name:"math",children:[{name:"DenseMatrix",value:3165},{name:"IMatrix",value:2815},{name:"SparseMatrix",value:3366}]},{name:"Maths",value:17705},{name:"Orientation",value:1486},{name:"palette",children:[{name:"ColorPalette",value:6367},{name:"Palette",value:1229},{name:"ShapePalette",value:2059},{name:"SizePalette",value:2291}]},{name:"Property",value:5559},{name:"Shapes",value:19118},{name:"Sort",value:6887},{name:"Stats",value:6557},{name:"Strings",value:22026}]},{name:"vis",children:[{name:"axis",children:[{name:"Axes",value:1302},{name:"Axis",value:24593},{name:"AxisGridLine",value:652},{name:"AxisLabel",value:636},{name:"CartesianAxes",value:6703}]},{name:"controls",children:[{name:"AnchorControl",value:2138},{name:"ClickControl",value:3824},{name:"Control",value:1353},{name:"ControlList",value:4665},{name:"DragControl",value:2649},{name:"ExpandControl",value:2832},{name:"HoverControl",value:4896},{name:"IControl",value:763},{name:"PanZoomControl",value:5222},{name:"SelectionControl",value:7862},{name:"TooltipControl",value:8435}]},{name:"data",children:[{name:"Data",value:20544},{name:"DataList",value:19788},{name:"DataSprite",value:10349},{name:"EdgeSprite",value:3301},{name:"NodeSprite",value:19382},{name:"render",children:[{name:"ArrowType",value:698},{name:"EdgeRenderer",value:5569},{name:"IRenderer",value:353},{name:"ShapeRenderer",value:2247}]},{name:"ScaleBinding",value:11275},{name:"Tree",value:7147},{name:"TreeBuilder",value:9930}]},{name:"events",children:[{name:"DataEvent",value:2313},{name:"SelectionEvent",value:1880},{name:"TooltipEvent",value:1701},{name:"VisualizationEvent",value:1117}]},{name:"legend",children:[{name:"Legend",value:20859},{name:"LegendItem",value:4614},{name:"LegendRange",value:10530}]},{name:"operator",children:[{name:"distortion",children:[{name:"BifocalDistortion",value:4461},{name:"Distortion",value:6314},{name:"FisheyeDistortion",value:3444}]},{name:"encoder",children:[{name:"ColorEncoder",value:3179},{name:"Encoder",value:4060},{name:"PropertyEncoder",value:4138},{name:"ShapeEncoder",value:1690},{name:"SizeEncoder",value:1830}]},{name:"filter",children:[{name:"FisheyeTreeFilter",value:5219},{name:"GraphDistanceFilter",value:3165},{name:"VisibilityFilter",value:3509}]},{name:"IOperator",value:1286},{name:"label",children:[{name:"Labeler",value:9956},{name:"RadialLabeler",value:3899},{name:"StackedAreaLabeler",value:3202}]},{name:"layout",children:[{name:"AxisLayout",value:6725},{name:"BundledEdgeRouter",value:3727},{name:"CircleLayout",value:9317},{name:"CirclePackingLayout",value:12003},{name:"DendrogramLayout",value:4853},{name:"ForceDirectedLayout",value:8411},{name:"IcicleTreeLayout",value:4864},{name:"IndentedTreeLayout",value:3174},{name:"Layout",value:7881},{name:"NodeLinkTreeLayout",value:12870},{name:"PieLayout",value:2728},{name:"RadialTreeLayout",value:12348},{name:"RandomLayout",value:870},{name:"StackedAreaLayout",value:9121},{name:"TreeMapLayout",value:9191}]},{name:"Operator",value:2490},{name:"OperatorList",value:5248},{name:"OperatorSequence",value:4190},{name:"OperatorSwitch",value:2581},{name:"SortOperator",value:2023}]},{name:"Visualization",value:16540}]}]}},theme:"indigo",height:320,legend:!1,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-venn",name:"\u97E6\u6069\u56FE",description:"\u5C55\u793A\u96C6\u5408\u53CA\u4EA4\u96C6\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u97E6\u6069\u56FE",datasets:{main:[{sets:["WeChat"],size:1200,label:"WeChat"},{sets:["Weibo"],size:800,label:"Weibo"},{sets:["TikTok"],size:1e3,label:"TikTok"},{sets:["WeChat","Weibo"],size:300,label:"WeChat&Weibo"},{sets:["WeChat","TikTok"],size:400,label:"WeChat&TikTok"},{sets:["Weibo","TikTok"],size:200,label:"Weibo&TikTok"},{sets:["WeChat","Weibo","TikTok"],size:150}]},theme:"indigo",height:320,legend:!1,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-gantt",name:"\u7518\u7279\u56FE",description:"\u5C55\u793A\u4EFB\u52A1\u7684\u5F00\u59CB\u4E0E\u7ED3\u675F\u533A\u95F4\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u7518\u7279\u56FE",datasets:{main:[{name:"Event Planning",startTime:1,endTime:4},{name:"Venue Logistics Planning",startTime:3,endTime:13},{name:"Select Vendors",startTime:5,endTime:8},{name:"Venue Rental",startTime:9,endTime:13},{name:"Book Catering Service",startTime:10,endTime:14},{name:"Hire Event Decoration Team",startTime:12,endTime:17},{name:"Rehearsal",startTime:14,endTime:16},{name:"Event Celebration",startTime:17,endTime:18}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-k-chart",name:"K \u7EBF\u56FE",description:"\u5C55\u793A\u5F00\u76D8\u3001\u6536\u76D8\u4E0E\u9AD8\u4F4E\u503C\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"K \u7EBF\u56FE",datasets:{main:[{time:"2015-11-19",start:8.18,max:8.33,min:7.98,end:8.32},{time:"2015-11-18",start:8.37,max:8.6,min:8.03,end:8.09},{time:"2015-11-17",start:8.7,max:8.78,min:8.32,end:8.37},{time:"2015-11-16",start:8.48,max:8.85,min:8.43,end:8.7},{time:"2015-11-13",start:8.01,max:8.75,min:7.97,end:8.41},{time:"2015-11-12",start:7.76,max:8.18,min:7.61,end:8.15},{time:"2015-11-11",start:7.55,max:7.81,min:7.49,end:7.8},{time:"2015-11-10",start:7.5,max:7.68,min:7.44,end:7.57}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-kagi",name:"Kagi \u8F6C\u5411\u56FE",description:"\u6309\u4EF7\u683C\u53CD\u8F6C\u5F62\u6210\u7AD6\u7EBF\u4E0E\u7C97\u7EC6\u53D8\u5316\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"Kagi \u8F6C\u5411\u56FE",datasets:{main:[7.57,7.8,8.15,8.41,8.7,8.37,8.09,8.32]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-spiral",name:"\u87BA\u65CB\u56FE",description:"\u628A\u8FDE\u7EED\u5E8F\u5217\u6392\u5217\u5728\u87BA\u65CB\u5750\u6807\u4E0A\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u87BA\u65CB\u56FE",datasets:{main:[{time:"2023-01",category:"\u4EA7\u54C1A",sales:82.38780839834362},{time:"2023-02",category:"\u4EA7\u54C1A",sales:89.13493264699355},{time:"2023-03",category:"\u4EA7\u54C1A",sales:86.12491666339338},{time:"2023-04",category:"\u4EA7\u54C1A",sales:89.26981459138915},{time:"2023-05",category:"\u4EA7\u54C1A",sales:80.49341175239533},{time:"2023-06",category:"\u4EA7\u54C1A",sales:88.55783556820825},{time:"2023-07",category:"\u4EA7\u54C1A",sales:83.60985156148672},{time:"2023-08",category:"\u4EA7\u54C1A",sales:80.5310634127818},{time:"2023-09",category:"\u4EA7\u54C1A",sales:80.68784036207944},{time:"2023-10",category:"\u4EA7\u54C1A",sales:89.83937001088634},{time:"2023-11",category:"\u4EA7\u54C1A",sales:89.72805031575263},{time:"2023-12",category:"\u4EA7\u54C1A",sales:85.31250786734745},{time:"2023-01",category:"\u4EA7\u54C1B",sales:89.51857624109834},{time:"2023-02",category:"\u4EA7\u54C1B",sales:90.47839395003393},{time:"2023-03",category:"\u4EA7\u54C1B",sales:91.05035996064544},{time:"2023-04",category:"\u4EA7\u54C1B",sales:92.77417307486758},{time:"2023-05",category:"\u4EA7\u54C1B",sales:92.79812368098646},{time:"2023-06",category:"\u4EA7\u54C1B",sales:89.18077372247353},{time:"2023-07",category:"\u4EA7\u54C1B",sales:89.74107998423278},{time:"2023-08",category:"\u4EA7\u54C1B",sales:93.52143480209634},{time:"2023-09",category:"\u4EA7\u54C1B",sales:88.62463913392276},{time:"2023-10",category:"\u4EA7\u54C1B",sales:89.81507250340655},{time:"2023-11",category:"\u4EA7\u54C1B",sales:85.91941252350807},{time:"2023-12",category:"\u4EA7\u54C1B",sales:92.49137200182304},{time:"2023-01",category:"\u4EA7\u54C1C",sales:98.3420142205432},{time:"2023-02",category:"\u4EA7\u54C1C",sales:93.58112940797582},{time:"2023-03",category:"\u4EA7\u54C1C",sales:91.78849068470299},{time:"2023-04",category:"\u4EA7\u54C1C",sales:99.81763497693464},{time:"2023-05",category:"\u4EA7\u54C1C",sales:91.22066186275333},{time:"2023-06",category:"\u4EA7\u54C1C",sales:94.54777921782807},{time:"2023-07",category:"\u4EA7\u54C1C",sales:94.56323498860002},{time:"2023-08",category:"\u4EA7\u54C1C",sales:91.08007916947827},{time:"2023-09",category:"\u4EA7\u54C1C",sales:91.14025554154068},{time:"2023-10",category:"\u4EA7\u54C1C",sales:96.21596273267642},{time:"2023-11",category:"\u4EA7\u54C1C",sales:97.7282879408449},{time:"2023-12",category:"\u4EA7\u54C1C",sales:90.84541457472369},{time:"2023-01",category:"\u4EA7\u54C1D",sales:101.05567167978734},{time:"2023-02",category:"\u4EA7\u54C1D",sales:104.26347774686292},{time:"2023-03",category:"\u4EA7\u54C1D",sales:97.65727672725916},{time:"2023-04",category:"\u4EA7\u54C1D",sales:100.90512078022584},{time:"2023-05",category:"\u4EA7\u54C1D",sales:98.52738515008241},{time:"2023-06",category:"\u4EA7\u54C1D",sales:98.12762065092102},{time:"2023-07",category:"\u4EA7\u54C1D",sales:100.12465403415263},{time:"2023-08",category:"\u4EA7\u54C1D",sales:102.11687762988731},{time:"2023-09",category:"\u4EA7\u54C1D",sales:98.09756790753454},{time:"2023-10",category:"\u4EA7\u54C1D",sales:96.58196865813807},{time:"2023-11",category:"\u4EA7\u54C1D",sales:103.74136699363589},{time:"2023-12",category:"\u4EA7\u54C1D",sales:101.25576151302084}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-choropleth-map",name:"\u5206\u7EA7\u8BBE\u8272\u5730\u56FE",description:"\u6309\u533A\u57DF\u6570\u503C\u8BBE\u7F6E\u989C\u8272\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5206\u7EA7\u8BBE\u8272\u5730\u56FE",description:"\u793A\u4F8B\u4E3A\u5DDE\u5185\u53BF\u5931\u4E1A\u7387\u7684\u672A\u52A0\u6743\u5E73\u5747\u503C\uFF1B\u8FB9\u754C\u5DF2\u7B80\u5316\u3002",datasets:{"us-10m":{type:"Topology",transform:{scale:[.003589294092944858,.0005371535195261037],translate:[-179.1473400003406,17.67439566600018]},objects:{states:{type:"GeometryCollection",geometries:[{type:"MultiPolygon",arcs:[[[2170]],[[2171]],[[2172]],[[2173]],[[2174]],[[2175]],[[2176]],[[2177]],[[2178]],[[2179]],[[2180]],[[2181]],[[2182]],[[2183]],[[2184]],[[2185]],[[2186]],[[2187]],[[2188]],[[2189]],[[2190]],[[2193]],[[2194]],[[2195]],[[2196]],[[2331]],[[2197]],[[2332]],[[2198]],[[2199]],[[2200]],[[2333]],[[2201]],[[2334]],[[2335]],[[2202]],[[2336]],[[2203]],[[2204]],[[2208]],[[2337]],[[2205]],[[2338]],[[2339]],[[2340]],[[2341]],[[2221]],[[2342]],[[2242]],[[2209]],[[2343]],[[2243]],[[2344,2345]],[[2244]],[[2245]],[[2222]],[[2217]],[[2223]],[[2224]],[[2191]],[[2246]],[[2247]],[[2248]],[[2249]],[[2225]],[[2192]],[[2275]],[[2276,2394,2277]],[[2226]],[[2227]],[[2228]],[[2254]],[[2229]],[[2260,2261,2262,2280,2278,2252,2395,2253,2279,2263]],[[2237]],[[2236,2258,2396,2259,2234,2235,2264]],[[2230]],[[2231]],[[2211]],[[2309]],[[2310]],[[2293]],[[2294]],[[2295]],[[2296]],[[2297]],[[2285]],[[2298]],[[2311]],[[2299]],[[2286]],[[2301]],[[2302]],[[2303]],[[2287]],[[2305]],[[2281]],[[2282]],[[2283]],[[2327]],[[2328]],[[2322]],[[2265,2319,2316,2317,2308,2306,2312,2304,2313,2300,2314,2292,2291,2315,2397,2232,2233,2218,2207,2398,2206,2219,2210,2220,2216,2213,2214,2215,2289,2212,2290,2288,2284,2330,2329,2325,2326,2324,2323,2320,2321,2307,2318,2266,2274,2269,2272,2238,2257,2250,2347,2346,2251,2255,2399,2256,2239,2400,2401,2240,2270,2241,2271,2268,2273,2267]]],id:2},{type:"MultiPolygon",arcs:[[[2162]],[[2166]],[[2165]],[[2167]],[[2402,2164]],[[2168]],[[2169]],[[2163]]],id:15},{type:"MultiPolygon",arcs:[[[2391]],[[2372,2353,2350,2356,2373,2355,2357,2362,2393,2380,2403,2360,2359,2374,2358,2384,2386,2383,2388,2389,2387,2390,2379,2385,2366,2404,2375,2370,2371,2352,2361,2377,2354,2369,2376,2351,2364,2365,2349,2363,2405,2348,2367,2368,2378]]],id:72},{type:"MultiPolygon",arcs:[[[-1500,-1499,-1502,-1501,-1508,1544,-1548,-1549,1557,-1581,-1582,1584,-1618,1628,1629,-1640,1662,1663,-1682,1684,-1700,1712,-1731,-1734,1735,-1755,1755,1756,-1768,1768,-1780,1803,1804,1808,1809,1810,1777,1778,1805,1806,1807,1799,1800,1801,2406,1802,1815,1816,1817,-1789,1772,-1765,1739,1740,-1733,1694,1695,-1681,1659,-1645,1625,-1619,1602,-1595,1583,-1543,-1544,1541,-1484,-1466,-1467,-1472,-1471]]],id:1},{type:"Polygon",arcs:[[-1305,-1304,-1291,-1358,-1357,-1356,-1365,-1364,-1363,-1265,-1332,-1331,-1330,-1355,-1354,-1317,-1379,-1378,-1377,-1376,-1409,-1424,1432,1433,1434,1435,-1454,1474,1475,1476,1554,-1557,1574,1575,-1617,-1616,1654,1655,1656,1657,1658,1672,1676,1677,1669,1670,1665,1666,1646,1647,1648,-1646,1630,-1590,-1589,-1588,1573,-1498,-1497,1472,1473,-1455,1444,-1427,1417,1406,-1372,-1368]],id:5},{type:"Polygon",arcs:[[-1074,-1272,1272,1273,1274,-1583,1642,1643,-1702,1736,1771,1734,1667,1668,1603,1604,-1443,-1442,-1350,-1055,-1176,-1195,-1194,-1076,-1075]],id:4},{type:"MultiPolygon",arcs:[[[1561]],[[1562]],[[1528]],[[1529]],[[-424,-423,-426,611,-616,-615,-614,-613,932,933,-976,-975,-974,-874,-977,1044,-1078,-963,1207,-1351,1441,1442,-1605,-1604,-1669,1671,1661,1631,1632,1633,1634,1635,1563,1564,1565,1566,1567,1568,1555,1530,1443,1320,1242,1162,1149,1161,1197,1143,1121,1093,1042,1062,1027,1061,1028,1029,1092,1030,852,666,667,610,-486,-499,-498,-484]]],id:6},{type:"Polygon",arcs:[[-539,-538,-650,-649,-675,-674,-670,-669,-693,-709,-708,751,-757,780,781,-852,903,904,-969,982,-1049,-1048,1100,1101,-1158,1167,1168,1169,1150,1151,1165,1166,1213,1214,1211,1212,1171,1170,-1073,-1072,-1071,1055,-916,840,-743,-742,709,710,-570,-537,-536,-535]],id:8},{type:"MultiPolygon",arcs:[[[-550,-549,-548,-508,-507,-506,602,603,-625,635,636,651,652,2407,653,643,644,645,646,-588,-587,-500]]],id:9},{type:"MultiPolygon",arcs:[[[992,993,-929,-973]]],id:11},{type:"MultiPolygon",arcs:[[[863,927,994,995,996,997,998,999,-966,925,926,-923,864,865,-816,-846,-867,-845]]],id:10},{type:"MultiPolygon",arcs:[[[2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118]],[[2071]],[[1980]],[[1932]],[[2408,2409,1966,1967,1968,1969,2410,2411,2412,2413,1965,2414]],[[1892]],[[1906,1903,1904,1905,1866,1867,1868,1869,1870]],[[2103,2415,2416,2417,2418,2104,2419,2420,2105,2106,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2083,-2085,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2072,2069,2043,2068,2044,2045,2046,2047,2048,2049,2035,2030,2028,2029,2016,2013,1996,1997,1998,1999,2e3,2001,2002,2421,1976,1977,1978,2146,1889,1854,1890,1934,1909,1933,1910,1885,1911,1886,1887,1841,2422,1842,1840,1839,1837,1838,-1800,-1808,-1807,-1806,-1779,-1778,-1811,-1810,-1809,-1805,-1831,-1824,-1826,-1825,-1830,-1829,-1828,-1827,-1835,-1858,-1834,-1845,-1844,-1815,-1814,-1781,-1833,-1832,-1823,1845,1846,1847,1848,1871,1872,1873,1874,1875,1876,-1878,1878,1879,1880,1881,1882,1883,1884,1914,1954,1979,1987,1986,1983,1984,1953,1900,1865,1861,1862,1863,1864,1901,1902,1893,1894,1895,1896,1897,1898,2423,2424,1899,1962,1963,1964,1985,1981,2004,2425,2005,2006,1982,2003,2034,2040,2426,2041,2042,2062,2063,2064,2427,2065,2428,2066,2067,2070,2102,2107]]],id:12},{type:"MultiPolygon",arcs:[[[1818]],[[2429,1781]],[[1773]],[[-1758,1758]],[[1745]],[[1746,-1748,1748,1749,1750]],[[1759,1774,1775,1776,1782,2430,2431,2432,1783,1784,1785,1786,1787,1819,1820,1821,1822,1831,1832,1780,1813,1814,1843,1844,1833,1857,1834,1826,1827,1828,1829,1824,1825,1823,1830,-1804,1779,-1769,1767,-1757,-1756,1754,-1736,1733,1730,-1713,1699,-1685,1681,-1664,-1663,1639,-1630,-1629,1617,-1585,1581,1580,-1558,1548,1547,-1545,-1507,-1470,-1469,-1468,-1504,-1503,-1513,-1512,-1510,-1509,-1523,-1522,-1521,-1505,-1537,-1536,-1535,-1534,-1533,-1532,-1571,-1570,-1594,1608,-1622,-1621,-1620,-1628,-1627,-1638,-1637,-1665,1679,-1684,1687,-1689,-1712,-1711,-1710,1751,1752,1753,1744,1760]]],id:13},{type:"Polygon",arcs:[[-417,439,-449,-467,-466,-465,510,-529,544,-577,600,601,-622,-621,-620,671,-682,703,-705,745,746,728,729,730,731,738,739,736,737,734,735,732,733,726,727,724,725,722,723,-706,696,-696,-695,662,663,-641,617,-600,575,-569,520,521,-478,-477,462,-441,438,-410,-391,-394,-393,-407,-406,-405,-412,-411,-409,-408,-396,-395,-399,-398,-397,-404,-403,-402,-401]],id:19},{type:"Polygon",arcs:[[32,-38,63,-151,158,-167,-164,-163,188,-191,-255,-254,-253,-257,-233,336,-343,-342,421,-454,-453,515,539,529,530,508,509,487,419,420,-355,353,-353,-352,333,-301,294,-250,189,192,193,194,-173,-172,168,-161,-160,64,-52,33,34]],id:16},{type:"Polygon",arcs:[[-497,-496,-491,-490,-493,-492,-495,-494,-513,-512,531,-533,577,578,634,-638,686,-694,706,-754,773,774,-833,858,-901,916,-949,-948,-947,961,-1025,-1024,1059,-1064,1106,-1113,-1112,1140,-1146,1179,1180,1181,1182,-1211,1233,1237,1238,1234,1235,1236,-1179,-1178,-1177,-1145,1139,1113,1114,1064,1065,-1027,-1026,-1037,989,990,991,943,920,921,-902,861,862,-856,820,-815,758,759,-746,704,-704,681,-672,619,620,621,-602,-601,576,-545,528,-511,-464]],id:17},{type:"Polygon",arcs:[[-597,-596,-592,-591,-595,628,-639,659,-671,689,690,-712,714,-756,769,-784,-783,850,-857,878,-903,-938,938,939,-965,-964,1019,1020,1021,1022,-1044,1056,1057,1088,1083,1084,1085,1082,1103,1104,1105,1115,1116,1107,1108,1117,1118,1109,1110,1111,1112,-1107,1063,-1060,1023,1024,-962,946,947,948,-917,900,-859,832,-775,-774,753,-707,693,-687,637,-635,-579,-578,-627,-626,-628,-575,-574,-599,-598]],id:18},{type:"Polygon",arcs:[[-791,-799,-798,-797,-794,-793,-800,-788,-787,-786,-785,-790,-789,-795,-796,-773,-772,-809,-808,-813,-812,-811,-814,-838,853,-868,895,-913,-912,-919,-959,-958,978,-1036,1041,-1077,1091,-1124,-1123,1163,1164,-1230,1230,1231,1232,1226,1227,1220,1221,1240,1241,1198,1199,1200,1201,1222,1223,1205,1206,1224,1225,1203,1204,1202,1218,1219,1217,1215,1216,-1168,1157,-1102,-1101,1047,1048,-983,968,-905,-904,851,-782,-792]],id:20},{type:"MultiPolygon",arcs:[[[-936,-935,-943,-942,-941,-951,-950,981,-981,-980,-989,-988,-987,-986,-1035,-1034,1069,1068,-1088,-1087,-1137,-1136,1153,1154,1155,1156,1243,-1248,1268,1296,1297,1291,1292,1294,1295,1288,1289,1327,1328,1300,1351,1352,1301,1302,1335,1336,1255,1256,1257,1248,1249,1269,1369,1370,1298,1299,1365,1366,1372,1373,-1340,-1261,-1260,-1259,1245,-1235,-1239,-1238,-1234,1210,-1183,-1182,-1181,-1180,1145,-1141,-1111,-1110,-1119,-1118,-1109,-1108,-1117,-1116,-1106,-1105,-1104,-1083,-1086,-1085,-1084,-1089,-1058,-1057,1043,-1023,-1022,-1021,-1020,963,964,-940,-939,-937]]],id:21},{type:"MultiPolygon",arcs:[[[1955]],[[1944]],[[1929]],[[1918,1919,1920,1921,1922,1923,2433,1924,1950,1945,1946,1947,1948,1949,1908,1943,1936,1937,1938,2434,1939,1940,2435,1941,2436,2437,1942,1961,1956,1957,1958,1959,1960,1935,1930,1928,1931,-1916,-1908,1888,-1813,-1812,1792,1765,1766,-1764,1738,-1738,1689,1690,1691,-1679,-1648,-1647,-1667,-1666,-1671,-1670,-1678,-1677,-1673,-1659,-1658,-1657,-1693,1693,-1730,-1729,-1728,-1727,1741,1742,1743,1769,1770,-1792,-1791,-1796,-1795,-1794,-1798,-1797,-1799,-1790,-1837,-1836,1851,1852,1912,1925,1926,1913,1927]]],id:22},{type:"MultiPolygon",arcs:[[[672]],[[661]],[[588,564,579,580,581,582,583,546,504,505,506,507,547,548,549,499,500,501,-485,-456,-455,-462,-473,-472,-471,-470,-469,-468,-460,488,2438,502,2439,503,533,545,565,2440,563,589]]],id:25},{type:"MultiPolygon",arcs:[[[944]],[[1078,1079,1080,1095,1096,1094,1060,1046,1045,966,967,1003,1004,945,923,889,890,891,892,924,955,2441,956,953,954,1037,1038,969,970,1049,1067,1066,1050,971,972,928,929,930,893,879,880,881,882,883,884,885,886,887,888,-834,-807,-806,-801,-832,-831,-805,-804,-843,-842,-820,-819,-818,-803,-802,-817,-866,-865,922,-927,-926,965,-1e3,-999,-998,1081]]],id:24},{type:"MultiPolygon",arcs:[[[296]],[[297]],[[377,378,362,338,380,373,376,375,374,412,413,-369,-368,285,286,287,288,264,202,167,263,298,210,335,359,360,361,379]]],id:23},{type:"MultiPolygon",arcs:[[[-150]],[[-149]],[[-99,-98,-97,-96,-95,-94,-93,-92,-91,-90,-89,-88,-87,-86,-630,584,585,592,593,594,590,591,595,596,597,598,573,574,-113,-112,-111,-110,-109,-108,-107,-106,-105,-104,-103,-102,-101,-100]],[[-148]],[[-146,-147]],[[-145,-144]],[[-143]],[[-130,-129,-128,-127,-126,-125,-124,-123,-122,-121,-120,-119,-118,-117,-116,-115,-114,250,251,227,228,229,205,206,207,178,179,180,181,-133,-132,-131]],[[-142,-141,-140,-139,-138,-137,-136]],[[-135]]],id:26},{type:"MultiPolygon",arcs:[[[65,81,152,2149,2148,151,67,68,69,70,71,72,73,74,75,76,77,78,79,80,176,177,208,209,-237,261,-263,292,293,331,-333,339,-341,-348,-347,-346,-349,371,-383,-382,399,400,401,402,403,396,397,398,394,395,407,408,410,411,404,405,406,392,393,390,391,-371,369,343,-331,-330,295,-290,267,-256,248,-197,195,174,-174,165,-162,154,-154,82,83,-45,46,60,2147]]],id:27},{type:"Polygon",arcs:[[-747,-760,-759,814,-821,855,-863,-862,901,-922,-921,-944,-992,-991,-990,1036,1025,1026,-1066,-1065,-1115,-1114,-1140,1144,1176,1177,1178,-1237,-1236,-1246,1258,1259,1260,1339,1340,1341,1342,-1405,1407,1408,1375,1376,1377,1378,1316,1353,1354,1329,1330,1331,1264,1362,1363,1364,1355,1356,1357,1290,1303,1304,1367,1368,-1271,1265,-1231,1229,-1165,-1164,1122,1123,-1092,1076,-1042,1035,-979,957,958,918,911,912,-896,867,-854,837,813,-810,-771,768,-751,-723,-726,-725,-728,-727,-734,-733,-736,-735,-738,-737,-740,-739,-732,-731,-730,-729]],id:29},{type:"MultiPolygon",arcs:[[[-1485,-1542,1543,1542,-1584,1594,-1603,1618,-1626,1644,-1660,1680,-1696,-1695,1732,-1741,-1740,1764,-1773,1788,-1818,-1817,1849,1850,1853,1858,1859,-1852,1835,1836,1789,1798,1796,1797,1793,1794,1795,1790,1791,-1771,-1770,-1744,-1743,-1742,1726,1727,1728,1729,-1694,1692,-1656,-1655,1615,1616,-1576,-1575,1556,-1555,-1477,-1476,-1491,-1490,-1495,-1494,-1480,-1479,-1478,-1496,-1486]]],id:28},{type:"Polygon",arcs:[[40,58,54,41,42,35,30,43,62,-56,61,-67,155,-157,169,-171,185,186,187,237,238,239,257,258,259,246,247,265,266,233,230,231,232,256,252,253,254,190,-189,162,163,166,-159,150,-64,37,-33,38,31]],id:30},{type:"MultiPolygon",arcs:[[[1418,2442,1419]],[[1420]],[[-1306,1388,1422,1389,1390]],[[-1308,1391,-1393,1393]],[[1386,1394,1395,1396,1397,1401,1402,-1396,1403,1410,1411,1385,1398,1416,1437,1436,1449,1421,1450,1448,1440,1447,1505,1488,1513,1487,1527,1523,1524,1525,1526,1545,1546,1571,1572,1595,2443,1596,1597,1598,1599,1600,1601,1592,1549,1550,1551,1537,1519,1514,1515,1516,1461,1462,1486,1458,1459,1456,1457,1491,1492,1464,1480,1481,1482,1460,1504,1520,1521,1522,1508,1509,1510,-1453,-1452,-1440,-1439,-1431,-1430,-1426,-1425,-1410,-1416,-1415,-1414,-1413,-1401,-1400,-1383,-1382,-1381,-1361,-1360,-1359,-1313,-1339,-1338,-1349,-1348,-1254,-1253,-1375,-1252,-1264,-1263,-1262,-1327,-1326,-1325,-1268,-1267,-1322,-1288,-1287,-1286,-1319,-1318,-1347,-1346,-1310,1387]]],id:37},{type:"Polygon",arcs:[[44,-84,-83,153,-155,161,-166,173,-175,-196,196,197,220,221,224,225,222,223,191,204,218,219,226,-187,-186,170,-170,156,-156,66,-62,55,56,57,59,39,36,47,48,45]],id:38},{type:"Polygon",arcs:[[-451,-416,-446,-445,-444,-443,-442,-476,-475,-474,-482,-481,-480,-479,-522,-521,568,-576,599,-618,640,-664,-663,694,695,-697,705,-724,750,-769,770,809,810,811,812,807,808,771,772,795,794,788,789,784,785,786,787,799,792,793,796,797,798,790,791,-781,756,-752,707,708,692,668,669,673,674,-648,639,-515,-514,482,-438,-448,-447,-419,-418,-450]],id:31},{type:"MultiPolygon",arcs:[[[-287,-286,367,368,-414,435,457,458,459,467,468,469,470,471,472,-461,434,-386,356,357,-335,-320,290,291,-288]]],id:33},{type:"MultiPolygon",arcs:[[[905,2444,906,868,-870,870,-872,872,857,854,824,825,-765,-764,-763,749,700,701,-692,680,-658,-656,-655,-684,-683,697,744,721,754,765,779,778,827,828,829,822,823,874,875,876,877,931,907]]],id:34},{type:"Polygon",arcs:[[1275,1276,1277,-1429,1445,1446,-1518,1552,1553,1578,1579,-1639,1649,1650,1651,1652,1653,1696,1697,1698,1673,1674,1675,1685,1686,1731,1700,1701,-1644,-1643,1582,-1275,-1274,-1273,1271,-1171,-1172,-1213,-1212,-1215,-1214,-1167,-1166,-1152,-1151,-1170]],id:35},{type:"Polygon",arcs:[[-510,-609,609,-703,838,839,-910,1051,1052,1053,1054,1349,1350,-1208,962,1077,-1045,976,873,973,974,975,-934,-933,612,613,614,615,-612,-425,-385,-384,-356,-421,-420,-488]],id:32},{type:"MultiPolygon",arcs:[[[757]],[[687]],[[717,718,2445,719,747,752,748,720,688]],[[-318]],[[675,715,740,716,676,660,684,685,682,683,654,655,656,605,606,526,540,541,542,543,566,567,516,517,524,525,522,523,518,519,-316,-315,-314,-313,-312,-311,-310,-309,-308,-307,-306,-305,-304,-317,358,326,327,324,-322,323,-338,349,-364,-389,414,-457,484,-502,-501,586,587,-647,-646,677,678,679]]],id:36},{type:"MultiPolygon",arcs:[[[616,-619,664,-666,698,-700,712,713,-762,766,767,-822,826,-847,859,860,896,897,898,908,-920,960,959,983,984,1031,1032,1033,1034,985,986,987,988,979,980,981,949,950,940,941,942,934,935,936,937,902,-879,856,-851,782,783,-770,755,-715,711,-691,-690,670,-660,638,-629,-594,-593,-586,-585,629,-631,631,-633,633,-562,-561,-560,-559,-558,-557,-556,-555,-554,-553,-552,-551,-563,-573]]],id:39},{type:"Polygon",arcs:[[-1205,-1204,-1226,-1225,-1207,-1206,-1224,-1223,-1202,-1201,-1200,-1199,-1242,-1241,-1222,-1221,-1228,-1227,-1233,-1232,-1266,1270,-1369,1371,-1407,-1418,1426,-1445,1454,-1474,-1473,1496,1497,-1574,1587,1588,1589,1590,1591,1613,1614,1610,1611,1612,1609,1622,1623,1624,1606,1607,1585,1586,1576,1577,1558,1559,1560,1538,1539,1540,-1519,1463,-1456,1431,-1428,1383,1384,1283,1284,1280,1281,1282,1278,1279,-1276,-1169,-1217,-1216,-1218,-1220,-1219,-1203]],id:40},{type:"MultiPolygon",arcs:[[[216,235,-214,234,-241,-213,-212,-246,-245,-244,-243,-242,-184,-183,-201,-200,-199,-185,-204,-193,-190,249,-295,300,-334,351,352,353,354,355,383,384,424,425,422,423,483,497,498,485,486,426,-428,428,429,430,431,432,433,386,387,364,365,366,301,302,260,217]]],id:41},{type:"MultiPolygon",arcs:[[[-519,-524,-523,-526,-525,-518,-517,-568,-567,-544,-543,-542,-541,-527,-607,-606,-657,657,-681,691,-702,-701,-750,762,763,764,-826,836,843,844,866,845,815,816,801,802,817,818,819,841,842,803,804,830,831,800,805,806,833,834,835,848,849,-848,775,776,777,-761,743,-713,699,-699,665,-665,618,-617,572,-528,-520]]],id:42},{type:"MultiPolygon",arcs:[[[641]],[[642,-581]],[[-584,-583,622,604,623,650,-636,624,-604,-603,-505,-547]]],id:44},{type:"MultiPolygon",arcs:[[[1713]],[[1722]],[[1723]],[[2158,2159,1660,2155,2156,2446,2157,1682,1724,1725,1702,2447,1703,2448,1704,1721,1714,1715,1716,1717,1718,1719,1720,1705,1706,1707,1708,1709,1710,1711,1688,-1688,1683,-1680,1664,1636,1637,1626,1627,1619,1620,1621,-1609,1593,1569,1570,1531,1532,1533,1534,1535,1536,-1461,-1483,-1482,-1481,-1465,-1493,-1492,-1458,-1457,-1460,-1459,-1487,-1463,-1462,-1517,-1516,-1515,-1520,-1538,-1552,-1551,-1550,-1593,-1602,1605,1640,1641,2160,2161]]],id:45},{type:"Polygon",arcs:[[-205,-192,-224,-223,-226,-225,-222,-221,-198,-249,255,-268,289,-296,329,330,-344,-370,370,-392,409,-439,440,-463,476,477,478,479,480,481,473,474,475,441,442,443,444,445,415,450,449,417,418,446,447,-437,389,-373,350,344,-329,299,-239,-238,-188,-227,-220,-219]],id:46},{type:"Polygon",arcs:[[-1250,-1249,-1258,-1257,-1256,-1337,-1336,-1303,-1302,-1353,-1352,-1301,-1329,-1328,-1290,-1289,-1296,-1295,-1293,-1292,-1298,-1324,-1323,-1335,-1334,-1333,-1314,-1380,-1316,-1315,-1362,1380,1381,1382,1399,1400,1412,1413,1414,1415,1409,1424,1425,1429,1430,1438,1439,1451,1452,-1511,1511,1512,1502,1503,1467,1468,1469,1506,1507,1500,1501,1498,1499,1470,1471,1466,1465,1483,1484,1485,1495,1477,1478,1479,1493,1494,1489,1490,-1475,1453,-1436,-1435,-1434,-1433,1423,-1408,1404,-1343,-1406,-1341,-1374,-1373,-1367,-1366,-1300,-1299,-1371,-1370,-1270]],id:47},{type:"MultiPolygon",arcs:[[[2449,2078,2075,2076,2077,2450,2451]],[[2051,2052,2053,2054]],[[2055,2056,2036,2452,2037,2057]],[[2031]],[[2017]],[[2007,2453,2008]],[[1971]],[[1972,1975,1993,1992,2454,1988,2012,2010,2011,1989,1990,2455,1991,1994,2009,2014,2022,2456,2457,2458,2023,2021,2015,2018,2025,2020,2019,2026,2459,2027,2033,2032,2038,2039,2060,2061,2058,2059,2082,2079,2080,2081,2101,2100,2074,2073,2050,2024,1995,1970,1891,1856,1855,1860,1761,1762,-1686,-1676,-1675,-1674,-1699,-1698,-1697,-1654,-1653,-1652,-1651,-1650,1638,-1580,-1579,-1554,-1553,1517,-1447,-1446,1428,-1278,-1277,-1280,-1279,-1283,-1282,-1281,-1285,-1284,-1385,-1384,1427,-1432,1455,-1464,1518,-1541,1539,-1539,-1561,-1560,-1559,-1578,-1577,-1587,-1586,-1608,-1607,-1625,-1624,-1623,-1610,-1613,-1612,-1611,-1615,-1614,-1592,-1591,-1631,1645,-1649,1678,-1692,-1691,-1690,1737,-1739,1763,-1767,-1766,-1793,1811,1812,-1889,1907,1915,1916,1951,1974,1952,1917,1973]]],id:48},{type:"Polygon",arcs:[[-452,607,-659,-572,-571,-711,-710,741,742,-841,915,-1056,1070,1071,1072,1073,1074,1075,1193,1194,1175,-1054,-1053,-1052,909,-840,-839,702,-610,608,-509,-531,-530,-540,-516]],id:49},{type:"MultiPolygon",arcs:[[[1124,1125,1126,1189,1190,1127,1128,1129,-1080,1130]],[[1147,1120,1097,1089,1119,1152,1183,1195,1184,1137,1141,1142,1172,1173,1174,1209,2460,1228,2461,2462,1254,1246,1208,1196,1160,1188,2463,1239,1244,1250,1319,2464,1343,2465,2466,1344,1310,1293,1311,1305,1306,1307,1308,1309,1345,1346,1317,1318,1285,1286,1287,1321,1266,1267,1324,1325,1326,1261,1262,1263,1251,1374,1252,1253,1347,1348,1337,1338,1312,1358,1359,1360,1361,1314,1315,1379,1313,1332,1333,1334,1322,1323,-1297,-1269,1247,-1244,-1157,-1156,-1155,-1154,-1135,-1193,-1192,-1188,-1187,-1186,-1147,-1160,-1159,1138,-1103,1099,-1041,-1040,-1003,-1002,-1001,-953,-952,917,-911,-895,-900,-915,-914,-880,-894,-931,-930,-994,1018,-1007,1007,1008,1009,1010,-1012,1012,1013,1014,1015,1016,1017,2467,2468,977,1005,1058,1090,1098,1133,1131,1132,1148]]],id:51},{type:"Polygon",arcs:[[325,320,-291,319,334,-358,-357,385,-435,460,461,454,455,456,-415,388,363,-350,337,-324,321,322,318]],id:50},{type:"MultiPolygon",arcs:[[[-29]],[[-28]],[[-27]],[[-26]],[[-23]],[[-24]],[[-25]],[[-22,-21,29,49,53,50,52,-34,51,-65,159,160,-169,171,172,-195,-194,203,184,198,199,200,182,183,241,242,243,244,245,211,212,240,-235,213,214,215,175,164,157,84,-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,2,-2,-1]]],id:53},{type:"MultiPolygon",arcs:[[[-285]],[[-2155]],[[-2154,201,-134,-182,-181,-180,-179,-208,-207,-206,-230,228,-228,-252,-284,-283,-282,-281,-280,-279,-278,-277,-276,-275,-274,-273,-272,-271,-270,-269,511,512,493,494,491,492,489,490,495,496,463,464,465,466,448,-440,416,-400,381,382,-372,348,345,346,347,340,-340,332,-332,-294,-293,262,-262,236,-210,-209,-178,-177,-81,2150,2151,2152]]],id:55},{type:"Polygon",arcs:[[760,-778,-777,-776,847,-850,-849,-836,-835,-889,-888,-887,-886,-885,-884,-883,-882,-881,913,914,899,894,910,-918,951,952,1e3,1001,1002,1039,1040,-1100,1102,-1139,1158,1159,1146,1185,1186,1187,1191,1192,1134,1135,1136,1086,1087,1068,-1070,-1033,-1032,-985,-984,-960,-961,919,-909,-899,-898,-897,-861,-860,846,-827,821,-768,-767,761,-714,-744]],id:54},{type:"Polygon",arcs:[[-266,-248,-247,-260,-259,-258,-240,-300,328,-345,-351,372,-390,436,437,-483,513,514,-640,647,648,649,537,538,534,535,536,569,570,571,658,-608,451,452,453,-422,341,342,-337,-232,-231,-234,-267]],id:56},{type:"MultiPolygon",arcs:[[[2392]],[[2382]],[[2381]]],id:78}]}},arcs:[[[15739,57220],[76,-211]],[[15815,57009],[-6,-86]],[[15809,56923],[0,0]],[[15809,56923],[2,-40]],[[15811,56883],[0,-840]],[[15811,56043],[14,-387]],[[15825,55656],[-2,1]],[[15823,55657],[-19,-466]],[[15804,55191],[-77,-416]],[[15727,54775],[-105,3]],[[15622,54778],[67,428]],[[15689,55206],[0,16]],[[15689,55222],[9,41]],[[15698,55263],[46,83]],[[15744,55346],[3,0]],[[15747,55346],[21,-2]],[[15768,55344],[7,949],[-138,-730]],[[15637,55563],[9,159]],[[15646,55722],[52,899],[-35,-44]],[[15663,56577],[-309,205],[-193,385]],[[15711,58322],[59,-420],[15,-244]],[[15785,57658],[-46,-438]],[[15675,57235],[0,0]],[[15644,57453],[0,0]],[[15674,57553],[0,0]],[[15815,56278],[-62,564],[-45,21],[107,-585]],[[15777,55663],[0,0]],[[15782,55209],[0,0]],[[15677,54897],[0,0]],[[15711,58322],[530,-4]],[[20051,58318],[297,-2]],[[17947,58319],[184,-3]],[[17580,58319],[0,-929]],[[17304,58032],[0,284]],[[17304,58316],[276,3]],[[19756,58316],[295,2]],[[21999,58316],[184,0]],[[17579,56857],[1,533]],[[17580,58319],[367,0]],[[21634,58316],[365,0]],[[18131,58316],[523,-1]],[[19058,58315],[349,3]],[[19407,58318],[349,-2]],[[20348,58316],[294,0]],[[22823,58319],[19,-852]],[[22622,58319],[201,0]],[[22823,58319],[229,-1]],[[22183,58316],[147,2]],[[22330,58318],[292,1]],[[16241,58318],[562,0]],[[16981,58318],[213,1]],[[17304,58032],[-1,-1491]],[[17194,58319],[110,-3]],[[16803,58318],[178,0]],[[18911,58313],[147,2]],[[20923,57637],[0,681]],[[20923,58318],[308,-2]],[[21231,58316],[257,0]],[[18654,58315],[257,-2]],[[21488,58316],[146,0]],[[23052,58318],[302,-2]],[[20923,57637],[0,-456]],[[20642,58316],[281,2]],[[17579,56857],[0,-441]],[[17303,56413],[0,128]],[[23603,57761],[177,-344],[197,208]],[[20924,56449],[-1,732]],[[24337,54483],[-77,-352]],[[24260,54131],[15,-81]],[[24275,54050],[0,-1]],[[24275,54049],[-15,82]],[[24260,54131],[-8,0]],[[24252,54131],[-1,0]],[[24251,54131],[-18,-59]],[[24233,54072],[-1,0]],[[24232,54072],[-8,-20]],[[24224,54052],[0,-4]],[[24224,54048],[-1,-71]],[[24223,53977],[0,-16]],[[24223,53961],[0,1]],[[24223,53962],[-25,6]],[[23977,57625],[161,-336],[126,-164],[72,-292]],[[22846,56780],[1,35]],[[22847,56815],[-5,652]],[[15194,56234],[-33,933]],[[26653,44788],[79,561]],[[26732,45349],[91,777]],[[26823,46126],[46,438]],[[26869,46564],[57,898]],[[26926,47462],[-29,971]],[[26897,48433],[-130,578],[-110,-508]],[[26657,48503],[-65,-257]],[[26592,48246],[-58,597]],[[26534,48843],[96,470]],[[26630,49313],[68,649]],[[26698,49962],[0,646]],[[26698,50608],[-19,649]],[[26679,51257],[-202,558],[-25,222]],[[26452,52037],[-147,301]],[[26305,52338],[-54,-681],[-48,-105]],[[26203,51552],[-81,-294]],[[26122,51258],[-15,-648]],[[26107,50610],[-42,-169],[-14,12]],[[26051,50453],[-46,322],[-74,-316]],[[25931,50459],[-45,-485]],[[25886,49974],[-43,-632]],[[25843,49342],[-12,-669]],[[25831,48673],[-8,-647]],[[25823,48026],[53,-658]],[[25876,47368],[17,-653]],[[25893,46715],[-18,-648]],[[25875,46067],[-25,-328]],[[25850,45739],[-128,-899]],[[25508,51049],[91,846]],[[25599,51895],[83,221],[69,-1],[72,166]],[[25823,52281],[149,314],[17,79]],[[25989,52674],[236,82],[219,-51]],[[26444,52705],[5,0]],[[26449,52705],[28,-6]],[[26477,52699],[-31,339],[-19,564]],[[26427,53602],[-2,11]],[[26425,53613],[-2,9]],[[26423,53622],[-136,-59],[-123,575]],[[26164,54138],[-175,-122]],[[25989,54016],[-258,-395],[-91,33]],[[25640,53654],[-217,770],[-41,6]],[[25382,54430],[-114,50]],[[25268,54480],[5,96]],[[25273,54576],[-51,389]],[[25222,54965],[-2,47]],[[25220,55012],[-86,-359]],[[25134,54653],[-239,-397],[-27,-98]],[[24868,54158],[-147,-373]],[[24721,53785],[0,1]],[[25213,56702],[-143,-575],[206,676],[-63,-101]],[[25436,55477],[-184,-350]],[[25252,55127],[-1,0]],[[25251,55127],[-31,-115]],[[25220,55012],[2,-47]],[[25222,54965],[51,-389]],[[25273,54576],[58,390]],[[25331,54966],[105,511]],[[25764,53572],[0,0]],[[26475,53363],[-40,289]],[[26435,53652],[40,-289]],[[26551,52665],[78,-77]],[[26629,52588],[-29,210],[-49,-133]],[[26392,52213],[0,0]],[[26073,51936],[-17,22],[17,-22]],[[25950,50972],[0,0]],[[17697,55487],[-57,512],[-61,417]],[[24552,55460],[-215,-977]],[[24336,56833],[153,-220],[60,196]],[[22846,56780],[70,-930]],[[22927,55525],[-11,325]],[[20924,56449],[0,-1115]],[[20924,55209],[0,125]],[[15266,55588],[-72,646]],[[17697,55487],[86,-415],[100,-602]],[[17303,56413],[0,-1137]],[[17303,55276],[0,-200]],[[22927,55525],[6,-488]],[[18058,53962],[-73,-49]],[[17985,53913],[-23,192]],[[15337,54211],[-14,442],[-57,935]],[[22931,54875],[2,162]],[[17962,54105],[-79,365]],[[30403,53801],[271,1268],[194,191],[159,-2633],[-8,-489]],[[17303,54831],[0,245]],[[20924,55209],[0,-1283]],[[20924,53739],[0,187]],[[17303,54831],[0,-1090]],[[17303,53741],[0,-214]],[[22931,54875],[12,-968]],[[22947,53906],[-4,1]],[[15440,53274],[-83,542],[19,54],[-39,341]],[[24198,53968],[0,0]],[[24198,53968],[0,-459]],[[25118,52914],[-261,377]],[[24857,53291],[0,-23]],[[24857,53268],[0,23]],[[24857,53291],[-136,494]],[[16761,52732],[-124,-152]],[[16637,52580],[-121,-153]],[[17181,52729],[-34,2]],[[20924,53739],[0,-486]],[[20924,53253],[0,-622]],[[20924,52631],[0,-118]],[[18058,53962],[-46,-1769],[-19,-284]],[[17402,51370],[-31,1094]],[[18168,52166],[-175,-257]],[[22084,52624],[-177,4]],[[17371,52464],[-33,259]],[[17338,52723],[-35,803]],[[17303,53526],[0,1]],[[23005,52773],[-58,1133]],[[23005,52773],[3,-161]],[[23008,52612],[-185,0]],[[17147,52731],[-105,3]],[[17042,52734],[-5,0]],[[17037,52734],[-276,-2]],[[24684,53819],[37,-33]],[[30255,52113],[66,658],[72,735],[10,295]],[[17338,52723],[-157,6]],[[21907,52628],[-413,2]],[[25362,52586],[-158,173]],[[25204,52759],[-70,110]],[[25134,52869],[-16,45]],[[24198,53509],[0,-483]],[[24198,53026],[-153,-797]],[[30740,50284],[-1,-3]],[[16055,52220],[-113,-140]],[[15942,52080],[-90,-189]],[[15703,52455],[-119,599]],[[15584,53054],[0,6]],[[15584,53060],[-144,214]],[[15457,53056],[84,-60]],[[15374,52329],[56,784],[27,-57]],[[21494,52630],[-263,0]],[[21231,52630],[-15,1]],[[22823,52612],[-209,1]],[[22614,52613],[-8,0]],[[22328,52621],[-200,1]],[[22128,52622],[-44,2]],[[22606,52613],[-200,6]],[[22406,52619],[-78,2]],[[21216,52631],[-292,0]],[[25437,52216],[-59,108]],[[25378,52324],[0,0]],[[25378,52324],[-16,262]],[[18974,50874],[-4,-624]],[[18970,50250],[3,-359]],[[18973,49891],[-92,518]],[[19321,50875],[-347,-1]],[[15703,52455],[5,-229]],[[15541,52996],[43,58]],[[24033,52070],[12,159]],[[20924,52513],[1,-1246]],[[20925,51267],[-5,-401]],[[20920,50866],[-273,6]],[[15852,51891],[-144,335]],[[16516,52427],[-37,-43]],[[16479,52384],[-183,-140]],[[16296,52244],[-72,-179]],[[16224,52065],[-148,104]],[[16076,52169],[-21,51]],[[20306,50859],[-459,15]],[[19847,50874],[-94,-4]],[[22933,51962],[75,650]],[[17402,51370],[-27,-352]],[[25508,51049],[-7,11]],[[25501,51060],[-49,749],[-15,407]],[[18855,50330],[-41,-296]],[[18814,50034],[-178,38],[-146,-160],[-10,-203]],[[18480,49709],[-120,831],[-124,821],[-68,805]],[[22933,51962],[101,-484]],[[18881,50409],[-26,-79]],[[20647,50872],[-14,0]],[[20633,50872],[-261,-13]],[[20372,50859],[-66,0]],[[15364,50954],[10,1375]],[[24033,52070],[39,-648]],[[24069,51261],[3,161]],[[31019,52138],[91,-726],[120,-670],[-31,-498],[-109,-43],[-77,-103],[-44,-154]],[[30177,51386],[78,727]],[[19753,50870],[-104,2]],[[19649,50872],[-328,3]],[[23039,51371],[-5,107]],[[25449,46203],[-1,327]],[[25448,46530],[-6,323]],[[25442,46853],[-18,652]],[[25424,47505],[28,654]],[[25452,48159],[17,650]],[[25469,48809],[52,810]],[[25521,49619],[47,647]],[[25568,50266],[83,717],[-149,-417],[-34,-297]],[[25468,50269],[-8,-60]],[[25460,50209],[-64,54]],[[25396,50263],[0,8]],[[25396,50271],[1,0]],[[25397,50271],[-1,-8]],[[25396,50263],[1,8]],[[25397,50271],[63,537]],[[25460,50808],[41,252]],[[25708,51489],[0,0]],[[30134,48619],[0,5]],[[30134,48624],[-6,915]],[[30128,49539],[-21,1901]],[[30107,51440],[70,-54]],[[23039,51371],[0,-542]],[[29918,49765],[75,942],[-2,189]],[[29991,50896],[116,544]],[[24069,51261],[-4,-647]],[[24065,50614],[-9,-214]],[[17343,50573],[32,445]],[[23040,50510],[-1,319]],[[30776,49283],[0,0]],[[30872,49423],[46,197],[-46,-197]],[[30969,49944],[-58,33],[-102,-223],[-72,16],[3,514]],[[20921,50072],[-1,794]],[[17343,50573],[-90,-1002]],[[15331,49524],[33,1430]],[[15364,50954],[0,0]],[[28659,49030],[-5,-322],[28,-294]],[[28682,48414],[2,-1]],[[28684,48413],[3,-1]],[[28687,48412],[-121,-487]],[[28566,47925],[-30,-143]],[[28536,47782],[0,-9]],[[28536,47773],[-182,-111]],[[28354,47662],[-172,165]],[[28182,47827],[-131,11]],[[28051,47838],[-117,-646]],[[27934,47192],[-70,-846]],[[27864,46346],[0,-2]],[[27864,46344],[-175,-557]],[[28626,49219],[33,-189]],[[27913,47070],[0,0]],[[29520,50896],[178,-10]],[[29918,49765],[-21,-108]],[[29881,50886],[110,10]],[[29473,50059],[5,832]],[[29478,50891],[42,5]],[[29473,50059],[6,-31]],[[29287,50863],[191,28]],[[29698,50886],[183,0]],[[28776,49760],[316,1101]],[[29092,50861],[195,2]],[[20921,50072],[0,-727]],[[23040,50510],[0,-325]],[[23040,50185],[-1,-164]],[[24056,50400],[20,-61]],[[24192,50016],[-116,323]],[[17343,49292],[-90,279]],[[29897,49657],[-56,-357]],[[30739,50281],[-59,-807]],[[18973,49891],[0,-912]],[[29486,49501],[-7,527]],[[30477,49268],[-1,0]],[[24192,50016],[19,-161]],[[24256,49769],[-45,86]],[[18974,47736],[0,344]],[[18974,48080],[-1,899]],[[23039,49376],[0,645]],[[20921,49271],[0,74]],[[24403,49057],[-84,312]],[[24319,49369],[-62,399]],[[24257,49768],[-1,1]],[[24440,48980],[-37,77]],[[29486,49501],[-18,-849]],[[20921,48737],[0,534]],[[17343,49292],[-24,-506]],[[17319,48786],[-12,-371]],[[17307,48415],[0,0]],[[17307,48415],[0,-3129]],[[17307,45286],[-326,-6]],[[29760,48265],[35,318]],[[29795,48583],[46,717]],[[28626,49219],[150,541]],[[30680,49474],[-91,-436]],[[30589,49038],[-83,-425],[-6,346]],[[30500,48959],[-14,-60]],[[30463,49054],[14,214]],[[29472,48550],[-4,102]],[[15319,48755],[29,203]],[[15348,48958],[0,7]],[[15348,48965],[-17,559]],[[30134,48619],[0,0]],[[30134,48619],[7,-464]],[[23039,48729],[0,647]],[[23039,48729],[0,0]],[[24440,48980],[39,-255]],[[20921,48737],[0,-652]],[[30431,48860],[16,54]],[[30443,48813],[-88,-234],[-44,-434]],[[30446,48583],[-3,230]],[[30447,48914],[-1,-331]],[[30474,48571],[-3,0]],[[30471,48571],[-8,483]],[[30486,48899],[-12,-328]],[[30476,49268],[-45,-408]],[[24487,48499],[0,4]],[[24487,48503],[-8,222]],[[16981,45280],[-314,-6]],[[16667,45274],[-10,0]],[[29760,48265],[-29,-683]],[[15304,48284],[27,234]],[[15331,48518],[-12,237]],[[29502,47734],[-48,596],[18,220]],[[20921,48037],[0,48]],[[23151,48079],[-112,0]],[[23039,48079],[0,650]],[[23317,48080],[-113,-1]],[[23204,48079],[-53,0]],[[23988,48077],[-125,0]],[[23863,48077],[-43,0]],[[24155,48079],[-30,0]],[[24125,48079],[-131,-2]],[[23994,48077],[-6,0]],[[24487,48499],[11,-419]],[[24498,48080],[-110,0]],[[24388,48080],[-33,0]],[[24355,48080],[-97,0]],[[24258,48080],[-103,-1]],[[23484,48080],[-16,-1]],[[23468,48079],[-132,0]],[[23336,48079],[-19,1]],[[23820,48077],[-89,0]],[[23731,48077],[-77,2]],[[23039,48079],[-40,0]],[[23654,48079],[-55,0]],[[23599,48079],[-115,1]],[[30311,48145],[-62,-584],[-71,-163]],[[30178,47398],[-37,757]],[[29502,47734],[-5,-691]],[[22181,47144],[-185,1]],[[24501,47934],[-3,146]],[[21471,47147],[-198,1]],[[21273,47148],[-58,0]],[[17861,45279],[-551,4]],[[17310,45283],[-3,3]],[[18974,47736],[0,-551]],[[16234,45274],[-158,6]],[[16076,45280],[-235,21]],[[16657,45274],[-178,3]],[[16479,45277],[-245,-3]],[[15231,47064],[86,757]],[[15317,47824],[0,-3]],[[15317,47824],[1,12]],[[15318,47836],[0,3]],[[15318,47839],[0,2]],[[15318,47841],[-1,7]],[[15317,47848],[-1,9]],[[15316,47857],[-12,427]],[[29726,47448],[5,134]],[[30178,47398],[-16,-97]],[[20921,48037],[1,-881]],[[20922,47156],[0,-732]],[[23011,47630],[-12,449]],[[24501,47934],[8,-637]],[[23011,47630],[28,-327]],[[22566,46849],[0,-2]],[[22566,46847],[-44,82]],[[22522,46929],[-53,216]],[[22469,47145],[-211,-1]],[[22258,47144],[-77,0]],[[21215,47148],[-140,0]],[[21075,47148],[-153,8]],[[24515,47126],[-6,171]],[[21709,47144],[-238,3]],[[21996,47145],[-287,-1]],[[18974,44503],[-1,786]],[[18973,45289],[0,952]],[[18973,46241],[1,944]],[[29593,46662],[-26,3]],[[29567,46665],[-67,9]],[[29500,46674],[-3,369]],[[30162,47301],[-1,1]],[[30161,47302],[20,-393]],[[30181,46909],[-119,-241]],[[29726,47448],[-2,-809]],[[29724,46639],[-131,23]],[[23015,46978],[24,325]],[[24718,46230],[-60,2]],[[24658,46232],[-72,310]],[[24586,46542],[0,1]],[[24586,46543],[-71,583]],[[30062,46668],[-3,-12]],[[30059,46656],[0,-3]],[[30059,46653],[-179,-42]],[[29880,46611],[-8,1]],[[29872,46612],[-99,17]],[[29773,46629],[-49,10]],[[22842,46775],[-90,93]],[[22752,46868],[-42,3]],[[22710,46871],[-144,-22]],[[23015,46978],[11,-649]],[[23026,46329],[15,-131]],[[23041,46198],[-52,64]],[[22989,46262],[-48,335]],[[22941,46597],[-59,107]],[[22882,46704],[-40,71]],[[20922,45289],[0,1135]],[[15841,45301],[-262,-9]],[[29500,46674],[-25,-438]],[[15414,45277],[-109,6]],[[15305,45283],[-98,1555],[24,226]],[[18072,45274],[-211,5]],[[30181,46909],[34,-547],[-80,-272]],[[25014,46217],[-10,1]],[[25004,46218],[-122,10]],[[25178,46202],[-46,6]],[[25132,46208],[-118,9]],[[25309,46207],[-112,-2]],[[25197,46205],[-19,-3]],[[24882,46228],[-24,0]],[[24858,46228],[-140,2]],[[15579,45292],[-81,-4]],[[15498,45288],[-84,-11]],[[29558,45360],[-120,19]],[[29438,45379],[-3,0]],[[29435,45379],[40,857]],[[30117,46018],[-7,-5]],[[30113,45974],[-1,-1]],[[29992,45318],[-85,-17]],[[29907,45301],[-84,39]],[[29823,45340],[-9,2]],[[29814,45342],[0,1]],[[18429,45283],[-290,-9]],[[18139,45274],[-67,0]],[[24658,46232],[47,-237]],[[25449,46203],[-110,5]],[[25339,46208],[-30,-1]],[[20922,45289],[0,-565]],[[20922,44724],[0,-249]],[[18973,45289],[-128,-4]],[[28468,45286],[-179,0]],[[28289,45286],[-39,-6]],[[27885,45286],[-153,-6]],[[27732,45280],[-43,507]],[[23066,45686],[0,115]],[[23066,45801],[-25,397]],[[28095,45286],[-171,-6]],[[27924,45280],[-39,6]],[[28250,45280],[-127,6]],[[28123,45286],[-28,0]],[[28977,45011],[-62,275]],[[27689,45787],[-211,-543]],[[24748,45647],[-43,348]],[[18677,45280],[-16,2]],[[18661,45282],[-232,1]],[[25449,46203],[12,-634]],[[25526,44741],[-65,828]],[[30112,45973],[7,-161]],[[20290,43422],[-150,6]],[[20140,43428],[-128,2]],[[20012,43430],[-167,-2]],[[20581,43421],[-255,0]],[[20326,43421],[-36,1]],[[18845,45285],[-168,-5]],[[28915,45286],[-33,-3]],[[28882,45283],[-174,3]],[[28708,45286],[-11,0]],[[28697,45286],[-115,0]],[[24748,45647],[46,-301]],[[30119,45812],[31,-65]],[[30024,45258],[-32,60]],[[29814,45343],[-104,6]],[[29710,45349],[-139,9]],[[29571,45358],[-13,2]],[[27344,45012],[-136,-412]],[[27208,44600],[-133,-235]],[[27075,44365],[-106,-146]],[[26969,44219],[-154,7]],[[26815,44226],[-45,50]],[[26770,44276],[1,0]],[[26771,44276],[5,0]],[[26776,44276],[63,197]],[[26839,44473],[0,0]],[[26839,44473],[-1,11]],[[26838,44484],[-97,101]],[[26741,44585],[-80,204]],[[27478,45244],[-134,-232]],[[30191,45733],[68,-801]],[[30236,44813],[-62,-218]],[[30150,45747],[29,31]],[[28582,45286],[-103,0]],[[28479,45286],[-11,0]],[[23066,45686],[23,-312]],[[19845,43428],[-316,-3]],[[19529,43425],[-264,-6]],[[19265,43419],[-14,0]],[[27478,45006],[0,238]],[[25888,44840],[-83,-1]],[[25805,44839],[-83,1]],[[23127,45036],[-38,338]],[[24795,45154],[-1,192]],[[25526,44741],[0,0]],[[25526,44741],[0,-448]],[[30174,44595],[-77,-245]],[[30097,44350],[-21,331]],[[30076,44681],[-9,71]],[[30067,44752],[-25,117]],[[30042,44869],[-18,389]],[[26575,44771],[-33,-6]],[[26542,44765],[-134,-25]],[[29438,45379],[-9,-713]],[[29429,44666],[-3,-261]],[[30299,44585],[-63,228]],[[30259,44932],[123,420],[-83,-767]],[[26279,44839],[-104,0]],[[26175,44839],[-26,0]],[[26408,44740],[-11,-2]],[[26397,44738],[-113,-18]],[[26284,44720],[-5,119]],[[26149,44839],[-103,-1]],[[26046,44838],[-35,0]],[[26011,44838],[-77,2]],[[25934,44840],[-46,0]],[[23127,45036],[4,-340]],[[24795,45154],[-26,-273]],[[24769,44881],[-20,-101]],[[29907,45301],[4,-528]],[[29911,44773],[0,-157]],[[30033,44826],[-12,21]],[[29085,44214],[-88,331]],[[28997,44545],[-20,466]],[[18974,44503],[-1,-610]],[[18139,43424],[0,1850]],[[18139,43424],[-2,-1644]],[[15345,44290],[-40,993]],[[16479,45277],[0,-1510]],[[16478,40009],[-1,280]],[[16477,40289],[1,246]],[[16478,40535],[1,510]],[[16479,41045],[0,2722]],[[27478,45006],[0,-652]],[[23166,44368],[-35,328]],[[27478,44335],[0,19]],[[24538,44044],[0,2]],[[24538,44046],[80,222]],[[24618,44268],[131,512]],[[30067,44752],[-34,74]],[[30021,44847],[-10,-211]],[[29911,44536],[0,80]],[[25692,44746],[-81,-160]],[[25611,44586],[-85,155]],[[25722,44840],[-30,-94]],[[26284,44720],[0,-309]],[[26575,44771],[78,17]],[[26653,44788],[0,0]],[[26653,44788],[3,0]],[[26658,44788],[-2,0]],[[26658,44788],[3,1]],[[25526,44293],[0,-314]],[[29911,44536],[-17,-498]],[[29894,44038],[-162,175]],[[25526,43734],[0,245]],[[26285,44217],[-1,194]],[[20922,44156],[0,319]],[[23166,44368],[17,-216]],[[30040,44368],[0,0]],[[30097,44350],[-21,331]],[[29543,43856],[-153,-449]],[[29390,43407],[0,3]],[[29390,43410],[32,697]],[[29422,44107],[4,298]],[[20922,44156],[0,-729]],[[20922,43427],[-248,-6]],[[20674,43421],[-93,0]],[[30011,44636],[-117,-598]],[[29732,44213],[-34,-300]],[[29698,43913],[2,-6]],[[29702,43899],[-159,-43]],[[29230,43692],[-37,105]],[[29193,43797],[-93,288]],[[29100,44085],[-15,129]],[[29100,44085],[-82,-489]],[[19251,43419],[-278,474]],[[26285,44217],[0,-289]],[[29300,44024],[-1,-1]],[[30193,43985],[9,62],[-9,-62]],[[23199,43722],[-12,57]],[[23187,43779],[-4,373]],[[27478,44335],[0,-663]],[[27478,43656],[0,16]],[[15357,41565],[-69,1300],[33,203]],[[15321,43068],[14,782],[10,440]],[[21321,43428],[-10,0]],[[21311,43428],[-202,0]],[[26285,43895],[0,33]],[[24538,44044],[35,-485]],[[30405,43867],[0,0]],[[21109,43428],[-54,0]],[[21055,43428],[-133,-1]],[[29390,43379],[-38,-171]],[[29320,43267],[-20,757]],[[29390,43410],[0,-3]],[[29390,43407],[-1,-24]],[[29389,43383],[1,-4]],[[29025,43600],[-7,-4]],[[24573,43556],[0,3]],[[29322,43422],[-87,253]],[[29235,43675],[-5,17]],[[29299,44023],[0,-1]],[[29299,44022],[23,-600]],[[25526,43734],[0,-291]],[[29776,43471],[0,0]],[[29444,43163],[68,89],[252,435],[-14,-266],[137,101],[-239,-447],[-193,-288]],[[26285,43895],[0,-491]],[[26285,43404],[0,-125]],[[29025,43600],[-42,-235]],[[21479,43428],[-158,0]],[[25526,42935],[0,508]],[[23199,43722],[-1,-193]],[[23198,43529],[1,-6]],[[23217,43240],[-18,283]],[[29322,43422],[-25,-368]],[[27478,43656],[0,-419]],[[27479,43148],[-1,89]],[[28963,42664],[-2,31]],[[28961,42695],[22,670]],[[18137,41388],[0,392]],[[24573,43556],[-46,-697]],[[24506,42749],[21,110]],[[23217,43240],[-5,-218]],[[25526,42935],[0,-458]],[[21479,42861],[0,96]],[[21479,42957],[0,471]],[[19529,41977],[0,803]],[[19529,42780],[0,645]],[[26285,42918],[0,361]],[[27479,43148],[-1,-396]],[[27478,42752],[-41,-105]],[[26285,42918],[0,-290]],[[29352,43208],[-35,-161]],[[29316,43199],[4,68]],[[29455,42787],[-70,-74]],[[29385,42713],[-17,-43]],[[29360,42716],[6,33]],[[29365,43014],[79,149]],[[29262,42930],[-12,-89]],[[23340,42643],[-109,9]],[[23231,42652],[-19,370]],[[23468,42633],[-80,7]],[[23388,42640],[-48,3]],[[23591,42624],[-44,2]],[[23547,42626],[-79,7]],[[24359,42677],[-63,14]],[[24296,42691],[-66,-11]],[[24230,42680],[-48,-6]],[[24182,42674],[-80,-11]],[[23718,42631],[-60,-4]],[[23658,42627],[-67,-3]],[[23846,42643],[-61,-5]],[[23785,42638],[-67,-7]],[[23974,42650],[-77,-7]],[[23897,42643],[-51,0]],[[24102,42663],[-21,-3]],[[24081,42660],[-107,-10]],[[29317,43047],[-1,152]],[[19529,41977],[0,-1046]],[[19529,40931],[0,-303]],[[27478,42451],[0,301]],[[29297,43054],[-35,-124]],[[24506,42749],[-64,-483]],[[24442,42266],[-83,411]],[[29366,42749],[-31,25]],[[29306,42935],[59,79]],[[29032,42198],[-69,466]],[[23231,42652],[15,-115]],[[21479,42861],[0,-479]],[[29335,42774],[-29,161]],[[25526,42451],[0,26]],[[29250,42841],[-13,-170]],[[26285,42220],[0,408]],[[21479,42213],[0,169]],[[29225,42487],[0,0]],[[24418,41936],[2,89]],[[24420,42025],[22,241]],[[27478,42451],[1,-146]],[[27448,42299],[-11,348]],[[29032,42198],[61,-361]],[[29093,41837],[0,-1]],[[29093,41836],[-71,-183]],[[29237,42671],[-4,-268]],[[27448,42299],[-15,-391]],[[27433,41908],[-6,-53]],[[23289,42055],[-43,482]],[[26285,42220],[0,-80]],[[23289,42055],[1,-6]],[[23036,41565],[-95,1]],[[22941,41566],[-31,0]],[[25526,42451],[-1,-613]],[[25525,41838],[-1,-493]],[[27478,41492],[1,101]],[[27479,41593],[-1,267]],[[27478,41860],[1,445]],[[29271,41744],[-3,49]],[[29233,42403],[38,-659]],[[21479,42213],[0,-644]],[[21479,41569],[1,-799]],[[26282,41408],[1,164]],[[26283,41572],[2,568]],[[22532,41568],[-64,-1]],[[22468,41567],[-62,0]],[[22406,41567],[-95,0]],[[22311,41567],[-31,0]],[[22658,41567],[-31,0]],[[22627,41567],[-95,1]],[[21682,41568],[-24,-1]],[[21658,41567],[-179,2]],[[22155,41566],[-154,0]],[[22001,41566],[-4,0]],[[22784,41566],[-126,1]],[[22910,41566],[-126,0]],[[21997,41566],[-152,1]],[[21845,41567],[-5,0]],[[21840,41567],[-158,1]],[[22280,41567],[-125,-1]],[[28074,41045],[-119,2]],[[28700,41044],[-28,0]],[[28672,41044],[-1,0]],[[28331,41041],[-3,1]],[[28328,41042],[-175,3]],[[27955,41047],[-34,0]],[[27921,41047],[-129,-3]],[[23162,41564],[-63,0]],[[23099,41564],[-63,1]],[[23290,42049],[67,-486]],[[23357,41563],[-8,0]],[[23349,41563],[-125,1]],[[23224,41564],[-62,0]],[[23446,41373],[-89,190]],[[24418,41936],[19,-475]],[[28850,41260],[-54,-215]],[[28796,41045],[-96,-1]],[[28671,41044],[-92,0]],[[28579,41044],[-61,-2]],[[28518,41042],[-59,0]],[[24456,41114],[-19,347]],[[27419,41625],[8,230]],[[29179,40745],[0,-4]],[[29179,40741],[-1,-2]],[[29001,41545],[-1,5]],[[29e3,41550],[22,103]],[[27419,41625],[-25,-344]],[[29268,41793],[3,-49]],[[29271,41744],[-71,-994],[-21,-9]],[[29179,40741],[0,4]],[[28153,41045],[-68,0]],[[28085,41045],[-11,0]],[[25525,40831],[-1,514]],[[27792,41044],[-23,0]],[[27769,41044],[-80,-2]],[[27689,41042],[-43,0]],[[29e3,41550],[-44,-229]],[[23478,41229],[-32,144]],[[18137,41388],[0,-676]],[[18137,40712],[0,-1612]],[[19529,40384],[0,244]],[[28459,41042],[-60,-1]],[[28399,41041],[-68,0]],[[28956,41321],[-58,-118]],[[28898,41203],[-43,60]],[[28850,41260],[0,0]],[[27391,41042],[3,239]],[[27478,41492],[0,-448]],[[27646,41042],[-140,2]],[[27506,41044],[-28,0]],[[26282,41408],[0,-354]],[[21480,40759],[0,11]],[[15493,39270],[-65,1424],[-71,871]],[[23478,41229],[-49,-367]],[[28979,41348],[22,197]],[[24456,41114],[17,-140]],[[26282,40758],[0,296]],[[28897,41161],[82,187]],[[25525,40831],[0,-242]],[[27391,41042],[-31,-211]],[[27360,40831],[-26,-125]],[[24576,40445],[-67,370]],[[24509,40815],[-36,159]],[[28898,41203],[-26,-825]],[[28804,40253],[-1,151]],[[28803,40404],[-7,641]],[[28855,41263],[-5,-3]],[[23415,40694],[14,168]],[[28900,40423],[-35,202]],[[28866,40625],[-1,0]],[[28866,40625],[-5,206]],[[28860,40874],[1,-43]],[[28860,40874],[37,287]],[[16714,38612],[-48,225]],[[29178,40739],[-11,-297]],[[29167,40442],[-17,-94]],[[29150,40348],[-38,-96]],[[29112,40252],[0,-14]],[[26282,40758],[-1,-85]],[[28270,40305],[-11,-7]],[[28259,40298],[-30,321]],[[28229,40619],[-55,236]],[[28174,40855],[-87,32]],[[28087,40887],[-37,-224]],[[28050,40663],[-54,34]],[[27996,40697],[-113,-102]],[[27883,40595],[-57,-283]],[[27826,40312],[-60,-227]],[[27766,40085],[3,959]],[[28784,40396],[-69,317]],[[28715,40713],[-78,-279]],[[28637,40434],[0,-126]],[[28637,40308],[-47,-159]],[[28331,40116],[-61,189]],[[28117,40429],[-33,140]],[[23415,40694],[38,-213]],[[27334,40706],[-23,-152]],[[27311,40554],[-70,-216]],[[27241,40338],[-86,-130],[-13,-105]],[[28171,40194],[-54,235]],[[25505,40184],[20,405]],[[24576,40445],[59,-327]],[[26280,40268],[1,405]],[[21480,40759],[1,-810]],[[21481,39949],[0,-161]],[[28914,40342],[-11,69]],[[28901,40416],[-1,7]],[[29040,40031],[-126,311]],[[27142,40103],[-8,-66]],[[18136,38906],[1,194]],[[28084,40569],[-45,-703]],[[23555,39997],[-48,74]],[[23507,40071],[-54,410]],[[28259,40298],[-31,-352]],[[28228,39946],[-57,248]],[[19529,40384],[-2,-1614]],[[25505,40184],[-7,-190]],[[28029,39806],[10,60]],[[23553,39912],[2,85]],[[27136,39881],[-2,156]],[[24711,39640],[-59,-61]],[[24652,39579],[-17,539]],[[28804,40253],[1,-94]],[[28742,40159],[-56,139],[98,98]],[[28590,40149],[-15,-63]],[[28815,39382],[-8,585]],[[28807,39967],[-2,192]],[[28872,40378],[57,-769]],[[28458,39638],[-32,-59]],[[28426,39579],[-58,227]],[[28368,39806],[-37,310]],[[29112,40238],[-86,-665],[14,458]],[[16478,40009],[0,-98]],[[16478,39911],[0,-84]],[[26420,39741],[-52,137]],[[26368,39878],[-33,-39]],[[26335,39839],[-55,58]],[[26280,39897],[0,371]],[[26280,39897],[-16,-138]],[[26264,39759],[0,-1]],[[26494,39275],[-50,105]],[[26444,39380],[0,87]],[[26444,39467],[-24,274]],[[24760,39559],[-49,81]],[[28635,39395],[0,0]],[[28706,39561],[36,598]],[[25526,39519],[0,1]],[[25526,39520],[-32,474]],[[25494,39994],[4,0]],[[26591,39026],[-56,243]],[[26535,39269],[-41,6]],[[28029,39806],[-91,-546]],[[27938,39260],[-52,-2]],[[28607,39535],[-17,-366]],[[28590,39169],[0,-3]],[[28575,40086],[2,-3]],[[28589,40088],[18,-553]],[[23553,39416],[0,367]],[[23553,39783],[0,129]],[[27091,39475],[-53,155]],[[27136,39881],[-45,-406]],[[25526,39519],[-1,-92]],[[17623,34118],[-355,1806]],[[26287,39436],[-21,81]],[[26266,39517],[-2,241]],[[28815,39382],[4,-360]],[[28755,39100],[-16,112]],[[28739,39212],[17,109]],[[21481,39138],[0,650]],[[28543,39077],[4,-10]],[[28547,39067],[-4,-218]],[[28437,39124],[17,222]],[[28454,39346],[4,292]],[[16666,38837],[-70,323]],[[16596,39160],[-91,417]],[[16505,39577],[-27,250]],[[16917,37646],[-203,966]],[[28445,39309],[-54,-223]],[[23553,39416],[0,-202]],[[26713,38990],[-105,35]],[[26608,39025],[-17,1]],[[26591,39026],[0,0]],[[21481,39138],[0,-154]],[[27038,39630],[-32,-689]],[[27006,38941],[-20,-17]],[[26839,38901],[-60,288]],[[26779,39189],[0,1]],[[26779,39190],[-66,-197]],[[26713,38993],[0,-3]],[[24786,39069],[5,209]],[[24791,39278],[13,61]],[[24804,39339],[-44,220]],[[28454,39346],[-22,183]],[[28432,39529],[-6,50]],[[28929,39609],[44,-479],[29,-450]],[[29002,38680],[-5,0]],[[28997,38680],[-5,0]],[[28992,38680],[-71,1]],[[28921,38681],[-100,202]],[[28821,38883],[-2,139]],[[27886,39258],[-47,-530]],[[27839,38728],[-25,-122]],[[27814,38606],[-93,334]],[[28756,39321],[-17,-109]],[[28739,39212],[-76,198],[43,151]],[[28391,39086],[-16,-307]],[[28441,39500],[0,3]],[[28441,39500],[0,-4]],[[28441,39496],[0,-2]],[[28441,39494],[0,-2]],[[28441,39492],[1,-5]],[[28442,39486],[0,1]],[[28442,39486],[0,-5]],[[28442,39481],[2,-3]],[[28444,39478],[0,-2]],[[28444,39476],[2,-7]],[[28446,39469],[0,-65]],[[28446,39404],[0,2]],[[28432,39529],[9,-26]],[[26287,39436],[-64,-179]],[[26223,39257],[-49,-131]],[[26174,39126],[-37,84]],[[26137,39210],[-26,-279]],[[25466,38611],[25,286]],[[25491,38897],[34,530]],[[24764,38829],[-1,-16]],[[24763,38813],[-21,-253]],[[15840,38131],[-3,0]],[[15809,38129],[-2,4]],[[15807,38133],[-39,1]],[[15641,38391],[-148,879]],[[26986,38924],[-61,-318]],[[26925,38606],[-25,18]],[[26900,38624],[-20,157]],[[26880,38781],[-41,120]],[[23552,38728],[1,486]],[[24786,39069],[-22,-240]],[[28590,39166],[9,-599],[-52,500]],[[28547,39067],[-4,10]],[[27721,38940],[-41,-605]],[[27680,38335],[-46,-375]],[[23552,38728],[0,-165]],[[16040,38042],[-23,137]],[[26109,38815],[2,116]],[[16917,37646],[165,-803]],[[28691,38439],[-29,547],[93,114]],[[28785,38627],[-94,-188]],[[21481,38328],[0,12]],[[21481,38340],[0,644]],[[28543,38849],[0,-85]],[[28495,38564],[-94,-54],[36,614]],[[18136,38906],[1,-790]],[[18137,38116],[-1,-1012]],[[18136,37104],[0,-1125]],[[18136,35979],[0,-293]],[[19532,38124],[-5,646]],[[26109,38815],[-57,-267]],[[26052,38548],[-42,-171]],[[28375,38779],[-7,-313]],[[25466,38611],[-69,-294]],[[28795,38335],[-10,292]],[[15837,38131],[-28,-2]],[[16017,38179],[-132,-258],[-45,210]],[[25399,38268],[-2,49]],[[24779,38004],[-12,72]],[[24767,38076],[-25,484]],[[28603,38436],[-31,-192],[-77,320]],[[28543,38764],[60,-328]],[[26898,38299],[0,0]],[[26900,38624],[-2,-325]],[[19532,38124],[0,-507]],[[19532,37617],[-1,-737]],[[19531,36880],[0,-904]],[[19531,35976],[-266,-3]],[[19265,35973],[-209,11]],[[19056,35984],[-185,-3]],[[23552,37951],[0,612]],[[17268,35924],[-186,919]],[[28986,38582],[-75,-715]],[[28911,37867],[-68,-38]],[[28843,37829],[0,3]],[[28992,38680],[-6,-98]],[[25860,38177],[-37,-113]],[[25979,38171],[-13,-319]],[[25966,37852],[-14,-13]],[[25952,37839],[-92,338]],[[26950,37569],[-23,169]],[[26927,37738],[-29,561]],[[26010,38377],[-31,-206]],[[28442,38144],[-1,-3]],[[28368,38466],[83,-128]],[[23552,37951],[-1,-43]],[[15768,38134],[6,-631],[-119,557],[-14,331]],[[16038,37915],[2,127]],[[28778,37969],[17,366]],[[28843,37832],[-1,-3]],[[28842,37829],[-64,140]],[[28477,37991],[-35,153]],[[28451,38338],[125,-469]],[[27607,37750],[27,210]],[[21481,38328],[1,-976]],[[21482,37352],[0,-175]],[[27607,37750],[-66,-484]],[[25823,38064],[-8,-140]],[[25815,37924],[-46,-378]],[[25769,37546],[-44,290]],[[25399,38268],[-31,-631]],[[25598,37614],[-9,36]],[[25589,37650],[-42,80]],[[25478,37649],[-63,7]],[[25415,37656],[-29,-191]],[[25386,37465],[-17,170]],[[25369,37635],[-1,2]],[[24928,37473],[-74,134]],[[24854,37607],[-75,397]],[[25725,37836],[-46,-126]],[[25679,37710],[-81,-96]],[[25547,37730],[-69,-80]],[[25478,37650],[0,-1]],[[28441,38141],[75,-497],[31,-232]],[[28566,37480],[-89,511]],[[15835,37649],[78,298],[125,-32]],[[23550,37194],[0,36]],[[23550,37230],[1,678]],[[28887,37650],[0,-27]],[[28887,37623],[-59,-670]],[[28828,36953],[-33,-42]],[[28782,37012],[13,397]],[[28795,37409],[47,420]],[[28842,37829],[1,0]],[[28911,37867],[-24,-217]],[[28637,37553],[1,-1]],[[28638,37552],[2,-269]],[[28576,37869],[61,-316]],[[27086,36932],[-11,47]],[[27075,36979],[-102,379]],[[26973,37358],[-23,211]],[[28541,36813],[-25,262]],[[27562,37146],[-21,120]],[[24970,37042],[-42,431]],[[25386,37465],[-29,-418]],[[28516,37075],[-45,-36]],[[28471,37039],[-2,24]],[[15925,36839],[-90,810]],[[24970,37042],[0,-10]],[[25377,36917],[-20,130]],[[27384,36774],[0,3]],[[28640,37134],[-74,346]],[[28640,37283],[0,-149]],[[15782,37296],[29,0]],[[21191,35978],[-257,-8]],[[20934,35970],[-319,-1]],[[28547,37412],[38,-377]],[[27075,36979],[-95,-443]],[[26980,36536],[-1,-3]],[[26979,36533],[-67,-179]],[[26912,36354],[-4,-11]],[[21482,36702],[0,475]],[[27562,37146],[-71,-381]],[[27491,36765],[-107,9]],[[28390,36690],[-19,6]],[[15811,37296],[78,-451]],[[15840,36178],[-62,763],[4,355]],[[23550,37194],[1,-539]],[[23551,36655],[-1,-47]],[[20615,35969],[-19,0]],[[20596,35969],[-138,1]],[[21482,36702],[0,-736]],[[21482,35966],[-267,12]],[[21215,35978],[-24,0]],[[19716,35976],[-185,0]],[[19966,35978],[-250,-2]],[[28469,37063],[2,-24]],[[28471,37039],[55,-208]],[[28526,36831],[1,-3]],[[18457,35979],[-321,0]],[[24970,37032],[11,-429]],[[24981,36603],[0,-1]],[[24981,36602],[-2,-156]],[[25377,36917],[-83,-186]],[[25294,36731],[-15,37]],[[25279,36768],[0,-3]],[[25279,36765],[-21,-661]],[[28585,37035],[31,-106]],[[28614,36816],[-73,-3]],[[27384,36777],[-34,-253]],[[27350,36524],[-68,-110]],[[27282,36414],[-38,192]],[[28371,36696],[0,-145]],[[28795,36911],[-5,-59]],[[28790,36852],[-33,152],[25,8]],[[27244,36606],[-106,-186]],[[27138,36420],[-52,512]],[[18871,35981],[-314,-2]],[[18557,35979],[-100,0]],[[28616,36929],[-2,-113]],[[28493,36664],[-108,-81],[5,107]],[[15889,36845],[36,-6]],[[23019,35975],[-63,1]],[[22956,35976],[-110,0]],[[22846,35976],[-88,-1]],[[22758,35975],[-95,0]],[[22026,35982],[-151,-4]],[[22179,35976],[-129,5]],[[22050,35981],[-24,1]],[[22511,35973],[-55,2]],[[22456,35975],[-127,1]],[[17623,34118],[67,-355]],[[28568,36291],[-75,373]],[[28527,36828],[22,-165]],[[25236,36127],[22,-23]],[[20247,35966],[-264,12]],[[19983,35978],[-17,0]],[[20458,35970],[-81,-1]],[[20377,35969],[-130,-3]],[[21618,35969],[-132,-5]],[[21486,35964],[-4,2]],[[21754,35973],[-136,-4]],[[21875,35978],[-87,-3]],[[21788,35975],[-34,-2]],[[23298,35976],[-73,0]],[[23225,35976],[-50,0]],[[22663,35975],[-86,-2]],[[22577,35973],[-66,0]],[[22329,35976],[-127,0]],[[22202,35976],[-23,0]],[[23424,35976],[-94,0]],[[23330,35976],[-32,0]],[[28549,36663],[73,-426]],[[23550,36083],[0,525]],[[23550,36083],[0,-107]],[[23550,35976],[-108,0]],[[23442,35976],[-18,0]],[[25236,36127],[-100,272]],[[25069,36098],[9,-156]],[[25078,35942],[-50,55]],[[25028,35997],[-49,449]],[[25136,36399],[-2,-3]],[[25134,36396],[-65,-298]],[[28388,36521],[68,-110]],[[23175,35976],[-10,0]],[[23165,35976],[-146,-1]],[[15976,35708],[-136,470]],[[26908,36343],[-84,-413]],[[28456,36411],[93,-173]],[[25087,35872],[-9,70]],[[28629,35958],[-61,333]],[[26821,35778],[3,152]],[[25579,35309],[-85,-6]],[[25494,35303],[-15,-1]],[[28549,36238],[42,-432]],[[27841,35124],[-35,0]],[[27771,35123],[-12,0]],[[27759,35123],[-56,1]],[[28631,36186],[-2,-228]],[[25739,35324],[-84,-10]],[[25655,35314],[-14,-2]],[[25641,35312],[-62,-3]],[[25087,35872],[-6,-295]],[[25081,35577],[-15,-247]],[[25066,35330],[-42,-37]],[[27976,35124],[-18,0]],[[27958,35124],[-95,0]],[[27863,35124],[-22,0]],[[24371,35046],[-125,-2]],[[23550,35543],[0,433]],[[28245,35132],[-37,-2]],[[28208,35130],[-41,-1]],[[26821,35778],[-162,-424]],[[25479,35302],[-104,77]],[[23550,35543],[0,-184]],[[19531,34120],[0,1856]],[[19531,34120],[0,-1941]],[[19531,32179],[0,-709]],[[19531,31470],[-2,-1490]],[[21215,35978],[-1,-931]],[[21214,35047],[-10,-828]],[[21204,34219],[0,-588]],[[21485,35047],[-37,0]],[[21448,35047],[-234,0]],[[21784,35046],[-35,0]],[[21749,35046],[-150,0]],[[21599,35046],[-114,1]],[[22050,35046],[-151,0]],[[21899,35046],[-115,0]],[[28482,35144],[0,-15]],[[28482,35129],[-69,4]],[[28413,35133],[-37,-3]],[[26292,35239],[-2,0]],[[26290,35239],[-53,22]],[[23913,35043],[-75,1]],[[26528,35210],[-22,4]],[[26506,35214],[-61,4]],[[28678,35667],[9,165]],[[26445,35218],[-9,0]],[[26436,35218],[-144,21]],[[26659,35354],[-60,-119]],[[26599,35235],[-71,-25]],[[25258,35049],[-8,1]],[[25250,35050],[-83,2]],[[26148,35281],[-40,-14]],[[25959,35285],[-65,21]],[[25894,35306],[-57,21]],[[23838,35044],[-78,0]],[[23760,35044],[-59,0]],[[28775,35141],[-7,0]],[[28768,35141],[-25,0]],[[28743,35141],[-9,0]],[[28734,35141],[-6,0]],[[28728,35141],[-25,0]],[[28675,35672],[3,-5]],[[28687,35832],[88,-691]],[[27453,35154],[-63,3]],[[26998,35225],[-14,0]],[[27164,35255],[-50,5]],[[27114,35260],[-89,-37]],[[24776,35043],[-100,1]],[[28601,35141],[-14,0]],[[28587,35141],[-105,3]],[[28591,35806],[33,-21]],[[16104,33735],[-103,743],[-25,1230]],[[28376,35130],[-131,2]],[[26791,35221],[-135,7]],[[26656,35228],[-57,7]],[[28167,35129],[-77,0]],[[28090,35129],[-37,-3]],[[28053,35126],[-77,-2]],[[26237,35261],[-84,21]],[[26153,35282],[-5,-1]],[[24523,35043],[-78,-2]],[[24445,35041],[-12,2]],[[24433,35043],[-62,3]],[[26984,35225],[-88,-3]],[[26896,35222],[-62,0]],[[26834,35222],[-43,-1]],[[25837,35327],[-42,-31]],[[25795,35296],[-56,28]],[[27608,35126],[-108,15]],[[27500,35141],[-47,13]],[[25024,35293],[-25,-249]],[[24999,35044],[-18,-1]],[[24981,35043],[-16,1]],[[24965,35044],[-1,-301]],[[28629,35680],[-4,-47]],[[28669,35668],[6,4]],[[28703,35141],[-53,0]],[[28650,35141],[-49,0]],[[27703,35124],[-88,2]],[[27615,35126],[-7,0]],[[18136,35686],[-100,-1297],[-70,-515],[19,-1013],[-11,-605]],[[17974,32256],[-284,1507]],[[26108,35267],[-98,6]],[[26010,35273],[-51,12]],[[24676,35044],[-58,0]],[[24618,35044],[-95,-1]],[[24065,35043],[-23,0]],[[24042,35043],[-123,1]],[[23919,35044],[-6,-1]],[[27390,35157],[-18,5]],[[27372,35162],[-126,24]],[[27246,35186],[-90,25]],[[27156,35211],[8,44]],[[24246,35044],[-8,0]],[[24238,35044],[-106,0]],[[24132,35044],[-67,-1]],[[25167,35052],[-3,1]],[[25164,35053],[-2,-1]],[[23701,35044],[-151,2]],[[23550,35046],[0,313]],[[25375,35379],[4,-336]],[[25379,35043],[-121,6]],[[23550,35046],[16,-628]],[[25162,35052],[-143,1]],[[25019,35053],[-20,-9]],[[27806,35124],[-35,-1]],[[24848,34115],[-91,-6]],[[24757,34109],[-25,-1]],[[24732,34108],[52,382]],[[24784,34490],[-8,553]],[[27025,35223],[-27,2]],[[27156,35211],[-14,-367]],[[27142,34844],[-53,-194]],[[27089,34650],[-4,-41]],[[22051,33894],[0,325]],[[22051,34219],[-1,827]],[[28548,34675],[-72,196]],[[28752,34612],[-19,143]],[[28728,35141],[24,-529]],[[28775,35141],[26,-594]],[[28800,34546],[-30,549]],[[28770,35095],[-2,46]],[[28743,35141],[5,0]],[[28760,35141],[-12,0]],[[28760,35141],[-26,0]],[[28733,34755],[-46,-43]],[[28687,34712],[0,3]],[[28687,34715],[-13,49]],[[28674,34764],[-2,44]],[[28476,34871],[60,-301]],[[27085,34609],[-42,-301]],[[27043,34308],[-39,100]],[[28672,34808],[2,-44]],[[28674,34764],[13,-49]],[[28687,34712],[-7,-341],[-22,149]],[[24940,34460],[24,283]],[[24981,35043],[-16,1]],[[23569,34305],[-3,113]],[[24940,34460],[-21,-340]],[[24919,34120],[-71,-5]],[[26898,34189],[-82,-175]],[[28658,34520],[-57,-245]],[[28601,34275],[-64,214],[11,186]],[[27004,34408],[-54,-157]],[[26950,34251],[0,-2]],[[26950,34249],[-25,-174]],[[26925,34075],[-27,114]],[[28536,34570],[6,-596]],[[23585,33668],[-16,637]],[[28882,33504],[-75,-902]],[[28807,32613],[75,891]],[[28843,33756],[0,0]],[[28734,33500],[78,-82],[-43,26]],[[28801,34547],[-1,-1]],[[24936,33938],[-17,182]],[[26816,34014],[-18,-287]],[[26798,33727],[-82,-139]],[[23585,33668],[6,-225]],[[22051,33894],[0,-488]],[[21204,33412],[0,219]],[[26716,33588],[0,-39]],[[26716,33549],[-113,-235]],[[22051,33041],[0,365]],[[24936,33938],[-60,-512],[-14,-170]],[[24862,33256],[-37,-264]],[[24825,32992],[-3,-13]],[[24822,32979],[-25,84]],[[28635,33989],[84,-187],[-27,-253]],[[28542,33974],[93,15]],[[26603,33314],[-81,-203]],[[26522,33111],[-2,6]],[[28434,33295],[-3,-15]],[[17974,32256],[138,-1299]],[[18112,30957],[-82,-401]],[[16298,32208],[-72,882],[-122,645]],[[23602,32994],[-11,449]],[[21204,33412],[-1,-817]],[[21203,32595],[0,-426]],[[28431,33280],[136,-511]],[[28600,33319],[-166,-24]],[[28692,33549],[42,-49]],[[28769,33444],[-93,-556],[-69,315],[-7,116]],[[26520,33117],[-19,-319]],[[26501,32798],[-74,-159]],[[24816,32970],[-19,93]],[[23602,32994],[0,-32]],[[22051,33041],[0,-446]],[[27130,32590],[-29,6]],[[27101,32596],[-27,6]],[[27253,32559],[-11,1]],[[27242,32560],[-112,30]],[[26785,32306],[-28,-50]],[[27389,32256],[-18,140]],[[27371,32396],[-36,134]],[[22051,32313],[0,282]],[[26967,32610],[-62,-86]],[[25504,32261],[-107,4]],[[25610,32253],[-106,8]],[[26236,32231],[-80,-4]],[[26156,32227],[-28,-3]],[[26128,32224],[-30,-1]],[[25719,32238],[-105,15]],[[25614,32253],[-4,0]],[[23598,32131],[4,828]],[[23602,32959],[0,3]],[[24816,32970],[-27,-496],[-38,-228]],[[24751,32246],[1,-252]],[[24752,31994],[-29,-50]],[[25175,32246],[-10,0]],[[25165,32246],[-54,-2]],[[25111,32244],[-52,0]],[[26905,32524],[-52,-143]],[[26853,32381],[-37,-23]],[[26816,32358],[-31,-52]],[[25397,32265],[-59,-19]],[[25338,32246],[-45,0]],[[25293,32246],[-5,0]],[[27335,32530],[-82,29]],[[28426,32387],[121,-324]],[[28476,32416],[-54,-29]],[[24936,32246],[-22,-2]],[[24914,32244],[-163,2]],[[27074,32602],[-68,17]],[[27006,32619],[-39,-9]],[[25059,32244],[-43,-1]],[[25016,32243],[-80,3]],[[25288,32246],[-113,0]],[[23598,32131],[-2,-381]],[[23596,31750],[-2,-412]],[[25863,32238],[-130,0]],[[25733,32238],[-14,0]],[[25989,32233],[-125,5]],[[25864,32238],[-1,0]],[[26292,32232],[-10,-1]],[[26282,32231],[-46,0]],[[26757,32256],[-104,-15]],[[28567,32769],[21,-236],[-112,-117]],[[26098,32223],[-37,3]],[[26061,32226],[-72,7]],[[26507,32231],[-35,0]],[[26472,32231],[-53,2]],[[26419,32233],[8,406]],[[26419,32233],[-83,0]],[[26336,32233],[-44,-1]],[[28422,32387],[4,0]],[[27643,31895],[-109,13]],[[27534,31908],[-68,6]],[[27466,31914],[-77,342]],[[21203,31783],[0,386]],[[22051,32313],[0,-531]],[[27710,31890],[-67,5]],[[26653,32241],[-19,0]],[[26634,32241],[-108,-10]],[[26526,32231],[-19,0]],[[28596,31771],[1,-6]],[[28597,31765],[0,-3]],[[28597,31762],[-51,125],[-130,-68]],[[28416,31819],[0,-1]],[[28547,32063],[63,79],[-14,-371]],[[16447,30195],[0,0]],[[16544,30316],[0,0]],[[16625,31089],[-228,180],[-87,448],[-12,491]],[[26790,31290],[-17,21]],[[26773,31311],[-15,81]],[[26758,31392],[-66,275]],[[26692,31667],[1,5]],[[26693,31672],[-4,53]],[[26689,31725],[68,531]],[[27773,31565],[-63,325]],[[22095,31335],[-43,101]],[[22052,31436],[0,0]],[[22052,31436],[-1,346]],[[25367,32054],[-29,192]],[[25354,31476],[-3,-221]],[[25367,32054],[-13,-578]],[[26061,32226],[7,-232]],[[28416,31818],[0,1]],[[28416,31819],[-53,-450],[-48,-156]],[[26081,31553],[-13,441]],[[26083,31488],[-2,65]],[[27882,30949],[-1,3]],[[27881,30952],[-105,597]],[[27776,31549],[-3,16]],[[21203,31783],[0,-808]],[[21203,30975],[0,-20]],[[24723,31944],[-48,-358]],[[16772,30477],[-147,612]],[[24678,31369],[-3,217]],[[26083,31488],[4,-119]],[[22271,31020],[-74,109]],[[22197,31129],[0,1]],[[22197,31130],[-102,205]],[[16917,28163],[0,0]],[[16946,29088],[0,0]],[[17003,29918],[0,12]],[[17003,29930],[-3,11]],[[17e3,29941],[0,-8]],[[17e3,29933],[-26,23]],[[16974,29956],[-14,-67]],[[16960,29889],[-75,574],[-113,14]],[[26859,30781],[-9,150]],[[26850,30931],[-60,359]],[[28315,31213],[-62,-271]],[[28253,30942],[0,-3]],[[23592,30746],[2,592]],[[24678,31369],[-78,-590],[-29,-164]],[[24571,30615],[0,-1]],[[22438,30684],[-95,104]],[[22343,30788],[-72,232]],[[21203,30955],[-1,-888]],[[21202,30067],[-2,-474]],[[26101,30925],[-14,444]],[[26113,30543],[-12,382]],[[19529,28920],[0,1060]],[[25346,30990],[5,265]],[[26113,30543],[6,-217]],[[22570,30659],[-80,-112]],[[22490,30547],[-52,137]],[[23592,30746],[-2,-464]],[[23590,30282],[0,-1]],[[23590,30281],[-3,-562]],[[23587,29719],[-72,121]],[[23515,29840],[-115,435]],[[27999,30290],[-117,659]],[[26900,30419],[-41,362]],[[25346,30990],[-9,-437]],[[28253,30939],[6,1]],[[28260,30934],[-41,-278]],[[28219,30656],[-27,96]],[[28192,30752],[-167,-607]],[[28025,30145],[-4,18]],[[28021,30163],[-1,7]],[[28020,30170],[-21,120]],[[25336,30501],[1,52]],[[18007,28580],[-60,520],[29,244]],[[17976,29344],[53,1100],[1,112]],[[28020,30170],[-119,-574]],[[22730,30207],[-116,-19]],[[22614,30188],[-44,471]],[[26900,30419],[8,-106]],[[23001,30197],[-96,111]],[[23232,30157],[-24,-63]],[[23208,30094],[-148,-212]],[[23060,29882],[-59,315]],[[23400,30275],[-43,-109]],[[23357,30166],[-125,-9]],[[24499,29515],[-5,61]],[[24494,29576],[68,417],[24,446],[-15,175]],[[26122,30210],[-3,116]],[[25336,30501],[-11,-583]],[[27034,29642],[-33,180]],[[27001,29822],[-92,488]],[[26909,30310],[-1,3]],[[22905,30308],[-3,-11]],[[22902,30297],[-69,-352],[-81,291]],[[22752,30236],[-22,-29]],[[25317,29524],[8,394]],[[27062,29521],[-4,24]],[[27058,29545],[-24,97]],[[26122,30210],[14,-464]],[[26136,29746],[9,-316]],[[23710,29558],[-123,161]],[[17149,29251],[-81,408]],[[17068,29659],[-1,5]],[[17067,29664],[-10,15]],[[17057,29679],[0,-3]],[[17057,29676],[-54,242]],[[27134,28900],[-27,91]],[[27107,28991],[-45,530]],[[21199,29253],[1,340]],[[26148,29328],[-3,102]],[[27901,29596],[-50,-711],[-61,-15]],[[27790,28870],[0,0]],[[19529,28920],[0,-803]],[[19529,28117],[0,-654]],[[25317,29524],[-8,-457]],[[23710,29558],[1,-522]],[[23777,28566],[-3,0]],[[23774,28566],[-63,0]],[[23711,28566],[0,470]],[[21199,29253],[-2,-798]],[[21197,28455],[0,-813]],[[21197,27642],[0,-810]],[[21197,26832],[-73,-163]],[[21124,26669],[-110,0]],[[24499,29515],[7,-722],[6,-241]],[[24512,28552],[0,-13]],[[24512,28539],[-27,2]],[[24485,28541],[-48,0]],[[24437,28541],[-7,0]],[[25299,28515],[10,552]],[[27680,28409],[-43,-45]],[[17564,27821],[-328,418],[-87,1012]],[[26148,29328],[16,-556]],[[26164,28772],[1,-40]],[[27173,28708],[-39,192]],[[23865,28565],[-9,0]],[[23856,28565],[-79,1]],[[18336,26742],[-386,1265]],[[17950,28007],[57,573]],[[24004,28563],[-69,2]],[[23935,28565],[-70,0]],[[17950,28007],[-386,-186]],[[24430,28541],[-169,5]],[[20700,26669],[-19,0]],[[20681,26669],[-301,5]],[[20380,26674],[-106,-2]],[[24261,28546],[-183,11]],[[24078,28557],[-74,6]],[[23711,28566],[0,-257]],[[27173,28708],[21,-92]],[[25299,28515],[-2,-116]],[[26179,28289],[-14,443]],[[27506,27795],[-43,-73]],[[27232,28056],[-38,560]],[[26179,28289],[13,-230]],[[20274,26672],[-42,-405]],[[20232,26267],[-214,0]],[[27232,28056],[4,-279]],[[27266,27706],[-30,71]],[[23711,27034],[0,365]],[[23711,27399],[0,560]],[[23711,27959],[0,350]],[[24546,27741],[-28,477],[-6,321]],[[24546,27741],[-7,-25]],[[25277,27244],[9,502]],[[25286,27746],[11,653]],[[21014,26669],[-72,0]],[[20942,26669],[-12,0]],[[20930,26669],[-230,0]],[[26208,27801],[-16,258]],[[19764,26267],[-235,-841]],[[19529,25426],[0,2037]],[[27391,27734],[0,-210]],[[27390,27442],[2,-9]],[[27390,27414],[-6,-39]],[[27359,26910],[6,8]],[[27365,26918],[-4,-100]],[[27361,26818],[-42,56]],[[27319,26874],[-7,14]],[[27312,26888],[-8,203]],[[27304,27091],[-38,614]],[[27266,27705],[0,1]],[[26208,27801],[22,-182]],[[27394,26872],[0,0]],[[27381,27086],[-9,-128]],[[27372,26958],[0,-3]],[[27372,26955],[2,-9]],[[27374,26946],[0,-12]],[[27374,26934],[-5,-4]],[[27369,26930],[-4,-12]],[[27365,26918],[-6,-8]],[[27384,27375],[-3,-289]],[[27447,27145],[0,0]],[[27436,27222],[0,0]],[[27463,27722],[-6,-37]],[[27457,27685],[-66,49]],[[24549,26882],[0,12]],[[24549,26894],[-5,6]],[[24544,26900],[-20,161]],[[24524,27061],[33,302],[-18,353]],[[26238,27372],[-8,247]],[[20018,26267],[-254,0]],[[25277,27244],[-3,-152]],[[26251,27098],[-13,274]],[[18884,25600],[-548,1142]],[[26251,27098],[-37,-311]],[[19529,25426],[-392,0]],[[23711,27034],[7,-402]],[[23756,26379],[-38,253]],[[25265,26107],[-3,365]],[[25262,26472],[12,620]],[[24549,26882],[-60,-455]],[[24489,26427],[-19,-223]],[[24470,26204],[-17,-29]],[[27280,26467],[-25,-152]],[[27306,26150],[0,0]],[[27349,26782],[2,-6]],[[27351,26775],[0,1]],[[27351,26775],[4,-31]],[[27355,26744],[-23,-10]],[[27332,26734],[17,48]],[[27312,26888],[31,-85]],[[27343,26803],[-11,-69]],[[27332,26734],[-52,-267]],[[26211,26653],[3,134]],[[26211,26653],[-20,-392]],[[26191,26261],[4,-34]],[[27292,26017],[0,-3]],[[27292,26017],[0,-3]],[[27282,26175],[-36,-149]],[[27255,26315],[27,-140]],[[20664,24117],[-162,673],[-122,739]],[[20380,25529],[-148,738]],[[23756,26379],[13,-481]],[[25265,26107],[3,-489]],[[23847,25152],[-13,-16]],[[23834,25136],[-65,762]],[[26217,25770],[-22,457]],[[26217,25770],[-11,-388]],[[24453,26175],[-39,-381],[-38,-520],[18,-110]],[[24394,25164],[-13,-357]],[[19137,25426],[-253,174]],[[25274,25021],[-6,597]],[[27267,25513],[0,0]],[[27246,26026],[22,-179]],[[27268,25847],[-55,-393]],[[27213,25454],[-1,-15]],[[25899,24796],[-56,0]],[[25843,24796],[-83,2]],[[26222,24948],[-16,434]],[[27006,24004],[-57,25]],[[27254,25381],[-16,11],[14,-13]],[[27212,25439],[0,-5]],[[27220,25420],[3,3]],[[27223,25423],[-3,-308]],[[27220,25115],[4,-151]],[[27224,24964],[1,-25]],[[27225,24939],[-35,18]],[[25274,25021],[2,-216]],[[24913,24811],[-30,0]],[[24542,24805],[-33,0]],[[24509,24805],[-128,2]],[[23846,24564],[1,588]],[[24684,24807],[-6,0]],[[24678,24807],[-71,0]],[[24607,24807],[-65,-2]],[[24764,24808],[-24,0]],[[24740,24808],[-56,-1]],[[24883,24811],[-119,-3]],[[25506,24802],[46,-954]],[[25552,23848],[-113,-480],[-40,902]],[[25399,24270],[-10,63]],[[25389,24375],[5,36]],[[26222,24948],[7,-140]],[[26229,24808],[-135,-6]],[[25760,24798],[-27,4]],[[25733,24802],[-106,3]],[[25627,24805],[-121,-3]],[[26094,24802],[-3,0]],[[26091,24802],[-149,-7]],[[25942,24795],[-43,1]],[[23846,24564],[-51,-870]],[[23795,23694],[9,-293]],[[26949,24029],[-11,5]],[[26938,24034],[-35,13]],[[25394,24411],[-110,-744]],[[25284,23667],[-5,648]],[[25279,24315],[-3,490]],[[27211,24430],[0,0]],[[27190,24957],[22,-103]],[[27212,24854],[-36,-569]],[[27176,24285],[-1,-3]],[[27175,24282],[-83,206]],[[26403,24230],[-135,41]],[[26485,24204],[-55,17]],[[26430,24221],[-27,9]],[[26688,24133],[-71,26]],[[26617,24159],[-37,13]],[[26580,24172],[-73,25]],[[26507,24197],[-22,7]],[[26268,24271],[-39,537]],[[27092,24488],[-40,-867]],[[27052,23621],[-46,383]],[[26749,24108],[-48,18]],[[26692,24131],[-4,2]],[[24923,23801],[-42,386]],[[24881,24187],[32,624]],[[25623,23959],[-1,2]],[[25622,23961],[-68,-267],[-2,154]],[[25729,23702],[-75,79],[-31,178]],[[25841,23791],[-112,-89]],[[25953,23447],[-112,205]],[[25841,23687],[0,104]],[[26903,24047],[-29,12]],[[26874,24059],[-125,49]],[[27175,24282],[1,3]],[[27176,24285],[6,-15]],[[27182,24270],[23,0]],[[27205,24270],[-28,-281]],[[25284,23667],[-47,-34]],[[25237,23633],[-89,107]],[[24923,23801],[47,-522]],[[24970,23279],[-29,-45]],[[25148,23740],[-127,-99]],[[26511,23122],[-24,8]],[[21403,22720],[-156,-987],[-152,-563],[-101,404]],[[21560,22539],[-157,181]],[[26701,24126],[-9,5]],[[25021,23641],[0,-2]],[[25021,23639],[-51,-360]],[[20994,21574],[-152,479],[-102,1013],[-46,832],[-30,219]],[[27222,23603],[4,-74]],[[27226,23529],[1,-43]],[[27227,23486],[0,-3]],[[27227,23483],[-2,-67]],[[27180,23180],[-5,490],[47,-67]],[[27225,23416],[2,67]],[[27227,23483],[0,3]],[[27227,23486],[-1,43]],[[27226,23529],[-4,74]],[[27222,23603],[17,-186]],[[27177,23989],[0,0]],[[27177,23989],[16,-85]],[[27193,23904],[1,-24]],[[27194,23880],[1,2]],[[27195,23882],[6,-2]],[[27201,23880],[1,-3]],[[27202,23877],[0,0]],[[27202,23877],[0,0]],[[27202,23877],[1,8]],[[27203,23885],[1,-5]],[[27204,23880],[2,64]],[[27206,23944],[10,-81]],[[27216,23863],[-2,-148]],[[27214,23715],[-62,-414]],[[26122,22808],[-1,194]],[[26121,23015],[0,29]],[[26121,23044],[-95,230],[-73,173]],[[23800,23042],[4,359]],[[26678,22333],[-167,789]],[[26487,23130],[-104,-234]],[[21830,21535],[-128,716],[-142,288]],[[27281,22397],[0,0]],[[27243,23122],[0,-12]],[[27243,23110],[34,-710]],[[27277,22400],[4,-22]],[[27281,22378],[1,-11]],[[27282,22367],[0,-3]],[[27282,22364],[1,-31]],[[27282,22333],[-6,-21]],[[27198,22498],[-18,682]],[[27225,23416],[0,-5]],[[27225,23411],[18,-289]],[[27243,23110],[0,12]],[[27243,23122],[-18,289]],[[27225,23411],[0,5]],[[27239,23417],[4,-307]],[[23800,23042],[-37,-347]],[[24843,21940],[-54,417]],[[26217,22536],[-1,-5]],[[26169,22376],[-47,432]],[[26121,23002],[0,13]],[[24941,23234],[-65,-283]],[[24875,22939],[0,0]],[[27152,23301],[24,-654]],[[23763,22695],[4,-322]],[[23767,22373],[-143,-244]],[[23464,22353],[-25,-248]],[[24998,22831],[5,-70]],[[25003,22761],[16,-209]],[[25019,22552],[-27,-70]],[[24992,22482],[-36,-158]],[[24956,22324],[1,-1]],[[24957,22323],[6,-23]],[[24960,22312],[-1,0]],[[24876,22951],[0,-3]],[[24876,22948],[-1,-9]],[[24875,22939],[79,-12],[44,-96]],[[24288,22636],[-96,-558],[-84,85]],[[24329,21970],[0,0]],[[24320,22458],[-32,178]],[[24108,22163],[-341,210]],[[26195,22254],[0,0]],[[26216,22531],[-47,-155]],[[26383,22896],[-113,-331],[-53,-29]],[[24498,22178],[-115,125],[-63,155]],[[24824,21885],[-1,-197]],[[24823,21688],[-9,-46]],[[24814,21642],[5,-172]],[[24812,21395],[-49,-51]],[[24763,21344],[-40,151]],[[24723,21521],[0,11]],[[24724,21563],[2,9]],[[24789,22357],[35,-472]],[[24930,21618],[0,0]],[[24936,22296],[-1,-48]],[[24935,22248],[-19,-58]],[[24916,22190],[87,-374],[99,-513],[-99,-349],[-26,734],[-88,173]],[[24889,21861],[-16,57]],[[24873,21918],[-30,22]],[[24959,22312],[-23,-16]],[[23624,22129],[-5,-12]],[[23592,22122],[-94,382],[-34,-151]],[[27185,21734],[-15,654],[28,110]],[[27176,22647],[-22,-452],[4,-419]],[[24520,21484],[-10,206],[10,-206]],[[24676,21534],[-9,-59]],[[24667,21475],[-8,24]],[[24659,21499],[-20,-170]],[[24639,21329],[-35,9]],[[24604,21338],[-60,97],[-46,743]],[[24726,21572],[-50,-38]],[[27276,22312],[12,-92]],[[27288,22220],[7,-92]],[[27295,22128],[19,-249]],[[27285,22333],[31,-453]],[[27314,21879],[-19,249]],[[27295,22128],[-7,92]],[[27288,22220],[-4,107]],[[27284,22327],[0,6]],[[21864,21242],[-34,293]],[[23410,21245],[0,0]],[[23471,21642],[-43,-185]],[[23439,22105],[32,-463]],[[23619,22117],[-27,5]],[[23428,21457],[-94,-622],[-31,-76]],[[26855,21078],[3,53]],[[26858,21131],[-92,361]],[[26766,21492],[-9,198]],[[27158,21776],[8,-176]],[[27407,20820],[0,0]],[[27354,21322],[50,-627]],[[27390,20695],[-4,0]],[[27190,21440],[-1,12]],[[27189,21452],[-4,282]],[[27314,21879],[40,-557]],[[27189,21452],[1,-12]],[[27166,21600],[23,-148]],[[23056,20479],[-10,61]],[[23006,20536],[-1,-8]],[[23005,20528],[-22,36]],[[22982,20563],[-1,3]],[[23153,20311],[-38,241],[-40,-132]],[[23303,20759],[-127,-372],[-23,-76]],[[22981,20566],[1,-38]],[[21992,19589],[-82,1012],[-46,641]],[[26889,20516],[-9,134]],[[26880,20650],[4,230]],[[26884,20880],[0,-6]],[[26884,20874],[3,-11]],[[26887,20863],[1,5]],[[26888,20868],[-13,56]],[[26875,20924],[-19,157]],[[27386,20695],[98,-1780]],[[27404,20695],[13,0]],[[27419,20695],[40,-400],[-24,-392]],[[27435,19903],[-19,662],[-26,130]],[[22999,19753],[-68,-364]],[[22933,19426],[66,327]],[[22982,20528],[4,-700],[-39,228]],[[23012,20417],[-7,111]],[[23005,20528],[1,8]],[[23046,20540],[-34,-123]],[[26879,20029],[10,487]],[[22947,20056],[-2,-239]],[[22882,19600],[-63,-260]],[[26847,19544],[32,485]],[[22874,18926],[0,0]],[[22819,19340],[16,-164]],[[22849,19042],[0,2]],[[22835,19167],[14,-125]],[[22931,19572],[-49,28]],[[22945,19817],[-2,-81]],[[22940,19633],[-9,-61]],[[22203,17855],[-75,740],[-101,901],[-35,93]],[[22835,19176],[0,-9]],[[22849,19044],[0,-2]],[[22847,19026],[-97,-101]],[[26884,19257],[-25,-498]],[[26859,18759],[-12,785]],[[26912,18563],[21,330],[-49,364]],[[22840,18709],[0,0]],[[22795,18697],[1,-292]],[[22750,18925],[45,-228]],[[27484,18915],[39,-516]],[[26908,18086],[4,477]],[[22786,17879],[32,565]],[[22825,18434],[-35,-555]],[[22796,18405],[-79,-513],[-43,-10]],[[22674,17882],[-4,7]],[[27523,18399],[35,-548]],[[27544,17791],[0,-40]],[[27544,17751],[0,-6]],[[26995,17371],[0,-12]],[[26967,17261],[-31,320]],[[26936,17581],[-1,12]],[[26935,17593],[0,3]],[[26935,17596],[-9,143]],[[26926,17739],[-8,94]],[[26918,17833],[-10,253]],[[22282,16564],[-79,1291]],[[22801,16709],[-14,138]],[[22787,16847],[-6,304]],[[22781,17151],[3,18]],[[22784,17169],[17,-460]],[[22784,17169],[-1,646]],[[22783,17815],[3,64]],[[22790,17879],[-6,-710]],[[22761,17577],[-29,-264]],[[22732,17313],[31,-697]],[[22670,17889],[4,-7]],[[22674,17882],[87,-305]],[[27544,17745],[37,-149]],[[27581,17596],[0,0]],[[27581,17596],[18,-289]],[[27593,17307],[-1,0]],[[27588,17307],[0,0]],[[27588,17307],[-2,0]],[[26995,17359],[-28,-98]],[[27049,16934],[-54,437]],[[27586,17307],[16,-1210]],[[27015,16397],[0,0]],[[27109,16114],[-54,365],[-6,455]],[[22445,15979],[-108,267],[-55,318]],[[22647,15629],[-202,350]],[[22816,16443],[-3,13]],[[22813,16456],[-19,86]],[[22794,16542],[7,74]],[[22807,16616],[9,-173]],[[22768,16458],[0,-137]],[[22768,16321],[-7,-58]],[[22761,16263],[17,0]],[[22763,16616],[5,-158]],[[27249,15133],[-46,155]],[[27203,15290],[0,-2]],[[27203,15290],[0,7]],[[27203,15297],[-21,1]],[[27182,15298],[-4,48]],[[27178,15346],[-1,5]],[[27177,15351],[-4,13]],[[27173,15364],[0,-1]],[[27173,15363],[-1,-15]],[[27172,15348],[0,-9]],[[27172,15339],[-10,55]],[[27162,15394],[-34,199]],[[27128,15593],[0,29]],[[27128,15622],[-1,7]],[[27127,15629],[-5,48]],[[27122,15677],[0,-3]],[[27122,15674],[-13,440]],[[22828,15617],[-19,-207],[-102,140],[-60,79]],[[22778,16263],[50,-646]],[[27602,16097],[-12,-644]],[[27588,15313],[-60,-1055],[-25,-181]],[[27502,14077],[-16,-43]],[[27486,14028],[0,-3]],[[27486,14025],[-102,-58]],[[27590,15453],[-2,-140]],[[27521,13940],[-4,-28]],[[27517,13912],[-1,-7]],[[27516,13905],[0,-3]],[[27516,13902],[-5,-43]],[[27511,13859],[-3,-27]],[[27508,13832],[-3,64]],[[27505,13896],[10,83]],[[27515,13979],[0,2]],[[27515,13981],[0,1]],[[27515,13982],[0,17]],[[27515,13999],[6,-59]],[[27384,13967],[-82,277],[17,12]],[[27319,14256],[1,-7]],[[27320,14249],[6,-95]],[[27326,14154],[0,-18]],[[27326,14136],[0,-14]],[[27326,14122],[2,-18]],[[27328,14104],[0,-6]],[[27328,14098],[16,-58]],[[27344,14040],[-10,197]],[[27334,14237],[-12,50]],[[27322,14287],[-2,0]],[[27320,14287],[-4,15]],[[27316,14302],[-5,404]],[[27311,14706],[0,-4]],[[27311,14702],[2,-7]],[[27313,14695],[0,-16]],[[27313,14679],[18,-34]],[[27331,14645],[0,4]],[[27331,14649],[0,5]],[[27331,14654],[-18,82]],[[27313,14736],[-9,-11]],[[27304,14725],[-30,224]],[[27274,14949],[10,40]],[[27284,14989],[1,4]],[[27285,14993],[0,2]],[[27285,14995],[-20,3]],[[27265,14998],[-16,135]],[[26757,21690],[-79,643]],[[23354,58316],[139,550],[110,-1105]],[[24957,56455],[-324,-694],[-81,-301]],[[24549,56809],[324,-378],[84,24]],[[24223,53962],[7,61]],[[24230,54023],[175,117]],[[24405,54140],[162,349],[32,-468],[-20,-199]],[[24684,53819],[-105,3]],[[24619,54132],[0,0]],[[27637,28364],[-4,-462]],[[27633,27902],[-92,-111],[12,-133]],[[27527,27594],[-21,201]],[[27690,28249],[2,-64]],[[27692,28185],[-12,224]],[[27790,28870],[-7,-299]],[[27783,28571],[-93,-322]],[[6538,2301],[-58,813],[-2,1446],[122,-47],[126,-676],[-42,-874],[-146,-662]],[[5489,7808],[-81,498],[122,-55],[-41,-443]],[[6194,6504],[-45,-122],[18,148]],[[6181,5693],[36,57],[-36,-57]],[[6263,5263],[0,0]],[[6344,5400],[-88,696],[124,-23],[55,-530],[-91,-143]],[[5945,6665],[-86,608],[131,-516],[-45,-92]],[[5278,7638],[15,167],[-15,-167]],[[99849,62690],[-75,447],[75,-447]],[[778,63398],[0,0]],[[833,63475],[0,0]],[[886,63617],[0,0]],[[344,63153],[-79,572],[105,-215],[-26,-357]],[[540,63363],[0,206],[0,-206]],[[99643,63716],[0,0]],[[614,63140],[52,393],[81,99],[-102,-407],[-31,-85]],[[99953,63664],[43,190],[-43,-190]],[[857,63843],[0,0]],[[99312,63579],[70,549],[-43,-354],[-27,-195]],[[1574,63946],[-110,220],[208,-146],[-98,-74]],[[1841,64363],[65,153],[-65,-153]],[[1129,63904],[161,256],[100,524],[21,-543],[-157,-194],[-125,-43]],[[98292,64565],[21,3],[-21,-3]],[[2329,64909],[0,0]],[[2627,65344],[3,209],[-3,-209]],[[98084,65292],[-77,334],[133,126],[19,-377],[-75,-83]],[[2802,65454],[207,800],[94,564],[-125,-948],[-176,-416]],[[3604,67078],[0,0]],[[3201,66211],[50,385],[88,296],[43,279],[91,488],[134,-161],[-86,-521],[-320,-766]],[[2663,72349],[0,0]],[[2465,73417],[0,0]],[[3929,67750],[0,0]],[[3695,67690],[41,208],[-41,-208]],[[3784,67824],[42,197],[-42,-197]],[[4605,68312],[0,0]],[[4689,69168],[0,0]],[[4039,68354],[24,902],[287,332],[28,-631],[-182,-176],[-157,-427]],[[5487,69379],[0,0]],[[4849,69589],[0,0]],[[5436,69558],[0,0]],[[5271,69235],[67,345],[-67,-345]],[[5241,69942],[0,0]],[[5106,69709],[101,128],[-101,-128]],[[5293,70190],[0,0]],[[5642,72970],[0,-127]],[[5456,70676],[-115,328],[-177,-435],[-107,-262],[-101,260],[-91,-320],[-105,-623],[-129,79],[-36,-209],[-152,239],[-27,-293],[115,548],[91,375],[413,879],[79,-404],[148,76],[-22,978],[402,1095]],[[13205,69728],[0,0]],[[13355,69846],[-28,487],[-115,332],[131,633],[12,-1452]],[[6096,76208],[78,519]],[[5035,76091],[0,0]],[[5035,76603],[-74,-161]],[[5589,76635],[89,-511]],[[5678,76124],[-175,368],[-112,85],[-127,337],[-165,-226]],[[5099,76688],[-54,-52]],[[6125,76674],[-331,-247],[-75,346],[-130,-138]],[[6115,72321],[0,0]],[[6349,73509],[-124,-473],[-111,-258],[-73,-264],[-184,-179],[-1,-127],[-21,-313],[-109,-391],[-75,-146],[-152,-400],[-43,-282]],[[5642,72843],[219,1026],[142,501],[54,1023],[39,815]],[[6174,76727],[-49,-53]],[[6561,70864],[0,0]],[[6992,72274],[0,0]],[[6794,72099],[0,0]],[[6984,72435],[0,0]],[[7199,73194],[34,190],[-34,-190]],[[7462,74857],[0,0]],[[7226,74697],[0,0]],[[6968,72731],[69,699],[-95,81],[33,-64],[-117,106],[-27,608],[235,-355],[26,659],[33,299],[94,111],[121,39],[94,-42],[86,-512],[-204,-244],[-35,-272],[-158,-459],[-155,-654]],[[7297,75038],[-38,200],[38,-200]],[[7476,75855],[65,-494],[-196,-167],[-108,282],[108,111],[112,66],[19,202]],[[7381,76133],[0,0]],[[7214,76666],[-22,-1]],[[7192,76665],[-175,-684],[-52,-323],[-117,-537],[-200,-497],[-117,-218],[-120,-316],[-62,-581]],[[12366,75252],[5,175]],[[12371,75427],[0,-3]],[[12381,75492],[103,-178]],[[12498,75431],[0,0]],[[12484,76871],[267,-997],[57,-517]],[[12715,74938],[-33,-160]],[[12655,74703],[-69,962],[-69,-212],[-203,853],[0,575]],[[12311,76882],[-61,4]],[[12500,71022],[0,0]],[[13038,71188],[-70,608],[98,-87],[-28,-521]],[[12892,71782],[71,296],[-71,-296]],[[13083,71690],[12,293],[-12,-293]],[[13006,72478],[0,0]],[[12908,72271],[-2,556],[2,-556]],[[12615,72742],[-8,-441],[-33,-793],[-77,498],[-9,396],[28,684],[99,-344]],[[12660,72704],[84,521],[112,-753],[-24,-147],[-158,-160],[-14,539]],[[13033,73861],[67,-885],[295,-875]],[[13073,70867],[127,867],[-165,610],[-114,565],[-115,629],[-93,4]],[[11922,74760],[-12,-1]],[[11903,74758],[110,9]],[[11893,74787],[0,0]],[[12713,73542],[38,429],[-81,403],[26,263],[2,222]],[[12708,74912],[7,26]],[[12808,75357],[225,-1496]],[[12484,75314],[2,2]],[[12529,75370],[57,-872],[-100,567],[62,-912],[-13,-553],[-99,201],[-62,754],[-8,697]],[[12108,75160],[-28,-110]],[[12080,75050],[126,246]],[[12206,75296],[31,-310],[-188,89]],[[12015,74776],[-60,586],[182,108],[-29,-310]],[[12371,75424],[10,68]],[[12062,75988],[-32,784],[-78,-298],[-169,378],[83,-342],[46,-884],[-145,90],[-288,850]],[[11595,76760],[289,658]],[[12161,76003],[-99,-15]],[[12201,77569],[-9,22]],[[12099,78291],[172,-561],[19,-151]],[[12314,76881],[-3,1]],[[12250,76886],[-49,683]],[[12290,77579],[153,-400],[41,-308]],[[12192,77591],[-5,-716],[86,-1362],[-112,490]],[[11884,77418],[38,633],[177,240]],[[12070,73189],[-7,651],[7,-651]],[[12285,72715],[-93,388],[-43,549],[26,596],[167,-274],[60,-1268],[-9,-883]],[[12393,71662],[-108,1053]],[[11934,74683],[-12,77]],[[12013,74767],[2,9]],[[12049,75075],[220,-449],[4,-547],[-126,16],[-213,588]],[[4001,83653],[0,0]],[[4259,83451],[-234,958],[203,-704],[31,-254]],[[4192,84190],[-67,628],[157,-398],[-90,-230]],[[3903,80509],[38,343],[-153,-28],[-95,611],[-68,401],[149,393],[155,1298],[337,-141],[-74,789],[213,267],[210,447]],[[3609,78331],[-256,445],[77,525],[208,100],[140,-781],[-169,-289]],[[1910,79346],[-184,574],[184,-574]],[[4013,79338],[-125,385],[91,689],[184,-355],[-95,-543],[-55,-176]],[[4902,77138],[-111,505],[-40,940],[-64,908],[-72,-97],[-51,-610],[-325,-353],[-126,507],[-38,874],[167,449],[141,-114],[-67,257],[-95,340],[-184,-211],[-134,-24]],[[5045,76636],[-10,-33]],[[4961,76442],[-203,-214],[79,631],[65,279]],[[8332,81549],[-208,-449],[-275,-85]],[[8387,80363],[-287,581],[232,605]],[[9624,78418],[0,0]],[[8666,78680],[0,0]],[[8662,78874],[0,0]],[[8602,78821],[0,0]],[[8713,78358],[259,1026],[-139,-823],[-120,-203]],[[9058,79230],[7,463],[84,-259],[-91,-204]],[[8702,79277],[0,0]],[[8492,79649],[195,-79],[-95,-558],[-102,-363]],[[9173,79634],[0,0]],[[8697,80017],[0,0]],[[8630,79964],[0,0]],[[8494,80038],[105,161],[-105,-475]],[[8668,80254],[0,0]],[[8747,80338],[8,836],[-187,-517],[-29,-359],[-45,-148]],[[10627,82337],[0,-2812]],[[9823,78789],[-225,511],[-84,480],[-205,-102],[-51,437],[-112,111],[24,227],[-108,355],[-75,-222],[-175,-124],[-65,-124]],[[7140,77530],[0,0]],[[7918,77470],[0,0]],[[7543,79429],[0,0]],[[8494,80150],[0,-112]],[[8494,79724],[-2,-75]],[[8490,78649],[-168,-14],[-100,-30],[-87,-455],[-95,-12],[-126,-413],[-182,-329],[-70,443],[123,277],[-175,159],[125,1195],[90,792],[278,233],[284,-132]],[[7849,81015],[-203,-855],[-148,-630],[-94,-637],[-197,-449],[-24,-218],[-120,-300],[-102,-962],[231,-176],[7,-124]],[[11073,77696],[-82,343]],[[10991,78039],[52,861],[-540,-320],[22,268],[-635,15],[-67,-74]],[[10627,79525],[285,-390],[258,-349],[432,-1879],[-7,-147]],[[11479,76566],[-145,717],[-261,413]],[[10627,94617],[0,-4941]],[[10627,89676],[0,-7339]],[[7949,98194],[0,0]],[[4758,97701],[370,402],[175,-96],[2,557],[311,274],[606,970],[194,-236],[17,-374],[344,250],[250,-395],[474,-101],[-106,-527],[387,-340],[310,131],[449,-119],[364,-405],[538,-298],[697,98],[384,-761],[103,-2114]],[[3841,93742],[-270,690],[566,984],[356,1130],[153,835],[227,476],[-115,-156]],[[4108,91048],[160,-570],[21,-388]],[[4289,90090],[385,-72],[228,394],[-97,219],[-200,911],[153,-374],[356,-517],[38,410],[-231,-116],[2,807],[-409,131],[-439,1287],[-234,572]],[[4620,85381],[0,0]],[[2649,84266],[-265,848],[-321,-46],[70,419],[336,171],[203,-604],[70,-329],[-93,-459]],[[5052,87977],[-187,-281],[-238,-465],[-182,218],[-113,-158],[-396,-240],[-408,675],[-24,608],[255,-141],[-71,188],[-416,469],[-52,574],[200,411],[349,342],[50,538],[289,333]],[[4615,84889],[121,292],[385,633],[-138,1144],[131,438],[-62,581]],[[12956,69029],[0,0]],[[13317,69219],[0,0]],[[12925,69473],[-21,387],[21,-387]],[[12930,68872],[-132,1072],[123,-767],[9,-305]],[[13247,69478],[75,326],[-75,-326]],[[12761,69871],[30,109],[-30,-109]],[[12684,69935],[12,183],[-12,-183]],[[12707,70286],[0,0]],[[12629,70305],[0,0]],[[12756,70325],[0,0]],[[12710,70782],[0,0]],[[12785,70929],[0,0]],[[12656,71166],[119,461],[-119,-461]],[[12877,71377],[0,5]],[[12877,71382],[120,-652],[9,-203],[84,-353],[38,-171],[14,-713],[-147,209],[-122,497],[-22,327],[-102,319],[33,987],[-50,326],[145,-578]],[[13062,70861],[11,6]],[[13395,72101],[178,-488],[119,-436],[-28,-1331],[-192,-647],[-82,655],[-85,1424],[-107,-283],[-136,-134]],[[31178,1304],[23,73]],[[31195,919],[-2,184]],[[31290,1513],[20,-8]],[[31284,522],[-34,-5]],[[31429,566],[-31,6]],[[31271,1506],[19,7]],[[31329,564],[-16,40]],[[31375,1499],[25,12]],[[31310,1505],[50,3]],[[31400,1511],[26,-5]],[[31513,1444],[13,14]],[[31493,1404],[0,0]],[[31492,1426],[1,-22]],[[31398,572],[-25,-14]],[[31426,1506],[10,-15]],[[31193,1103],[-11,55]],[[31250,517],[-36,-12]],[[31214,505],[-19,414]],[[31549,569],[-31,-3]],[[31201,1377],[0,2]],[[31201,1379],[15,182]],[[31313,604],[-27,-82]],[[31466,535],[-8,-54]],[[31458,481],[-29,85]],[[31257,1516],[14,-10]],[[31360,1508],[15,-9]],[[31493,1404],[20,40]],[[31504,544],[-38,-9]],[[31286,522],[-2,0]],[[31373,558],[-44,6]],[[31216,1561],[41,-45]],[[31580,736],[-15,-109]],[[31464,1471],[21,-4]],[[31837,1170],[0,0]],[[31885,1161],[0,0]],[[31593,1322],[22,-42]],[[31526,1458],[45,-64]],[[31565,627],[-16,-58]],[[31571,1394],[22,-72]],[[31618,992],[-22,-62]],[[31615,1280],[10,-145]],[[31625,1135],[-7,-143]],[[31596,930],[-16,-194]],[[31654,755],[0,0]],[[31830,0],[51,45],[-51,-45]],[[31436,1491],[28,-20]],[[12393,71823],[0,-161]],[[11910,74759],[-7,-1]],[[12486,75316],[43,54]],[[7199,76664],[15,2]],[[5642,72987],[0,-17]],[[12698,74859],[10,53]],[[12682,74778],[-19,-87]],[[12663,74691],[-8,12]],[[6167,6530],[27,-26]],[[31485,1467],[7,-41]],[[31518,566],[-14,-22]],[[31182,1158],[-4,146]],[[25389,24333],[0,42]],[[29700,43907],[2,-8]],[[27362,21240],[-8,82]],[[27354,21322],[-40,557]],[[27284,22333],[-2,31]],[[27282,22364],[0,3]],[[27282,22367],[-1,11]],[[27281,22378],[4,-45]],[[27316,21880],[46,-640]],[[27503,14077],[12,-78]],[[27515,13999],[0,-17]],[[27515,13982],[0,-3]],[[27515,13979],[-13,98]],[[27486,14034],[19,-138]],[[27505,13896],[-19,132]],[[26856,21081],[-1,-3]],[[25841,23652],[0,35]],[[27283,22333],[1,-6]],[[27284,22327],[-2,6]],[[27417,20695],[2,0]],[[27558,17851],[-14,-60]],[[27599,17307],[-6,0]],[[27592,17307],[-4,0]],[[27252,25379],[2,2]],[[27212,25434],[1,20]],[[27213,25454],[8,-22]],[[27221,25432],[-1,-12]],[[24963,22300],[-3,12]],[[24819,21470],[-7,-75]],[[24723,21495],[0,26]],[[24723,21532],[1,24]],[[24724,21556],[0,7]],[[30135,46090],[-18,-72]],[[30110,46013],[3,-39]],[[30179,45778],[12,-45]],[[28577,40083],[12,5]],[[28807,32602],[0,11]],[[28259,30940],[1,-6]],[[28903,40411],[-2,5]],[[29368,42670],[-8,46]],[[27553,27658],[-26,-64]],[[27391,27524],[-1,-82]],[[27392,27433],[-2,-19]],[[22801,16709],[6,-93]],[[22801,16616],[-7,140]],[[22794,16756],[7,-47]],[[22818,18444],[7,-10]],[[22931,19389],[2,37]],[[23075,20420],[-19,59]],[[22983,20564],[-1,-1]],[[22943,19736],[0,-10]],[[22943,19726],[0,-84]],[[22943,19642],[-3,-9]],[[22849,19042],[-2,-16]],[[28549,36663],[0,0]],[[28622,36237],[15,43]],[[28637,36280],[-6,-94]],[[28371,36551],[17,-30]],[[28624,35785],[5,-105]],[[28625,35633],[31,31]],[[28656,35664],[13,4]],[[28446,39406],[0,-2]],[[28446,39404],[-1,-95]]]},unemployment2:[{id:1,state:"Alabama",rate:6.45},{id:2,state:"Alaska",rate:7.45},{id:4,state:"Arizona",rate:8.53},{id:5,state:"Arkansas",rate:4.5},{id:6,state:"California",rate:6.53},{id:8,state:"Colorado",rate:3.3},{id:9,state:"Connecticut",rate:5.36},{id:10,state:"Delaware",rate:4.43},{id:11,state:"District of Columbia",rate:6.5},{id:12,state:"Florida",rate:5.2},{id:13,state:"Georgia",rate:5.91},{id:15,state:"Hawaii",rate:3.48},{id:16,state:"Idaho",rate:3.84},{id:17,state:"Illinois",rate:5.76},{id:18,state:"Indiana",rate:4.6},{id:19,state:"Iowa",rate:4.1},{id:20,state:"Kansas",rate:4.44},{id:21,state:"Kentucky",rate:5.96},{id:22,state:"Louisiana",rate:7.62},{id:23,state:"Maine",rate:3.64},{id:24,state:"Maryland",rate:4.82},{id:25,state:"Massachusetts",rate:3.64},{id:26,state:"Michigan",rate:4.92},{id:27,state:"Minnesota",rate:4.13},{id:28,state:"Mississippi",rate:6.69},{id:29,state:"Missouri",rate:5.94},{id:30,state:"Montana",rate:4.15},{id:31,state:"Nebraska",rate:3.16},{id:32,state:"Nevada",rate:5.81},{id:33,state:"New Hampshire",rate:2.83},{id:34,state:"New Jersey",rate:5.51},{id:35,state:"New Mexico",rate:7.14},{id:36,state:"New York",rate:4.56},{id:37,state:"North Carolina",rate:5.47},{id:38,state:"North Dakota",rate:3.05},{id:39,state:"Ohio",rate:4.9},{id:40,state:"Oklahoma",rate:5.59},{id:41,state:"Oregon",rate:5.97},{id:42,state:"Pennsylvania",rate:6.42},{id:44,state:"Rhode Island",rate:5.28},{id:45,state:"South Carolina",rate:6.42},{id:46,state:"South Dakota",rate:3.26},{id:47,state:"Tennessee",rate:5.72},{id:48,state:"Texas",rate:5.58},{id:49,state:"Utah",rate:4.34},{id:50,state:"Vermont",rate:3.62},{id:51,state:"Virginia",rate:4.74},{id:53,state:"Washington",rate:6.46},{id:54,state:"West Virginia",rate:6.48},{id:55,state:"Wisconsin",rate:4.13},{id:56,state:"Wyoming",rate:4.57},{id:72,state:"Puerto Rico",rate:14.02}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-dot-map",name:"\u70B9\u5730\u56FE",description:"\u5728\u5730\u56FE\u4E0A\u6807\u8BB0\u771F\u5B9E\u4F4D\u7F6E\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u70B9\u5730\u56FE",datasets:{"us-10m":{type:"Topology",transform:{scale:[.003589294092944858,.0005371535195261037],translate:[-179.1473400003406,17.67439566600018]},objects:{states:{type:"GeometryCollection",geometries:[{type:"MultiPolygon",arcs:[[[2170]],[[2171]],[[2172]],[[2173]],[[2174]],[[2175]],[[2176]],[[2177]],[[2178]],[[2179]],[[2180]],[[2181]],[[2182]],[[2183]],[[2184]],[[2185]],[[2186]],[[2187]],[[2188]],[[2189]],[[2190]],[[2193]],[[2194]],[[2195]],[[2196]],[[2331]],[[2197]],[[2332]],[[2198]],[[2199]],[[2200]],[[2333]],[[2201]],[[2334]],[[2335]],[[2202]],[[2336]],[[2203]],[[2204]],[[2208]],[[2337]],[[2205]],[[2338]],[[2339]],[[2340]],[[2341]],[[2221]],[[2342]],[[2242]],[[2209]],[[2343]],[[2243]],[[2344,2345]],[[2244]],[[2245]],[[2222]],[[2217]],[[2223]],[[2224]],[[2191]],[[2246]],[[2247]],[[2248]],[[2249]],[[2225]],[[2192]],[[2275]],[[2276,2394,2277]],[[2226]],[[2227]],[[2228]],[[2254]],[[2229]],[[2260,2261,2262,2280,2278,2252,2395,2253,2279,2263]],[[2237]],[[2236,2258,2396,2259,2234,2235,2264]],[[2230]],[[2231]],[[2211]],[[2309]],[[2310]],[[2293]],[[2294]],[[2295]],[[2296]],[[2297]],[[2285]],[[2298]],[[2311]],[[2299]],[[2286]],[[2301]],[[2302]],[[2303]],[[2287]],[[2305]],[[2281]],[[2282]],[[2283]],[[2327]],[[2328]],[[2322]],[[2265,2319,2316,2317,2308,2306,2312,2304,2313,2300,2314,2292,2291,2315,2397,2232,2233,2218,2207,2398,2206,2219,2210,2220,2216,2213,2214,2215,2289,2212,2290,2288,2284,2330,2329,2325,2326,2324,2323,2320,2321,2307,2318,2266,2274,2269,2272,2238,2257,2250,2347,2346,2251,2255,2399,2256,2239,2400,2401,2240,2270,2241,2271,2268,2273,2267]]],id:2},{type:"MultiPolygon",arcs:[[[2162]],[[2166]],[[2165]],[[2167]],[[2402,2164]],[[2168]],[[2169]],[[2163]]],id:15},{type:"MultiPolygon",arcs:[[[2391]],[[2372,2353,2350,2356,2373,2355,2357,2362,2393,2380,2403,2360,2359,2374,2358,2384,2386,2383,2388,2389,2387,2390,2379,2385,2366,2404,2375,2370,2371,2352,2361,2377,2354,2369,2376,2351,2364,2365,2349,2363,2405,2348,2367,2368,2378]]],id:72},{type:"MultiPolygon",arcs:[[[-1500,-1499,-1502,-1501,-1508,1544,-1548,-1549,1557,-1581,-1582,1584,-1618,1628,1629,-1640,1662,1663,-1682,1684,-1700,1712,-1731,-1734,1735,-1755,1755,1756,-1768,1768,-1780,1803,1804,1808,1809,1810,1777,1778,1805,1806,1807,1799,1800,1801,2406,1802,1815,1816,1817,-1789,1772,-1765,1739,1740,-1733,1694,1695,-1681,1659,-1645,1625,-1619,1602,-1595,1583,-1543,-1544,1541,-1484,-1466,-1467,-1472,-1471]]],id:1},{type:"Polygon",arcs:[[-1305,-1304,-1291,-1358,-1357,-1356,-1365,-1364,-1363,-1265,-1332,-1331,-1330,-1355,-1354,-1317,-1379,-1378,-1377,-1376,-1409,-1424,1432,1433,1434,1435,-1454,1474,1475,1476,1554,-1557,1574,1575,-1617,-1616,1654,1655,1656,1657,1658,1672,1676,1677,1669,1670,1665,1666,1646,1647,1648,-1646,1630,-1590,-1589,-1588,1573,-1498,-1497,1472,1473,-1455,1444,-1427,1417,1406,-1372,-1368]],id:5},{type:"Polygon",arcs:[[-1074,-1272,1272,1273,1274,-1583,1642,1643,-1702,1736,1771,1734,1667,1668,1603,1604,-1443,-1442,-1350,-1055,-1176,-1195,-1194,-1076,-1075]],id:4},{type:"MultiPolygon",arcs:[[[1561]],[[1562]],[[1528]],[[1529]],[[-424,-423,-426,611,-616,-615,-614,-613,932,933,-976,-975,-974,-874,-977,1044,-1078,-963,1207,-1351,1441,1442,-1605,-1604,-1669,1671,1661,1631,1632,1633,1634,1635,1563,1564,1565,1566,1567,1568,1555,1530,1443,1320,1242,1162,1149,1161,1197,1143,1121,1093,1042,1062,1027,1061,1028,1029,1092,1030,852,666,667,610,-486,-499,-498,-484]]],id:6},{type:"Polygon",arcs:[[-539,-538,-650,-649,-675,-674,-670,-669,-693,-709,-708,751,-757,780,781,-852,903,904,-969,982,-1049,-1048,1100,1101,-1158,1167,1168,1169,1150,1151,1165,1166,1213,1214,1211,1212,1171,1170,-1073,-1072,-1071,1055,-916,840,-743,-742,709,710,-570,-537,-536,-535]],id:8},{type:"MultiPolygon",arcs:[[[-550,-549,-548,-508,-507,-506,602,603,-625,635,636,651,652,2407,653,643,644,645,646,-588,-587,-500]]],id:9},{type:"MultiPolygon",arcs:[[[992,993,-929,-973]]],id:11},{type:"MultiPolygon",arcs:[[[863,927,994,995,996,997,998,999,-966,925,926,-923,864,865,-816,-846,-867,-845]]],id:10},{type:"MultiPolygon",arcs:[[[2108,2109,2110,2111,2112,2113,2114,2115,2116,2117,2118]],[[2071]],[[1980]],[[1932]],[[2408,2409,1966,1967,1968,1969,2410,2411,2412,2413,1965,2414]],[[1892]],[[1906,1903,1904,1905,1866,1867,1868,1869,1870]],[[2103,2415,2416,2417,2418,2104,2419,2420,2105,2106,2119,2120,2121,2122,2123,2124,2125,2126,2127,2128,2129,2130,2131,2132,2133,2134,2135,2136,2137,2138,2139,2140,2141,2142,2143,2144,2145,2083,-2085,2085,2086,2087,2088,2089,2090,2091,2092,2093,2094,2095,2096,2097,2098,2099,2072,2069,2043,2068,2044,2045,2046,2047,2048,2049,2035,2030,2028,2029,2016,2013,1996,1997,1998,1999,2e3,2001,2002,2421,1976,1977,1978,2146,1889,1854,1890,1934,1909,1933,1910,1885,1911,1886,1887,1841,2422,1842,1840,1839,1837,1838,-1800,-1808,-1807,-1806,-1779,-1778,-1811,-1810,-1809,-1805,-1831,-1824,-1826,-1825,-1830,-1829,-1828,-1827,-1835,-1858,-1834,-1845,-1844,-1815,-1814,-1781,-1833,-1832,-1823,1845,1846,1847,1848,1871,1872,1873,1874,1875,1876,-1878,1878,1879,1880,1881,1882,1883,1884,1914,1954,1979,1987,1986,1983,1984,1953,1900,1865,1861,1862,1863,1864,1901,1902,1893,1894,1895,1896,1897,1898,2423,2424,1899,1962,1963,1964,1985,1981,2004,2425,2005,2006,1982,2003,2034,2040,2426,2041,2042,2062,2063,2064,2427,2065,2428,2066,2067,2070,2102,2107]]],id:12},{type:"MultiPolygon",arcs:[[[1818]],[[2429,1781]],[[1773]],[[-1758,1758]],[[1745]],[[1746,-1748,1748,1749,1750]],[[1759,1774,1775,1776,1782,2430,2431,2432,1783,1784,1785,1786,1787,1819,1820,1821,1822,1831,1832,1780,1813,1814,1843,1844,1833,1857,1834,1826,1827,1828,1829,1824,1825,1823,1830,-1804,1779,-1769,1767,-1757,-1756,1754,-1736,1733,1730,-1713,1699,-1685,1681,-1664,-1663,1639,-1630,-1629,1617,-1585,1581,1580,-1558,1548,1547,-1545,-1507,-1470,-1469,-1468,-1504,-1503,-1513,-1512,-1510,-1509,-1523,-1522,-1521,-1505,-1537,-1536,-1535,-1534,-1533,-1532,-1571,-1570,-1594,1608,-1622,-1621,-1620,-1628,-1627,-1638,-1637,-1665,1679,-1684,1687,-1689,-1712,-1711,-1710,1751,1752,1753,1744,1760]]],id:13},{type:"Polygon",arcs:[[-417,439,-449,-467,-466,-465,510,-529,544,-577,600,601,-622,-621,-620,671,-682,703,-705,745,746,728,729,730,731,738,739,736,737,734,735,732,733,726,727,724,725,722,723,-706,696,-696,-695,662,663,-641,617,-600,575,-569,520,521,-478,-477,462,-441,438,-410,-391,-394,-393,-407,-406,-405,-412,-411,-409,-408,-396,-395,-399,-398,-397,-404,-403,-402,-401]],id:19},{type:"Polygon",arcs:[[32,-38,63,-151,158,-167,-164,-163,188,-191,-255,-254,-253,-257,-233,336,-343,-342,421,-454,-453,515,539,529,530,508,509,487,419,420,-355,353,-353,-352,333,-301,294,-250,189,192,193,194,-173,-172,168,-161,-160,64,-52,33,34]],id:16},{type:"Polygon",arcs:[[-497,-496,-491,-490,-493,-492,-495,-494,-513,-512,531,-533,577,578,634,-638,686,-694,706,-754,773,774,-833,858,-901,916,-949,-948,-947,961,-1025,-1024,1059,-1064,1106,-1113,-1112,1140,-1146,1179,1180,1181,1182,-1211,1233,1237,1238,1234,1235,1236,-1179,-1178,-1177,-1145,1139,1113,1114,1064,1065,-1027,-1026,-1037,989,990,991,943,920,921,-902,861,862,-856,820,-815,758,759,-746,704,-704,681,-672,619,620,621,-602,-601,576,-545,528,-511,-464]],id:17},{type:"Polygon",arcs:[[-597,-596,-592,-591,-595,628,-639,659,-671,689,690,-712,714,-756,769,-784,-783,850,-857,878,-903,-938,938,939,-965,-964,1019,1020,1021,1022,-1044,1056,1057,1088,1083,1084,1085,1082,1103,1104,1105,1115,1116,1107,1108,1117,1118,1109,1110,1111,1112,-1107,1063,-1060,1023,1024,-962,946,947,948,-917,900,-859,832,-775,-774,753,-707,693,-687,637,-635,-579,-578,-627,-626,-628,-575,-574,-599,-598]],id:18},{type:"Polygon",arcs:[[-791,-799,-798,-797,-794,-793,-800,-788,-787,-786,-785,-790,-789,-795,-796,-773,-772,-809,-808,-813,-812,-811,-814,-838,853,-868,895,-913,-912,-919,-959,-958,978,-1036,1041,-1077,1091,-1124,-1123,1163,1164,-1230,1230,1231,1232,1226,1227,1220,1221,1240,1241,1198,1199,1200,1201,1222,1223,1205,1206,1224,1225,1203,1204,1202,1218,1219,1217,1215,1216,-1168,1157,-1102,-1101,1047,1048,-983,968,-905,-904,851,-782,-792]],id:20},{type:"MultiPolygon",arcs:[[[-936,-935,-943,-942,-941,-951,-950,981,-981,-980,-989,-988,-987,-986,-1035,-1034,1069,1068,-1088,-1087,-1137,-1136,1153,1154,1155,1156,1243,-1248,1268,1296,1297,1291,1292,1294,1295,1288,1289,1327,1328,1300,1351,1352,1301,1302,1335,1336,1255,1256,1257,1248,1249,1269,1369,1370,1298,1299,1365,1366,1372,1373,-1340,-1261,-1260,-1259,1245,-1235,-1239,-1238,-1234,1210,-1183,-1182,-1181,-1180,1145,-1141,-1111,-1110,-1119,-1118,-1109,-1108,-1117,-1116,-1106,-1105,-1104,-1083,-1086,-1085,-1084,-1089,-1058,-1057,1043,-1023,-1022,-1021,-1020,963,964,-940,-939,-937]]],id:21},{type:"MultiPolygon",arcs:[[[1955]],[[1944]],[[1929]],[[1918,1919,1920,1921,1922,1923,2433,1924,1950,1945,1946,1947,1948,1949,1908,1943,1936,1937,1938,2434,1939,1940,2435,1941,2436,2437,1942,1961,1956,1957,1958,1959,1960,1935,1930,1928,1931,-1916,-1908,1888,-1813,-1812,1792,1765,1766,-1764,1738,-1738,1689,1690,1691,-1679,-1648,-1647,-1667,-1666,-1671,-1670,-1678,-1677,-1673,-1659,-1658,-1657,-1693,1693,-1730,-1729,-1728,-1727,1741,1742,1743,1769,1770,-1792,-1791,-1796,-1795,-1794,-1798,-1797,-1799,-1790,-1837,-1836,1851,1852,1912,1925,1926,1913,1927]]],id:22},{type:"MultiPolygon",arcs:[[[672]],[[661]],[[588,564,579,580,581,582,583,546,504,505,506,507,547,548,549,499,500,501,-485,-456,-455,-462,-473,-472,-471,-470,-469,-468,-460,488,2438,502,2439,503,533,545,565,2440,563,589]]],id:25},{type:"MultiPolygon",arcs:[[[944]],[[1078,1079,1080,1095,1096,1094,1060,1046,1045,966,967,1003,1004,945,923,889,890,891,892,924,955,2441,956,953,954,1037,1038,969,970,1049,1067,1066,1050,971,972,928,929,930,893,879,880,881,882,883,884,885,886,887,888,-834,-807,-806,-801,-832,-831,-805,-804,-843,-842,-820,-819,-818,-803,-802,-817,-866,-865,922,-927,-926,965,-1e3,-999,-998,1081]]],id:24},{type:"MultiPolygon",arcs:[[[296]],[[297]],[[377,378,362,338,380,373,376,375,374,412,413,-369,-368,285,286,287,288,264,202,167,263,298,210,335,359,360,361,379]]],id:23},{type:"MultiPolygon",arcs:[[[-150]],[[-149]],[[-99,-98,-97,-96,-95,-94,-93,-92,-91,-90,-89,-88,-87,-86,-630,584,585,592,593,594,590,591,595,596,597,598,573,574,-113,-112,-111,-110,-109,-108,-107,-106,-105,-104,-103,-102,-101,-100]],[[-148]],[[-146,-147]],[[-145,-144]],[[-143]],[[-130,-129,-128,-127,-126,-125,-124,-123,-122,-121,-120,-119,-118,-117,-116,-115,-114,250,251,227,228,229,205,206,207,178,179,180,181,-133,-132,-131]],[[-142,-141,-140,-139,-138,-137,-136]],[[-135]]],id:26},{type:"MultiPolygon",arcs:[[[65,81,152,2149,2148,151,67,68,69,70,71,72,73,74,75,76,77,78,79,80,176,177,208,209,-237,261,-263,292,293,331,-333,339,-341,-348,-347,-346,-349,371,-383,-382,399,400,401,402,403,396,397,398,394,395,407,408,410,411,404,405,406,392,393,390,391,-371,369,343,-331,-330,295,-290,267,-256,248,-197,195,174,-174,165,-162,154,-154,82,83,-45,46,60,2147]]],id:27},{type:"Polygon",arcs:[[-747,-760,-759,814,-821,855,-863,-862,901,-922,-921,-944,-992,-991,-990,1036,1025,1026,-1066,-1065,-1115,-1114,-1140,1144,1176,1177,1178,-1237,-1236,-1246,1258,1259,1260,1339,1340,1341,1342,-1405,1407,1408,1375,1376,1377,1378,1316,1353,1354,1329,1330,1331,1264,1362,1363,1364,1355,1356,1357,1290,1303,1304,1367,1368,-1271,1265,-1231,1229,-1165,-1164,1122,1123,-1092,1076,-1042,1035,-979,957,958,918,911,912,-896,867,-854,837,813,-810,-771,768,-751,-723,-726,-725,-728,-727,-734,-733,-736,-735,-738,-737,-740,-739,-732,-731,-730,-729]],id:29},{type:"MultiPolygon",arcs:[[[-1485,-1542,1543,1542,-1584,1594,-1603,1618,-1626,1644,-1660,1680,-1696,-1695,1732,-1741,-1740,1764,-1773,1788,-1818,-1817,1849,1850,1853,1858,1859,-1852,1835,1836,1789,1798,1796,1797,1793,1794,1795,1790,1791,-1771,-1770,-1744,-1743,-1742,1726,1727,1728,1729,-1694,1692,-1656,-1655,1615,1616,-1576,-1575,1556,-1555,-1477,-1476,-1491,-1490,-1495,-1494,-1480,-1479,-1478,-1496,-1486]]],id:28},{type:"Polygon",arcs:[[40,58,54,41,42,35,30,43,62,-56,61,-67,155,-157,169,-171,185,186,187,237,238,239,257,258,259,246,247,265,266,233,230,231,232,256,252,253,254,190,-189,162,163,166,-159,150,-64,37,-33,38,31]],id:30},{type:"MultiPolygon",arcs:[[[1418,2442,1419]],[[1420]],[[-1306,1388,1422,1389,1390]],[[-1308,1391,-1393,1393]],[[1386,1394,1395,1396,1397,1401,1402,-1396,1403,1410,1411,1385,1398,1416,1437,1436,1449,1421,1450,1448,1440,1447,1505,1488,1513,1487,1527,1523,1524,1525,1526,1545,1546,1571,1572,1595,2443,1596,1597,1598,1599,1600,1601,1592,1549,1550,1551,1537,1519,1514,1515,1516,1461,1462,1486,1458,1459,1456,1457,1491,1492,1464,1480,1481,1482,1460,1504,1520,1521,1522,1508,1509,1510,-1453,-1452,-1440,-1439,-1431,-1430,-1426,-1425,-1410,-1416,-1415,-1414,-1413,-1401,-1400,-1383,-1382,-1381,-1361,-1360,-1359,-1313,-1339,-1338,-1349,-1348,-1254,-1253,-1375,-1252,-1264,-1263,-1262,-1327,-1326,-1325,-1268,-1267,-1322,-1288,-1287,-1286,-1319,-1318,-1347,-1346,-1310,1387]]],id:37},{type:"Polygon",arcs:[[44,-84,-83,153,-155,161,-166,173,-175,-196,196,197,220,221,224,225,222,223,191,204,218,219,226,-187,-186,170,-170,156,-156,66,-62,55,56,57,59,39,36,47,48,45]],id:38},{type:"Polygon",arcs:[[-451,-416,-446,-445,-444,-443,-442,-476,-475,-474,-482,-481,-480,-479,-522,-521,568,-576,599,-618,640,-664,-663,694,695,-697,705,-724,750,-769,770,809,810,811,812,807,808,771,772,795,794,788,789,784,785,786,787,799,792,793,796,797,798,790,791,-781,756,-752,707,708,692,668,669,673,674,-648,639,-515,-514,482,-438,-448,-447,-419,-418,-450]],id:31},{type:"MultiPolygon",arcs:[[[-287,-286,367,368,-414,435,457,458,459,467,468,469,470,471,472,-461,434,-386,356,357,-335,-320,290,291,-288]]],id:33},{type:"MultiPolygon",arcs:[[[905,2444,906,868,-870,870,-872,872,857,854,824,825,-765,-764,-763,749,700,701,-692,680,-658,-656,-655,-684,-683,697,744,721,754,765,779,778,827,828,829,822,823,874,875,876,877,931,907]]],id:34},{type:"Polygon",arcs:[[1275,1276,1277,-1429,1445,1446,-1518,1552,1553,1578,1579,-1639,1649,1650,1651,1652,1653,1696,1697,1698,1673,1674,1675,1685,1686,1731,1700,1701,-1644,-1643,1582,-1275,-1274,-1273,1271,-1171,-1172,-1213,-1212,-1215,-1214,-1167,-1166,-1152,-1151,-1170]],id:35},{type:"Polygon",arcs:[[-510,-609,609,-703,838,839,-910,1051,1052,1053,1054,1349,1350,-1208,962,1077,-1045,976,873,973,974,975,-934,-933,612,613,614,615,-612,-425,-385,-384,-356,-421,-420,-488]],id:32},{type:"MultiPolygon",arcs:[[[757]],[[687]],[[717,718,2445,719,747,752,748,720,688]],[[-318]],[[675,715,740,716,676,660,684,685,682,683,654,655,656,605,606,526,540,541,542,543,566,567,516,517,524,525,522,523,518,519,-316,-315,-314,-313,-312,-311,-310,-309,-308,-307,-306,-305,-304,-317,358,326,327,324,-322,323,-338,349,-364,-389,414,-457,484,-502,-501,586,587,-647,-646,677,678,679]]],id:36},{type:"MultiPolygon",arcs:[[[616,-619,664,-666,698,-700,712,713,-762,766,767,-822,826,-847,859,860,896,897,898,908,-920,960,959,983,984,1031,1032,1033,1034,985,986,987,988,979,980,981,949,950,940,941,942,934,935,936,937,902,-879,856,-851,782,783,-770,755,-715,711,-691,-690,670,-660,638,-629,-594,-593,-586,-585,629,-631,631,-633,633,-562,-561,-560,-559,-558,-557,-556,-555,-554,-553,-552,-551,-563,-573]]],id:39},{type:"Polygon",arcs:[[-1205,-1204,-1226,-1225,-1207,-1206,-1224,-1223,-1202,-1201,-1200,-1199,-1242,-1241,-1222,-1221,-1228,-1227,-1233,-1232,-1266,1270,-1369,1371,-1407,-1418,1426,-1445,1454,-1474,-1473,1496,1497,-1574,1587,1588,1589,1590,1591,1613,1614,1610,1611,1612,1609,1622,1623,1624,1606,1607,1585,1586,1576,1577,1558,1559,1560,1538,1539,1540,-1519,1463,-1456,1431,-1428,1383,1384,1283,1284,1280,1281,1282,1278,1279,-1276,-1169,-1217,-1216,-1218,-1220,-1219,-1203]],id:40},{type:"MultiPolygon",arcs:[[[216,235,-214,234,-241,-213,-212,-246,-245,-244,-243,-242,-184,-183,-201,-200,-199,-185,-204,-193,-190,249,-295,300,-334,351,352,353,354,355,383,384,424,425,422,423,483,497,498,485,486,426,-428,428,429,430,431,432,433,386,387,364,365,366,301,302,260,217]]],id:41},{type:"MultiPolygon",arcs:[[[-519,-524,-523,-526,-525,-518,-517,-568,-567,-544,-543,-542,-541,-527,-607,-606,-657,657,-681,691,-702,-701,-750,762,763,764,-826,836,843,844,866,845,815,816,801,802,817,818,819,841,842,803,804,830,831,800,805,806,833,834,835,848,849,-848,775,776,777,-761,743,-713,699,-699,665,-665,618,-617,572,-528,-520]]],id:42},{type:"MultiPolygon",arcs:[[[641]],[[642,-581]],[[-584,-583,622,604,623,650,-636,624,-604,-603,-505,-547]]],id:44},{type:"MultiPolygon",arcs:[[[1713]],[[1722]],[[1723]],[[2158,2159,1660,2155,2156,2446,2157,1682,1724,1725,1702,2447,1703,2448,1704,1721,1714,1715,1716,1717,1718,1719,1720,1705,1706,1707,1708,1709,1710,1711,1688,-1688,1683,-1680,1664,1636,1637,1626,1627,1619,1620,1621,-1609,1593,1569,1570,1531,1532,1533,1534,1535,1536,-1461,-1483,-1482,-1481,-1465,-1493,-1492,-1458,-1457,-1460,-1459,-1487,-1463,-1462,-1517,-1516,-1515,-1520,-1538,-1552,-1551,-1550,-1593,-1602,1605,1640,1641,2160,2161]]],id:45},{type:"Polygon",arcs:[[-205,-192,-224,-223,-226,-225,-222,-221,-198,-249,255,-268,289,-296,329,330,-344,-370,370,-392,409,-439,440,-463,476,477,478,479,480,481,473,474,475,441,442,443,444,445,415,450,449,417,418,446,447,-437,389,-373,350,344,-329,299,-239,-238,-188,-227,-220,-219]],id:46},{type:"Polygon",arcs:[[-1250,-1249,-1258,-1257,-1256,-1337,-1336,-1303,-1302,-1353,-1352,-1301,-1329,-1328,-1290,-1289,-1296,-1295,-1293,-1292,-1298,-1324,-1323,-1335,-1334,-1333,-1314,-1380,-1316,-1315,-1362,1380,1381,1382,1399,1400,1412,1413,1414,1415,1409,1424,1425,1429,1430,1438,1439,1451,1452,-1511,1511,1512,1502,1503,1467,1468,1469,1506,1507,1500,1501,1498,1499,1470,1471,1466,1465,1483,1484,1485,1495,1477,1478,1479,1493,1494,1489,1490,-1475,1453,-1436,-1435,-1434,-1433,1423,-1408,1404,-1343,-1406,-1341,-1374,-1373,-1367,-1366,-1300,-1299,-1371,-1370,-1270]],id:47},{type:"MultiPolygon",arcs:[[[2449,2078,2075,2076,2077,2450,2451]],[[2051,2052,2053,2054]],[[2055,2056,2036,2452,2037,2057]],[[2031]],[[2017]],[[2007,2453,2008]],[[1971]],[[1972,1975,1993,1992,2454,1988,2012,2010,2011,1989,1990,2455,1991,1994,2009,2014,2022,2456,2457,2458,2023,2021,2015,2018,2025,2020,2019,2026,2459,2027,2033,2032,2038,2039,2060,2061,2058,2059,2082,2079,2080,2081,2101,2100,2074,2073,2050,2024,1995,1970,1891,1856,1855,1860,1761,1762,-1686,-1676,-1675,-1674,-1699,-1698,-1697,-1654,-1653,-1652,-1651,-1650,1638,-1580,-1579,-1554,-1553,1517,-1447,-1446,1428,-1278,-1277,-1280,-1279,-1283,-1282,-1281,-1285,-1284,-1385,-1384,1427,-1432,1455,-1464,1518,-1541,1539,-1539,-1561,-1560,-1559,-1578,-1577,-1587,-1586,-1608,-1607,-1625,-1624,-1623,-1610,-1613,-1612,-1611,-1615,-1614,-1592,-1591,-1631,1645,-1649,1678,-1692,-1691,-1690,1737,-1739,1763,-1767,-1766,-1793,1811,1812,-1889,1907,1915,1916,1951,1974,1952,1917,1973]]],id:48},{type:"Polygon",arcs:[[-452,607,-659,-572,-571,-711,-710,741,742,-841,915,-1056,1070,1071,1072,1073,1074,1075,1193,1194,1175,-1054,-1053,-1052,909,-840,-839,702,-610,608,-509,-531,-530,-540,-516]],id:49},{type:"MultiPolygon",arcs:[[[1124,1125,1126,1189,1190,1127,1128,1129,-1080,1130]],[[1147,1120,1097,1089,1119,1152,1183,1195,1184,1137,1141,1142,1172,1173,1174,1209,2460,1228,2461,2462,1254,1246,1208,1196,1160,1188,2463,1239,1244,1250,1319,2464,1343,2465,2466,1344,1310,1293,1311,1305,1306,1307,1308,1309,1345,1346,1317,1318,1285,1286,1287,1321,1266,1267,1324,1325,1326,1261,1262,1263,1251,1374,1252,1253,1347,1348,1337,1338,1312,1358,1359,1360,1361,1314,1315,1379,1313,1332,1333,1334,1322,1323,-1297,-1269,1247,-1244,-1157,-1156,-1155,-1154,-1135,-1193,-1192,-1188,-1187,-1186,-1147,-1160,-1159,1138,-1103,1099,-1041,-1040,-1003,-1002,-1001,-953,-952,917,-911,-895,-900,-915,-914,-880,-894,-931,-930,-994,1018,-1007,1007,1008,1009,1010,-1012,1012,1013,1014,1015,1016,1017,2467,2468,977,1005,1058,1090,1098,1133,1131,1132,1148]]],id:51},{type:"Polygon",arcs:[[325,320,-291,319,334,-358,-357,385,-435,460,461,454,455,456,-415,388,363,-350,337,-324,321,322,318]],id:50},{type:"MultiPolygon",arcs:[[[-29]],[[-28]],[[-27]],[[-26]],[[-23]],[[-24]],[[-25]],[[-22,-21,29,49,53,50,52,-34,51,-65,159,160,-169,171,172,-195,-194,203,184,198,199,200,182,183,241,242,243,244,245,211,212,240,-235,213,214,215,175,164,157,84,-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,2,-2,-1]]],id:53},{type:"MultiPolygon",arcs:[[[-285]],[[-2155]],[[-2154,201,-134,-182,-181,-180,-179,-208,-207,-206,-230,228,-228,-252,-284,-283,-282,-281,-280,-279,-278,-277,-276,-275,-274,-273,-272,-271,-270,-269,511,512,493,494,491,492,489,490,495,496,463,464,465,466,448,-440,416,-400,381,382,-372,348,345,346,347,340,-340,332,-332,-294,-293,262,-262,236,-210,-209,-178,-177,-81,2150,2151,2152]]],id:55},{type:"Polygon",arcs:[[760,-778,-777,-776,847,-850,-849,-836,-835,-889,-888,-887,-886,-885,-884,-883,-882,-881,913,914,899,894,910,-918,951,952,1e3,1001,1002,1039,1040,-1100,1102,-1139,1158,1159,1146,1185,1186,1187,1191,1192,1134,1135,1136,1086,1087,1068,-1070,-1033,-1032,-985,-984,-960,-961,919,-909,-899,-898,-897,-861,-860,846,-827,821,-768,-767,761,-714,-744]],id:54},{type:"Polygon",arcs:[[-266,-248,-247,-260,-259,-258,-240,-300,328,-345,-351,372,-390,436,437,-483,513,514,-640,647,648,649,537,538,534,535,536,569,570,571,658,-608,451,452,453,-422,341,342,-337,-232,-231,-234,-267]],id:56},{type:"MultiPolygon",arcs:[[[2392]],[[2382]],[[2381]]],id:78}]}},arcs:[[[15739,57220],[76,-211]],[[15815,57009],[-6,-86]],[[15809,56923],[0,0]],[[15809,56923],[2,-40]],[[15811,56883],[0,-840]],[[15811,56043],[14,-387]],[[15825,55656],[-2,1]],[[15823,55657],[-19,-466]],[[15804,55191],[-77,-416]],[[15727,54775],[-105,3]],[[15622,54778],[67,428]],[[15689,55206],[0,16]],[[15689,55222],[9,41]],[[15698,55263],[46,83]],[[15744,55346],[3,0]],[[15747,55346],[21,-2]],[[15768,55344],[7,949],[-138,-730]],[[15637,55563],[9,159]],[[15646,55722],[52,899],[-35,-44]],[[15663,56577],[-309,205],[-193,385]],[[15711,58322],[59,-420],[15,-244]],[[15785,57658],[-46,-438]],[[15675,57235],[0,0]],[[15644,57453],[0,0]],[[15674,57553],[0,0]],[[15815,56278],[-62,564],[-45,21],[107,-585]],[[15777,55663],[0,0]],[[15782,55209],[0,0]],[[15677,54897],[0,0]],[[15711,58322],[530,-4]],[[20051,58318],[297,-2]],[[17947,58319],[184,-3]],[[17580,58319],[0,-929]],[[17304,58032],[0,284]],[[17304,58316],[276,3]],[[19756,58316],[295,2]],[[21999,58316],[184,0]],[[17579,56857],[1,533]],[[17580,58319],[367,0]],[[21634,58316],[365,0]],[[18131,58316],[523,-1]],[[19058,58315],[349,3]],[[19407,58318],[349,-2]],[[20348,58316],[294,0]],[[22823,58319],[19,-852]],[[22622,58319],[201,0]],[[22823,58319],[229,-1]],[[22183,58316],[147,2]],[[22330,58318],[292,1]],[[16241,58318],[562,0]],[[16981,58318],[213,1]],[[17304,58032],[-1,-1491]],[[17194,58319],[110,-3]],[[16803,58318],[178,0]],[[18911,58313],[147,2]],[[20923,57637],[0,681]],[[20923,58318],[308,-2]],[[21231,58316],[257,0]],[[18654,58315],[257,-2]],[[21488,58316],[146,0]],[[23052,58318],[302,-2]],[[20923,57637],[0,-456]],[[20642,58316],[281,2]],[[17579,56857],[0,-441]],[[17303,56413],[0,128]],[[23603,57761],[177,-344],[197,208]],[[20924,56449],[-1,732]],[[24337,54483],[-77,-352]],[[24260,54131],[15,-81]],[[24275,54050],[0,-1]],[[24275,54049],[-15,82]],[[24260,54131],[-8,0]],[[24252,54131],[-1,0]],[[24251,54131],[-18,-59]],[[24233,54072],[-1,0]],[[24232,54072],[-8,-20]],[[24224,54052],[0,-4]],[[24224,54048],[-1,-71]],[[24223,53977],[0,-16]],[[24223,53961],[0,1]],[[24223,53962],[-25,6]],[[23977,57625],[161,-336],[126,-164],[72,-292]],[[22846,56780],[1,35]],[[22847,56815],[-5,652]],[[15194,56234],[-33,933]],[[26653,44788],[79,561]],[[26732,45349],[91,777]],[[26823,46126],[46,438]],[[26869,46564],[57,898]],[[26926,47462],[-29,971]],[[26897,48433],[-130,578],[-110,-508]],[[26657,48503],[-65,-257]],[[26592,48246],[-58,597]],[[26534,48843],[96,470]],[[26630,49313],[68,649]],[[26698,49962],[0,646]],[[26698,50608],[-19,649]],[[26679,51257],[-202,558],[-25,222]],[[26452,52037],[-147,301]],[[26305,52338],[-54,-681],[-48,-105]],[[26203,51552],[-81,-294]],[[26122,51258],[-15,-648]],[[26107,50610],[-42,-169],[-14,12]],[[26051,50453],[-46,322],[-74,-316]],[[25931,50459],[-45,-485]],[[25886,49974],[-43,-632]],[[25843,49342],[-12,-669]],[[25831,48673],[-8,-647]],[[25823,48026],[53,-658]],[[25876,47368],[17,-653]],[[25893,46715],[-18,-648]],[[25875,46067],[-25,-328]],[[25850,45739],[-128,-899]],[[25508,51049],[91,846]],[[25599,51895],[83,221],[69,-1],[72,166]],[[25823,52281],[149,314],[17,79]],[[25989,52674],[236,82],[219,-51]],[[26444,52705],[5,0]],[[26449,52705],[28,-6]],[[26477,52699],[-31,339],[-19,564]],[[26427,53602],[-2,11]],[[26425,53613],[-2,9]],[[26423,53622],[-136,-59],[-123,575]],[[26164,54138],[-175,-122]],[[25989,54016],[-258,-395],[-91,33]],[[25640,53654],[-217,770],[-41,6]],[[25382,54430],[-114,50]],[[25268,54480],[5,96]],[[25273,54576],[-51,389]],[[25222,54965],[-2,47]],[[25220,55012],[-86,-359]],[[25134,54653],[-239,-397],[-27,-98]],[[24868,54158],[-147,-373]],[[24721,53785],[0,1]],[[25213,56702],[-143,-575],[206,676],[-63,-101]],[[25436,55477],[-184,-350]],[[25252,55127],[-1,0]],[[25251,55127],[-31,-115]],[[25220,55012],[2,-47]],[[25222,54965],[51,-389]],[[25273,54576],[58,390]],[[25331,54966],[105,511]],[[25764,53572],[0,0]],[[26475,53363],[-40,289]],[[26435,53652],[40,-289]],[[26551,52665],[78,-77]],[[26629,52588],[-29,210],[-49,-133]],[[26392,52213],[0,0]],[[26073,51936],[-17,22],[17,-22]],[[25950,50972],[0,0]],[[17697,55487],[-57,512],[-61,417]],[[24552,55460],[-215,-977]],[[24336,56833],[153,-220],[60,196]],[[22846,56780],[70,-930]],[[22927,55525],[-11,325]],[[20924,56449],[0,-1115]],[[20924,55209],[0,125]],[[15266,55588],[-72,646]],[[17697,55487],[86,-415],[100,-602]],[[17303,56413],[0,-1137]],[[17303,55276],[0,-200]],[[22927,55525],[6,-488]],[[18058,53962],[-73,-49]],[[17985,53913],[-23,192]],[[15337,54211],[-14,442],[-57,935]],[[22931,54875],[2,162]],[[17962,54105],[-79,365]],[[30403,53801],[271,1268],[194,191],[159,-2633],[-8,-489]],[[17303,54831],[0,245]],[[20924,55209],[0,-1283]],[[20924,53739],[0,187]],[[17303,54831],[0,-1090]],[[17303,53741],[0,-214]],[[22931,54875],[12,-968]],[[22947,53906],[-4,1]],[[15440,53274],[-83,542],[19,54],[-39,341]],[[24198,53968],[0,0]],[[24198,53968],[0,-459]],[[25118,52914],[-261,377]],[[24857,53291],[0,-23]],[[24857,53268],[0,23]],[[24857,53291],[-136,494]],[[16761,52732],[-124,-152]],[[16637,52580],[-121,-153]],[[17181,52729],[-34,2]],[[20924,53739],[0,-486]],[[20924,53253],[0,-622]],[[20924,52631],[0,-118]],[[18058,53962],[-46,-1769],[-19,-284]],[[17402,51370],[-31,1094]],[[18168,52166],[-175,-257]],[[22084,52624],[-177,4]],[[17371,52464],[-33,259]],[[17338,52723],[-35,803]],[[17303,53526],[0,1]],[[23005,52773],[-58,1133]],[[23005,52773],[3,-161]],[[23008,52612],[-185,0]],[[17147,52731],[-105,3]],[[17042,52734],[-5,0]],[[17037,52734],[-276,-2]],[[24684,53819],[37,-33]],[[30255,52113],[66,658],[72,735],[10,295]],[[17338,52723],[-157,6]],[[21907,52628],[-413,2]],[[25362,52586],[-158,173]],[[25204,52759],[-70,110]],[[25134,52869],[-16,45]],[[24198,53509],[0,-483]],[[24198,53026],[-153,-797]],[[30740,50284],[-1,-3]],[[16055,52220],[-113,-140]],[[15942,52080],[-90,-189]],[[15703,52455],[-119,599]],[[15584,53054],[0,6]],[[15584,53060],[-144,214]],[[15457,53056],[84,-60]],[[15374,52329],[56,784],[27,-57]],[[21494,52630],[-263,0]],[[21231,52630],[-15,1]],[[22823,52612],[-209,1]],[[22614,52613],[-8,0]],[[22328,52621],[-200,1]],[[22128,52622],[-44,2]],[[22606,52613],[-200,6]],[[22406,52619],[-78,2]],[[21216,52631],[-292,0]],[[25437,52216],[-59,108]],[[25378,52324],[0,0]],[[25378,52324],[-16,262]],[[18974,50874],[-4,-624]],[[18970,50250],[3,-359]],[[18973,49891],[-92,518]],[[19321,50875],[-347,-1]],[[15703,52455],[5,-229]],[[15541,52996],[43,58]],[[24033,52070],[12,159]],[[20924,52513],[1,-1246]],[[20925,51267],[-5,-401]],[[20920,50866],[-273,6]],[[15852,51891],[-144,335]],[[16516,52427],[-37,-43]],[[16479,52384],[-183,-140]],[[16296,52244],[-72,-179]],[[16224,52065],[-148,104]],[[16076,52169],[-21,51]],[[20306,50859],[-459,15]],[[19847,50874],[-94,-4]],[[22933,51962],[75,650]],[[17402,51370],[-27,-352]],[[25508,51049],[-7,11]],[[25501,51060],[-49,749],[-15,407]],[[18855,50330],[-41,-296]],[[18814,50034],[-178,38],[-146,-160],[-10,-203]],[[18480,49709],[-120,831],[-124,821],[-68,805]],[[22933,51962],[101,-484]],[[18881,50409],[-26,-79]],[[20647,50872],[-14,0]],[[20633,50872],[-261,-13]],[[20372,50859],[-66,0]],[[15364,50954],[10,1375]],[[24033,52070],[39,-648]],[[24069,51261],[3,161]],[[31019,52138],[91,-726],[120,-670],[-31,-498],[-109,-43],[-77,-103],[-44,-154]],[[30177,51386],[78,727]],[[19753,50870],[-104,2]],[[19649,50872],[-328,3]],[[23039,51371],[-5,107]],[[25449,46203],[-1,327]],[[25448,46530],[-6,323]],[[25442,46853],[-18,652]],[[25424,47505],[28,654]],[[25452,48159],[17,650]],[[25469,48809],[52,810]],[[25521,49619],[47,647]],[[25568,50266],[83,717],[-149,-417],[-34,-297]],[[25468,50269],[-8,-60]],[[25460,50209],[-64,54]],[[25396,50263],[0,8]],[[25396,50271],[1,0]],[[25397,50271],[-1,-8]],[[25396,50263],[1,8]],[[25397,50271],[63,537]],[[25460,50808],[41,252]],[[25708,51489],[0,0]],[[30134,48619],[0,5]],[[30134,48624],[-6,915]],[[30128,49539],[-21,1901]],[[30107,51440],[70,-54]],[[23039,51371],[0,-542]],[[29918,49765],[75,942],[-2,189]],[[29991,50896],[116,544]],[[24069,51261],[-4,-647]],[[24065,50614],[-9,-214]],[[17343,50573],[32,445]],[[23040,50510],[-1,319]],[[30776,49283],[0,0]],[[30872,49423],[46,197],[-46,-197]],[[30969,49944],[-58,33],[-102,-223],[-72,16],[3,514]],[[20921,50072],[-1,794]],[[17343,50573],[-90,-1002]],[[15331,49524],[33,1430]],[[15364,50954],[0,0]],[[28659,49030],[-5,-322],[28,-294]],[[28682,48414],[2,-1]],[[28684,48413],[3,-1]],[[28687,48412],[-121,-487]],[[28566,47925],[-30,-143]],[[28536,47782],[0,-9]],[[28536,47773],[-182,-111]],[[28354,47662],[-172,165]],[[28182,47827],[-131,11]],[[28051,47838],[-117,-646]],[[27934,47192],[-70,-846]],[[27864,46346],[0,-2]],[[27864,46344],[-175,-557]],[[28626,49219],[33,-189]],[[27913,47070],[0,0]],[[29520,50896],[178,-10]],[[29918,49765],[-21,-108]],[[29881,50886],[110,10]],[[29473,50059],[5,832]],[[29478,50891],[42,5]],[[29473,50059],[6,-31]],[[29287,50863],[191,28]],[[29698,50886],[183,0]],[[28776,49760],[316,1101]],[[29092,50861],[195,2]],[[20921,50072],[0,-727]],[[23040,50510],[0,-325]],[[23040,50185],[-1,-164]],[[24056,50400],[20,-61]],[[24192,50016],[-116,323]],[[17343,49292],[-90,279]],[[29897,49657],[-56,-357]],[[30739,50281],[-59,-807]],[[18973,49891],[0,-912]],[[29486,49501],[-7,527]],[[30477,49268],[-1,0]],[[24192,50016],[19,-161]],[[24256,49769],[-45,86]],[[18974,47736],[0,344]],[[18974,48080],[-1,899]],[[23039,49376],[0,645]],[[20921,49271],[0,74]],[[24403,49057],[-84,312]],[[24319,49369],[-62,399]],[[24257,49768],[-1,1]],[[24440,48980],[-37,77]],[[29486,49501],[-18,-849]],[[20921,48737],[0,534]],[[17343,49292],[-24,-506]],[[17319,48786],[-12,-371]],[[17307,48415],[0,0]],[[17307,48415],[0,-3129]],[[17307,45286],[-326,-6]],[[29760,48265],[35,318]],[[29795,48583],[46,717]],[[28626,49219],[150,541]],[[30680,49474],[-91,-436]],[[30589,49038],[-83,-425],[-6,346]],[[30500,48959],[-14,-60]],[[30463,49054],[14,214]],[[29472,48550],[-4,102]],[[15319,48755],[29,203]],[[15348,48958],[0,7]],[[15348,48965],[-17,559]],[[30134,48619],[0,0]],[[30134,48619],[7,-464]],[[23039,48729],[0,647]],[[23039,48729],[0,0]],[[24440,48980],[39,-255]],[[20921,48737],[0,-652]],[[30431,48860],[16,54]],[[30443,48813],[-88,-234],[-44,-434]],[[30446,48583],[-3,230]],[[30447,48914],[-1,-331]],[[30474,48571],[-3,0]],[[30471,48571],[-8,483]],[[30486,48899],[-12,-328]],[[30476,49268],[-45,-408]],[[24487,48499],[0,4]],[[24487,48503],[-8,222]],[[16981,45280],[-314,-6]],[[16667,45274],[-10,0]],[[29760,48265],[-29,-683]],[[15304,48284],[27,234]],[[15331,48518],[-12,237]],[[29502,47734],[-48,596],[18,220]],[[20921,48037],[0,48]],[[23151,48079],[-112,0]],[[23039,48079],[0,650]],[[23317,48080],[-113,-1]],[[23204,48079],[-53,0]],[[23988,48077],[-125,0]],[[23863,48077],[-43,0]],[[24155,48079],[-30,0]],[[24125,48079],[-131,-2]],[[23994,48077],[-6,0]],[[24487,48499],[11,-419]],[[24498,48080],[-110,0]],[[24388,48080],[-33,0]],[[24355,48080],[-97,0]],[[24258,48080],[-103,-1]],[[23484,48080],[-16,-1]],[[23468,48079],[-132,0]],[[23336,48079],[-19,1]],[[23820,48077],[-89,0]],[[23731,48077],[-77,2]],[[23039,48079],[-40,0]],[[23654,48079],[-55,0]],[[23599,48079],[-115,1]],[[30311,48145],[-62,-584],[-71,-163]],[[30178,47398],[-37,757]],[[29502,47734],[-5,-691]],[[22181,47144],[-185,1]],[[24501,47934],[-3,146]],[[21471,47147],[-198,1]],[[21273,47148],[-58,0]],[[17861,45279],[-551,4]],[[17310,45283],[-3,3]],[[18974,47736],[0,-551]],[[16234,45274],[-158,6]],[[16076,45280],[-235,21]],[[16657,45274],[-178,3]],[[16479,45277],[-245,-3]],[[15231,47064],[86,757]],[[15317,47824],[0,-3]],[[15317,47824],[1,12]],[[15318,47836],[0,3]],[[15318,47839],[0,2]],[[15318,47841],[-1,7]],[[15317,47848],[-1,9]],[[15316,47857],[-12,427]],[[29726,47448],[5,134]],[[30178,47398],[-16,-97]],[[20921,48037],[1,-881]],[[20922,47156],[0,-732]],[[23011,47630],[-12,449]],[[24501,47934],[8,-637]],[[23011,47630],[28,-327]],[[22566,46849],[0,-2]],[[22566,46847],[-44,82]],[[22522,46929],[-53,216]],[[22469,47145],[-211,-1]],[[22258,47144],[-77,0]],[[21215,47148],[-140,0]],[[21075,47148],[-153,8]],[[24515,47126],[-6,171]],[[21709,47144],[-238,3]],[[21996,47145],[-287,-1]],[[18974,44503],[-1,786]],[[18973,45289],[0,952]],[[18973,46241],[1,944]],[[29593,46662],[-26,3]],[[29567,46665],[-67,9]],[[29500,46674],[-3,369]],[[30162,47301],[-1,1]],[[30161,47302],[20,-393]],[[30181,46909],[-119,-241]],[[29726,47448],[-2,-809]],[[29724,46639],[-131,23]],[[23015,46978],[24,325]],[[24718,46230],[-60,2]],[[24658,46232],[-72,310]],[[24586,46542],[0,1]],[[24586,46543],[-71,583]],[[30062,46668],[-3,-12]],[[30059,46656],[0,-3]],[[30059,46653],[-179,-42]],[[29880,46611],[-8,1]],[[29872,46612],[-99,17]],[[29773,46629],[-49,10]],[[22842,46775],[-90,93]],[[22752,46868],[-42,3]],[[22710,46871],[-144,-22]],[[23015,46978],[11,-649]],[[23026,46329],[15,-131]],[[23041,46198],[-52,64]],[[22989,46262],[-48,335]],[[22941,46597],[-59,107]],[[22882,46704],[-40,71]],[[20922,45289],[0,1135]],[[15841,45301],[-262,-9]],[[29500,46674],[-25,-438]],[[15414,45277],[-109,6]],[[15305,45283],[-98,1555],[24,226]],[[18072,45274],[-211,5]],[[30181,46909],[34,-547],[-80,-272]],[[25014,46217],[-10,1]],[[25004,46218],[-122,10]],[[25178,46202],[-46,6]],[[25132,46208],[-118,9]],[[25309,46207],[-112,-2]],[[25197,46205],[-19,-3]],[[24882,46228],[-24,0]],[[24858,46228],[-140,2]],[[15579,45292],[-81,-4]],[[15498,45288],[-84,-11]],[[29558,45360],[-120,19]],[[29438,45379],[-3,0]],[[29435,45379],[40,857]],[[30117,46018],[-7,-5]],[[30113,45974],[-1,-1]],[[29992,45318],[-85,-17]],[[29907,45301],[-84,39]],[[29823,45340],[-9,2]],[[29814,45342],[0,1]],[[18429,45283],[-290,-9]],[[18139,45274],[-67,0]],[[24658,46232],[47,-237]],[[25449,46203],[-110,5]],[[25339,46208],[-30,-1]],[[20922,45289],[0,-565]],[[20922,44724],[0,-249]],[[18973,45289],[-128,-4]],[[28468,45286],[-179,0]],[[28289,45286],[-39,-6]],[[27885,45286],[-153,-6]],[[27732,45280],[-43,507]],[[23066,45686],[0,115]],[[23066,45801],[-25,397]],[[28095,45286],[-171,-6]],[[27924,45280],[-39,6]],[[28250,45280],[-127,6]],[[28123,45286],[-28,0]],[[28977,45011],[-62,275]],[[27689,45787],[-211,-543]],[[24748,45647],[-43,348]],[[18677,45280],[-16,2]],[[18661,45282],[-232,1]],[[25449,46203],[12,-634]],[[25526,44741],[-65,828]],[[30112,45973],[7,-161]],[[20290,43422],[-150,6]],[[20140,43428],[-128,2]],[[20012,43430],[-167,-2]],[[20581,43421],[-255,0]],[[20326,43421],[-36,1]],[[18845,45285],[-168,-5]],[[28915,45286],[-33,-3]],[[28882,45283],[-174,3]],[[28708,45286],[-11,0]],[[28697,45286],[-115,0]],[[24748,45647],[46,-301]],[[30119,45812],[31,-65]],[[30024,45258],[-32,60]],[[29814,45343],[-104,6]],[[29710,45349],[-139,9]],[[29571,45358],[-13,2]],[[27344,45012],[-136,-412]],[[27208,44600],[-133,-235]],[[27075,44365],[-106,-146]],[[26969,44219],[-154,7]],[[26815,44226],[-45,50]],[[26770,44276],[1,0]],[[26771,44276],[5,0]],[[26776,44276],[63,197]],[[26839,44473],[0,0]],[[26839,44473],[-1,11]],[[26838,44484],[-97,101]],[[26741,44585],[-80,204]],[[27478,45244],[-134,-232]],[[30191,45733],[68,-801]],[[30236,44813],[-62,-218]],[[30150,45747],[29,31]],[[28582,45286],[-103,0]],[[28479,45286],[-11,0]],[[23066,45686],[23,-312]],[[19845,43428],[-316,-3]],[[19529,43425],[-264,-6]],[[19265,43419],[-14,0]],[[27478,45006],[0,238]],[[25888,44840],[-83,-1]],[[25805,44839],[-83,1]],[[23127,45036],[-38,338]],[[24795,45154],[-1,192]],[[25526,44741],[0,0]],[[25526,44741],[0,-448]],[[30174,44595],[-77,-245]],[[30097,44350],[-21,331]],[[30076,44681],[-9,71]],[[30067,44752],[-25,117]],[[30042,44869],[-18,389]],[[26575,44771],[-33,-6]],[[26542,44765],[-134,-25]],[[29438,45379],[-9,-713]],[[29429,44666],[-3,-261]],[[30299,44585],[-63,228]],[[30259,44932],[123,420],[-83,-767]],[[26279,44839],[-104,0]],[[26175,44839],[-26,0]],[[26408,44740],[-11,-2]],[[26397,44738],[-113,-18]],[[26284,44720],[-5,119]],[[26149,44839],[-103,-1]],[[26046,44838],[-35,0]],[[26011,44838],[-77,2]],[[25934,44840],[-46,0]],[[23127,45036],[4,-340]],[[24795,45154],[-26,-273]],[[24769,44881],[-20,-101]],[[29907,45301],[4,-528]],[[29911,44773],[0,-157]],[[30033,44826],[-12,21]],[[29085,44214],[-88,331]],[[28997,44545],[-20,466]],[[18974,44503],[-1,-610]],[[18139,43424],[0,1850]],[[18139,43424],[-2,-1644]],[[15345,44290],[-40,993]],[[16479,45277],[0,-1510]],[[16478,40009],[-1,280]],[[16477,40289],[1,246]],[[16478,40535],[1,510]],[[16479,41045],[0,2722]],[[27478,45006],[0,-652]],[[23166,44368],[-35,328]],[[27478,44335],[0,19]],[[24538,44044],[0,2]],[[24538,44046],[80,222]],[[24618,44268],[131,512]],[[30067,44752],[-34,74]],[[30021,44847],[-10,-211]],[[29911,44536],[0,80]],[[25692,44746],[-81,-160]],[[25611,44586],[-85,155]],[[25722,44840],[-30,-94]],[[26284,44720],[0,-309]],[[26575,44771],[78,17]],[[26653,44788],[0,0]],[[26653,44788],[3,0]],[[26658,44788],[-2,0]],[[26658,44788],[3,1]],[[25526,44293],[0,-314]],[[29911,44536],[-17,-498]],[[29894,44038],[-162,175]],[[25526,43734],[0,245]],[[26285,44217],[-1,194]],[[20922,44156],[0,319]],[[23166,44368],[17,-216]],[[30040,44368],[0,0]],[[30097,44350],[-21,331]],[[29543,43856],[-153,-449]],[[29390,43407],[0,3]],[[29390,43410],[32,697]],[[29422,44107],[4,298]],[[20922,44156],[0,-729]],[[20922,43427],[-248,-6]],[[20674,43421],[-93,0]],[[30011,44636],[-117,-598]],[[29732,44213],[-34,-300]],[[29698,43913],[2,-6]],[[29702,43899],[-159,-43]],[[29230,43692],[-37,105]],[[29193,43797],[-93,288]],[[29100,44085],[-15,129]],[[29100,44085],[-82,-489]],[[19251,43419],[-278,474]],[[26285,44217],[0,-289]],[[29300,44024],[-1,-1]],[[30193,43985],[9,62],[-9,-62]],[[23199,43722],[-12,57]],[[23187,43779],[-4,373]],[[27478,44335],[0,-663]],[[27478,43656],[0,16]],[[15357,41565],[-69,1300],[33,203]],[[15321,43068],[14,782],[10,440]],[[21321,43428],[-10,0]],[[21311,43428],[-202,0]],[[26285,43895],[0,33]],[[24538,44044],[35,-485]],[[30405,43867],[0,0]],[[21109,43428],[-54,0]],[[21055,43428],[-133,-1]],[[29390,43379],[-38,-171]],[[29320,43267],[-20,757]],[[29390,43410],[0,-3]],[[29390,43407],[-1,-24]],[[29389,43383],[1,-4]],[[29025,43600],[-7,-4]],[[24573,43556],[0,3]],[[29322,43422],[-87,253]],[[29235,43675],[-5,17]],[[29299,44023],[0,-1]],[[29299,44022],[23,-600]],[[25526,43734],[0,-291]],[[29776,43471],[0,0]],[[29444,43163],[68,89],[252,435],[-14,-266],[137,101],[-239,-447],[-193,-288]],[[26285,43895],[0,-491]],[[26285,43404],[0,-125]],[[29025,43600],[-42,-235]],[[21479,43428],[-158,0]],[[25526,42935],[0,508]],[[23199,43722],[-1,-193]],[[23198,43529],[1,-6]],[[23217,43240],[-18,283]],[[29322,43422],[-25,-368]],[[27478,43656],[0,-419]],[[27479,43148],[-1,89]],[[28963,42664],[-2,31]],[[28961,42695],[22,670]],[[18137,41388],[0,392]],[[24573,43556],[-46,-697]],[[24506,42749],[21,110]],[[23217,43240],[-5,-218]],[[25526,42935],[0,-458]],[[21479,42861],[0,96]],[[21479,42957],[0,471]],[[19529,41977],[0,803]],[[19529,42780],[0,645]],[[26285,42918],[0,361]],[[27479,43148],[-1,-396]],[[27478,42752],[-41,-105]],[[26285,42918],[0,-290]],[[29352,43208],[-35,-161]],[[29316,43199],[4,68]],[[29455,42787],[-70,-74]],[[29385,42713],[-17,-43]],[[29360,42716],[6,33]],[[29365,43014],[79,149]],[[29262,42930],[-12,-89]],[[23340,42643],[-109,9]],[[23231,42652],[-19,370]],[[23468,42633],[-80,7]],[[23388,42640],[-48,3]],[[23591,42624],[-44,2]],[[23547,42626],[-79,7]],[[24359,42677],[-63,14]],[[24296,42691],[-66,-11]],[[24230,42680],[-48,-6]],[[24182,42674],[-80,-11]],[[23718,42631],[-60,-4]],[[23658,42627],[-67,-3]],[[23846,42643],[-61,-5]],[[23785,42638],[-67,-7]],[[23974,42650],[-77,-7]],[[23897,42643],[-51,0]],[[24102,42663],[-21,-3]],[[24081,42660],[-107,-10]],[[29317,43047],[-1,152]],[[19529,41977],[0,-1046]],[[19529,40931],[0,-303]],[[27478,42451],[0,301]],[[29297,43054],[-35,-124]],[[24506,42749],[-64,-483]],[[24442,42266],[-83,411]],[[29366,42749],[-31,25]],[[29306,42935],[59,79]],[[29032,42198],[-69,466]],[[23231,42652],[15,-115]],[[21479,42861],[0,-479]],[[29335,42774],[-29,161]],[[25526,42451],[0,26]],[[29250,42841],[-13,-170]],[[26285,42220],[0,408]],[[21479,42213],[0,169]],[[29225,42487],[0,0]],[[24418,41936],[2,89]],[[24420,42025],[22,241]],[[27478,42451],[1,-146]],[[27448,42299],[-11,348]],[[29032,42198],[61,-361]],[[29093,41837],[0,-1]],[[29093,41836],[-71,-183]],[[29237,42671],[-4,-268]],[[27448,42299],[-15,-391]],[[27433,41908],[-6,-53]],[[23289,42055],[-43,482]],[[26285,42220],[0,-80]],[[23289,42055],[1,-6]],[[23036,41565],[-95,1]],[[22941,41566],[-31,0]],[[25526,42451],[-1,-613]],[[25525,41838],[-1,-493]],[[27478,41492],[1,101]],[[27479,41593],[-1,267]],[[27478,41860],[1,445]],[[29271,41744],[-3,49]],[[29233,42403],[38,-659]],[[21479,42213],[0,-644]],[[21479,41569],[1,-799]],[[26282,41408],[1,164]],[[26283,41572],[2,568]],[[22532,41568],[-64,-1]],[[22468,41567],[-62,0]],[[22406,41567],[-95,0]],[[22311,41567],[-31,0]],[[22658,41567],[-31,0]],[[22627,41567],[-95,1]],[[21682,41568],[-24,-1]],[[21658,41567],[-179,2]],[[22155,41566],[-154,0]],[[22001,41566],[-4,0]],[[22784,41566],[-126,1]],[[22910,41566],[-126,0]],[[21997,41566],[-152,1]],[[21845,41567],[-5,0]],[[21840,41567],[-158,1]],[[22280,41567],[-125,-1]],[[28074,41045],[-119,2]],[[28700,41044],[-28,0]],[[28672,41044],[-1,0]],[[28331,41041],[-3,1]],[[28328,41042],[-175,3]],[[27955,41047],[-34,0]],[[27921,41047],[-129,-3]],[[23162,41564],[-63,0]],[[23099,41564],[-63,1]],[[23290,42049],[67,-486]],[[23357,41563],[-8,0]],[[23349,41563],[-125,1]],[[23224,41564],[-62,0]],[[23446,41373],[-89,190]],[[24418,41936],[19,-475]],[[28850,41260],[-54,-215]],[[28796,41045],[-96,-1]],[[28671,41044],[-92,0]],[[28579,41044],[-61,-2]],[[28518,41042],[-59,0]],[[24456,41114],[-19,347]],[[27419,41625],[8,230]],[[29179,40745],[0,-4]],[[29179,40741],[-1,-2]],[[29001,41545],[-1,5]],[[29e3,41550],[22,103]],[[27419,41625],[-25,-344]],[[29268,41793],[3,-49]],[[29271,41744],[-71,-994],[-21,-9]],[[29179,40741],[0,4]],[[28153,41045],[-68,0]],[[28085,41045],[-11,0]],[[25525,40831],[-1,514]],[[27792,41044],[-23,0]],[[27769,41044],[-80,-2]],[[27689,41042],[-43,0]],[[29e3,41550],[-44,-229]],[[23478,41229],[-32,144]],[[18137,41388],[0,-676]],[[18137,40712],[0,-1612]],[[19529,40384],[0,244]],[[28459,41042],[-60,-1]],[[28399,41041],[-68,0]],[[28956,41321],[-58,-118]],[[28898,41203],[-43,60]],[[28850,41260],[0,0]],[[27391,41042],[3,239]],[[27478,41492],[0,-448]],[[27646,41042],[-140,2]],[[27506,41044],[-28,0]],[[26282,41408],[0,-354]],[[21480,40759],[0,11]],[[15493,39270],[-65,1424],[-71,871]],[[23478,41229],[-49,-367]],[[28979,41348],[22,197]],[[24456,41114],[17,-140]],[[26282,40758],[0,296]],[[28897,41161],[82,187]],[[25525,40831],[0,-242]],[[27391,41042],[-31,-211]],[[27360,40831],[-26,-125]],[[24576,40445],[-67,370]],[[24509,40815],[-36,159]],[[28898,41203],[-26,-825]],[[28804,40253],[-1,151]],[[28803,40404],[-7,641]],[[28855,41263],[-5,-3]],[[23415,40694],[14,168]],[[28900,40423],[-35,202]],[[28866,40625],[-1,0]],[[28866,40625],[-5,206]],[[28860,40874],[1,-43]],[[28860,40874],[37,287]],[[16714,38612],[-48,225]],[[29178,40739],[-11,-297]],[[29167,40442],[-17,-94]],[[29150,40348],[-38,-96]],[[29112,40252],[0,-14]],[[26282,40758],[-1,-85]],[[28270,40305],[-11,-7]],[[28259,40298],[-30,321]],[[28229,40619],[-55,236]],[[28174,40855],[-87,32]],[[28087,40887],[-37,-224]],[[28050,40663],[-54,34]],[[27996,40697],[-113,-102]],[[27883,40595],[-57,-283]],[[27826,40312],[-60,-227]],[[27766,40085],[3,959]],[[28784,40396],[-69,317]],[[28715,40713],[-78,-279]],[[28637,40434],[0,-126]],[[28637,40308],[-47,-159]],[[28331,40116],[-61,189]],[[28117,40429],[-33,140]],[[23415,40694],[38,-213]],[[27334,40706],[-23,-152]],[[27311,40554],[-70,-216]],[[27241,40338],[-86,-130],[-13,-105]],[[28171,40194],[-54,235]],[[25505,40184],[20,405]],[[24576,40445],[59,-327]],[[26280,40268],[1,405]],[[21480,40759],[1,-810]],[[21481,39949],[0,-161]],[[28914,40342],[-11,69]],[[28901,40416],[-1,7]],[[29040,40031],[-126,311]],[[27142,40103],[-8,-66]],[[18136,38906],[1,194]],[[28084,40569],[-45,-703]],[[23555,39997],[-48,74]],[[23507,40071],[-54,410]],[[28259,40298],[-31,-352]],[[28228,39946],[-57,248]],[[19529,40384],[-2,-1614]],[[25505,40184],[-7,-190]],[[28029,39806],[10,60]],[[23553,39912],[2,85]],[[27136,39881],[-2,156]],[[24711,39640],[-59,-61]],[[24652,39579],[-17,539]],[[28804,40253],[1,-94]],[[28742,40159],[-56,139],[98,98]],[[28590,40149],[-15,-63]],[[28815,39382],[-8,585]],[[28807,39967],[-2,192]],[[28872,40378],[57,-769]],[[28458,39638],[-32,-59]],[[28426,39579],[-58,227]],[[28368,39806],[-37,310]],[[29112,40238],[-86,-665],[14,458]],[[16478,40009],[0,-98]],[[16478,39911],[0,-84]],[[26420,39741],[-52,137]],[[26368,39878],[-33,-39]],[[26335,39839],[-55,58]],[[26280,39897],[0,371]],[[26280,39897],[-16,-138]],[[26264,39759],[0,-1]],[[26494,39275],[-50,105]],[[26444,39380],[0,87]],[[26444,39467],[-24,274]],[[24760,39559],[-49,81]],[[28635,39395],[0,0]],[[28706,39561],[36,598]],[[25526,39519],[0,1]],[[25526,39520],[-32,474]],[[25494,39994],[4,0]],[[26591,39026],[-56,243]],[[26535,39269],[-41,6]],[[28029,39806],[-91,-546]],[[27938,39260],[-52,-2]],[[28607,39535],[-17,-366]],[[28590,39169],[0,-3]],[[28575,40086],[2,-3]],[[28589,40088],[18,-553]],[[23553,39416],[0,367]],[[23553,39783],[0,129]],[[27091,39475],[-53,155]],[[27136,39881],[-45,-406]],[[25526,39519],[-1,-92]],[[17623,34118],[-355,1806]],[[26287,39436],[-21,81]],[[26266,39517],[-2,241]],[[28815,39382],[4,-360]],[[28755,39100],[-16,112]],[[28739,39212],[17,109]],[[21481,39138],[0,650]],[[28543,39077],[4,-10]],[[28547,39067],[-4,-218]],[[28437,39124],[17,222]],[[28454,39346],[4,292]],[[16666,38837],[-70,323]],[[16596,39160],[-91,417]],[[16505,39577],[-27,250]],[[16917,37646],[-203,966]],[[28445,39309],[-54,-223]],[[23553,39416],[0,-202]],[[26713,38990],[-105,35]],[[26608,39025],[-17,1]],[[26591,39026],[0,0]],[[21481,39138],[0,-154]],[[27038,39630],[-32,-689]],[[27006,38941],[-20,-17]],[[26839,38901],[-60,288]],[[26779,39189],[0,1]],[[26779,39190],[-66,-197]],[[26713,38993],[0,-3]],[[24786,39069],[5,209]],[[24791,39278],[13,61]],[[24804,39339],[-44,220]],[[28454,39346],[-22,183]],[[28432,39529],[-6,50]],[[28929,39609],[44,-479],[29,-450]],[[29002,38680],[-5,0]],[[28997,38680],[-5,0]],[[28992,38680],[-71,1]],[[28921,38681],[-100,202]],[[28821,38883],[-2,139]],[[27886,39258],[-47,-530]],[[27839,38728],[-25,-122]],[[27814,38606],[-93,334]],[[28756,39321],[-17,-109]],[[28739,39212],[-76,198],[43,151]],[[28391,39086],[-16,-307]],[[28441,39500],[0,3]],[[28441,39500],[0,-4]],[[28441,39496],[0,-2]],[[28441,39494],[0,-2]],[[28441,39492],[1,-5]],[[28442,39486],[0,1]],[[28442,39486],[0,-5]],[[28442,39481],[2,-3]],[[28444,39478],[0,-2]],[[28444,39476],[2,-7]],[[28446,39469],[0,-65]],[[28446,39404],[0,2]],[[28432,39529],[9,-26]],[[26287,39436],[-64,-179]],[[26223,39257],[-49,-131]],[[26174,39126],[-37,84]],[[26137,39210],[-26,-279]],[[25466,38611],[25,286]],[[25491,38897],[34,530]],[[24764,38829],[-1,-16]],[[24763,38813],[-21,-253]],[[15840,38131],[-3,0]],[[15809,38129],[-2,4]],[[15807,38133],[-39,1]],[[15641,38391],[-148,879]],[[26986,38924],[-61,-318]],[[26925,38606],[-25,18]],[[26900,38624],[-20,157]],[[26880,38781],[-41,120]],[[23552,38728],[1,486]],[[24786,39069],[-22,-240]],[[28590,39166],[9,-599],[-52,500]],[[28547,39067],[-4,10]],[[27721,38940],[-41,-605]],[[27680,38335],[-46,-375]],[[23552,38728],[0,-165]],[[16040,38042],[-23,137]],[[26109,38815],[2,116]],[[16917,37646],[165,-803]],[[28691,38439],[-29,547],[93,114]],[[28785,38627],[-94,-188]],[[21481,38328],[0,12]],[[21481,38340],[0,644]],[[28543,38849],[0,-85]],[[28495,38564],[-94,-54],[36,614]],[[18136,38906],[1,-790]],[[18137,38116],[-1,-1012]],[[18136,37104],[0,-1125]],[[18136,35979],[0,-293]],[[19532,38124],[-5,646]],[[26109,38815],[-57,-267]],[[26052,38548],[-42,-171]],[[28375,38779],[-7,-313]],[[25466,38611],[-69,-294]],[[28795,38335],[-10,292]],[[15837,38131],[-28,-2]],[[16017,38179],[-132,-258],[-45,210]],[[25399,38268],[-2,49]],[[24779,38004],[-12,72]],[[24767,38076],[-25,484]],[[28603,38436],[-31,-192],[-77,320]],[[28543,38764],[60,-328]],[[26898,38299],[0,0]],[[26900,38624],[-2,-325]],[[19532,38124],[0,-507]],[[19532,37617],[-1,-737]],[[19531,36880],[0,-904]],[[19531,35976],[-266,-3]],[[19265,35973],[-209,11]],[[19056,35984],[-185,-3]],[[23552,37951],[0,612]],[[17268,35924],[-186,919]],[[28986,38582],[-75,-715]],[[28911,37867],[-68,-38]],[[28843,37829],[0,3]],[[28992,38680],[-6,-98]],[[25860,38177],[-37,-113]],[[25979,38171],[-13,-319]],[[25966,37852],[-14,-13]],[[25952,37839],[-92,338]],[[26950,37569],[-23,169]],[[26927,37738],[-29,561]],[[26010,38377],[-31,-206]],[[28442,38144],[-1,-3]],[[28368,38466],[83,-128]],[[23552,37951],[-1,-43]],[[15768,38134],[6,-631],[-119,557],[-14,331]],[[16038,37915],[2,127]],[[28778,37969],[17,366]],[[28843,37832],[-1,-3]],[[28842,37829],[-64,140]],[[28477,37991],[-35,153]],[[28451,38338],[125,-469]],[[27607,37750],[27,210]],[[21481,38328],[1,-976]],[[21482,37352],[0,-175]],[[27607,37750],[-66,-484]],[[25823,38064],[-8,-140]],[[25815,37924],[-46,-378]],[[25769,37546],[-44,290]],[[25399,38268],[-31,-631]],[[25598,37614],[-9,36]],[[25589,37650],[-42,80]],[[25478,37649],[-63,7]],[[25415,37656],[-29,-191]],[[25386,37465],[-17,170]],[[25369,37635],[-1,2]],[[24928,37473],[-74,134]],[[24854,37607],[-75,397]],[[25725,37836],[-46,-126]],[[25679,37710],[-81,-96]],[[25547,37730],[-69,-80]],[[25478,37650],[0,-1]],[[28441,38141],[75,-497],[31,-232]],[[28566,37480],[-89,511]],[[15835,37649],[78,298],[125,-32]],[[23550,37194],[0,36]],[[23550,37230],[1,678]],[[28887,37650],[0,-27]],[[28887,37623],[-59,-670]],[[28828,36953],[-33,-42]],[[28782,37012],[13,397]],[[28795,37409],[47,420]],[[28842,37829],[1,0]],[[28911,37867],[-24,-217]],[[28637,37553],[1,-1]],[[28638,37552],[2,-269]],[[28576,37869],[61,-316]],[[27086,36932],[-11,47]],[[27075,36979],[-102,379]],[[26973,37358],[-23,211]],[[28541,36813],[-25,262]],[[27562,37146],[-21,120]],[[24970,37042],[-42,431]],[[25386,37465],[-29,-418]],[[28516,37075],[-45,-36]],[[28471,37039],[-2,24]],[[15925,36839],[-90,810]],[[24970,37042],[0,-10]],[[25377,36917],[-20,130]],[[27384,36774],[0,3]],[[28640,37134],[-74,346]],[[28640,37283],[0,-149]],[[15782,37296],[29,0]],[[21191,35978],[-257,-8]],[[20934,35970],[-319,-1]],[[28547,37412],[38,-377]],[[27075,36979],[-95,-443]],[[26980,36536],[-1,-3]],[[26979,36533],[-67,-179]],[[26912,36354],[-4,-11]],[[21482,36702],[0,475]],[[27562,37146],[-71,-381]],[[27491,36765],[-107,9]],[[28390,36690],[-19,6]],[[15811,37296],[78,-451]],[[15840,36178],[-62,763],[4,355]],[[23550,37194],[1,-539]],[[23551,36655],[-1,-47]],[[20615,35969],[-19,0]],[[20596,35969],[-138,1]],[[21482,36702],[0,-736]],[[21482,35966],[-267,12]],[[21215,35978],[-24,0]],[[19716,35976],[-185,0]],[[19966,35978],[-250,-2]],[[28469,37063],[2,-24]],[[28471,37039],[55,-208]],[[28526,36831],[1,-3]],[[18457,35979],[-321,0]],[[24970,37032],[11,-429]],[[24981,36603],[0,-1]],[[24981,36602],[-2,-156]],[[25377,36917],[-83,-186]],[[25294,36731],[-15,37]],[[25279,36768],[0,-3]],[[25279,36765],[-21,-661]],[[28585,37035],[31,-106]],[[28614,36816],[-73,-3]],[[27384,36777],[-34,-253]],[[27350,36524],[-68,-110]],[[27282,36414],[-38,192]],[[28371,36696],[0,-145]],[[28795,36911],[-5,-59]],[[28790,36852],[-33,152],[25,8]],[[27244,36606],[-106,-186]],[[27138,36420],[-52,512]],[[18871,35981],[-314,-2]],[[18557,35979],[-100,0]],[[28616,36929],[-2,-113]],[[28493,36664],[-108,-81],[5,107]],[[15889,36845],[36,-6]],[[23019,35975],[-63,1]],[[22956,35976],[-110,0]],[[22846,35976],[-88,-1]],[[22758,35975],[-95,0]],[[22026,35982],[-151,-4]],[[22179,35976],[-129,5]],[[22050,35981],[-24,1]],[[22511,35973],[-55,2]],[[22456,35975],[-127,1]],[[17623,34118],[67,-355]],[[28568,36291],[-75,373]],[[28527,36828],[22,-165]],[[25236,36127],[22,-23]],[[20247,35966],[-264,12]],[[19983,35978],[-17,0]],[[20458,35970],[-81,-1]],[[20377,35969],[-130,-3]],[[21618,35969],[-132,-5]],[[21486,35964],[-4,2]],[[21754,35973],[-136,-4]],[[21875,35978],[-87,-3]],[[21788,35975],[-34,-2]],[[23298,35976],[-73,0]],[[23225,35976],[-50,0]],[[22663,35975],[-86,-2]],[[22577,35973],[-66,0]],[[22329,35976],[-127,0]],[[22202,35976],[-23,0]],[[23424,35976],[-94,0]],[[23330,35976],[-32,0]],[[28549,36663],[73,-426]],[[23550,36083],[0,525]],[[23550,36083],[0,-107]],[[23550,35976],[-108,0]],[[23442,35976],[-18,0]],[[25236,36127],[-100,272]],[[25069,36098],[9,-156]],[[25078,35942],[-50,55]],[[25028,35997],[-49,449]],[[25136,36399],[-2,-3]],[[25134,36396],[-65,-298]],[[28388,36521],[68,-110]],[[23175,35976],[-10,0]],[[23165,35976],[-146,-1]],[[15976,35708],[-136,470]],[[26908,36343],[-84,-413]],[[28456,36411],[93,-173]],[[25087,35872],[-9,70]],[[28629,35958],[-61,333]],[[26821,35778],[3,152]],[[25579,35309],[-85,-6]],[[25494,35303],[-15,-1]],[[28549,36238],[42,-432]],[[27841,35124],[-35,0]],[[27771,35123],[-12,0]],[[27759,35123],[-56,1]],[[28631,36186],[-2,-228]],[[25739,35324],[-84,-10]],[[25655,35314],[-14,-2]],[[25641,35312],[-62,-3]],[[25087,35872],[-6,-295]],[[25081,35577],[-15,-247]],[[25066,35330],[-42,-37]],[[27976,35124],[-18,0]],[[27958,35124],[-95,0]],[[27863,35124],[-22,0]],[[24371,35046],[-125,-2]],[[23550,35543],[0,433]],[[28245,35132],[-37,-2]],[[28208,35130],[-41,-1]],[[26821,35778],[-162,-424]],[[25479,35302],[-104,77]],[[23550,35543],[0,-184]],[[19531,34120],[0,1856]],[[19531,34120],[0,-1941]],[[19531,32179],[0,-709]],[[19531,31470],[-2,-1490]],[[21215,35978],[-1,-931]],[[21214,35047],[-10,-828]],[[21204,34219],[0,-588]],[[21485,35047],[-37,0]],[[21448,35047],[-234,0]],[[21784,35046],[-35,0]],[[21749,35046],[-150,0]],[[21599,35046],[-114,1]],[[22050,35046],[-151,0]],[[21899,35046],[-115,0]],[[28482,35144],[0,-15]],[[28482,35129],[-69,4]],[[28413,35133],[-37,-3]],[[26292,35239],[-2,0]],[[26290,35239],[-53,22]],[[23913,35043],[-75,1]],[[26528,35210],[-22,4]],[[26506,35214],[-61,4]],[[28678,35667],[9,165]],[[26445,35218],[-9,0]],[[26436,35218],[-144,21]],[[26659,35354],[-60,-119]],[[26599,35235],[-71,-25]],[[25258,35049],[-8,1]],[[25250,35050],[-83,2]],[[26148,35281],[-40,-14]],[[25959,35285],[-65,21]],[[25894,35306],[-57,21]],[[23838,35044],[-78,0]],[[23760,35044],[-59,0]],[[28775,35141],[-7,0]],[[28768,35141],[-25,0]],[[28743,35141],[-9,0]],[[28734,35141],[-6,0]],[[28728,35141],[-25,0]],[[28675,35672],[3,-5]],[[28687,35832],[88,-691]],[[27453,35154],[-63,3]],[[26998,35225],[-14,0]],[[27164,35255],[-50,5]],[[27114,35260],[-89,-37]],[[24776,35043],[-100,1]],[[28601,35141],[-14,0]],[[28587,35141],[-105,3]],[[28591,35806],[33,-21]],[[16104,33735],[-103,743],[-25,1230]],[[28376,35130],[-131,2]],[[26791,35221],[-135,7]],[[26656,35228],[-57,7]],[[28167,35129],[-77,0]],[[28090,35129],[-37,-3]],[[28053,35126],[-77,-2]],[[26237,35261],[-84,21]],[[26153,35282],[-5,-1]],[[24523,35043],[-78,-2]],[[24445,35041],[-12,2]],[[24433,35043],[-62,3]],[[26984,35225],[-88,-3]],[[26896,35222],[-62,0]],[[26834,35222],[-43,-1]],[[25837,35327],[-42,-31]],[[25795,35296],[-56,28]],[[27608,35126],[-108,15]],[[27500,35141],[-47,13]],[[25024,35293],[-25,-249]],[[24999,35044],[-18,-1]],[[24981,35043],[-16,1]],[[24965,35044],[-1,-301]],[[28629,35680],[-4,-47]],[[28669,35668],[6,4]],[[28703,35141],[-53,0]],[[28650,35141],[-49,0]],[[27703,35124],[-88,2]],[[27615,35126],[-7,0]],[[18136,35686],[-100,-1297],[-70,-515],[19,-1013],[-11,-605]],[[17974,32256],[-284,1507]],[[26108,35267],[-98,6]],[[26010,35273],[-51,12]],[[24676,35044],[-58,0]],[[24618,35044],[-95,-1]],[[24065,35043],[-23,0]],[[24042,35043],[-123,1]],[[23919,35044],[-6,-1]],[[27390,35157],[-18,5]],[[27372,35162],[-126,24]],[[27246,35186],[-90,25]],[[27156,35211],[8,44]],[[24246,35044],[-8,0]],[[24238,35044],[-106,0]],[[24132,35044],[-67,-1]],[[25167,35052],[-3,1]],[[25164,35053],[-2,-1]],[[23701,35044],[-151,2]],[[23550,35046],[0,313]],[[25375,35379],[4,-336]],[[25379,35043],[-121,6]],[[23550,35046],[16,-628]],[[25162,35052],[-143,1]],[[25019,35053],[-20,-9]],[[27806,35124],[-35,-1]],[[24848,34115],[-91,-6]],[[24757,34109],[-25,-1]],[[24732,34108],[52,382]],[[24784,34490],[-8,553]],[[27025,35223],[-27,2]],[[27156,35211],[-14,-367]],[[27142,34844],[-53,-194]],[[27089,34650],[-4,-41]],[[22051,33894],[0,325]],[[22051,34219],[-1,827]],[[28548,34675],[-72,196]],[[28752,34612],[-19,143]],[[28728,35141],[24,-529]],[[28775,35141],[26,-594]],[[28800,34546],[-30,549]],[[28770,35095],[-2,46]],[[28743,35141],[5,0]],[[28760,35141],[-12,0]],[[28760,35141],[-26,0]],[[28733,34755],[-46,-43]],[[28687,34712],[0,3]],[[28687,34715],[-13,49]],[[28674,34764],[-2,44]],[[28476,34871],[60,-301]],[[27085,34609],[-42,-301]],[[27043,34308],[-39,100]],[[28672,34808],[2,-44]],[[28674,34764],[13,-49]],[[28687,34712],[-7,-341],[-22,149]],[[24940,34460],[24,283]],[[24981,35043],[-16,1]],[[23569,34305],[-3,113]],[[24940,34460],[-21,-340]],[[24919,34120],[-71,-5]],[[26898,34189],[-82,-175]],[[28658,34520],[-57,-245]],[[28601,34275],[-64,214],[11,186]],[[27004,34408],[-54,-157]],[[26950,34251],[0,-2]],[[26950,34249],[-25,-174]],[[26925,34075],[-27,114]],[[28536,34570],[6,-596]],[[23585,33668],[-16,637]],[[28882,33504],[-75,-902]],[[28807,32613],[75,891]],[[28843,33756],[0,0]],[[28734,33500],[78,-82],[-43,26]],[[28801,34547],[-1,-1]],[[24936,33938],[-17,182]],[[26816,34014],[-18,-287]],[[26798,33727],[-82,-139]],[[23585,33668],[6,-225]],[[22051,33894],[0,-488]],[[21204,33412],[0,219]],[[26716,33588],[0,-39]],[[26716,33549],[-113,-235]],[[22051,33041],[0,365]],[[24936,33938],[-60,-512],[-14,-170]],[[24862,33256],[-37,-264]],[[24825,32992],[-3,-13]],[[24822,32979],[-25,84]],[[28635,33989],[84,-187],[-27,-253]],[[28542,33974],[93,15]],[[26603,33314],[-81,-203]],[[26522,33111],[-2,6]],[[28434,33295],[-3,-15]],[[17974,32256],[138,-1299]],[[18112,30957],[-82,-401]],[[16298,32208],[-72,882],[-122,645]],[[23602,32994],[-11,449]],[[21204,33412],[-1,-817]],[[21203,32595],[0,-426]],[[28431,33280],[136,-511]],[[28600,33319],[-166,-24]],[[28692,33549],[42,-49]],[[28769,33444],[-93,-556],[-69,315],[-7,116]],[[26520,33117],[-19,-319]],[[26501,32798],[-74,-159]],[[24816,32970],[-19,93]],[[23602,32994],[0,-32]],[[22051,33041],[0,-446]],[[27130,32590],[-29,6]],[[27101,32596],[-27,6]],[[27253,32559],[-11,1]],[[27242,32560],[-112,30]],[[26785,32306],[-28,-50]],[[27389,32256],[-18,140]],[[27371,32396],[-36,134]],[[22051,32313],[0,282]],[[26967,32610],[-62,-86]],[[25504,32261],[-107,4]],[[25610,32253],[-106,8]],[[26236,32231],[-80,-4]],[[26156,32227],[-28,-3]],[[26128,32224],[-30,-1]],[[25719,32238],[-105,15]],[[25614,32253],[-4,0]],[[23598,32131],[4,828]],[[23602,32959],[0,3]],[[24816,32970],[-27,-496],[-38,-228]],[[24751,32246],[1,-252]],[[24752,31994],[-29,-50]],[[25175,32246],[-10,0]],[[25165,32246],[-54,-2]],[[25111,32244],[-52,0]],[[26905,32524],[-52,-143]],[[26853,32381],[-37,-23]],[[26816,32358],[-31,-52]],[[25397,32265],[-59,-19]],[[25338,32246],[-45,0]],[[25293,32246],[-5,0]],[[27335,32530],[-82,29]],[[28426,32387],[121,-324]],[[28476,32416],[-54,-29]],[[24936,32246],[-22,-2]],[[24914,32244],[-163,2]],[[27074,32602],[-68,17]],[[27006,32619],[-39,-9]],[[25059,32244],[-43,-1]],[[25016,32243],[-80,3]],[[25288,32246],[-113,0]],[[23598,32131],[-2,-381]],[[23596,31750],[-2,-412]],[[25863,32238],[-130,0]],[[25733,32238],[-14,0]],[[25989,32233],[-125,5]],[[25864,32238],[-1,0]],[[26292,32232],[-10,-1]],[[26282,32231],[-46,0]],[[26757,32256],[-104,-15]],[[28567,32769],[21,-236],[-112,-117]],[[26098,32223],[-37,3]],[[26061,32226],[-72,7]],[[26507,32231],[-35,0]],[[26472,32231],[-53,2]],[[26419,32233],[8,406]],[[26419,32233],[-83,0]],[[26336,32233],[-44,-1]],[[28422,32387],[4,0]],[[27643,31895],[-109,13]],[[27534,31908],[-68,6]],[[27466,31914],[-77,342]],[[21203,31783],[0,386]],[[22051,32313],[0,-531]],[[27710,31890],[-67,5]],[[26653,32241],[-19,0]],[[26634,32241],[-108,-10]],[[26526,32231],[-19,0]],[[28596,31771],[1,-6]],[[28597,31765],[0,-3]],[[28597,31762],[-51,125],[-130,-68]],[[28416,31819],[0,-1]],[[28547,32063],[63,79],[-14,-371]],[[16447,30195],[0,0]],[[16544,30316],[0,0]],[[16625,31089],[-228,180],[-87,448],[-12,491]],[[26790,31290],[-17,21]],[[26773,31311],[-15,81]],[[26758,31392],[-66,275]],[[26692,31667],[1,5]],[[26693,31672],[-4,53]],[[26689,31725],[68,531]],[[27773,31565],[-63,325]],[[22095,31335],[-43,101]],[[22052,31436],[0,0]],[[22052,31436],[-1,346]],[[25367,32054],[-29,192]],[[25354,31476],[-3,-221]],[[25367,32054],[-13,-578]],[[26061,32226],[7,-232]],[[28416,31818],[0,1]],[[28416,31819],[-53,-450],[-48,-156]],[[26081,31553],[-13,441]],[[26083,31488],[-2,65]],[[27882,30949],[-1,3]],[[27881,30952],[-105,597]],[[27776,31549],[-3,16]],[[21203,31783],[0,-808]],[[21203,30975],[0,-20]],[[24723,31944],[-48,-358]],[[16772,30477],[-147,612]],[[24678,31369],[-3,217]],[[26083,31488],[4,-119]],[[22271,31020],[-74,109]],[[22197,31129],[0,1]],[[22197,31130],[-102,205]],[[16917,28163],[0,0]],[[16946,29088],[0,0]],[[17003,29918],[0,12]],[[17003,29930],[-3,11]],[[17e3,29941],[0,-8]],[[17e3,29933],[-26,23]],[[16974,29956],[-14,-67]],[[16960,29889],[-75,574],[-113,14]],[[26859,30781],[-9,150]],[[26850,30931],[-60,359]],[[28315,31213],[-62,-271]],[[28253,30942],[0,-3]],[[23592,30746],[2,592]],[[24678,31369],[-78,-590],[-29,-164]],[[24571,30615],[0,-1]],[[22438,30684],[-95,104]],[[22343,30788],[-72,232]],[[21203,30955],[-1,-888]],[[21202,30067],[-2,-474]],[[26101,30925],[-14,444]],[[26113,30543],[-12,382]],[[19529,28920],[0,1060]],[[25346,30990],[5,265]],[[26113,30543],[6,-217]],[[22570,30659],[-80,-112]],[[22490,30547],[-52,137]],[[23592,30746],[-2,-464]],[[23590,30282],[0,-1]],[[23590,30281],[-3,-562]],[[23587,29719],[-72,121]],[[23515,29840],[-115,435]],[[27999,30290],[-117,659]],[[26900,30419],[-41,362]],[[25346,30990],[-9,-437]],[[28253,30939],[6,1]],[[28260,30934],[-41,-278]],[[28219,30656],[-27,96]],[[28192,30752],[-167,-607]],[[28025,30145],[-4,18]],[[28021,30163],[-1,7]],[[28020,30170],[-21,120]],[[25336,30501],[1,52]],[[18007,28580],[-60,520],[29,244]],[[17976,29344],[53,1100],[1,112]],[[28020,30170],[-119,-574]],[[22730,30207],[-116,-19]],[[22614,30188],[-44,471]],[[26900,30419],[8,-106]],[[23001,30197],[-96,111]],[[23232,30157],[-24,-63]],[[23208,30094],[-148,-212]],[[23060,29882],[-59,315]],[[23400,30275],[-43,-109]],[[23357,30166],[-125,-9]],[[24499,29515],[-5,61]],[[24494,29576],[68,417],[24,446],[-15,175]],[[26122,30210],[-3,116]],[[25336,30501],[-11,-583]],[[27034,29642],[-33,180]],[[27001,29822],[-92,488]],[[26909,30310],[-1,3]],[[22905,30308],[-3,-11]],[[22902,30297],[-69,-352],[-81,291]],[[22752,30236],[-22,-29]],[[25317,29524],[8,394]],[[27062,29521],[-4,24]],[[27058,29545],[-24,97]],[[26122,30210],[14,-464]],[[26136,29746],[9,-316]],[[23710,29558],[-123,161]],[[17149,29251],[-81,408]],[[17068,29659],[-1,5]],[[17067,29664],[-10,15]],[[17057,29679],[0,-3]],[[17057,29676],[-54,242]],[[27134,28900],[-27,91]],[[27107,28991],[-45,530]],[[21199,29253],[1,340]],[[26148,29328],[-3,102]],[[27901,29596],[-50,-711],[-61,-15]],[[27790,28870],[0,0]],[[19529,28920],[0,-803]],[[19529,28117],[0,-654]],[[25317,29524],[-8,-457]],[[23710,29558],[1,-522]],[[23777,28566],[-3,0]],[[23774,28566],[-63,0]],[[23711,28566],[0,470]],[[21199,29253],[-2,-798]],[[21197,28455],[0,-813]],[[21197,27642],[0,-810]],[[21197,26832],[-73,-163]],[[21124,26669],[-110,0]],[[24499,29515],[7,-722],[6,-241]],[[24512,28552],[0,-13]],[[24512,28539],[-27,2]],[[24485,28541],[-48,0]],[[24437,28541],[-7,0]],[[25299,28515],[10,552]],[[27680,28409],[-43,-45]],[[17564,27821],[-328,418],[-87,1012]],[[26148,29328],[16,-556]],[[26164,28772],[1,-40]],[[27173,28708],[-39,192]],[[23865,28565],[-9,0]],[[23856,28565],[-79,1]],[[18336,26742],[-386,1265]],[[17950,28007],[57,573]],[[24004,28563],[-69,2]],[[23935,28565],[-70,0]],[[17950,28007],[-386,-186]],[[24430,28541],[-169,5]],[[20700,26669],[-19,0]],[[20681,26669],[-301,5]],[[20380,26674],[-106,-2]],[[24261,28546],[-183,11]],[[24078,28557],[-74,6]],[[23711,28566],[0,-257]],[[27173,28708],[21,-92]],[[25299,28515],[-2,-116]],[[26179,28289],[-14,443]],[[27506,27795],[-43,-73]],[[27232,28056],[-38,560]],[[26179,28289],[13,-230]],[[20274,26672],[-42,-405]],[[20232,26267],[-214,0]],[[27232,28056],[4,-279]],[[27266,27706],[-30,71]],[[23711,27034],[0,365]],[[23711,27399],[0,560]],[[23711,27959],[0,350]],[[24546,27741],[-28,477],[-6,321]],[[24546,27741],[-7,-25]],[[25277,27244],[9,502]],[[25286,27746],[11,653]],[[21014,26669],[-72,0]],[[20942,26669],[-12,0]],[[20930,26669],[-230,0]],[[26208,27801],[-16,258]],[[19764,26267],[-235,-841]],[[19529,25426],[0,2037]],[[27391,27734],[0,-210]],[[27390,27442],[2,-9]],[[27390,27414],[-6,-39]],[[27359,26910],[6,8]],[[27365,26918],[-4,-100]],[[27361,26818],[-42,56]],[[27319,26874],[-7,14]],[[27312,26888],[-8,203]],[[27304,27091],[-38,614]],[[27266,27705],[0,1]],[[26208,27801],[22,-182]],[[27394,26872],[0,0]],[[27381,27086],[-9,-128]],[[27372,26958],[0,-3]],[[27372,26955],[2,-9]],[[27374,26946],[0,-12]],[[27374,26934],[-5,-4]],[[27369,26930],[-4,-12]],[[27365,26918],[-6,-8]],[[27384,27375],[-3,-289]],[[27447,27145],[0,0]],[[27436,27222],[0,0]],[[27463,27722],[-6,-37]],[[27457,27685],[-66,49]],[[24549,26882],[0,12]],[[24549,26894],[-5,6]],[[24544,26900],[-20,161]],[[24524,27061],[33,302],[-18,353]],[[26238,27372],[-8,247]],[[20018,26267],[-254,0]],[[25277,27244],[-3,-152]],[[26251,27098],[-13,274]],[[18884,25600],[-548,1142]],[[26251,27098],[-37,-311]],[[19529,25426],[-392,0]],[[23711,27034],[7,-402]],[[23756,26379],[-38,253]],[[25265,26107],[-3,365]],[[25262,26472],[12,620]],[[24549,26882],[-60,-455]],[[24489,26427],[-19,-223]],[[24470,26204],[-17,-29]],[[27280,26467],[-25,-152]],[[27306,26150],[0,0]],[[27349,26782],[2,-6]],[[27351,26775],[0,1]],[[27351,26775],[4,-31]],[[27355,26744],[-23,-10]],[[27332,26734],[17,48]],[[27312,26888],[31,-85]],[[27343,26803],[-11,-69]],[[27332,26734],[-52,-267]],[[26211,26653],[3,134]],[[26211,26653],[-20,-392]],[[26191,26261],[4,-34]],[[27292,26017],[0,-3]],[[27292,26017],[0,-3]],[[27282,26175],[-36,-149]],[[27255,26315],[27,-140]],[[20664,24117],[-162,673],[-122,739]],[[20380,25529],[-148,738]],[[23756,26379],[13,-481]],[[25265,26107],[3,-489]],[[23847,25152],[-13,-16]],[[23834,25136],[-65,762]],[[26217,25770],[-22,457]],[[26217,25770],[-11,-388]],[[24453,26175],[-39,-381],[-38,-520],[18,-110]],[[24394,25164],[-13,-357]],[[19137,25426],[-253,174]],[[25274,25021],[-6,597]],[[27267,25513],[0,0]],[[27246,26026],[22,-179]],[[27268,25847],[-55,-393]],[[27213,25454],[-1,-15]],[[25899,24796],[-56,0]],[[25843,24796],[-83,2]],[[26222,24948],[-16,434]],[[27006,24004],[-57,25]],[[27254,25381],[-16,11],[14,-13]],[[27212,25439],[0,-5]],[[27220,25420],[3,3]],[[27223,25423],[-3,-308]],[[27220,25115],[4,-151]],[[27224,24964],[1,-25]],[[27225,24939],[-35,18]],[[25274,25021],[2,-216]],[[24913,24811],[-30,0]],[[24542,24805],[-33,0]],[[24509,24805],[-128,2]],[[23846,24564],[1,588]],[[24684,24807],[-6,0]],[[24678,24807],[-71,0]],[[24607,24807],[-65,-2]],[[24764,24808],[-24,0]],[[24740,24808],[-56,-1]],[[24883,24811],[-119,-3]],[[25506,24802],[46,-954]],[[25552,23848],[-113,-480],[-40,902]],[[25399,24270],[-10,63]],[[25389,24375],[5,36]],[[26222,24948],[7,-140]],[[26229,24808],[-135,-6]],[[25760,24798],[-27,4]],[[25733,24802],[-106,3]],[[25627,24805],[-121,-3]],[[26094,24802],[-3,0]],[[26091,24802],[-149,-7]],[[25942,24795],[-43,1]],[[23846,24564],[-51,-870]],[[23795,23694],[9,-293]],[[26949,24029],[-11,5]],[[26938,24034],[-35,13]],[[25394,24411],[-110,-744]],[[25284,23667],[-5,648]],[[25279,24315],[-3,490]],[[27211,24430],[0,0]],[[27190,24957],[22,-103]],[[27212,24854],[-36,-569]],[[27176,24285],[-1,-3]],[[27175,24282],[-83,206]],[[26403,24230],[-135,41]],[[26485,24204],[-55,17]],[[26430,24221],[-27,9]],[[26688,24133],[-71,26]],[[26617,24159],[-37,13]],[[26580,24172],[-73,25]],[[26507,24197],[-22,7]],[[26268,24271],[-39,537]],[[27092,24488],[-40,-867]],[[27052,23621],[-46,383]],[[26749,24108],[-48,18]],[[26692,24131],[-4,2]],[[24923,23801],[-42,386]],[[24881,24187],[32,624]],[[25623,23959],[-1,2]],[[25622,23961],[-68,-267],[-2,154]],[[25729,23702],[-75,79],[-31,178]],[[25841,23791],[-112,-89]],[[25953,23447],[-112,205]],[[25841,23687],[0,104]],[[26903,24047],[-29,12]],[[26874,24059],[-125,49]],[[27175,24282],[1,3]],[[27176,24285],[6,-15]],[[27182,24270],[23,0]],[[27205,24270],[-28,-281]],[[25284,23667],[-47,-34]],[[25237,23633],[-89,107]],[[24923,23801],[47,-522]],[[24970,23279],[-29,-45]],[[25148,23740],[-127,-99]],[[26511,23122],[-24,8]],[[21403,22720],[-156,-987],[-152,-563],[-101,404]],[[21560,22539],[-157,181]],[[26701,24126],[-9,5]],[[25021,23641],[0,-2]],[[25021,23639],[-51,-360]],[[20994,21574],[-152,479],[-102,1013],[-46,832],[-30,219]],[[27222,23603],[4,-74]],[[27226,23529],[1,-43]],[[27227,23486],[0,-3]],[[27227,23483],[-2,-67]],[[27180,23180],[-5,490],[47,-67]],[[27225,23416],[2,67]],[[27227,23483],[0,3]],[[27227,23486],[-1,43]],[[27226,23529],[-4,74]],[[27222,23603],[17,-186]],[[27177,23989],[0,0]],[[27177,23989],[16,-85]],[[27193,23904],[1,-24]],[[27194,23880],[1,2]],[[27195,23882],[6,-2]],[[27201,23880],[1,-3]],[[27202,23877],[0,0]],[[27202,23877],[0,0]],[[27202,23877],[1,8]],[[27203,23885],[1,-5]],[[27204,23880],[2,64]],[[27206,23944],[10,-81]],[[27216,23863],[-2,-148]],[[27214,23715],[-62,-414]],[[26122,22808],[-1,194]],[[26121,23015],[0,29]],[[26121,23044],[-95,230],[-73,173]],[[23800,23042],[4,359]],[[26678,22333],[-167,789]],[[26487,23130],[-104,-234]],[[21830,21535],[-128,716],[-142,288]],[[27281,22397],[0,0]],[[27243,23122],[0,-12]],[[27243,23110],[34,-710]],[[27277,22400],[4,-22]],[[27281,22378],[1,-11]],[[27282,22367],[0,-3]],[[27282,22364],[1,-31]],[[27282,22333],[-6,-21]],[[27198,22498],[-18,682]],[[27225,23416],[0,-5]],[[27225,23411],[18,-289]],[[27243,23110],[0,12]],[[27243,23122],[-18,289]],[[27225,23411],[0,5]],[[27239,23417],[4,-307]],[[23800,23042],[-37,-347]],[[24843,21940],[-54,417]],[[26217,22536],[-1,-5]],[[26169,22376],[-47,432]],[[26121,23002],[0,13]],[[24941,23234],[-65,-283]],[[24875,22939],[0,0]],[[27152,23301],[24,-654]],[[23763,22695],[4,-322]],[[23767,22373],[-143,-244]],[[23464,22353],[-25,-248]],[[24998,22831],[5,-70]],[[25003,22761],[16,-209]],[[25019,22552],[-27,-70]],[[24992,22482],[-36,-158]],[[24956,22324],[1,-1]],[[24957,22323],[6,-23]],[[24960,22312],[-1,0]],[[24876,22951],[0,-3]],[[24876,22948],[-1,-9]],[[24875,22939],[79,-12],[44,-96]],[[24288,22636],[-96,-558],[-84,85]],[[24329,21970],[0,0]],[[24320,22458],[-32,178]],[[24108,22163],[-341,210]],[[26195,22254],[0,0]],[[26216,22531],[-47,-155]],[[26383,22896],[-113,-331],[-53,-29]],[[24498,22178],[-115,125],[-63,155]],[[24824,21885],[-1,-197]],[[24823,21688],[-9,-46]],[[24814,21642],[5,-172]],[[24812,21395],[-49,-51]],[[24763,21344],[-40,151]],[[24723,21521],[0,11]],[[24724,21563],[2,9]],[[24789,22357],[35,-472]],[[24930,21618],[0,0]],[[24936,22296],[-1,-48]],[[24935,22248],[-19,-58]],[[24916,22190],[87,-374],[99,-513],[-99,-349],[-26,734],[-88,173]],[[24889,21861],[-16,57]],[[24873,21918],[-30,22]],[[24959,22312],[-23,-16]],[[23624,22129],[-5,-12]],[[23592,22122],[-94,382],[-34,-151]],[[27185,21734],[-15,654],[28,110]],[[27176,22647],[-22,-452],[4,-419]],[[24520,21484],[-10,206],[10,-206]],[[24676,21534],[-9,-59]],[[24667,21475],[-8,24]],[[24659,21499],[-20,-170]],[[24639,21329],[-35,9]],[[24604,21338],[-60,97],[-46,743]],[[24726,21572],[-50,-38]],[[27276,22312],[12,-92]],[[27288,22220],[7,-92]],[[27295,22128],[19,-249]],[[27285,22333],[31,-453]],[[27314,21879],[-19,249]],[[27295,22128],[-7,92]],[[27288,22220],[-4,107]],[[27284,22327],[0,6]],[[21864,21242],[-34,293]],[[23410,21245],[0,0]],[[23471,21642],[-43,-185]],[[23439,22105],[32,-463]],[[23619,22117],[-27,5]],[[23428,21457],[-94,-622],[-31,-76]],[[26855,21078],[3,53]],[[26858,21131],[-92,361]],[[26766,21492],[-9,198]],[[27158,21776],[8,-176]],[[27407,20820],[0,0]],[[27354,21322],[50,-627]],[[27390,20695],[-4,0]],[[27190,21440],[-1,12]],[[27189,21452],[-4,282]],[[27314,21879],[40,-557]],[[27189,21452],[1,-12]],[[27166,21600],[23,-148]],[[23056,20479],[-10,61]],[[23006,20536],[-1,-8]],[[23005,20528],[-22,36]],[[22982,20563],[-1,3]],[[23153,20311],[-38,241],[-40,-132]],[[23303,20759],[-127,-372],[-23,-76]],[[22981,20566],[1,-38]],[[21992,19589],[-82,1012],[-46,641]],[[26889,20516],[-9,134]],[[26880,20650],[4,230]],[[26884,20880],[0,-6]],[[26884,20874],[3,-11]],[[26887,20863],[1,5]],[[26888,20868],[-13,56]],[[26875,20924],[-19,157]],[[27386,20695],[98,-1780]],[[27404,20695],[13,0]],[[27419,20695],[40,-400],[-24,-392]],[[27435,19903],[-19,662],[-26,130]],[[22999,19753],[-68,-364]],[[22933,19426],[66,327]],[[22982,20528],[4,-700],[-39,228]],[[23012,20417],[-7,111]],[[23005,20528],[1,8]],[[23046,20540],[-34,-123]],[[26879,20029],[10,487]],[[22947,20056],[-2,-239]],[[22882,19600],[-63,-260]],[[26847,19544],[32,485]],[[22874,18926],[0,0]],[[22819,19340],[16,-164]],[[22849,19042],[0,2]],[[22835,19167],[14,-125]],[[22931,19572],[-49,28]],[[22945,19817],[-2,-81]],[[22940,19633],[-9,-61]],[[22203,17855],[-75,740],[-101,901],[-35,93]],[[22835,19176],[0,-9]],[[22849,19044],[0,-2]],[[22847,19026],[-97,-101]],[[26884,19257],[-25,-498]],[[26859,18759],[-12,785]],[[26912,18563],[21,330],[-49,364]],[[22840,18709],[0,0]],[[22795,18697],[1,-292]],[[22750,18925],[45,-228]],[[27484,18915],[39,-516]],[[26908,18086],[4,477]],[[22786,17879],[32,565]],[[22825,18434],[-35,-555]],[[22796,18405],[-79,-513],[-43,-10]],[[22674,17882],[-4,7]],[[27523,18399],[35,-548]],[[27544,17791],[0,-40]],[[27544,17751],[0,-6]],[[26995,17371],[0,-12]],[[26967,17261],[-31,320]],[[26936,17581],[-1,12]],[[26935,17593],[0,3]],[[26935,17596],[-9,143]],[[26926,17739],[-8,94]],[[26918,17833],[-10,253]],[[22282,16564],[-79,1291]],[[22801,16709],[-14,138]],[[22787,16847],[-6,304]],[[22781,17151],[3,18]],[[22784,17169],[17,-460]],[[22784,17169],[-1,646]],[[22783,17815],[3,64]],[[22790,17879],[-6,-710]],[[22761,17577],[-29,-264]],[[22732,17313],[31,-697]],[[22670,17889],[4,-7]],[[22674,17882],[87,-305]],[[27544,17745],[37,-149]],[[27581,17596],[0,0]],[[27581,17596],[18,-289]],[[27593,17307],[-1,0]],[[27588,17307],[0,0]],[[27588,17307],[-2,0]],[[26995,17359],[-28,-98]],[[27049,16934],[-54,437]],[[27586,17307],[16,-1210]],[[27015,16397],[0,0]],[[27109,16114],[-54,365],[-6,455]],[[22445,15979],[-108,267],[-55,318]],[[22647,15629],[-202,350]],[[22816,16443],[-3,13]],[[22813,16456],[-19,86]],[[22794,16542],[7,74]],[[22807,16616],[9,-173]],[[22768,16458],[0,-137]],[[22768,16321],[-7,-58]],[[22761,16263],[17,0]],[[22763,16616],[5,-158]],[[27249,15133],[-46,155]],[[27203,15290],[0,-2]],[[27203,15290],[0,7]],[[27203,15297],[-21,1]],[[27182,15298],[-4,48]],[[27178,15346],[-1,5]],[[27177,15351],[-4,13]],[[27173,15364],[0,-1]],[[27173,15363],[-1,-15]],[[27172,15348],[0,-9]],[[27172,15339],[-10,55]],[[27162,15394],[-34,199]],[[27128,15593],[0,29]],[[27128,15622],[-1,7]],[[27127,15629],[-5,48]],[[27122,15677],[0,-3]],[[27122,15674],[-13,440]],[[22828,15617],[-19,-207],[-102,140],[-60,79]],[[22778,16263],[50,-646]],[[27602,16097],[-12,-644]],[[27588,15313],[-60,-1055],[-25,-181]],[[27502,14077],[-16,-43]],[[27486,14028],[0,-3]],[[27486,14025],[-102,-58]],[[27590,15453],[-2,-140]],[[27521,13940],[-4,-28]],[[27517,13912],[-1,-7]],[[27516,13905],[0,-3]],[[27516,13902],[-5,-43]],[[27511,13859],[-3,-27]],[[27508,13832],[-3,64]],[[27505,13896],[10,83]],[[27515,13979],[0,2]],[[27515,13981],[0,1]],[[27515,13982],[0,17]],[[27515,13999],[6,-59]],[[27384,13967],[-82,277],[17,12]],[[27319,14256],[1,-7]],[[27320,14249],[6,-95]],[[27326,14154],[0,-18]],[[27326,14136],[0,-14]],[[27326,14122],[2,-18]],[[27328,14104],[0,-6]],[[27328,14098],[16,-58]],[[27344,14040],[-10,197]],[[27334,14237],[-12,50]],[[27322,14287],[-2,0]],[[27320,14287],[-4,15]],[[27316,14302],[-5,404]],[[27311,14706],[0,-4]],[[27311,14702],[2,-7]],[[27313,14695],[0,-16]],[[27313,14679],[18,-34]],[[27331,14645],[0,4]],[[27331,14649],[0,5]],[[27331,14654],[-18,82]],[[27313,14736],[-9,-11]],[[27304,14725],[-30,224]],[[27274,14949],[10,40]],[[27284,14989],[1,4]],[[27285,14993],[0,2]],[[27285,14995],[-20,3]],[[27265,14998],[-16,135]],[[26757,21690],[-79,643]],[[23354,58316],[139,550],[110,-1105]],[[24957,56455],[-324,-694],[-81,-301]],[[24549,56809],[324,-378],[84,24]],[[24223,53962],[7,61]],[[24230,54023],[175,117]],[[24405,54140],[162,349],[32,-468],[-20,-199]],[[24684,53819],[-105,3]],[[24619,54132],[0,0]],[[27637,28364],[-4,-462]],[[27633,27902],[-92,-111],[12,-133]],[[27527,27594],[-21,201]],[[27690,28249],[2,-64]],[[27692,28185],[-12,224]],[[27790,28870],[-7,-299]],[[27783,28571],[-93,-322]],[[6538,2301],[-58,813],[-2,1446],[122,-47],[126,-676],[-42,-874],[-146,-662]],[[5489,7808],[-81,498],[122,-55],[-41,-443]],[[6194,6504],[-45,-122],[18,148]],[[6181,5693],[36,57],[-36,-57]],[[6263,5263],[0,0]],[[6344,5400],[-88,696],[124,-23],[55,-530],[-91,-143]],[[5945,6665],[-86,608],[131,-516],[-45,-92]],[[5278,7638],[15,167],[-15,-167]],[[99849,62690],[-75,447],[75,-447]],[[778,63398],[0,0]],[[833,63475],[0,0]],[[886,63617],[0,0]],[[344,63153],[-79,572],[105,-215],[-26,-357]],[[540,63363],[0,206],[0,-206]],[[99643,63716],[0,0]],[[614,63140],[52,393],[81,99],[-102,-407],[-31,-85]],[[99953,63664],[43,190],[-43,-190]],[[857,63843],[0,0]],[[99312,63579],[70,549],[-43,-354],[-27,-195]],[[1574,63946],[-110,220],[208,-146],[-98,-74]],[[1841,64363],[65,153],[-65,-153]],[[1129,63904],[161,256],[100,524],[21,-543],[-157,-194],[-125,-43]],[[98292,64565],[21,3],[-21,-3]],[[2329,64909],[0,0]],[[2627,65344],[3,209],[-3,-209]],[[98084,65292],[-77,334],[133,126],[19,-377],[-75,-83]],[[2802,65454],[207,800],[94,564],[-125,-948],[-176,-416]],[[3604,67078],[0,0]],[[3201,66211],[50,385],[88,296],[43,279],[91,488],[134,-161],[-86,-521],[-320,-766]],[[2663,72349],[0,0]],[[2465,73417],[0,0]],[[3929,67750],[0,0]],[[3695,67690],[41,208],[-41,-208]],[[3784,67824],[42,197],[-42,-197]],[[4605,68312],[0,0]],[[4689,69168],[0,0]],[[4039,68354],[24,902],[287,332],[28,-631],[-182,-176],[-157,-427]],[[5487,69379],[0,0]],[[4849,69589],[0,0]],[[5436,69558],[0,0]],[[5271,69235],[67,345],[-67,-345]],[[5241,69942],[0,0]],[[5106,69709],[101,128],[-101,-128]],[[5293,70190],[0,0]],[[5642,72970],[0,-127]],[[5456,70676],[-115,328],[-177,-435],[-107,-262],[-101,260],[-91,-320],[-105,-623],[-129,79],[-36,-209],[-152,239],[-27,-293],[115,548],[91,375],[413,879],[79,-404],[148,76],[-22,978],[402,1095]],[[13205,69728],[0,0]],[[13355,69846],[-28,487],[-115,332],[131,633],[12,-1452]],[[6096,76208],[78,519]],[[5035,76091],[0,0]],[[5035,76603],[-74,-161]],[[5589,76635],[89,-511]],[[5678,76124],[-175,368],[-112,85],[-127,337],[-165,-226]],[[5099,76688],[-54,-52]],[[6125,76674],[-331,-247],[-75,346],[-130,-138]],[[6115,72321],[0,0]],[[6349,73509],[-124,-473],[-111,-258],[-73,-264],[-184,-179],[-1,-127],[-21,-313],[-109,-391],[-75,-146],[-152,-400],[-43,-282]],[[5642,72843],[219,1026],[142,501],[54,1023],[39,815]],[[6174,76727],[-49,-53]],[[6561,70864],[0,0]],[[6992,72274],[0,0]],[[6794,72099],[0,0]],[[6984,72435],[0,0]],[[7199,73194],[34,190],[-34,-190]],[[7462,74857],[0,0]],[[7226,74697],[0,0]],[[6968,72731],[69,699],[-95,81],[33,-64],[-117,106],[-27,608],[235,-355],[26,659],[33,299],[94,111],[121,39],[94,-42],[86,-512],[-204,-244],[-35,-272],[-158,-459],[-155,-654]],[[7297,75038],[-38,200],[38,-200]],[[7476,75855],[65,-494],[-196,-167],[-108,282],[108,111],[112,66],[19,202]],[[7381,76133],[0,0]],[[7214,76666],[-22,-1]],[[7192,76665],[-175,-684],[-52,-323],[-117,-537],[-200,-497],[-117,-218],[-120,-316],[-62,-581]],[[12366,75252],[5,175]],[[12371,75427],[0,-3]],[[12381,75492],[103,-178]],[[12498,75431],[0,0]],[[12484,76871],[267,-997],[57,-517]],[[12715,74938],[-33,-160]],[[12655,74703],[-69,962],[-69,-212],[-203,853],[0,575]],[[12311,76882],[-61,4]],[[12500,71022],[0,0]],[[13038,71188],[-70,608],[98,-87],[-28,-521]],[[12892,71782],[71,296],[-71,-296]],[[13083,71690],[12,293],[-12,-293]],[[13006,72478],[0,0]],[[12908,72271],[-2,556],[2,-556]],[[12615,72742],[-8,-441],[-33,-793],[-77,498],[-9,396],[28,684],[99,-344]],[[12660,72704],[84,521],[112,-753],[-24,-147],[-158,-160],[-14,539]],[[13033,73861],[67,-885],[295,-875]],[[13073,70867],[127,867],[-165,610],[-114,565],[-115,629],[-93,4]],[[11922,74760],[-12,-1]],[[11903,74758],[110,9]],[[11893,74787],[0,0]],[[12713,73542],[38,429],[-81,403],[26,263],[2,222]],[[12708,74912],[7,26]],[[12808,75357],[225,-1496]],[[12484,75314],[2,2]],[[12529,75370],[57,-872],[-100,567],[62,-912],[-13,-553],[-99,201],[-62,754],[-8,697]],[[12108,75160],[-28,-110]],[[12080,75050],[126,246]],[[12206,75296],[31,-310],[-188,89]],[[12015,74776],[-60,586],[182,108],[-29,-310]],[[12371,75424],[10,68]],[[12062,75988],[-32,784],[-78,-298],[-169,378],[83,-342],[46,-884],[-145,90],[-288,850]],[[11595,76760],[289,658]],[[12161,76003],[-99,-15]],[[12201,77569],[-9,22]],[[12099,78291],[172,-561],[19,-151]],[[12314,76881],[-3,1]],[[12250,76886],[-49,683]],[[12290,77579],[153,-400],[41,-308]],[[12192,77591],[-5,-716],[86,-1362],[-112,490]],[[11884,77418],[38,633],[177,240]],[[12070,73189],[-7,651],[7,-651]],[[12285,72715],[-93,388],[-43,549],[26,596],[167,-274],[60,-1268],[-9,-883]],[[12393,71662],[-108,1053]],[[11934,74683],[-12,77]],[[12013,74767],[2,9]],[[12049,75075],[220,-449],[4,-547],[-126,16],[-213,588]],[[4001,83653],[0,0]],[[4259,83451],[-234,958],[203,-704],[31,-254]],[[4192,84190],[-67,628],[157,-398],[-90,-230]],[[3903,80509],[38,343],[-153,-28],[-95,611],[-68,401],[149,393],[155,1298],[337,-141],[-74,789],[213,267],[210,447]],[[3609,78331],[-256,445],[77,525],[208,100],[140,-781],[-169,-289]],[[1910,79346],[-184,574],[184,-574]],[[4013,79338],[-125,385],[91,689],[184,-355],[-95,-543],[-55,-176]],[[4902,77138],[-111,505],[-40,940],[-64,908],[-72,-97],[-51,-610],[-325,-353],[-126,507],[-38,874],[167,449],[141,-114],[-67,257],[-95,340],[-184,-211],[-134,-24]],[[5045,76636],[-10,-33]],[[4961,76442],[-203,-214],[79,631],[65,279]],[[8332,81549],[-208,-449],[-275,-85]],[[8387,80363],[-287,581],[232,605]],[[9624,78418],[0,0]],[[8666,78680],[0,0]],[[8662,78874],[0,0]],[[8602,78821],[0,0]],[[8713,78358],[259,1026],[-139,-823],[-120,-203]],[[9058,79230],[7,463],[84,-259],[-91,-204]],[[8702,79277],[0,0]],[[8492,79649],[195,-79],[-95,-558],[-102,-363]],[[9173,79634],[0,0]],[[8697,80017],[0,0]],[[8630,79964],[0,0]],[[8494,80038],[105,161],[-105,-475]],[[8668,80254],[0,0]],[[8747,80338],[8,836],[-187,-517],[-29,-359],[-45,-148]],[[10627,82337],[0,-2812]],[[9823,78789],[-225,511],[-84,480],[-205,-102],[-51,437],[-112,111],[24,227],[-108,355],[-75,-222],[-175,-124],[-65,-124]],[[7140,77530],[0,0]],[[7918,77470],[0,0]],[[7543,79429],[0,0]],[[8494,80150],[0,-112]],[[8494,79724],[-2,-75]],[[8490,78649],[-168,-14],[-100,-30],[-87,-455],[-95,-12],[-126,-413],[-182,-329],[-70,443],[123,277],[-175,159],[125,1195],[90,792],[278,233],[284,-132]],[[7849,81015],[-203,-855],[-148,-630],[-94,-637],[-197,-449],[-24,-218],[-120,-300],[-102,-962],[231,-176],[7,-124]],[[11073,77696],[-82,343]],[[10991,78039],[52,861],[-540,-320],[22,268],[-635,15],[-67,-74]],[[10627,79525],[285,-390],[258,-349],[432,-1879],[-7,-147]],[[11479,76566],[-145,717],[-261,413]],[[10627,94617],[0,-4941]],[[10627,89676],[0,-7339]],[[7949,98194],[0,0]],[[4758,97701],[370,402],[175,-96],[2,557],[311,274],[606,970],[194,-236],[17,-374],[344,250],[250,-395],[474,-101],[-106,-527],[387,-340],[310,131],[449,-119],[364,-405],[538,-298],[697,98],[384,-761],[103,-2114]],[[3841,93742],[-270,690],[566,984],[356,1130],[153,835],[227,476],[-115,-156]],[[4108,91048],[160,-570],[21,-388]],[[4289,90090],[385,-72],[228,394],[-97,219],[-200,911],[153,-374],[356,-517],[38,410],[-231,-116],[2,807],[-409,131],[-439,1287],[-234,572]],[[4620,85381],[0,0]],[[2649,84266],[-265,848],[-321,-46],[70,419],[336,171],[203,-604],[70,-329],[-93,-459]],[[5052,87977],[-187,-281],[-238,-465],[-182,218],[-113,-158],[-396,-240],[-408,675],[-24,608],[255,-141],[-71,188],[-416,469],[-52,574],[200,411],[349,342],[50,538],[289,333]],[[4615,84889],[121,292],[385,633],[-138,1144],[131,438],[-62,581]],[[12956,69029],[0,0]],[[13317,69219],[0,0]],[[12925,69473],[-21,387],[21,-387]],[[12930,68872],[-132,1072],[123,-767],[9,-305]],[[13247,69478],[75,326],[-75,-326]],[[12761,69871],[30,109],[-30,-109]],[[12684,69935],[12,183],[-12,-183]],[[12707,70286],[0,0]],[[12629,70305],[0,0]],[[12756,70325],[0,0]],[[12710,70782],[0,0]],[[12785,70929],[0,0]],[[12656,71166],[119,461],[-119,-461]],[[12877,71377],[0,5]],[[12877,71382],[120,-652],[9,-203],[84,-353],[38,-171],[14,-713],[-147,209],[-122,497],[-22,327],[-102,319],[33,987],[-50,326],[145,-578]],[[13062,70861],[11,6]],[[13395,72101],[178,-488],[119,-436],[-28,-1331],[-192,-647],[-82,655],[-85,1424],[-107,-283],[-136,-134]],[[31178,1304],[23,73]],[[31195,919],[-2,184]],[[31290,1513],[20,-8]],[[31284,522],[-34,-5]],[[31429,566],[-31,6]],[[31271,1506],[19,7]],[[31329,564],[-16,40]],[[31375,1499],[25,12]],[[31310,1505],[50,3]],[[31400,1511],[26,-5]],[[31513,1444],[13,14]],[[31493,1404],[0,0]],[[31492,1426],[1,-22]],[[31398,572],[-25,-14]],[[31426,1506],[10,-15]],[[31193,1103],[-11,55]],[[31250,517],[-36,-12]],[[31214,505],[-19,414]],[[31549,569],[-31,-3]],[[31201,1377],[0,2]],[[31201,1379],[15,182]],[[31313,604],[-27,-82]],[[31466,535],[-8,-54]],[[31458,481],[-29,85]],[[31257,1516],[14,-10]],[[31360,1508],[15,-9]],[[31493,1404],[20,40]],[[31504,544],[-38,-9]],[[31286,522],[-2,0]],[[31373,558],[-44,6]],[[31216,1561],[41,-45]],[[31580,736],[-15,-109]],[[31464,1471],[21,-4]],[[31837,1170],[0,0]],[[31885,1161],[0,0]],[[31593,1322],[22,-42]],[[31526,1458],[45,-64]],[[31565,627],[-16,-58]],[[31571,1394],[22,-72]],[[31618,992],[-22,-62]],[[31615,1280],[10,-145]],[[31625,1135],[-7,-143]],[[31596,930],[-16,-194]],[[31654,755],[0,0]],[[31830,0],[51,45],[-51,-45]],[[31436,1491],[28,-20]],[[12393,71823],[0,-161]],[[11910,74759],[-7,-1]],[[12486,75316],[43,54]],[[7199,76664],[15,2]],[[5642,72987],[0,-17]],[[12698,74859],[10,53]],[[12682,74778],[-19,-87]],[[12663,74691],[-8,12]],[[6167,6530],[27,-26]],[[31485,1467],[7,-41]],[[31518,566],[-14,-22]],[[31182,1158],[-4,146]],[[25389,24333],[0,42]],[[29700,43907],[2,-8]],[[27362,21240],[-8,82]],[[27354,21322],[-40,557]],[[27284,22333],[-2,31]],[[27282,22364],[0,3]],[[27282,22367],[-1,11]],[[27281,22378],[4,-45]],[[27316,21880],[46,-640]],[[27503,14077],[12,-78]],[[27515,13999],[0,-17]],[[27515,13982],[0,-3]],[[27515,13979],[-13,98]],[[27486,14034],[19,-138]],[[27505,13896],[-19,132]],[[26856,21081],[-1,-3]],[[25841,23652],[0,35]],[[27283,22333],[1,-6]],[[27284,22327],[-2,6]],[[27417,20695],[2,0]],[[27558,17851],[-14,-60]],[[27599,17307],[-6,0]],[[27592,17307],[-4,0]],[[27252,25379],[2,2]],[[27212,25434],[1,20]],[[27213,25454],[8,-22]],[[27221,25432],[-1,-12]],[[24963,22300],[-3,12]],[[24819,21470],[-7,-75]],[[24723,21495],[0,26]],[[24723,21532],[1,24]],[[24724,21556],[0,7]],[[30135,46090],[-18,-72]],[[30110,46013],[3,-39]],[[30179,45778],[12,-45]],[[28577,40083],[12,5]],[[28807,32602],[0,11]],[[28259,30940],[1,-6]],[[28903,40411],[-2,5]],[[29368,42670],[-8,46]],[[27553,27658],[-26,-64]],[[27391,27524],[-1,-82]],[[27392,27433],[-2,-19]],[[22801,16709],[6,-93]],[[22801,16616],[-7,140]],[[22794,16756],[7,-47]],[[22818,18444],[7,-10]],[[22931,19389],[2,37]],[[23075,20420],[-19,59]],[[22983,20564],[-1,-1]],[[22943,19736],[0,-10]],[[22943,19726],[0,-84]],[[22943,19642],[-3,-9]],[[22849,19042],[-2,-16]],[[28549,36663],[0,0]],[[28622,36237],[15,43]],[[28637,36280],[-6,-94]],[[28371,36551],[17,-30]],[[28624,35785],[5,-105]],[[28625,35633],[31,31]],[[28656,35664],[13,4]],[[28446,39406],[0,-2]],[[28446,39404],[-1,-95]]]},airports:[{iata:"00M",name:"Thigpen",city:"Bay Springs",state:"MS",country:"USA",latitude:31.95376472,longitude:-89.23450472},{iata:"06U",name:"Jackpot/Hayden",city:"Jackpot",state:"NV",country:"USA",latitude:41.97602222,longitude:-114.6580911},{iata:"0B5",name:"Turners Falls",city:"Montague",state:"MA",country:"USA",latitude:42.59136361,longitude:-72.52275472},{iata:"0J0",name:"Abbeville Municipal",city:"Abbeville",state:"AL",country:"USA",latitude:31.60016778,longitude:-85.23882222},{iata:"0R3",name:"Abbeville Chris Crusta Memorial",city:"Abbeville",state:"LA",country:"USA",latitude:29.97576083,longitude:-92.08415167},{iata:"11R",name:"Brenham Municipal",city:"Brenham",state:"TX",country:"USA",latitude:30.219,longitude:-96.37427778},{iata:"17G",name:"Port Bucyrus-Crawford County",city:"Bucyrus",state:"OH",country:"USA",latitude:40.78141667,longitude:-82.97469444},{iata:"1B9",name:"Mansfield Municipal",city:"Mansfield",state:"MA",country:"USA",latitude:42.00013306,longitude:-71.19677139},{iata:"1H8",name:"Casey Municipal",city:"Casey",state:"IL",country:"USA",latitude:39.30250917,longitude:-88.00406194},{iata:"1N7",name:"Blairstown",city:"Blairstown",state:"NJ",country:"USA",latitude:40.97114556,longitude:-74.99747556},{iata:"1V9",name:"Blake",city:"Delta",state:"CO",country:"USA",latitude:38.78539722,longitude:-108.0636611},{iata:"25M",name:"Ripley",city:"Ripley",state:"MS",country:"USA",latitude:34.72226778,longitude:-89.01504944},{iata:"2B7",name:"Pittsfield Municipal",city:"Pittsfield",state:"ME",country:"USA",latitude:44.76852778,longitude:-69.37441667},{iata:"2J9",name:"Quincy Municipal",city:"Quincy",state:"FL",country:"USA",latitude:30.59786111,longitude:-84.55741667},{iata:"2S1",name:"Vashon Municipal",city:"Vashon",state:"WA",country:"USA",latitude:47.45815333,longitude:-122.4773506},{iata:"34A",name:"Laurens County",city:"Laurens",state:"SC",country:"USA",latitude:34.50705556,longitude:-81.94719444},{iata:"3B2",name:"Marshfield",city:"Marshfield",state:"MA",country:"USA",latitude:42.09824111,longitude:-70.67212083},{iata:"3J7",name:"Greene County Airpark",city:"Greensboro",state:"GA",country:"USA",latitude:33.59766667,longitude:-83.139},{iata:"3R0",name:"Beeville Municipal",city:"Beeville",state:"TX",country:"USA",latitude:28.36455528,longitude:-97.79208194},{iata:"3Z9",name:"Haines SPB",city:"Haines",state:"AK",country:"USA",latitude:59.23495111,longitude:-135.4407181},{iata:"47N",name:"Central Jersey Regional",city:"Manville",state:"NJ",country:"USA",latitude:40.52438417,longitude:-74.59839194},{iata:"4B6",name:"Ticonderoga Muni",city:"Ticonderoga",state:"NY",country:"USA",latitude:43.87700278,longitude:-73.41317639},{iata:"4J5",name:"Quitman-Brooks County",city:"Quitman",state:"GA",country:"USA",latitude:30.80575139,longitude:-83.58654889},{iata:"4R5",name:"Madeline Island",city:"La Pointe",state:"WI",country:"USA",latitude:46.78865556,longitude:-90.75866944},{iata:"50R",name:"Lockhart Municipal",city:"Lockhart",state:"TX",country:"USA",latitude:29.85033333,longitude:-97.67241667},{iata:"5A8",name:"Aleknagik",city:"Aleknagik",state:"AK",country:"USA",latitude:59.28256167,longitude:-158.6176725},{iata:"5M4",name:"Fordyce Municipal",city:"Fordyce",state:"AR",country:"USA",latitude:33.84593722,longitude:-92.36542861},{iata:"5W8",name:"Siler City Municipal",city:"Siler City",state:"NC",country:"USA",latitude:35.7029175,longitude:-79.50529972},{iata:"68A",name:"Wrangell SPB",city:"Wrangell",state:"AK",country:"USA",latitude:56.466325,longitude:-132.3800181},{iata:"6J4",name:"Saluda County",city:"Saluda",state:"SC",country:"USA",latitude:33.92680111,longitude:-81.79455306},{iata:"6V0",name:"Edgemont Municipal",city:"Edgemont",state:"SD",country:"USA",latitude:43.29525056,longitude:-103.8435325},{iata:"7A0",name:"Greensboro Municipal",city:"Greensboro",state:"AL",country:"USA",latitude:32.68147222,longitude:-87.66208333},{iata:"7M3",name:"Bearce",city:"Mount Ida",state:"AR",country:"USA",latitude:34.52926056,longitude:-93.52713472},{iata:"84D",name:"Cheyenne Eagle Butte",city:"Eagle Butte",state:"SD",country:"USA",latitude:44.984375,longitude:-101.2510417},{iata:"8F7",name:"Decatur Municipal",city:"Decatur",state:"TX",country:"USA",latitude:33.25463889,longitude:-97.58055556},{iata:"94K",name:"Cassville Municipal",city:"Cassville",state:"MO",country:"USA",latitude:36.69741667,longitude:-93.90052778},{iata:"9G0",name:"Buffalo Airfield",city:"Buffalo",state:"NY",country:"USA",latitude:42.86200306,longitude:-78.71658528},{iata:"9U3",name:"Austin",city:"Austin",state:"NV",country:"USA",latitude:39.46798056,longitude:-117.1953703},{iata:"ABI",name:"Abilene Regional",city:"Abilene",state:"TX",country:"USA",latitude:32.41132,longitude:-99.68189722},{iata:"ADT",name:"Atwood-Rawlins County City-County",city:"Atwood",state:"KS",country:"USA",latitude:39.84013889,longitude:-101.0420278},{iata:"AHQ",name:"Wahoo Municipal",city:"Wahoo",state:"NE",country:"USA",latitude:41.24133333,longitude:-96.59402778},{iata:"AKO",name:"Akron-Washington Co",city:"Akron",state:"CO",country:"USA",latitude:40.17563333,longitude:-103.2220278},{iata:"AND",name:"Anderson County",city:"Anderson",state:"SC",country:"USA",latitude:34.49494444,longitude:-82.70902778},{iata:"AQY",name:"Girdwood",city:"Girdwood",state:"AK",country:"USA",latitude:60.96609583,longitude:-149.1257892},{iata:"ATL",name:"William B Hartsfield-Atlanta Intl",city:"Atlanta",state:"GA",country:"USA",latitude:33.64044444,longitude:-84.42694444},{iata:"AWI",name:"Wainwright",city:"Wainwright",state:"AK",country:"USA",latitude:70.638,longitude:-159.99475},{iata:"BAX",name:"Huron County Memorial",city:"Bad Axe",state:"MI",country:"USA",latitude:43.78091667,longitude:-82.98566667},{iata:"BFD",name:"Bradford Reg",city:"Bradford",state:"PA",country:"USA",latitude:41.80306778,longitude:-78.64012083},{iata:"BIG",name:"Allen AAF",city:"Delta Junction",state:"AK",country:"USA",latitude:63.99454722,longitude:-145.7216417},{iata:"BMG",name:"Monroe County",city:"Bloomington",state:"IN",country:"USA",latitude:39.14602139,longitude:-86.61668278},{iata:"BRD",name:"Brainerd-Crow Wing County Regional",city:"Brainerd",state:"MN",country:"USA",latitude:46.39785806,longitude:-94.1372275},{iata:"BVI",name:"Beaver County",city:"Beaver Falls",state:"PA",country:"USA",latitude:40.77248083,longitude:-80.39142556},{iata:"C05",name:"Chenega Bay",city:"Chenega",state:"AK",country:"USA",latitude:60.07730556,longitude:-147.9918889},{iata:"C81",name:"Campbell",city:"Chicago/Round Lake Park",state:"IL",country:"USA",latitude:42.32461111,longitude:-88.07408806},{iata:"CDH",name:"Harrell",city:"Camden",state:"AR",country:"USA",latitude:33.62279917,longitude:-92.76339528},{iata:"CFV",name:"Coffeyville Municipal",city:"Coffeyville",state:"KS",country:"USA",latitude:37.0940475,longitude:-95.57189417},{iata:"CIK",name:"Chalkyitsik",city:"Chalkyitsik",state:"AK",country:"USA",latitude:66.64969083,longitude:-143.7359492},{iata:"CLL",name:"Easterwood",city:"College Station",state:"TX",country:"USA",latitude:30.58858944,longitude:-96.36382417},{iata:"COD",name:"Yellowstone Regional",city:"Cody",state:"WY",country:"USA",latitude:44.52019417,longitude:-109.0237961},{iata:"CRG",name:"Craig Municipal",city:"Jacksonville",state:"FL",country:"USA",latitude:30.33633333,longitude:-81.51444444},{iata:"CUL",name:"Carmi Municipal",city:"Carmi",state:"IL",country:"USA",latitude:38.08947917,longitude:-88.12306111},{iata:"CYS",name:"Cheyenne",city:"Cheyenne",state:"WY",country:"USA",latitude:41.1557225,longitude:-104.8118381},{iata:"D73",name:"Monroe-Walton County",city:"Monroe",state:"GA",country:"USA",latitude:33.78149889,longitude:-83.69355389},{iata:"DED",name:"Deland Municipal-Taylor",city:"Deland",state:"FL",country:"USA",latitude:29.06698056,longitude:-81.28394167},{iata:"DLO",name:"Delano Municipal",city:"Delano",state:"CA",country:"USA",latitude:35.74558056,longitude:-119.2365039},{iata:"DTA",name:"Delta Municipal",city:"Delta",state:"UT",country:"USA",latitude:39.38328861,longitude:-112.5096683},{iata:"DXE",name:"Dexter Municipal",city:"Dexter",state:"MO",country:"USA",latitude:36.77747,longitude:-89.94117333},{iata:"E42",name:"Spearman Municipal",city:"Spearman",state:"TX",country:"USA",latitude:36.221,longitude:-101.1945},{iata:"EED",name:"Needles",city:"Needles",state:"CA",country:"USA",latitude:34.76619444,longitude:-114.6232931},{iata:"EKM",name:"Elkhart Municipal",city:"Elkhart",state:"IN",country:"USA",latitude:41.71935833,longitude:-86.00168361},{iata:"EMV",name:"Emporia-Greensville Regional",city:"Emporia",state:"VA",country:"USA",latitude:36.68691667,longitude:-77.48280556},{iata:"ETB",name:"West Bend Municipal",city:"West Bend",state:"WI",country:"USA",latitude:43.42219444,longitude:-88.12792667},{iata:"EYE",name:"Eagle Creek Airpark",city:"Indianapolis",state:"IN",country:"USA",latitude:39.83070944,longitude:-86.29438056},{iata:"F31",name:"Lake Texoma State Park",city:"Kingston",state:"OK",country:"USA",latitude:33.99287639,longitude:-96.64249722},{iata:"F88",name:"Jonesboro",city:"Jonesboro",state:"LA",country:"USA",latitude:32.20199028,longitude:-92.73293028},{iata:"FDW",name:"Fairfield County",city:"Winnsboro",state:"SC",country:"USA",latitude:34.31547222,longitude:-81.10880556},{iata:"FLL",name:"Fort Lauderdale-Hollywood Int'l",city:"Ft. Lauderdale",state:"FL",country:"USA",latitude:26.07258333,longitude:-80.15275},{iata:"FRG",name:"Republic",city:"Farmingdale",state:"NY",country:"USA",latitude:40.72878111,longitude:-73.41340722},{iata:"FWC",name:"Fairfield Municipal",city:"Fairfield",state:"IL",country:"USA",latitude:38.37863306,longitude:-88.41265222},{iata:"GBD",name:"Great Bend Municipal",city:"Great Bend",state:"KS",country:"USA",latitude:38.34441861,longitude:-98.85917028},{iata:"GFK",name:"Grand Forks International",city:"Grand Forks",state:"ND",country:"USA",latitude:47.949255,longitude:-97.17611111},{iata:"GLR",name:"Otsego County",city:"Gaylord",state:"MI",country:"USA",latitude:45.01354806,longitude:-84.70318944},{iata:"GRD",name:"Greenwood County",city:"Greenwood",state:"SC",country:"USA",latitude:34.24872222,longitude:-82.15908333},{iata:"GVQ",name:"Genesee Cty",city:"Batavia",state:"NY",country:"USA",latitude:43.03172639,longitude:-78.16759972},{iata:"H71",name:"Mid-America Industrial",city:"Pryor",state:"OK",country:"USA",latitude:36.22539389,longitude:-95.33006333},{iata:"HDE",name:"Brewster",city:"Holdredge",state:"NE",country:"USA",latitude:40.45269444,longitude:-99.33733333},{iata:"HIE",name:"Mt Washington Regional",city:"Whitefield",state:"NH",country:"USA",latitude:44.36761639,longitude:-71.54447111},{iata:"HNS",name:"Haines",city:"Haines",state:"AK",country:"USA",latitude:59.24522806,longitude:-135.5221086},{iata:"HRU",name:"Herington Municipal",city:"Herington",state:"KS",country:"USA",latitude:38.68322389,longitude:-96.80800639},{iata:"HVC",name:"Hopkinsville-Christian County",city:"Hopkinsville",state:"KY",country:"USA",latitude:36.85658333,longitude:-87.45725},{iata:"HZE",name:"Mercer County Regional",city:"Hazen",state:"ND",country:"USA",latitude:47.28986111,longitude:-101.5809444},{iata:"I57",name:"Pike County",city:"Waverly",state:"OH",country:"USA",latitude:39.16693333,longitude:-82.928175},{iata:"ICL",name:"Schenck",city:"Clarinda",state:"IA",country:"USA",latitude:40.72178361,longitude:-95.02642667},{iata:"IKK",name:"Greater Kankakee",city:"Kankakee",state:"IL",country:"USA",latitude:41.07140417,longitude:-87.84626861},{iata:"IPT",name:"Williamsport-Lycoming Cty",city:"Williamsport",state:"PA",country:"USA",latitude:41.24183583,longitude:-76.92109556},{iata:"IYK",name:"Inyokern",city:"Inyokern",state:"CA",country:"USA",latitude:35.65884306,longitude:-117.8295122},{iata:"JKJ",name:"Moorhead Municipal",city:"Moorhead",state:"MN",country:"USA",latitude:46.83919194,longitude:-96.66313028},{iata:"JYL",name:"Plantation Airpark",city:"Sylvania",state:"GA",country:"USA",latitude:32.64544861,longitude:-81.59649722},{iata:"K54",name:"Teller",city:"Teller",state:"AK",country:"USA",latitude:65.24089806,longitude:-166.3360067},{iata:"KFP",name:"False Pass",city:"False Pass",state:"AK",country:"USA",latitude:54.84744583,longitude:-163.4103222},{iata:"KVL",name:"Kivalina",city:"Kivalina",state:"AK",country:"USA",latitude:67.73125333,longitude:-164.5518019},{iata:"L45",name:"Bakersfield Municipal",city:"Bakersfield",state:"CA",country:"USA",latitude:35.32483333,longitude:-118.9958333},{iata:"LBB",name:"Lubbock International",city:"Lubbock",state:"TX",country:"USA",latitude:33.66363889,longitude:-101.8227778},{iata:"LFT",name:"Lafayette Regional",city:"Lafayette",state:"LA",country:"USA",latitude:30.20527972,longitude:-91.987655},{iata:"LLJ",name:"Challis",city:"Challis",state:"ID",country:"USA",latitude:44.52297806,longitude:-114.2175642},{iata:"LQK",name:"Pickens County",city:"Pickens",state:"SC",country:"USA",latitude:34.80997222,longitude:-82.70288889},{iata:"LWC",name:"Lawrence Municipal",city:"Lawrence",state:"KS",country:"USA",latitude:39.01115222,longitude:-95.21657694},{iata:"M08",name:"William L. Whitehurst",city:"Bolivar",state:"TN",country:"USA",latitude:35.21445944,longitude:-89.04336222},{iata:"M36",name:"Frank Federer Memorial",city:"Brinkley",state:"AR",country:"USA",latitude:34.88000194,longitude:-91.1764375},{iata:"M76",name:"Picayune Municipal",city:"Picayune",state:"MS",country:"USA",latitude:30.48748472,longitude:-89.65119306},{iata:"MBL",name:"Manistee County Blacker",city:"Manistee",state:"MI",country:"USA",latitude:44.27319722,longitude:-86.2490025},{iata:"MDS",name:"Madison Municipal",city:"Madison",state:"SD",country:"USA",latitude:44.01597222,longitude:-97.08593333},{iata:"MGW",name:"Morgantown Muni-Walter L. Bill Hart Fld.",city:"Morgantown",state:"WV",country:"USA",latitude:39.6429075,longitude:-79.91631417},{iata:"MKA",name:"Miller Municipal",city:"Miller",state:"SD",country:"USA",latitude:44.52524444,longitude:-98.95811444},{iata:"MLU",name:"Monroe Regional",city:"Monroe",state:"LA",country:"USA",latitude:32.51086556,longitude:-92.03768778},{iata:"MOT",name:"Minot International",city:"Minot",state:"ND",country:"USA",latitude:48.25937778,longitude:-101.2803339},{iata:"MRJ",name:"Iowa County",city:"Mineral Point",state:"WI",country:"USA",latitude:42.88532917,longitude:-90.23198583},{iata:"MUT",name:"Muscatine Municipal",city:"Muscatine",state:"IA",country:"USA",latitude:41.36786333,longitude:-91.14821639},{iata:"MYR",name:"Myrtle Beach International",city:"Myrtle Beach",state:"SC",country:"USA",latitude:33.67975,longitude:-78.92833333},{iata:"N35",name:"Punxsutawney Muni",city:"Punxsutawney",state:"PA",country:"USA",latitude:40.96667472,longitude:-78.93000528},{iata:"N93",name:"New Golovin",city:"Golovin",state:"AK",country:"USA",latitude:64.55305556,longitude:-163.0088889},{iata:"NY0",name:"Fulton Cty",city:"Johnstown",state:"NY",country:"USA",latitude:42.99821222,longitude:-74.32955111},{iata:"O41",name:"Watts-Woodland",city:"Woodland",state:"CA",country:"USA",latitude:38.67387639,longitude:-121.8720772},{iata:"O86",name:"Trinity Center",city:"Trinity Center",state:"CA",country:"USA",latitude:40.98320111,longitude:-122.6941889},{iata:"OGB",name:"Orangeburg Municipal",city:"Orangeburg",state:"SC",country:"USA",latitude:33.46094444,longitude:-80.85891667},{iata:"OLF",name:"L M Clayton",city:"Wolf Point",state:"MT",country:"USA",latitude:48.09451778,longitude:-105.5750536},{iata:"OOA",name:"Oskaloosa Municipal",city:"Oskaloosa",state:"IA",country:"USA",latitude:41.22614944,longitude:-92.49388278},{iata:"ORV",name:"Robert(Bob) Curtis Memorial",city:"Noorvik",state:"AK",country:"USA",latitude:66.82852667,longitude:-161.0277908},{iata:"OXC",name:"Waterbury-Oxford",city:"Oxford",state:"CT",country:"USA",latitude:41.47855556,longitude:-73.13525},{iata:"PAH",name:"Barkley Regional",city:"Paducah",state:"KY",country:"USA",latitude:37.06083333,longitude:-88.77375},{iata:"PEQ",name:"Pecos Municipal",city:"Pecos City",state:"TX",country:"USA",latitude:31.3823575,longitude:-103.5107017},{iata:"PIB",name:"Hattiesburg-Laurel Regional",city:"Hattiesburg-Laurel",state:"MS",country:"USA",latitude:31.46714944,longitude:-89.33705778},{iata:"PMP",name:"Pompano Beach Airpark",city:"Pompano Beach",state:"FL",country:"USA",latitude:26.24713889,longitude:-80.11105556},{iata:"PPO",name:"La Porte Municipal",city:"La Porte",state:"IN",country:"USA",latitude:41.57276194,longitude:-86.73413139},{iata:"PSP",name:"Palm Springs International",city:"Palm Springs",state:"CA",country:"USA",latitude:33.82921556,longitude:-116.5062531},{iata:"PVJ",name:"Pauls Valley Municipal",city:"Pauls Valley",state:"OK",country:"USA",latitude:34.71105361,longitude:-97.22321694},{iata:"Q21",name:"Brownsville",city:"Brownsville",state:"CA",country:"USA",latitude:39.45544417,longitude:-121.2913511},{iata:"Q94",name:"Rio Linda",city:"Rio Linda",state:"CA",country:"USA",latitude:38.67601389,longitude:-121.4455092},{iata:"RDU",name:"Raleigh-Durham International",city:"Raleigh",state:"NC",country:"USA",latitude:35.87763889,longitude:-78.78747222},{iata:"RLD",name:"Richland",city:"Richland",state:"WA",country:"USA",latitude:46.305635,longitude:-119.3041853},{iata:"RPD",name:"Rice Lake Regional-Carl's",city:"Rice Lake",state:"WI",country:"USA",latitude:45.41809056,longitude:-91.77365194},{iata:"RVS",name:"Richard Lloyd Jones, Jr.",city:"Tulsa",state:"OK",country:"USA",latitude:36.0396275,longitude:-95.984635},{iata:"S21",name:"Sunriver",city:"Sunriver",state:"OR",country:"USA",latitude:43.87633333,longitude:-121.4530556},{iata:"S64",name:"Stanford",city:"Stanford",state:"MT",country:"USA",latitude:47.14718944,longitude:-110.2299289},{iata:"SAF",name:"Santa Fe Municipal",city:"Santa Fe",state:"NM",country:"USA",latitude:35.61677778,longitude:-106.0881389},{iata:"SCE",name:"University Park",city:"NA",state:"NA",country:"USA",latitude:40.851206,longitude:-77.846302},{iata:"SDY",name:"Sidney-Richland Municipal",city:"Sidney",state:"MT",country:"USA",latitude:47.70685778,longitude:-104.1925544},{iata:"SGJ",name:"St. Augustine",city:"St. Augustine",state:"FL",country:"USA",latitude:29.95925,longitude:-81.33975},{iata:"SJN",name:"St Johns Industrial Air Park",city:"St Johns",state:"AZ",country:"USA",latitude:34.51855556,longitude:-109.37875},{iata:"SMN",name:"Lemhi County",city:"Salmon",state:"ID",country:"USA",latitude:45.12047778,longitude:-113.8820103},{iata:"SPI",name:"Capital",city:"Springfield",state:"IL",country:"USA",latitude:39.84395194,longitude:-89.67761861},{iata:"STL",name:"Lambert-St Louis International",city:"St Louis",state:"MO",country:"USA",latitude:38.74768694,longitude:-90.35998972},{iata:"SWO",name:"Stillwater Regional",city:"Stillwater",state:"OK",country:"USA",latitude:36.16025194,longitude:-97.08577028},{iata:"T41",name:"La Porte Municipal",city:"La Porte",state:"TX",country:"USA",latitude:29.66925,longitude:-95.06419444},{iata:"TAL",name:"Ralph M Calhoun Memorial",city:"Tanana",state:"AK",country:"USA",latitude:65.17439528,longitude:-152.1093886},{iata:"THM",name:"Thompson Falls",city:"Thompson Falls",state:"MT",country:"USA",latitude:47.57493556,longitude:-115.2843164},{iata:"TOC",name:"Toccoa, R G Le Tourneau",city:"Toccoa",state:"GA",country:"USA",latitude:34.59376444,longitude:-83.2958},{iata:"TSP",name:"Tehachapi Municipal",city:"Tehachapi",state:"CA",country:"USA",latitude:35.13497222,longitude:-118.43925},{iata:"TYL",name:"Taylor",city:"Taylor",state:"AZ",country:"USA",latitude:34.45283333,longitude:-110.1148056},{iata:"U55",name:"Panguitch Municipal",city:"Panguitch",state:"UT",country:"USA",latitude:37.84523333,longitude:-112.3918731},{iata:"UIL",name:"Quillayute",city:"Forks",state:"WA",country:"USA",latitude:47.93714444,longitude:-124.5612497},{iata:"UUO",name:"Willow",city:"Willow",state:"AK",country:"USA",latitude:61.75441667,longitude:-150.0516639},{iata:"VHN",name:"Culberson County",city:"Van Horn",state:"TX",country:"USA",latitude:31.05784417,longitude:-104.7838056},{iata:"VTN",name:"Miller",city:"Valentine",state:"NE",country:"USA",latitude:42.85767194,longitude:-100.547355},{iata:"W97",name:"Middle Peninsula Regional",city:"West Point",state:"VA",country:"USA",latitude:37.52122778,longitude:-76.7646825},{iata:"WNA",name:"Napakiak",city:"Napakiak",state:"AK",country:"USA",latitude:60.69118917,longitude:-161.9695161},{iata:"X26",name:"Sebastian Municipal",city:"Sebastian",state:"FL",country:"USA",latitude:27.81280389,longitude:-80.49560833},{iata:"Y27",name:"Standing Rock",city:"Fort Yates",state:"ND",country:"USA",latitude:46.06638556,longitude:-100.6348492},{iata:"YUM",name:"Yuma MCAS-Yuma International",city:"Yuma",state:"AZ",country:"USA",latitude:32.65658333,longitude:-114.6059722},{iata:"Z95",name:"Cibecue",city:"Cibecue",state:"AZ",country:"USA",latitude:34.00333333,longitude:-110.4441667}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-bubble-map",name:"\u6C14\u6CE1\u5730\u56FE",description:"\u7528\u5706\u7684\u5927\u5C0F\u8868\u73B0\u5730\u7406\u6570\u503C\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u6C14\u6CE1\u5730\u56FE",datasets:{londonBoroughs:{type:"Topology",bbox:[-.5103750689005356,51.28676016315083,.3340155643740317,51.69187411690989],transform:{scale:[8444750807826456e-20,4051544692059764e-20],translate:[-.5103750689005356,51.28676016315083]},objects:{boroughs:{type:"GeometryCollection",geometries:[{type:"Polygon",arcs:[[0,1,2,3,4]],id:"Kingston upon Thames"},{type:"Polygon",arcs:[[5,6,7,8,9]],id:"Croydon"},{type:"Polygon",arcs:[[-9,10,11,12,13,14,15]],id:"Bromley"},{type:"Polygon",arcs:[[16,17,18,19,20,21]],id:"Hounslow"},{type:"Polygon",arcs:[[22,23,24,-21,25]],id:"Ealing"},{type:"Polygon",arcs:[[26,27,28]],id:"Havering"},{type:"Polygon",arcs:[[29,-26,-20,30]],id:"Hillingdon"},{type:"Polygon",arcs:[[31,32,33,-23,-30]],id:"Harrow"},{type:"Polygon",arcs:[[34,35,-24,-34,36,37,38]],id:"Brent"},{type:"Polygon",arcs:[[39,40,41,-37,-33,42]],id:"Barnet"},{type:"Polygon",arcs:[[43,44,-11,-8,45,46]],id:"Lambeth"},{type:"Polygon",arcs:[[47,48,-12,-45]],id:"Southwark"},{type:"Polygon",arcs:[[49,50,51,52,-13,-49]],id:"Lewisham"},{type:"MultiPolygon",arcs:[[[53,-51]],[[54,-14,-53,55]]],id:"Greenwich"},{type:"Polygon",arcs:[[56,-15,-55]],id:"Bexley"},{type:"Polygon",arcs:[[57,58,59,60,-40,61]],id:"Enfield"},{type:"Polygon",arcs:[[62,63,64,-58,65,66]],id:"Waltham Forest"},{type:"Polygon",arcs:[[67,68,-67,69,-28,70,71]],id:"Redbridge"},{type:"Polygon",arcs:[[72,-4,73,-6]],id:"Sutton"},{type:"Polygon",arcs:[[74,75,-1,76,-18]],id:"Richmond upon Thames"},{type:"Polygon",arcs:[[-74,-3,77,-46,-7]],id:"Merton"},{type:"Polygon",arcs:[[78,-47,-78,-2,-76]],id:"Wandsworth"},{type:"Polygon",arcs:[[-22,-25,-36,79,80]],id:"Hammersmith and Fulham"},{type:"Polygon",arcs:[[-80,-35,81,82]],id:"Kensington and Chelsea"},{type:"Polygon",arcs:[[-82,-39,83,84,85]],id:"Westminster"},{type:"Polygon",arcs:[[86,87,-84,-38,-42,88]],id:"Camden"},{type:"Polygon",arcs:[[89,90,91,92,93,94]],id:"Tower Hamlets"},{type:"Polygon",arcs:[[95,96,97,-87]],id:"Islington"},{type:"Polygon",arcs:[[-64,98,-93,99,-97,100]],id:"Hackney"},{type:"Polygon",arcs:[[-96,-89,-41,-61,59,-59,-65,-101]],id:"Haringey"},{type:"MultiPolygon",arcs:[[[101,102]],[[-94,-99,-63,-69,103,104]]],id:"Newham"},{type:"MultiPolygon",arcs:[[[-104,-68,105,-103,106]],[[-71,-27,107]]],id:"Barking and Dagenham"},{type:"Polygon",arcs:[[-85,-88,-98,-100,-92,90,-90,108]],id:"City of London"}]}},arcs:[[[2281,2639],[109,777],[83,133],[250,-215],[312,381]],[[3035,3715],[35,-116]],[[3070,3599],[76,-696],[59,-372]],[[3205,2531],[-63,-229]],[[3142,2302],[-319,-183],[-246,-492],[-314,-614],[-133,509],[148,540],[84,392],[-81,185]],[[4190,858],[148,226],[204,350],[-15,880],[-75,256]],[[4452,2570],[79,529]],[[4531,3099],[401,259],[182,-73]],[[5114,3285],[138,-422],[159,-187],[195,-448],[164,-247],[301,-935]],[[6071,1046],[-335,233],[-288,-147],[-234,-339],[-141,-203],[-345,-454],[-225,8],[-299,214],[-14,500]],[[5114,3285],[2,19]],[[5116,3304],[52,136]],[[5168,3440],[432,-28],[231,-245],[279,83],[235,260],[98,67],[-52,247]],[[6391,3824],[403,-430],[142,191]],[[6936,3585],[452,-467],[419,-114]],[[7807,3004],[-14,-387],[41,-509],[-169,-691],[-182,-257],[-433,-438],[3,-570],[-508,-6],[-210,227],[-169,352],[-95,321]],[[3148,4984],[-116,-382],[-323,322],[-300,-247],[-175,-268]],[[2234,4409],[-181,-266],[-427,71],[-57,-372],[21,-170],[-111,-365],[-70,39]],[[1409,3346],[-353,243],[-314,70],[-163,345],[33,181]],[[612,4185],[297,134],[199,472],[117,465]],[[1225,5256],[518,-95],[471,1],[213,-34],[135,174],[457,-164],[28,160]],[[3047,5298],[101,-314]],[[1570,6620],[358,116],[142,-76]],[[2070,6660],[346,-562],[283,120],[-82,-173],[510,27]],[[3127,6072],[7,-695],[-87,-79]],[[1225,5256],[288,450],[-438,512],[406,308],[89,94]],[[7923,5564],[243,694],[61,428],[-410,297],[-19,723]],[[7798,7706],[-118,606]],[[7680,8312],[670,54],[347,149],[476,-590],[60,-305],[517,-732],[218,-491],[-399,-262],[-403,-431],[-272,83],[14,-327],[-311,-280],[-366,-147],[-308,531]],[[1259,8057],[101,-568],[210,-869]],[[612,4185],[-417,158],[-114,439],[163,456],[-31,447],[68,813],[22,416],[-117,435],[-54,606],[-13,485],[280,-168],[369,-55],[405,-144],[86,-16]],[[1259,8057],[649,338],[357,288],[173,-55]],[[2438,8628],[442,-887]],[[2880,7741],[-181,-379],[-524,-155],[-105,-547]],[[3486,5952],[-148,60]],[[3338,6012],[-211,60]],[[2880,7741],[166,-688],[233,-13],[236,-415]],[[3515,6625],[261,-466]],[[3776,6159],[-290,-207]],[[3887,9425],[405,-655],[148,-503],[-40,-284]],[[4400,7983],[-149,-315],[-72,-268],[-164,-349]],[[4015,7051],[-230,-262],[-228,-125],[-42,-39]],[[2438,8628],[488,210],[296,331],[360,114],[154,134],[151,8]],[[4523,4894],[148,551],[83,27]],[[4754,5472],[68,-427],[38,-353],[117,-263],[-127,-391],[266,-734]],[[4531,3099],[-150,171]],[[4381,3270],[9,397],[-32,387],[79,536],[86,304]],[[4754,5472],[611,-188],[295,83],[0,-275]],[[5660,5092],[-260,-357],[97,-534],[-135,-164],[-172,-440],[-22,-157]],[[5660,5092],[89,-186]],[[5749,4906],[92,-126]],[[5841,4780],[-67,-125]],[[5774,4655],[173,-64],[204,-170],[147,-571],[93,-26]],[[5749,4906],[92,-126]],[[7467,5546],[-21,-803],[-239,-85],[-232,-400],[26,-466],[-65,-207]],[[5774,4655],[271,284],[60,430],[678,-242],[526,368],[158,51]],[[7467,5546],[473,-145],[212,-545],[469,-76],[-79,-295],[-213,-414],[-240,-214],[-228,-485],[-54,-368]],[[5898,8872],[-276,-844],[-69,-158]],[[5553,7870],[-304,82]],[[5249,7952],[0,0]],[[5249,7952],[-668,-6],[-181,37]],[[3887,9425],[220,481],[607,72],[394,-52],[608,-165],[222,-543],[-40,-346]],[[6285,6652],[-205,-103],[-240,-13]],[[5840,6536],[-357,277],[-164,370]],[[5319,7183],[125,463],[109,224]],[[5898,8872],[156,-109],[248,-320]],[[6302,8443],[-66,-296],[-34,-816],[13,-449],[70,-230]],[[6865,6352],[-12,7]],[[6853,6359],[-165,377],[-230,-110],[-173,26]],[[6302,8443],[319,-376],[454,-225],[130,270],[243,-1],[232,201]],[[7798,7706],[-258,-302],[62,-368],[-243,-477],[-490,-208]],[[6869,6351],[-4,1]],[[4190,858],[-209,289],[-460,57],[-50,194],[-235,580],[-94,324]],[[3205,2531],[256,-226],[352,130],[273,63],[366,72]],[[2234,4409],[147,-418],[-201,-414],[243,423],[-153,526],[401,394],[291,-390],[227,446],[209,-416]],[[3398,4560],[-349,-155],[133,-545],[-147,-145]],[[2281,2639],[-498,453],[-284,-47],[-46,227],[-44,74]],[[3070,3599],[541,153],[247,-275],[475,-244],[48,37]],[[3398,4560],[467,-151],[411,451],[247,34]],[[3338,6012],[109,-513],[193,-401],[226,-392]],[[3866,4706],[-116,-311],[-364,460],[-238,129]],[[3486,5952],[199,-330],[177,-315],[305,12],[100,-414]],[[4267,4905],[-401,-199]],[[3776,6159],[314,-13],[331,-417],[301,-87]],[[4722,5642],[0,-113]],[[4722,5529],[-237,-609],[-218,-15]],[[4357,6969],[184,-546],[172,-575],[83,-127]],[[4796,5721],[-74,-79]],[[4015,7051],[342,-82]],[[5104,5457],[7,24]],[[5111,5481],[0,0]],[[5111,5481],[3,313]],[[5114,5794],[144,240],[396,331],[193,-32]],[[5847,6333],[108,-423],[-4,-79]],[[5951,5831],[136,-209],[-64,-176],[-23,-455],[-286,133],[-237,353],[-373,-20]],[[4357,6969],[451,-107]],[[4808,6862],[292,-320],[-205,-465],[140,-312]],[[5035,5765],[-239,-44]],[[5840,6536],[7,-203]],[[5114,5794],[-79,-29]],[[4808,6862],[333,251],[178,70]],[[6938,5999],[-1,1]],[[6937,6e3],[1,-1]],[[6853,6359],[57,-371]],[[6910,5988],[269,-344],[-421,-421],[-637,292],[-179,243],[9,73]],[[6865,6352],[73,-353]],[[6937,6e3],[-27,-12]],[[7923,5564],[-374,179],[-374,-61],[-225,317],[-81,352]],[[5104,5457],[-382,72]]]},londonCentroids:[{name:"Kingston upon Thames",cx:-.28691465719243003,cy:51.387893353778395},{name:"Croydon",cx:-.08716546101532906,cy:51.355317416374},{name:"Bromley",cx:.051536586180461884,cy:51.37198402033694},{name:"Hounslow",cx:-.3671516396902454,cy:51.46838045919461},{name:"Ealing",cx:-.331019323573572,cy:51.52247610268018},{name:"Havering",cx:.22111695897456907,cy:51.564368109593914},{name:"Hillingdon",cx:-.4456619192134244,cy:51.54147118065276},{name:"Harrow",cx:-.34127462993183943,cy:51.59771852185307},{name:"Brent",cx:-.2678117446868589,cy:51.558554439571225},{name:"Barnet",cx:-.2100178905687616,cy:51.61601840050092},{name:"Lambeth",cx:-.11827879184555543,cy:51.45307915598091},{name:"Southwark",cx:-.07460248417459615,cy:51.47313736252929},{name:"Lewisham",cx:-.020251210147097444,cy:51.44808622366465},{name:"Greenwich",cx:.05623854022441538,cy:51.47280349330009},{name:"Bexley",cx:.14034521936844538,cy:51.45881060129503},{name:"Enfield",cx:-.08726531756552813,cy:51.650991897325454},{name:"Waltham Forest",cx:-.012645389036967391,cy:51.59402179942259},{name:"Redbridge",cx:.07586498666349965,cy:51.58566980239283},{name:"Sutton",cx:-.1775706458949663,cy:51.36208881322784},{name:"Richmond upon Thames",cx:-.312989912939369,cy:51.44217087768007},{name:"Merton",cx:-.19724686451592524,cy:51.40994982121643},{name:"Wandsworth",cx:-.18644255213923716,cy:51.45135372974042},{name:"Hammersmith and Fulham",cx:-.22312501860130696,cy:51.49760349773975},{name:"Kensington and Chelsea",cx:-.1926146417708775,cy:51.50326858912867},{name:"Westminster",cx:-.16129707300361068,cy:51.513897745031734},{name:"Camden",cx:-.15741523389534484,cy:51.54639253962996},{name:"Tower Hamlets",cx:-.03246795051939853,cy:51.515056063777294},{name:"Islington",cx:-.10744657464865907,cy:51.54550386068218},{name:"Hackney",cx:-.06564515736890775,cy:51.54976532427057},{name:"Haringey",cx:-.10747319126297968,cy:51.59037386425316},{name:"Newham",cx:.036385305135703754,cy:51.52834280272405},{name:"Barking and Dagenham",cx:.13352186486629006,cy:51.545272267046116},{name:"City of London",cx:-.09232371387227843,cy:51.51529009582889}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-gauge",name:"\u4EEA\u8868\u76D8",description:"\u7528\u5706\u5F27\u8868\u8FBE\u8FDB\u5EA6\u6216\u6307\u6807\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u4EEA\u8868\u76D8",datasets:{main:{target:120,total:400,name:"score"}},theme:"indigo",height:320,legend:!1,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-bullet",name:"\u5B50\u5F39\u56FE",description:"\u540C\u65F6\u663E\u793A\u5B9E\u9645\u3001\u76EE\u6807\u4E0E\u533A\u95F4\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u5B50\u5F39\u56FE",datasets:{"layer-0":[{title:"Sales Completion Rate",ranges:100,measures:80,target:85}],"layer-1":[{title:"Sales Completion Rate",ranges:100,measures:80,target:85}],"layer-2":[{title:"Sales Completion Rate",ranges:100,measures:80,target:85}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"},{kind:"g2-wordcloud",name:"\u8BCD\u4E91",description:"\u7528\u5B57\u53F7\u8868\u8FBE\u8BCD\u8BED\u6743\u91CD\uFF0C\u652F\u6301\u7F16\u8F91\u6570\u636E\u3001\u4E3B\u9898\u548C\u4EA4\u4E92\u3002",defaultData:{title:"\u8BCD\u4E91",datasets:{main:[{value:11.739204307083542,text:"\u6C34\u662F",name:"\u6CF0\u5229\u65AF"},{value:9.23723855786,text:"\u4E4B\u6E90",name:"\u6CF0\u5229\u65AF"},{value:7.75434839431,text:"\u4E07\u7269",name:"\u6CF0\u5229\u65AF"},{value:11.3865516372,text:"\u7269\u8D28",name:"\u5B89\u7EB3\u514B\u897F\u66FC\u5FB7"},{value:7.75434839431,text:"\u4E07\u7269",name:"\u5B89\u7EB3\u514B\u897F\u66FC\u5FB7"},{value:5.83541244308,text:"\u521B\u9020",name:"\u5B89\u7EB3\u514B\u897F\u66FC\u5FB7"},{value:4.27215339948,text:"\u5F62\u6210",name:"\u5B89\u7EB3\u514B\u897F\u66FC\u5FB7"},{value:4.2025551294,text:"\u4E00\u5B9A",name:"\u5B89\u7EB3\u514B\u897F\u66FC\u5FB7"},{value:9.23723855786,text:"\u4E4B\u6E90",name:"\u5B89\u7EB3\u897F\u6885\u5229\u65AF"},{value:7.75434839431,text:"\u4E07\u7269",name:"\u5B89\u7EB3\u897F\u6885\u5229\u65AF"},{value:7.34959731693,text:"\u5FC5\u5B9A",name:"\u5B89\u7EB3\u897F\u6885\u5229\u65AF"},{value:6.57487014938,text:"\u6C14\u4F53",name:"\u5B89\u7EB3\u897F\u6885\u5229\u65AF"},{value:6.32509300042,text:"\u7A7A\u6C14",name:"\u5B89\u7EB3\u897F\u6885\u5229\u65AF"},{value:10.1394775363,text:"\u4EFB\u4F55\u4E8B\u7269",name:"\u5E15\u6885\u5C3C\u5FB7\u65AF"},{value:9.29550746599,text:"\u611F\u5B98",name:"\u5E15\u6885\u5C3C\u5FB7\u65AF"},{value:7.13910488317,text:"\u53EF\u9760",name:"\u5E15\u6885\u5C3C\u5FB7\u65AF"},{value:6.89126871927,text:"\u4E8B\u7269",name:"\u5E15\u6885\u5C3C\u5FB7\u65AF"},{value:6.2256471303,text:"\u6CA1\u6709",name:"\u5E15\u6885\u5C3C\u5FB7\u65AF"},{value:11.739204307083542,text:"\u4F1A\u53D8",name:"\u8D6B\u62C9\u514B\u91CC\u7279\u65AF"},{value:9.29550746599,text:"\u611F\u5B98",name:"\u8D6B\u62C9\u514B\u91CC\u7279\u65AF"},{value:8.70772080109,text:"\u8BA4\u77E5",name:"\u8D6B\u62C9\u514B\u91CC\u7279\u65AF"},{value:7.75434839431,text:"\u4E07\u7269",name:"\u8D6B\u62C9\u514B\u91CC\u7279\u65AF"},{value:7.13910488317,text:"\u53EF\u9760",name:"\u8D6B\u62C9\u514B\u91CC\u7279\u65AF"},{value:13.68728134056,text:"\u5143\u7D20",name:"\u6069\u966A\u7AA6"},{value:10.2897597393,text:"\u5206\u5408",name:"\u6069\u966A\u7AA6"},{value:10.1871055853,text:"\u805A\u6563",name:"\u6069\u966A\u7AA6"},{value:8.42421410004,text:"\u56DB\u79CD",name:"\u6069\u966A\u7AA6"},{value:8.29487558568,text:"\u4E16\u95F4",name:"\u6069\u966A\u7AA6"},{value:8.77077893705,text:"\u8089\u773C",name:"\u5B89\u7EB3\u8428\u54E5\u62C9\u65AF"},{value:8.18364995057,text:"\u5FAE\u5C0F",name:"\u5B89\u7EB3\u8428\u54E5\u62C9\u65AF"},{value:8.10461990121,text:"\u5927\u81EA\u7136",name:"\u5B89\u7EB3\u8428\u54E5\u62C9\u65AF"},{value:7.69410172525,text:"\u7C92\u5B50",name:"\u5B89\u7EB3\u8428\u54E5\u62C9\u65AF"},{value:7.65457088649,text:"\u5206\u5272",name:"\u5B89\u7EB3\u8428\u54E5\u62C9\u65AF"},{value:21.6192703972,text:"\u79EF\u6728",name:"\u5FB7\u8C1F\u514B\u5229\u91CC\u7279\u65AF"},{value:10.7226238216,text:"\u6C38\u6052\u4E0D\u53D8",name:"\u5FB7\u8C1F\u514B\u5229\u91CC\u7279\u65AF"},{value:8.18364995057,text:"\u5FAE\u5C0F",name:"\u5FB7\u8C1F\u514B\u5229\u91CC\u7279\u65AF"},{value:7.14957618304,text:"\u539F\u5B50",name:"\u5FB7\u8C1F\u514B\u5229\u91CC\u7279\u65AF"},{value:7.1038539337,text:"\u6700\u5C0F",name:"\u5FB7\u8C1F\u514B\u5229\u91CC\u7279\u65AF"},{value:11.739204307083542,text:"\u6709\u4F55",name:"\u666E\u7F57\u5854\u683C\u62C9\u65AF"},{value:11.739204307083542,text:"\u662F\u9519",name:"\u666E\u7F57\u5854\u683C\u62C9\u65AF"},{value:8.10461990121,text:"\u800C\u5B9A",name:"\u666E\u7F57\u5854\u683C\u62C9\u65AF"},{value:7.95787827685,text:"\u5C3A\u5EA6",name:"\u666E\u7F57\u5854\u683C\u62C9\u65AF"},{value:7.36109169636,text:"\u8861\u91CF",name:"\u666E\u7F57\u5854\u683C\u62C9\u65AF"},{value:11.7034530746,text:"\u660E\u8FA8\u662F\u975E",name:"\u82CF\u683C\u62C9\u5E95"},{value:9.14102377386,text:"\u5B58\u5728",name:"\u82CF\u683C\u62C9\u5E95"},{value:8.98802276624,text:"\u4E00\u65E0\u6240\u77E5",name:"\u82CF\u683C\u62C9\u5E95"},{value:6.90950076485,text:"\u7406\u6027",name:"\u82CF\u683C\u62C9\u5E95"},{value:5.82167939329,text:"\u4E00\u4EF6",name:"\u82CF\u683C\u62C9\u5E95"},{value:12.06102341102,text:"\u6A21\u5F0F",name:"\u67CF\u62C9\u56FE"},{value:11.739204307083542,text:"\u7406\u578B",name:"\u67CF\u62C9\u56FE"},{value:11.3865516372,text:"\u7269\u8D28",name:"\u67CF\u62C9\u56FE"},{value:9.54656840164,text:"\u4E1C\u897F",name:"\u67CF\u62C9\u56FE"},{value:8.73505881114,text:"\u4E16\u754C",name:"\u67CF\u62C9\u56FE"},{value:34.45634359635,text:"\u4E8B\u7269",name:"\u4E9A\u91CC\u58EB\u591A\u5FB7"},{value:27.886522397969998,text:"\u611F\u5B98",name:"\u4E9A\u91CC\u58EB\u591A\u5FB7"},{value:20.4235963958,text:"\u8D28\u6599",name:"\u4E9A\u91CC\u58EB\u591A\u5FB7"},{value:12.1089181827,text:"\u548C\u8C10\u4E00\u81F4",name:"\u4E9A\u91CC\u58EB\u591A\u5FB7"},{value:10.4994802703,text:"\u5145\u5206\u8FD0\u7528",name:"\u4E9A\u91CC\u58EB\u591A\u5FB7"},{value:11.739204307083542,text:"\u4E00\u88AD",name:"\u7B2C\u6B27\u6839\u5C3C"},{value:10.1630080337,text:"\u6728\u6876",name:"\u7B2C\u6B27\u6839\u5C3C"},{value:9.30555780184,text:"\u6728\u68CD",name:"\u7B2C\u6B27\u6839\u5C3C"},{value:9.26594866375,text:"\u6597\u7BF7",name:"\u7B2C\u6B27\u6839\u5C3C"},{value:9.22784881751,text:"\u4E00\u888B",name:"\u7B2C\u6B27\u6839\u5C3C"},{value:6.47412857958,text:"\u75DB\u82E6",name:"\u4F0A\u58C1\u9E20\u9C81"},{value:6.06866347147,text:"\u907F\u514D",name:"\u4F0A\u58C1\u9E20\u9C81"},{value:5.02315619812,text:"\u5F62\u5F0F",name:"\u4F0A\u58C1\u9E20\u9C81"},{value:4.80149232937,text:"\u65B9\u5F0F",name:"\u4F0A\u58C1\u9E20\u9C81"},{value:4.13163619599,text:"\u4E00\u79CD",name:"\u4F0A\u58C1\u9E20\u9C81"},{value:21.209681572,text:"\u4E07\u4E8B\u4E07\u7269",name:"\u666E\u7F57\u6C40"},{value:7.48068272383,text:"\u4E0A\u5E1D",name:"\u666E\u7F57\u6C40"},{value:7.37711534583,text:"\u4E00\u4F53",name:"\u666E\u7F57\u6C40"},{value:7.36834335975,text:"\u5B87\u5B99",name:"\u666E\u7F57\u6C40"},{value:5.67973648369,text:"\u4E4B\u4E2D",name:"\u666E\u7F57\u6C40"},{value:9.17328983326,text:"\u8D66\u514D",name:"\u8036\u7A23"},{value:8.04274449749,text:"\u62EF\u6551",name:"\u8036\u7A23"},{value:7.48068272383,text:"\u4E0A\u5E1D",name:"\u8036\u7A23"},{value:4.60931044136,text:"\u5F97\u5230",name:"\u8036\u7A23"},{value:2.81755097213,text:"\u4E00\u4E2A",name:"\u8036\u7A23"},{value:14.96136544766,text:"\u4E0A\u5E1D",name:"\u4FDD\u7F57"},{value:7.95787827685,text:"\u4E16\u4EBA",name:"\u4FDD\u7F57"},{value:7.22485443034,text:"\u663E\u73B0",name:"\u4FDD\u7F57"},{value:7.07413242842,text:"\u8BD5\u56FE",name:"\u4FDD\u7F57"},{value:6.04010686644,text:"\u5BFB\u627E",name:"\u4FDD\u7F57"},{value:14.96136544766,text:"\u4E0A\u5E1D",name:"\u5723\u5965\u53E4\u65AF\u4E01"},{value:11.67082488616,text:"\u521B\u9020",name:"\u5723\u5965\u53E4\u65AF\u4E01"},{value:9.80633308975,text:"\u865A\u7A7A",name:"\u5723\u5965\u53E4\u65AF\u4E01"},{value:8.73505881114,text:"\u4E16\u754C",name:"\u5723\u5965\u53E4\u65AF\u4E01"},{value:5.23799979382,text:"\u5FC3\u4E2D",name:"\u5723\u5965\u53E4\u65AF\u4E01"},{value:16.57509909118,text:"\u542F\u793A",name:"\u5723\u591A\u739B\u65AF"},{value:14.51638170122,text:"\u4FE1\u4EF0",name:"\u5723\u591A\u739B\u65AF"},{value:13.8190015297,text:"\u7406\u6027",name:"\u5723\u591A\u739B\u65AF"},{value:10.5684731418,text:"\u89C2\u611F",name:"\u5723\u591A\u739B\u65AF"},{value:9.04086524761,text:"\u5E76\u4E0D\u4E00\u5B9A",name:"\u5723\u591A\u739B\u65AF"},{value:12.57964972316,text:"\u5730\u7403",name:"\u54E5\u767D\u5C3C"},{value:12.45583951066,text:"\u592A\u9633",name:"\u54E5\u767D\u5C3C"},{value:11.39201164604,text:"\u8FD0\u884C",name:"\u54E5\u767D\u5C3C"},{value:6.22698952271,text:"\u5E76\u672A",name:"\u54E5\u767D\u5C3C"},{value:14.35128801962,text:"\u7269\u4F53",name:"\u4F3D\u5229\u7565"},{value:11.18052531558,text:"\u72B6\u6001",name:"\u4F3D\u5229\u7565"},{value:10.0505300503,text:"\u8F74\u5FC3",name:"\u4F3D\u5229\u7565"},{value:9.56994431169,text:"\u661F\u7403",name:"\u4F3D\u5229\u7565"},{value:9.29550746599,text:"\u611F\u5B98",name:"\u4F3D\u5229\u7565"},{value:21.52693202943,text:"\u7269\u4F53",name:"\u725B\u987F"},{value:8.68574189437,text:"\u9012\u589E",name:"\u725B\u987F"},{value:8.29120585679,text:"\u9012\u51CF",name:"\u725B\u987F"},{value:7.9817837977,text:"\u884C\u661F",name:"\u725B\u987F"},{value:7.36834335975,text:"\u5B87\u5B99",name:"\u725B\u987F"},{value:13.900677652,text:"\u6545\u6211\u5728",name:"\u7B1B\u5361\u5C14"},{value:11.9547675029,text:"\u771F\u5B9E\u4E16\u754C",name:"\u7B1B\u5361\u5C14"},{value:11.739204307083542,text:"\u6211\u601D",name:"\u7B1B\u5361\u5C14"},{value:10.2371160058,text:"\u4E4B\u6709",name:"\u7B1B\u5361\u5C14"},{value:7.96050639926,text:"\u7EC6\u5206",name:"\u7B1B\u5361\u5C14"},{value:22.44204817149,text:"\u4E0A\u5E1D",name:"\u65AF\u5BBE\u8BFA\u838E"},{value:12.1089181827,text:"\u4E3B\u5BB0\u4E16\u754C",name:"\u65AF\u5BBE\u8BFA\u838E"},{value:10.8096351986,text:"\u7275\u7EBF",name:"\u65AF\u5BBE\u8BFA\u838E"},{value:10.6818018271,text:"\u81EA\u7136\u6CD5\u5219",name:"\u65AF\u5BBE\u8BFA\u838E"},{value:9.7898037878,text:"\u6728\u5076",name:"\u65AF\u5BBE\u8BFA\u838E"},{value:18.59101493198,text:"\u611F\u5B98",name:"\u6D1B\u514B"},{value:15.51728049278,text:"\u5FC3\u7075",name:"\u6D1B\u514B"},{value:11.9547675029,text:"\u5BDF\u77E5",name:"\u6D1B\u514B"},{value:10.1394775363,text:"\u4EFB\u4F55\u4E8B\u7269",name:"\u6D1B\u514B"},{value:8.74738605748,text:"\u6B21\u8981",name:"\u6D1B\u514B"},{value:14.95161725614,text:"\u54F2\u5B66\u5BB6",name:"\u4F11\u8C1F"},{value:12.5143832909,text:"\u63A5\u8FDE\u8D77\u6765",name:"\u4F11\u8C1F"},{value:11.739204307083542,text:"\u7701\u601D",name:"\u4F11\u8C1F"},{value:11.64335878658,text:"\u4E00\u4EF6",name:"\u4F11\u8C1F"},{value:10.2897597393,text:"\u884C\u4E3A\u51C6\u5219",name:"\u4F11\u8C1F"},{value:13.78796485028,text:"\u611F\u53D7",name:"\u67CF\u514B\u83B1"},{value:10.3743171274,text:"\u5929\u4E3B",name:"\u67CF\u514B\u83B1"},{value:10.2117981979,text:"\u8D28\u6599",name:"\u67CF\u514B\u83B1"},{value:9.58318953844,text:"\u5468\u906D",name:"\u67CF\u514B\u83B1"},{value:9.14102377386,text:"\u5B58\u5728",name:"\u67CF\u514B\u83B1"},{value:14.96136544766,text:"\u4E0A\u5E1D",name:"\u5EB7\u5FB7"},{value:14.35850390238,text:"\u5934\u9876",name:"\u5EB7\u5FB7"},{value:12.5143832909,text:"\u56E0\u679C\u5F8B",name:"\u5EB7\u5FB7"},{value:11.739204307083542,text:"\u5B58\u4E0D\u5B58",name:"\u5EB7\u5FB7"},{value:11.0674643079,text:"\u6839\u690D",name:"\u5EB7\u5FB7"},{value:16.20923980242,text:"\u5927\u81EA\u7136",name:"\u8C22\u6797"},{value:13.10258821671,text:"\u4E16\u754C",name:"\u8C22\u6797"},{value:11.3865516372,text:"\u7269\u8D28",name:"\u8C22\u6797"},{value:11.27020388852,text:"\u4E00\u4E2A",name:"\u8C22\u6797"},{value:10.1164880181,text:"\u65E0\u4F11\u6B62",name:"\u8C22\u6797"},{value:13.10258821671,text:"\u4E16\u754C",name:"\u9ED1\u683C\u5C14"},{value:11.23942650284,text:"\u7CBE\u795E",name:"\u9ED1\u683C\u5C14"},{value:10.9049453784,text:"\u518D\u8BFB",name:"\u9ED1\u683C\u5C14"},{value:10.1394775363,text:"\u811A\u8E0F\u5B9E\u5730",name:"\u9ED1\u683C\u5C14"},{value:8.60236028543,text:"\u8FA9\u8BC1\u6CD5",name:"\u9ED1\u683C\u5C14"},{value:26.6063055869,text:"\u9636\u6BB5",name:"\u7941\u514B\u679C"},{value:13.0408437271,text:"\u771F\u5B9E",name:"\u7941\u514B\u679C"},{value:11.739204307083542,text:"\u4EBA\u6B63",name:"\u7941\u514B\u679C"},{value:10.48883682488,text:"\u662F\u5426",name:"\u7941\u514B\u679C"},{value:9.5062284973,text:"\u7F8E\u611F",name:"\u7941\u514B\u679C"},{value:17.0798274558,text:"\u7269\u8D28",name:"\u9A6C\u514B\u601D"},{value:11.739204307083542,text:"\u65B0\u7684",name:"\u9A6C\u514B\u601D"},{value:11.23942650284,text:"\u7CBE\u795E",name:"\u9A6C\u514B\u601D"},{value:10.4471578861,text:"\u6539\u53D8",name:"\u9A6C\u514B\u601D"},{value:10.21443458184,text:"\u9020\u6210",name:"\u9A6C\u514B\u601D"},{value:16.20923980242,text:"\u4E00\u8258",name:"\u8FBE\u5C14\u6587"},{value:15.07529909688,text:"\u822A\u884C",name:"\u8FBE\u5C14\u6587"},{value:11.739204307083542,text:"\u4EBA\u5219",name:"\u8FBE\u5C14\u6587"},{value:11.7034530746,text:"\u7269\u7ADE\u5929\u62E9",name:"\u8FBE\u5C14\u6587"},{value:10.5684731418,text:"\u9002\u8005\u751F\u5B58",name:"\u8FBE\u5C14\u6587"},{value:19.89886786678,text:"\u6F5C\u610F\u8BC6",name:"\u5F17\u6D1B\u4F0A\u5FB7"},{value:12.76848869812,text:"\u610F\u8BC6",name:"\u5F17\u6D1B\u4F0A\u5FB7"},{value:9.96885201925,text:"\u5408\u7406\u5316",name:"\u5F17\u6D1B\u4F0A\u5FB7"},{value:9.17328983326,text:"\u6295\u5C04",name:"\u5F17\u6D1B\u4F0A\u5FB7"},{value:8.73589167805,text:"\u4E00\u5C0F\u90E8\u5206",name:"\u5F17\u6D1B\u4F0A\u5FB7"},{value:11.8006563133,text:"\u81EA\u7531",name:"\u8428\u7279"},{value:11.739204307083542,text:"\u5728\u5DF1",name:"\u8428\u7279"},{value:11.739204307083542,text:"\u4E3A\u5DF1",name:"\u8428\u7279"},{value:11.739204307083542,text:"\u5730\u95EE",name:"\u8428\u7279"},{value:11.4157710022,text:"\u758F\u79BB",name:"\u8428\u7279"}]},theme:"indigo",height:320,legend:!0,animation:!1,fields:{},appearance:{},interaction:{tooltip:!0,legendFilter:!0}},version:"1.0.0"}];var Q2=[{kind:"archify",name:"Archify \u4EA4\u4E92\u67B6\u6784\u56FE",version:"1.2.0",description:"\u4FDD\u7559 Archify 3.1 \u539F\u751F\u9605\u8BFB\u5668\u7684\u5341\u7C7B\u4EA4\u4E92\u56FE\uFF1A\u5DE5\u4F5C\u6D41\u3001\u7CFB\u7EDF\u67B6\u6784\u3001\u65F6\u5E8F\u3001\u6570\u636E\u6D41\u3001\u751F\u547D\u5468\u671F\u3001\u5B9E\u4F53\u5173\u7CFB\u3001\u7C7B\u4E0E\u63A5\u53E3\u3001\u6811\u5F62\u7ED3\u6784\u3001\u65F6\u95F4\u7EBF\u548C\u7011\u5E03\u8FFD\u8E2A\uFF0C\u652F\u6301\u8282\u70B9\u67E5\u627E\u3001\u8DEF\u5F84\u63A2\u7D22\u3001\u52A8\u9759\u5207\u6362\u4E0E\u5BFC\u51FA\u3002",defaultData:{template:"workflow",height:560,presentation:{title:"outside",description:"outside",notes:"hidden",legend:!0,controls:!0}}},{kind:"diagram-design",name:"Diagram Design \u56FE\u5F62",version:"1.1.0",description:"45 \u7C7B Diagram Design \u56FE\u5F62\u6A21\u677F\uFF0C\u4FDD\u7559\u539F\u7248 HTML/SVG \u5E03\u5C40\u548C\u6837\u5F0F\uFF0C\u8986\u76D6\u67B6\u6784\u3001\u6D41\u7A0B\u3001\u5173\u7CFB\u4E0E\u6570\u636E\u8868\u8FBE\uFF1B\u652F\u6301\u6587\u5B57\u4FEE\u6539\u548C\u56FE\u5F62\u6E90\u7801\u7F16\u8F91\u3002",defaultData:{template:"architecture",height:560,presentation:{title:"outside",description:"outside",notes:"hidden",legend:!0,controls:!0}}},{kind:"fireworks-tech-graph",name:"Fireworks \u6280\u672F\u56FE",version:"1.1.0",description:"Fireworks Tech Graph \u7684 12 \u79CD\u6280\u672F\u56FE\u98CE\u683C\uFF0C\u4FDD\u7559\u539F\u7248 SVG \u53CA\u8BED\u4E49\u8FDE\u7EBF\uFF0C\u652F\u6301\u6587\u5B57\u4FEE\u6539\u3001\u5B8C\u6574 SVG/HTML \u5BFC\u5165\u548C\u79BB\u7EBF\u5BFC\u51FA\u3002",defaultData:{template:"style-6",height:560,presentation:{title:"outside",description:"outside",notes:"hidden",legend:!0,controls:!0}}}];var gy={};var by={};function Km({includeLegacy:e=!1}={}){let t=structuredClone([...J2,...Nt,...X2,...Q2,...fy]).map(a=>({...a,documentation:{...by,...gy}[a.kind]}));return e?t:t.filter(a=>!a.replacedBy)}function Ym(e){return Km({includeLegacy:!0}).find(t=>t.kind===e)}var eu=rt("catalog",{"zh-CN":{"category.text":"\u6587\u672C","category.image":"\u56FE\u7247","category.table":"\u8868\u683C","category.data":"\u6570\u636E","category.flow":"\u6D41\u7A0B","category.surface":"\u9875\u9762\u4E0E\u767D\u677F","category.other":"\u5176\u4ED6","category.outline":"\u9875\u9762\u76EE\u5F55","reuse.general":"\u901A\u7528","reuse.domain":"\u4E13\u9898","reuse.content-specific":"\u5185\u5BB9\u4E13\u7528","reuse.unclassified":"\u5F85\u8BC4\u4F30","scope.builtin":"\u5185\u7F6E","scope.project":"\u9879\u76EE","scope.global":"\u5168\u5C40","scope.published":"\u5DF2\u53D1\u5E03",types:"\u7C7B\u578B",componentTypes:"\u7EC4\u4EF6\u7C7B\u578B",all:"\u5168\u90E8",allComponents:"\u5168\u90E8\u7EC4\u4EF6",categoryComponents:"{category}\u7EC4\u4EF6","empty.noMatches":"\u6CA1\u6709\u5339\u914D\u7684\u7EC4\u4EF6","empty.none":"\u6682\u65E0\u7EC4\u4EF6",insertContent:"\u63D2\u5165\u5185\u5BB9",searchBlocks:"\u641C\u7D22\u5185\u5BB9\u5757",searchComponentsPlaceholder:"\u641C\u7D22\u7EC4\u4EF6\u2026",blockTypes:"\u5185\u5BB9\u5757\u7C7B\u578B",loadingComponents:"\u6B63\u5728\u52A0\u8F7D\u7EC4\u4EF6\u2026",noComponentsFound:"\u6CA1\u6709\u627E\u5230\u76F8\u5173\u7EC4\u4EF6","kind.template":"\u6A21\u677F","kind.component":"\u7EC4\u4EF6",notSpecified:"\u5C1A\u672A\u6307\u5B9A\u3002",templateDetailsMenu:"\u6A21\u677F\u8BE6\u60C5\u83DC\u5355",componentDetailsMenu:"\u7EC4\u4EF6\u8BE6\u60C5\u83DC\u5355","tab.preview":"\u9884\u89C8","tab.overview":"\u6982\u89C8","tab.usage":"\u4F7F\u7528\u8BF4\u660E","tab.guides":"\u9636\u6BB5\u6307\u5357","tab.parameters":"\u53C2\u6570",templateExamplePreview:"\u6A21\u677F\u793A\u4F8B\u9884\u89C8",templatePreviewCanvas:"\u6A21\u677F\u9884\u89C8\u753B\u9762",componentExamplePreview:"\u7EC4\u4EF6\u793A\u4F8B\u9884\u89C8",componentPreviewCanvas:"\u7EC4\u4EF6\u9884\u89C8\u753B\u9762",componentExample:"\u7EC4\u4EF6\u793A\u4F8B",scenarios:"\u9002\u7528\u573A\u666F",pageStructure:"\u9875\u9762\u7ED3\u6784",related:"\u76F8\u5173\u5185\u5BB9",adjustable:"\u53EF\u8C03\u6574",exampleData:"\u793A\u4F8B\u6570\u636E",insertIntoPage:"\u63D2\u5165\u9875\u9762",rawSchemaAndDefaults:"\u67E5\u770B\u539F\u59CB\u53C2\u6570\u89C4\u5219\u4E0E\u9ED8\u8BA4\u6570\u636E",parameterRules:"\u53C2\u6570\u89C4\u5219",defaultData:"\u9ED8\u8BA4\u6570\u636E",previewActions:"\u9884\u89C8\u64CD\u4F5C",adjustPreviewZoom:"\u8C03\u6574\u9884\u89C8\u7F29\u653E",zoom:"\u7F29\u653E",previewZoom:"\u9884\u89C8\u7F29\u653E",fitPreview:"\u9002\u5E94\u9884\u89C8\u753B\u9762",fit:"\u9002\u5E94\u753B\u9762",fullscreenPreview:"\u5168\u5C4F\u9884\u89C8",fullscreen:"\u5168\u5C4F","appearance.fontFamily":"\u5B57\u4F53","appearance.fontSize":"\u5B57\u53F7","appearance.color":"\u6587\u5B57\u989C\u8272","appearance.backgroundColor":"\u80CC\u666F\u989C\u8272","appearance.align":"\u5BF9\u9F50","appearance.padding":"\u5185\u8FB9\u8DDD","appearance.radius":"\u5706\u89D2","appearance.width":"\u5BBD\u5EA6","appearance.height":"\u9AD8\u5EA6","appearance.fit":"\u88C1\u5207\u65B9\u5F0F",listSeparator:"\u3001","type.string":"\u6587\u5B57","type.number":"\u6570\u503C","type.integer":"\u6574\u6570","type.boolean":"\u5F00\u5173","type.array":"\u5217\u8868","type.object":"\u5BF9\u8C61","type.null":"\u7A7A\u503C","type.enum":"\u9009\u9879","type.const":"\u56FA\u5B9A\u503C","default.list":"\u5217\u8868 \xB7 {count} \u9879","default.object":"\u5BF9\u8C61 \xB7 {count} \u9879","default.on":"\u5F00\u542F","default.off":"\u5173\u95ED",inputsAndParameters:"\u8F93\u5165\u4E0E\u53C2\u6570","column.parameter":"\u53C2\u6570","column.purpose":"\u7528\u9014","column.type":"\u7C7B\u578B","column.default":"\u9ED8\u8BA4\u503C",required:"\u5FC5\u586B",seeUsageAndExamples:"\u67E5\u770B\u4F7F\u7528\u8BF4\u660E\u4E0E\u793A\u4F8B",noTopLevelParameters:"\u6B64\u7EC4\u4EF6\u6CA1\u6709\u5355\u72EC\u7684\u9876\u5C42\u53C2\u6570\u3002\u67E5\u770B\u4F7F\u7528\u8BF4\u660E\u548C\u793A\u4F8B\u6570\u636E\u3002",allowedValues:"\u53EF\u9009\u503C",valueRanges:"\u6570\u636E\u8303\u56F4","doc.none":"\u6B64\u7248\u672C\u5C1A\u672A\u63D0\u4F9B\u4E13\u5C5E\u8BF4\u660E\u3002","doc.purpose":"\u9002\u7528\u5185\u5BB9","doc.structure":"\u5185\u5BB9\u7ED3\u6784","doc.recipes":"\u4F7F\u7528\u6B65\u9AA4","doc.interactions":"\u4EA4\u4E92\u4E0E\u4FDD\u5B58","doc.action":"\u64CD\u4F5C","doc.result":"\u7ED3\u679C","doc.editing":"\u53EF\u8C03\u6574\u5185\u5BB9","doc.boundaries":"\u9002\u7528\u8FB9\u754C","doc.onThisPage":"\u672C\u9875",exampleTimeout:"\u7EC4\u4EF6\u793A\u4F8B\u52A0\u8F7D\u8D85\u65F6\u3002",cannotDisplay:"\u7EC4\u4EF6\u65E0\u6CD5\u663E\u793A\u3002",thumbnailTitle:"{name}\u7F29\u7565\u9884\u89C8",previewUnavailable:"\u9884\u89C8\u6682\u4E0D\u53EF\u7528","authoring.title":"\u539F\u7248\u5236\u4F5C\u6307\u5357","authoring.intro":"\u67E5\u770B\u539F\u9879\u76EE\u7684\u5236\u4F5C\u6D41\u7A0B\u3001\u7C7B\u578B\u89C4\u8303\u3001\u8F93\u5165\u793A\u4F8B\u548C\u539F\u7248\u5DE5\u5177\u3002","authoring.loading":"\u6B63\u5728\u8BFB\u53D6\u6307\u5357\u2026","authoring.open":"\u6253\u5F00\u539F\u7248\u5236\u4F5C\u6307\u5357","authoring.guide":"\u5236\u4F5C\u6307\u5357","authoring.source":"\u539F\u6587\u4E0E\u6765\u6E90\u7248\u672C","authoring.local":"\u672C\u5730\u5236\u4F5C\u6307\u5357","authoring.tools":"\u5236\u4F5C\u5DE5\u5177\u4E0E\u8F93\u5165\u89C4\u8303","authoring.toolsHelp":"\u7EC4\u4EF6\u6E90\u7801\u5305\u5185\u4FDD\u7559\u539F\u7248\u6587\u4EF6\u3002\u6309\u6307\u5357\u9009\u62E9\u8F93\u5165\u4E0E\u7C7B\u578B\uFF0C\u8FD0\u884C\u5236\u4F5C\u5DE5\u5177\u540E\u5BFC\u5165\u751F\u6210\u7684 SVG \u6216 HTML\u3002\u9009\u62E9\u201C\u539F\u7248\u201D\u663E\u793A\u53EF\u6838\u5BF9\u5B8C\u6574\u5E03\u5C40\u3002","authoring.image":"\u56FE\u7247"},en:{"category.text":"Text","category.image":"Images","category.table":"Tables","category.data":"Data","category.flow":"Flows","category.surface":"Pages & boards","category.other":"Other","category.outline":"Page outlines","reuse.general":"General","reuse.domain":"Topic-specific","reuse.content-specific":"Content-specific","reuse.unclassified":"Unassessed","scope.builtin":"Built-in","scope.project":"Project","scope.global":"Global","scope.published":"Published",types:"Types",componentTypes:"Component types",all:"All",allComponents:"All components",categoryComponents:"{category} components","empty.noMatches":"No matching components","empty.none":"No components yet",insertContent:"Insert content",searchBlocks:"Search blocks",searchComponentsPlaceholder:"Search components\u2026",blockTypes:"Block types",loadingComponents:"Loading components\u2026",noComponentsFound:"No matching components","kind.template":"Template","kind.component":"Component",notSpecified:"Not specified.",templateDetailsMenu:"Template details",componentDetailsMenu:"Component details","tab.preview":"Preview","tab.overview":"Overview","tab.usage":"Usage","tab.guides":"Stage guides","tab.parameters":"Parameters",templateExamplePreview:"Template example preview",templatePreviewCanvas:"Template preview",componentExamplePreview:"Component example preview",componentPreviewCanvas:"Component preview",componentExample:"Component example",scenarios:"Use cases",pageStructure:"Page structure",related:"Related",adjustable:"Adjustable",exampleData:"Example data",insertIntoPage:"Insert into page",rawSchemaAndDefaults:"View raw parameter rules and default data",parameterRules:"Parameter rules",defaultData:"Default data",previewActions:"Preview actions",adjustPreviewZoom:"Adjust preview zoom",zoom:"Zoom",previewZoom:"Preview zoom",fitPreview:"Fit preview to view",fit:"Fit to view",fullscreenPreview:"Full-screen preview",fullscreen:"Full screen","appearance.fontFamily":"Font","appearance.fontSize":"Font size","appearance.color":"Text color","appearance.backgroundColor":"Background color","appearance.align":"Alignment","appearance.padding":"Padding","appearance.radius":"Corner radius","appearance.width":"Width","appearance.height":"Height","appearance.fit":"Crop mode",listSeparator:", ","type.string":"Text","type.number":"Number","type.integer":"Integer","type.boolean":"Toggle","type.array":"List","type.object":"Object","type.null":"Empty","type.enum":"Options","type.const":"Fixed value","default.list":{one:"List \xB7 {count} item",other:"List \xB7 {count} items"},"default.object":{one:"Object \xB7 {count} field",other:"Object \xB7 {count} fields"},"default.on":"On","default.off":"Off",inputsAndParameters:"Inputs and parameters","column.parameter":"Parameter","column.purpose":"Purpose","column.type":"Type","column.default":"Default",required:"Required",seeUsageAndExamples:"See usage and examples",noTopLevelParameters:"This component has no separate top-level parameters. See the usage notes and example data.",allowedValues:"Allowed values",valueRanges:"Value ranges","doc.none":"This version has no dedicated documentation yet.","doc.purpose":"What it's for","doc.structure":"Content structure","doc.recipes":"Steps","doc.interactions":"Interactions and saving","doc.action":"Action","doc.result":"Result","doc.editing":"Editable content","doc.boundaries":"Limits","doc.onThisPage":"On this page",exampleTimeout:"The component example took too long to load.",cannotDisplay:"This component can't be displayed.",thumbnailTitle:"{name} thumbnail",previewUnavailable:"Preview unavailable","authoring.title":"Original authoring guides","authoring.intro":"Read the original project's process, type specifications, input examples and tools.","authoring.loading":"Reading guides\u2026","authoring.open":"Open the original authoring guides","authoring.guide":"Authoring guide","authoring.source":"Original text and source version","authoring.local":"Local authoring guide","authoring.tools":"Tools and input specifications","authoring.toolsHelp":"The component package keeps the original files. Choose an input and type from the guide, run the tool, then import the generated SVG or HTML. Choose \u201COriginal\u201D to check the complete layout.","authoring.image":"Image"}});var DT=vt(eu);function hy(e){return DT(`category.${e}`)}var OT={};function yy(e){return Gl()==="en"&&e.kind?OT[e.kind]:void 0}function _1(e){return yy(e)?.name??e.name}function tu(e){let t=yy(e);return t?t.description:e.description}var LT=vt(Eo),Mi=(0,Bn.createContext)(()=>{});function ac(e){let t=(0,Bn.useContext)(dy),a=tc(),n=(0,Bn.useMemo)(()=>Km(),[]),[o,r]=(0,Bn.useState)(null),[i,l]=(0,Bn.useState)(""),[s,c]=(0,Bn.useState)(!1);return(0,Bn.useEffect)(()=>{if(!e||!t)return;let p=!0;return c(!0),l(""),t.list().then(g=>{p&&r(g)}).catch(g=>{p&&l(g.message??String(g))}).finally(()=>{p&&c(!1)}),()=>{p=!1}},[e,t]),{items:(0,Bn.useMemo)(()=>my(o??[...n,...a]),[o,n,a]),resolve:async p=>{if("kind"in p)return{kind:p.kind,data:structuredClone(p.defaultData),native:!!p.insertion||p.kind==="text"};let g=a.find(y=>y.id===p.id&&y.version===p.version&&y.integrity===p.integrity)??(t?await t.read(p):null);if(!g)throw new Error(LT("notInstalledError"));return{kind:"custom",data:jh(g),component:g,native:!1}},error:i,loading:s,displayName:_1,displayDescription:tu}}function vy(e,t){let a=crypto.randomUUID(),n=crypto.randomUUID(),o=document.createElement("iframe");o.hidden=!0,o.setAttribute("sandbox","allow-scripts");let r=JSON.stringify({channel:a,props:e.defaultData,readOnly:!0}).replace(/</g,"\\u003c");o.srcdoc=`<!doctype html><meta http-equiv="Content-Security-Policy" content="${Js}">`+Qs(e.html,`<script id="showai-component-data" type="application/json">${r}<\/script>`);let i=()=>{};return new Promise((s,c)=>{let d=window.setTimeout(()=>c(new Error("Component parameter validation timed out.")),5e3),u=p=>{p.source!==o.contentWindow||p.data?.channel!==a||(p.data.type==="showai:ready"&&o.contentWindow?.postMessage({channel:a,type:"showai:validate",requestId:n,props:t},"*"),p.data.type==="showai:validation"&&p.data.requestId===n&&(p.data.valid===!0?s():c(new Error(String(p.data.message||"Invalid component parameters.")))))};i=()=>{clearTimeout(d),window.removeEventListener("message",u),o.remove()},window.addEventListener("message",u),document.body.append(o)}).finally(i)}var Ye=U(pe(),1);function xy({page:e,onClose:t,onSave:a}){let n=ue(or),o=ac(!0),r=(0,dn.useContext)(Mi),i=tc(),l=(0,dn.useRef)(JSON.stringify(e.attrs?.outline)),s=(0,dn.useRef)(!0);(0,dn.useEffect)(()=>(s.current=!0,()=>{s.current=!1}),[]);let[c,d]=(0,dn.useState)(()=>structuredClone(e.attrs?.outline??j9())),[u,p]=(0,dn.useState)(()=>JSON.stringify(c.renderer?.props??{},null,2)),[g,y]=(0,dn.useState)(()=>JSON.stringify(c.source.mode==="manual"?c.source.entries:c.source.overrides??{},null,2)),[b,x]=(0,dn.useState)(""),[f,m]=(0,dn.useState)(!1),v=(0,dn.useMemo)(()=>o.items.filter(k=>!("kind"in k)&&k.role==="page-outline"&&k.pageOutlineProtocol===1),[o.items]),T=k=>`${k.id}@${k.version}#${k.integrity}`,w=c.renderer?`${c.renderer.componentId}@${c.renderer.version}#${c.renderer.integrity}`:"",E=async k=>{if(x(""),!k){d(O=>{let C={...O};return delete C.renderer,C});return}let M=v.find(O=>!("kind"in O)&&T(O)===k);if(M){m(!0);try{let O=await o.resolve(M);if(!O.component)throw new Error(n("unavailable"));r(O.component);let C=O.component;d(N=>({...N,renderer:{componentId:C.id,version:C.version,integrity:C.integrity,props:structuredClone(C.defaultData)}})),p(JSON.stringify(C.defaultData,null,2))}catch(O){x(O.message)}finally{m(!1)}}},L=k=>{if(k===c.source.mode)return;let M=qs(e,c),O=C=>C.map(N=>{let z=M.targets.get(N.id),A=c.source.mode==="headings"&&z&&c.source.overrides?.[z]?.title!==void 0;return{id:N.id,...!z||A?{title:N.title}:{},...z?{nodeId:z}:{},...N.children.length?{children:O(N.children)}:{}}});y(JSON.stringify(k==="manual"?O(M.items):{},null,2)),d(C=>({...C,source:k==="manual"?{mode:"manual",entries:O(M.items)}:{mode:"headings",maxLevel:3}}))},H=async()=>{x(""),m(!0);try{let k=structuredClone(c),M=JSON.parse(g);if(k.source.mode==="manual"?k.source.entries=M:k.source.overrides=M,k.renderer){k.renderer.props=JSON.parse(u),Ai(k.renderer);let O=i.find(C=>T(C)===w);if(k.enabled){if(!O)throw new Error(n("unavailable"));await vy(O,k.renderer.props)}}if(x2(k,e),!s.current)return;a(k,l.current),t()}catch(k){s.current&&x(k.message)}finally{s.current&&m(!1)}},S=qs(e,e.attrs?.outline).missing.length;return(0,Ye.jsx)(H1,{title:n("settings"),onClose:t,className:"page-outline-settings",children:(0,Ye.jsxs)("div",{className:"page-outline-settings-body",children:[(0,Ye.jsxs)("label",{className:"page-outline-enable",children:[(0,Ye.jsx)("input",{type:"checkbox",checked:c.enabled,onChange:k=>d({...c,enabled:k.target.checked})}),n("enable")]}),(0,Ye.jsxs)("label",{children:[n("renderer"),(0,Ye.jsxs)("select",{"aria-label":n("renderer"),value:w,disabled:f,onChange:k=>{E(k.target.value)},children:[(0,Ye.jsx)("option",{value:"",children:n("builtin")}),w&&!v.some(k=>!("kind"in k)&&T(k)===w)&&(0,Ye.jsxs)("option",{value:w,children:[c.renderer.componentId," \xB7 ",c.renderer.version]}),v.map(k=>"kind"in k?null:(0,Ye.jsxs)("option",{value:T(k),children:[k.name," \xB7 ",k.version]},T(k)))]})]}),(0,Ye.jsx)("p",{className:"page-outline-hint",children:n("sourceCode")}),c.renderer&&(0,Ye.jsxs)("label",{children:[n("props"),(0,Ye.jsx)("textarea",{"aria-label":n("props"),rows:5,spellCheck:!1,value:u,onChange:k=>p(k.target.value)})]}),(0,Ye.jsxs)("div",{className:"page-outline-fields",children:[(0,Ye.jsxs)("label",{children:[n("source"),(0,Ye.jsxs)("select",{"aria-label":n("source"),value:c.source.mode,onChange:k=>L(k.target.value),children:[(0,Ye.jsx)("option",{value:"headings",children:n("headings")}),(0,Ye.jsx)("option",{value:"manual",children:n("manual")})]})]}),c.source.mode==="headings"&&(0,Ye.jsxs)("label",{children:[n("depth"),(0,Ye.jsx)("select",{"aria-label":n("depth"),value:c.source.maxLevel,onChange:k=>d({...c,source:{...c.source,mode:"headings",maxLevel:Number(k.target.value)}}),children:[1,2,3,4,5,6].map(k=>(0,Ye.jsx)("option",{value:k,children:k},k))})]})]}),c.source.mode==="manual"&&(0,Ye.jsx)(sy,{page:e,entries:c.source.entries,onChange:k=>{d({...c,source:{mode:"manual",entries:k}}),y(JSON.stringify(k,null,2))}}),(0,Ye.jsxs)("details",{children:[(0,Ye.jsx)("summary",{children:n("config")}),(0,Ye.jsx)("p",{className:"page-outline-hint",children:n(c.source.mode==="headings"?"headingsHint":"manualHint")}),(0,Ye.jsx)("textarea",{"aria-label":n("config"),rows:8,spellCheck:!1,value:g,onChange:k=>y(k.target.value)})]}),S>0&&(0,Ye.jsx)("p",{role:"status",children:n("missing",{count:S})}),(0,Ye.jsxs)("div",{className:"page-outline-fields",children:[(0,Ye.jsxs)("label",{children:[n("initial"),(0,Ye.jsx)("select",{value:c.initialState,onChange:k=>d({...c,initialState:k.target.value}),children:["auto","expanded","collapsed"].map(k=>(0,Ye.jsx)("option",{value:k,children:n(k)},k))})]}),(0,Ye.jsxs)("label",{children:[n("placement"),(0,Ye.jsx)("select",{value:c.placement,onChange:k=>d({...c,placement:k.target.value}),children:["auto","floating","docked"].map(k=>(0,Ye.jsx)("option",{value:k,children:n(k)},k))})]})]}),(0,Ye.jsxs)("label",{children:[n("width"),(0,Ye.jsx)("input",{type:"number",min:180,max:480,value:c.width,onChange:k=>d({...c,width:k.target.valueAsNumber})})]}),(b||o.error)&&(0,Ye.jsx)("p",{className:"page-outline-error",role:"alert",children:b||o.error}),(0,Ye.jsxs)("footer",{children:[e.attrs?.outline&&(0,Ye.jsx)("button",{type:"button",onClick:()=>{try{a(void 0,l.current),t()}catch(k){x(k.message)}},children:n("remove")}),(0,Ye.jsx)("button",{type:"button",className:"page-outline-apply",disabled:f,onClick:H,children:n(f?"loading":"apply")})]})]})})}var au=U(Ne(),1);var ky=U(pe(),1);function wy(e){let t=ue(tt),a=(0,au.useRef)(null);return(0,au.useEffect)(()=>h6(a.current,t("selection.textInput")),[t]),(0,ky.jsx)("div",{...e,ref:a})}var nu=class{measurements=new Map;listeners=new Map;content;index=new Map;revision=0;gestures=0;scheduled=0;changed=new Set;getSnapshot=()=>this.revision;subscribe(t,a){for(let n of t){let o=this.listeners.get(n)??new Set;o.add(a),this.listeners.set(n,o)}return()=>{for(let n of t){let o=this.listeners.get(n);o?.delete(a),o?.size||this.listeners.delete(n)}}}measure(t,a,n){if(!(a>0&&n>0))return;let o=this.measurements.get(t);o&&Math.abs(o.width-a)<.25&&Math.abs(o.height-n)<.25||(this.measurements.set(t,{width:a,height:n}),this.changed.add(t),this.publish())}forget(t){this.measurements.delete(t)&&(this.changed.add(t),this.publish())}beginGesture(){this.gestures++}endGesture(){this.gestures=Math.max(0,this.gestures-1),this.publish()}publish(){this.gestures||!this.changed.size||(typeof requestAnimationFrame=="function"?this.scheduled||(this.scheduled=requestAnimationFrame(()=>{this.scheduled=0,this.flush()})):this.flush())}flush(){if(this.gestures||!this.changed.size)return;let t=new Set;for(let a of this.changed)for(let n of this.listeners.get(a)??[])t.add(n);this.changed.clear(),this.revision++;for(let a of t)a()}entries(t){return this.content!==t.content&&(this.content=t.content,this.index=jt(t.content)),this.index}frame(t,a){let n=this.measurements.get(t);return!n||Math.abs(n.width-a.width)>.5?a:{...a,contentSize:n}}resolveArrow(t,a,n){let o={},r=this.entries(n),i=r.get(t.attrs.id)?.parent;i?.attrs?.id&&n.layout?.[i.attrs.id]&&(o[i.attrs.id]=n.layout[i.attrs.id]);for(let l of Object.values(t.attrs?.bindings??{})){let s=n.layout?.[l.targetId];s&&(o[l.targetId]=this.frame(l.targetId,s))}return I1(t,a,M1(t,a,r,o))}materialize(t){let a=t.layout,n=jt(t.content);for(let[o,r]of this.measurements){let i=a?.[o],l=n.get(o)?.node;!i||!l||l.type==="drawing"||l.type==="surface"&&i.heightMode!=="auto"||Math.abs(r.width-i.width)>.5||i.contentSize?.width===r.width&&i.contentSize?.height===r.height||(a===t.layout&&(a={...a}),a[o]={...i,contentSize:r})}return fl(a===t.layout?t:{...t,layout:a})}};function ou(){if(typeof window>"u")return;let e=window.document.getElementById("showai-read-options")?.textContent;return e?JSON.parse(e).boardCapture:void 0}var Sy=U(Ne(),1),ru=(0,Sy.createContext)(null);function nc(e){return Array.isArray(e)?`[${e.map(nc).join(",")}]`:e!==null&&typeof e=="object"?`{${Object.entries(e).filter(([,t])=>t!==void 0).sort(([t],[a])=>t<a?-1:t>a?1:0).map(([t,a])=>`${JSON.stringify(t)}:${nc(a)}`).join(",")}}`:JSON.stringify(e)??"null"}function vl(e,t){let a=jt(e.content);for(let r of Object.keys(t))if(!a.get(r)?.parent||!e.layout?.[r])throw new Error(`Object has no editable frame: ${r}`);let n=new Map;for(let r of Object.keys(t)){let i=RT(a.get(r).node,e.layout[r],t[r]);i&&n.set(r,i)}for(let r of Object.keys(t)){let i=n.get(r)??a.get(r).node;if(i.type!=="drawing"||i.attrs?.tool!=="arrow"||!i.attrs.bindings)continue;let l=P9(i.attrs.bindings,new Set(Object.keys(t))),s={...i.attrs};Object.keys(l).length?s.bindings=l:delete s.bindings,n.set(r,{...i,attrs:s})}let o=r=>{if(n.has(r.attrs?.id))return n.get(r.attrs.id);if(!r.content)return r;let i=r.content.map(o);return i.some((l,s)=>l!==r.content[s])?{...r,content:i}:r};return Ia({...e,content:n.size?o(e.content):e.content,layout:{...e.layout,...t},surfaceViews:{...e.surfaceViews}},{clone:!1})}function RT(e,t,a){if(e.type!=="drawing"||e.attrs?.tool==="arrow"||e.attrs?.ink||!Array.isArray(e.attrs?.extent))return null;let n=a.width,o=a.height??t.height;if(!o||Math.abs(n-t.width)<1e-6&&Math.abs(o-(t.height??o))<1e-6)return null;let[r,i]=e.attrs.extent,l=[Math.max(1,n),Math.max(1,o)],s=l[0]/r,c=l[1]/i;return Math.abs(s-1)<1e-9&&Math.abs(c-1)<1e-9?null:{...e,attrs:{...e.attrs,extent:l,points:e.attrs.points.map(d=>({x:d.x*s,y:d.y*c}))}}}function Jm(e,t){let a=new Set(t);return t.filter(n=>{let o=e.get(n)?.parent;for(;o;){if(a.has(o.attrs?.id))return!1;o=e.get(o.attrs?.id)?.parent??null}return!!e.get(n)})}function Xm(e,t){let a=jt(e.content),n=Jm(a,t).map(i=>structuredClone(a.get(i).node)),o={},r={};for(let i of n)Et(i,l=>{let s=l.attrs?.id;s&&(e.layout?.[s]&&(o[s]=structuredClone(e.layout[s])),e.surfaceViews?.[s]&&(r[s]=structuredClone(e.surfaceViews[s])))});return{format:"showai-board-clip",version:1,nodes:n,layout:o,surfaceViews:r}}function Cy(e){let t=e;return!!t&&t.format==="showai-board-clip"&&t.version===1&&Array.isArray(t.nodes)&&t.nodes.every(a=>typeof a?.attrs?.id=="string")&&!!t.layout&&typeof t.layout=="object"}function Qm(e,t,a,n={x:24,y:24}){if(!a.nodes.length)return{document:e,ids:[]};let o=structuredClone(e),r=jt(o.content).get(t)?.node;if(!r||!["surface","region"].includes(r.type??""))throw new Error("Paste destination must be a container.");let i=new Map,l=a.nodes.map(c=>structuredClone(c)),s=new Set(l.map(c=>c.attrs.id));for(let c of l)Et(c,d=>{if(d.attrs?.id){let u=crypto.randomUUID();i.set(d.attrs.id,u),d.attrs={...d.attrs,id:u}}});for(let c of l)Et(c,d=>{if(!d.attrs?.bindings)return;let u={};for(let p of["start","end"]){let g=d.attrs.bindings[p],y=g&&i.get(g.targetId);y&&(u[p]={...g,targetId:y})}Object.keys(u).length?d.attrs.bindings=u:delete d.attrs.bindings});o.layout??={},o.surfaceViews??={};for(let[c,d]of i){let u=a.layout[c];u&&(o.layout[d]={...structuredClone(u),...s.has(c)?{x:u.x+n.x,y:u.y+n.y}:{}});let p=a.surfaceViews?.[c];if(p){let g=new Map(p.saved.map(y=>[y.id,crypto.randomUUID()]));o.surfaceViews[d]={initial:g.get(p.initial)??null,saved:p.saved.map(y=>({...y,id:g.get(y.id),targets:y.targets.map(b=>i.get(b)).filter(Boolean)})),readingOrder:p.readingOrder.map(y=>i.get(y)).filter(Boolean)}}}return r.content=[...r.content??[],...l],{document:Ia(o),ids:l.map(c=>c.attrs.id)}}function Ty(e,t,a={x:24,y:24}){let n=jt(e.content),o=Jm(n,t);if(!o.length)return{document:e,ids:[]};let r=n.get(o[0])?.parent;if(!r||o.some(i=>n.get(i)?.parent!==r))throw new Error("Copy selection must share a parent.");return Qm(e,r.attrs.id,Xm(e,o),a)}function Ey(e,t,a){let n=jt(e.content),o=n.get(t[0])?.parent;if(!o?.content||t.some(d=>n.get(d)?.parent!==o))return e;let r=new Set(t),i=[...o.content],l;if(a==="front"||a==="back"){let d=i.filter(p=>r.has(p.attrs?.id)),u=i.filter(p=>!r.has(p.attrs?.id));l=a==="front"?[...u,...d]:[...d,...u]}else{l=i;let d=a==="forward",u=l.map((p,g)=>r.has(p.attrs?.id)?g:-1).filter(p=>p>=0);d||u.reverse();for(let p of u){let g=d?p+1:p-1;g<0||g>=l.length||r.has(l[g].attrs?.id)||([l[p],l[g]]=[l[g],l[p]])}}if(l.every((d,u)=>d===o.content[u]))return e;let s=o.attrs.id,c=d=>{if(d.attrs?.id===s)return{...d,content:l};if(!d.content)return d;let u=d.content.map(c);return u.some((p,g)=>p!==d.content[g])?{...d,content:u}:d};return Ia({...e,content:c(e.content),layout:{...e.layout},surfaceViews:{...e.surfaceViews}},{clone:!1})}function zy(e,t){let a=Object.entries(e),n={};if(a.length<2)return n;let o=Math.min(...a.map(([,s])=>s.x)),r=Math.max(...a.map(([,s])=>s.x+s.width)),i=Math.min(...a.map(([,s])=>s.y)),l=Math.max(...a.map(([,s])=>s.y+s.height));if(t==="distribute-x"||t==="distribute-y"){let s=t==="distribute-x";if(a.length<3)return n;let c=[...a].sort(([,g],[,y])=>s?g.x-y.x:g.y-y.y),d=c.reduce((g,[,y])=>g+(s?y.width:y.height),0),u=((s?r-o:l-i)-d)/(c.length-1),p=s?o:i;for(let[g,y]of c)n[g]=s?{x:p-y.x,y:0}:{x:0,y:p-y.y},p+=(s?y.width:y.height)+u;return n}for(let[s,c]of a)n[s]={x:t==="left"?o-c.x:t==="right"?r-c.x-c.width:t==="center"?(o+r)/2-c.x-c.width/2:0,y:t==="top"?i-c.y:t==="bottom"?l-c.y-c.height:t==="middle"?(i+l)/2-c.y-c.height/2:0};return n}function e5(e,t,a,n){let o=structuredClone(e),r=jt(o.content),i=r.get(t),l=o.layout?.[t];if(!i?.parent||i.node.type!=="region"||!l)return e;let s=a.filter(d=>d!==t&&r.get(d)?.parent===i.parent&&!!o.layout?.[d]);if(!s.length)return e;let c=new Set(s);i.parent.content=i.parent.content.filter(d=>!c.has(d.attrs?.id)),i.node.content=[...i.node.content??[],...s.map(d=>r.get(d).node)];for(let d of s){let u=o.layout[d];o.layout[d]={...u,x:u.x-l.x-n.x,y:u.y-l.y-n.y}}return Ia(o)}function Ay(e,t,a,n,o="\u533A\u57DF"){let r=jt(e.content),i=Jm(r,t),l=r.get(i[0])?.parent;if(!i.length||!l||i.some(g=>r.get(g)?.parent!==l))return null;let s=structuredClone(e),c=crypto.randomUUID(),d=jt(s.content).get(l.attrs.id).node,u=Math.max(...i.map(g=>d.content.findIndex(y=>y.attrs?.id===g)));return d.content.splice(u+1,0,{type:"region",attrs:{id:c,name:o},content:[]}),s.layout[c]={x:a.x-n.x,y:a.y-n.y,width:Math.max(120,a.width+n.x*2),height:Math.max(40,a.height+n.y*2),mode:"free",gap:24},{document:e5(Ia(s),c,i,n),id:c}}function My(e,t,a){let n=structuredClone(e),o=jt(n.content),r=o.get(t),i=n.layout?.[t];if(!r?.parent||r.node.type!=="region"||i?.mode!=="free")return null;let l=go(r.node),s=(r.node.content??[]).map(u=>{if(!l)return u;let p=n.layout[u.attrs.id];if(!p)throw new Error("Archive child has no frame");let g=Qf(u,p,l,i);return n.layout[u.attrs.id]=g.frame,g.node}),c=r.parent.content.indexOf(r.node);r.parent.content.splice(c,1,...s);let d=[];for(let u of s){let p=u.attrs?.id,g=p&&n.layout?.[p];g&&(d.push(p),n.layout[p]={...g,x:l?g.x:g.x+i.x+a.x,y:l?g.y:g.y+i.y+a.y})}return{document:Ia(n),ids:d}}function Iy(e,t,a){let n={...e.layout},o=!1;for(let r of t){let i=n[r];if(!i||!!i.locked===a)continue;let l={...i};a?l.locked=!0:delete l.locked,n[r]=l,o=!0}return o?Ia({...e,layout:n,surfaceViews:{...e.surfaceViews}},{clone:!1}):e}function Ny(e,t){let a=new Set(t),n=o=>{if(!o.content)return o;let r=o.content.filter(i=>!a.has(i.attrs?.id)).map(n);return r.length!==o.content.length||r.some((i,l)=>i!==o.content[l])?{...o,content:r}:o};return Ia({...e,content:n(e.content),layout:{...e.layout},surfaceViews:{...e.surfaceViews}},{clone:!1})}function Dy(e,t,a){if(!t)return!1;let n=(l,s)=>l===s||nc(l)===nc(s),o=jt(e.content),r=jt(t.content),i=new Set;for(let l of a){if(!t.layout?.[l])return!1;let s=o.get(l);if(!s||!(s.node.type==="surface"&&e.layout?.[l]?.heightMode!=="auto")&&!n(s.node,r.get(l)?.node))return!1;for(;s;){let d=s.node.attrs?.id,u=d?r.get(d):void 0;if(!u||s.node.type!==u.node.type||!n(s.node.attrs,u.node.attrs)||s.parent?.attrs?.id!==u.parent?.attrs?.id)return!1;d&&(e.layout?.[d]||t.layout?.[d])&&i.add(d),s=s.parent?.attrs?.id?o.get(s.parent.attrs.id):void 0}}return[...i].every(l=>n(e.layout?.[l],t.layout?.[l]))}function oc(e,t,a,n){let o=e.get(n)?.parent;if(!o||!a)return null;if(o.type==="surface")return o.attrs?.id===a&&o.attrs?.kind==="board"?a:null;if(o.type!=="region"||t?.[o.attrs.id]?.mode!=="free")return null;let r=o;for(;r&&r.type!=="surface";)r=e.get(r.attrs?.id)?.parent??null;return r?.attrs?.id===a?o.attrs.id:null}var vu=U(Gn(),1);var xn=U(Ne(),1),Oy=U(Gn(),1);ct("");var ka=U(pe(),1);function Ly({left:e,top:t,onInsert:a,onClose:n}){let o=ue(eu),r=ac(!0),i=(0,xn.useContext)(Mi),[l,s]=(0,xn.useState)(""),[c,d]=(0,xn.useState)(0),[u,p]=(0,xn.useState)(!1),[g,y]=(0,xn.useState)(""),b=(0,xn.useRef)(null),x=(0,xn.useRef)(!0),f=(0,xn.useRef)(document.activeElement);(0,xn.useEffect)(()=>(x.current=!0,()=>{x.current=!1,f.current?.focus()}),[]),(0,xn.useEffect)(()=>{b.current?.querySelector('[aria-selected="true"]')?.scrollIntoView({block:"nearest"})},[c]);let m=r.items.filter(T=>"kind"in T||T.role!=="page-outline").filter(T=>`${T.name} ${T.description} ${_1(T)} ${tu(T)} ${"kind"in T?T.kind:T.id}`.toLowerCase().includes(l.toLowerCase())),v=async T=>{let w=m[T];if(!(!w||u)){p(!0),y("");try{let E=await r.resolve(w);if(!x.current)return;E.component&&i(E.component),a(E.kind,E.data),n()}catch(E){x.current&&(p(!1),y(E.message))}}};return(0,Oy.createPortal)((0,ka.jsxs)(ka.Fragment,{children:[(0,ka.jsx)("div",{className:"slash-dismiss",onClick:n}),(0,ka.jsxs)("div",{ref:b,className:"slash-menu is-minimal",role:"dialog","aria-label":o("insertContent"),style:{left:Math.max(12,Math.min(e,window.innerWidth-320)),top:Math.max(12,Math.min(t,window.innerHeight-410))},onKeyDown:T=>{T.nativeEvent.isComposing||(T.stopPropagation(),T.key==="Escape"&&(T.preventDefault(),n()),T.key==="Enter"&&(T.preventDefault(),v(c)),(T.key==="ArrowDown"||T.key==="ArrowUp")&&(T.preventDefault(),d(w=>m.length?(w+(T.key==="ArrowDown"?1:-1)+m.length)%m.length:0)))},children:[(0,ka.jsxs)("div",{className:"slash-search",children:[(0,ka.jsx)(E0,{label:o("searchBlocks"),placeholder:o("searchComponentsPlaceholder"),defaultExpanded:!0,value:l,onChange:T=>{s(T),d(0)}}),(0,ka.jsx)("kbd",{children:"esc"})]}),(g||r.error)&&(0,ka.jsx)("p",{role:"alert",className:"slash-empty",children:g||r.error}),(0,ka.jsxs)("div",{className:"slash-items",role:"listbox","aria-label":o("blockTypes"),"aria-busy":u||r.loading,children:[!m.length&&(0,ka.jsx)("p",{className:"slash-empty",children:r.loading?o("loadingComponents"):o("noComponentsFound")}),m.map((T,w)=>(0,ka.jsxs)("button",{role:"option",className:`slash-item${c===w?" is-selected":""}`,"aria-selected":c===w,disabled:u,onMouseEnter:()=>d(w),onMouseDown:E=>E.preventDefault(),onClick:()=>{v(w)},children:[(0,ka.jsx)("span",{className:"slash-item-icon",children:(0,ka.jsx)(hc,{size:20})}),(0,ka.jsxs)("span",{children:[(0,ka.jsx)("strong",{children:_1(T)}),(0,ka.jsx)("small",{children:hy(py(T))})]})]},"kind"in T?T.kind:`${T.id}@${T.version}#${T.integrity}`))]})]})]}),document.body)}var VN=vt(tt);function PT(e,t){let a=Ym(e);if(!a?.insertion)throw new Error(`Component ${e} is not a native container.`);if(Object.keys(t).some(o=>!["title","content","layout","surfaceViews"].includes(o)))throw new Error("Unsupported container component property.");let n=C2(a.insertion.surfaceKind,t.title===void 0?void 0:t.title);return t.content!==void 0&&(n.content=structuredClone(t.content)),V2({id:crypto.randomUUID(),title:"",content:n,...t.layout!==void 0?{layout:t.layout}:{},...t.surfaceViews!==void 0?{surfaceViews:t.surfaceViews}:{}})}function iu(e,t,a,n,o){if(!n||typeof n!="object"||Array.isArray(n))throw new Error("Component data must be an object.");let r=N1(e),i=t?Ke(r,t)?.node:r.content;if(!i||!["surface","region","step"].includes(i.type??""))throw new Error("Component destination must be a container.");let l=i.type==="step",s=Ym(a);if(!s&&a!=="custom")throw new Error(`Unknown component: ${a}.`);if(l&&s?.insertion)throw new Error(`A step holds content blocks; insert ${a} into a Page or Board instead.`);let c,d;if(a==="text")c=up(n),d={x:0,y:0,width:640};else if(p6[a])c=n.document?up({content:n.document,format:"richtext"}):h0(a,n,crypto.randomUUID()),d={x:0,y:0,width:640};else if(s?.insertion){let y=xm(PT(a,n));c=y.content,Object.assign(r.layout,y.layout),Object.assign(r.surfaceViews,y.surfaceViews);let b=i.type==="surface"?ta(i)==="board":r.layout[i.attrs.id]?.mode==="free";d={x:0,y:0,width:760,height:460,heightMode:ta(c)==="page"&&!b?"auto":"fixed"}}else c={type:"widget",attrs:{id:crypto.randomUUID(),kind:a,data:structuredClone(n)}},d={x:0,y:0,width:640};if((i.type==="surface"&&ta(i)==="board"||i.type==="region"&&r.layout[i.attrs.id]?.mode==="free")&&!s?.insertion){let y=c;c=C2("page",typeof n.title=="string"&&n.title.trim()?n.title:s?.name??"Page"),c.content=[y],r.layout[y.attrs.id]={x:0,y:0,width:d.width},d={x:0,y:0,width:d.width+48,height:360,heightMode:"auto"}}let p=i.content??[];(i.type==="surface"&&ta(i)==="board"||i.type==="region"&&r.layout[i.attrs.id]?.mode==="free")&&(d.x=Math.min(1e6,Math.max(0,...p.map(y=>{let b=r.layout[y.attrs.id];return b?b.x+b.width+48:0}))));let g=p.length;if(o===null)g=0;else if(o!==void 0){let y=p.findIndex(b=>b.attrs?.id===o);if(y<0)throw new Error(`Insertion anchor ${o} does not belong to this parent.`);g=y+1}return i.content=[...p.slice(0,g),c,...p.slice(g)],l||(r.layout[c.attrs.id]=d),{document:Ia(r),nodeId:c.attrs.id}}function t5(e,t){let a=jo(e)||1,n=(t.x-(e.x+e.width/2))/(e.width||1),o=(t.y-(e.y+a/2))/a;return Math.abs(n)>=Math.abs(o)?{x:n>=0?1:0,y:.5}:{x:.5,y:o>=0?1:0}}var Ry={right:"LR",down:"TB",left:"RL",up:"BT"};function jT(e,t,{direction:a="right",origin:n={x:0,y:0},spacing:o={}}={}){if(!Ry[a])throw new Error("Diagram direction must be right, down, left or up.");let r=new z6.Graph({multigraph:!0});r.setGraph({rankdir:Ry[a],nodesep:o.node??48,ranksep:o.rank??96,edgesep:24,marginx:0,marginy:0}),r.setDefaultEdgeLabel(()=>({}));for(let c of e)r.setNode(c.id,{width:c.width,height:c.height});t.forEach((c,d)=>{if(!r.hasNode(c.from)||!r.hasNode(c.to))return;let u=c.label?Im(c.label,c.labelSize??16,200):{width:0,height:0};r.setEdge(c.from,c.to,{width:u.width+12,height:u.height+8,labelpos:"c"},c.id??`edge-${d}`)}),A6(r);let i=e.map(c=>{let d=r.node(c.id);return{id:c.id,x:d.x-c.width/2,y:d.y-c.height/2}}),l=Math.min(...i.map(c=>c.x)),s=Math.min(...i.map(c=>c.y));return Object.fromEntries(i.map(c=>[c.id,{x:Math.round(n.x+c.x-l),y:Math.round(n.y+c.y-s)}]))}function Py(e,t,a="right"){let n=jt(e.content),o=e.layout??{},r=t.map(b=>n.get(b)).filter(b=>b&&o[b.node.attrs.id]&&$n(b.node).bindTarget&&!o[b.node.attrs.id].locked);if(r.length<2)return null;let i=r[0].parent;if(r.some(b=>b.parent!==i))return null;let l=new Set(r.map(b=>b.node.attrs.id)),s=(i.content??[]).filter(b=>b.type==="drawing"&&b.attrs?.tool==="arrow"&&l.has(b.attrs.bindings?.start?.targetId)&&l.has(b.attrs.bindings?.end?.targetId)).map(b=>({id:b.attrs.id,from:b.attrs.bindings.start.targetId,to:b.attrs.bindings.end.targetId,label:b.attrs.label,labelSize:b.attrs.labelSize}));if(!s.length)return null;let c=r.map(b=>o[b.node.attrs.id]),d={x:Math.min(...c.map(b=>b.x)),y:Math.min(...c.map(b=>b.y))},u=jT(r.map(b=>({id:b.node.attrs.id,width:o[b.node.attrs.id].width,height:jo(o[b.node.attrs.id])})),s,{direction:a,origin:d}),p=Object.fromEntries(r.map(b=>{let x=b.node.attrs.id;return[x,{...o[x],...u[x]}]})),g=b=>({x:b.x+b.width/2,y:b.y+jo(b)/2}),y=Object.fromEntries(s.map(b=>[b.id,{start:t5(p[b.from],g(p[b.to])),end:t5(p[b.to],g(p[b.from]))}]));return{frames:p,anchors:y}}var Le=U(Ne(),1);var ic=U(Ne(),1),By=()=>0;function jy(e,t,a){let n=e.attrs?.bindings?.start?.targetId,o=e.attrs?.bindings?.end?.targetId,r=(0,ic.useCallback)(s=>a?.subscribe([n,o].filter(Boolean),s)??(()=>{}),[a,n,o]),i=(0,ic.useSyncExternalStore)(r,a?.getSnapshot??By,By),l=t.layout?.[e.attrs?.id];return(0,ic.useMemo)(()=>a&&l&&e.type==="drawing"&&e.attrs?.tool==="arrow"&&(n||o)?a.resolveArrow(e,l,t):{node:e,frame:l},[e,l,t,a,i,n,o])}function lu(e,t,a,n={}){let{origin:o,release:r,scale:i,snap:l}=a,s=e==="pen"||e==="highlighter",c=a.moved||Math.hypot(r.x-o.x,r.y-o.y)*i>=3,d;if(!c)d=s?[o,{x:o.x+.01,y:o.y+.01}]:e==="arrow"?[o,{x:o.x+100,y:o.y}]:[{x:o.x-100,y:o.y-100},{x:o.x+100,y:o.y+100}];else if(s){d=[...a.points];let g=d.at(-1);(!g||g.x!==r.x||g.y!==r.y)&&d.push(r),d.length===1&&d.push({x:r.x+.01,y:r.y+.01})}else d=f0(e==="region"?"rectangle":e,o,r,n),l&&["rectangle","ellipse","region"].includes(e)&&!n.ctrlKey&&!n.metaKey&&(d=g0(d,l,i,n.shiftKey).points);d.length>2e4&&(d=[...d.slice(0,19999),d.at(-1)]);let u=jl(d),p={x:u.x,y:u.y,width:Math.max(1,u.width),height:Math.max(1,u.height)};return e==="region"?{node:{type:"region",attrs:{id:crypto.randomUUID(),name:"\u533A\u57DF"},content:[]},frame:{...p,width:Math.max(120,p.width),height:Math.max(40,p.height),mode:"free",gap:24}}:{node:{type:"drawing",attrs:{id:crypto.randomUUID(),name:{pen:"\u7B14\u753B",highlighter:"\u8367\u5149\u7B14",rectangle:"\u77E9\u5F62",ellipse:"\u692D\u5706",arrow:"\u7BAD\u5934"}[e],tool:e,...t,extent:[p.width,p.height],points:(s?[d[0],d.at(-1)]:d).map(g=>({x:g.x-p.x,y:g.y-p.y,...s&&g.pressure!==void 0?{pressure:g.pressure}:{}})),...s?{ink:Yf(d.map(g=>({...g,x:g.x-p.x,y:g.y-p.y})),t.strokeWidth,[p.width,p.height],e==="highlighter"?"marker":"pen",t.pressure)}:{}}},frame:p}}function Hy(e,t){let a=e.map((n,o)=>{let r=e[Math.max(0,o-1)],i=e[Math.min(e.length-1,o+1)],l=i.x-r.x,s=i.y-r.y,c=Math.hypot(l,s)||1,d=t*(.2+.8*Math.max(0,Math.min(1,n.pressure??1)))/2;return[{x:n.x-s/c*d,y:n.y+l/c*d},{x:n.x+s/c*d,y:n.y-l/c*d}]});return xc([...a.map(n=>n[0]),...a.map(n=>n[1]).reverse()])+" Z"}var _y=U(Ne(),1);var Ao=U(pe(),1);function Uy({ink:e,fragments:t=[],color:a,width:n,pressure:o}){let r=(0,_y.useId)(),i=[e,...t].map(s=>({ink:s,geometry:Jf(s,n,o)})),l=i.some(({geometry:s})=>!!s.mask);return(0,Ao.jsxs)(Ao.Fragment,{children:[l&&(0,Ao.jsx)("defs",{children:i.map(({ink:s,geometry:c},d)=>c.mask&&(0,Ao.jsx)("clipPath",{id:`${r}-${d}`,clipPathUnits:"userSpaceOnUse",children:(0,Ao.jsx)("path",{d:c.mask,transform:`matrix(${s.transform.join(" ")})`})},d))}),[!1,!0].map(s=>(0,Ao.jsx)("g",{className:s?"board-ink-dark":"board-ink-light",opacity:e.opacity,children:l?i.map(({geometry:c},d)=>(0,Ao.jsx)("path",{"data-portable-ink":"1",d:c.path,fill:op(a,s),stroke:"none",clipPath:c.mask?`url(#${r}-${d})`:void 0},d)):(0,Ao.jsx)("path",{"data-portable-ink":"1",d:i.map(({geometry:c})=>c.path).join(" "),fill:op(a,s),stroke:"none"})},String(s)))]})}var Vy=U(Gn(),1);var wt=U(Ne(),1);var Fe=U(pe(),1);function Zy(e){return(0,wt.useContext)(Tn).nativeScene?(0,Fe.jsx)(_T,{...e}):(0,Fe.jsx)(UT,{...e})}function _T({node:e,frame:t}){let a=(0,wt.useContext)(Tn),n=e.attrs,o=n.extent,r=n.points;return(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)("svg",{className:"board-drawing","data-native-measurement":"true","data-native-ink":ur(e)?"":void 0,"data-native-ink-id":ur(e)?n.id:void 0,viewBox:`0 0 ${o[0]} ${o[1]}`,preserveAspectRatio:"none",role:"img","aria-label":n.name||n.tool}),io(e)&&n.label&&(0,Fe.jsx)($y,{node:e,first:r[0],last:r.at(-1),frameHeight:t?.height??o[1],editing:!1,onDone:(i,l)=>a.setLabel?.(n.id,i,l)})]})}function UT({node:e,frame:t}){let a=ue(tt),n=(0,wt.useContext)(Tn),o=(0,wt.useId)(),[r,i]=(0,wt.useState)(!1),[l,s]=(0,wt.useState)(null),c=(0,wt.useRef)(null),d=(0,wt.useRef)({node:e,frame:t,connect:n.connect});d.current={node:e,frame:t,connect:n.connect};let u=(S,k)=>{let M=c.current,O=M.layer.getBoundingClientRect();return{x:M.original.x+(S-M.x-O.left+M.origin.x)/M.scale/M.frame.width*M.source.attrs.extent[0],y:M.original.y+(k-M.y-O.top+M.origin.y)/M.scale/(M.frame.height??1)*M.source.attrs.extent[1]}},p=()=>{c.current&&n.highlightTarget?.(null),c.current=null,i(!1),s(null)};(0,wt.useEffect)(()=>{if(r)return window.addEventListener("blur",p),()=>window.removeEventListener("blur",p)},[r]);let{tool:g,points:y,color:b,fillColor:x="none",strokeWidth:f,extent:m}=e.attrs,v=l?.key==="start"?l.point:y[0],T=l?.key==="end"?l.point:y.at(-1),w=g==="arrow"?vc(v,T,f):xc(y),E=yc(e.attrs.ink)?(0,Fe.jsx)(Uy,{ink:e.attrs.ink,fragments:e.attrs.inkFragments,color:b,width:f,pressure:e.attrs.pressure}):e.attrs.ink?(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)("image",{className:e.attrs.ink.darkPreview?"board-ink-light":void 0,href:e.attrs.ink.preview,width:m[0],height:m[1],preserveAspectRatio:"none"}),e.attrs.ink.darkPreview&&(0,Fe.jsx)("image",{className:"board-ink-dark",href:e.attrs.ink.darkPreview,width:m[0],height:m[1],preserveAspectRatio:"none"})]}):e.attrs.pressure!==!1&&(g==="pen"||g==="highlighter")&&y.some(S=>S.pressure!==void 0)?(0,Fe.jsx)("path",{d:Hy(y,f),fill:b,stroke:"none"}):g==="rectangle"?(0,Fe.jsx)("rect",{x:Math.min(v.x,T.x),y:Math.min(v.y,T.y),width:Math.abs(T.x-v.x),height:Math.abs(T.y-v.y)}):g==="ellipse"?(0,Fe.jsx)("ellipse",{cx:(v.x+T.x)/2,cy:(v.y+T.y)/2,rx:Math.abs(T.x-v.x)/2,ry:Math.abs(T.y-v.y)/2}):(0,Fe.jsx)("path",{d:w}),L=!n.readOnly&&(n.board?.ids.has(e.attrs.id)??n.selected===e.attrs.id),H=[1.5*m[0]/((t?.width??m[0])*n.scale),1.5*m[1]/((t?.height??m[1])*n.scale)].join(" ");return(0,Fe.jsxs)(Fe.Fragment,{children:[(0,Fe.jsx)("svg",{className:"board-drawing","data-native-ink":ur(e)?"":void 0,"data-native-ink-id":ur(e)?e.attrs.id:void 0,viewBox:`0 0 ${m[0]} ${m[1]}`,preserveAspectRatio:"none",role:"img","aria-label":e.attrs.name||g,children:(0,Fe.jsx)("g",{fill:g==="rectangle"||g==="ellipse"?x:"none",stroke:b,opacity:yc(e.attrs.ink)?1:g==="highlighter"?.35:1,strokeWidth:f,strokeLinecap:"round",strokeLinejoin:"round",children:E})}),L&&(0,Fe.jsxs)("svg",{className:"board-drawing-selection",viewBox:`0 0 ${m[0]} ${m[1]}`,preserveAspectRatio:"none","aria-hidden":"true",children:[(0,Fe.jsx)("defs",{children:(0,Fe.jsxs)("filter",{id:o,filterUnits:"userSpaceOnUse",x:"-50%",y:"-50%",width:"200%",height:"200%",children:[(0,Fe.jsx)("feMorphology",{in:"SourceAlpha",operator:"dilate",radius:H,result:"expanded"}),(0,Fe.jsx)("feComposite",{in:"expanded",in2:"SourceAlpha",operator:"out",result:"edge"}),(0,Fe.jsx)("feFlood",{floodColor:"#467de3",result:"color"}),(0,Fe.jsx)("feComposite",{in:"color",in2:"edge",operator:"in"})]})}),(0,Fe.jsx)("g",{filter:`url(#${o})`,fill:g==="rectangle"||g==="ellipse"?x:"none",stroke:b,strokeWidth:f,strokeLinecap:"round",strokeLinejoin:"round",children:E})]}),io(e)&&(e.attrs.label||!n.readOnly&&!!n.setLabel&&n.labelEditing===e.attrs.id)&&(0,Fe.jsx)($y,{node:e,first:v,last:T,frameHeight:t?t.height??m[1]:m[1],editing:!n.readOnly&&!!n.setLabel&&n.labelEditing===e.attrs.id,onDone:(S,k)=>{n.editLabel?.(null),(S!==(e.attrs.label??"")||k)&&n.setLabel?.(e.attrs.id,S,k)}}),g==="arrow"&&t&&!n.readOnly&&n.connect&&(n.board?.ids.has(e.attrs.id)??n.selected===e.attrs.id)&&["start","end"].map(S=>{let k=S==="start"?v:T;return(0,Fe.jsx)("button",{type:"button",className:"board-arrow-endpoint","data-surface-ui":!0,"data-surface-handle":!0,"aria-label":a(S==="start"?"drawing.arrowStart":"drawing.arrowEnd"),style:{left:`${k.x/m[0]*100}%`,top:`${k.y/m[1]*100}%`},onPointerDown:M=>{if(M.button!==0)return;M.preventDefault(),M.stopPropagation(),M.currentTarget.focus({preventScroll:!0}),M.currentTarget.setPointerCapture(M.pointerId);let O=M.currentTarget.closest("[data-surface-id]").getBoundingClientRect(),C=M.currentTarget.closest("[data-surface-id]").parentElement,N=C.getBoundingClientRect();i(!0),c.current={key:S,x:M.clientX,y:M.clientY,scale:O.width/t.width,layer:C,origin:{x:N.left,y:N.top},original:k,next:k,source:e,frame:t}},onPointerMove:M=>{let O=c.current;O&&(M.stopPropagation(),O.next=u(M.clientX,M.clientY),s({key:S,point:O.next}),n.highlightTarget?.(M.clientX,M.clientY,e.attrs.id))},onPointerUp:M=>{let O=c.current;if(!O)return;M.stopPropagation(),O.next=u(M.clientX,M.clientY);let C=JSON.stringify(d.current.node)===JSON.stringify(O.source)&&JSON.stringify(d.current.frame)===JSON.stringify(O.frame);p(),n.highlightTarget?.(null),M.currentTarget.hasPointerCapture(M.pointerId)&&M.currentTarget.releasePointerCapture(M.pointerId),C&&(O.next.x!==O.original.x||O.next.y!==O.original.y)&&d.current.connect?.(e.attrs.id,S,{x:t.x+O.next.x/m[0]*t.width,y:t.y+O.next.y/m[1]*(t.height??m[1])})},onPointerCancel:p,onLostPointerCapture:p,onKeyDown:M=>{if(M.key==="Escape"){M.preventDefault(),M.stopPropagation(),p();return}let O={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]}[M.key];if(!O)return;M.preventDefault(),M.stopPropagation(),p();let C=M.shiftKey?10:1;n.connect?.(e.attrs.id,S,{x:t.x+k.x/m[0]*t.width+O[0]*C,y:t.y+k.y/m[1]*(t.height??m[1])+O[1]*C})}},S)})]})}function Gy({tool:e,color:t,fillColor:a="none",strokeWidth:n=2.5,pressure:o=!0,camera:r,panHeld:i,ruler:l=!1,makeSnapIndex:s,point:c,onDraw:d,onExit:u,onTarget:p}){let g=ue(tt),[,y]=(0,wt.useState)(0),b=(0,wt.useRef)(0),x=()=>{b.current||(b.current=requestAnimationFrame(()=>{b.current=0,y(A=>A+1)}))};(0,wt.useEffect)(()=>()=>cancelAnimationFrame(b.current),[]);let[f,m]=(0,wt.useState)([]),v=(0,wt.useRef)(null),T=(0,wt.useRef)(null),w=e==="pen"||e==="highlighter",E=()=>{let A=v.current?.id;v.current=null,x(),m([]),A!==void 0&&T.current?.hasPointerCapture(A)&&T.current.releasePointerCapture(A)},L=(0,wt.useRef)({tool:e,color:t,fillColor:a,strokeWidth:n,pressure:o,point:c,onDraw:d});L.current={tool:e,color:t,fillColor:a,strokeWidth:n,pressure:o,point:c,onDraw:d};let H=()=>r.current.scale*(T.current.getBoundingClientRect().width/T.current.clientWidth||1),S=(A,q)=>{let P=v.current;if(!P)return;let{tool:Z,color:F,fillColor:ee,strokeWidth:j,pressure:K,onDraw:_}=L.current,$=lu(Z,{color:F,fillColor:ee,strokeWidth:j,pressure:K},{...P,release:A??P.cursor,scale:H()},q??P.modifiers);v.current=null,(0,Vy.flushSync)(()=>{_($.node,$.frame),cancelAnimationFrame(b.current),b.current=0,y(D=>D+1),m([])}),T.current?.hasPointerCapture(P.id)&&T.current.releasePointerCapture(P.id)},k=(0,wt.useRef)(S);k.current=S,(0,wt.useEffect)(()=>{let A=()=>{v.current?.moved?k.current():E()},q=T.current?.closest(".page-surface");q?.addEventListener("showai-board-pinch",E);let P=()=>{v.current&&x()};return q?.addEventListener("showai:viewport-change",P),window.addEventListener("blur",A),()=>{window.removeEventListener("blur",A),q?.removeEventListener("showai-board-pinch",E),q?.removeEventListener("showai:viewport-change",P)}},[]);let M=A=>({shiftKey:A.shiftKey,altKey:A.altKey,ctrlKey:A.ctrlKey,metaKey:A.metaKey}),O=A=>{let q=f0(e==="region"?"rectangle":e,A.origin,A.cursor,A.modifiers);if((e==="rectangle"||e==="ellipse"||e==="region")&&!A.modifiers.ctrlKey&&!A.modifiers.metaKey){let P=g0(q,A.snap,H(),A.modifiers.shiftKey);q=P.points,m(P.guides)}else m([]);A.points=q},C=A=>{e==="arrow"&&p?.(A.clientX,A.clientY);let q=v.current;if(q?.id!==A.pointerId)return;let P=w?(A.nativeEvent.getCoalescedEvents?.()??[]).filter(F=>F.pointerId===A.pointerId):[];P.length||P.push(A.nativeEvent);let Z=H();for(let F of P){let ee=c(F.clientX,F.clientY),j=q.points.at(-1);if(w&&(ee.pressure=F.pointerType==="pen"&&F.pressure>0?F.pressure:1),q.cursor=ee,q.moved||=Math.hypot(ee.x-q.origin.x,ee.y-q.origin.y)*Z>=3,w&&l){q.points=[q.origin,ee];continue}w&&(Math.hypot(ee.x-j.x,ee.y-j.y)*Z<.7||q.points.length>=2e4)||w&&q.points.push(ee)}q.modifiers=M(A),w||O(q),x()},N=v.current?.points??[],z=N.length>1?{type:"drawing",attrs:{tool:e==="region"?"rectangle":e,points:N,color:t,fillColor:a,strokeWidth:n,pressure:o,extent:[1,1]}}:null;return(0,Fe.jsx)("svg",{ref:T,className:"board-drawing-input","data-drawing-active":N.length>0,"data-board-drawing-input":!0,"aria-label":g("drawing.area"),tabIndex:0,onPointerDown:A=>{if(A.defaultPrevented||mr(A.pointerType)||A.button!==0||i.current||v.current)return;A.preventDefault(),A.stopPropagation(),A.currentTarget.focus({preventScroll:!0}),A.currentTarget.setPointerCapture(A.pointerId);let q=c(A.clientX,A.clientY);w&&(q.pressure=A.pointerType==="pen"&&A.pressure>0?A.pressure:1),v.current={id:A.pointerId,points:[q],origin:q,cursor:q,snap:w?{boxes:[],x:[],y:[]}:s(),moved:!1,modifiers:M(A)},x()},onPointerMove:C,onPointerLeave:()=>e==="arrow"&&p?.(NaN,NaN),onPointerUp:A=>{let q=v.current;if(!q||q.id!==A.pointerId)return;A.preventDefault(),A.stopPropagation();let P=c(A.clientX,A.clientY);w&&(P.pressure=q.cursor.pressure??q.points.at(-1)?.pressure??1),S(P,M(A)),e==="arrow"&&p?.(NaN,NaN)},onPointerCancel:A=>{v.current?.id===A.pointerId&&(v.current.moved?S():E())},onLostPointerCapture:A=>{v.current?.id!==A.pointerId||A.currentTarget.hasPointerCapture(A.pointerId)||(v.current.moved?S():E())},onKeyDown:A=>{A.key==="Escape"||(A.metaKey||A.ctrlKey)&&A.key.toLowerCase()==="z"&&v.current?(A.preventDefault(),A.stopPropagation(),v.current?E():u()):v.current&&["Shift","Alt","Control","Meta"].includes(A.key)&&(v.current.modifiers=M(A),!w&&v.current.points.length>1&&(O(v.current),x()))},onKeyUp:A=>{v.current&&!w&&["Shift","Alt","Control","Meta"].includes(A.key)&&(v.current.modifiers=M(A),O(v.current),x())},children:(0,Fe.jsxs)("g",{transform:`translate(${r.current.x} ${r.current.y}) scale(${r.current.scale})`,children:[(0,Fe.jsx)("g",{stroke:"#e06b52",strokeWidth:1,pointerEvents:"none",children:f.map((A,q)=>(0,Fe.jsx)("line",{vectorEffect:"non-scaling-stroke",x1:A.axis==="x"?A.value:A.from,x2:A.axis==="x"?A.value:A.to,y1:A.axis==="y"?A.value:A.from,y2:A.axis==="y"?A.value:A.to},q))}),z&&(0,Fe.jsx)("g",{style:{pointerEvents:"none"},children:(0,Fe.jsx)(VT,{node:z})})]})})}function $y({node:e,first:t,last:a,frameHeight:n,editing:o,onDone:r}){let i=ue(tt),{tool:l,color:s,strokeWidth:c,extent:d,label:u="",labelSize:p=16}=e.attrs,[g,y]=(0,wt.useState)(u),b=(0,wt.useRef)(null),x=(0,wt.useRef)(!1);(0,wt.useEffect)(()=>{if(!o)return;x.current=!1,y(u);let v=b.current;v&&(v.focus({preventScroll:!0}),v.select())},[o]),(0,wt.useLayoutEffect)(()=>{let v=b.current;v&&(v.style.height="auto",v.style.height=`${v.scrollHeight}px`)},[g,o]);let f=(v=!1)=>{if(x.current)return;x.current=!0;let T=b.current,w=v?T?.closest("[data-surface-id]"):null,E;if(T&&l!=="arrow"){let L=z2(l,c),H=l==="ellipse"?(T.scrollHeight+L)/Math.SQRT1_2:T.scrollHeight+L*2;H>n+.5&&(E=Math.ceil(H))}r(g.trim()?g:"",E),w?.focus({preventScroll:!0})},m={color:s==="none"?void 0:s,fontSize:p,lineHeight:1.3};if(l==="arrow")Object.assign(m,{left:`${(t.x+a.x)/2/d[0]*100}%`,top:`${(t.y+a.y)/2/d[1]*100}%`});else{let v=X9(l,d[0],d[1],c);Object.assign(m,{left:`${v.x/d[0]*100}%`,top:`${v.y/d[1]*100}%`,width:`${v.width/d[0]*100}%`,height:`${v.height/d[1]*100}%`})}return(0,Fe.jsx)("div",{className:"board-drawing-label","data-tool":l,"data-editing":o||void 0,style:m,children:o?(0,Fe.jsx)("textarea",{ref:b,rows:1,value:g,"aria-label":i("drawing.label"),"data-surface-ui":!0,spellCheck:!1,onChange:v=>y(v.currentTarget.value),onPointerDown:v=>v.stopPropagation(),onBlur:()=>f(),onKeyDown:v=>{(v.key==="Escape"||v.key==="Enter"&&(v.metaKey||v.ctrlKey))&&(v.preventDefault(),v.stopPropagation(),f(!0))}}):(0,Fe.jsx)("span",{children:u})})}function VT({node:e}){let{points:t,tool:a,color:n,fillColor:o="none",strokeWidth:r=2.5}=e.attrs,i=t[0],l=t.at(-1),s=(0,wt.useRef)(null),c;if(a==="pen"||a==="highlighter"){(!s.current||s.current.points!==t||s.current.next>t.length-1)&&(s.current={points:t,next:1,path:`M ${i.x} ${i.y}`});let d=s.current;for(;d.next<t.length-1;){let u=t[d.next],p=t[d.next+1];d.path+=` Q ${u.x} ${u.y} ${(u.x+p.x)/2} ${(u.y+p.y)/2}`,d.next++}c=`${d.path} L ${l.x} ${l.y}`}else c=a==="arrow"?vc(i,l,r):xc(t);return(0,Fe.jsx)("g",{stroke:n,strokeWidth:r,fill:a==="rectangle"||a==="ellipse"?o:"none",opacity:a==="highlighter"?.35:1,strokeLinecap:"round",strokeLinejoin:"round",children:a==="rectangle"?(0,Fe.jsx)("rect",{x:Math.min(i.x,l.x),y:Math.min(i.y,l.y),width:Math.abs(l.x-i.x),height:Math.abs(l.y-i.y)}):a==="ellipse"?(0,Fe.jsx)("ellipse",{cx:(i.x+l.x)/2,cy:(i.y+l.y)/2,rx:Math.abs(l.x-i.x)/2,ry:Math.abs(l.y-i.y)/2}):(0,Fe.jsx)("path",{d:c})})}var uo=U(Ne(),1);var Ht=U(pe(),1),ZT=vt(tt);function jn(e){let t=ZT;return String(e.attrs?.name||e.attrs?.data?.title||{region:t("node.region"),surface:e.attrs?.kind==="board"?"Board":"Page",drawing:t("node.drawing"),richText:t("node.text"),image:t("node.image"),paragraph:t("node.text"),heading:t("node.heading"),table:t("node.table"),widget:e.attrs?.kind||t("node.component")}[e.type??""]||t("node.content"))}function GT({children:e,minHeight:t=160}){let a=(0,uo.useRef)(null),[n,o]=(0,uo.useState)(t);return(0,uo.useEffect)(()=>{let r=a.current,i=()=>o(Math.max(t,...[...r.children].filter(s=>s instanceof HTMLElement&&s.hasAttribute("data-surface-id")).map(s=>s.offsetTop+s.offsetHeight+24))),l=new ResizeObserver(i);for(let s of r.children)s instanceof HTMLElement&&s.hasAttribute("data-surface-id")&&l.observe(s);return i(),()=>l.disconnect()},[e,t]),(0,Ht.jsx)("div",{className:"surface-layout-free",ref:a,style:{minHeight:n,"--free-height":`${n}px`},children:e})}var lc=(0,uo.memo)(function({node:t,document:a,positioned:n,renderContent:o,spatial:r=!0,renderSurface:i}){let l=(0,uo.useContext)(Tn),{node:s,frame:c}=jy(t,a,l.nativeScene?void 0:l.geometry),d=s.attrs.id,u=s.attrs?.nativeInk??s.attrs?.data?.nativeInk,p=!!u,g=s.type==="drawing"?s:p?{type:"drawing",attrs:{id:d,name:s.attrs.name,tool:"pen",color:"#252629",strokeWidth:2.5,extent:u.extent,points:[{x:0,y:0},{x:u.extent[0],y:u.extent[1]}],ink:u}}:void 0,y;if(s.type==="surface")y=i?.(s);else if(g)y=(0,Ht.jsx)(Zy,{node:g,frame:c});else if(s.type==="region"){let b=c?.mode??"flow",x=s.content??[];if(go(s)){let f=Xf(go(s),c);y=(0,Ht.jsx)("div",{className:"surface-layout-free ink-archive-local-space",style:{width:f.width,height:f.height,transform:`scale(${f.scaleX},${f.scaleY})`,transformOrigin:"0 0"},children:x.map(m=>(0,Ht.jsx)(lc,{node:m,document:a,positioned:!0,spatial:r,renderContent:o,renderSurface:i},m.attrs.id))})}else if(b==="flow"){let f=[];for(let m of x)if(["region","richText","surface","drawing"].includes(m.type??""))f.push(m);else{let v=f.at(-1);Array.isArray(v)?v.push(m):f.push([m])}(!f.length||!l.readOnly&&!Array.isArray(f.at(-1)))&&f.push([]),y=(0,Ht.jsx)("div",{className:"surface-layout-flow",children:f.map((m,v)=>Array.isArray(m)?(0,Ht.jsx)("div",{children:o({content:{type:"doc",content:m},parentId:d,ids:m.map(T=>T.attrs?.id),kind:"children"})},`flow-${v}`):(0,Ht.jsx)(lc,{node:m,document:a,positioned:!1,spatial:r,renderContent:o,renderSurface:i},m.attrs.id))})}else{let f=x.length?null:(0,Ht.jsx)($T,{id:d}),m=x.map(v=>(0,Ht.jsx)(lc,{node:v,document:a,positioned:r&&b==="free",spatial:r,renderContent:o,renderSurface:i},v.attrs.id));y=b==="grid"?(0,Ht.jsxs)("div",{className:"surface-layout-grid",style:{gridTemplateColumns:`repeat(${c?.columns??2}, minmax(0, 1fr))`,gap:c?.gap??24},children:[m,f]}):r?(0,Ht.jsxs)(GT,{minHeight:c?.height??200,children:[m,f]}):(0,Ht.jsx)("div",{className:"surface-layout-flow",children:m})}}else s.type==="richText"?y=o({content:{type:"doc",content:s.content??[]},componentData:s.attrs?.data,parentId:d,ids:(s.content??[]).map(b=>b.attrs?.id),kind:"children"}):y=o({content:{type:"doc",content:[s]},parentId:d,ids:[d],kind:"single"});return!n&&(s.type==="richText"||s.type==="region"&&(c?.mode??"flow")==="flow")?(0,Ht.jsx)("div",{className:"page-document-flow","data-surface-id":d,children:y}):(0,Ht.jsx)(I6,{id:d,rotatable:$n(s).rotate,resizable:!(s.type==="drawing"&&s.attrs?.tool==="arrow"),name:jn(s),positioned:n,region:s.type==="region",archiveGroup:!!go(s),container:s.type==="surface",drawing:s.type==="drawing"||p,component:s.type==="widget",drawingNode:g,fixedHeight:s.type==="surface"&&(ta(s)==="board"||c?.heightMode!=="auto")||s.type==="drawing"||p||s.type==="region"&&c?.mode==="free"&&!!c.height,frame:c,children:y})},(e,t)=>{if(e.node!==t.node||e.positioned!==t.positioned||e.spatial!==t.spatial||e.renderSurface!==t.renderSurface||e.renderContent!==t.renderContent)return!1;let a=n=>e.document.layout?.[n.attrs?.id]===t.document.layout?.[n.attrs?.id]&&(n.type!=="region"||(n.content??[]).every(a));return a(t.node)});function $T({id:e}){let t=ue(tt);return(0,uo.useContext)(Tn).readOnly?null:(0,Ht.jsx)("div",{tabIndex:0,className:"surface-empty-region","data-component-container":e,"aria-label":t("region.empty"),children:t("region.emptyHint")})}function su({document:e,renderContent:t,spatial:a=!0,container:n=e.content,renderSurface:o}){let r=(0,uo.useContext)(Tn);if(Ua(e)&&n.type==="surface"&&ta(n)==="page"){if(!r.readOnly)return(0,Ht.jsx)("div",{className:"surface-layout-flow page-continuous-content",children:t({content:{type:"doc",content:n.content??[]},parentId:n.attrs.id,ids:(n.content??[]).map(s=>s.attrs.id),kind:"children",renderModule:s=>(0,Ht.jsx)(lc,{node:s,document:e,positioned:!1,spatial:a,renderContent:t,renderSurface:o})})});let l=[];for(let s of n.content??[])if(["region","richText","surface","drawing"].includes(s.type??""))l.push(s);else{let c=l.at(-1);Array.isArray(c)?c.push(s):l.push([s])}return(!l.length||!r.readOnly&&!Array.isArray(l.at(-1)))&&l.push([]),(0,Ht.jsx)("div",{className:"surface-layout-flow",children:l.map((s,c)=>Array.isArray(s)?(0,Ht.jsx)("div",{children:t({content:{type:"doc",content:s},parentId:n.attrs.id,ids:s.map(d=>d.attrs.id),kind:"children"})},`flow-${c}`):(0,Ht.jsx)(lc,{node:s,document:e,positioned:!1,spatial:a,renderContent:t,renderSurface:o},s.attrs.id))})}let i=Ua(e)?Ws(e,n):V9(e);return(0,Ht.jsx)(Ht.Fragment,{children:i.map(l=>(0,Ht.jsx)(lc,{node:l,document:e,positioned:a,spatial:a,renderContent:t,renderSurface:o},l.attrs.id))})}var tn=U(Ne(),1),Wy=U(Gn(),1);ct(`.studio-tree-row{--row-menu-size: 28px;--row-menu-inset: 4px;position:relative}.studio-context-menu-shortcut{margin-left:auto;padding-left:16px;color:var(--muted);font-size:11px;white-space:nowrap}.studio-tree-row[data-library-draggable=true] .studio-tree-main{cursor:grab}.studio-tree-row[data-library-draggable=true]{touch-action:none}.library-drag-active,.library-drag-active *{user-select:none!important}.studio-tree-row>.studio-tree-main{padding-right:calc(var(--row-menu-size) + 2 * var(--row-menu-inset));transition:padding-right .18s cubic-bezier(.2,.7,.2,1)}.studio-tree-row[data-pinned=true]>.studio-tree-main{padding-right:var(--row-menu-inset)}.studio-tree-pin-slot{display:grid;place-items:center;flex-shrink:0;width:var(--row-menu-size);height:18px}.studio-tree-row>.studio-row-menu{position:absolute;top:50%;right:var(--row-menu-inset);width:var(--row-menu-size);margin:0;transform:translateY(-50%);z-index:1;transition:opacity .12s ease,background .1s ease}.studio-tree-row:is(:hover,:focus-within,:has(>.studio-row-menu[aria-expanded=true]))>.studio-row-menu{opacity:1;pointer-events:auto;transition-delay:40ms,0ms}.studio-tree-row[data-pinned=true]:is(:hover,:focus-within,:has(>.studio-row-menu[aria-expanded=true]))>.studio-tree-main{padding-right:calc(var(--row-menu-size) + 2 * var(--row-menu-inset))}@media(hover:none){.studio-tree-row[data-pinned=true]>.studio-tree-main{padding-right:calc(var(--row-menu-size) + 2 * var(--row-menu-inset))}.studio-tree-row>.studio-row-menu{opacity:1;pointer-events:auto}}@media(prefers-reduced-motion:reduce){.studio-tree-row>.studio-tree-main,.studio-tree-row>.studio-row-menu{transition:none}}.studio-context-menu-control{padding:8px;min-width:0}.studio-context-menu-control-label{display:flex;align-items:center;gap:8px;margin-bottom:8px;font-size:13px;line-height:20px}.studio-context-menu-control-label>svg{color:var(--muted);flex-shrink:0}.library-drag-placeholder{opacity:.24;pointer-events:none;user-select:none}.library-drag-placeholder .studio-row-menu{visibility:hidden}.library-drag-ghost,.studio-page-list.library-drag-ghost{position:fixed;inset:0 auto auto 0;z-index:10000;display:block;margin:0;padding:0;border:0;pointer-events:none;opacity:.78;background:var(--paper, var(--bg));border-radius:7px;box-shadow:0 7px 20px #00000012;will-change:transform}.library-drag-ghost>:is(.studio-tree-row,.studio-page-list-row){width:100%;height:100%;box-sizing:border-box}.library-drag-ghost .studio-row-menu{visibility:hidden}.library-drag-active .studio-page-list-row{touch-action:none}.library-drag-active [data-library-id]{will-change:transform}
|
|
30
|
-
`);var Ii=U(Ne(),1);var cu=rt("sidebar",{"zh-CN":{unlockSidebar:"\u89E3\u9501\u9879\u76EE\u680F\uFF0C\u6253\u5F00\u6587\u6863\u540E\u81EA\u52A8\u6536\u8D77",lockSidebar:"\u9501\u5B9A\u9879\u76EE\u680F",collapseSidebar:"\u6536\u8D77\u9879\u76EE\u680F",expandSidebar:"\u5C55\u5F00\u9879\u76EE\u680F",projectNavigation:"\u9879\u76EE\u5BFC\u822A",closeNavigation:"\u5173\u95ED\u9879\u76EE\u5BFC\u822A",resizeSidebar:"\u8C03\u6574\u9879\u76EE\u680F\u5BBD\u5EA6",widthPixels:"{width} \u50CF\u7D20",showNavigation:"\u5C55\u5F00\u9879\u76EE\u5BFC\u822A",dragHint:"\u62D6\u52A8\u8C03\u6574\u987A\u5E8F\uFF0C\u62D6\u5230\u9879\u76EE\u6216\u6587\u4EF6\u5939\u4E2D\u79FB\u52A8\u9875\u9762",newFolder:"\u65B0\u6587\u4EF6\u5939",untitledProject:"\u672A\u547D\u540D\u9879\u76EE",collapseItem:"\u6536\u8D77{title}",expandItem:"\u5C55\u5F00{title}",pinned:"\u5DF2\u7F6E\u9876",itemActions:"{title}\u7684\u64CD\u4F5C",newProjectIn:"\u5728{name}\u4E2D\u65B0\u5EFA\u9879\u76EE",createProject:"\u65B0\u5EFA\u9879\u76EE",groupActions:"{name}\u7684\u5206\u7EC4\u64CD\u4F5C",projectListActions:"\u9879\u76EE\u5217\u8868\u64CD\u4F5C",noProjects:"\u6682\u65E0\u9879\u76EE",addContent:"\u6DFB\u52A0\u5185\u5BB9",addContentHint:"\u6DFB\u52A0\u6587\u4EF6\u5939\u3001\u9875\u9762\u6216\u767D\u677F",newProject:"\u65B0\u9879\u76EE","section.pinned":"\u7F6E\u9876","section.projects":"\u9879\u76EE","docs.title":"ShowAI \u6587\u6863","docs.welcome":"\u5F00\u59CB\u4F7F\u7528",daysAgo:"{count} \u5929\u524D",hoursAgo:"{count} \u5C0F\u65F6\u524D",minutesAgo:"{count} \u5206\u949F\u524D",justNow:"\u521A\u521A",noMatchingPages:"\u6CA1\u6709\u627E\u5230\u9875\u9762",noRecentPages:"\u6682\u65E0\u6700\u8FD1\u7F16\u8F91\u7684\u9875\u9762",recentPages:"\u6700\u8FD1\u7F16\u8F91\u7684\u9875\u9762","nav.main":"\u4E3B\u8981\u5BFC\u822A","nav.recent":"\u6700\u8FD1","nav.templates":"\u6A21\u677F","nav.components":"\u7EC4\u4EF6","nav.settings":"\u8BBE\u7F6E",tabHistory:"\u6807\u7B7E\u9875\u6D4F\u89C8\u5386\u53F2",back:"\u540E\u9000",forward:"\u524D\u8FDB",workspaceTabs:"\u5DE5\u4F5C\u533A\u6807\u7B7E\u9875",closeTabNamed:"\u5173\u95ED\u6807\u7B7E\u9875 {title}",closeTab:"\u5173\u95ED\u6807\u7B7E\u9875",newTab:"\u65B0\u5EFA\u6807\u7B7E\u9875",newTabShortcut:"\u65B0\u5EFA\u6807\u7B7E\u9875 \xB7 \u2318T / Ctrl+T"},en:{unlockSidebar:"Unlock sidebar (hide it when a document opens)",lockSidebar:"Lock sidebar",collapseSidebar:"Collapse sidebar",expandSidebar:"Expand sidebar",projectNavigation:"Project navigation",closeNavigation:"Close project navigation",resizeSidebar:"Resize sidebar",widthPixels:"{width} pixels",showNavigation:"Show project navigation",dragHint:"Drag to reorder, or drop on a project or folder to move pages",newFolder:"New folder",untitledProject:"Untitled project",collapseItem:"Collapse {title}",expandItem:"Expand {title}",pinned:"Pinned",itemActions:"Actions for {title}",newProjectIn:"New project in {name}",createProject:"New project",groupActions:"Group actions for {name}",projectListActions:"Project list actions",noProjects:"No projects",addContent:"Add content",addContentHint:"Add a folder, page or board",newProject:"New project","section.pinned":"Pinned","section.projects":"Projects","docs.title":"ShowAI Documentation","docs.welcome":"Get started",daysAgo:{one:"{count} day ago",other:"{count} days ago"},hoursAgo:{one:"{count} hour ago",other:"{count} hours ago"},minutesAgo:{one:"{count} minute ago",other:"{count} minutes ago"},justNow:"Just now",noMatchingPages:"No pages found",noRecentPages:"No recently edited pages",recentPages:"Recently edited pages","nav.main":"Main navigation","nav.recent":"Recent","nav.templates":"Templates","nav.components":"Components","nav.settings":"Settings",tabHistory:"Tab history",back:"Back",forward:"Forward",workspaceTabs:"Workspace tabs",closeTabNamed:"Close tab {title}",closeTab:"Close tab",newTab:"New tab",newTabShortcut:"New tab \xB7 \u2318T / Ctrl+T"}});var VD=vt(cu),qT=(0,Ii.createContext)(null),qy=()=>(0,Ii.useContext)(qT);var _t=U(pe(),1);function FT({target:e,active:t=!1,expanded:a=!1,onToggle:n,onOpen:o,onMenu:r}){let i=ue(cu),l=ue(Xa),s=(0,tn.useRef)(null),c=qy(),d=e.title.trim()||(e.kind==="page"?l("untitledPage"):e.kind==="folder"?i("newFolder"):i("untitledProject")),u=e.kind==="page"?Bo:a?t0:Ef,p=g=>{g.key!=="ContextMenu"&&!(g.shiftKey&&g.key==="F10")||(g.preventDefault(),g.stopPropagation(),s.current&&r(e,s.current))};return(0,_t.jsxs)("div",{...c?.row(e,a,n),className:`studio-tree-row${t?" active":""}`,"data-kind":e.kind,"data-library-id":e.id,"data-pinned":e.pinned||void 0,onKeyDown:p,onContextMenu:g=>{g.preventDefault(),g.stopPropagation(),s.current&&r(e,s.current,{x:g.clientX,y:g.clientY})},children:[n?(0,_t.jsx)("button",{type:"button",className:"studio-tree-chevron","aria-label":i(a?"collapseItem":"expandItem",{title:d}),"aria-expanded":a,onClick:g=>{g.stopPropagation(),n()},children:a?(0,_t.jsx)(Ol,{size:13}):(0,_t.jsx)(pn,{size:13})}):(0,_t.jsx)("span",{className:"studio-tree-chevron","aria-hidden":"true"}),(0,_t.jsxs)("button",{type:"button",className:"studio-tree-main","aria-current":t?"page":void 0,title:d,onClick:g=>o(e,g),onAuxClick:g=>{g.button===1&&(g.preventDefault(),o(e,g))},children:[e.kind==="page"||e.icon?(0,_t.jsx)(Kn,{value:e.icon,size:15}):(0,_t.jsx)(u,{size:15,"aria-hidden":"true"}),(0,_t.jsx)("span",{className:"studio-tree-title",children:d}),e.pinned&&(0,_t.jsx)("span",{className:"studio-tree-pin-slot",children:(0,_t.jsx)(i0,{size:11,className:"studio-tree-pin","aria-label":i("pinned"),role:"img"})})]}),(0,_t.jsx)("button",{ref:s,type:"button",className:"studio-row-menu","aria-label":i("itemActions",{title:d}),"aria-haspopup":"menu","aria-expanded":!1,onClick:g=>{g.preventDefault(),g.stopPropagation(),r(e,g.currentTarget)},children:(0,_t.jsx)(e0,{size:15,"aria-hidden":"true"})})]})}var WT=(e,t)=>e===t||e.kind===t.kind&&e.id===t.id&&e.projectId===t.projectId&&e.title===t.title&&e.icon===t.icon&&e.pinned===t.pinned&&e.parentId===t.parentId,JD=(0,tn.memo)(FT,(e,t)=>WT(e.target,t.target)&&e.active===t.active&&e.expanded===t.expanded&&e.onToggle===t.onToggle&&e.onOpen===t.onOpen&&e.onMenu===t.onMenu);function KT({item:e}){return(0,_t.jsxs)("div",{className:"studio-context-menu-control",role:"none",children:[(0,_t.jsxs)("div",{className:"studio-context-menu-control-label",children:[e.icon,(0,_t.jsx)("span",{children:e.label})]}),e.control]})}function Fy(e){return[...e.querySelectorAll('button[role="menuitem"],button[role="menuitemradio"],input[type="range"]')].filter(t=>!t.disabled)}function Ky({anchor:e,portalRoot:t,point:a,label:n,items:o,onClose:r}){let i=(0,tn.useId)(),l=(0,tn.useRef)(null),s=(0,tn.useRef)(r);s.current=r;let c=(0,tn.useRef)(!0),d=(0,tn.useRef)(!1),u=(0,tn.useRef)({value:"",time:0}),[p,g]=(0,tn.useState)(null);(0,tn.useLayoutEffect)(()=>{let x=l.current,f=e.ownerDocument,m=f.defaultView;if(!x||!m||!e.isConnected){s.current();return}c.current=!0,d.current=!1;let v=e.getAttribute("aria-expanded"),T=e.getAttribute("aria-controls");e.setAttribute("aria-expanded","true"),e.setAttribute("aria-controls",i);let w=()=>{if(!e.isConnected){s.current();return}let k=e.getBoundingClientRect(),M=m.innerWidth,O=m.innerHeight;if(k.bottom<0||k.top>O||k.right<0||k.left>M){s.current();return}let C=8,N=a?0:5,z=a?{left:a.x,right:a.x,top:a.y,bottom:a.y}:k,A=Math.max(0,M-C*2),q=Math.min(x.getBoundingClientRect().width,A),P=Math.max(0,O-z.bottom-N-C),Z=Math.max(0,z.top-N-C),F=x.scrollHeight,ee=F>P&&Z>P,j=Math.max(0,Math.min(O-C*2,ee?Z:P)),K=Math.min(F,j),_=z.left;_+q>M-C&&(_=z.right-q),_=Math.max(C,Math.min(_,M-C-q));let $=Math.max(C,Math.min(ee?z.top-N-K:z.bottom+N,O-C-K)),D={left:_,top:$,maxWidth:A,maxHeight:j};g(V=>V&&Object.keys(D).every(B=>V[B]===D[B])?V:D)},E=k=>{let M=k.target;!M||x.contains(M)||e.contains(M)||(c.current=!1,s.current())},L=k=>{let M=k.target;M&&!x.contains(M)&&!e.contains(M)&&(c.current=!1,s.current())},H=k=>{k.target instanceof Node&&x.contains(k.target)||(a?s.current():w())};w(),f.addEventListener("pointerdown",E,!0),f.addEventListener("focusin",L),m.addEventListener("resize",w),m.addEventListener("scroll",H,!0);let S=new ResizeObserver(w);return S.observe(e),S.observe(x),()=>{S.disconnect(),f.removeEventListener("pointerdown",E,!0),f.removeEventListener("focusin",L),m.removeEventListener("resize",w),m.removeEventListener("scroll",H,!0),v===null?e.removeAttribute("aria-expanded"):e.setAttribute("aria-expanded",v),T===null?e.removeAttribute("aria-controls"):e.setAttribute("aria-controls",T),c.current&&e.isConnected&&e.focus({preventScroll:!0})}},[e,a,i]),(0,tn.useLayoutEffect)(()=>{let x=l.current;!p||!x||d.current||(d.current=!0,(Fy(x)[0]??x).focus({preventScroll:!0}))},[p,e,a]);let y=x=>{let f=l.current;if(!f)return;let m=Fy(f),v=e.ownerDocument,T=m.findIndex(w=>w===v.activeElement);if(["ArrowDown","ArrowUp","Home","End"].includes(x.key)){if(x.preventDefault(),x.stopPropagation(),!m.length)return;let w=x.key==="Home"?0:x.key==="End"?m.length-1:T<0?x.key==="ArrowDown"?0:m.length-1:(T+(x.key==="ArrowDown"?1:-1)+m.length)%m.length;m[w].focus();return}if(x.key==="Escape"){x.preventDefault(),x.stopPropagation(),s.current();return}if(x.key==="Tab"){x.preventDefault(),x.stopPropagation();let w=[...v.querySelectorAll('button:not(:disabled),a[href],input:not(:disabled),select:not(:disabled),textarea:not(:disabled),[tabindex],iframe,[contenteditable="true"]')].filter(H=>!f.contains(H)&&H.tabIndex>=0&&H.getClientRects().length>0&&!H.closest('[inert],[aria-hidden="true"]')),E=w.indexOf(e),L=E<0?w[x.shiftKey?w.length-1:0]:w[E+(x.shiftKey?-1:1)];c.current=!1,s.current(),queueMicrotask(()=>{L?.isConnected?L.focus({preventScroll:!0}):e.isConnected&&e.focus({preventScroll:!0})});return}if(x.key.length===1&&x.key!==" "&&!x.ctrlKey&&!x.metaKey&&!x.altKey&&!x.nativeEvent.isComposing){let w=Date.now(),E=x.key.toLocaleLowerCase();u.current={value:w-u.current.time>700?E:u.current.value+E,time:w};let H=[...m.slice(T+1),...m.slice(0,T+1)].find(S=>S.textContent?.trim().toLocaleLowerCase().startsWith(u.current.value));H&&(x.preventDefault(),H.focus())}},b={position:"fixed",left:p?.left??0,top:p?.top??0,maxWidth:p?.maxWidth??"calc(100vw - 16px)",maxHeight:p?.maxHeight??"calc(100vh - 16px)",overflowY:"auto",visibility:p?"visible":"hidden"};return(0,Wy.createPortal)((0,_t.jsx)("div",{id:i,ref:l,role:"menu","aria-label":n,tabIndex:-1,className:"studio-context-menu",style:b,onKeyDown:y,onContextMenu:x=>x.preventDefault(),children:o.map((x,f)=>(0,_t.jsxs)("div",{role:"none",children:[x.separatorBefore&&f>0&&(0,_t.jsx)("div",{role:"separator",className:"studio-context-menu-separator"}),x.control?(0,_t.jsx)(KT,{item:x}):(0,_t.jsxs)("button",{type:"button",role:x.checked===void 0?"menuitem":"menuitemradio","aria-checked":x.checked,tabIndex:-1,className:`studio-context-menu-item${x.danger?" danger":""}`,disabled:x.disabled,onClick:()=>{s.current(),x.onSelect?.()},children:[x.icon&&(0,_t.jsx)("span",{className:"studio-context-menu-icon","aria-hidden":"true",children:x.icon}),(0,_t.jsx)("span",{children:x.label}),x.shortcut&&(0,_t.jsx)("span",{className:"studio-context-menu-shortcut","aria-hidden":"true",children:x.shortcut})]})]},`${f}-${x.label}`))}),t??e.ownerDocument.body)}function Yy(e,t,a){let n=jt(e.content),o=t.filter(r=>n.get(r)?.node.type==="surface"&&n.get(r)?.node.attrs?.kind==="page"&&a[r]);return Object.keys(a).filter(r=>{let i=n.get(r);if(!i||a[r].locked||t.includes(r))return!1;let l=i.node;return l.type==="drawing"||(l.attrs?.nativeInk??l.attrs?.data?.nativeInk)?o.some(s=>n.get(s)?.parent===i.parent&&p0(l,a[r],Hl(a[s]),!1)):!1})}var Jy=U(Gn(),1);var Hn=U(Ne(),1);var YT=vt(tt);function Xy({document:e,geometry:t,containerId:a,world:n,camera:o,onTransform:r,onSelect:i,selected:l}){let[s,c]=(0,Hn.useState)(new Set),d=(0,Hn.useRef)({document:e,onTransform:r,onSelect:i,selected:l});d.current={document:e,onTransform:r,onSelect:i,selected:l};let u=(0,Hn.useMemo)(()=>e?jt(e.content):new Map,[e?.content]),p=l?oc(u,e?.layout,a,l):a,g=S=>!!p&&oc(u,e?.layout,a,S)===p,y=new Set([...l&&s.has(l)?s:new Set(l?[l]:[])].filter(g)),b=(0,Hn.useRef)(y);b.current=y;let x=(0,Hn.useRef)(null),f=()=>{let S=x.current,k=S?.parentElement;if(!S||!k)return;let M=k.getBoundingClientRect(),O=n.current.closest(".page-surface"),C=k.offsetWidth?M.width/k.offsetWidth:o.current.scale*(O.getBoundingClientRect().width/O.clientWidth||1),N=[...b.current].flatMap(q=>{let P=n.current?.querySelector(`[data-surface-id="${CSS.escape(q)}"]`);return P?[(P.querySelector(":scope > .board-object-outline")??P).getBoundingClientRect()]:[]});if(!N.length)return;let z=Math.min(...N.map(q=>q.left)),A=Math.min(...N.map(q=>q.top));Object.assign(S.style,{left:`${(z-M.left)/C}px`,top:`${(A-M.top)/C}px`,width:`${(Math.max(...N.map(q=>q.right))-z)/C}px`,height:`${(Math.max(...N.map(q=>q.bottom))-A)/C}px`})},m=[...y].join(":");(0,Hn.useLayoutEffect)(()=>{if(y.size<2||!r)return;let S=n.current?.querySelector(`[data-surface-id="${CSS.escape([...y][0])}"]`);if(!S?.parentElement)return;let k=e?window.document.createElement("div"):null;if(!k)return;k.className="board-group-outline";let M=[...y].every(N=>{let z=u.get(N)?.node;return z?.type==="drawing"||!!(z?.attrs?.nativeInk??z?.attrs?.data?.nativeInk)});k.dataset.drawingSelection=String(M);let O=[...y].some(N=>n.current?.querySelector(`[data-surface-id="${CSS.escape(N)}"]`)?.dataset.boardFixedHeight==="true"),C=[...y].some(N=>e?.layout?.[N]?.locked);for(let N of C?[]:M?["nw","ne","se","sw"]:O?["nw","n","ne","e","se","s","sw","w"]:["e","w"]){let z=window.document.createElement("button");z.type="button",z.className=`board-resize-handle handle-${N}`,z.dataset.surfaceUi="true",z.dataset.surfaceHandle="true",z.dataset.resizeDirection=N,z.dataset.groupTarget=[...y][0],z.tabIndex=-1,z.setAttribute("aria-label",YT("board.groupHandles",{count:y.size})),k.append(z)}return S.parentElement.append(k),x.current=k,f(),()=>{k.remove(),x.current=null}},[m,e?.layout,r]);let v=(0,Hn.useRef)(null),T=(S,k=!1)=>{let M=k?new Set(b.current):new Set;S&&(k&&M.has(S)?M.delete(S):M.add(S)),b.current=M,c(M),i(M.has(S)?S:[...M].at(-1)??null)},w=(S,k)=>({...S,contentSize:void 0,height:k.dataset.surfaceMounted==="false"&&jo(S)||k.offsetHeight}),E=(S,k)=>{S.style.left=`${k.x}px`,S.style.top=`${k.y}px`,S.style.width=`${k.width}px`,S.dataset.boardFixedHeight==="true"&&(S.style.height=`${k.height}px`),S.style.transform=k.rotation?`rotate(${k.rotation}deg)`:""},L=()=>{let S=v.current;if(!S)return;cancelAnimationFrame(S.raf),S.guides.remove();let k=d.current.document&&(t?.materialize(d.current.document)??d.current.document);for(let M of new Set([...Object.keys(S.frames),...S.affectedArrows])){let O=S.elements.get(M),C=k?.layout?.[M];if(C&&E(O,C),S.arrows.get(M)?.node.attrs?.tool==="arrow"){let N=O.querySelector(".board-drawing path"),z=O.dataset.boardOriginalPath;N&&z!==void 0&&N.setAttribute("d",z),z!==void 0&&O.querySelector(".board-drawing-selection > g > path")?.setAttribute("d",z),delete O.dataset.boardOriginalPath}}v.current=null,t?.endGesture(),f()};(0,Hn.useEffect)(()=>()=>L(),[]);let H=()=>{let S=v.current,k=S?.input;if(!S||!k||!S.moved&&Math.hypot(k.clientX-S.start.x,k.clientY-S.start.y)<3)return;if(S.moved=!0,!S.layer.isConnected){L();return}let M=S.layer.getBoundingClientRect(),O={x:0,y:0,scale:S.scale},C=ip(S.start,S.origin,O),N=ip({x:k.clientX,y:k.clientY},{x:M.left,y:M.top},O),z=N.x-C.x,A=N.y-C.y,q=S.kind.startsWith("resize"),P=S.kind==="resize"?"se":S.kind.slice(7),Z=Object.keys(S.frames),F=Z.length===1,ee=F?S.arrows.get(Z[0]).node:void 0,j=F?{width:ee?.type==="drawing"?1:120,height:ee?.type==="surface"?180:1}:q?n6(S.bounds,Z.map(ye=>({frame:S.measured[ye],minWidth:S.arrows.get(ye).node.type==="drawing"?1:120,minHeight:S.arrows.get(ye).node.type==="surface"?180:1,resizeHeight:S.elements.get(ye)?.dataset.boardFixedHeight==="true"}))):{width:1,height:1},K=F?S.measured[Z[0]]:S.bounds,_=q&&(k.shiftKey||!F&&Z.some(ye=>!!S.frames[ye].rotation)),$=q&&k.altKey,D=!q&&S.kind==="move"&&k.shiftKey?Math.abs(z)>=Math.abs(A)?"x":"y":null,V=q?t6(K,$?{x:z*2,y:A*2}:{x:z,y:A},P,j,_):{...S.bounds,x:S.bounds.x+(D==="y"?0:z),y:S.bounds.y+(D==="x"?0:A)};$&&(V={...V,x:K.x+(K.width-V.width)/2,y:K.y+((K.height??0)-(V.height??0))/2});let B=k.metaKey||k.ctrlKey||$||S.kind==="rotate"?{frame:V,guides:[]}:q?a6(V,S.snap,S.scale,P,j,_):e6(V,S.snap,S.scale);if(V=B.frame,S.kind==="move"){let ye=sp(Object.values(S.frames),{x:V.x-S.bounds.x,y:V.y-S.bounds.y}),_e=S.bounds.x+ye.x,Oe=S.bounds.y+ye.y;B.guides=B.guides.filter(Xe=>Xe.axis==="x"?Math.abs(_e-V.x)<.001:Math.abs(Oe-V.y)<.001),V={...V,x:D==="y"?S.bounds.x:_e,y:D==="x"?S.bounds.y:Oe}}S.guides.replaceChildren();for(let ye of B.guides){let _e=window.document.createElementNS("http://www.w3.org/2000/svg","line"),Oe=ye.axis==="x";_e.setAttribute("x1",String(Oe?ye.value:ye.from)),_e.setAttribute("x2",String(Oe?ye.value:ye.to)),_e.setAttribute("y1",String(Oe?ye.from:ye.value)),_e.setAttribute("y2",String(Oe?ye.to:ye.value)),_e.setAttribute("vector-effect","non-scaling-stroke"),ye.kind==="gap"&&_e.setAttribute("stroke-dasharray","4 3"),S.guides.append(_e)}let de=S.arrows;for(let[ye,_e]of Object.entries(S.frames)){let Oe;if(S.kind==="rotate"){let Xe=S.measured[ye],yt=M.left+(Xe.x+Xe.width/2)*S.scale,Y=M.top+(Xe.y+(Xe.height??0)/2)*S.scale,ae=Math.atan2(k.clientY-Y,k.clientX-yt)-Math.atan2(S.start.y-Y,S.start.x-yt),xe=(_e.rotation??0)+ae*180/Math.PI;k.shiftKey&&(xe=Math.round(xe/15)*15),Oe=cp(de.get(ye).node,_e,{...S.measured[ye],rotation:(xe+540)%360-180})}else if(q){let Xe=de.get(ye).node,yt=Xe.type==="drawing",Y=V.width/S.bounds.width,ae=(V.height??1)/(S.bounds.height||1);Oe={..._e,x:V.x+(S.measured[ye].x-S.bounds.x)*Y,y:V.y+(S.measured[ye].y-S.bounds.y)*ae,width:Math.max(yt?1:120,Math.min(1e4,S.measured[ye].width*Y)),...S.elements.get(ye)?.dataset.boardFixedHeight==="true"?{height:Math.max(Xe.type==="surface"?180:1,Math.min(1e6,(S.measured[ye].height??1)*ae))}:{}},F&&(Oe={...V},S.elements.get(ye)?.dataset.boardFixedHeight!=="true"&&(Oe.height=_e.height,Oe.y=_e.y)),yt&&(Oe=cp(Xe,_e,Oe))}else Oe={..._e,x:_e.x+V.x-S.bounds.x,y:_e.y+V.y-S.bounds.y};S.next[ye]=Oe,E(S.elements.get(ye),Oe)}if(f(),!S.affectedArrows.length)return;let he={...S.source.layout,...S.next};for(let ye of S.affectedArrows){let _e=de.get(ye),Oe=S.elements.get(ye),Xe=Oe.querySelector(".board-drawing"),yt=Xe?.querySelector("path");if(!Xe||!yt)continue;Oe.dataset.boardOriginalPath===void 0&&(Oe.dataset.boardOriginalPath=yt.getAttribute("d")??"");let[Y,ae]=M1(_e.node,he[ye],de,he).map(Ae=>({x:(Ae.x-he[ye].x)*_e.node.attrs.extent[0]/he[ye].width,y:(Ae.y-he[ye].y)*_e.node.attrs.extent[1]/(he[ye].height??1)})),xe=vc(Y,ae,_e.node.attrs.strokeWidth);yt.setAttribute("d",xe),Oe.querySelector(".board-drawing-selection > g > path")?.setAttribute("d",xe)}};return{ids:y,lassoHit(S){let k=n.current,M=d.current.document;if(!k||!M)return[];let O=[];for(let C of k.querySelectorAll(".surface-object[data-surface-id]")){if(C.closest(".page-surface")!==k.closest(".page-surface"))continue;let N=C.dataset.surfaceId,z=u.get(N),A=M.layout?.[N];if(!z||!A||!oc(u,M.layout,a,N))continue;let q=C.parentElement,P=q.getBoundingClientRect(),Z=k.closest(".page-surface"),F=Z.getBoundingClientRect().width/Z.clientWidth||1,ee=P.width/q.offsetWidth||o.current.scale*F,j=S.map(K=>({x:(K.x-P.left)/ee,y:(K.y-P.top)/ee}));o6(z.node,w(A,C),j,1/ee)&&O.push(N)}return O},selectionHit(S,k){if(!b.current.size)return null;let M=[...b.current].flatMap(A=>{let q=n.current?.querySelector(`[data-surface-id="${CSS.escape(A)}"]`);return q?[(q.querySelector(":scope > .board-object-outline")??q).getBoundingClientRect()]:[]});if(!M.length)return null;let O=Math.min(...M.map(A=>A.left)),C=Math.max(...M.map(A=>A.right)),N=Math.min(...M.map(A=>A.top)),z=Math.max(...M.map(A=>A.bottom));return S>=O-8&&S<=C+8&&k>=N-8&&k<=z+8?[...b.current][0]:null},edgeHit(S,k){let M=this.hitTest(S,k,!1);if(!M)return null;if(M.node.type==="drawing")return M;let O=M.element.getBoundingClientRect();return Math.min(Math.abs(S-O.left),Math.abs(S-O.right),Math.abs(k-O.top),Math.abs(k-O.bottom))<=10?M:null},drawingSnapIndex(){let S=d.current.document,k=[];for(let M of n.current?.children??[]){if(!(M instanceof HTMLElement))continue;let O=M.dataset.surfaceId,C=O&&S?.layout?.[O],N=O&&u.get(O)?.node;O&&C&&N&&N.attrs?.tool!=="arrow"&&k.push({id:O,frame:u0(N,w(C,M))})}return lp(k)},createHitTest(S=8,k="paint"){let M=n.current,O=d.current.document;if(!M||!O)return()=>null;let C=new Map,N=[],z=M.closest(".page-surface").getBoundingClientRect();for(let A of M.querySelectorAll(".surface-object[data-surface-id]")){if(A.dataset.erasing==="true"||A.closest(".page-surface")!==M.closest(".page-surface"))continue;let q=A.dataset.surfaceId,P=u.get(q),Z=O.layout?.[q];if(!P||!Z||!oc(u,O.layout,a,q))continue;let F=A.parentElement;if(!C.has(F)){let j=F.getBoundingClientRect();C.set(F,{left:j.left,top:j.top,scale:j.width/F.offsetWidth||o.current.scale})}let ee=C.get(F);N.push({id:q,node:P.node,element:A,frame:w(Z,A),box:ee,labelRect:P.node.type==="drawing"&&P.node.attrs?.tool==="arrow"?A.querySelector(".board-drawing-label")?.getBoundingClientRect():void 0,tolerance:Math.max(S/ee.scale,P.node.type==="drawing"?P.node.attrs.strokeWidth/2*Math.max(Z.width/P.node.attrs.extent[0],jo(Z)/P.node.attrs.extent[1]):0),scale:ee.scale,viewport:{x:(z.left-ee.left)/ee.scale,y:(z.top-ee.top)/ee.scale,width:z.width/ee.scale,height:z.height/ee.scale}})}return(A,q,P=!0)=>{let Z=N.filter(j=>j.element.isConnected&&j.element.dataset.erasing!=="true").map(j=>({...j,point:{x:(A-j.box.left)/j.box.scale,y:(q-j.box.top)/j.box.scale}})),F=k==="selection"?r6(Z):m0(Z,P),ee;for(let j of Z){if(j.node.type!=="drawing"||j.node.attrs?.tool!=="arrow")continue;let K=j.labelRect;K&&A>=K.left&&A<=K.right&&q>=K.top&&q<=K.bottom&&(ee=j)}return!ee||F&&F.element!==ee.element&&ee.element.compareDocumentPosition(F.element)&Node.DOCUMENT_POSITION_FOLLOWING?F:ee}},selectionTarget(S,k){return this.createHitTest(8,"selection")(S,k)},hitTest(S,k,M=!0,O=8){return this.createHitTest(O)(S,k,M)},select:T,selectIds(S){let k=new Set(S);c(k),b.current=k,i([...k].at(-1)??null)},selectAll(){let S=d.current.document,k=S&&jt(S.content).get(p??a)?.node,M=new Set((k?.content??[]).map(O=>O.attrs?.id).filter(O=>!!S?.layout?.[O]&&!S.layout[O].locked));c(M),b.current=M,i([...M].at(-1)??null)},nudge(S,k){let M=d.current.document;if(!M||!d.current.onTransform)return;let O=Object.fromEntries([...b.current].filter(N=>M.layout?.[N]&&!M.layout[N].locked).map(N=>[N,M.layout[N]])),C=sp(Object.values(O),{x:S,y:k});!Object.keys(O).length||!C.x&&!C.y||d.current.onTransform(Object.fromEntries(Object.entries(O).map(([N,z])=>[N,{...z,x:z.x+C.x,y:z.y+C.y}])),`nudge:${Object.keys(O).sort().join(",")}`)},measured(S){let k=d.current.document,M={};for(let O of S){let C=n.current?.querySelector(`[data-surface-id="${CSS.escape(O)}"]`),N=k?.layout?.[O],z=u.get(O)?.node;C&&N&&z&&(M[O]=Hl(u0(z,w(N,C))))}return M},start(S,k,M){let O=d.current.document,C=n.current;if(!O||!C||!d.current.onTransform)return!1;let N=t?.materialize(O)??O;L();let z=jt(N.content);if(!z.get(S)?.parent||!oc(z,N.layout,a,S))return!1;let q=C.querySelector(`[data-surface-id="${CSS.escape(S)}"]`),P=q?.parentElement;if(!P||q.closest(".page-surface")!==C.closest(".page-surface")||N.layout?.[S]?.locked)return!1;let Z=k==="rotate"?new Set([S]):b.current.has(S)?b.current:new Set([S]);(!Z.has(d.current.selected)||Z.size!==b.current.size)&&(c(Z),b.current=Z,i(S));let F=new Map;for(let D of P.children)D instanceof HTMLElement&&D.dataset.surfaceId&&F.set(D.dataset.surfaceId,D);let ee={},j={};for(let[D,V]of F){let B=N.layout?.[D];B&&(j[D]=u0(z.get(D).node,w(B,V)),Z.has(D)&&!B.locked&&(ee[D]=B))}if(k==="move")for(let D of Yy(N,Object.keys(ee),j))ee[D]=N.layout[D];if(!ee[S])return!1;let K=jl(Object.keys(ee).flatMap(D=>{let V=Hl(j[D]);return[{x:V.x,y:V.y},{x:V.x+V.width,y:V.y+V.height}]})),_=window.document.createElementNS("http://www.w3.org/2000/svg","svg");_.classList.add("board-snap-guides"),_.setAttribute("aria-hidden","true"),P.append(_),t?.beginGesture();let $=P.getBoundingClientRect();return v.current={source:N,origin:{x:$.left,y:$.top},layer:P,original:O,id:S,kind:k,start:{x:M.clientX,y:M.clientY},scale:F.get(S).getBoundingClientRect().width/Hl(w(ee[S],F.get(S))).width||o.current.scale,frames:ee,measured:j,next:{...ee},elements:F,bounds:K,guides:_,arrows:z,affectedArrows:[...z].filter(([D,V])=>V.node.type==="drawing"&&V.node.attrs?.tool==="arrow"&&F.has(D)&&Object.values(V.node.attrs.bindings??{}).some(B=>ee[B.targetId])).map(([D])=>D),raf:0,input:null,moved:!1,snap:lp(Object.entries(j).filter(([D])=>!ee[D]&&z.get(D)?.node.attrs?.tool!=="arrow").map(([D,V])=>({id:D,frame:V})))},!0},update(S){let k=v.current;k&&(k.input=S,k.raf||(k.raf=requestAnimationFrame(()=>{k.raf=0,H()})))},finish(){let S=v.current;if(!S)return;H();let k=d.current.document,M=Dy(S.original,k,Object.keys(S.frames)),O=Object.keys(S.frames).some(N=>JSON.stringify(S.next[N])!==JSON.stringify(S.frames[N])),C=S.next;(0,Jy.flushSync)(()=>{L(),M&&O&&d.current.onTransform?.(C)})},cancel:L,marquee(S,k,M,O=!1){let C=k?new Set(M??b.current):new Set;for(let N of n.current?.children??[]){if(!(N instanceof HTMLElement))continue;let z=N.dataset.surfaceId,A=z&&d.current.document?.layout?.[z];z&&A&&!A.locked&&p0(u.get(z).node,w(A,N),S,O)&&C.add(z)}C.size===b.current.size&&[...C].every(N=>b.current.has(N))||(c(C),b.current=C,i([...C].at(-1)??null))}}}var rr=U(Ne(),1);function Qy(e){let t=[],a=n=>{n.type!=="surface"&&(ur(n)?t.push(n):n.content?.forEach(a))};return e.content?.forEach(a),t}function du(e){let t=new Map,a=r=>{let i=t.get(r);return i||(i={style:getComputedStyle(r),rect:r.getBoundingClientRect()},t.set(r,i)),i},n=r=>/^(auto|scroll|hidden|clip)$/.test(r),o=[];for(let r of e){let{style:i}=a(r);if(i.pointerEvents==="none"||i.visibility!=="visible")continue;let l=r.closest(":popover-open,:modal");for(let s of r.getClientRects()){let c=Math.max(0,s.left),d=Math.max(0,s.top),u=Math.min(innerWidth,s.right),p=Math.min(innerHeight,s.bottom);for(let g=r===l?null:r.parentElement;g;g=g.parentElement){let y=a(g);if(n(y.style.overflowX)&&(c=Math.max(c,y.rect.left),u=Math.min(u,y.rect.right)),n(y.style.overflowY)&&(d=Math.max(d,y.rect.top),p=Math.min(p,y.rect.bottom)),u<=c||p<=d||g===l)break}u>c&&p>d&&o.push({x:c,y:d,width:u-c,height:p-d})}}return o}function Mo(e,t){let a=typeof window>"u"?void 0:window.__showaiNativePerf;if(typeof a!="function")return t();let n=performance.now();try{return t()}finally{try{a(e,performance.now()-n)}catch{}}}var Io=U(Ne(),1);function U1(e,t,a){let n=new DOMMatrix;for(let r=e;r;r=r.parentElement){let i=getComputedStyle(r).transform;if(i==="none")continue;let l=new DOMMatrix(i);n=new DOMMatrix([l.a,l.b,l.c,l.d,0,0]).multiply(n)}let o=e.getBoundingClientRect();return n.e=o.left-Math.min(0,n.a*t,n.c*a,n.a*t+n.c*a),n.f=o.top-Math.min(0,n.b*t,n.d*a,n.b*t+n.d*a),n}var uu=e=>[e.a,e.b,e.c,e.d,e.e,e.f].map(t=>Math.round(t*1e6)/1e6);function ev(e,t,a){return Mo("board.measureNativeBoard",()=>JT(e,t,a))}function JT(e,t,a){let n=U1(t,t.offsetWidth,t.offsetHeight).inverse(),o=[],r=new Map,i=l=>{l.attrs?.id&&r.set(l.attrs.id,l),l.content?.forEach(i)};a&&i(a.content);for(let l of t.querySelectorAll(".surface-object[data-surface-id]")){if(l.closest(".page-surface")!==e)continue;let s=getComputedStyle(l),c=E=>{let L=parseFloat(s[E]);return s.boxSizing!=="border-box"&&(L+=E==="width"?parseFloat(s.paddingLeft)+parseFloat(s.paddingRight)+parseFloat(s.borderLeftWidth)+parseFloat(s.borderRightWidth):parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth)),L},d=c("width"),u=c("height");if(!(d>0&&u>0))throw new Error("Native object has no committed layout: "+l.dataset.surfaceId);let g=[...l.querySelectorAll("svg[data-native-ink],svg.board-drawing")].find(E=>E.closest("[data-surface-id]")===l)?.viewBox.baseVal,y=l.dataset.surfaceId,b=r.get(y),x=b?.attrs?.inkArchiveGroup?.extent??b?.attrs?.extent??b?.attrs?.nativeInk?.extent??b?.attrs?.data?.nativeInk?.extent,f=Array.isArray(x)&&x.length===2?x:g&&g.width>0&&g.height>0?[g.width,g.height]:[d,u],m=a?.layout?.[y],v=m?.height&&l.parentElement===t,T=v?new DOMMatrix(Kf({...m,height:m.height},f)):n.multiply(U1(l,d,u)).scale(d/f[0],u/f[1]);g&&!v&&T.translateSelf(-g.x,-g.y);let w=[];for(let E=l.parentElement;E&&E!==t;E=E.parentElement){let L=getComputedStyle(E);if(![L.overflowX,L.overflowY].some(S=>S==="hidden"||S==="clip"||S==="auto"||S==="scroll"))continue;let H=E.closest("[data-surface-id]");w.push({ownerId:H?.dataset.surfaceId,matrix:uu(n.multiply(U1(E,E.offsetWidth,E.offsetHeight))),rect:[E.clientLeft,E.clientTop,E.clientWidth,E.clientHeight]})}o.push({id:l.dataset.surfaceId,size:f,cssSize:[d,u],matrix:uu(T),clips:w})}return o}function tv(e){let t=(0,Io.useRef)(e);t.current=e;let[a,n]=(0,Io.useState)(null),o=(0,Io.useRef)(null),r=(0,Io.useRef)(0),i=(0,Io.useRef)("pen");(e.tool==="pen"||e.tool==="highlighter")&&(i.current=e.tool);let l=e.enabled&&typeof window<"u"&&window.showai?.inlineInk?.nativeScene===!0;return(0,Io.useEffect)(()=>{o.current?.()}),(0,Io.useEffect)(()=>{let s=window.showai?.inlineInk;if(!(!l||!s||!e.document))return s.onCommand(c=>{let d=t.current;if(!(c.pageId!==d.document?.id||c.boardId!==d.boardId)){if(c.error)throw new Error(c.error);if(c.clearSelection&&d.onClearSelection(),c.selection&&d.onSelection?.(c.selection),c.layouts&&d.onLayout?.(c.layouts),c.activate&&d.onActivate?.(c.activate),c.camera){r.current=c.cameraVersion??r.current;let u=window.showaiApplyingNativeCamera;window.showaiApplyingNativeCamera=!0;try{d.onCamera(c.camera,!0)}finally{window.showaiApplyingNativeCamera=u}}if(c.primitive){let u=c.primitive;if(!["rectangle","ellipse","arrow","region"].includes(u.tool))throw new Error("Unsupported native primitive");let p=lu(u.tool,{color:d.color,fillColor:d.fillColor??"none",strokeWidth:d.width},{origin:u.start,release:u.end,points:[u.start,u.end],moved:Math.hypot(u.end.x-u.start.x,u.end.y-u.start.y)*d.camera.current.scale>=3,scale:d.camera.current.scale});p.node.attrs.id=u.id,d.onDrawing?.(p.node,p.frame)}c.tool&&d.onTool(c.tool==="toggleEraser"?d.tool==="eraser"?i.current:"eraser":c.tool==="previous"?i.current:c.tool)}})},[l,e.document?.id,e.boardId]),(0,Io.useEffect)(()=>{let s=window.showai?.inlineInk,c=t.current,d=c.root.current,u=c.world.current;if(!l||!s||!d||!u||!c.document)return;let p=crypto.randomUUID(),g=!0,y=!1,b=!1,x=0,f="",m,v,T="",w,E,L=()=>{b=!0,g&&!y&&!x&&(x=requestAnimationFrame(()=>{x=0,H()}))},H=async()=>{b=!1;let C=t.current,N=C.document;if(!g||!N||Mo("board.visibility",()=>!d.getClientRects().length||document.visibilityState==="hidden"))return;let z=Mo("board.surfaceSize",()=>d.clientWidth+":"+d.clientHeight);(v!==N||T!==z)&&(w=ev(d,u,N),v=N,T=z);let A=Mo("board.inkUIRegions",()=>du(document.querySelectorAll("[data-surface-ui],.surface-toolbar,.studio-context-menu,.studio-modal-shade,.container-inspector,.studio-sidebar-shell:not([data-sidebar-mode=hidden]) .studio-sidebar,.studio-mobile-sidebar-edge,.studio-mobile-sidebar-scrim,.studio-mobile-navigation-tools"))),q=Mo("board.surfaceStyle",()=>getComputedStyle(d)),P=Mo("board.packet",()=>({token:p,pageId:N.id,boardId:C.boardId,nativeScene:!0,tool:C.tool??"select",color:C.color,fillColor:C.fillColor??"none",width:C.width,pressure:C.pressure,ruler:C.ruler,dark:document.documentElement.dataset.theme==="dark",widthPx:d.clientWidth,heightPx:d.clientHeight,viewport:Mo("board.viewportMatrix",()=>uu(U1(d,d.offsetWidth,d.offsetHeight))),camera:{...C.camera.current},cameraVersion:r.current,selection:C.selection?.()??[],holes:A,grid:d.classList.contains("has-board-grid"),background:Mo("board.backgroundColor",()=>q.backgroundColor)})),Z=Mo("board.packetKey",()=>JSON.stringify(P));if(!(Z===f&&N===m&&w===E)){y=!0;try{d.dataset.nativeInkToken=p;let F=await s.frame({...P,...w!==E?{objects:w}:{},document:N});if(!g||F===!1)return;f=Z,m=N,E=w,d.dataset.nativeBoardActive="true",n(ee=>ee?.token===p?ee:{pageId:N.id,boardId:C.boardId,token:p})}catch(F){throw d.dispatchEvent(new CustomEvent("showai:ink-error",{bubbles:!0,detail:String(F)})),F}finally{y=!1,b&&L()}}};o.current=L;let S=new MutationObserver(C=>{C.some(N=>N.target!==u&&u.contains(N.target))&&(v=void 0),C.some(N=>N.target!==u&&N.attributeName!=="data-native-board-active")&&L()});S.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class","hidden","open","data-sidebar-mode","data-mobile-sidebar","data-theme","data-native-orientation","data-dragging"]});let k=new ResizeObserver(()=>{T="",L()});k.observe(d);let M=()=>{window.showaiApplyingNativeCamera||(r.current++,L())},O=()=>{m=void 0,v=void 0,f="",L()};return d.addEventListener("showai:viewport-change",M),d.addEventListener("showai:ink-refresh",O),window.addEventListener("resize",L),document.addEventListener("scroll",L,!0),document.addEventListener("visibilitychange",L),L(),()=>{g=!1,n(C=>C?.token===p?null:C),o.current===L&&(o.current=null),cancelAnimationFrame(x),S.disconnect(),k.disconnect(),d.removeEventListener("showai:viewport-change",M),d.removeEventListener("showai:ink-refresh",O),window.removeEventListener("resize",L),document.removeEventListener("scroll",L,!0),document.removeEventListener("visibilitychange",L),s.hide(c.document.id,c.boardId,p).finally(()=>{d.dataset.nativeInkToken===p&&(delete d.dataset.nativeBoardActive,delete d.dataset.nativeInkToken)})}},[l,e.document?.id,e.boardId,e.root,e.world]),l&&!!a&&a.pageId===e.document?.id&&a.boardId===e.boardId}function pu(e,t,a){let n=new DOMMatrix;for(let r=e;r;r=r.parentElement){let i=getComputedStyle(r).transform;if(i==="none")continue;let l=new DOMMatrix(i);n=new DOMMatrix([l.a,l.b,l.c,l.d,0,0]).multiply(n)}let o=e.getBoundingClientRect();return n.e=o.left-Math.min(0,n.a*t,n.c*a,n.a*t+n.c*a),n.f=o.top-Math.min(0,n.b*t,n.d*a,n.b*t+n.d*a),n}function XT(e){let t=getComputedStyle(e),a=e.viewBox.baseVal,n=parseFloat(t.width),o=parseFloat(t.height);if(n>0&&o>0&&a.width>0&&a.height>0)return pu(e,n,o).scale(n/a.width,o/a.height).translate(-a.x,-a.y)}var a5=e=>[e.a,e.b,e.c,e.d,e.e,e.f].map(t=>Math.round(t*1e6)/1e6);function av({root:e,world:t,camera:a,document:n,boardId:o,tool:r,color:i,width:l,pressure:s,ruler:c,enabled:d,onCamera:u,onTool:p,onShapeGesture:g,onClearSelection:y,selection:b,onSelection:x,onLayout:f,onDrawing:m,onActivate:v,fillColor:T}){let w=tv({root:e,world:t,camera:a,document:n,boardId:o,tool:r,color:i,width:l,pressure:s,ruler:c,enabled:d,onCamera:u,onTool:p,onClearSelection:y,selection:b,onSelection:x,onLayout:f,onDrawing:m,onActivate:v,fillColor:T}),E=d&&(typeof window>"u"||window.showai?.inlineInk?.nativeScene!==!0),L=(0,rr.useRef)({source:n,color:i,width:l,pressure:s,ruler:c,onCamera:u,onTool:p,onShapeGesture:g,onClearSelection:y,tool:r}),H=(0,rr.useRef)(0),S=(0,rr.useRef)("pen"),k=(0,rr.useRef)(null),M=(0,rr.useRef)(!1),O=r==="pen"||r==="highlighter"||r==="eraser";return(r==="pen"||r==="highlighter")&&(S.current=r),L.current={source:n,color:i,width:l,pressure:s,ruler:c,onCamera:u,onTool:p,onShapeGesture:g,onClearSelection:y,tool:r},(0,rr.useEffect)(()=>{let C=window.showai?.inlineInk;if(!(!C||!E||!n))return C.onCommand(N=>{N.pageId!==n.id||N.boardId!==o||(N.clearSelection&&L.current.onClearSelection(),N.shapeGesture&&L.current.onShapeGesture(N.shapeGesture),N.camera&&(M.current=!!N.navigating,H.current=N.cameraVersion??H.current,L.current.onCamera(N.camera,!N.navigating),N.navigating||k.current?.()),N.tool&&L.current.onTool(N.tool==="toggleEraser"?L.current.tool==="eraser"?S.current:"eraser":N.tool==="previous"?S.current:N.tool))})},[E,n?.id,o]),(0,rr.useEffect)(()=>{k.current?.()},[n,i,l,s,c,r]),(0,rr.useEffect)(()=>{let C=window.showai?.inlineInk;if(!C||!E||!n||!O||!e.current||!t.current)return;let N=crypto.randomUUID(),z=e.current,A=t.current,q=!0,P=!1,Z=!1,F="",ee,j=0,K,_="",$={},D,V=!1,B=0,de=()=>{V=!0,!(!q||Z||j||P)&&(j=requestAnimationFrame(()=>{j=0,ye()}))};k.current=de;let he=()=>{F="",ee=void 0,D=void 0,de()};z.addEventListener("showai:ink-refresh",he);let ye=async()=>{if(!q||Z||(V=!1,P||!z.getClientRects().length||document.visibilityState==="hidden"))return;let ae=L.current.source;if(!ae)return;let xe=pu(z,z.offsetWidth,z.offsetHeight),Ae=pu(A,A.offsetWidth,A.offsetHeight),Ue=z.clientWidth+":"+z.clientHeight;if(K!==ae||_!==Ue){let ie=Ae.inverse(),fe={},Me=Ke(ae,o)?.node,Re=new Map([...A.querySelectorAll("[data-native-ink]")].map(Ce=>[Ce.closest("[data-surface-id]")?.dataset.surfaceId,Ce]));for(let Ce of Qy(Me??{content:[]})){let ge=Re.get(Ce.attrs.id),mt=ge&&XT(ge);if(!mt)return;let Pe=ae.layout?.[Ce.attrs.id],oe=ge.closest(".surface-object");if(Pe?.height&&oe?.parentElement===A){let ne=Ce.attrs.extent??Ce.attrs.nativeInk?.extent??Ce.attrs.data?.nativeInk?.extent,G=(Pe.rotation??0)*Math.PI/180,Ve=Math.cos(G),Dt=Math.sin(G),Sa=Pe.width,ia=Pe.height;fe[Ce.attrs.id]=[Ve*Sa/ne[0],Dt*Sa/ne[0],-Dt*ia/ne[1],Ve*ia/ne[1],Pe.x+Sa/2-Ve*Sa/2+Dt*ia/2,Pe.y+ia/2-Dt*Sa/2-Ve*ia/2]}else fe[Ce.attrs.id]=a5(ie.multiply(mt))}$=fe,K=ae,_=Ue}let Se=du(document.querySelectorAll("[data-surface-ui],.surface-toolbar,.studio-context-menu,.studio-modal-shade,.container-inspector,.studio-sidebar-shell:not([data-sidebar-mode=hidden]) .studio-sidebar,.studio-mobile-sidebar-edge,.studio-mobile-sidebar-scrim,.studio-mobile-navigation-tools")),da={token:N,pageId:ae.id,boardId:o,tool:L.current.tool,color:L.current.color,width:L.current.width,pressure:L.current.pressure,ruler:L.current.ruler,dark:document.documentElement.dataset.theme==="dark",widthPx:z.clientWidth,heightPx:z.clientHeight,viewport:a5(xe),camera:{...a.current},cameraVersion:H.current,holes:Se,shapes:[...A.querySelectorAll('[data-board-shape="true"]')].filter(ie=>ie.closest(".page-surface")===z&&ie.getClientRects().length).map(ie=>{let fe=ie.getBoundingClientRect();return{id:ie.dataset.surfaceId,x:fe.x-8,y:fe.y-8,width:fe.width+16,height:fe.height+16}})},Oa=JSON.stringify(da);if(Oa===F&&ae===ee){B&&de();return}P=!0;try{if(z.dataset.nativeInkToken!==N&&(z.dataset.nativeInkToken=N),await C.frame({...da,...D!==$?{poses:$}:{},document:ae})===!1)return;F=Oa,ee=ae,D=$,q&&(z.dataset.nativeInkToken!==N&&(z.dataset.nativeInkToken=N),z.dataset.nativeInkActive!=="true"&&(z.dataset.nativeInkActive="true"))}catch(ie){throw Z=!0,ie}finally{P=!1,(V||B)&&de()}},_e=new MutationObserver(ae=>{ae.some(xe=>!(M.current&&(xe.target===A||xe.target===z||xe.target instanceof Element&&xe.target.classList.contains("surface-grid"))&&xe.attributeName==="style"))&&de()});_e.observe(document.documentElement,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["style","class","hidden","open","data-sidebar-mode","data-mobile-sidebar","data-theme","data-native-orientation","data-dragging"]});let Oe=new ResizeObserver(de);Oe.observe(z);let Xe=()=>{if(!M.current){if(H.current++,C.viewport&&z.dataset.nativeInkActive==="true"){let ae=pu(z,z.clientWidth,z.clientHeight);C.viewport({token:N,pageId:n.id,boardId:o,widthPx:z.clientWidth,heightPx:z.clientHeight,viewport:a5(ae),camera:{...a.current},cameraVersion:H.current}).catch(xe=>{Z=!0,console.error("Native ink viewport:",xe),z.dispatchEvent(new CustomEvent("showai:ink-error",{bubbles:!0,detail:String(xe)}))})}de()}},yt=ae=>{ae.target instanceof Element&&!A.contains(ae.target)&&(B++,de())},Y=ae=>{ae.target instanceof Element&&!A.contains(ae.target)&&(B=Math.max(0,B-1),de())};return z.addEventListener("showai:viewport-change",Xe),document.addEventListener("visibilitychange",de),document.addEventListener("transitionrun",yt,!0),document.addEventListener("transitionend",Y,!0),document.addEventListener("transitioncancel",Y,!0),document.addEventListener("scroll",de,!0),window.addEventListener("resize",de),de(),()=>{q=!1,z.removeEventListener("showai:ink-refresh",he),k.current===de&&(k.current=null),cancelAnimationFrame(j),_e.disconnect(),Oe.disconnect(),z.removeEventListener("showai:viewport-change",Xe),document.removeEventListener("visibilitychange",de),document.removeEventListener("transitionrun",yt,!0),document.removeEventListener("transitionend",Y,!0),document.removeEventListener("transitioncancel",Y,!0),document.removeEventListener("scroll",de,!0),window.removeEventListener("resize",de),C.hide(n.id,o,N).finally(()=>{z.dataset.nativeInkToken===N&&(delete z.dataset.nativeInkActive,delete z.dataset.nativeInkToken)})}},[E,n?.id,o,O,e,t,a]),w}var ir=U(Ne(),1),nv=U(Gn(),1);var V1=U(pe(),1);function ov({tool:e,size:t,board:a,onDelete:n,onExit:o}){let r=ue(tt),[i,l]=(0,ir.useState)([]),s=(0,ir.useRef)(null),c=(0,ir.useRef)(null),d=(0,ir.useRef)(0),u=w=>{c.current=w,!d.current&&(d.current=requestAnimationFrame(()=>{d.current=0;let E=s.current,L=c.current;if(!E)return;let H=L?"":"none";if(E.style.display!==H&&(E.style.display=H),L){let S=g(L);E.setAttribute("cx",String(S.x)),E.setAttribute("cy",String(S.y))}}))},p=(0,ir.useRef)(null),g=w=>{let E=p.current?.getScreenCTM();return E?new DOMPoint(w.x,w.y).matrixTransform(E.inverse()):w},y=(0,ir.useRef)(null),b=w=>w.type==="drawing"||!!(w.attrs?.nativeInk??w.attrs?.data?.nativeInk),x=w=>{for(let E of w.hidden)delete E.dataset.erasing},f=()=>{let w=y.current;y.current=null,w&&x(w),l([]),w&&p.current?.hasPointerCapture(w.id)&&p.current.releasePointerCapture(w.id)};(0,ir.useEffect)(()=>{let w=p.current?.closest(".page-surface");return w?.addEventListener("showai-board-pinch",f),w?.addEventListener("showai:viewport-change",f),window.addEventListener("blur",f),()=>{cancelAnimationFrame(d.current),w?.removeEventListener("showai-board-pinch",f),w?.removeEventListener("showai:viewport-change",f),window.removeEventListener("blur",f);let E=y.current;E&&x(E)}},[]);let m=w=>{let E=y.current,L=E?.hitTest(w.x,w.y,!1);E&&L&&b(L.node)&&!L.element.classList.contains("is-locked")&&(E.erased.add(L.id),E.hidden.add(L.element),L.element.dataset.erasing="true")},v=w=>{let E=y.current;if(E){if(e==="eraser"){let L=Math.ceil(Math.hypot(w.x-E.last.x,w.y-E.last.y)/4);for(let H=0;H<=L;H++)m({x:E.last.x+(w.x-E.last.x)*H/(L||1),y:E.last.y+(w.y-E.last.y)*H/(L||1)})}else Math.hypot(w.x-E.last.x,w.y-E.last.y)>=2&&(E.points.push(w),l([...E.points]));E.last=w}},T=()=>{let w=y.current;if(w){if(y.current=null,l([]),e==="eraser"){w.erased.size&&(0,nv.flushSync)(()=>{a.selectIds([...a.ids].filter(E=>!w.erased.has(E))),n([...w.erased])}),x(w);return}w.points.length>=2&&a.selectIds(a.lassoHit(w.points))}};return(0,V1.jsxs)("svg",{ref:p,className:"board-drawing-input","data-board-drawing-input":!0,"data-drawing-active":!!y.current,"aria-label":r(e==="eraser"?"tool.eraser":"tool.lasso"),tabIndex:0,onPointerDown:w=>{if(w.defaultPrevented||w.button!==0||mr(w.pointerType)||y.current)return;let E=a.hitTest(w.clientX,w.clientY);if(e==="lasso"&&(a.selectionHit(w.clientX,w.clientY)||E&&a.ids.has(E.id)))return;w.preventDefault(),w.stopPropagation(),w.currentTarget.focus({preventScroll:!0}),w.currentTarget.setPointerCapture(w.pointerId);let L={x:w.clientX,y:w.clientY};y.current={id:w.pointerId,hitTest:a.createHitTest(t/2),points:[L],erased:new Set,hidden:new Set,pointerType:w.pointerType,last:L},e==="eraser"?m(L):l([L])},onPointerMove:w=>{e==="eraser"&&u({x:w.clientX,y:w.clientY}),y.current?.id===w.pointerId&&(w.preventDefault(),v({x:w.clientX,y:w.clientY}))},onPointerUp:w=>{y.current?.id===w.pointerId&&(w.preventDefault(),v({x:w.clientX,y:w.clientY}),T())},onPointerCancel:f,onLostPointerCapture:f,onPointerLeave:()=>{y.current||u(null)},onKeyDown:w=>{w.key==="Escape"&&(w.preventDefault(),w.stopPropagation(),f(),o())},children:[e==="eraser"&&(0,V1.jsx)("circle",{ref:s,className:"board-eraser-cursor",style:{display:"none"},r:t/2}),i.length>1&&(0,V1.jsx)("path",{d:i.map((w,E)=>`${E?"L":"M"}${g(w).x},${g(w).y}`).join(" ")+" Z",fill:"#7194ff18",stroke:"#7194ff",strokeDasharray:"4 3"})]})}var n5=[{tool:null,label:"tool.select",key:"1",aliases:["v"]},{tool:"pen",label:"tool.pen",key:"2",aliases:["p"]},{tool:"highlighter",label:"tool.highlighter",key:"3",aliases:["h"]},{tool:"rectangle",label:"tool.rectangle",key:"4",aliases:["r"]},{tool:"ellipse",label:"tool.ellipse",key:"5",aliases:["e","o"]},{tool:"arrow",label:"tool.arrow",key:"6",aliases:["a"]},{tool:"pan",label:"tool.pan",key:"8",aliases:["m"]},{tool:"eraser",label:"tool.eraser",key:"9",aliases:["x"]},{tool:"lasso",label:"tool.lasso",key:"L",aliases:["l"]},{tool:"text",label:"tool.text",key:"T",aliases:["t"]}];function rv(e){let t=e.toLowerCase();return n5.find(a=>a.key===e||a.aliases.includes(t))}var mv=U(Ne(),1);var sa=U(Ne(),1),s5=U(Gn(),1);var o5=["bottom","top","left","right"],lr=(e,t,a)=>Math.max(t,Math.min(a,e));function r5(e){let[t,a,n,o]=(e??"").split(":"),r=Number(a);return o5.includes(t)&&a&&Number.isFinite(r)?{edge:t,position:lr(r,0,1),...n&&o&&[Number(n),Number(o)].every(Number.isFinite)?{floating:{x:lr(Number(n),0,1),y:lr(Number(o),0,1)}}:{}}:{edge:"bottom",position:.5}}function QT(e,t){let a={top:e.y,bottom:t.height-e.y,left:e.x,right:t.width-e.x},n=o5.reduce((r,i)=>a[i]<a[r]?i:r);return{edge:n,position:lr(n==="top"||n==="bottom"?e.x/Math.max(1,t.width):e.y/Math.max(1,t.height),0,1)}}function cc(e,t,a,n=0){if(t={...t,height:Math.max(1,t.height-n)},e.floating)return i5({x:e.floating.x*t.width,y:e.floating.y*t.height},t,a);let o=e.edge==="top"||e.edge==="bottom",r=Math.min(t.width/2,a.width/2+12),i=Math.min(t.height/2,a.height/2+12);return{x:o?lr(t.width*e.position,r,t.width-r):e.edge==="left"?r:t.width-r,y:o?e.edge==="top"?i:t.height-i:lr(t.height*e.position,i,t.height-i)}}function i5(e,t,a){let n=Math.min(t.width/2,a.width/2+12),o=Math.min(t.height/2,a.height/2+12);return{x:lr(e.x,n,t.width-n),y:lr(e.y,o,t.height-o)}}function iv(e,t,a=null,n=44){let o={top:e.y,bottom:t.height-e.y,left:e.x,right:t.width-e.x},r=QT(e,t),i=a&&o[a]<=n*1.4?a:r.edge;return o[i]<=n*(i===a?1.4:1)?{...r,edge:i,position:lr(i==="top"||i==="bottom"?e.x/Math.max(1,t.width):e.y/Math.max(1,t.height),0,1)}:null}function l5(e,t,a,n){let o={x:e.x-t.width/2,y:e.y-t.height/2,...t};return n&&(a==="top"||a==="bottom"?(a==="bottom"&&(o.y-=t.height),o.height+=t.height):(a==="right"&&(o.x-=t.width),o.width+=t.width)),o}function sc(e,t,a){return{left:e.x,right:t.width-e.x-e.width,top:e.y,bottom:t.height-e.y-e.height}[a]}function lv(e,t,a=96){let n=o5.reduce((o,r)=>sc(e,t,r)<sc(e,t,o)?r:o);return sc(e,t,n)>a?null:{edge:n,position:lr(n==="top"||n==="bottom"?(e.x+e.width/2)/Math.max(1,t.width):(e.y+e.height/2)/Math.max(1,t.height),0,1)}}ct(`.surface-toolbar.board-dockable-toolbar{bottom:auto;transform:translate(-50%,-50%);display:block;padding:0;border:0;background:none;box-shadow:none;max-height:none;overflow:visible}.board-toolbar-primary,.board-toolbar-properties,.board-toolbar-actions{display:flex;align-items:center;gap:2px;padding:5px;border:1px solid var(--line, var(--border));border-radius:12px;background:var(--paper, var(--bg));box-shadow:0 4px 20px #0000000a}.board-toolbar-primary{width:max-content;max-width:calc(var(--board-toolbar-width, 100dvw) - 24px);flex-wrap:nowrap}.board-view-controls{display:flex;align-items:center;flex-wrap:wrap;gap:2px;border-bottom:1px solid var(--line, var(--border));padding-bottom:8px;margin-bottom:8px}.board-toolbar-primary>.surface-extra-actions>.surface-toolbar-divider{display:none}.board-dockable-toolbar:is([data-dock=left],[data-dock=right],[data-dock=top]) .board-tool-shortcuts{display:none}.board-dockable-toolbar[data-dock=bottom] .board-tool-shortcuts{bottom:calc(100% + 5px)}.board-toolbar-properties .board-style-section>button{min-height:24px;height:24px;padding:2px 4px}.board-toolbar-primary>.surface-extra-actions{min-width:0}.board-toolbar-primary .board-tool-stack{--board-tool-width: clamp( 24px, calc( (var(--board-toolbar-width, 100dvw) - 90px) / var(--board-tool-count, 11) - 2px ), 34px )}.board-toolbar-properties{position:absolute;top:calc(100% + 8px);left:0;width:100%;max-height:calc(var(--board-properties-reserve) - 8px);box-sizing:border-box;justify-content:center}.board-toolbar-properties:empty{display:none}.board-toolbar-actions{position:absolute;left:0;bottom:calc(100% + 8px);width:max-content;max-width:calc(var(--board-toolbar-width, 100dvw) - 24px);flex-wrap:wrap}.board-toolbar-actions:not(:has(button,summary,[role=status],>.board-component-actions:not(:empty))){display:none}.board-dockable-toolbar[data-dragging]{opacity:.85;user-select:none}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-toolbar-primary{flex-direction:column;width:54px;max-width:54px;box-sizing:border-box;max-height:calc(var(--board-toolbar-height, 100dvh) - var(--board-properties-reserve) - 24px);padding-inline:4px}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-tool-stack{flex:0 1 auto;min-height:72px;width:auto;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;--board-tool-width: 34px}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-tool-buttons{grid-template-columns:var(--board-tool-width)}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-tool-buttons button{width:var(--board-tool-width)}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-toolbar-properties{width:54px;justify-content:start;flex-direction:column}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-toolbar-actions{top:0;bottom:auto;width:54px;box-sizing:border-box;flex-direction:column;flex-wrap:nowrap;max-height:calc(var(--board-toolbar-height, 100dvh) - 24px);overflow-y:auto}.board-dockable-toolbar[data-dock=left] .board-toolbar-actions{left:calc(100% + 8px)}.board-dockable-toolbar[data-dock=right] .board-toolbar-actions{left:auto;right:calc(100% + 8px)}.board-dockable-toolbar[data-dock=top] .board-toolbar-actions{bottom:auto;top:calc(100% + 8px)}.board-dockable-toolbar[data-dock=top]:has(.board-toolbar-actions button,.board-toolbar-actions summary,.board-toolbar-actions [role=status],.board-toolbar-actions>.board-component-actions:not(:empty)) .board-toolbar-properties{top:calc(100% + 56px)}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) :is(.board-style-controls,.board-writing-options){flex-shrink:0;flex-direction:column;gap:4px;margin:0;padding:0}.surface-toolbar.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-stroke-slider{width:36px;height:84px}.surface-toolbar.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) :is(.board-stroke-track,.board-stroke-slider input[type=range],.board-stroke-value-rail){position:absolute;width:80px;height:24px;inset:50% auto auto 50%;transform:translate(-50%,-50%) rotate(-90deg)}.surface-toolbar.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-stroke-slider input{cursor:ns-resize}.surface-toolbar.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-stroke-value-rail output{transform:translate(-50%) rotate(90deg)}.surface-toolbar.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .surface-toolbar-divider{height:1px;width:24px}.surface-toolbar.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-tool-shortcuts{display:none}.surface-toolbar.board-dockable-toolbar[data-dock=top] :is(.surface-navigation,.surface-add-menu,.board-writing-options details[open]>div,.board-component-settings){bottom:auto;top:calc(100% + 12px)}.surface-toolbar.board-dockable-toolbar[data-dock=left] :is(.surface-navigation,.surface-add-menu,.board-writing-options details[open]>div,.board-component-settings){bottom:auto;top:0;right:auto;left:calc(100% + 12px)}.surface-toolbar.board-dockable-toolbar[data-dock=right] :is(.surface-navigation,.surface-add-menu,.board-writing-options details[open]>div,.board-component-settings){bottom:auto;top:0;left:auto;right:calc(100% + 12px)}.surface-toolbar.board-dockable-toolbar[data-dock=top] .board-align-options{bottom:auto;top:calc(100% + 12px)}.surface-toolbar.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-align-options{bottom:auto;top:0;transform:none}.surface-toolbar.board-dockable-toolbar[data-dock=left] .board-align-options{left:calc(100% + 12px)}.surface-toolbar.board-dockable-toolbar[data-dock=right] .board-align-options{left:auto;right:calc(100% + 12px)}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-style-section{flex-direction:column;gap:4px;font-size:11px}.surface-toolbar.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-toolbar-properties .board-stroke-slider{height:56px}.surface-toolbar.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-toolbar-properties :is(.board-stroke-track,.board-stroke-slider input[type=range],.board-stroke-value-rail){width:52px}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-style-section+.board-style-section{border-inline-start:0;border-top:1px solid var(--line, var(--border));padding-inline-start:0;padding-top:6px;width:36px}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]):has(.board-pressure-toggle){--toolbar-reserve: 320px}.board-dockable-toolbar[data-dock=top] .board-color-menu{bottom:auto;top:calc(100% + 12px)}.board-dockable-toolbar[data-dock=left] .board-color-menu{bottom:auto;top:0;right:auto;left:calc(100% + 12px)}.board-dockable-toolbar[data-dock=right] .board-color-menu{bottom:auto;top:0;left:auto;right:calc(100% + 12px)}.board-toolbar-inline-properties{display:flex;align-items:center;border-inline-start:1px solid var(--line, var(--border));margin-left:4px;min-width:0}.board-toolbar-inline-properties .board-style-controls{gap:6px}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-toolbar-inline-properties{flex-direction:column;border-inline-start:0;border-top:1px solid var(--line, var(--border));margin:4px 0 0}.board-toolbar-primary{overflow:visible}@media(max-width:800px){.board-toolbar-inline-properties .board-style-section{font-size:10px;gap:3px}.board-toolbar-inline-properties .board-stroke-slider{width:64px}}.board-dockable-toolbar[data-mobile] .board-tool-shortcuts{display:none}.board-toolbar-primary{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;cursor:grab}.board-dockable-toolbar[data-dragging] .board-toolbar-primary{cursor:grabbing}.board-dockable-toolbar[data-mobile] .board-toolbar-primary .board-tool-stack{--board-tool-width: clamp( 36px, calc( (var(--board-toolbar-width) - 44px) / var(--board-tool-count, 8) - 2px ), 44px )}.board-dockable-toolbar[data-mobile] .board-toolbar-secondary{position:absolute;bottom:100%;left:0;display:flex;align-items:center;gap:4px;width:100%;height:100%;box-sizing:border-box;padding:5px;border:1px solid var(--line, var(--border));border-radius:12px 12px 0 0;border-width:1px 1px 0;background:var(--paper, var(--bg));box-shadow:none;overflow:auto;overscroll-behavior:contain;scrollbar-width:none}.board-dockable-toolbar[data-mobile] .board-toolbar-secondary:not(:has(button,summary,input,select,[role=status])){display:none}.board-dockable-toolbar[data-mobile] :is(.board-toolbar-settings,.board-toolbar-secondary .board-toolbar-actions){display:flex;align-items:center;flex:0 0 auto;flex-wrap:nowrap;position:static;width:auto;max-width:none;max-height:none;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;gap:4px}.board-dockable-toolbar[data-mobile] .board-toolbar-secondary .board-toolbar-actions:not(:has(button,summary,[role=status],>.board-component-actions:not(:empty))){display:none}.board-dockable-toolbar[data-mobile] .board-toolbar-secondary button{flex-shrink:0}.board-dockable-toolbar[data-mobile][data-dock=top] .board-toolbar-secondary{top:100%;bottom:auto}.board-dockable-toolbar[data-mobile]:is([data-dock=left],[data-dock=right]) .board-toolbar-secondary{top:0;bottom:auto;flex-direction:column}.board-dockable-toolbar[data-mobile][data-dock=left] .board-toolbar-secondary{left:100%}.board-dockable-toolbar[data-mobile][data-dock=right] .board-toolbar-secondary{left:auto;right:100%}.board-dockable-toolbar[data-mobile]:is([data-dock=left],[data-dock=right]) :is(.board-toolbar-settings,.board-toolbar-secondary .board-toolbar-actions){flex-direction:column}.board-toolbar-primary :is(.board-tool-stack,.board-tool-buttons,button,summary){touch-action:none}.board-dockable-toolbar[data-mobile] .board-toolbar-primary{box-shadow:none}.board-dockable-toolbar[data-mobile]:has(>.board-toolbar-secondary :is(button,summary,input,select,[role=status])) .board-toolbar-primary{border-radius:0 0 12px 12px}.board-dockable-toolbar[data-mobile][data-dock=top]:has(>.board-toolbar-secondary :is(button,summary,input,select,[role=status])) .board-toolbar-primary{border-radius:12px 12px 0 0}.board-dockable-toolbar[data-mobile][data-dock=top] .board-toolbar-secondary{border-width:0 1px 1px;border-radius:0 0 12px 12px}.board-dockable-toolbar[data-mobile][data-dock=left]:has(>.board-toolbar-secondary :is(button,summary,input,select,[role=status])) .board-toolbar-primary{border-radius:12px 0 0 12px}.board-dockable-toolbar[data-mobile][data-dock=left] .board-toolbar-secondary{border-width:1px 1px 1px 0;border-radius:0 12px 12px 0}.board-dockable-toolbar[data-mobile][data-dock=right]:has(>.board-toolbar-secondary :is(button,summary,input,select,[role=status])) .board-toolbar-primary{border-radius:0 12px 12px 0}.board-dockable-toolbar[data-mobile][data-dock=right] .board-toolbar-secondary{border-width:1px 0 1px 1px;border-radius:12px 0 0 12px}.board-dockable-toolbar[data-mobile] .board-toolbar-secondary{justify-content:space-evenly}.board-dockable-toolbar[data-mobile] .board-toolbar-secondary :is(.board-toolbar-settings,.board-style-controls,.board-toolbar-actions){display:contents}.board-dockable-toolbar[data-mobile] .board-toolbar-secondary :is(.board-toolbar-settings,.board-toolbar-actions):empty{display:none}.board-dockable-toolbar[data-mobile] .board-ruler-controls{border-inline-start:1px solid var(--line, var(--border));padding-inline-start:8px}.board-dockable-toolbar[data-mobile]:is([data-dock=left],[data-dock=right]) .board-ruler-controls{border-inline-start:0;border-top:1px solid var(--line, var(--border));padding-inline-start:0;padding-top:6px;width:36px}
|
|
31
|
-
`);function sv(e){let t=null,a=()=>{if(!t)return;let{details:s,popup:c,style:d}=t;t=null,c.matches(":popover-open")&&c.hidePopover(),c.removeAttribute("popover"),d===null?c.removeAttribute("style"):c.setAttribute("style",d),s.open=!1},n=()=>{if(!t)return;let{details:s,popup:c}=t;if(!s.isConnected){a();return}let d=s.querySelector("summary").getBoundingClientRect(),u=c.getBoundingClientRect(),p=e.dataset.dock,g=d.left,y=d.top-u.height-10;p==="top"&&(y=d.bottom+10),p==="left"&&(g=d.right+10,y=d.top),p==="right"&&(g=d.left-u.width-10,y=d.top),c.style.left=`${Math.max(8,Math.min(g,innerWidth-u.width-8))}px`,c.style.top=`${Math.max(8,Math.min(y,innerHeight-u.height-8))}px`},o=s=>{let c=s.target;if(!(c instanceof HTMLDetailsElement)||!c.closest(".board-toolbar-secondary"))return;if(!c.open){t?.details===c&&a();return}if(t?.details===c)return;let d=c.querySelector(":scope > div");d&&(a(),t={details:c,popup:d,style:d.getAttribute("style")},d.setAttribute("popover","manual"),Object.assign(d.style,{position:"fixed",inset:"auto",margin:"0",transform:"none",maxWidth:"calc(100vw - 16px)",maxHeight:"calc(100dvh - 16px)",overflow:"auto"}),d.showPopover(),n())},r=s=>{t&&!t.details.contains(s.target)&&a()},i=s=>{if(s.key!=="Escape"||!t)return;let c=t.details.querySelector("summary");a(),c?.focus(),s.stopPropagation(),s.preventDefault()};e.addEventListener("toggle",o,!0),document.addEventListener("pointerdown",r,!0),document.addEventListener("keydown",i,!0),document.addEventListener("scroll",n,!0),window.addEventListener("resize",n);let l=new MutationObserver(()=>{e.hasAttribute("data-dragging")?a():n()});return l.observe(e,{attributes:!0,attributeFilter:["data-dock","data-dragging"]}),()=>{a(),l.disconnect(),e.removeEventListener("toggle",o,!0),document.removeEventListener("pointerdown",r,!0),document.removeEventListener("keydown",i,!0),document.removeEventListener("scroll",n,!0),window.removeEventListener("resize",n)}}var sr=U(pe(),1),cv=(0,sa.createContext)("bottom"),dv=()=>(0,sa.useContext)(cv),Z1=e=>e==="top"||e==="bottom";function uv({children:e,actions:t,properties:a,root:n,enabled:o}){let r=ue(tt),i=typeof document<"u"&&document.documentElement.dataset.native==="ios",l=`showai:board-toolbar:${i?"mobile":"desktop"}`,[s,c]=(0,sa.useState)(()=>{try{let P=r5(localStorage.getItem(l));return i&&P.floating?{edge:P.edge,position:P.position}:P}catch{return r5(null)}}),[d,u]=(0,sa.useState)(s.edge),[p,g]=(0,sa.useState)(!1),[y,b]=(0,sa.useState)({bounds:{width:0,height:0},size:{width:0,height:0}}),x=(0,sa.useRef)(null),f=(0,sa.useRef)(null),m=(0,sa.useRef)(y);m.current=y;let v=(0,sa.useRef)(null),T=(0,sa.useRef)(null),w=(0,sa.useRef)(0),E=(0,sa.useRef)(!1),L=(0,sa.useRef)(()=>{}),H=()=>{w.current||(w.current=requestAnimationFrame(()=>{w.current=0,L.current()}))};(0,sa.useEffect)(()=>{let P=n.current,Z=f.current,F=()=>{let j={bounds:{width:P.clientWidth,height:P.clientHeight},size:{width:Z.offsetWidth,height:Z.offsetHeight}};m.current=j,b(K=>K.bounds.width===j.bounds.width&&K.bounds.height===j.bounds.height&&K.size.width===j.size.width&&K.size.height===j.size.height?K:j),v.current?.active&&H()},ee=new ResizeObserver(F);return ee.observe(P),ee.observe(Z),F(),()=>{ee.disconnect(),cancelAnimationFrame(w.current),w.current=0}},[n]),(0,sa.useEffect)(()=>i&&x.current?sv(x.current):void 0,[i]);let S=P=>{(0,s5.flushSync)(()=>{c(P),u(P.edge)});let Z=f.current,F={bounds:m.current.bounds,size:Z?{width:Z.offsetWidth,height:Z.offsetHeight}:m.current.size};m.current=F,b(F);let ee=cc(P,F.bounds,F.size);x.current&&(x.current.style.left=`${ee.x}px`,x.current.style.top=`${ee.y}px`)},k=P=>{c(P),u(P.edge);try{localStorage.setItem(l,`${P.edge}:${P.position}${P.floating?`:${P.floating.x}:${P.floating.y}`:""}`)}catch{}},M=P=>{let Z=n.current.getBoundingClientRect(),F=m.current.bounds;return{x:(P.clientX-Z.left)*F.width/Z.width,y:(P.clientY-Z.top)*F.height/Z.height}},O=()=>!!x.current?.querySelector(":scope > .board-toolbar-secondary")?.getClientRects().length,C=()=>{let P=v.current,{bounds:Z,size:F}=m.current,ee=Z1(P.edge)?{x:P.pointer.x+(.5-P.along)*F.width,y:P.pointer.y+(.5-P.across)*F.height}:{x:P.pointer.x+(.5-P.across)*F.width,y:P.pointer.y+(.5-P.along)*F.height};return i5(ee,Z,F)},N=()=>{let P=v.current,{bounds:Z,size:F}=m.current,ee=C(),j={edge:P.edge,position:Z1(P.edge)?ee.x/Math.max(1,Z.width):ee.y/Math.max(1,Z.height)};return P.snapped||(j.floating={x:ee.x/Math.max(1,Z.width),y:ee.y/Math.max(1,Z.height)}),{target:j,point:P.snapped?cc(j,Z,F):ee}};L.current=()=>{if(!v.current?.active||!x.current)return;let P=N().point;T.current=P,x.current.style.left=`${P.x}px`,x.current.style.top=`${P.y}px`};let z=P=>{let Z=v.current;if(Z?.id!==P.pointerId||!Z.active&&Math.hypot(P.clientX-Z.start.x,P.clientY-Z.start.y)<6)return;P.preventDefault(),P.stopPropagation(),Z.active||(Z.active=!0,T.current=cc(s,m.current.bounds,m.current.size),g(!0)),Z.pointer=M(P);let F=m.current.bounds,ee=F.width/n.current.getBoundingClientRect().width,j;if(i){let _=96*ee,$=l5(C(),m.current.size,Z.edge,O()),D=Z.snapOrigin,V=Z.snapped,B=!D||!V?1/0:V==="left"?Z.pointer.x-D.pointer.x:V==="right"?D.pointer.x-Z.pointer.x:V==="top"?Z.pointer.y-D.pointer.y:D.pointer.y-Z.pointer.y;D&&V&&D.gap+B<=_*1.4?j={edge:V,position:.5}:(j=lv($,F,_),Z.snapOrigin=j?{pointer:{...Z.pointer},gap:sc($,F,j.edge)}:null)}else j=iv(Z.pointer,F,Z.snapped,44*ee);Z.snapped=j?.edge??null;let K=j?.edge??(Z1(Z.edge)?Z.pointer.y<F.height/2?"top":"bottom":Z.pointer.x<F.width/2?"left":"right");if(K!==Z.edge){Z.edge=K,(0,s5.flushSync)(()=>u(K));let _=f.current,$={bounds:m.current.bounds,size:{width:_.offsetWidth,height:_.offsetHeight}};m.current=$,b($)}H()},A=(P,Z=!1)=>{let F=v.current;if(F?.id!==P.pointerId)return;Z||z(P);let ee=!Z&&!F.active?F.pressed:null;P.preventDefault(),F.active&&(!Z&&(!i||F.snapped)?(F.pointer=M(P),k(N().target)):S(F.origin),g(!1)),E.current=!0,v.current=null,T.current=null,cancelAnimationFrame(w.current),w.current=0,P.currentTarget.hasPointerCapture(P.pointerId)&&P.currentTarget.releasePointerCapture(P.pointerId),ee?.isConnected&&(P.pointerType==="mouse"&&ee.focus({preventScroll:!0}),ee.click())},q=p&&T.current?T.current:cc(s,y.bounds,y.size);return(0,sr.jsx)(cv.Provider,{value:d,children:(0,sr.jsxs)("div",{ref:x,className:"surface-toolbar board-dockable-toolbar","data-dock":d,"data-mobile":i||void 0,"data-floating":!!s.floating||void 0,"data-dragging":p||void 0,"data-surface-ui":!0,role:"group","aria-label":r("board.tools"),tabIndex:o?0:void 0,style:{left:q.x,top:q.y,bottom:"auto","--board-properties-reserve":"0px","--board-toolbar-height":`${y.bounds.height}px`,"--board-toolbar-width":`${y.bounds.width}px`},onContextMenu:P=>{f.current?.contains(P.target)&&P.preventDefault()},onPointerDownCapture:P=>{if(E.current=!1,!o||P.button!==0||!P.isPrimary||P.target.closest('input,select,textarea,[role="slider"],[contenteditable="true"],.board-color-menu,.surface-navigation,.board-align-options,.board-component-settings')||i&&!f.current?.contains(P.target))return;let Z=f.current.getBoundingClientRect(),F=Z1(d)?(P.clientX-Z.left)/Z.width:(P.clientY-Z.top)/Z.height,ee=Z1(d)?(P.clientY-Z.top)/Z.height:(P.clientX-Z.left)/Z.width,j=P.target.closest("button,summary");P.preventDefault(),P.currentTarget.setPointerCapture(P.pointerId),v.current={id:P.pointerId,start:{x:P.clientX,y:P.clientY},pointer:M(P),along:F,across:ee,edge:d,snapped:s.floating?null:d,snapOrigin:s.floating?null:{pointer:M(P),gap:sc(l5(cc(s,m.current.bounds,m.current.size),m.current.size,d,O()),m.current.bounds,d)},active:!1,origin:s,pressed:j}},onPointerMove:z,onPointerUp:P=>A(P),onPointerCancel:P=>A(P,!0),onLostPointerCapture:P=>{P.target===P.currentTarget&&A(P,!0)},onClickCapture:P=>{E.current&&P.detail!==0&&(P.preventDefault(),P.stopPropagation())},onKeyDown:P=>{if(!o||P.target!==P.currentTarget&&!P.altKey)return;if(P.key==="Escape"&&v.current){let F=v.current;v.current=null,T.current=null,cancelAnimationFrame(w.current),w.current=0,g(!1),S(F.origin),P.currentTarget.hasPointerCapture(F.id)&&P.currentTarget.releasePointerCapture(F.id);return}let Z={ArrowUp:"top",ArrowDown:"bottom",ArrowLeft:"left",ArrowRight:"right"}[P.key];Z&&(P.preventDefault(),P.stopPropagation(),k({edge:Z,position:.5}))},children:[(0,sr.jsxs)("div",{ref:f,className:"board-toolbar-primary",children:[e,!i&&a&&(0,sr.jsx)("div",{className:"board-toolbar-inline-properties","data-surface-ui":!0,children:a})]}),i?(0,sr.jsxs)("div",{className:"board-toolbar-secondary","data-surface-ui":!0,children:[(0,sr.jsx)("div",{className:"board-toolbar-settings",children:a}),(0,sr.jsx)("div",{className:"board-toolbar-actions","data-surface-ui":!0,children:t})]}):t&&(0,sr.jsx)("div",{className:"board-toolbar-actions","data-surface-ui":!0,children:t})]})})}var pv=U(Ne(),1);var cr=U(pe(),1),eE=["#252629","#697586","#ffffff","#ef4444","#f97316","#facc15","#22c55e","#14b8a6","#06b6d4","#3b82f6","#8b5cf6","#ec4899"];function c5({value:e,label:t,onChange:a,allowNone:n=!1}){let o=ue(tt),r=(0,pv.useRef)(null);return(0,cr.jsxs)("details",{ref:r,className:"board-color-picker",children:[(0,cr.jsx)("summary",{"aria-label":t,title:t,"data-empty":e==="none"||void 0,style:{backgroundColor:e==="none"?"#ffffff":e}}),(0,cr.jsxs)("div",{className:"board-color-menu","data-surface-ui":!0,children:[(0,cr.jsxs)("div",{className:"board-color-presets",role:"group","aria-label":o("style.presets"),children:[n&&(0,cr.jsx)("button",{type:"button",className:"board-color-empty","aria-label":o("style.none"),title:o("style.none"),"aria-pressed":e==="none",onClick:()=>{a("none"),r.current&&(r.current.open=!1)}}),eE.map(i=>(0,cr.jsx)("button",{type:"button","aria-label":o("style.presetColor",{color:i}),"aria-pressed":e.toLowerCase()===i,style:{backgroundColor:i},onClick:()=>{a(i),r.current&&(r.current.open=!1)}},i))]}),(0,cr.jsxs)("label",{className:"board-full-palette",children:[o("style.fullPalette"),(0,cr.jsx)("input",{type:"color","aria-label":t,value:e==="none"?"#ffffff":e,onInput:i=>a(i.currentTarget.value)})]})]})]})}var bt=U(pe(),1);function tE({width:e,label:t,onChange:a,min:n=.5,max:o=12}){let r=ue(tt),i=dv(),l=i==="left"||i==="right",[s,c]=(0,mv.useState)(!1),d=Math.min(o,Math.max(n,e??2.5)),u=(d-n)/(o-n)*100;return(0,bt.jsxs)("span",{className:"board-stroke-slider","data-active":s||void 0,children:[(0,bt.jsx)("svg",{viewBox:"0 0 120 24",preserveAspectRatio:"none","aria-hidden":"true",className:"board-stroke-track",children:(0,bt.jsx)("path",{d:"M 8 11.5 L 112 7 Q 117 7 117 12 Q 117 17 112 17 L 8 12.5 Q 7 12 8 11.5 Z"})}),(0,bt.jsx)("span",{className:"board-stroke-value-rail","aria-hidden":"true",children:(0,bt.jsx)("output",{style:{left:`${u}%`},children:d})}),(0,bt.jsx)("input",{type:"range","aria-orientation":l?"vertical":"horizontal","aria-label":t,"aria-valuetext":e===void 0?r("style.mixed"):void 0,min:n,max:o,step:.5,value:d,onPointerDown:p=>{p.currentTarget.setPointerCapture(p.pointerId),c(!0)},onPointerUp:()=>c(!1),onPointerCancel:()=>c(!1),onLostPointerCapture:()=>c(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),onKeyDown:()=>c(!0),onKeyUp:()=>c(!1),onChange:p=>a({strokeWidth:p.currentTarget.valueAsNumber})})]})}function fv({nodes:e,onChange:t}){let a=ue(tt),n=e.filter(i=>io(i)&&!!i.attrs?.label);if(!n.length)return null;let o=new Set(n.map(i=>i.attrs?.labelSize??16)),r=o.size===1?[...o][0]:void 0;return(0,bt.jsxs)("label",{className:"board-label-size",title:a("style.labelSize"),children:[(0,bt.jsx)(l0,{size:14,"aria-hidden":"true"}),(0,bt.jsxs)("select",{"aria-label":a("style.labelSize"),value:r??"",onChange:i=>t(Number(i.currentTarget.value)),children:[r===void 0&&(0,bt.jsx)("option",{value:"",disabled:!0,children:a("style.mixed")}),J9.map(i=>(0,bt.jsx)("option",{value:i,children:a(`style.labelSize${i}`)},i))]})]})}function gv({tool:e,style:t,nodes:a,onChange:n}){let o=ue(tt),r=a.filter(Pl);if(!r.length&&a.some(y=>y.attrs?.ink))return(0,bt.jsx)("span",{className:"board-style-controls",children:o("style.inkNotice")});if(!r.length&&(!e||["region","pan","lasso"].includes(e)))return null;let i=y=>{if(!r.length)return t[y];let b=y==="fillColor"?r.filter(f=>["rectangle","ellipse"].includes(f.attrs.tool)):r,x=new Set(b.map(f=>f.attrs?.[y]??(y==="fillColor"?"none":t[y])));return x.size===1?[...x][0]:void 0},l=r.length?r.some(y=>["rectangle","ellipse"].includes(y.attrs.tool)):e==="rectangle"||e==="ellipse",s=i("color"),c=i("fillColor"),d=i("strokeWidth"),u=!r.length&&e==="eraser",p=i("pressure")!==!1,g=r.length?r.every(y=>y.attrs.tool==="highlighter"):e==="highlighter";return(0,bt.jsxs)("div",{className:"board-style-controls","data-filled":l||void 0,role:"group","aria-label":r.length?o("style.selection"):o("style.drawing"),children:[!u&&(0,bt.jsxs)("div",{className:"board-style-section",title:s===void 0?o("style.colorsDiffer"):void 0,children:[o(l?"style.border":"style.color"),(0,bt.jsx)(c5,{label:o(l?"style.borderColor":"style.penColor"),value:s??"#252629",allowNone:l&&r.every(y=>["rectangle","ellipse"].includes(y.attrs.tool)),onChange:y=>n({color:y})}),s===void 0&&(0,bt.jsx)("small",{children:o("style.mixed")})]}),!u&&l&&(0,bt.jsxs)("div",{className:"board-style-section",children:[o("style.fill"),(0,bt.jsx)(c5,{label:o("style.fillColor"),value:c??"none",allowNone:!0,onChange:y=>n({fillColor:y})}),c===void 0&&(0,bt.jsx)("small",{children:o("style.mixed")})]}),(0,bt.jsx)("div",{className:"board-style-section board-width-controls",children:(0,bt.jsxs)("label",{children:[o(u?"style.eraserSize":"style.weight"),(0,bt.jsx)(tE,{width:u?t.strokeWidth:d,min:u?4:.5,max:u?64:g?20:12,label:o(u?"style.eraserSize":l?"style.borderWeight":"style.penWeight"),onChange:n}),d===void 0&&(0,bt.jsx)("small",{children:o("style.mixed")})]})}),typeof document<"u"&&document.documentElement.dataset.native==="ios"&&(r.length?r.every(y=>["pen","highlighter"].includes(y.attrs.tool)):e==="pen"||e==="highlighter")&&(0,bt.jsxs)("div",{className:"board-style-section board-pressure-controls",children:[(0,bt.jsx)("span",{children:o("style.pressureLabel")}),(0,bt.jsx)("button",{type:"button",className:"board-pressure-toggle","aria-label":o("style.pressure"),title:o(p?"style.pressureWidth":"style.fixedWidth"),"aria-pressed":p,onClick:()=>n({pressure:!p}),children:(0,bt.jsx)("svg",{viewBox:"0 0 24 20","aria-hidden":"true",children:p?(0,bt.jsx)("path",{d:"M3 14 C7 2 13 7 17 9 C19 10 20 8 21 6 C20 13 16 16 12 11 C8 7 6 7 3 14 Z",fill:"currentColor"}):(0,bt.jsx)("path",{d:"M3 14 C8 2 16 18 21 6",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]})]})}var dc=U(Ne(),1);var mu=U(pe(),1),bv=180,hv=120;function yv({root:e,world:t,camera:a,layoutKey:n,onNavigate:o}){let r=ue(tt),[i,l]=(0,dc.useState)(null),s=(0,dc.useRef)(0),c=()=>{cancelAnimationFrame(s.current),s.current=requestAnimationFrame(()=>{let m=t.current,v=e.current,T=a.current;if(!m||!v||!T)return;let w=[...m.children].flatMap(E=>E instanceof HTMLElement&&E.dataset.surfaceId?[{x:E.offsetLeft,y:E.offsetTop,width:E.offsetWidth,height:E.offsetHeight}]:[]);l({boxes:w,view:{x:-T.x/T.scale,y:-T.y/T.scale,width:v.clientWidth/T.scale,height:v.clientHeight/T.scale}})})};if((0,dc.useEffect)(()=>{c();let m=e.current;return m?.addEventListener("showai:viewport-change",c),()=>{cancelAnimationFrame(s.current),m?.removeEventListener("showai:viewport-change",c)}},[n]),!i)return null;let d=[...i.boxes,i.view],u=Math.min(...d.map(m=>m.x)),p=Math.min(...d.map(m=>m.y)),g=Math.max(...d.map(m=>m.x+m.width)),y=Math.max(...d.map(m=>m.y+m.height)),b=Math.min(bv/Math.max(1,g-u),hv/Math.max(1,y-p)),x=m=>{let v=m.currentTarget.getBoundingClientRect(),T=u+(m.clientX-v.left)/b,w=p+(m.clientY-v.top)/b,E=a.current;o({...E,x:-(T-i.view.width/2)*E.scale,y:-(w-i.view.height/2)*E.scale})},f=(m,v,T)=>(0,mu.jsx)("rect",{className:v,x:(m.x-u)*b,y:(m.y-p)*b,width:Math.max(1,m.width*b),height:Math.max(1,m.height*b)},T);return(0,mu.jsxs)("svg",{className:"board-minimap","data-surface-ui":!0,width:bv,height:hv,role:"img","aria-label":r("board.minimap"),onPointerDown:m=>{m.currentTarget.setPointerCapture(m.pointerId),x(m)},onPointerMove:m=>m.buttons&&x(m),children:[i.boxes.map((m,v)=>f(m,"board-minimap-object",v)),f(i.view,"board-minimap-view")]})}function vv(e,t,a,n,o=!1){let r=a===1?16:a===2?n:1;return{x:(o&&!e?t:e)*r,y:(o&&!e?0:t)*r}}function d5(e,t,a,n=4){let o=Math.max(.1,Math.min(n,a));return{x:t.x-(t.x-e.x)*o/e.scale,y:t.y-(t.y-e.y)*o/e.scale,scale:o}}var v5=U(Gn(),1);var Je=U(Ne(),1);var Ga=U(Ne(),1);var xv=-Math.log(.998)*1e3,fu=class{samples=[];add(t,a,n){let o=this.samples.at(-1);if(!(o&&(n<=o.time||t===o.x&&a===o.y)))for(this.samples.push({x:t,y:a,time:n});this.samples.length>2&&n-this.samples[0].time>100;)this.samples.shift()}release(t){let a=this.samples[0],n=this.samples.at(-1);if(!a||!n||t-n.time>80||n.time-a.time<8)return{x:0,y:0};let o=(n.time-a.time)/1e3,r=(n.x-a.x)/o,i=(n.y-a.y)/o,l=Math.min(1,3e3/Math.hypot(r,i));return{x:r*l,y:i*l}}};function kv(e,t){let a=Math.exp(-xv*Math.max(0,Math.min(.064,t))),n=(1-a)/xv;return{x:e.x*n,y:e.y*n,velocity:{x:e.x*a,y:e.y*a}}}function u5(e){let t=Math.abs(e);return Math.sign(e)*(.72*t-50.4*(1-Math.exp(-t/120)))}function wv(e){let t=Math.abs(e),a=t/.72;for(let n=0;n<8;n++)a=Math.max(0,a-(u5(a)-t)/(.72-.42*Math.exp(-a/120)));return Math.sign(e)*a}var gu=(e,t,a)=>Math.max(t,Math.min(a,e));function Sv(e,t,a){if(!a)return{camera:{...e,x:e.x+t.x,y:e.y+t.y},released:!0};let n=gu(e.y,a.minY,a.maxY),o=a.x+wv(e.x-a.x)+t.x,r=n+wv(e.y-n)+t.y,i=gu(r,a.minY,a.maxY),l=o-a.x,s=r-i;return{camera:{...e,x:a.x+u5(l),y:i+u5(s)},released:Math.abs(l)>240||Math.abs(s)>240}}function aE(e,t,a){let n=e.width*t.scale,o=e.height*t.scale;if(n>a.width+1||n<Math.min(140,a.width*.5))return null;let r=Math.min(24,Math.max(0,(a.width-n)/2)),i=r-a.offsetX-e.x*t.scale,l=a.width-r-a.offsetX-(e.x+e.width)*t.scale,s=(i+l)/2,c=Math.abs(t.x-s)<=48?s:gu(t.x,i,l);if(Math.abs(c-t.x)>56)return null;let d=48,u=a.height-76,p=d-e.y*t.scale,g=u-(e.y+e.height)*t.scale,y=Math.min(p,g),b=Math.max(p,g),x=gu(t.y,y,b);if(o<=u-d){let f=(p+g)/2;Math.abs(t.y-f)<=36&&(x=f)}return Math.abs(x-t.y)>40?null:{camera:{...t,x:c,y:x},anchor:{id:e.id,label:e.label,x:c,minY:y,maxY:b}}}function Cv(e,t,a){return e.map(n=>{let o=aE(n,t,a);if(!o)return null;let r=a.offsetX+t.x+(n.x+n.width/2)*t.scale,i=t.y+(n.y+n.height/2)*t.scale,l=Math.abs(r-a.width/2)+Math.min(a.height,Math.abs(i-(a.height-76)/2))*.18;return{...o,score:l}}).filter(n=>n!==null).sort((n,o)=>n.score-o.score)[0]??null}function Tv(e,t,a,n){let o=Math.min(.032,Math.max(.001,n)),r=t+((a-e)*240-t*26)*o;return{position:e+r*o,velocity:r}}var Ev=vt(tt);function nE(){let e=1,t=new Set;return{get:()=>e,set(a){if(a!==e){e=a;for(let n of t)n()}},subscribe(a){return t.add(a),()=>{t.delete(a)}}}}function Av(e){return(0,Ga.useSyncExternalStore)(e.subscribe,e.get,e.get)}var hu=e=>e instanceof Element&&(!!e.closest('input, textarea, select, [role="textbox"], [data-editor-keyboard-scope]')||e.closest("[contenteditable]")?.getAttribute("contenteditable")==="true"),zv=e=>e instanceof Element&&(hu(e)||!!e.closest('button, a, input, textarea, select, summary, [role="slider"], iframe, [data-surface-gesture="own"], .react-flow'));function oE(e,t,a,n,o){if(!(e instanceof Element))return!1;let r=e.closest('[data-viewport-locked="true"]'),i=e.closest("[data-surface-gesture]")?.getAttribute("data-surface-gesture")?.split(/\s+/)??[];if(i.includes("own")||(o?i.includes("zoom"):i.includes(Math.abs(a)>Math.abs(n)?"x":"y"))||e.closest('[data-surface-ui], [data-surface-gesture="own"], input[type="range"], select')||!r&&e.closest(".react-flow"))return!0;if(o)return!1;for(let l=e;l&&l!==t;l=l.parentElement){let s=getComputedStyle(l);if(Math.abs(a)>Math.abs(n)&&/auto|scroll/.test(s.overflowX)&&(a>0?l.scrollLeft+l.clientWidth<l.scrollWidth-1:l.scrollLeft>0)||Math.abs(n)>=Math.abs(a)&&/auto|scroll/.test(s.overflowY)&&(n>0?l.scrollTop+l.clientHeight<l.scrollHeight-1:l.scrollTop>0))return!0}return!1}function rE(e){let t=24*e;for(;t<12;)t*=4;for(;t>96;)t/=4;return t}function Mv(e,t,a=!0,n={}){let o=(0,Ga.useContext)(ru),r=t;t&&o&&(t=`${t}:${o}`);let i=(0,Ga.useRef)(a);i.current=a;let l=(0,Ga.useRef)(n);l.current=n;let s=(0,Ga.useRef)(null),c=(0,Ga.useRef)(null),d=(0,Ga.useRef)(null),u=(0,Ga.useRef)({x:0,y:0,scale:1}),p=(0,Ga.useRef)(null),g=p.current??=nE(),y=(0,Ga.useRef)({fit:(b,x)=>{},focus:(b,x)=>{},point:(b,x)=>({x:0,y:0}),restored:!1,restoredTargets:[],restoredAnchor:null,restore:()=>{},zoom:b=>{},panBy:(b,x)=>{},moveTo:(b,x=!1)=>{},navigateTo:(b,x=!1)=>{},refresh:()=>{},cancel:()=>{},objectGesture:b=>{}});return(0,Ga.useEffect)(()=>{let b=s.current,x=c.current,f=d.current,m=x.querySelector(":scope > .surface-grid"),v=I=>i.current&&(!(I instanceof Element)||!I.closest("[data-input-surface]")||I.closest("[data-input-surface]")===b),T=I=>{for(let Q=I instanceof Element?I:null;Q&&Q!==b;Q=Q.parentElement)if(Q.classList.contains("page-surface")&&Q.dataset.inputSurface)return!0;return!1},w=()=>b.getBoundingClientRect().width/b.clientWidth||1,E=(I,Q)=>{let ve=b.getBoundingClientRect(),we=w();return{x:(I-ve.left)/we,y:(Q-ve.top)/we}},L=matchMedia("(prefers-reduced-motion: reduce)"),H=0,S=0,k=0,M=null,O=!1,C=null,N=-1/0,z=!1,A=!1,q=!1,P=()=>b.dataset.boardTool==="pan"||!!l.current.panMode?.current,Z=()=>A||P(),F=null,ee=new Map,j=null,K=()=>({width:x.clientWidth,height:b.clientHeight,offsetX:0}),_=()=>{let I=f.getBoundingClientRect(),Q=u.current.scale*w();return[...f.querySelectorAll("[data-surface-id]")].filter(ve=>ve.closest(".surface-world")===f&&ve.closest("[data-container-root]")===f.closest("[data-container-root]")).map(ve=>{let we=ve.getBoundingClientRect();return{id:ve.dataset.surfaceId,label:ve.dataset.surfaceName||Ev("node.region"),x:(we.left-I.left)/Q,y:(we.top-I.top)/Q,width:we.width/Q,height:we.height/Q}})},$=I=>l.current.reading?Cv(_(),I,K()):null,D=null,V=()=>{if(!t)return;let I=_().filter(we=>{let je=u.current;return we.x*je.scale+je.x<b.clientWidth&&(we.x+we.width)*je.scale+je.x>0&&we.y*je.scale+je.y<b.clientHeight&&(we.y+we.height)*je.scale+je.y>0}).slice(0,100),Q=M?.id,ve=Q&&_().find(we=>we.id===Q);try{localStorage.setItem(t,JSON.stringify({...u.current,visibleIds:I.map(we=>we.id),anchor:ve?{id:ve.id,x:ve.x,y:ve.y}:null}))}catch{}};if(t)try{let I=JSON.parse(localStorage.getItem(t)||(r?localStorage.getItem(r):null)||"null");I&&[I.x,I.y,I.scale].every(Number.isFinite)&&I.scale>=.1&&I.scale<=4&&Array.isArray(I.visibleIds)&&I.visibleIds.length<=100&&I.visibleIds.every(Q=>typeof Q=="string")&&(u.current={x:I.x,y:I.y,scale:I.scale},y.current.restored=!0,y.current.restoredTargets=I.visibleIds,I.anchor&&typeof I.anchor.id=="string"&&[I.anchor.x,I.anchor.y].every(Number.isFinite)&&(D=I.anchor))}catch{}let B=I=>{let Q=_().find(Po=>Po.id===I);if(Q)return Q;let ve=f.querySelector(`[data-block-id="${CSS.escape(I)}"]`);if(!ve)return;let we=ve.getBoundingClientRect(),je=f.getBoundingClientRect(),ba=u.current.scale*w();return{id:I,label:Ev("node.content"),x:(we.left-je.left)/ba,y:(we.top-je.top)/ba,width:we.width/ba,height:we.height/ba}},de=I=>{M=I,b.dataset.anchor=I?.id??""},he=()=>{let I=u.current,Q=`translate3d(${I.x}px, ${I.y}px, 0) scale(${I.scale})`,ve=f.style.transform;f.style.transform=Q;let we=f.style.transform!==ve;b.style.getPropertyValue("--board-zoom")!==String(I.scale)&&b.style.setProperty("--board-zoom",String(I.scale));let je=rE(I.scale);m&&(m.style.getPropertyValue("--board-grid-size")!==`${je}px`&&m.style.setProperty("--board-grid-size",`${je}px`),m.style.transform=`translate3d(${I.x%je}px, ${I.y%je}px, 0)`),g.set(I.scale),we&&b.dispatchEvent(new Event("showai:viewport-change",{bubbles:!0}))},ye=()=>{cancelAnimationFrame(H),H=requestAnimationFrame(he)},_e=()=>{cancelAnimationFrame(S),S=0,delete b.dataset.settling},Oe=(I,Q)=>{if(_e(),cancelAnimationFrame(H),L.matches){u.current=I,he(),Q?.(),V();return}b.dataset.settling="true";let ve=performance.now(),we={x:0,y:0,scale:0},je=ba=>{let Po=(ba-ve)/1e3;ve=ba;let qa={...u.current},Kt=!0;for(let ua of["x","y","scale"]){let ji=Tv(qa[ua],we[ua],I[ua],Po);qa[ua]=ji.position,we[ua]=ji.velocity;let ha=ua==="scale"?2e-4:.15;(Math.abs(qa[ua]-I[ua])>ha||Math.abs(we[ua])>ha*8)&&(Kt=!1)}u.current=Kt?I:qa,he(),Kt?(_e(),Q?.(),V()):S=requestAnimationFrame(je)};S=requestAnimationFrame(je)},Xe=()=>{if(document.documentElement.dataset.native==="ios"){de(null),ye();return}C&&(C.released=!0);let I=$(u.current);de(I?{...I.anchor,x:u.current.x}:null),ye()},yt=()=>{clearTimeout(k);let I=C;if(C=null,document.documentElement.dataset.native==="ios"){de(null),he(),V();return}if(I?.anchor&&!I.released&&_().some(ve=>ve.id===I.anchor.id)){de(I.anchor),Oe({...u.current,x:I.anchor.x,y:Math.max(I.anchor.minY,Math.min(I.anchor.maxY,u.current.y))});return}let Q=I?.stepped?null:$(u.current);de(Q?.anchor??null),Q?Oe(Q.camera):V()},Y=()=>{clearTimeout(k),k=window.setTimeout(yt,220)},ae=()=>{clearTimeout(k),_e(),C=null},xe=I=>{if(L.matches||Math.hypot(I.x,I.y)<40)return!1;ae(),de(null),cancelAnimationFrame(H),he(),b.dataset.settling="true";let Q=performance.now(),ve=we=>{let je=kv(I,(we-Q)/1e3);Q=we,I=je.velocity,u.current={...u.current,x:u.current.x+je.x,y:u.current.y+je.y},he(),Math.hypot(I.x,I.y)<20?(_e(),V()):S=requestAnimationFrame(ve)};return S=requestAnimationFrame(ve),!0},Ae=()=>(ae(),{origin:{...u.current},anchor:M,delta:{x:0,y:0},released:!1}),Ue=I=>{let Q=Sv(I.origin,I.delta,I.anchor);I.released||=Q.released,u.current=Q.camera,I.released&&I.anchor&&(I.anchor=null,I.origin={...Q.camera,x:Q.camera.x-I.delta.x,y:Q.camera.y-I.delta.y},de(null)),ye()},Se=(I,Q=!1)=>{ae(),de(null),Q?(u.current=I,he(),Xe()):Oe(I,Xe)},da=(I,Q=!1)=>{ae(),de(null),u.current=I,he(),Q&&V()},Oa=()=>({top:56,bottom:b.clientHeight-84}),ie=(I,Q=!1)=>{let ve=_(),we=I?.length?I.map(B).filter(ha=>!!ha):ve;if(!we.length){Se({x:64,y:64,scale:1},Q);return}let je=Math.min(...we.map(ha=>ha.x)),ba=Math.min(...we.map(ha=>ha.y)),Po=Math.max(...we.map(ha=>ha.x+ha.width)),qa=Math.max(...we.map(ha=>ha.y+ha.height)),Kt=Oa(),ua=Math.max(.1,Math.min(1,(b.clientWidth-96)/Math.max(1,Po-je),(Kt.bottom-Kt.top)/Math.max(1,qa-ba))),ji=(qa-ba)*ua;Se({x:b.clientWidth/2-(je+Po)/2*ua,y:ji<=Kt.bottom-Kt.top?(Kt.top+Kt.bottom)/2-(ba+qa)/2*ua:Kt.top-ba*ua,scale:ua},Q)},fe=(I,Q=!1)=>{let ve=B(I);if(!ve)return;let we=Math.max(.1,Math.min(1,(b.clientWidth-96)/ve.width));Se({x:b.clientWidth/2-(ve.x+ve.width/2)*we,y:64-ve.y*we,scale:we},Q)},Me=(I,Q={x:K().width/2-K().offsetX,y:b.clientHeight/2})=>{ae(),de(null),u.current=d5(u.current,Q,I),ye(),k=window.setTimeout(V,220)},Re=(I,Q)=>{ae(),de(null),u.current={...u.current,x:u.current.x+I,y:u.current.y+Q},he(),k=window.setTimeout(V,220)};y.current={fit:ie,focus:fe,zoom:Me,panBy:Re,moveTo:Se,navigateTo:da,refresh:Xe,cancel:y.current.cancel,objectGesture:y.current.objectGesture,restored:y.current.restored,restoredTargets:y.current.restoredTargets,restoredAnchor:D?.id??null,restore:()=>{let I=D&&_().find(Q=>Q.id===D.id);I&&D&&(u.current={...u.current,x:u.current.x+(D.x-I.x)*u.current.scale,y:u.current.y+(D.y-I.y)*u.current.scale}),he(),Xe()},point:(I,Q)=>{let ve=E(I,Q);return{x:(ve.x-u.current.x)/u.current.scale,y:(ve.y-u.current.y)/u.current.scale}}};let Ce=I=>{if(!i.current||T(I.target)||I.defaultPrevented||F||j)return;let Q=vv(I.deltaX,I.deltaY,I.deltaMode,b.clientHeight,I.shiftKey),ve=I.ctrlKey||I.metaKey,we=performance.now();if(we-N>220&&(z=!O&&oE(I.target,b,Q.x,Q.y,ve)),N=we,!z){if(I.preventDefault(),ve){let je=b.getBoundingClientRect();Me(u.current.scale*Math.exp(-Math.max(-35,Math.min(35,Q.y))*.009),{x:(I.clientX-je.left)/w()-K().offsetX,y:(I.clientY-je.top)/w()});return}if(O){Re(-Q.x/w(),-Q.y/w());return}C||(C=Ae()),(I.deltaMode!==0||Math.abs(I.deltaY)>=50&&Number.isInteger(I.deltaY))&&(C.released=C.stepped=!0,!C.delta.x&&!C.delta.y&&(C.anchor=null)),C.delta.x-=Q.x/w(),C.delta.y-=Q.y/w(),Ue(C),Y()}},ge=I=>{let Q=b.getBoundingClientRect();return{x:(I.clientX-Q.left)/w()-K().offsetX,y:(I.clientY-Q.top)/w()}},mt=()=>{let[I,Q]=[...ee.values()];return{distance:Math.max(1,Math.hypot(I.x-Q.x,I.y-Q.y)),center:{x:(I.x+Q.x)/2,y:(I.y+Q.y)/2}}},Pe=I=>{if(v(I.target)&&S&&(ae(),he(),V()),!(!v(I.target)||I.pointerType!=="touch"||I.target.closest('[data-surface-ui],iframe,[data-surface-gesture="own"],.react-flow'))&&(ee.set(I.pointerId,ge(I)),ee.size===2)){I.preventDefault(),I.stopPropagation(),ae(),F=null,b.dispatchEvent(new Event("showai-board-pinch")),j={...mt(),camera:{...u.current},anchor:M},de(null);for(let Q of ee.keys())b.setPointerCapture(Q)}},oe=I=>{let Q=Z(),ve=P();if(!v(I.target)||I.defaultPrevented||!mr(I.pointerType)&&I.target.closest('[data-drawing-active="true"]')||I.target.closest("[data-board-drawing-input]")&&!mr(I.pointerType)&&I.button!==1&&!Q)return;(S||C)&&ae();let we=I.target;if(ve&&we.closest("[data-surface-ui]")&&!f.contains(we))return;if(we.closest("[data-surface-handle]")&&!Q&&I.button!==1){I.button===0&&(y.current.cancel(),O=!0);return}if(we.closest('[data-surface-gesture="own"], .react-flow')||!Q&&I.button!==1&&we.closest("[data-surface-ui], [data-surface-handle]"))return;let je=I.pointerType==="touch";if(je&&(ee.set(I.pointerId,ge(I)),ee.size===2)){I.preventDefault(),ae(),F=null,j={...mt(),camera:{...u.current},anchor:M},de(null);for(let qa of ee.keys())b.setPointerCapture(qa);return}let ba=je&&!we.closest('button, a, input, textarea, select, summary, [role="slider"], iframe');F||I.button>1||zv(we)&&!ba&&!(I.button===1||ve||Q&&!hu(we))||we.closest("[data-surface-content]")&&!ba&&!Q&&I.button!==1||(je||(I.preventDefault(),b.focus({preventScroll:!0}),b.setPointerCapture(I.pointerId)),F={id:I.pointerId,x:I.clientX,y:I.clientY,touch:je,started:!je,gesture:Ae(),velocity:new fu},F.velocity.add(0,0,I.timeStamp),je||b.classList.add("is-panning"))},ne=I=>{if(O)return;if(ee.has(I.pointerId)&&ee.set(I.pointerId,ge(I)),j&&ee.size>=2){let we=mt(),je=d5(j.camera,j.center,j.camera.scale*we.distance/j.distance);u.current={...je,x:je.x+we.center.x-j.center.x,y:je.y+we.center.y-j.center.y},ye();return}if(!F||F.id!==I.pointerId)return;let Q=(I.clientX-F.x)/w(),ve=(I.clientY-F.y)/w();if(!F.started){if(Math.hypot(Q,ve)<8||!window.getSelection()?.isCollapsed)return;F.started=!0,b.setPointerCapture(I.pointerId),b.classList.add("is-panning")}F.gesture.delta={x:Q,y:ve},F.velocity.add(Q,ve,I.timeStamp),Ue(F.gesture)},G=(I,Q=!1)=>{if(O=!1,I?ee.delete(I.pointerId):ee.clear(),j){let ve=j;j=null,Q&&document.documentElement.dataset.native!=="ios"?(de(ve.anchor),Oe(ve.camera)):(de(null),he(),V())}if(F&&(!I||F.id===I.pointerId)){let ve=F;F=null,b.hasPointerCapture(ve.id)&&b.releasePointerCapture(ve.id),ve.started&&(Q&&document.documentElement.dataset.native!=="ios"?(de(ve.gesture.anchor),Oe(ve.gesture.origin)):ve.touch&&!Q&&xe(ve.velocity.release(I?.timeStamp??performance.now()))||(C=ve.gesture,yt()))}b.classList.remove("is-panning")},Ve=I=>{F?.touch&&F.id===I.pointerId&&ne(I),G(I)},Dt=I=>{j&&(I.preventDefault(),I.stopPropagation(),ne(I))},Sa=I=>{j?(I.preventDefault(),I.stopPropagation(),G(I,I.type==="pointercancel")):F||ee.delete(I.pointerId)};y.current.cancel=()=>{ae(),F&&b.hasPointerCapture(F.id)&&b.releasePointerCapture(F.id),F=null,j=null,ee.clear(),O=!1,z=!1,A=!1,b.classList.remove("is-panning","is-hand")},y.current.objectGesture=I=>{O=I,I||Xe()};let ia=I=>G(I,!0),zt=I=>{I.target===b&&(O=!1,F?.id===I.pointerId&&G(I,!0))},Li=I=>{I.preventDefault(),A=!0,b.classList.add("is-hand")},Ri=I=>{if(!v(I.target)||(S&&_e(),hu(I.target)&&C&&(ae(),Xe()),I.defaultPrevented||I.isComposing||hu(I.target))||(I.code==="Space"&&!zv(I.target)&&Li(I),I.key==="Escape"&&(F||j)&&G(void 0,!0),I.target!==b))return;let Q=I.shiftKey?320:120,ve={ArrowLeft:[Q,0],ArrowRight:[-Q,0],ArrowUp:[0,Q],ArrowDown:[0,-Q],PageUp:[0,b.clientHeight*.8],PageDown:[0,-b.clientHeight*.8]};if(ve[I.key]){I.preventDefault();let[we,je]=ve[I.key];Se({...u.current,x:u.current.x+we,y:u.current.y+je})}["+","=","-"].includes(I.key)&&!I.metaKey&&!I.ctrlKey&&!I.altKey&&(I.preventDefault(),Me(u.current.scale*(I.key==="-"?1/1.2:1.2))),(I.key==="0"&&!I.shiftKey&&!I.metaKey||I.key==="Home")&&(I.preventDefault(),ie())},fc=I=>{I.code!=="Space"||A||!q||!i.current||I.defaultPrevented||I.repeat||b.contains(I.target)||I.target!==document.body&&I.target!==document.documentElement||Li(I)},Pi=()=>q=!0,Rr=()=>q=!1,Al=I=>{I.code==="Space"&&(A=!1,b.classList.remove("is-hand"))},Lo=()=>{A=!1,b.classList.remove("is-hand"),G(void 0,!0),C&&yt(),S&&(ae(),he(),V())},Ml=()=>{document.visibilityState==="hidden"&&(y.current.cancel(),V())},Il=()=>{if(matchMedia("print").matches||!x.scrollTop&&!x.scrollLeft)return;let I=x.scrollLeft,Q=x.scrollTop;if(x.scrollTop=0,x.scrollLeft=0,!!i.current){if(S){ye();return}ae(),u.current={...u.current,x:u.current.x-I,y:u.current.y-Q},Xe()}},Bi=b.getBoundingClientRect(),Ut=new ResizeObserver(I=>{if(l.current.anchorScreen&&I.some(Q=>Q.target===b)){let Q=b.getBoundingClientRect(),ve=w(),we=(Bi.left-Q.left)/ve,je=(Bi.top-Q.top)/ve;Bi=Q,(we||je)&&(u.current={...u.current,x:u.current.x+we,y:u.current.y+je},he())}!C&&!F&&!j&&!S&&!O&&Xe()});Ut.observe(b);let Ro=new Set,gc=()=>{let I=new Set([...f.querySelectorAll("[data-surface-id]")].filter(Q=>Q.closest(".surface-world")===f&&Q.closest("[data-container-root]")===f.closest("[data-container-root]")));for(let Q of Ro)I.has(Q)||(Ut.unobserve(Q),Ro.delete(Q));for(let Q of I)Ro.has(Q)||(Ut.observe(Q),Ro.add(Q));O||Xe()};return y.current.refresh=gc,b.addEventListener("wheel",Ce,{passive:!1}),b.addEventListener("pointerdown",Pe,!0),b.addEventListener("pointermove",Dt,!0),b.addEventListener("pointerup",Sa,!0),b.addEventListener("pointercancel",Sa,!0),b.addEventListener("pointerdown",oe),b.addEventListener("pointermove",ne),b.addEventListener("pointerup",Ve),b.addEventListener("pointercancel",ia),b.addEventListener("lostpointercapture",zt),b.addEventListener("keydown",Ri),b.addEventListener("pointerenter",Pi),b.addEventListener("pointerleave",Rr),x.addEventListener("scroll",Il),window.addEventListener("keydown",fc),window.addEventListener("keyup",Al),window.addEventListener("blur",Lo),document.addEventListener("visibilitychange",Ml),gc(),()=>{V(),Ut.disconnect(),cancelAnimationFrame(H),cancelAnimationFrame(S),clearTimeout(k),b.removeEventListener("wheel",Ce),b.removeEventListener("pointerdown",Pe,!0),b.removeEventListener("pointermove",Dt,!0),b.removeEventListener("pointerup",Sa,!0),b.removeEventListener("pointercancel",Sa,!0),b.removeEventListener("pointerdown",oe),b.removeEventListener("pointermove",ne),b.removeEventListener("pointerup",Ve),b.removeEventListener("pointercancel",ia),b.removeEventListener("lostpointercapture",zt),b.removeEventListener("keydown",Ri),b.removeEventListener("pointerenter",Pi),b.removeEventListener("pointerleave",Rr),x.removeEventListener("scroll",Il),window.removeEventListener("keydown",fc),window.removeEventListener("keyup",Al),window.removeEventListener("blur",Lo),document.removeEventListener("visibilitychange",Ml)}},[]),(0,Ga.useEffect)(()=>{y.current.refresh()},[e]),(0,Ga.useEffect)(()=>{a||y.current.cancel()},[a]),{rootRef:s,scrollRef:c,worldRef:d,scale:g,camera:u,controls:y}}ct(`.surface-editor-shell{position:relative;height:100%;min-height:0;flex:1}.surface-extra-actions{display:contents}.page-surface{position:relative;height:100%;min-height:0;flex:1;overflow:clip;isolation:isolate;background:var(--paper, var(--bg));outline-offset:-3px;touch-action:none;--board-inv: calc(var(--board-inv-outer, 1) / var(--board-zoom, 1))}.surface-scroll{position:absolute;inset:0;overflow:hidden;overscroll-behavior:contain;touch-action:none;overflow-anchor:none}.surface-world{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0;will-change:transform;--board-inv-outer: var(--board-inv)}.agent-reference-picker{position:absolute;inset:0;z-index:80;cursor:crosshair;touch-action:none}.agent-reference-hint{position:absolute;top:54px;left:50%;transform:translate(-50%);padding:8px 12px;border-radius:9px;background:var(--paper, #fff);border:1px solid var(--line, #ddd);box-shadow:0 3px 18px #0001;font-size:12px;pointer-events:none}.agent-reference-marquee{position:absolute;border:1.5px dashed #4585ed;background:#4585ed12;pointer-events:none}.agent-reference-preview{position:absolute;left:0;top:0;overflow:visible;pointer-events:none;z-index:30}.agent-reference-preview rect,.agent-reference-preview circle,.agent-reference-preview path{fill:#4585ed0b;stroke:#4585ed;stroke-width:1.5px;stroke-dasharray:5 4}.surface-object.is-container:has(>.surface-object-content>.container-page[data-frameless=true]){border-color:transparent;background:transparent;box-shadow:none}.container-page[data-frameless=true]{background:transparent;border:0;box-shadow:none}.surface-metadata{position:absolute;left:22px;top:14px;z-index:15;max-width:min(50%,480px);color:var(--muted);background:var(--paper, var(--bg))}.surface-page-title,.surface-metadata .portable-title{display:block;width:100%;font:inherit;font-size:14px;font-weight:550;border:0;background:transparent;resize:none;padding:4px;margin:0;height:auto;line-height:1.5}.surface-object{border:1px solid transparent;border-radius:10px;background:transparent}.surface-object:has(>.surface-object-content>.sb-media),.surface-object:has(>.surface-object-content>.sb-pdf){border:0}.surface-object:has(>.surface-object-content>.sb-media)>.surface-object-content,.surface-object:has(>.surface-object-content>.sb-pdf)>.surface-object-content{padding:0}.surface-object-content>.sb-media,.surface-object-content>.sb-pdf{margin:0}.surface-object:has(>.surface-object-content>.sb-media)>.surface-object-header,.surface-object:has(>.surface-object-content>.sb-pdf)>.surface-object-header{position:absolute;left:0;bottom:100%;opacity:0;pointer-events:none}.surface-object:has(>.surface-object-content>.sb-media).is-selected>.surface-object-header,.surface-object:has(>.surface-object-content>.sb-pdf).is-selected>.surface-object-header,.surface-object:has(>.surface-object-content>.sb-media)>.surface-object-header:focus-within,.surface-object:has(>.surface-object-content>.sb-pdf)>.surface-object-header:focus-within{opacity:1;pointer-events:auto}.surface-object:has(>.surface-object-content>.sb-media)>.surface-object-header .surface-object-grip>span,.surface-object:has(>.surface-object-content>.sb-pdf)>.surface-object-header .surface-object-grip>span{display:none}.surface-object:focus-within,.surface-object.is-moving{z-index:2}.surface-object.is-moving{user-select:none}.surface-object[data-erasing=true]{opacity:.35!important}.board-eraser-cursor{fill:#64748b18;stroke:#64748b;stroke-width:1;pointer-events:none}.surface-object-content{padding:18px 28px 26px;min-width:0}.surface-object.is-region>.surface-object-content{padding:26px 44px 44px}.surface-object-header{display:flex;gap:4px;align-items:center;min-height:32px;padding:4px 7px;color:var(--muted);font-size:11px}.surface-object-header button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;padding:4px;border-radius:4px;font-size:11px}.surface-object-header .surface-object-grip{flex:1;justify-content:flex-start;text-align:left;min-width:0}.surface-object-grip span{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.surface-object-grip[data-surface-handle]{cursor:grab;touch-action:none}.surface-object-resize{position:absolute;right:0;bottom:0;padding:4px 7px;border:0;color:var(--muted);cursor:ew-resize;touch-action:none;border-radius:5px}.surface-object-content .document-content{min-height:80px}.surface-layout-flow>*+*{margin-top:16px}.surface-layout-grid{display:grid;align-items:start}.surface-layout-free{position:relative}.surface-layout-free>.surface-object{max-width:none}.surface-toolbar{position:absolute;z-index:80;bottom:20px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:2px;padding:5px;max-width:calc(100% - 24px);border:1px solid var(--line, var(--border));border-radius:12px;background:var(--paper, var(--bg));box-shadow:0 4px 20px #0000000a;flex-wrap:wrap;justify-content:center;width:max-content}.surface-toolbar button,.surface-toolbar summary{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;min-width:32px;padding:6px 9px;border:0;border-radius:7px;font-size:12px;white-space:nowrap;color:var(--text);cursor:pointer}.surface-toolbar button:disabled{opacity:.35;cursor:default}.surface-toolbar summary::-webkit-details-marker{display:none}.surface-toolbar summary:hover{background:var(--hover)}.surface-toolbar .surface-zoom{min-width:48px;padding:6px 2px;font-variant-numeric:tabular-nums}.surface-toolbar-divider{width:1px;height:18px;background:var(--line, var(--border));margin:0 3px;flex-shrink:0}.surface-popover-anchor{position:relative}.surface-navigation,.surface-add-menu{position:absolute;bottom:44px;left:0;width:280px;max-height:min(480px,70dvh);overflow:auto;background:var(--paper, var(--bg));border:1px solid var(--line, var(--border));border-radius:12px;box-shadow:0 8px 36px #00000012;padding:10px}.surface-add-menu{width:160px;left:auto;right:0;display:grid}.surface-navigation strong{display:block;font-size:12px;color:var(--muted);margin:7px 8px}.surface-navigation p{font-size:12px;margin:8px}.surface-navigation-row{display:flex;align-items:center}.surface-navigation-row>button:first-child{flex:1;justify-content:flex-start;overflow:hidden;text-overflow:ellipsis}.surface-navigation form{margin-top:12px;padding-top:10px;border-top:1px solid var(--line, var(--border))}.surface-navigation input,.surface-inspector input,.surface-inspector select{width:100%;border:1px solid var(--line, var(--border));padding:7px 8px;font-size:13px;background:var(--paper, var(--bg));border-radius:6px}.surface-empty{position:absolute;left:50%;top:42%;transform:translate(-50%,-50%);color:var(--muted);font-size:14px;text-align:center}.surface-empty button{display:inline-flex;gap:8px;align-items:center;border:1px solid var(--line, var(--border));border-radius:8px;padding:9px 14px;color:var(--text)}.surface-inspector{position:absolute;right:16px;top:56px;width:250px;max-height:calc(100% - 150px);overflow:auto;z-index:25;background:var(--paper, var(--bg));border:1px solid var(--line, var(--border));border-radius:12px;padding:14px;box-shadow:0 8px 32px #0000000a;font-size:13px}.surface-inspector header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.surface-inspector label{display:grid;gap:6px;margin:12px 0;color:var(--muted)}.surface-inspector-actions{display:flex;gap:6px}.surface-inspector button{padding:6px;border-radius:5px}.surface-error{position:absolute;z-index:35;bottom:80px;left:24px;background:var(--paper);border:1px solid var(--line);padding:10px 14px;border-radius:8px;font-size:13px}.page-surface.is-hand,.page-surface.is-hand .surface-scroll{cursor:grab}.page-surface.is-panning,.page-surface.is-panning *{cursor:grabbing!important;user-select:none!important}.page-surface.is-panning iframe,.surface-object.is-moving iframe{pointer-events:none}.surface-template{height:580px;max-height:70dvh}.studio-scroll.has-page-surface{position:relative;overflow:hidden;min-height:0}.studio-scroll.has-page-surface>.surface-editor-shell{position:absolute;inset:0}.canvas-app:has(.surface-editor-shell){height:100dvh;display:flex;flex-direction:column}.portable-app:has(>.page-surface){height:100dvh}@media(max-width:640px){.surface-toolbar{bottom:12px}.surface-toolbar button,.surface-toolbar summary{padding:6px}.surface-inspector{width:220px;right:10px}.surface-metadata{left:10px}.surface-navigation{width:255px}}@media print{.portable-app:has(>.page-surface),.page-surface,.surface-editor-shell{height:auto;overflow:visible}.surface-scroll,.surface-world,.surface-metadata{position:static;width:auto;height:auto;transform:none!important}.surface-world{will-change:auto}.surface-toolbar,.surface-object-header,.surface-object-resize,.surface-inspector,.surface-empty{display:none}.surface-object{position:static!important;width:auto!important;min-height:0!important;left:auto!important;top:auto!important;margin:12px 0;border:0!important;break-inside:auto}.surface-layout-grid{display:block}.surface-layout-free{min-height:0!important}.surface-object-content,.surface-object.is-region>.surface-object-content{padding:0}}.surface-reading>.surface-object{width:100%}.surface-reading-heading .portable-title{font-size:18px;color:var(--muted);margin-bottom:28px}.surface-reading .surface-object-content{padding-left:0;padding-right:0}@media(max-width:640px){.surface-reading .surface-layout-grid{grid-template-columns:1fr!important}}.surface-empty-region{min-height:88px;width:100%;padding:18px;color:var(--muted);border-radius:8px;font-size:13px}.surface-image{display:block;width:100%;height:auto;border-radius:4px}.surface-editor-shell{display:flex;min-width:0}.page-surface{min-width:0}.surface-inspector{position:relative;flex:0 0 250px;right:auto;top:auto;margin:56px 16px 80px 0;align-self:flex-start}@media(max-width:640px){.surface-inspector{position:absolute;top:auto;bottom:70px;right:10px;margin:0;width:min(280px,calc(100% - 20px));max-height:55%}}.board-snap-guides{position:absolute;inset:0;width:1px;height:1px;overflow:visible;pointer-events:none;z-index:30;stroke:#e06b52;stroke-width:1}.board-marquee{position:absolute;pointer-events:none;border:calc(1px * var(--board-inv, 1)) solid #467de3;background:#467de31a;z-index:30}.surface-object-rotate{position:absolute;left:calc(50% - 12px * var(--board-inv, 1));top:calc(-44px * var(--board-inv, 1));width:calc(24px * var(--board-inv, 1));height:calc(24px * var(--board-inv, 1));padding:0;font-size:calc(13px * var(--board-inv, 1));line-height:1;border:calc(1px * var(--board-inv, 1)) solid var(--border, #ccc);border-radius:50%;background:var(--panel, white);color:var(--text, #252629);cursor:grab;z-index:12;touch-action:none}.board-selection-count{padding:0 6px;font-size:12px;white-space:nowrap}.board-group-outline{position:absolute;pointer-events:none;z-index:13;outline:calc(1.5px * var(--board-inv, 1)) solid #467de3}.board-style-controls{display:flex;align-items:center;gap:10px;padding:2px 4px}.board-component-actions{display:flex;align-items:center;gap:4px}.board-component-actions:empty{display:none}.board-component-actions[hidden]{display:none}.board-component-actions .sb-actions{position:static;display:flex;opacity:1;pointer-events:auto}.board-component-actions .sb-g2-toolbar{margin:0;padding:0 6px}.board-component-settings{position:absolute;bottom:calc(100% + 10px);right:0;width:min(420px,calc(100vw - 32px));max-height:min(560px,65dvh);overflow:auto;padding:12px;border:1px solid var(--line, var(--border));border-radius:12px;background:var(--paper, var(--bg));box-shadow:0 8px 32px #00000012;font-size:13px}.board-component-settings[hidden]{display:none}.board-component-settings :is(.sb-editor-panel,.sb-g2-editor){margin:0}.board-component-settings button{white-space:normal}.board-style-controls label{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;white-space:nowrap}.board-style-controls input[type=color]{width:24px;height:24px;padding:3px;border:1px solid var(--line, var(--border));border-radius:50%;background:transparent;cursor:pointer;overflow:hidden}.board-style-controls input[type=color]::-webkit-color-swatch-wrapper{padding:0}.board-style-controls input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}.board-style-controls input[type=color]::-moz-color-swatch{border:0;border-radius:50%}.board-stroke-slider{position:relative;display:block;width:80px;height:24px}.board-stroke-track{width:100%;height:100%;fill:var(--text);opacity:.18;pointer-events:none}.board-stroke-slider input[type=range]{position:absolute;inset:0;appearance:none;width:100%;height:24px;margin:0;padding:0;border:0;background:transparent;cursor:ew-resize}.board-stroke-slider input[type=range]::-webkit-slider-runnable-track{height:24px;background:transparent}.board-stroke-slider input[type=range]::-moz-range-track{height:24px;background:transparent}.board-stroke-slider input[type=range]::-webkit-slider-thumb{appearance:none;width:16px;height:16px;margin-top:4px;border:2px solid var(--paper, var(--bg));border-radius:50%;background:var(--text);box-shadow:0 0 0 1px var(--line, var(--border))}.board-stroke-slider input[type=range]::-moz-range-thumb{box-sizing:border-box;width:16px;height:16px;border:2px solid var(--paper, var(--bg));border-radius:50%;background:var(--text);box-shadow:0 0 0 1px var(--line, var(--border))}.board-stroke-value-rail{position:absolute;inset:0 8px;pointer-events:none}.board-stroke-value-rail output{position:absolute;bottom:calc(100% + 7px);transform:translate(-50%);padding:3px 6px;border:1px solid var(--line, var(--border));border-radius:5px;background:var(--paper, var(--bg));color:var(--text);font-size:11px;font-variant-numeric:tabular-nums;box-shadow:0 2px 8px #0000000a;visibility:hidden}.board-stroke-slider[data-active] output{visibility:visible}.board-style-controls button{min-width:24px;min-height:26px;padding:3px}.container-workspace .container-inspector.board-bottom-inspector{position:absolute;z-index:25;right:12px;bottom:90px;top:auto;margin:0;width:min(280px,calc(100% - 24px));max-height:calc(100% - 160px);overflow:auto}.page-surface .surface-object.is-region{border-color:var(--line, var(--border))}.page-surface .surface-object.is-hovered:not(.is-drawing){outline:calc(1px * var(--board-inv, 1)) solid #467de380;outline-offset:calc(2px * var(--board-inv, 1))}.surface-world>.surface-object.is-selected:not(.is-drawing),.surface-world .surface-layout-free>.surface-object.is-selected:not(.is-drawing){outline:calc(1.5px * var(--board-inv, 1)) solid #467de3;outline-offset:calc(2px * var(--board-inv, 1))}.surface-world .surface-object.is-bind-target:not(.is-drawing){outline:calc(2px * var(--board-inv, 1)) solid #467de3;outline-offset:calc(3px * var(--board-inv, 1))}.surface-world .surface-object.is-bind-target.is-drawing .board-drawing{filter:drop-shadow(0 0 2px #467de3)}.board-lock-badge{position:absolute;top:calc(-10px * var(--board-inv, 1));right:calc(-10px * var(--board-inv, 1));display:grid;place-items:center;width:calc(20px * var(--board-inv, 1));height:calc(20px * var(--board-inv, 1));border-radius:50%;background:#467de3;color:#fff;z-index:16;pointer-events:none}.board-lock-badge svg{width:calc(11px * var(--board-inv, 1));height:calc(11px * var(--board-inv, 1))}.page-surface.has-drawing-hit .board-drawing-input{cursor:move}@media(max-width:640px){.surface-toolbar{bottom:10px}.board-style-controls{flex-wrap:wrap;justify-content:center}}body:has([data-showai-development]) .surface-toolbar{bottom:36px}@media print{.board-group-outline,.board-bottom-inspector{display:none!important}}@media print{.surface-object-rotate,.board-snap-guides,.board-marquee{display:none!important}}.board-arrow-endpoint{position:absolute;transform:translate(-50%,-50%);width:calc(13px * var(--board-inv, 1));height:calc(13px * var(--board-inv, 1));padding:0;border:calc(2px * var(--board-inv, 1)) solid #467de3;border-radius:50%;background:#fff;cursor:crosshair;touch-action:none;z-index:14}@media print{.board-arrow-endpoint{display:none!important}}.board-resize-handle{position:absolute;width:calc(28px * var(--board-inv, 1));height:calc(28px * var(--board-inv, 1));padding:0;border:0;background:transparent;z-index:15;pointer-events:auto;touch-action:none;transform:translate(-50%,-50%)}.board-resize-handle:after{content:"";position:absolute;width:calc(10px * var(--board-inv, 1));height:calc(10px * var(--board-inv, 1));left:50%;top:50%;transform:translate(-50%,-50%);border:calc(1px * var(--board-inv, 1)) solid #467de3;border-radius:calc(2px * var(--board-inv, 1));background:#fff;pointer-events:none}@media(pointer:coarse){.board-resize-handle{width:calc(40px * var(--board-inv, 1));height:calc(40px * var(--board-inv, 1))}}.board-resize-handle.handle-nw{left:0;top:0;cursor:nwse-resize}.board-resize-handle.handle-n{left:50%;top:0;cursor:ns-resize}.board-resize-handle.handle-ne{left:100%;top:0;cursor:nesw-resize}.board-resize-handle.handle-e{left:100%;top:50%;cursor:ew-resize}.board-resize-handle.handle-se{left:100%;top:100%;cursor:nwse-resize}.board-resize-handle.handle-s{left:50%;top:100%;cursor:ns-resize}.board-resize-handle.handle-sw{left:0;top:100%;cursor:nesw-resize}.board-resize-handle.handle-w{left:0;top:50%;cursor:ew-resize}@media print{.board-resize-handle{display:none!important}}.surface-object:not(.is-selected)>.board-resize-handle{display:none}.surface-object.is-hovered:not(.is-selected):not(.is-locked)>.board-resize-handle.handle-se,.surface-object[data-board-fixed-height=false].is-hovered:not(.is-selected):not(.is-locked)>.board-resize-handle.handle-e{display:block;opacity:.5}.page-surface.has-object-menu>.surface-scroll>.surface-world>.surface-object>:is(.surface-object-header,.board-resize-handle,.surface-object-rotate){visibility:hidden;pointer-events:none}.surface-world .surface-object.is-region:has(>.surface-object-content>.surface-layout-free),.surface-world .surface-object.is-region>.surface-object-content:has(>.surface-layout-free),.surface-world .surface-object.is-region .surface-layout-free{pointer-events:none}.surface-world .surface-object.is-region .surface-layout-free>*,.surface-world .surface-object.is-region>[data-surface-ui]{pointer-events:auto}.surface-grid{display:none}.page-surface[data-native-board-active=true]>.surface-scroll>:is(.surface-world,.surface-grid){visibility:hidden}.page-surface.has-board-grid>.surface-scroll>.surface-grid{display:block;position:absolute;inset:calc(0px - var(--board-grid-size, 24px));pointer-events:none;contain:strict;will-change:transform;background-image:radial-gradient(circle,color-mix(in srgb,var(--text, #252629) 18%,transparent) 1px,transparent 1.4px);background-size:var(--board-grid-size, 24px) var(--board-grid-size, 24px)}.page-surface.is-hand .surface-world *,.page-surface.is-hand-tool,.page-surface.is-hand-tool .surface-world *{cursor:grab!important}.page-surface.is-hand-tool.is-panning,.page-surface.is-hand-tool.is-panning *{cursor:grabbing!important}.page-surface.is-text-tool>.surface-scroll,.page-surface.is-text-tool .surface-world>.surface-object{cursor:text}.surface-empty.is-hint{pointer-events:none;font-size:13px;opacity:.75}.board-align-menu>summary::-webkit-details-marker{display:none}.board-align-options{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translate(-50%);display:grid;grid-template-columns:repeat(4,30px);gap:2px;padding:4px;border:1px solid var(--line, var(--border));border-radius:10px;background:var(--paper, var(--bg));box-shadow:0 8px 32px #00000012}.board-align-options button{display:inline-flex;align-items:center;justify-content:center;height:30px;border:0;border-radius:6px;color:var(--text)}.board-align-options button:hover{background:var(--hover)}.board-align-options button:disabled{opacity:.35}.board-minimap{position:absolute;z-index:19;right:16px;bottom:20px;border:1px solid var(--line, var(--border));border-radius:10px;background:var(--paper, var(--bg));box-shadow:0 4px 20px #0000000f;cursor:pointer;touch-action:none}.board-minimap-object{fill:color-mix(in srgb,var(--text, #252629) 22%,transparent)}.board-minimap-view{fill:#467de314;stroke:#467de3;stroke-width:1}body:has([data-showai-development]) .board-minimap{bottom:36px}@media(max-width:640px){.board-minimap{display:none}}@media print{.board-minimap,.board-lock-badge{display:none!important}.page-surface.has-board-grid>.surface-scroll>.surface-grid{display:none}}html[data-native=ios] .board-resize-handle{width:calc(40px * var(--board-inv, 1));height:calc(40px * var(--board-inv, 1))}.page-surface .surface-object.is-region.is-ink-archive-group,.surface-object.is-region.is-ink-archive-group{border:0;border-radius:0;background:transparent;box-shadow:none;min-width:1px;min-height:1px;overflow:visible;margin:0}.surface-object.is-region.is-ink-archive-group>.surface-object-content{position:relative;width:100%;height:100%;padding:0!important;min-width:1px;min-height:1px;overflow:visible}.ink-archive-local-space{position:absolute;left:0;top:0}
|
|
32
|
-
`);var uc=U(Ne(),1),Lv=U(Gn(),1);var m5="showai:agent-reference-request",Iv="showai:agent-reference-picked",f5="showai:agent-reference-display";var Nv=rt("assistant",{"zh-CN":{"reference.pick":"\u6807\u8BB0\u53C2\u8003\u4F4D\u7F6E","reference.pickHint":"\u70B9\u51FB\u4E00\u4E2A\u4F4D\u7F6E\uFF0C\u6216\u62D6\u52A8\u9009\u62E9\u53C2\u8003\u533A\u57DF \xB7 Esc \u53D6\u6D88","reference.point":"\u53C2\u8003\u4F4D\u7F6E","reference.region":"\u53C2\u8003\u533A\u57DF","reference.remove":"\u79FB\u9664\u4F4D\u7F6E\u53C2\u8003","reference.noCanvas":"\u8BF7\u5148\u6253\u5F00\u767D\u677F\uFF0C\u518D\u6807\u8BB0\u53C2\u8003\u4F4D\u7F6E\u3002","pageReference.copied":"\u5DF2\u4FDD\u5B58 \xB7 \u5F15\u7528\u7248\u672C {version} \xB7 \u5DF2\u590D\u5236\uFF0C\u53EF\u7C98\u8D34\u5230 Claude Code \u6216 Codex","pageReference.pageChanged":"\u9875\u9762\u5DF2\u5207\u6362\uFF0C\u8BF7\u91CD\u65B0\u5F15\u7528\u3002","pageReference.untitled":"\u672A\u547D\u540D\u9875\u9762","pageReference.headingSelection":"ShowAI \u5F15\u7528 \xB7 \u9009\u533A\uFF08{count} \u4E2A\u5757\uFF09\xB7\u300A{title}\u300B\xB7 \u7248\u672C {version}","pageReference.headingBoard":"ShowAI \u5F15\u7528 \xB7 Board \u4E2D {count} \u4E2A\u5BF9\u8C61 \xB7\u300A{title}\u300B\xB7 \u7248\u672C {version}","pageReference.headingBoardAll":"ShowAI \u5F15\u7528 \xB7 \u6574\u4E2A Board \xB7\u300A{title}\u300B\xB7 \u7248\u672C {version}","pageReference.headingPage":"ShowAI \u5F15\u7528 \xB7 \u6574\u9875 \xB7\u300A{title}\u300B\xB7 \u7248\u672C {version}","pageReference.copyPage":"\u590D\u5236\u9875\u9762\u5F15\u7528","componentState.remove":"\u79FB\u9664\u7EC4\u4EF6\u72B6\u6001\uFF0C\u4E0D\u968F\u6D88\u606F\u53D1\u9001","componentState.removeNamed":"\u79FB\u9664\u7EC4\u4EF6\u72B6\u6001\uFF1A{name}","componentState.sent":"\u968F\u6D88\u606F\u53D1\u9001\u7684\u7EC4\u4EF6\u5F53\u524D\u72B6\u6001\uFF08\u672A\u4FDD\u5B58\u5230\u9875\u9762\uFF09","panel.title":"AI \u5BF9\u8BDD","panel.toggle":"AI \u5BF9\u8BDD","panel.button":"Agent","panel.close":"\u5173\u95ED AI \u5BF9\u8BDD","panel.resize":"\u8C03\u6574 AI \u5BF9\u8BDD\u5BBD\u5EA6","panel.conversations":"\u5BF9\u8BDD\u8BB0\u5F55","panel.new":"\u65B0\u5BF9\u8BDD","panel.delete":"\u5220\u9664\u5BF9\u8BDD","panel.deleteConfirm":"\u5220\u9664\u300C{title}\u300D\u7684\u5168\u90E8\u8BB0\u5F55\uFF1F\u9875\u9762\u5185\u5BB9\u4E0D\u53D7\u5F71\u54CD\u3002","panel.deleteYes":"\u5220\u9664","panel.cancel":"\u53D6\u6D88","panel.empty":"\u4E5F\u53EF\u4EE5\u9009\u4E2D\u9875\u9762\u4E2D\u7684\u6587\u5B57\uFF0C\u9009\u62E9\u300C\u8BA9 AI \u5904\u7406\u300D\u3002","panel.noProject":"\u6253\u5F00\u9879\u76EE\u4E2D\u7684\u9875\u9762\u540E\u5373\u53EF\u4F7F\u7528 AI\u3002","panel.agentLocal":"\u6267\u884C\uFF1A{name}","panel.agentApi":"\u6267\u884C\uFF1A{source} \xB7 {model}","panel.settings":"Agent \u8BBE\u7F6E","panel.placeholder":"\u5411 AI \u63D0\u51FA\u8981\u6C42\uFF0CEnter \u53D1\u9001","panel.send":"\u53D1\u9001","panel.stop":"\u505C\u6B62","panel.steps":"\u6267\u884C\u6B65\u9AA4 \xB7 {count}","panel.running":"\u6B63\u5728\u6267\u884C\u2026","panel.connecting":"\u6B63\u5728\u8FDE\u63A5 Agent\u2026","panel.changed":"\u4FEE\u6539\u4E86 {count} \u5904","panel.changedPage":"\u9875\u9762\u5DF2\u4FEE\u6539","panel.locate":"\u5B9A\u4F4D\u4FEE\u6539","panel.undo":"\u64A4\u9500\u672C\u8F6E","panel.undone":"\u5DF2\u64A4\u9500","panel.reject":"\u62D2\u7EDD","panel.saveFirst":"\u9875\u9762\u6709\u672A\u4FDD\u5B58\u6216\u51B2\u7A81\u7684\u4FEE\u6539\uFF0C\u8BF7\u5148\u5904\u7406\u540E\u518D\u53D1\u9001\u3002","panel.startedNew":"\u65B0\u5BF9\u8BDD","panel.sendTo":"\u53D1\u9001\u5230\u300C{title}\u300D","panel.sendToNew":"\u5C06\u5F00\u59CB\u65B0\u5BF9\u8BDD","panel.useNew":"\u6539\u4E3A\u65B0\u5BF9\u8BDD","panel.useCurrent":"\u7EE7\u7EED\u5F53\u524D\u5BF9\u8BDD","target.page":"\u6574\u4E2A\u9875\u9762","target.pageNamed":"\u9875\u9762\u300C{title}\u300D","target.text":"\u9009\u4E2D\u6587\u5B57","target.blocks":"{count} \u4E2A\u5185\u5BB9\u5757","target.board":"{count} \u4E2A\u767D\u677F\u5BF9\u8C61","target.remove":"\u6539\u4E3A\u6574\u4E2A\u9875\u9762","composer.label":"\u8BA9 AI \u5904\u7406","composer.close":"\u5173\u95ED","quick.label":"\u5FEB\u6377\u64CD\u4F5C","quick.polish":"\u6DA6\u8272","quick.polishPrompt":"\u6DA6\u8272\u6539\u5199\u6240\u9009\u5185\u5BB9\uFF0C\u4FDD\u6301\u539F\u610F\u548C\u7ED3\u6784\u3002","quick.shorten":"\u7CBE\u7B80","quick.shortenPrompt":"\u7CBE\u7B80\u6240\u9009\u5185\u5BB9\uFF0C\u4FDD\u7559\u5173\u952E\u4FE1\u606F\u3002","quick.expand":"\u6269\u5199","quick.expandPrompt":"\u6269\u5199\u6240\u9009\u5185\u5BB9\uFF0C\u8865\u5145\u7EC6\u8282\u548C\u4F8B\u5B50\uFF0C\u4FDD\u6301\u539F\u6709\u8BED\u6C14\u3002","quick.translate":"\u7FFB\u8BD1","quick.translatePrompt":"\u7FFB\u8BD1\u6240\u9009\u5185\u5BB9\u5E76\u66FF\u6362\u539F\u6587\uFF1A\u4E2D\u6587\u8BD1\u4E3A\u82F1\u6587\uFF0C\u5176\u4ED6\u8BED\u8A00\u8BD1\u4E3A\u4E2D\u6587\u3002","quick.visualize":"\u53EF\u89C6\u5316","quick.visualizePrompt":"\u628A\u6240\u9009\u5185\u5BB9\u6539\u6210\u5408\u9002\u7684\u53EF\u89C6\u5316\u7EC4\u4EF6\uFF08\u56FE\u8868\u3001\u6D41\u7A0B\u56FE\u6216\u8868\u683C\uFF09\uFF0C\u4FDD\u7559\u5168\u90E8\u4FE1\u606F\u3002","quick.explain":"\u89E3\u91CA","quick.explainPrompt":"\u89E3\u91CA\u6240\u9009\u5185\u5BB9\u7684\u542B\u4E49\u548C\u8981\u70B9\u3002\u53EA\u5728\u5BF9\u8BDD\u4E2D\u56DE\u7B54\uFF0C\u4E0D\u8981\u4FEE\u6539\u9875\u9762\u3002"},en:{"reference.pick":"Mark a reference location","reference.pickHint":"Click a point or drag a reference area \xB7 Esc to cancel","reference.point":"Reference point","reference.region":"Reference area","reference.remove":"Remove location reference","reference.noCanvas":"Open a Board before marking a reference location.","pageReference.copied":"Saved \xB7 referencing version {version} \xB7 copied to paste into Claude Code or Codex","pageReference.pageChanged":"The page changed. Reference it again.","pageReference.untitled":"Untitled page","pageReference.headingSelection":{one:"ShowAI reference \xB7 selection ({count} block) \xB7 \u201C{title}\u201D \xB7 version {version}",other:"ShowAI reference \xB7 selection ({count} blocks) \xB7 \u201C{title}\u201D \xB7 version {version}"},"pageReference.headingBoard":{one:"ShowAI reference \xB7 {count} Board object \xB7 \u201C{title}\u201D \xB7 version {version}",other:"ShowAI reference \xB7 {count} Board objects \xB7 \u201C{title}\u201D \xB7 version {version}"},"pageReference.headingBoardAll":"ShowAI reference \xB7 whole Board \xB7 \u201C{title}\u201D \xB7 version {version}","pageReference.headingPage":"ShowAI reference \xB7 whole page \xB7 \u201C{title}\u201D \xB7 version {version}","pageReference.copyPage":"Copy page reference","componentState.remove":"Remove this component state from the message","componentState.removeNamed":"Remove component state: {name}","componentState.sent":"Current component state sent with the message (not saved to the page)","panel.title":"AI chat","panel.toggle":"AI chat","panel.button":"Agent","panel.close":"Close AI chat","panel.resize":"Resize AI chat","panel.conversations":"Conversations","panel.new":"New conversation","panel.delete":"Delete conversation","panel.deleteConfirm":"Delete all records of \u201C{title}\u201D? Page content isn't affected.","panel.deleteYes":"Delete","panel.cancel":"Cancel","panel.empty":"You can also select text on the page and choose \u201CAsk AI\u201D.","panel.noProject":"Open a page in a project to use AI.","panel.agentLocal":"Runs with {name}","panel.agentApi":"Runs with {source} \xB7 {model}","panel.settings":"Agent settings","panel.placeholder":"Ask AI. Press Enter to send","panel.send":"Send","panel.stop":"Stop","panel.steps":"Steps \xB7 {count}","panel.running":"Working\u2026","panel.connecting":"Connecting to Agent\u2026","panel.changed":{one:"Changed {count} item",other:"Changed {count} items"},"panel.changedPage":"Page changed","panel.locate":"Show changes","panel.undo":"Undo this turn","panel.undone":"Undone","panel.reject":"Deny","panel.saveFirst":"The page has unsaved or conflicting changes. Resolve them before sending.","panel.startedNew":"New conversation","panel.sendTo":"Sends to \u201C{title}\u201D","panel.sendToNew":"Starts a new conversation","panel.useNew":"Use a new conversation","panel.useCurrent":"Continue the current conversation","target.page":"Whole page","target.pageNamed":"Page \u201C{title}\u201D","target.text":"Selected text","target.blocks":{one:"{count} block",other:"{count} blocks"},"target.board":{one:"{count} whiteboard object",other:"{count} whiteboard objects"},"target.remove":"Use the whole page","composer.label":"Ask AI","composer.close":"Close","quick.label":"Quick actions","quick.polish":"Polish","quick.polishPrompt":"Polish the selected content, keeping its meaning and structure.","quick.shorten":"Shorten","quick.shortenPrompt":"Shorten the selected content while keeping the key information.","quick.expand":"Expand","quick.expandPrompt":"Expand the selected content with details and examples in the same tone.","quick.translate":"Translate","quick.translatePrompt":"Translate the selected content in place: Chinese into English, other languages into Chinese.","quick.visualize":"Visualize","quick.visualizePrompt":"Turn the selected content into a suitable visual component (chart, flow diagram or table), keeping all information.","quick.explain":"Explain","quick.explainPrompt":"Explain what the selected content means and its key points. Answer in the conversation only; don't change the page."}});var g5=new Map,iE=new Set,Dv=()=>iE.forEach(e=>e());function Ov(e){let t=Symbol(),a=g5.get(e)??new Set;return a.add(t),g5.set(e,a),Dv(),()=>{a.delete(t),a.size||g5.delete(e),Dv()}}var _n=U(pe(),1);function Rv({pageId:e,surfaceId:t,enabled:a,root:n,world:o,point:r}){let i=ue(Nv),[l,s]=(0,uc.useState)(null),[c,d]=(0,uc.useState)(null),[u,p]=(0,uc.useState)(null);(0,uc.useEffect)(()=>{if(!a){s(null),p(null);return}let y=m=>{let v=m.detail;m.defaultPrevented||v?.pageId!==e||(m.preventDefault(),d(null),s(v.id))},b=m=>{let v=m.detail;v?.pageId===e&&d(v.reference?.surfaceId===t?v.reference:null)},x=m=>{m.key==="Escape"&&(s(null),p(null))};window.addEventListener(m5,y),window.addEventListener(f5,b),window.addEventListener("keydown",x);let f=Ov(e);return()=>{window.removeEventListener(m5,y),window.removeEventListener(f5,b),window.removeEventListener("keydown",x),f()}},[a,e,t]);let g=(y,b)=>{let x=n.current.getBoundingClientRect();return{x:y-x.left,y:b-x.top}};return(0,_n.jsxs)(_n.Fragment,{children:[c&&o.current&&(0,Lv.createPortal)((0,_n.jsx)("svg",{className:"agent-reference-preview",width:"1",height:"1","aria-hidden":"true",children:c.kind==="region"?(0,_n.jsx)("rect",{x:c.x,y:c.y,width:c.width,height:c.height,vectorEffect:"non-scaling-stroke"}):(0,_n.jsxs)("g",{transform:`translate(${c.x},${c.y})`,children:[(0,_n.jsx)("circle",{r:"12",vectorEffect:"non-scaling-stroke"}),(0,_n.jsx)("path",{d:"M-18 0H18M0-18V18",vectorEffect:"non-scaling-stroke"})]})}),o.current),a&&l&&(0,_n.jsxs)("div",{className:"agent-reference-picker","data-surface-ui":!0,role:"region","aria-label":i("reference.pick"),onPointerDown:y=>{if(y.button!==0)return;y.preventDefault(),y.stopPropagation(),y.currentTarget.setPointerCapture(y.pointerId);let b={x:y.clientX,y:y.clientY};p({start:b,end:b})},onPointerMove:y=>{u&&p({...u,end:{x:y.clientX,y:y.clientY}})},onPointerCancel:()=>{p(null),s(null)},onPointerUp:y=>{if(!u)return;y.preventDefault(),y.stopPropagation();let b=r(u.start.x,u.start.y),x=r(y.clientX,y.clientY),m=Math.hypot(y.clientX-u.start.x,y.clientY-u.start.y)>8?{surfaceId:t,kind:"region",x:Math.min(b.x,x.x),y:Math.min(b.y,x.y),width:Math.abs(x.x-b.x),height:Math.abs(x.y-b.y)}:{surfaceId:t,kind:"point",...b};d(m),window.dispatchEvent(new CustomEvent(Iv,{detail:{id:l,pageId:e,reference:m}})),p(null),s(null)},children:[(0,_n.jsx)("span",{className:"agent-reference-hint",children:i("reference.pickHint")}),u&&(0,_n.jsx)("span",{className:"agent-reference-marquee",style:{left:Math.min(g(u.start.x,u.start.y).x,g(u.end.x,u.end.y).x),top:Math.min(g(u.start.x,u.start.y).y,g(u.end.x,u.end.y).y),width:Math.abs(u.end.x-u.start.x),height:Math.abs(u.end.y-u.start.y)}})]})]})}var J=U(pe(),1),Pv='input,textarea,select,button,a,summary,[role="slider"],iframe,[data-surface-gesture="own"],.react-flow',lE={x:45,y:27},Bv={x:28,y:30},yu=null,b5="application/x-showai-board+json";function h5(e,t,a){let n=t===void 0?null:document.elementFromPoint(t,a)?.closest('[contenteditable="true"]'),o=n&&e.contains(n)?n:e.querySelector('[contenteditable="true"]');if(!o)return!1;o.focus({preventScroll:!0});let r=null;if(t!==void 0){let l=document;if(l.caretRangeFromPoint)r=l.caretRangeFromPoint(t,a);else{let s=l.caretPositionFromPoint?.(t,a);s&&(r=document.createRange(),r.setStart(s.offsetNode,s.offset))}}(!r||!o.contains(r.startContainer))&&(r=document.createRange(),r.selectNodeContents(o),r.collapse(!1));let i=window.getSelection();return i?.removeAllRanges(),i?.addRange(r),!0}function x5({children:e,boardDocument:t,geometry:a,containerId:n,onTransform:o,onDuplicate:r,onDeleteSelection:i,onCopyObjects:l,onPasteObjects:s,onReorder:c,onUngroup:d,onLock:u,ref:p,pageId:g,nodes:y,layoutKey:b,paths:x,views:f,header:m,selected:v,onSelect:T,onMove:w,onConnect:E,onRemove:L,onInspect:H,onViews:S,extraActions:k,enabled:M=!0,embedded:O=!0,printing:C=!1,onExpand:N,drawTool:z,drawColor:A="#252629",drawFillColor:q="none",drawStrokeWidth:P=2.5,drawPressure:Z=!0,onStyleChange:F,onLabel:ee,onTidy:j,onAddComponent:K,onOpenComponents:_,onDraw:$,onDrawExit:D,onToolChange:V}){let B=ue(tt),de=(0,Je.useContext)(ec),he=typeof document<"u"&&document.documentElement.dataset.native==="ios",[ye,_e]=(0,Je.useState)(null),[Oe,Xe]=(0,Je.useState)(null),yt=(0,Je.useRef)(ou()).current,[Y,ae]=(0,Je.useState)(null),xe=v===void 0?ye:v,Ae=T??_e,Ue=C6("board",`showai.viewport-lock.v1:board:${g.replace(/:(expanded|embedded)$/,"")}`),Se=O&&Ue.locked,da=z&&!["pan","eraser","lasso","text"].includes(z)?z:null,Oa=z==="pan"?"hand":z==="text"?"text":null,ie=(0,Je.useRef)(!1);ie.current=Oa==="hand";let{rootRef:fe,scrollRef:Me,worldRef:Re,camera:Ce,controls:ge,scale:mt}=Mv(b,w?`showai.viewport.v3:${g}`:void 0,M&&!Se,{reading:!w,anchorScreen:!O,panMode:ie}),[Pe,oe]=(0,Je.useState)(!1),ne=av({root:fe,world:Re,camera:Ce,document:t,boardId:n??"",tool:z,color:A,width:P,pressure:Z,ruler:Pe,enabled:M&&!Se&&!!$&&!C,onCamera:(h,R)=>ge.current.navigateTo(h,R),onClearSelection:()=>G.select(null),selection:()=>[...G.ids],onSelection:h=>G.selectIds(h),onLayout:h=>o?.(h,"native-board"),onDrawing:(h,R)=>$?.(h,R),onActivate:h=>N?.(h),fillColor:q,onShapeGesture:h=>{let R={clientX:h.x,clientY:h.y,altKey:!1,shiftKey:!1};h.phase==="began"?(G.select(h.id),G.start(h.id,"move",R)&&ge.current.objectGesture(!0)):h.phase==="cancelled"?(G.cancel(),ge.current.objectGesture(!1)):(G.update(R),h.phase==="ended"&&(G.finish(),ge.current.objectGesture(!1)))},onTool:h=>{if(h==="settings")fe.current?.querySelector(".board-color-picker > summary")?.click();else if(h==="select")V?.(null);else switch(h){case"pen":case"highlighter":case"eraser":case"rectangle":case"ellipse":case"arrow":case"region":case"pan":case"lasso":case"text":V?.(h)}}}),G=Xy({geometry:a,document:t,containerId:n,world:Re,camera:Ce,onTransform:Se?void 0:o,onSelect:Ae,selected:xe}),Ve=!!o&&!Se,Dt=()=>requestAnimationFrame(()=>fe.current?.focus({preventScroll:!0})),Sa=h=>{let R=r?.(h);R?.length&&(G.selectIds(R),Dt())},ia=h=>t?.layout?.[h],zt=[...G.ids],Li=zt.length>0&&zt.every(h=>ia(h)?.locked),Ri=zt.length===1&&t&&Ke(t,zt[0])?.node.type==="region"&&ia(zt[0])?.mode==="free"?zt[0]:null,fc=h=>{let R=h?Re.current?.querySelector(`[data-surface-id="${CSS.escape(h)}"]`):null,re=R?.querySelector(":scope > .surface-object-content .surface-layout-free");if(!R||!re||!R.offsetWidth)return lE;let ke=R.getBoundingClientRect(),Ee=re.getBoundingClientRect(),$e=ke.width/R.offsetWidth||1;return{x:(Ee.left-ke.left)/$e,y:(Ee.top-ke.top)/$e}},Pi=(h,R=!1)=>{let re=l?.(h);return re?(yu=re,R&&(i?.(h),G.select(null)),re):null},Rr=(0,Je.useRef)(null),Al=(h,R=Rr.current&&ge.current.point(Rr.current.x,Rr.current.y))=>{let re=s?.(h,R);re?.length&&(G.selectIds(re),Dt())},Lo=(h,R)=>h.length&&c?.(h,R),Ml=h=>{let R=zt.filter(Ee=>!ia(Ee)?.locked),re=zy(G.measured(R),h),ke={};for(let[Ee,$e]of Object.entries(re)){let Be=ia(Ee);Be&&(Math.abs($e.x)>1e-6||Math.abs($e.y)>1e-6)&&(ke[Ee]={...Be,x:Be.x+$e.x,y:Be.y+$e.y})}Object.keys(ke).length&&o?.(ke)},Il=h=>{let R=d?.(h,fc(h));R?.length&&(G.selectIds(R),Dt())},Bi=h=>h.length&&u?.(h,!h.every(R=>ia(R)?.locked)),[Ut,Ro]=(0,Je.useState)(null),gc=(h,R)=>{if(!o||Se||h.closest('input,textarea,select,iframe,video,audio,[contenteditable=true],[data-editor-keyboard-scope],[data-surface-gesture="own"],.react-flow'))return!1;let re=h.closest(".surface-object");if(!re||re.closest(".page-surface")!==fe.current)return!1;let ke=re.dataset.surfaceId,Ee=G.ids.has(ke)?[...G.ids]:[ke];return G.ids.has(ke)||G.select(ke),Ro({anchor:re,point:R,id:ke,ids:Ee,container:re.classList.contains("is-container")}),!0},I=(0,Je.useRef)(!1),Q=(0,Je.useRef)(null),ve=(0,Je.useRef)(null),we=(0,Je.useRef)({id:"",since:0,until:0}),je=(0,Je.useRef)(0),ba=(0,Je.useRef)(null),Po=(h,R,re)=>{let ke=null;if(h!==null&&Number.isFinite(h)&&Number.isFinite(R)){let Ee=G.hitTest(h,R);Ee&&Ee.id!==re&&!(Ee.node.type==="drawing"&&Ee.node.attrs?.tool==="arrow")&&(ke=Ee.element)}ke!==ba.current&&(ba.current?.classList.remove("is-bind-target"),ke?.classList.add("is-bind-target"),ba.current=ke)},qa=()=>{cancelAnimationFrame(je.current),ve.current?.classList.remove("is-hovered"),ve.current=null,fe.current?.classList.remove("has-drawing-hit")},Kt=(0,Je.useRef)({frame:0,x:0,y:0}),ua=()=>{cancelAnimationFrame(Kt.current.frame),Kt.current={frame:0,x:0,y:0}},ji=(h,R)=>{let re=fe.current;if(!re)return;let ke=re.getBoundingClientRect(),Ee=40,$e=16,Be=(Ie,Sn,Ca)=>Ca<Ie+Ee?Math.min(Ee,Ie+Ee-Ca)/Ee*$e:Ca>Sn-Ee?-(Math.min(Ee,Ca-(Sn-Ee))/Ee)*$e:0;if(Kt.current.x=Be(ke.left,ke.right,h),Kt.current.y=Be(ke.top,ke.bottom,R),(Kt.current.x||Kt.current.y)&&!Kt.current.frame){let Ie=()=>{let{x:Sn,y:Ca}=Kt.current;if(!Sn&&!Ca){Kt.current.frame=0;return}ge.current.panBy(Sn,Ca),Kt.current.frame=requestAnimationFrame(Ie)};Kt.current.frame=requestAnimationFrame(Ie)}},ha=()=>{let h=Q.current?.pointer;Q.current=null,ua(),G.cancel(),ge.current.objectGesture(!1),h!==void 0&&fe.current?.hasPointerCapture(h)&&fe.current.releasePointerCapture(h)},kn=(0,Je.useRef)(null),Pr=(h=!1)=>{let R=kn.current;R?.element.remove(),kn.current=null,ua(),h&&R&&G.selectIds(R.base),R&&fe.current?.hasPointerCapture(R.id)&&fe.current.releasePointerCapture(R.id)},$5=()=>{let h=kn.current;if(!h)return;let R=ge.current.point(h.last.x,h.last.y);h.next={x:Math.min(h.start.x,R.x),y:Math.min(h.start.y,R.y),width:Math.abs(R.x-h.start.x),height:Math.abs(R.y-h.start.y)},G.marquee(h.next,h.last.shift,h.base,h.last.wrap),Object.assign(h.element.style,{left:`${h.next.x}px`,top:`${h.next.y}px`,width:`${h.next.width}px`,height:`${h.next.height}px`})};(0,Je.useEffect)(()=>{let h=fe.current,R=re=>{re.target===h&&(Q.current?.moved&&G.update(Q.current.input),kn.current&&$5())};return h.addEventListener("showai:viewport-change",R),()=>h.removeEventListener("showai:viewport-change",R)}),(0,Je.useEffect)(()=>{let h=()=>{I.current=!1,Pr(!0),ha(),qa()};window.addEventListener("blur",h);let R=fe.current;return R?.addEventListener("showai-board-pinch",h),()=>{window.removeEventListener("blur",h),R?.removeEventListener("showai-board-pinch",h),h()}},[]);let[q5,F5]=(0,Je.useState)(!1),[W5,K5]=(0,Je.useState)(new Set),[W1,Y5]=(0,Je.useState)(""),[J5,aw]=(0,Je.useState)(()=>{try{return localStorage.getItem("showai.board-minimap")==="true"}catch{return!1}}),nw=()=>aw(h=>{try{localStorage.setItem("showai.board-minimap",String(!h))}catch{}return!h}),X5=(0,Je.useRef)(!1),Br=(0,Je.useRef)({first:0,second:0});(0,Je.useEffect)(()=>{let h=()=>(0,v5.flushSync)(()=>F5(!0));return window.addEventListener("beforeprint",h),()=>{window.removeEventListener("beforeprint",h),cancelAnimationFrame(Br.current.first),cancelAnimationFrame(Br.current.second)}},[]),(0,Je.useLayoutEffect)(()=>{let h=fe.current,R=Re.current;if(!C)return;let re=()=>{let Ee=[...R.children].filter(st=>st instanceof HTMLElement);if(!Ee.length)return;let $e=Ee.map(st=>({x:parseFloat(st.style.left)||0,y:parseFloat(st.style.top)||0,width:st.offsetWidth,height:st.offsetHeight})),Be=Math.min(...$e.map(st=>st.x))-12,Ie=Math.min(...$e.map(st=>st.y))-12,Sn=Math.max(...$e.map(st=>st.x+st.width))-Be+12,Ca=Math.max(...$e.map(st=>st.y+st.height))-Ie+12,Zn=Math.min(1,Math.max(1,h.clientWidth)/Math.max(1,Sn),1e3/Math.max(1,Ca)),jr=h.querySelector(":scope > .surface-metadata")?.offsetHeight??0;h.style.setProperty("--board-print-height",`${Ca*Zn+jr}px`),h.style.setProperty("--board-print-transform",`translateY(${jr}px) scale(${Zn}) translate(${-Be}px,${-Ie}px)`)};re();let ke=new ResizeObserver(re);ke.observe(h);for(let Ee of R.children)ke.observe(Ee);return()=>{ke.disconnect(),h.style.removeProperty("--board-print-height"),h.style.removeProperty("--board-print-transform")}},[C,y.length]);let Vn=(0,Je.useRef)(null),dr=(h,R=!1,re=!1)=>{h?.length?K5(ke=>new Set([...ke,...h.flatMap(Ee=>[...x[Ee]??[],Ee])])):F5(!0),cancelAnimationFrame(Br.current.first),cancelAnimationFrame(Br.current.second),Br.current.first=requestAnimationFrame(()=>Br.current.second=requestAnimationFrame(()=>{R&&h?.[0]?ge.current.focus(h[0],re):ge.current.fit(h,re)}))};(0,Je.useEffect)(()=>{if(X5.current)return;if(X5.current=!0,yt){ge.current.moveTo(yt.cameras?.[n]??{x:0,y:0,scale:1},!0);return}if(ge.current.restored&&(!ge.current.restoredAnchor||Object.hasOwn(x,ge.current.restoredAnchor))){let R=ge.current.restoredTargets,re=R.filter(ke=>Object.hasOwn(x,ke));if(!R.length||re.length){K5(new Set(re.flatMap(ke=>[...x[ke]??[],ke]))),Br.current.first=requestAnimationFrame(()=>{Br.current.second=requestAnimationFrame(()=>ge.current.restore())});return}}let h=f.saved.find(R=>R.id===f.initial);h?dr(h.targets,!1,!0):y[0]&&dr([y[0].id],!0,!0)},[]);let Pu=(0,Je.useRef)(null);(0,Je.useEffect)(()=>()=>Pu.current?.cancel(),[]);let Q5=h=>{Pu.current?.cancel();let R=Re.current;if(!R)return;let re=!1,ke=()=>{re=!0,$e.disconnect(),clearTimeout(Be)},Ee=()=>{if(re)return;let Ie=R.querySelector(`[data-surface-id="${CSS.escape(h)}"]`);Ie&&h5(Ie)&&ke()},$e=new MutationObserver(Ee),Be=setTimeout(ke,5e3);$e.observe(R,{childList:!0,subtree:!0}),Pu.current={cancel:ke},requestAnimationFrame(Ee)};(0,Je.useImperativeHandle)(p,()=>({scale:()=>Ce.current.scale*(fe.current.getBoundingClientRect().width/fe.current.clientWidth||1),insertPosition:()=>{let h=fe.current,R=Ce.current;return{x:(h.clientWidth/2-R.x)/R.scale,y:(h.clientHeight/3-R.y)/R.scale,width:360}},reveal:h=>dr([h],!0),point:(h,R)=>ge.current.point(h,R),edit:Q5}));let Bu=h=>{let R=K?.("text",{x:h.x-Bv.x,y:h.y-Bv.y});R&&(G.selectIds([R]),Q5(R))},ef=new Map(y.map(h=>[h.id,h.name])),ju=xe?[xe]:Vn.current?.open?[...Re.current?.querySelectorAll("[data-surface-id]")??[]].filter(h=>{let R=h.getBoundingClientRect(),re=fe.current.getBoundingClientRect();return R.right>re.left&&R.left<re.right&&R.bottom>re.top&&R.top<re.bottom}).map(h=>h.dataset.surfaceId):[],ow=()=>{if(!W1.trim()||!S||!ju.length)return;let h={id:crypto.randomUUID(),name:W1.trim(),targets:ju};S({...f,saved:[...f.saved,h]}),Y5("")},Hi=t?zt.flatMap(h=>{let R=Ke(t,h)?.node;return R?[R]:[]}):[],rw=Hi.length===1&&Hi[0].type==="surface",tf=()=>zt.length&&(zt.length===1?dr(zt,!0):dr(zt)),iw=!!j&&!!t&&zt.length>1&&(()=>{let h=new Set(zt);return((n&&Ke(t,n)?.node||t.content).content??[]).some(re=>re.type==="drawing"&&re.attrs?.tool==="arrow"&&h.has(re.attrs.bindings?.start?.targetId)&&h.has(re.attrs.bindings?.end?.targetId))})(),af=[["left",B("align.left"),(0,J.jsx)(Vu,{size:14}),"\u2325A"],["center",B("align.center"),(0,J.jsx)(sf,{size:14}),"\u2325H"],["right",B("align.right"),(0,J.jsx)(df,{size:14}),"\u2325D"],["top",B("align.top"),(0,J.jsx)(pf,{size:14}),"\u2325W"],["middle",B("align.middle"),(0,J.jsx)(lf,{size:14}),"\u2325V"],["bottom",B("align.bottom"),(0,J.jsx)(cf,{size:14}),"\u2325S"],["distribute-x",B("align.distributeX"),(0,J.jsx)(uf,{size:14}),"\u2325\u21E7H"],["distribute-y",B("align.distributeY"),(0,J.jsx)(mf,{size:14}),"\u2325\u21E7V"]],Hu=(h,R)=>({kind:"board",blockIds:h.slice(0,100),surfaceId:n??t?.content.attrs?.id,anchor:R}),nf=(h,R)=>de?.open(Hu(h,R)),lw=(h,R,re)=>{let ke=h.length>1,Ee=h.every(Ca=>ia(Ca)?.locked),$e=h.length===1&&t&&Ke(t,R)?.node.type==="region"&&ia(R)?.mode==="free",Be=Ut?.point??{x:0,y:0},Ie={left:Be.x,top:Be.y,bottom:Be.y};return[...de?[{label:B("menu.assistant"),icon:(0,J.jsx)(tp,{size:14}),onSelect:()=>nf(h,Ie)},{label:B("menu.reference",{count:h.length}),icon:(0,J.jsx)(Ui,{size:14}),onSelect:()=>de.reference(Hu(h,Ie))}]:[],{label:ke?B("menu.duplicateMany",{count:h.length}):B("menu.duplicate"),separatorBefore:!!de,icon:(0,J.jsx)(Q1,{size:14}),shortcut:"\u2318D",onSelect:()=>Sa(h)},{label:B("menu.copy"),icon:(0,J.jsx)(qu,{size:14}),shortcut:"\u2318C",disabled:!l,onSelect:()=>Pi(h)},{label:B("menu.cut"),icon:(0,J.jsx)(Vf,{size:14}),shortcut:"\u2318X",disabled:!l,onSelect:()=>Pi(h,!0)},{label:B("order.front"),icon:(0,J.jsx)($u,{size:14}),shortcut:"\u21E7]",separatorBefore:!0,onSelect:()=>Lo(h,"front")},{label:B("order.forward"),icon:(0,J.jsx)(yf,{size:14}),shortcut:"]",onSelect:()=>Lo(h,"forward")},{label:B("order.backward"),icon:(0,J.jsx)(Ol,{size:14}),shortcut:"[",onSelect:()=>Lo(h,"backward")},{label:B("order.back"),icon:(0,J.jsx)(ep,{size:14}),shortcut:"\u21E7[",onSelect:()=>Lo(h,"back")},...ke?af.map(([Ca,Zn,jr,st],K1)=>({label:Zn,icon:jr,shortcut:st,separatorBefore:K1===0,disabled:Ca.startsWith("distribute")&&h.length<3,onSelect:()=>Ml(Ca)})):[],...$e?[{label:B("region.ungroup"),icon:(0,J.jsx)(np,{size:14}),shortcut:"\u21E7\u2318G",separatorBefore:!0,onSelect:()=>Il(R)}]:[],{label:B(Ee?"lock.unlock":"lock.lock"),icon:Ee?(0,J.jsx)(Yu,{size:14}):(0,J.jsx)(Ju,{size:14}),shortcut:"\u21E7\u2318L",onSelect:()=>Bi(h)},{label:B("menu.settings"),icon:(0,J.jsx)(Rl,{size:14}),onSelect:()=>{G.selectIds([R]),H?.(R)}},...re?[{label:B("menu.expand"),icon:(0,J.jsx)(r0,{size:14}),onSelect:()=>N?.(R)}]:[],{label:ke?B("menu.deleteMany",{count:h.length}):B("menu.delete"),icon:(0,J.jsx)(pa,{size:14}),danger:!0,separatorBefore:!0,onSelect:()=>{i?.(h),G.select(null)}}]},of=h=>{if(!Ve||!ee||!t)return!1;let R=Ke(t,h);return!!R&&io(R.node)&&(R.parent?.attrs?.id??t.content.attrs?.id)===(n??t.content.attrs?.id)&&!ia(h)?.locked},sw=(h,R)=>{if(z||h.closest(".page-surface")!==fe.current||h.closest("[data-surface-ui]"))return!1;let re=G.hitTest(R.clientX,R.clientY);return!re||!of(re.id)?!1:(R.preventDefault(),G.select(re.id),Xe(re.id),!0)},cw=(0,Je.useMemo)(()=>({componentActionsHost:Y,nativeScene:ne,get scale(){return Ce.current.scale},geometry:a,selected:xe,select:o?G.select:Ae,board:o&&!Se?G:void 0,inspect:H,expand:N,remove:L,move:Se?void 0:w,connect:Se?void 0:E,highlightTarget:Po,labelEditing:Oe,editLabel:Xe,setLabel:Se?void 0:ee,readOnly:!w,revealAll:q5||C||!!yt,revealed:W5}),[Y,ne,a,xe,[...G.ids].join(":"),o,Se,H,N,L,w,E,Oe,ee,q5,C,W5,t]);return(0,J.jsx)(Tn.Provider,{value:cw,children:(0,J.jsxs)("div",{ref:h=>{fe.current=h,Ue.ref.current=h},className:`page-surface${Ut?" has-object-menu":""}${w&&!O&&!C&&!yt?" has-board-grid":""}${Oa==="hand"?" is-hand-tool":""}${Oa==="text"?" is-text-tool":""}`,"data-input-surface":M&&!Se?g:void 0,"data-viewport-lock-scope":O?"board":void 0,"data-viewport-locked":Se,"data-board-id":g,"data-board-tool":z??"select",onContextMenu:h=>{if(H?.(null),Q.current||kn.current||h.target.closest('[data-drawing-active="true"]')){h.preventDefault(),h.stopPropagation();return}let R=h.target,re=G.selectionTarget(h.clientX,h.clientY);Vn.current&&(Vn.current.open=!1),gc(re&&!R.closest(Pv)?re.element:R,{x:h.clientX,y:h.clientY})?(h.preventDefault(),h.stopPropagation()):K&&o&&!Se&&R.closest(".page-surface")===h.currentTarget&&!R.closest('[data-surface-ui],input,textarea,select,[contenteditable=true],[data-surface-gesture="own"],.react-flow')&&(h.preventDefault(),h.stopPropagation(),Ro({anchor:h.currentTarget,point:{x:h.clientX,y:h.clientY},id:"",ids:[],container:!1,insertion:ge.current.point(h.clientX,h.clientY)}))},onDoubleClick:h=>{let R=h.target;sw(R,h)||!Ve||!K||z||Oa==="hand"||R.closest(".page-surface")!==h.currentTarget||R.closest("[data-surface-content],[data-surface-ui]")||G.hitTest(h.clientX,h.clientY)||(h.preventDefault(),Bu(ge.current.point(h.clientX,h.clientY)))},onPointerDownCapture:h=>{let R=h.target;if(R.closest(".page-surface")!==h.currentTarget||R.closest("[data-surface-ui]")&&!R.closest(".board-resize-handle,.surface-object-rotate,.board-arrow-endpoint")||h.pointerType==="touch"&&!h.isPrimary)return;let re=!z||h.pointerType==="touch"?G.selectionTarget(h.clientX,h.clientY):G.hitTest(h.clientX,h.clientY),ke=G.selectionHit(h.clientX,h.clientY),Ee=h.pointerType==="touch"&&!!ke;!re&&!ke&&h.button===0&&!h.shiftKey&&!I.current&&!R.closest("[data-surface-ui], [data-surface-content]")&&G.select(null);let $e=M6(re?.node)||!z&&re?.node.type==="drawing"?re.id:R.closest('[data-board-shape="true"]')?.dataset.surfaceId,Be=!!$e&&h.pointerType==="touch";if($e&&h.pointerType==="touch"&&h.button===0&&o&&!Se&&!G.ids.has($e)&&!R.closest("[data-surface-ui]")){h.preventDefault(),ge.current.cancel(),Pr(),G.select($e),Ro(null);return}if($e&&h.pointerType==="pen"&&z&&!R.closest("[data-resize-direction],.surface-object-rotate")){!da&&z!=="eraser"&&z!=="lasso"&&(h.preventDefault(),h.stopPropagation());return}if(["pan","eraser"].includes(z??"")&&!Be&&!R.closest("[data-surface-ui]")||mr(h.pointerType)&&!Be&&!Ee&&!R.closest("[data-surface-ui],button,input,textarea,select,iframe,[contenteditable=true]")||R.closest(".page-surface")!==h.currentTarget)return;if(!R.closest(".surface-popover-anchor")&&Vn.current&&(Vn.current.open=!1),R.closest("[data-surface-ui]")||Ro(null),Oa==="text"&&!Be&&Ve&&h.button===0&&!I.current&&!R.closest("[data-surface-ui]")){h.preventDefault(),h.stopPropagation(),Bu(ge.current.point(h.clientX,h.clientY));return}let Ie=R.closest(".board-resize-handle,.surface-object-rotate")??(z&&R.closest("[data-board-drawing-input]")?[...Re.current?.querySelectorAll(".surface-object.is-selected > .board-resize-handle, .surface-object.is-selected > .surface-object-rotate, .board-group-outline > .board-resize-handle")??[]].find(fo=>{let Cn=fo.getBoundingClientRect();return h.clientX>=Cn.left-4&&h.clientX<=Cn.right+4&&h.clientY>=Cn.top-4&&h.clientY<=Cn.bottom+4}):void 0),Sn=z&&z!=="arrow"?G.edgeHit(h.clientX,h.clientY):null,Ca=!!Sn&&z!=="pen"&&z!=="highlighter"&&we.current.id===Sn.id&&performance.now()>=we.current.since+180&&(ve.current===Sn.element||performance.now()<=we.current.until);if((R.closest("[data-surface-handle]")||h.pointerType!=="touch"&&R.closest("[data-board-drawing-input]"))&&(Pr(),ge.current.cancel()),!o||Se||z&&!Be&&!Ee&&!Ca&&!Ie&&!(z==="lasso"&&ke)||h.button!==0||h.pointerType==="touch"&&!Ie&&!Be&&!Ee||I.current&&!Be||ie.current&&!Be||!Ie&&R.closest("[data-surface-handle]")||!Ie&&R.closest("[data-surface-ui]")||!Ie&&R.closest(Pv))return;let Zn=h.ctrlKey||h.metaKey,jr=null,st=null;if(Ie)st=Ie.dataset.groupTarget??Ie.closest("[data-surface-id]")?.dataset.surfaceId;else if(Be)st=$e;else if(!Zn&&!h.shiftKey&&ke)st=ke;else if(Ca)st=Sn?.id;else if(re?.node.type==="drawing")st=re.id;else if(re){let fo=re.element,Cn=R.closest('[contenteditable="true"]'),_u=!!Cn&&fo.contains(Cn)&&fo.contains(document.activeElement),bc=G.ids.size===1&&G.ids.has(re.id),_i=re.node.type!=="region"&&!!fo.querySelector('[contenteditable="true"]');if(_u||bc&&!_i&&re.node.type!=="region"&&R!==fo&&fo.contains(R)&&!Zn)return;Zn||(st=re.id,bc&&_i&&!h.shiftKey&&(jr=fo))}if(st&&(!Zn||Ie)){h.preventDefault(),!Be&&!Ee&&h.stopPropagation(),ge.current.cancel(),Pr(),qa();let fo=Ie?.dataset.resizeDirection?`resize-${Ie.dataset.resizeDirection}`:Ie?"rotate":"move",Cn=G.ids.has(st);if(h.altKey&&fo==="move"&&r){let bc=Cn?[...G.ids]:[st],_i;(0,v5.flushSync)(()=>{_i=r(bc,{x:0,y:0}),_i?.length&&G.selectIds(_i)});let Uu=_i;Uu?.length&&(st=Uu[bc.indexOf(st)]??Uu[0],Cn=!0,jr=null)}let _u=!Ie&&!h.shiftKey&&G.ids.size>1&&Cn;if(h.shiftKey&&!Cn&&G.select(st,!0),!G.start(st,fo,h)){h.shiftKey||G.select(st),h.currentTarget.focus({preventScroll:!0});return}ge.current.objectGesture(!0),Q.current={pointer:h.pointerId,id:st,x:h.clientX,y:h.clientY,moved:!1,wasSelected:Cn,additive:h.shiftKey,preserveSelection:!!Ie||!!ke&&!h.shiftKey,touch:h.pointerType==="touch",enterEdit:jr,groupClick:_u,input:h},(Ie??h.currentTarget).focus({preventScroll:!0}),h.currentTarget.setPointerCapture(h.pointerId);return}if(re&&(!Zn||re.node.type!=="drawing")||R.closest("[data-surface-content]"))return;h.preventDefault(),h.stopPropagation(),h.currentTarget.focus({preventScroll:!0}),h.currentTarget.setPointerCapture(h.pointerId);let K1=ge.current.point(h.clientX,h.clientY),Y1=document.createElement("div");Y1.className="board-marquee",Y1.setAttribute("data-surface-ui",""),Re.current.append(Y1),kn.current={id:h.pointerId,start:K1,next:{...K1,width:0,height:0},element:Y1,base:[...G.ids],hitId:re?.id,additive:h.shiftKey,last:{x:h.clientX,y:h.clientY,shift:h.shiftKey,wrap:Zn}},!h.shiftKey&&!Zn&&G.select(null)},onPointerMoveCapture:h=>{Rr.current={x:h.clientX,y:h.clientY};let R=Q.current;if(R?.pointer===h.pointerId){h.preventDefault(),R.touch||h.stopPropagation(),R.moved||=Math.hypot(h.clientX-R.x,h.clientY-R.y)>=3,R.input={clientX:h.clientX,clientY:h.clientY,altKey:h.altKey,shiftKey:h.shiftKey,ctrlKey:h.ctrlKey,metaKey:h.metaKey},G.update(R.input),R.moved&&ji(h.clientX,h.clientY);return}if(!kn.current&&!Se&&!h.buttons&&h.target.closest(".page-surface")===h.currentTarget){let ke=h.clientX,Ee=h.clientY;cancelAnimationFrame(je.current),je.current=requestAnimationFrame(()=>{let $e=z?z==="arrow"?null:G.edgeHit(ke,Ee):G.hitTest(ke,Ee,!1),Be=performance.now();$e&&(we.current.id!==$e.id||ve.current!==$e.element&&Be>we.current.until?we.current={id:$e.id,since:Be,until:Be+900}:we.current.until=Be+900);let Ie=$e?.element??null;Ie!==ve.current&&(ve.current?.classList.remove("is-hovered"),ve.current=Ie,Ie?.classList.add("is-hovered")),fe.current?.classList.toggle("has-drawing-hit",!!Ie&&!!z&&z!=="pen"&&z!=="highlighter"&&Be>=we.current.since+180)})}let re=kn.current;!re||re.id!==h.pointerId||(h.preventDefault(),h.stopPropagation(),re.last={x:h.clientX,y:h.clientY,shift:h.shiftKey,wrap:h.ctrlKey||h.metaKey},$5(),ji(h.clientX,h.clientY))},onDragStartCapture:h=>{(Q.current||kn.current)&&h.preventDefault()},onPointerUpCapture:h=>{let R=Q.current;if(R?.pointer===h.pointerId){if(h.preventDefault(),R.touch||h.stopPropagation(),Q.current=null,ua(),R.moved||=Math.hypot(h.clientX-R.x,h.clientY-R.y)>=3,G.update(h),G.finish(),ge.current.objectGesture(!1),!R.moved)if(R.enterEdit)h5(R.enterEdit,h.clientX,h.clientY);else if(R.groupClick){let ke=G.selectionTarget(h.clientX,h.clientY);G.select(ke&&G.ids.has(ke.id)?ke.id:null)}else R.wasSelected&&!R.preserveSelection&&G.select(R.id,R.additive);h.currentTarget.hasPointerCapture(h.pointerId)&&h.currentTarget.releasePointerCapture(h.pointerId);return}let re=kn.current;!re||re.id!==h.pointerId||(h.preventDefault(),h.stopPropagation(),re.hitId&&re.next.width<3&&(re.next.height??0)<3?(G.selectIds(re.base),G.select(re.hitId,h.shiftKey||h.ctrlKey||h.metaKey)):G.marquee(re.next,h.shiftKey,re.base,h.ctrlKey||h.metaKey),Pr(),h.currentTarget.hasPointerCapture(h.pointerId)&&h.currentTarget.releasePointerCapture(h.pointerId))},onPointerCancelCapture:h=>{h.pointerId!==Q.current?.pointer&&h.pointerId!==kn.current?.id||(Pr(!0),ha(),qa())},onLostPointerCapture:h=>{if(h.target!==h.currentTarget)return;Pr(!0);let R=Q.current;R&&!R.touch&&R.moved?(Q.current=null,ua(),G.update(R.input),G.finish(),ge.current.objectGesture(!1)):R&&ha()},onPointerLeave:()=>{qa(),Rr.current=null},onCopy:h=>{if(!Ve||!G.ids.size||y5(h.target))return;let R=Pi([...G.ids]);R&&(h.preventDefault(),h.clipboardData.setData(b5,JSON.stringify(R)),h.clipboardData.setData("text/plain",JSON.stringify(R)))},onCut:h=>{if(!Ve||!G.ids.size||y5(h.target))return;let R=Pi([...G.ids],!0);R&&(h.preventDefault(),h.clipboardData.setData(b5,JSON.stringify(R)),h.clipboardData.setData("text/plain",JSON.stringify(R)))},onPaste:h=>{if(!Ve||!s||y5(h.target))return;let R=h.clipboardData.getData(b5)||h.clipboardData.getData("text/plain"),re=null;try{re=JSON.parse(R)}catch{}h.preventDefault(),Cy(re)?Al({clip:re}):R.trim()&&Al({text:R})},onKeyDownCapture:h=>{let R=h.target;if(R.closest('input,textarea,select,iframe,video,audio,[contenteditable=true],[data-editor-keyboard-scope],[data-surface-gesture="own"],.react-flow,.surface-toolbar')||R.closest(".page-surface")!==h.currentTarget)return;let re=R.closest(".surface-object-content");if(re&&re.closest(".page-surface")===h.currentTarget&&R.closest(".surface-object")===re.parentElement&&!re.parentElement?.classList.contains("is-drawing"))return;if(h.key==="ContextMenu"||h.shiftKey&&h.key==="F10"){let Ie=R.getBoundingClientRect();if(gc(R,{x:Ie.left+Math.min(24,Ie.width/2),y:Ie.top+Math.min(24,Ie.height/2)})){h.preventDefault(),h.stopPropagation();return}}if(h.code==="Space"&&(I.current=!0),h.key==="Escape"){let Ie=!!kn.current||!!Q.current;if(Pr(!0),ha(),Ie){h.preventDefault(),h.stopPropagation();return}if((z||Oa)&&!R.closest('[data-drawing-active="true"]')){h.preventDefault(),h.stopPropagation(),D?.();return}}let ke=h.metaKey||h.ctrlKey;if(h.shiftKey&&!ke&&!h.altKey&&!Se){let Ie={Digit0:0,Digit1:1,Digit2:2}[h.code];if(Ie!==void 0){h.preventDefault(),h.stopPropagation(),Ie===0?ge.current.zoom(1):Ie===1?dr():tf();return}}if(!Ve||R.closest('[data-drawing-active="true"]'))return;if(!ke&&!h.altKey&&!h.shiftKey&&!Q.current&&!kn.current){let Ie=rv(h.key);if(Ie&&(!he||!["region","lasso","pan"].includes(Ie.tool??""))){h.preventDefault(),h.stopPropagation(),qa(),G.select(null),V?.(Ie.tool);return}}let Ee=[...G.ids],$e=Ie=>{h.preventDefault(),h.stopPropagation(),Ie()};if(ke&&h.key.toLowerCase()==="a")return $e(()=>G.selectAll());if(ke&&h.key.toLowerCase()==="d"&&Ee.length)return $e(()=>Sa(Ee));if(ke&&h.shiftKey&&h.code==="KeyG"&&Ri)return $e(()=>Il(Ri));if(ke&&h.shiftKey&&h.code==="KeyL"&&Ee.length)return $e(()=>Bi(Ee));if((h.code==="BracketRight"||h.code==="BracketLeft")&&Ee.length)return $e(()=>Lo(Ee,h.code==="BracketRight"?h.shiftKey||h.altKey?"front":"forward":h.shiftKey||h.altKey?"back":"backward"));if(h.altKey&&!ke&&Ee.length>1){let Ie={KeyA:"left",KeyD:"right",KeyW:"top",KeyS:"bottom",KeyH:h.shiftKey?"distribute-x":"center",KeyV:h.shiftKey?"distribute-y":"middle"}[h.code];if(Ie)return $e(()=>Ml(Ie))}if(h.key==="Enter"&&!ke&&Ee.length===1&&of(Ee[0]))return $e(()=>Xe(Ee[0]));if(h.key==="Enter"&&!ke&&Ee.length===1){let Ie=Re.current?.querySelector(`[data-surface-id="${CSS.escape(Ee[0])}"]`);if(Ie?.querySelector('[contenteditable="true"]'))return $e(()=>h5(Ie))}let Be={ArrowLeft:[-1,0],ArrowRight:[1,0],ArrowUp:[0,-1],ArrowDown:[0,1]}[h.key];if(Be&&Ee.length&&!R.closest("[data-resize-direction],.surface-object-rotate,.board-arrow-endpoint,input,select"))return $e(()=>G.nudge(Be[0]*(h.shiftKey?10:1),Be[1]*(h.shiftKey?10:1)));if((h.key==="Delete"||h.key==="Backspace")&&Ee.length)return $e(()=>{i?.(Ee),G.select(null)})},onKeyUpCapture:h=>{h.code==="Space"&&(I.current=!1)},onPointerDown:h=>{h.defaultPrevented||h.button!==0||I.current||h.target.closest("[data-surface-content], [data-surface-ui]")||G.select(null)},role:"region","aria-label":B("board"),tabIndex:0,onKeyDown:h=>{let R=h.target;if(R.closest("[data-input-surface]")!==h.currentTarget||h.key!=="Escape"||h.defaultPrevented||R.closest("input,textarea"))return;let re=R.closest("[contenteditable]");if(re?.getAttribute("contenteditable")==="true"){let ke=re.closest(".surface-object");if(!ke||ke.closest(".page-surface")!==h.currentTarget)return;h.preventDefault(),window.getSelection()?.removeAllRanges(),h.currentTarget.focus({preventScroll:!0}),Ve&&G.selectIds([ke.dataset.surfaceId]);return}G.select(null),Vn.current&&(Vn.current.open=!1)},"aria-description":B(Se?"board.descriptionLocked":o?"board.descriptionEdit":"board.descriptionRead"),children:[Ut&&(0,J.jsx)(Ky,{anchor:Ut.anchor,point:Ut.point,label:B("menu.objectActions"),onClose:()=>Ro(null),items:Ut.insertion?[{label:B("menu.addPage"),icon:(0,J.jsx)(hc,{size:14}),onSelect:()=>K?.("page",Ut.insertion)},{label:B("menu.addText"),icon:(0,J.jsx)(Bo,{size:14}),shortcut:"T",onSelect:()=>Bu(Ut.insertion)},{label:B("menu.addComponent"),icon:(0,J.jsx)(Ot,{size:14}),onSelect:()=>_?.(Ut.point,Ut.insertion)},{label:B("menu.paste"),icon:(0,J.jsx)(qu,{size:14}),shortcut:"\u2318V",separatorBefore:!0,disabled:!yu||!s,onSelect:()=>yu&&Al({clip:yu},Ut.insertion)},{label:B("menu.selectAll"),icon:(0,J.jsx)(Zf,{size:14}),shortcut:"\u2318A",disabled:!y.length,onSelect:()=>G.selectAll()},...de?[{label:G.ids.size?B("menu.reference",{count:G.ids.size}):B("menu.referenceBoard"),icon:(0,J.jsx)(Ui,{size:14}),separatorBefore:!0,onSelect:()=>de.reference(Hu([...G.ids],{left:Ut.point.x,top:Ut.point.y,bottom:Ut.point.y}))}]:[]]:lw(Ut.ids,Ut.id,Ut.container)}),O&&(0,J.jsx)(T6,{...Ue,label:B("board.lockTarget")}),(0,J.jsx)("div",{className:"surface-metadata","data-surface-ui":!0,children:m}),(0,J.jsxs)("div",{ref:Me,className:"surface-scroll",children:[(0,J.jsx)("div",{className:"surface-grid","aria-hidden":"true"}),(0,J.jsx)("div",{ref:Re,className:"surface-world",children:e})]}),(0,J.jsx)(Rv,{pageId:t?.id??g,surfaceId:n??g,enabled:M&&!C&&!Se,root:fe,world:Re,point:(h,R)=>ge.current.point(h,R)}),da&&!(window.showai?.inlineInk&&(da==="pen"||da==="highlighter"))&&M&&!Se&&$&&(0,J.jsx)(Gy,{tool:da,ruler:Pe,panHeld:I,makeSnapIndex:G.drawingSnapIndex,color:A,fillColor:q,strokeWidth:P,pressure:Z,camera:Ce,point:(h,R)=>ge.current.point(h,R),onTarget:(h,R)=>Po(h,R),onDraw:(h,R)=>{let re;if(h.type==="region"&&n&&t){let Ee=(Ke(t,n)?.node?.content??[]).map(Be=>Be.attrs?.id).filter(Be=>Be&&!ia(Be)?.locked),$e=Object.entries(G.measured(Ee)).filter(([,Be])=>Be.x>=R.x&&Be.y>=R.y&&Be.x+Be.width<=R.x+R.width&&Be.y+Be.height<=R.y+(R.height??0)).map(([Be])=>Be);$e.length&&(re={ids:$e,offset:fc()})}$(h,R,re),requestAnimationFrame(()=>{fe.current?.querySelector("[data-board-drawing-input]")||fe.current?.focus({preventScroll:!0})})},onExit:()=>D?.()},da),(z==="eraser"||z==="lasso")&&M&&!Se&&i&&(0,J.jsx)(ov,{tool:z,size:P,board:G,onDelete:i,onExit:()=>D?.()},z),!y.length&&!z&&!w&&(0,J.jsx)("div",{className:"surface-empty","data-surface-ui":!0,children:(0,J.jsx)("p",{children:B("board.empty")})}),!y.length&&!z&&!Oa&&Ve&&!O&&(0,J.jsx)("div",{className:"surface-empty is-hint","aria-hidden":"true",children:(0,J.jsx)("p",{children:B("board.emptyHint")})}),J5&&!O&&!C&&t&&n&&(0,J.jsx)(yv,{root:fe,world:Re,camera:Ce,layoutKey:b,onNavigate:h=>ge.current.moveTo(h,!0)}),(0,J.jsxs)(uv,{root:fe,enabled:M&&!Se&&!C,actions:(0,J.jsxs)(J.Fragment,{children:[o&&!Ut&&G.ids.size>1&&(0,J.jsx)("span",{className:"board-selection-count",role:"status",children:B("board.selectedCount",{count:G.ids.size})}),o&&!Ut&&G.ids.size>0&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)(fv,{nodes:Hi,onChange:h=>F?.(zt,{labelSize:h})}),de&&(0,J.jsx)("button",{type:"button","aria-label":B("board.assistant"),title:B("board.assistant"),onClick:h=>{let R=h.currentTarget.getBoundingClientRect();nf(zt,{left:R.left+R.width/2,top:R.top,bottom:R.bottom})},children:(0,J.jsx)(tp,{size:15})}),rw&&(0,J.jsx)("button",{type:"button","aria-label":B("board.expandSelected"),onClick:()=>xe&&N?.(xe),children:(0,J.jsx)(r0,{size:15})}),(0,J.jsx)("button",{type:"button",onClick:()=>Sa(zt),"aria-label":B("board.duplicateSelected"),title:B("board.duplicateSelectedTitle"),children:B("board.duplicate")}),(0,J.jsx)("button",{type:"button",onClick:()=>Lo(zt,"front"),"aria-label":B("order.front"),title:B("tool.withShortcut",{label:B("order.front"),key:"\u21E7]"}),children:(0,J.jsx)($u,{size:15})}),(0,J.jsx)("button",{type:"button",onClick:()=>Lo(zt,"back"),"aria-label":B("order.back"),title:B("tool.withShortcut",{label:B("order.back"),key:"\u21E7["}),children:(0,J.jsx)(ep,{size:15})}),G.ids.size>1&&(0,J.jsxs)("details",{className:"surface-popover-anchor board-align-menu",children:[(0,J.jsx)("summary",{"aria-label":B("align.menu"),title:B("align.menu"),children:(0,J.jsx)(Vu,{size:15})}),(0,J.jsxs)("div",{className:"board-align-options",role:"group",children:[af.map(([h,R,re,ke])=>(0,J.jsx)("button",{type:"button","aria-label":R,title:B("tool.withShortcut",{label:R,key:ke}),disabled:h.startsWith("distribute")&&G.ids.size<3,onClick:()=>Ml(h),children:re},h)),iw&&[["right",B("align.tidyRight"),(0,J.jsx)(Wf,{size:14})],["down",B("align.tidyDown"),(0,J.jsx)(Pf,{size:14})]].map(([h,R,re])=>(0,J.jsx)("button",{type:"button","aria-label":R,title:R,onClick:()=>j?.(zt,h),children:re},h))]})]}),Ri?(0,J.jsx)("button",{type:"button","aria-label":B("region.ungroup"),title:B("tool.withShortcut",{label:B("region.ungroup"),key:"\u21E7\u2318G"}),onClick:()=>Il(Ri),children:(0,J.jsx)(np,{size:15})}):null,(0,J.jsx)("button",{type:"button","aria-label":B(Li?"lock.unlock":"lock.lock"),"aria-pressed":Li,title:B("tool.withShortcut",{label:B(Li?"lock.unlock":"lock.lock"),key:"\u21E7\u2318L"}),onClick:()=>Bi(zt),children:Li?(0,J.jsx)(Ju,{size:15}):(0,J.jsx)(Yu,{size:15})}),(0,J.jsx)("button",{type:"button",onClick:()=>{i?.(zt),G.select(null)},"aria-label":B("board.deleteSelected"),title:B("tool.withShortcut",{label:B("board.deleteSelected"),key:"Delete"}),children:(0,J.jsx)(pa,{size:15})})]}),(0,J.jsx)("div",{ref:ae,className:"board-component-actions","data-surface-ui":!0})]}),properties:he&&G.ids.size>1?null:(0,J.jsxs)(J.Fragment,{children:[o&&!Se&&!Ut?(0,J.jsx)(gv,{tool:Hi.length?null:z,style:{color:A,fillColor:q,strokeWidth:P,pressure:Z},nodes:Hi,onChange:h=>F?.(Hi.filter(Pl).map(R=>R.attrs.id),h)}):null,he&&!Hi.length&&$&&!Se&&(z==="pen"||z==="highlighter")&&(0,J.jsx)("div",{className:"board-writing-options board-ruler-controls","data-surface-ui":!0,children:(0,J.jsx)("button",{type:"button","aria-label":B("tool.ruler"),title:B("tool.ruler"),"aria-pressed":Pe,onClick:()=>oe(h=>!h),children:(0,J.jsx)(Qu,{size:15})})})]}),children:[!he&&(0,J.jsxs)("details",{ref:Vn,className:"surface-popover-anchor",onKeyDownCapture:h=>{h.key==="Escape"&&(h.preventDefault(),h.stopPropagation(),Vn.current.open=!1,Vn.current.querySelector("summary")?.focus())},children:[(0,J.jsx)("summary",{"aria-label":B("nav.regionsAndViews"),title:B("nav.regionsAndViews"),children:(0,J.jsx)(Df,{size:16})}),(0,J.jsxs)("div",{className:"surface-navigation",children:[(0,J.jsxs)("div",{className:"board-view-controls",children:[(0,J.jsx)("button",{type:"button","aria-label":B("board.fit"),disabled:Se,title:B("board.fitTitle"),onClick:()=>dr(),children:(0,J.jsx)(r0,{size:15})}),(0,J.jsx)("button",{type:"button","aria-label":B("board.locate"),title:B("board.locateTitle"),disabled:Se||!zt.length,onClick:tf,children:(0,J.jsx)(Tf,{size:15})}),(0,J.jsx)("span",{className:"surface-toolbar-divider"}),(0,J.jsx)(sE,{scale:mt,controls:ge,locked:Se}),!O&&!C&&(0,J.jsx)("button",{type:"button","aria-label":B("board.minimap"),"aria-pressed":J5,title:B("board.minimap"),onClick:nw,children:(0,J.jsx)(Of,{size:15})})]}),(0,J.jsx)("strong",{children:B("nav.regionsAndContent")}),y.map(h=>(0,J.jsxs)("div",{className:"surface-navigation-row",children:[(0,J.jsxs)("button",{type:"button",disabled:Se,onClick:()=>{Ae(h.id),dr([h.id],!0),Vn.current.open=!1},children:[(0,J.jsx)(hc,{size:14,"aria-hidden":"true"}),h.name]}),S&&(0,J.jsx)(J.Fragment,{children:(0,J.jsx)("button",{type:"button","aria-label":B("nav.moveEarlier",{name:h.name}),disabled:f.readingOrder.indexOf(h.id)<1,onClick:()=>{let R=[...f.readingOrder],re=R.indexOf(h.id);[R[re-1],R[re]]=[R[re],R[re-1]],S({...f,readingOrder:R})},children:(0,J.jsx)(Hr,{size:13,"aria-hidden":"true"})})})]},h.id)),(0,J.jsx)("strong",{children:B("nav.namedViews")}),f.saved.map(h=>(0,J.jsxs)("div",{className:"surface-navigation-row",children:[(0,J.jsxs)("button",{type:"button",disabled:Se,onClick:()=>{dr(h.targets),Vn.current.open=!1},children:[(0,J.jsx)(Zu,{size:14,"aria-hidden":"true"}),h.name]}),S&&(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("button",{type:"button","aria-label":B("nav.setInitial",{name:h.name}),"aria-pressed":f.initial===h.id,onClick:()=>S({...f,initial:f.initial===h.id?null:h.id}),children:(0,J.jsx)($f,{size:13})}),(0,J.jsx)("button",{type:"button","aria-label":B("nav.deleteView",{name:h.name}),onClick:()=>S({...f,initial:f.initial===h.id?null:f.initial,saved:f.saved.filter(R=>R.id!==h.id)}),children:(0,J.jsx)(pa,{size:13})})]})]},h.id)),S&&(0,J.jsxs)("form",{onSubmit:h=>{h.preventDefault(),ow()},children:[(0,J.jsx)("input",{"aria-label":B("nav.viewName"),placeholder:xe?ef.get(xe)?B("nav.viewOf",{name:ef.get(xe)}):B("nav.viewOfSelection"):B("nav.viewOfVisible"),maxLength:200,value:W1,onChange:h=>Y5(h.target.value)}),(0,J.jsxs)("button",{type:"submit",disabled:!W1.trim()||!ju.length,children:[(0,J.jsx)(Zu,{size:14}),B("nav.saveView")]})]})]})]}),(0,J.jsx)("fieldset",{className:"surface-extra-actions",disabled:Se,children:k}),!he&&$&&!Se&&(0,J.jsx)("div",{className:"board-writing-options","data-surface-ui":!0,children:(0,J.jsx)("button",{type:"button","aria-label":B("tool.ruler"),title:B("tool.ruler"),"aria-pressed":Pe,onClick:()=>oe(h=>!h),children:(0,J.jsx)(Qu,{size:15})})})]})]})})}function sE({scale:e,controls:t,locked:a}){let n=Av(e),o=ue(tt);return(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("button",{type:"button","aria-label":o("board.zoomOut"),title:o("tool.withShortcut",{label:o("board.zoomOut"),key:"-"}),disabled:a||n<=.1,onClick:()=>t.current.zoom(n/1.2),children:(0,J.jsx)(Ll,{size:15})}),(0,J.jsxs)("button",{type:"button",className:"surface-zoom","aria-label":o("board.resetZoom"),title:o("board.resetZoomTitle"),disabled:a,onClick:()=>t.current.zoom(1),children:[Math.round(n*100),"%"]}),(0,J.jsx)("button",{type:"button","aria-label":o("board.zoomIn"),title:o("tool.withShortcut",{label:o("board.zoomIn"),key:"+"}),disabled:a||n>=4,onClick:()=>t.current.zoom(n*1.2),children:(0,J.jsx)(Ot,{size:15})})]})}function y5(e){return e instanceof Element&&!!e.closest("input,textarea,select,[contenteditable=true],[data-editor-keyboard-scope]")}var w5=vt(tt);function No(e,t,a){let n=!1,o=i=>{if(i.attrs?.id===t){let s=structuredClone(i);return a(s),n=!0,s}if(!i.content)return i;let l=i.content.map(o);return l.some((s,c)=>s!==i.content[c])?{...i,content:l}:i},r=o(e.content);return n?Ia({...e,content:r,...e.layout?{layout:{...e.layout}}:{}},{clone:!1}):e}function jv(e,t,a,n=null){let o=k2(e),r=n?Ke(o,n)?.node:o.content;if(!r||!["surface","region"].includes(r.type??""))throw new Error(w5("error.regionMissing"));return r.content=[...r.content??[],t],o.layout[t.attrs.id]=a,Ia(o)}function k5(e,t){let a=structuredClone(e),n=Ke(a,t);return n?.parent?(n.parent.content=n.parent.content.filter(o=>o.attrs?.id!==t),Ia(a)):e}function S5(e,t,a,n,o){let r=structuredClone(e),i=Ke(r,t),l=a?Ke(r,a)?.node:r.content;if(!i?.parent||!l||!["surface","region"].includes(l.type??""))throw new Error(w5("error.cannotMove"));let s=new Set;if(Et(i.node,d=>{d.attrs?.id&&s.add(d.attrs.id)}),a&&s.has(a))throw new Error(w5("error.regionIntoSelf"));i.parent.content=i.parent.content.filter(d=>d.attrs?.id!==t);let c=l.content??[];return c.splice(o??c.length,0,i.node),l.content=c,n&&(r.layout[t]=n),Ia(r)}ct(`.container-workspace{display:flex;flex-direction:column;height:100%;min-height:0;position:relative;background:var(--paper, var(--bg));color:var(--text, var(--ink))}.container-workspace-bar{display:flex;align-items:center;gap:4px;min-height:38px;padding:4px 18px;border-bottom:1px solid var(--line, var(--border));flex-shrink:0;z-index:30;background:var(--paper, var(--bg))}.container-workspace-bar nav{display:flex;align-items:center;flex:1;min-width:0;overflow:auto;gap:2px;font-size:12px;color:var(--muted)}.container-workspace-bar nav>span{display:flex;align-items:center;flex-shrink:0}.container-workspace button,.container-workspace summary{font:inherit}.container-workspace-bar button,.container-menu summary,.container-menu button,.container-activation button{border:0;background:transparent;color:inherit;padding:6px 8px;display:inline-flex;align-items:center;gap:6px;cursor:pointer;border-radius:5px;font-size:12px}.container-workspace-bar nav button span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.container-workspace button:disabled{opacity:.4;cursor:default}.container-workspace button:focus-visible,.container-workspace summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.container-workspace-bar button:hover,.container-menu summary:hover,.container-menu button:hover,.container-activation button:hover{background:var(--hover, #00000006)}.container-main{flex:1;min-height:0;position:relative}.container-page{height:100%;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;scrollbar-gutter:stable;background:var(--paper, var(--bg))}.container-page-column{max-width:1000px;margin:0 auto;padding:28px 40px 96px;min-width:0}.container-page[data-width-mode=wide]>.container-page-column{max-width:1500px}.container-page[data-width-mode=full]>.container-page-column{max-width:none}.container-page-heading{margin:12px 0 24px}.page-document-flow{border:0;padding:0}.page-document-module{margin:20px 0;font-size:14px}.page-document-module .document-content{min-height:80px}.container-page-heading h1,.container-page-heading .surface-page-title{font-size:32px;font-weight:650;line-height:1.25;color:var(--text, var(--ink));width:100%;max-width:100%}.container-page .surface-layout-flow>.surface-object{margin:22px 0}.container-page .surface-layout-flow>.surface-object.is-region{margin:18px 0}.container-page .surface-layout-flow>.surface-object.is-region>.surface-object-content{padding:14px 20px}.container-menu{position:relative}.container-menu summary{list-style:none;user-select:none}.container-menu summary::-webkit-details-marker{display:none}.container-menu>div{position:absolute;top:calc(100% + 4px);right:0;z-index:60;min-width:170px;padding:6px;border:1px solid var(--line, var(--border));border-radius:8px;background:var(--paper, var(--bg));box-shadow:0 8px 24px #00000010}.container-menu>div>button{display:flex;width:100%;white-space:nowrap}.surface-toolbar .container-menu>div{top:auto;bottom:calc(100% + 12px)}.container-board{height:100%;min-height:0;position:relative;background:var(--paper, var(--bg));isolation:isolate}.container-board-scene{height:100%;min-height:0}.container-board-scene.is-passive{pointer-events:none}.container-board-enter{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:100%;border:0;background:transparent;color:transparent;cursor:pointer;touch-action:pan-y}.container-board-enter:hover,.container-board-enter:focus-visible{background:#ffffff24;color:var(--muted)}.container-activation{position:absolute;top:6px;right:8px;z-index:40;display:flex;align-items:center;border-radius:6px;background:var(--paper, var(--bg))}.container-activation button[aria-pressed=true]{color:var(--accent)}.surface-object.is-container>.surface-object-content{padding:0;height:calc(100% - 32px);min-height:0;overflow:hidden;border-radius:0 0 8px 8px}.surface-object.is-container{border-color:var(--line, var(--border))}.surface-object.is-container:not([style*="height:"])>.surface-object-content{height:auto}.surface-object.is-container>.surface-object-content>.page-outline-shell>.container-page{min-height:120px}.surface-object.is-container .container-page-column{padding:20px 24px 56px}.surface-object.is-container>.surface-object-content>.page-outline-shell>.container-page[data-frameless=true]{min-height:0}.surface-object.is-container .container-page[data-frameless=true]>.container-page-column{padding:4px 8px}.surface-object.is-drawing>.surface-object-content{padding:0;width:100%;height:100%;overflow:visible}.surface-object.is-drawing{border:0;border-radius:0}.surface-object.is-drawing>.surface-object-header{position:absolute;bottom:100%;left:0;min-width:150px;background:var(--paper, var(--bg));display:none;z-index:5}.surface-object.is-drawing.is-hovered>.surface-object-header,.surface-object.is-drawing.is-selected>.surface-object-header{display:flex}.board-drawing{display:block;width:100%;height:100%;overflow:visible}.surface-object.is-drawing>.surface-object-content{position:relative}.board-drawing-label{position:absolute;display:flex;align-items:center;justify-content:center;color:var(--text, var(--ink));font-family:inherit;font-weight:500;text-align:center;white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:none;user-select:none}.board-drawing-label>span{max-width:100%}.board-drawing-label[data-tool=arrow]{width:max-content;max-width:240px;padding:1px 6px;border-radius:4px;background:var(--paper, var(--bg));transform:translate(-50%,-50%)}.board-drawing-label[data-editing]{pointer-events:auto}.board-drawing-label[data-tool=arrow][data-editing]{min-width:96px}.board-drawing-label textarea{display:block;width:100%;min-height:1lh;margin:0;padding:0;border:0;outline:none;resize:none;overflow:hidden;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:inherit;caret-color:#467de3}.board-drawing-input{position:absolute;inset:0;width:100%;height:100%;z-index:16;touch-action:none;cursor:crosshair;outline:none}.board-pen-color{width:24px;height:24px;border:0;background:transparent;padding:2px;cursor:pointer}.container-board .surface-toolbar{max-width:calc(100% - 20px);gap:2px;overflow:visible;z-index:25}.container-board .surface-toolbar button[aria-pressed=true]{background:var(--hover, #00000009);color:var(--accent)}.container-board .surface-toolbar button{flex-shrink:0}.container-board .surface-empty{pointer-events:none}.container-inspector{position:absolute;right:12px;top:46px;bottom:auto;max-height:calc(100% - 70px);z-index:50;box-shadow:0 8px 32px #00000010}@media(max-width:650px){.container-page-column{padding:20px 18px 80px}.container-workspace-bar{padding:4px 8px}.container-workspace-bar nav button span{max-width:110px}.container-board .surface-toolbar{gap:0;padding:4px}.container-board .surface-toolbar button{padding:5px;min-width:24px}.container-board .surface-toolbar .surface-toolbar-divider{margin:0 2px}}@media print{.container-workspace,.container-main,.container-page,.container-page-column{height:auto!important;overflow:visible!important;display:block!important;max-width:none!important}.container-workspace-bar,.container-activation,.container-board-enter,.board-drawing-input,.container-inspector,.surface-object-header{display:none!important}.container-page-column{padding:0!important}.surface-object.is-container{height:auto!important;break-inside:auto}.surface-object.is-container>.surface-object-content{height:auto!important;overflow:visible!important}.container-board,.container-board-scene,.container-board .page-surface,.container-board .surface-scroll{height:auto!important;position:static!important;overflow:visible!important}.container-board .surface-object.is-drawing{position:relative!important;min-height:60px}}.surface-editor-shell>.container-workspace{flex:1;min-width:0;width:100%}.portable-app:has(>.container-workspace){height:100dvh}.portable-app>.container-workspace{height:100%}.container-inspector{margin:0;width:250px;right:12px;top:46px;position:absolute}@media print{.portable-app:has(>.container-workspace){height:auto!important}}.container-page .surface-layout-flow>div:not(:last-child) .document-content{min-height:0}.container-board .surface-toolbar{width:max-content;flex-wrap:wrap;justify-content:center}.container-file-error{position:absolute;bottom:50px;left:12px;right:12px;padding:8px 12px;background:var(--paper, var(--bg));border:1px solid var(--line, var(--border));font-size:12px;border-radius:6px;z-index:60}@media print{.container-board .page-surface{position:relative!important;height:var(--board-print-height, 420px)!important;min-height:0!important;break-inside:avoid}.container-board .surface-scroll{position:absolute!important;inset:0!important;height:100%!important;overflow:hidden!important}.container-board .surface-world{position:absolute!important;inset:0 auto auto 0!important;width:0!important;height:0!important;transform:var(--board-print-transform, none)!important;transform-origin:0 0!important}.container-board .surface-world>.surface-object{position:absolute!important;margin:0!important}.container-board .surface-world>.surface-object.is-container,.container-board .surface-world>.surface-object.is-drawing{height:var(--frame-height, 460px)!important;min-height:0!important}.container-board .surface-object.is-container>.surface-object-header{display:flex!important}.container-board .surface-object.is-container>.surface-object-header button{display:none!important}.container-board .surface-object.is-container>.surface-object-content{height:calc(100% - 32px)!important;overflow:hidden!important}.container-board .surface-object.is-container>.surface-object-content>.page-outline-shell>.container-page{height:100%!important;overflow:hidden!important}}.container-workspace{isolation:isolate}@media print{.container-board .surface-world>.surface-object,.container-board .surface-layout-free>.surface-object{position:absolute!important;left:var(--frame-x, 0px)!important;top:var(--frame-y, 0px)!important;width:var(--frame-width, 360px)!important}.container-board .surface-layout-free{position:relative!important;min-height:var(--free-height, 200px)!important}}.surface-object[data-board-drawing=true],.surface-object[data-board-drawing=true]>.surface-object-content{pointer-events:none}.surface-object[data-board-drawing=true] [data-surface-ui]{pointer-events:auto}.surface-object.is-drawing:focus-within{z-index:auto}.surface-object.is-drawing:not(.is-selected)>.board-resize-handle{display:none}.board-object-outline{position:absolute;pointer-events:none;outline:calc(1.5px * var(--board-inv, 1)) solid #467de3}.surface-object[data-erasing=true] .board-drawing-selection,.surface-object[data-erasing=true]>:is(.board-resize-handle,.surface-object-rotate,.board-lock-badge){display:none}.board-drawing-selection{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.surface-object.is-drawing>.board-resize-handle:after,.board-group-outline[data-drawing-selection=true]>.board-resize-handle:after{border-radius:50%}.surface-object.is-drawing.is-hovered:not(.is-selected) .board-drawing{filter:none}@media print{.board-object-outline,.board-drawing-selection{display:none}}.page-surface.has-drawing-hit{cursor:move}.container-board.is-root>.container-board-scene>.page-surface:focus-visible{outline:none}.board-selection-drag-area{outline:none;pointer-events:auto;z-index:2;touch-action:none;cursor:move}
|
|
33
|
-
`);var Dr=U(Ne(),1);function C5(e){return e&&typeof e=="object"&&"message"in e?String(e.message):String(e)}ct(`.page-icon-form{display:flex;flex-direction:column;gap:16px;padding:20px 24px}.page-icon-preview{display:grid;place-items:center;min-height:80px}.page-icon-form label{display:flex;flex-direction:column;gap:7px;font-size:13px}.page-icon-form input:not([type=file]){width:100%;padding:9px 11px;border:1px solid var(--line, #ddd);border-radius:7px;background:var(--bg, white);color:var(--text, #252525)}.page-icon-emoji{display:grid;grid-template-columns:repeat(8,1fr);gap:5px}.page-icon-emoji button{font-size:23px;min-height:37px;border:1px solid transparent;border-radius:6px}.page-icon-emoji button:hover,.page-icon-emoji button[aria-pressed=true]{background:var(--hover, #f1f1f1);border-color:var(--line, #ddd)}.page-icon-help{font-size:12px;color:var(--muted, #777);margin:-8px 0 0}.page-icon-form footer{display:flex;flex-wrap:wrap;gap:8px;padding-top:12px}.page-icon-form footer>span{flex:1}.page-icon-form button:focus-visible{outline:2px solid var(--accent, #5b66d8);outline-offset:2px}@media(max-width:420px){.page-icon-form{padding:16px}.page-icon-emoji{grid-template-columns:repeat(6,1fr)}}
|
|
34
|
-
`);var ca=U(pe(),1),T5=vt(B1),dE=["\u{1F4C4}","\u{1F4DA}","\u{1F4DD}","\u{1F4CA}","\u{1F9EA}","\u{1F3A8}","\u{1F4A1}","\u{1F52C}","\u{1F331}","\u{1F680}","\u2B50","\u{1F4CC}","\u{1F3AF}","\u{1F5C2}\uFE0F","\u{1F3E0}","\u{1F4BB}","\u{1F30D}","\u{1F9E0}","\u2728","\u2764\uFE0F","\u{1F3AC}","\u{1F6E0}\uFE0F","\u{1F4F7}","\u{1F3B5}"];async function uE(e){if(!/^image\/(png|jpeg|gif|webp|avif)$/.test(e.type))throw new Error(T5("icon.unsupportedType"));if(e.size>8*1024*1024)throw new Error(T5("icon.tooLarge"));let t=await new Promise((r,i)=>{let l=new FileReader;l.onload=()=>r(String(l.result)),l.onerror=()=>i(l.error),l.onabort=()=>i(new Error(T5("icon.readCancelled"))),l.readAsDataURL(e)}),a=new Image;if(a.src=t,await a.decode(),Math.max(a.naturalWidth,a.naturalHeight)<=256&&t.length<=1e6)return t;let n=Math.min(1,256/Math.max(a.naturalWidth,a.naturalHeight)),o=document.createElement("canvas");return o.width=Math.max(1,Math.round(a.naturalWidth*n)),o.height=Math.max(1,Math.round(a.naturalHeight*n)),o.getContext("2d").drawImage(a,0,0,o.width,o.height),o.toDataURL("image/png")}function E5({value:e,onSave:t,onClose:a,title:n,fallback:o}){let r=ue(B1),i=ue(Xa),[l,s]=(0,Dr.useState)(e),[c,d]=(0,Dr.useState)(Wl(e)?"":e),[u,p]=(0,Dr.useState)(/^https?:/i.test(e)?e:""),[g,y]=(0,Dr.useState)(""),[b,x]=(0,Dr.useState)(!1),f=(0,Dr.useRef)(null),m=(0,Dr.useRef)(0),v=Wl(l)||l.length<=64?l:"",T=async E=>{x(!0),y("");try{await t(zc(E.trim())),a()}catch(L){y(C5(L))}finally{x(!1)}},w=async E=>{let L=++m.current;x(!0),y("");try{let H=await uE(E);L===m.current&&s(H)}catch(H){L===m.current&&y(C5(H))}finally{L===m.current&&x(!1)}};return(0,ca.jsx)(H1,{title:n??r("icon.pageIcon"),onClose:a,children:(0,ca.jsxs)("form",{className:"page-icon-form",onSubmit:E=>{E.preventDefault(),T(l)},children:[(0,ca.jsx)("div",{className:"page-icon-preview",children:(0,ca.jsx)(Kn,{value:v,size:56,fallback:o})}),(0,ca.jsxs)("label",{children:[r("icon.text"),(0,ca.jsx)("input",{"aria-label":r("icon.text"),value:c,maxLength:64,disabled:b,onChange:E=>{d(E.target.value),s(E.target.value),y("")}})]}),(0,ca.jsx)("div",{className:"page-icon-emoji","aria-label":r("icon.common"),children:dE.map(E=>(0,ca.jsx)("button",{type:"button","aria-label":r("icon.use",{icon:E}),"aria-pressed":l===E,disabled:b,onClick:()=>{s(E),d(E),y("")},children:E},E))}),(0,ca.jsx)("input",{ref:f,type:"file",accept:"image/png,image/jpeg,image/gif,image/webp,image/avif",hidden:!0,onChange:E=>{let L=E.target.files?.[0];E.target.value="",L&&w(L)}}),(0,ca.jsx)("button",{className:"studio-button",type:"button",disabled:b,onClick:()=>f.current?.click(),children:r("icon.upload")}),(0,ca.jsx)("p",{className:"page-icon-help",children:r("icon.help")}),(0,ca.jsxs)("label",{children:[r("icon.url"),(0,ca.jsx)("input",{inputMode:"url","aria-label":r("icon.urlAria"),placeholder:"https://\u2026",value:u,disabled:b,onChange:E=>{p(E.target.value),s(E.target.value.trim()),y("")}})]}),g&&(0,ca.jsx)("p",{className:"studio-error",role:"alert",children:g}),(0,ca.jsxs)("footer",{children:[(0,ca.jsx)("button",{type:"button",className:"studio-button",disabled:b||!e,onClick:()=>{T("")},children:r("icon.remove")}),(0,ca.jsx)("span",{}),(0,ca.jsx)("button",{className:"studio-button",type:"button",disabled:b,onClick:a,children:i("cancel")}),(0,ca.jsx)("button",{className:"studio-button primary",disabled:b,type:"submit",children:b?r("icon.processing"):i("save")})]})]})})}ct(`.page-width-switch{position:relative;width:100%;padding:3px;border-radius:8px;background:var(--hover);isolation:isolate}.page-width-switch-thumb{position:absolute;left:3px;top:3px;bottom:3px;width:calc((100% - 6px) / 3);border-radius:6px;background:var(--paper, var(--bg));box-shadow:0 1px 4px #00000014;transition:transform .14s ease}.page-width-switch-labels{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));text-align:center;font-size:12px;line-height:28px;color:var(--muted)}.page-width-switch-labels [data-active=true]{color:var(--text);font-weight:600}.page-width-switch>input[type=range]{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;opacity:0;cursor:grab;touch-action:none}.page-width-switch>input[type=range]:active{cursor:grabbing}.page-width-switch:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}@media(prefers-reduced-motion:reduce){.page-width-switch-thumb{transition:none}}
|
|
35
|
-
`);var xl=U(pe(),1),Hv=["standard","wide","full"],_v=["width.standard","width.wide","width.full"];function Uv({value:e,onChange:t}){let a=ue(tt),n=Hv.indexOf(e);return(0,xl.jsxs)("div",{className:"page-width-switch",children:[(0,xl.jsx)("span",{className:"page-width-switch-thumb",style:{transform:`translateX(${n*100}%)`},"aria-hidden":"true"}),(0,xl.jsx)("div",{className:"page-width-switch-labels","aria-hidden":"true",children:_v.map((o,r)=>(0,xl.jsx)("span",{"data-active":r===n,children:a(o)},o))}),(0,xl.jsx)("input",{type:"range",min:0,max:2,step:1,value:n,"aria-label":a("pageWidth"),"aria-valuetext":a(_v[n]),onChange:o=>t(Hv[Number(o.target.value)]),onKeyDown:o=>{["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(o.key)&&o.stopPropagation()}})]})}var Vv=U(Ne(),1);ct(`.board-tool-stack{position:relative;--board-tool-width: 34px}.board-tool-buttons,.board-tool-keys{box-sizing:border-box;width:100%;grid-template-columns:repeat(var(--board-tool-count),minmax(0,1fr));display:grid;grid-template-columns:repeat(var(--board-tool-count),var(--board-tool-width));gap:2px}.surface-toolbar .board-tool-buttons button{width:var(--board-tool-width);min-width:0;padding-inline:0}.board-tool-shortcuts{position:absolute;bottom:calc(100% + 10px);left:0;width:100%;display:flex;flex-direction:column;align-items:center}.board-tool-keys{padding-block:5px;border:1px solid var(--line, var(--border));border-radius:8px;background:var(--paper, var(--bg));box-shadow:0 3px 12px #00000008}.board-tool-keys kbd{text-align:center;font-family:inherit;font-size:11px;line-height:18px;color:var(--muted)}.surface-toolbar .board-tool-disclosure{min-width:24px;min-height:14px;height:14px;padding:0;border:1px solid var(--line, var(--border));border-radius:5px;background:var(--paper, var(--bg));margin-bottom:2px}@media(max-width:650px){.board-tool-stack{--board-tool-width: 24px}}@media(pointer:coarse){.board-tool-shortcuts{display:none}.board-tool-stack{--board-tool-width: 36px}}.board-writing-options{position:relative;display:flex;gap:3px;align-items:center}.board-writing-options details>summary{display:flex;padding:8px;cursor:pointer;border-radius:6px}.board-writing-options details[open]>div{position:absolute;bottom:calc(100% + 12px);right:0;padding:12px;min-width:190px;background:var(--paper, var(--bg));border:1px solid var(--line, var(--border));border-radius:8px;box-shadow:0 4px 20px #0002}.board-writing-options label{display:flex;align-items:center;gap:8px;white-space:nowrap}.page-surface[data-board-tool=pan]{cursor:grab}.page-surface[data-board-tool=eraser] .board-drawing-input{cursor:crosshair}.board-style-section{display:flex;align-items:center;gap:6px;white-space:nowrap}.board-style-section+.board-style-section{border-inline-start:1px solid var(--line, var(--border));padding-inline-start:8px}.board-label-size{display:inline-flex;align-items:center;gap:2px;padding-inline:4px;color:var(--muted, inherit)}.board-label-size select{height:26px;padding:0 2px;border:0;border-radius:6px;background:transparent;color:var(--text, inherit);font:inherit;font-size:12px;cursor:pointer}.board-label-size select:hover,.board-label-size select:focus-visible{background:var(--hover, color-mix(in srgb, currentColor 8%, transparent))}.board-width-controls,.board-width-controls>label,.board-pressure-controls{display:flex;flex-direction:row;align-items:center;gap:6px}.board-color-picker{position:relative}.board-color-picker>summary{width:25px;height:25px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--paper, var(--bg)),0 0 0 1px var(--line, var(--border));cursor:pointer;list-style:none}.board-color-picker>summary::-webkit-details-marker{display:none}.board-color-menu{position:absolute;z-index:5;bottom:calc(100% + 12px);right:0;width:max-content;max-width:calc(100vw - 24px);padding:10px;border-radius:12px;background:var(--paper, var(--bg));border:1px solid var(--line, var(--border));box-shadow:0 5px 20px #0002}.board-color-presets{display:grid;grid-template-columns:repeat(4,28px);gap:8px}.surface-toolbar .board-color-presets button{width:28px;height:28px;min-width:28px;min-height:28px;padding:0;border-radius:50%;border:1px solid #8885}.surface-toolbar .board-color-presets button[aria-pressed=true]{outline:2px solid var(--accent, #467de3);outline-offset:2px}.board-color-menu .board-full-palette{display:flex;justify-content:space-between;border-top:1px solid var(--line, var(--border));margin-top:10px;padding-top:10px;font-size:12px}.surface-toolbar .board-pressure-toggle{min-width:28px;width:28px;height:28px;min-height:28px;border:1px solid var(--line, var(--border));border-radius:6px;padding:4px}.board-pressure-toggle svg{width:18px;height:18px}.board-pressure-toggle[aria-pressed=true]{background:var(--hover);color:var(--accent, #467de3)}.surface-toolbar .board-color-picker>summary{box-sizing:border-box;width:22px;height:22px;min-width:22px;min-height:22px;padding:0;border-radius:50%}.surface-toolbar :is(.board-color-empty,.board-color-picker>summary[data-empty]){background-color:#fff;background-image:linear-gradient(135deg,transparent 46%,#df4545 47%,#df4545 53%,transparent 54%)}.board-toolbar-inline-properties .board-style-controls{height:32px;box-sizing:border-box;padding-block:0}.board-toolbar-inline-properties .board-style-section{font-size:11px;line-height:16px}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-width-controls>label{flex-direction:column}.board-dockable-toolbar:is([data-dock=left],[data-dock=right]) .board-toolbar-inline-properties .board-style-controls{height:auto}@media(pointer:coarse){.board-color-presets{grid-template-columns:repeat(4,36px)}.surface-toolbar .board-color-presets button{width:36px;height:36px;min-width:36px;min-height:36px}}
|
|
36
|
-
`);var Do=U(pe(),1),pE=[Rf,Bf,Af,Gf,vf,J1,zf,kf,Mf,l0];function Zv({tool:e,onChange:t}){let a=ue(tt),[n,o]=(0,Vv.useState)(!0),r=typeof document<"u"&&document.documentElement.dataset.native==="ios",i=n5.map((l,s)=>({...l,Icon:pE[s]})).filter(l=>!r||!["lasso","pan"].includes(l.tool??""));return(0,Do.jsxs)("div",{className:"board-tool-stack",style:{"--board-tool-count":i.length},children:[(0,Do.jsxs)("div",{className:"board-tool-shortcuts",children:[(0,Do.jsx)("button",{type:"button",className:"board-tool-disclosure","aria-label":a(n?"tool.hideShortcuts":"tool.showShortcuts"),"aria-expanded":n,onClick:()=>o(l=>!l),children:(0,Do.jsx)(Ol,{size:12,style:n?void 0:{transform:"rotate(180deg)"}})}),n&&(0,Do.jsx)("div",{className:"board-tool-keys","aria-hidden":"true",children:i.map(({key:l})=>(0,Do.jsx)("kbd",{children:l},l))})]}),(0,Do.jsx)("div",{className:"board-tool-buttons",children:i.map(({tool:l,label:s,key:c,Icon:d})=>(0,Do.jsx)("button",{type:"button","aria-label":a(s),"aria-keyshortcuts":c,title:a("tool.withShortcut",{label:a(s),key:c}),"aria-pressed":e===l,onClick:()=>t(l),children:(0,Do.jsx)(d,{size:15})},c))})]})}var me=U(pe(),1),Gv=320,$v=(0,Le.createContext)(null);function qv({document:e,geometry:t,onChange:a,renderContent:n,header:o,revealId:r,revealInPlace:i,onRevealHandled:l,undo:s,redo:c,canUndo:d=!1,canRedo:u=!1,reading:p=!1,nativeInkBackground:g=!1,hideTitle:y=!1,pageWidthModes:b=!1,onActiveSurfaceChange:x,onControlsChange:f,retainedState:m,inspectorHost:v,onOpenEmbeddedSurface:T}){let w=ue(tt),E=ue(or),[L,H]=(0,Le.useState)(null),S=(0,Le.useMemo)(()=>fl({...e}),[e]),k=(0,Le.useMemo)(()=>new nu,[S.id]),M=t??k,O=(0,Le.useRef)(S);O.current=S;let[C,N]=(0,Le.useState)(m?.selected??null),[z,A]=(0,Le.useState)(null),[q,P]=(0,Le.useState)(m?.expanded??null),[Z,F]=(0,Le.useState)(m?.active??S.content.attrs.id),[ee,j]=(0,Le.useState)(null),[K,_]=(0,Le.useState)(null),[$,D]=(0,Le.useState)(null),[V,B]=(0,Le.useState)([]),de=(0,Le.useCallback)(()=>D(null),[]),[he,ye]=(0,Le.useState)(!1);(0,Le.useEffect)(()=>{let oe=matchMedia("print"),ne=()=>(0,vu.flushSync)(()=>ye(!0)),G=()=>ye(!1),Ve=()=>ye(oe.matches);return window.addEventListener("beforeprint",ne),window.addEventListener("afterprint",G),oe.addEventListener("change",Ve),()=>{window.removeEventListener("beforeprint",ne),window.removeEventListener("afterprint",G),oe.removeEventListener("change",Ve)}},[]);let _e=(0,Le.useRef)(m?.scrolls??new Map),Oe=(0,Le.useRef)(m?.outlines??new Map),Xe=(0,Le.useRef)({selected:C,expanded:q,active:Z});Xe.current={selected:C,expanded:q,active:Z},(0,Le.useLayoutEffect)(()=>()=>{m&&Object.assign(m,Xe.current,{scrolls:_e.current,outlines:Oe.current})},[m]),(0,Le.useEffect)(()=>{x?.(Z)},[Z,S.id]);let yt=(0,Le.useMemo)(()=>S2(S),[S.content]),Y=q?Ke(S,q)?.node:void 0,ae=Y?.type==="surface"?Y:S.content,xe=[...yt[ae.attrs.id]??[],ae.attrs.id].map(oe=>Ke(S,oe)?.node).filter(oe=>oe?.type==="surface"),Ae=S.content.attrs.id,Ue=(0,Le.useCallback)(oe=>{if(oe!==Ae&&T){T(oe);return}P(oe===Ae?null:oe),F(oe),N(null),A(null)},[Ae,T]),Se=ae.attrs.id,da=(0,Le.useCallback)(()=>_(Se),[Se]),Oa=(0,Le.useCallback)(oe=>{let ne=No(O.current,Se,G=>{G.attrs={...G.attrs,widthMode:oe}});O.current=ne,a?.(ne)},[Se,a]),ie=(0,Le.useCallback)(oe=>{let ne=G9(O.current,Se,oe);O.current=ne,a?.(ne),Ue(Ke(ne,Se)?.parent?.attrs?.id??ne.content.attrs.id)},[Se,a,Ue]),fe=ae===S.content?S.title||jn(ae):jn(ae),Me=ta(ae);(0,Le.useEffect)(()=>{Me==="board"&&z&&z!==C&&A(null)},[Me,C,z]);let Re=(0,Le.useMemo)(()=>a&&s&&c?{documentId:S.id,surfaceId:Se,name:fe,kind:Me,nested:Se!==Ae,canUndo:d,canRedo:u,undo:s,redo:c,setIcon:da,wrap:ie,pageWidthMode:ae.attrs?.widthMode??"standard",setPageWidthMode:Oa,outlineSettings:()=>H(Se)}:null,[S.id,Se,fe,Me,Ae,d,u,s,c,da,ie,ae.attrs?.widthMode,Oa,a]);(0,Le.useLayoutEffect)(()=>{f?.(Re)},[f,Re]),(0,Le.useLayoutEffect)(()=>()=>{f?.(null)},[f]),(0,Le.useEffect)(()=>{q&&!Y&&Ue(S.content.attrs.id)},[q,!!Y]),(0,Le.useEffect)(()=>{if(!r)return;j(r),N(r);let ne=[...yt[r]??[]].reverse().find(G=>Ke(S,G)?.node.type==="surface");ne&&(F(ne),P(ne===S.content.attrs.id?null:ne)),l?.()},[r]),(0,Le.useEffect)(()=>{i&&(N(i),j(i))},[i]);let Ce={geometry:M,document:S,current:O,commit:(oe,ne)=>{let G=Ia({...M.materialize(oe),surfaceViews:{...oe.surfaceViews}},{clone:!1});O.current=G,a?.(G,ne)},readOnly:!a,printing:he,pageWidthModes:b,selected:C,select:N,inspect:A,expand:Ue,active:Z,activate:F,render:n,scrolls:_e.current,outlines:Oe.current,outlineSettings:H,revealRequest:ee,requestReveal:j,openComponents:(oe,ne,G)=>D({parentId:oe,left:ne.x,top:ne.y,position:G})},ge=z?Ke(S,z):void 0,mt=z?S.layout[z]:void 0,Pe=oe=>Ce.commit(vl(Ce.geometry.materialize(O.current),{[z]:oe}));return(0,me.jsx)(ny,{components:V,children:(0,me.jsx)(Mi.Provider,{value:oe=>B(ne=>[...ne,oe]),children:(0,me.jsxs)($v.Provider,{value:Ce,children:[L&&!Ce.readOnly&&Ke(S,L)?.node.attrs?.kind==="page"&&(0,me.jsx)(xy,{page:Ke(S,L).node,onClose:()=>H(null),onSave:(oe,ne)=>{let G=Ke(O.current,L)?.node;if(!G||G.attrs?.kind!=="page"||JSON.stringify(G.attrs.outline)!==ne)throw new Error(E("errorChanged"));Ce.commit(No(O.current,L,Ve=>{Ve.attrs={...Ve.attrs},oe?Ve.attrs.outline=oe:delete Ve.attrs.outline}))}}),K&&!Ce.readOnly&&(0,me.jsx)(E5,{value:K===S.content.attrs.id?S.icon:Ke(S,K)?.node.attrs?.icon??"",onClose:()=>_(null),onSave:async oe=>{let ne=O.current;if(K===ne.content.attrs.id)Ce.commit({...ne,icon:oe});else{if(!Ke(ne,K))throw new Error(w("error.pageRemoved"));Ce.commit(No(ne,K,G=>{G.attrs={...G.attrs,icon:oe}}))}}}),$&&(0,me.jsx)(Ly,{left:$.left,top:$.top,onClose:de,onInsert:(oe,ne)=>{let G=iu(O.current,$.parentId,oe,ne);$.position&&Object.assign(G.document.layout[G.nodeId],$.position),Ce.commit(G.document),N(G.nodeId),$.position||j(G.nodeId),de()}}),(0,me.jsxs)(wy,{className:"container-workspace","data-resource-id":S.id,onKeyDown:oe=>{if(!(oe.defaultPrevented||oe.nativeEvent.isComposing)){if(!Ce.readOnly&&(oe.metaKey||oe.ctrlKey)&&!oe.altKey&&!oe.target.closest("input,textarea,select")&&["z","y"].includes(oe.key.toLowerCase())){let ne=oe.shiftKey||oe.key.toLowerCase()==="y";if(ne?u&&c:d&&s){oe.preventDefault(),oe.stopPropagation(),ne?c?.():s?.();return}}if(oe.key==="/"&&!oe.metaKey&&!oe.ctrlKey&&!oe.altKey&&!Ce.readOnly&&!oe.target.closest('input,textarea,select,[role="dialog"]')&&oe.target.closest("[contenteditable]")?.getAttribute("contenteditable")!=="true"){let ne=oe.target.closest("[data-component-container],[data-container-root]"),G=ne?.dataset.componentContainer??ne?.dataset.containerRoot??Z,Ve=ne?.getBoundingClientRect()??oe.currentTarget.getBoundingClientRect();oe.preventDefault(),oe.stopPropagation();let Dt=Ke(O.current,G);for(;Dt&&Dt.node.type!=="surface";)Dt=Dt.parent?.attrs?.id?Ke(O.current,Dt.parent.attrs.id):void 0;F(Dt?.node.attrs?.id??Z),D({parentId:G,left:Ve.left+40,top:Ve.top+80});return}if(oe.key==="Escape"&&!oe.target.closest("input,textarea,select")){if(z){A(null);return}if(Z!==ae.attrs.id){F(ae.attrs.id);return}xe.length>1&&Ue(xe.at(-2).attrs.id)}}},children:[xe.length>1&&(0,me.jsxs)("div",{className:"container-workspace-bar","data-surface-ui":!0,children:[(0,me.jsx)("nav",{"aria-label":w("nav.hierarchy"),children:xe.map((oe,ne)=>(0,me.jsxs)("span",{children:[ne>0&&(0,me.jsx)(pn,{size:13}),(0,me.jsxs)("button",{type:"button","aria-current":oe===ae?"page":void 0,onClick:()=>Ue(oe.attrs.id),children:[ta(oe)==="page"?(0,me.jsx)(Kn,{value:oe===S.content?S.icon:oe.attrs?.icon,size:14}):(0,me.jsx)(o0,{size:14}),(0,me.jsx)("span",{children:ne===0?!y&&S.title||ta(oe)==="page"&&"Page"||"Board":jn(oe)})]})]},oe.attrs.id))}),xe.length>1&&(0,me.jsxs)("button",{type:"button",onClick:()=>Ue(xe.at(-2).attrs.id),children:[(0,me.jsx)(gf,{size:14}),w("nav.back")]})]}),(0,me.jsx)("div",{className:"container-main",children:(0,me.jsx)(Fv,{node:ae,root:!0,header:ae===S.content?o:(0,me.jsxs)("h1",{children:[(0,me.jsx)(Kn,{value:ae.attrs?.icon,size:32})," ",jn(ae)]}),reading:p,nativeInkBackground:g},ae.attrs.id)}),ge&&(0,me.jsx)(mE,{host:v,children:(0,me.jsxs)("aside",{className:`surface-inspector container-inspector${Me==="board"?" board-bottom-inspector":""}`,"data-surface-ui":!0,"aria-label":w("inspector.title"),children:[(0,me.jsxs)("header",{children:[(0,me.jsx)("strong",{children:w(v?"inspector.currentObject":"inspector.title")}),(0,me.jsx)("button",{type:"button","aria-label":w("inspector.close"),onClick:()=>A(null),children:(0,me.jsx)(on,{size:16})})]}),(0,me.jsxs)("label",{children:[w("inspector.name"),(0,me.jsx)("input",{"aria-label":w("inspector.nameLabel"),value:ge.node.attrs?.name??jn(ge.node),maxLength:200,onChange:oe=>Ce.commit(No(O.current,z,ne=>{ne.attrs={...ne.attrs,name:oe.target.value}}))})]}),ge.node.type==="surface"&&(0,me.jsxs)("button",{type:"button",onClick:()=>_(ge.node.attrs.id),children:[(0,me.jsx)(Kn,{value:ge.node.attrs?.icon,size:18})," ",w("container.setIcon")]}),b&&ge.node.type==="surface"&&ta(ge.node)==="page"&&(0,me.jsxs)("label",{children:[w("pageWidth"),(0,me.jsx)(Uv,{value:ge.node.attrs?.widthMode??"standard",onChange:oe=>Ce.commit(No(O.current,z,ne=>{ne.attrs={...ne.attrs,widthMode:oe}}))})]}),ge.node.type==="surface"&&ta(ge.node)==="page"&&(0,me.jsxs)("label",{children:[(0,me.jsx)("input",{type:"checkbox",checked:!!ge.node.attrs?.frameless,onChange:oe=>Ce.commit(No(O.current,z,ne=>{ne.attrs={...ne.attrs,frameless:oe.target.checked}}))}),w("container.frameless")]}),ge.node.type==="region"&&(0,me.jsxs)("label",{children:[w("inspector.arrange"),(0,me.jsxs)("select",{"aria-label":w("inspector.regionLayout"),value:mt?.mode??"flow",onChange:oe=>Pe({...mt,mode:oe.target.value}),children:[(0,me.jsx)("option",{value:"flow",children:w("layout.flow")}),(0,me.jsx)("option",{value:"grid",children:w("layout.grid")}),(0,me.jsx)("option",{value:"free",children:w("layout.free")})]})]}),mt?.mode==="grid"&&(0,me.jsxs)("label",{children:[w("inspector.columns"),(0,me.jsx)("input",{"aria-label":w("inspector.gridColumns"),type:"number",min:1,max:12,value:mt.columns??2,onChange:oe=>{let ne=Number(oe.target.value);Number.isInteger(ne)&&ne>=1&&ne<=12&&Pe({...mt,columns:ne})}})]}),mt&&!(ge.node.type==="drawing"&&ge.node.attrs?.tool==="arrow")&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsxs)("label",{children:[w("inspector.width"),(0,me.jsx)("input",{"aria-label":w("inspector.moduleWidth"),type:"number",min:ge.node.type==="drawing"?1:120,max:1e4,value:Math.round(mt.width),onChange:oe=>{let ne=Number(oe.target.value);ne>=(ge.node.type==="drawing"?1:120)&&ne<=1e4&&Pe({...mt,width:ne})}})]}),ge.node.type==="surface"&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsxs)("label",{children:[w("inspector.heightMode"),(0,me.jsxs)("select",{"aria-label":w("inspector.moduleHeightMode"),value:mt.heightMode??"fixed",onChange:oe=>Pe({...mt,heightMode:oe.target.value}),children:[(0,me.jsx)("option",{value:"fixed",children:w("heightMode.fixed")}),ta(ge.node)==="page"&&(0,me.jsx)("option",{value:"auto",children:w("heightMode.auto")})]})]}),mt.heightMode!=="auto"&&(0,me.jsxs)("label",{children:[w("inspector.height"),(0,me.jsx)("input",{"aria-label":w("inspector.moduleHeight"),type:"number",min:180,max:5e3,value:mt.height??460,onChange:oe=>{let ne=Number(oe.target.value);ne>=180&&ne<=5e3&&Pe({...mt,height:ne})}})]})]})]}),(0,me.jsxs)("label",{children:[w("inspector.parent"),(0,me.jsx)("select",{"aria-label":w("inspector.parent"),value:ge.parent?.attrs?.id??"",onChange:oe=>{let ne=oe.target.value;Ce.commit(S5(Ce.geometry.materialize(O.current),z,ne,{...mt??{width:640},x:0,y:0})),A(null),Ue(ne),j(z)},children:fE(S,z).map(oe=>(0,me.jsx)("option",{value:oe.attrs.id,children:oe===S.content?w("inspector.rootOption",{name:jn(oe)}):jn(oe)},oe.attrs.id))})]}),(0,me.jsx)("div",{className:"surface-inspector-actions",children:[-1,1].map(oe=>(0,me.jsx)("button",{type:"button",onClick:()=>{let ne=Ke(O.current,z),G=ne.parent,Ve=G.content.indexOf(ne.node),Dt=S5(O.current,z,G.attrs?.id,void 0,Math.max(0,Math.min(G.content.length-1,Ve+oe))),Sa=Ke(Dt,G.attrs.id).node,ia=Dt.surfaceViews[G.attrs.id];ia&&(ia.readingOrder=Sa.content.map(zt=>zt.attrs.id)),Ce.commit(Dt)},children:oe<0?w("inspector.moveEarlier"):w("inspector.moveLater")},oe))}),(0,me.jsx)("button",{type:"button",onClick:()=>{Ce.commit(k5(Ce.geometry.materialize(O.current),z)),A(null),N(null)},children:w("inspector.delete")})]})})]})]})})})}function mE({host:e,children:t}){return e?(0,vu.createPortal)(t,e):t}function fE(e,t){let a=new Set,n=Ke(e,t)?.node;n&&Et(n,r=>{r.attrs?.id&&a.add(r.attrs.id)});let o=[];return Et(e.content,r=>{["surface","region"].includes(r.type??"")&&!a.has(r.attrs.id)&&o.push(r)}),n?.type==="drawing"?o.filter(r=>{let i=r;for(;i&&i.type!=="surface";)i=Ke(e,i.attrs.id)?.parent??void 0;return i?.attrs?.kind==="board"}):o}function Fv({node:e,root:t=!1,header:a,reading:n=!1,nativeInkBackground:o=!1}){let r=(0,Le.useContext)($v),i=e.attrs.id,l=ta(e),s=r.readOnly,c=(0,Le.useRef)(null),d=(0,Le.useRef)(null),u=(0,Le.useRef)(null),[p,g]=(0,Le.useState)(null),[y,b]=(0,Le.useState)({pen:{color:"#252629",fillColor:"none",strokeWidth:2.5},highlighter:{color:"#facc15",fillColor:"none",strokeWidth:16},shape:{color:"#252629",fillColor:"none",strokeWidth:2.5},arrow:{color:"#252629",fillColor:"none",strokeWidth:2.5},eraser:{color:"#252629",fillColor:"none",strokeWidth:24}}),x=p==="pen"||p==="highlighter"||p==="eraser"||p==="arrow"?p:p==="text"?"pen":"shape",f=y[x],m=k=>{let M=window.showai?.inlineInk?.flush();return r.activate(i),r.select(null),r.inspect(null),g(k),M},v=t||r.active===i,T=(0,Le.useContext)(ru),w=`showai.page-scroll.v3:${r.document.id}:${i}:${t?"expanded":"embedded"}${T?`:${T}`:""}`;r.outlines.has(w)||r.outlines.set(w,{});let E=r.outlines.get(w);(0,Le.useLayoutEffect)(()=>{let k=d.current;if(!k)return;let M=ou()?.pageScrolls?.[i];if(M){k.scrollLeft=M.x,k.scrollTop=M.y;return}let O=r.scrolls.get(w)??gE(w);return Number.isFinite(O)&&(k.scrollTop=O),()=>{r.scrolls.set(w,k.scrollTop),bE(w,k.scrollTop)}},[w]),(0,Le.useLayoutEffect)(()=>{!r.printing&&d.current&&r.scrolls.has(w)&&(d.current.scrollTop=r.scrolls.get(w))},[r.printing,w]),(0,Le.useEffect)(()=>{let k=r.revealRequest;!k||[...S2(r.current.current)[k]??[]].reverse().find(C=>Ke(r.current.current,C)?.node.type==="surface")!==i||(l==="board"&&!n?c.current?.reveal(k):requestAnimationFrame(()=>d.current?.querySelector(`[data-surface-id="${CSS.escape(k)}"],[data-block-id="${CSS.escape(k)}"]`)?.scrollIntoView({block:"nearest"})),r.requestReveal(null))},[r.revealRequest]);let L={geometry:r.geometry,scale:1,selected:r.selected,select:r.select,inspect:r.inspect,expand:r.expand,readOnly:s,revealAll:l==="page"||n,revealed:new Set,move:s?void 0:(k,M)=>r.commit(vl(r.geometry.materialize(r.current.current),{[k]:M})),remove:s?void 0:k=>{r.commit(k5(r.geometry.materialize(r.current.current),k)),r.select(null)}},H=a??(!t&&!e.attrs?.frameless?(0,me.jsxs)("h2",{children:[(0,me.jsx)(Kn,{value:e.attrs?.icon,size:24})," ",jn(e)]}):void 0),S=(0,Le.useCallback)(k=>(0,me.jsx)(Fv,{node:k}),[]);return t&&o&&s&&l==="board"?(0,me.jsx)(Tn.Provider,{value:{...L,revealAll:!0},children:(0,me.jsx)("div",{className:"native-ink-background",children:(0,me.jsx)("div",{className:"native-ink-world","data-native-ink-world":!0,children:(0,me.jsx)(su,{document:r.document,container:e,spatial:!0,renderContent:r.render,renderSurface:S})})})}):l==="page"||n?(0,me.jsx)(Tn.Provider,{value:L,children:(0,me.jsxs)("div",{className:"page-outline-shell",ref:u,children:[(0,me.jsx)("div",{ref:d,className:`container-page${t?" is-root":""}${n?" is-reading-projection":""}`,"data-container-root":i,"data-frameless":e.attrs?.frameless||void 0,"data-width-mode":(r.pageWidthModes||e.attrs?.outline?.enabled)&&l==="page"?e.attrs?.widthMode??"standard":void 0,"data-input-surface":i,"aria-label":`Page ${jn(e)}`,onScroll:k=>{!r.printing&&!matchMedia("print").matches&&r.scrolls.set(w,k.currentTarget.scrollTop)},onPointerDownCapture:k=>{k.target.closest("[data-container-root]")===k.currentTarget&&r.activate(i)},children:(0,me.jsxs)("div",{className:"container-page-column",children:[H&&(0,me.jsx)("div",{className:"container-page-heading",children:H}),l==="page"&&(0,me.jsx)(ly,{page:e}),(0,me.jsx)(su,{document:r.document,container:e,spatial:!n,renderContent:r.render,renderSurface:S})]})}),l==="page"&&!r.printing&&(0,me.jsx)(iy,{page:e,documentId:r.document.id,scroll:d,shell:u,view:E,onSettings:s?void 0:()=>r.outlineSettings(i)})]})}):(0,me.jsx)("div",{className:`container-board${t?" is-root":""}${v?" is-active":""}`,"data-container-root":i,"aria-label":`Board ${jn(e)}`,onPointerDownCapture:k=>{k.target.closest("[data-container-root]")===k.currentTarget&&r.activate(i)},children:(0,me.jsx)("div",{className:"container-board-scene",children:(0,me.jsx)(x5,{embedded:!t,geometry:r.geometry,boardDocument:r.document,containerId:i,onTransform:s?void 0:(k,M)=>r.commit(vl(r.geometry.materialize(r.current.current),k),M),onDuplicate:s?void 0:(k,M)=>{let O=Ty(r.geometry.materialize(r.current.current),k,M);return r.commit(O.document),r.select(O.ids[0]??null),O.ids},onCopyObjects:k=>Xm(r.geometry.materialize(r.current.current),k),onPasteObjects:s?void 0:(k,M)=>{let O=r.geometry.materialize(r.current.current);if("text"in k){let A=iu(O,i,"text",{format:"richtext",content:{type:"doc",content:k.text.split(/\r?\n/).slice(0,500).map(q=>({type:"paragraph",...q?{content:[{type:"text",text:q}]}:{}}))}});return Object.assign(A.document.layout[A.nodeId],{width:Gv,...M}),r.commit(A.document),r.select(A.nodeId),[A.nodeId]}let C=k.clip.nodes.map(A=>k.clip.layout[A.attrs.id]).filter(Boolean),N=M&&C.length?{x:M.x-(Math.min(...C.map(A=>A.x))+Math.max(...C.map(A=>A.x+A.width)))/2,y:M.y-Math.min(...C.map(A=>A.y))}:{x:24,y:24},z=Qm(O,i,k.clip,N);return r.commit(z.document),r.select(z.ids[0]??null),z.ids},onReorder:s?void 0:(k,M)=>r.commit(Ey(r.geometry.materialize(r.current.current),k,M)),onGroup:s?void 0:(k,M,O)=>{let C=Ay(r.geometry.materialize(r.current.current),k,M,O);return C?(r.commit(C.document),r.select(C.id),C.id):null},onUngroup:s?void 0:(k,M)=>{let O=My(r.geometry.materialize(r.current.current),k,M);return O?(r.commit(O.document),r.select(O.ids[0]??null),O.ids):[]},onLock:s?void 0:(k,M)=>r.commit(Iy(r.geometry.materialize(r.current.current),k,M)),onDeleteSelection:s?void 0:k=>r.commit(Ny(r.geometry.materialize(r.current.current),k)),ref:c,pageId:`${r.document.id}:${i}:${t?"expanded":"embedded"}`,enabled:!0,printing:r.printing,nodes:Ws(r.document,e).map(k=>({id:k.attrs.id,name:jn(k)})),layoutKey:r.document.layout,paths:S2({...r.document,content:e}),views:km(r.document,e),header:t?H:void 0,selected:r.selected,onSelect:r.select,onInspect:r.inspect,onExpand:r.expand,onMove:L.move,onConnect:s?void 0:(k,M,O)=>{let C=r.geometry.materialize(r.current.current),N=Ke(C,k);if(!N||!C.layout[k])return;let z=y2(N.node,C.layout[k]);z[M==="start"?0:1]=O;let A={...N.node.attrs?.bindings},q=v2(C,N.parent.attrs.id,O,8/(c.current?.scale()??1));q?A[M]=q:delete A[M];let P=I1(N.node,C.layout[k],z,A);r.commit(No({...C,layout:{...C.layout,[k]:P.frame}},k,Z=>{Z.attrs=P.node.attrs}))},onRemove:L.remove,onViews:s?void 0:k=>r.commit({...r.current.current,surfaceViews:{...r.current.current.surfaceViews,[i]:k}}),drawTool:p,drawColor:f.color,drawFillColor:f.fillColor,drawStrokeWidth:f.strokeWidth,drawPressure:f.pressure!==!1,onStyleChange:(k,M)=>{let O=k.filter(N=>Pl(Ke(r.current.current,N)?.node));if(!O.length){b(N=>({...N,[x]:{...N[x],...M}}));return}let C=r.current.current;for(let N of O)C=No(C,N,z=>{let A={...M};["rectangle","ellipse"].includes(z.attrs.tool)||delete A.fillColor,io(z)||delete A.labelSize,z.attrs={...z.attrs,...A}});if(M.labelSize!==void 0){let N={};for(let z of O){let A=Ke(C,z)?.node,q=C.layout?.[z];if(!A?.attrs?.label||!q||A.attrs.tool==="arrow"||!io(A))continue;let P=Q9(A.attrs.tool,A.attrs.label,M.labelSize,q.width,A.attrs.strokeWidth);P>(q.height??0)&&(N[z]={...q,height:P})}Object.keys(N).length&&(C=vl(C,N))}r.commit(C,`style:${[...O].sort().join(",")}`)},onLabel:s?void 0:(k,M,O)=>{let C=r.geometry.materialize(r.current.current),N=C.layout?.[k];O&&N&&O>(N.height??0)&&(C=vl(C,{[k]:{...N,height:O}})),C=No(C,k,z=>{M?z.attrs={...z.attrs,label:M}:delete z.attrs.label}),r.commit(C)},onTidy:s?void 0:(k,M)=>{let O=r.geometry.materialize(r.current.current),C=Py(O,k,M);if(!C)return;let N=vl(O,C.frames);for(let[z,A]of Object.entries(C.anchors))N=No(N,z,q=>{let P=q.attrs.bindings;q.attrs.bindings={start:{...P.start,anchor:A.start},end:{...P.end,anchor:A.end}}});r.commit(fl(N))},onAddComponent:s?void 0:(k,M)=>{let O=iu(r.current.current,i,k,k==="text"?{format:"richtext",content:{type:"doc",content:[{type:"paragraph"}]}}:{});return Object.assign(O.document.layout[O.nodeId],k==="text"?{width:Gv}:{},M),r.commit(O.document),r.select(O.nodeId),g(null),O.nodeId},onOpenComponents:s?void 0:(k,M)=>r.openComponents(i,k,M),onDrawExit:()=>g(null),onToolChange:m,onDraw:s?void 0:(k,M,O)=>{if(k.attrs?.tool==="arrow"){let N=y2(k,M),z=v2(r.geometry.materialize(r.current.current),i,N[0],8/(c.current?.scale()??1)),A=v2(r.geometry.materialize(r.current.current),i,N[1],8/(c.current?.scale()??1));(z||A)&&(k.attrs.bindings={...z?{start:z}:{},...A?{end:A}:{}})}let C=jv(r.current.current,k,M,i);O&&(C=e5(C,k.attrs.id,O.ids,O.offset)),r.commit(C),r.select(null)},extraActions:(0,me.jsx)(me.Fragment,{children:!s&&(0,me.jsxs)(me.Fragment,{children:[(0,me.jsx)("span",{className:"surface-toolbar-divider"}),(0,me.jsx)(Zv,{tool:p,onChange:m})]})}),children:(0,me.jsx)(su,{document:r.document,container:e,renderContent:r.render,renderSurface:S})})})})}function gE(e){try{return Number(localStorage.getItem(e)||0)}catch{return 0}}function bE(e,t){try{localStorage.setItem(e,String(t))}catch{}}var Du=U(Ne(),1);var Un=U(Ne(),1);var Ni=U(Ne(),1);var pc=U(Ne(),1);var Jv=U(pe(),1),Wv,hE;function yE(){return hE??=import("./chunks/code-highlighting-F3WJZEML.js").then(e=>Wv=e)}function Kv(e){return e.map((t,a)=>{if(t.type==="text")return t.value;if(t.type!=="element")return null;let n=t.properties.className;return(0,Jv.jsx)("span",{className:Array.isArray(n)?n.join(" "):void 0,children:Kv(t.children)},a)})}function Yv({code:e,language:t}){let[a,n]=(0,pc.useState)(Wv);return(0,pc.useEffect)(()=>{a||yE().then(n)},[a]),(0,pc.useMemo)(()=>a?Kv(a.highlightCode(e,t).children):e,[a,e,t])}var z5=U(Ne(),1);var De=U(pe(),1),vE=vt(z0);function Xv(e){let t=e.attrs??{};return{...Vl(t.componentStyle),...t.textAlign?{textAlign:t.textAlign}:{},...t.backgroundColor?{backgroundColor:t.backgroundColor}:{}}}function xE(e){let t=e.text??"";for(let[a,n]of(e.marks??[]).entries()){let o={key:`${n.type}-${a}`};switch(n.type){case"bold":t=(0,De.jsx)("strong",{...o,children:t});break;case"italic":t=(0,De.jsx)("em",{...o,children:t});break;case"underline":t=(0,De.jsx)("u",{...o,children:t});break;case"strike":t=(0,De.jsx)("s",{...o,children:t});break;case"code":t=(0,De.jsx)("code",{...o,children:t});break;case"highlight":t=(0,De.jsx)("mark",{...o,"data-color":n.attrs?.color??n.attrs?.backgroundColor,"data-highlight-mode":n.attrs?.mode??"lower",style:{"--showai-highlight-color":n.attrs?.color??n.attrs?.backgroundColor},children:t});break;case"annotation":t=(0,De.jsx)("span",{...o,...I0(String(n.attrs?.note??"")),children:t});break;case"textStyle":t=(0,De.jsx)("span",{...o,style:{color:n.attrs?.color,fontSize:n.attrs?.fontSize,fontFamily:n.attrs?.fontFamily},children:t});break;case"link":t=(0,De.jsx)("a",{...o,href:Fn(n.attrs?.href)||(String(n.attrs?.href??"").startsWith("#")?n.attrs?.href:void 0),title:n.attrs?.title,target:String(n.attrs?.href??"").startsWith("#")?void 0:"_blank",rel:"noopener noreferrer",children:t});break;default:throw new Error(`Unsupported text format: ${n.type}`)}}return t}function wE(e){let t=(e.content?.[0]?.content??[]).flatMap(a=>{let n=Number(a.attrs?.colspan??1),o=a.attrs?.colwidth??[];return Array.from({length:n},(r,i)=>o[i]||void 0)});return t.some(Boolean)?(0,De.jsx)("colgroup",{children:t.map((a,n)=>(0,De.jsx)("col",{style:a?{width:a}:void 0},n))}):null}function wl({node:e,renderWidget:t}){let a=e.attrs??{},n=e.content?.map((r,i)=>(0,De.jsx)(wl,{node:r,renderWidget:t},r.attrs?.id??i)),o={id:a.id,"data-block-id":a.id,style:Xv(e)};switch(e.type){case"richText":return(0,De.jsx)("div",{...o,className:"rich-text-component","data-component-kind":"text",style:Vl(a.data),children:n});case"region":case"doc":return(0,De.jsx)(De.Fragment,{children:n});case"text":return xE(e);case"mathInline":case"mathBlock":return M0(),(0,z5.createElement)(e.type==="mathBlock"?"div":"span",{...o,className:e.type==="mathBlock"||a.display?"sb-math-display":"sb-math-inline",dangerouslySetInnerHTML:{__html:d6(a.latex??"",e.type==="mathBlock"||!!a.display)}});case"hardBreak":return(0,De.jsx)("br",{...o});case"paragraph":return(0,De.jsx)("p",{...o,children:n?.length?n:(0,De.jsx)("br",{})});case"heading":return(0,z5.createElement)(`h${a.level??1}`,o,n);case"blockquote":return(0,De.jsx)("blockquote",{...o,children:n});case"bulletList":return(0,De.jsx)("ul",{...o,children:n});case"orderedList":return(0,De.jsx)("ol",{...o,start:a.start??1,type:a.type,children:n});case"listItem":return(0,De.jsx)("li",{...o,children:n});case"taskList":return(0,De.jsx)("ul",{...o,className:"portable-task-list",children:n});case"taskItem":return(0,De.jsxs)("li",{...o,className:"portable-task","data-checked":!!a.checked,children:[(0,De.jsx)("input",{type:"checkbox",checked:!!a.checked,disabled:!0,"aria-label":"Task completion"}),(0,De.jsx)("div",{children:n})]});case"codeBlock":return(0,De.jsx)("pre",{...o,className:"code-block",children:(0,De.jsx)("code",{className:a.language?`language-${a.language}`:void 0,children:(0,De.jsx)(Yv,{code:(e.content??[]).map(r=>r.text??"").join(""),language:a.language})})});case"horizontalRule":return(0,De.jsx)("hr",{...o,style:{...o.style,borderTopColor:a.componentStyle?.color}});case"image":return(0,De.jsx)("div",{id:a.id,"data-block-id":a.id,children:(0,De.jsx)(N6,{attrs:a})});case"table":return(0,De.jsx)("div",{className:"portable-table-scroll",children:(0,De.jsxs)("table",{...o,children:[a.title&&(0,De.jsx)("caption",{children:a.title}),wE(e),(0,De.jsx)("tbody",{children:n})]})});case"tableRow":return(0,De.jsx)("tr",{...o,children:n});case"tableCell":return(0,De.jsx)("td",{...o,colSpan:a.colspan??1,rowSpan:a.rowspan??1,children:n});case"tableHeader":return(0,De.jsx)("th",{...o,colSpan:a.colspan??1,rowSpan:a.rowspan??1,children:n});case"callout":return(0,De.jsxs)("aside",{...o,className:`portable-callout tone-${a.tone??"sage"}`,children:[(0,De.jsx)("span",{className:"portable-callout-icon","aria-hidden":"true",children:a.icon??"\u{1F4A1}"}),(0,De.jsxs)("div",{children:[a.title&&(0,De.jsx)("strong",{children:a.title}),n]})]});case"toggle":return(0,De.jsxs)("details",{...o,className:"portable-toggle",open:!!a.open,children:[(0,De.jsx)("summary",{children:a.title||a.summary||vE("toggle.expand")}),(0,De.jsx)("div",{className:"portable-toggle-body",children:n})]});case"stepper":return(0,De.jsx)(L6,{id:a.id,style:Xv(e),titles:(e.content??[]).map((r,i)=>O6(r.attrs?.title,i)),steps:(e.content??[]).map((r,i)=>(0,De.jsx)(wl,{node:{...r,type:"region"},renderWidget:t},r.attrs?.id??i))});case"step":return(0,De.jsx)("section",{...o,children:n});case"widget":return["image","code","table","callout","toggle","divider"].includes(a.kind)?(0,De.jsx)(wl,{node:m6(e),renderWidget:t}):(0,De.jsx)("div",{...o,className:"portable-widget","data-widget-kind":a.kind,children:t?.(a.kind,a.data??{})});default:throw new Error(`Unsupported page block: ${e.type}`)}}function Qv({content:e,data:t,renderWidget:a}){return(0,De.jsx)("div",{className:"portable-content sb-rich-text",style:Vl(t),children:(0,De.jsx)(wl,{node:e,renderWidget:a})})}var kl=U(pe(),1),kE=(0,Ni.lazy)(()=>import("./chunks/RichTextEditor-AC7S457D.js"));function $1({data:e,onChange:t,readOnly:a,host:n}){let o=ue(z0);M0(),u6(e);let r=(0,Ni.useMemo)(()=>Ul(e),[e.content,e.format]),{renderWidget:i}=(0,Ni.useContext)(A0),l=!a&&!!(t||n?.onContentChange),s=Vl(e);return(0,kl.jsx)("section",{className:"sb-primitive sb-text rich-text-component","data-component-kind":"text","aria-label":o("region"),style:s,children:l?(0,kl.jsx)(Ni.Suspense,{fallback:(0,kl.jsx)("div",{role:"status",children:o("opening")}),children:(0,kl.jsx)(kE,{...n,trailingNode:!n?.continuousPage,content:r,readOnly:!1,onChange:(c,d)=>{n?.onContentChange?n.onContentChange(c,d):t?.({...e,content:c,format:"richtext"})}})}):(0,kl.jsx)("div",{className:"sb-rich-text portable-content",children:(0,kl.jsx)(wl,{node:r,renderWidget:(c,d)=>i({kind:c,data:d,readOnly:!0})})})})}var Or=U(pe(),1);function Sl({kind:e,data:t,onChange:a,readOnly:n}){pr(e,t);let o=t.document?void 0:h0(e,t);return(0,Or.jsx)($1,{data:{content:t.document??{type:"doc",content:o?[o]:[]},format:"richtext"},readOnly:n,onChange:a?r=>{a({document:r.content})}:void 0})}var ex=e=>(0,Or.jsx)(Sl,{...e,kind:"image"}),tx=e=>(0,Or.jsx)(Sl,{...e,kind:"table"}),ax=e=>(0,Or.jsx)(Sl,{...e,kind:"code"}),nx=e=>(0,Or.jsx)(Sl,{...e,kind:"callout"}),ox=e=>(0,Or.jsx)(Sl,{...e,kind:"toggle"}),rx=e=>(0,Or.jsx)(Sl,{...e,kind:"stepper"}),ix=e=>(0,Or.jsx)(Sl,{...e,kind:"divider"});var na=U(Ne(),1);var wu=U(Ne(),1);var xu=rt("references",{"zh-CN":{invalid:"\u53C2\u8003\u6587\u732E\u683C\u5F0F\u4E0D\u6B63\u786E\u3002",references:"\u53C2\u8003\u6587\u732E",title:"\u6807\u9898",entry:"\u6587\u732E {index}",entryTitle:"\u6587\u732E\u6807\u9898",authors:"\u4F5C\u8005",authorsPlaceholder:"\u591A\u4E2A\u4F5C\u8005\u7528\u9017\u53F7\u5206\u9694",year:"\u5E74\u4EFD",venue:"\u671F\u520A\u6216\u4F1A\u8BAE",url:"\u7F51\u5740",note:"\u5907\u6CE8",deleteEntry:"\u5220\u9664\u6587\u732E {index}",addEntry:"\u6DFB\u52A0\u6587\u732E",emptyTitle:"\u6DFB\u52A0\u53C2\u8003\u6587\u732E",emptyDescription:"\u6574\u7406\u4F5C\u8005\u3001\u5E74\u4EFD\u3001\u51FA\u5904\u4E0E DOI","bookmark.invalidUrl":"\u8BF7\u8F93\u5165\u5B8C\u6574\u7684 http \u6216 https \u7F51\u5740\u3002","bookmark.invalidImage":"\u5C01\u9762\u9700\u8981 http\u3001https \u6216\u5185\u5D4C\u56FE\u7247\u5730\u5740\u3002","bookmark.label":"\u6765\u6E90\u4E66\u7B7E","bookmark.url":"\u7F51\u5740","bookmark.title":"\u6807\u9898","bookmark.titlePlaceholder":"\u6765\u6E90\u7684\u540D\u79F0","bookmark.summary":"\u6458\u8981","bookmark.image":"\u5C01\u9762\u56FE\u7247\u5730\u5740\uFF08\u53EF\u9009\uFF09","bookmark.save":"\u4FDD\u5B58\u4E66\u7B7E","bookmark.emptyTitle":"\u4E3A\u7ED3\u8BBA\u7559\u4E0B\u51FA\u5904","bookmark.add":"\u6DFB\u52A0\u6765\u6E90"},en:{invalid:"The references are not in a valid format.",references:"References",title:"Title",entry:"Reference {index}",entryTitle:"Reference title",authors:"Authors",authorsPlaceholder:"Separate multiple authors with commas",year:"Year",venue:"Journal or conference",url:"URL",note:"Note",deleteEntry:"Delete reference {index}",addEntry:"Add reference",emptyTitle:"Add references",emptyDescription:"Organize authors, years, venues and DOIs","bookmark.invalidUrl":"Enter a complete http or https URL.","bookmark.invalidImage":"The cover needs an http, https or embedded image URL.","bookmark.label":"Source bookmark","bookmark.url":"URL","bookmark.title":"Title","bookmark.titlePlaceholder":"Name of the source","bookmark.summary":"Summary","bookmark.image":"Cover image URL (optional)","bookmark.save":"Save bookmark","bookmark.emptyTitle":"Show where a conclusion comes from","bookmark.add":"Add source"}});var ht=U(pe(),1);function lx({data:e,onChange:t,readOnly:a}){let n=ue(xu),[o,r]=(0,wu.useState)(!1),[i,l]=(0,wu.useState)({title:"",description:"",url:"",image:""}),[s,c]=(0,wu.useState)(""),d=!!(t&&!a),u=Fn(e.url),p=Wn(e.image),g=u?new URL(u).hostname.replace(/^www\./,""):"",y=()=>{l({title:le(e.title),description:le(e.description),url:le(e.url),image:le(e.image)}),c(""),r(!o)},b=()=>{if(!Fn(i.url.trim())){c(n("bookmark.invalidUrl"));return}if(i.image.trim()&&!Wn(i.image.trim())){c(n("bookmark.invalidImage"));return}t?.({...e,...i,url:i.url.trim(),image:i.image.trim()}),r(!1)};return(0,ht.jsxs)("section",{className:"sb-block sb-bookmark","aria-label":le(e.title)||n("bookmark.label"),children:[(0,ht.jsx)(ya,{icon:(0,ht.jsx)(Gu,{size:16}),editable:d,editing:o,onEdit:y}),o&&(0,ht.jsx)(Wa,{children:(0,ht.jsxs)("div",{className:"sb-editor-panel",children:[(0,ht.jsx)(He,{label:n("bookmark.url"),children:(0,ht.jsx)("input",{type:"url",placeholder:"https://\u2026",value:i.url,onChange:x=>l(f=>({...f,url:x.target.value}))})}),(0,ht.jsx)(He,{label:n("bookmark.title"),children:(0,ht.jsx)("input",{placeholder:n("bookmark.titlePlaceholder"),value:i.title,onChange:x=>l(f=>({...f,title:x.target.value}))})}),(0,ht.jsx)(He,{label:n("bookmark.summary"),children:(0,ht.jsx)("textarea",{rows:3,value:i.description,onChange:x=>l(f=>({...f,description:x.target.value}))})}),(0,ht.jsx)(He,{label:n("bookmark.image"),children:(0,ht.jsx)("input",{type:"url",value:i.image,onChange:x=>l(f=>({...f,image:x.target.value}))})}),s&&(0,ht.jsx)("p",{className:"sb-error",role:"alert",children:s}),(0,ht.jsx)("div",{className:"sb-panel-footer",children:(0,ht.jsxs)("button",{type:"button",className:"sb-button sb-primary",onClick:b,children:[(0,ht.jsx)(Fa,{size:14}),n("bookmark.save")]})})]})}),u?(0,ht.jsxs)("a",{className:"sb-bookmark-link",href:u,target:"_blank",rel:"noopener noreferrer",children:[(0,ht.jsxs)("div",{className:"sb-bookmark-copy",children:[(0,ht.jsx)("strong",{children:le(e.title)||g}),le(e.description)&&(0,ht.jsx)("p",{children:le(e.description)}),(0,ht.jsxs)("span",{className:"sb-bookmark-domain",children:[(0,ht.jsx)(Ku,{size:12}),g,(0,ht.jsx)(Vi,{size:12})]})]}),p&&(0,ht.jsx)("img",{src:p,alt:"",loading:"lazy",referrerPolicy:"no-referrer"})]}):(0,ht.jsx)(Ta,{icon:(0,ht.jsx)(Gu,{size:27,strokeWidth:1.4}),title:n("bookmark.emptyTitle"),action:d&&!o?(0,ht.jsxs)("button",{type:"button",className:"sb-button",onClick:y,children:[(0,ht.jsx)(Ku,{size:14}),n("bookmark.add")]}):void 0})]})}var A5=U(Ne(),1);var ku=U(Ne(),1);var sx=rt("resourceEditor",{"zh-CN":{wrongType:"\u8BF7\u9009\u62E9\u5BF9\u5E94\u7C7B\u578B\u7684\u6587\u4EF6\u3002",tooLarge:"\u300C{name}\u300D\u4E3A {size}\uFF0C\u5355\u4E2A\u8D44\u6E90\u4E0A\u9650 {limit}\u3002\u8F83\u5927\u7684\u5A92\u4F53\u53EF\u586B\u5199\u5728\u7EBF\u6587\u4EF6\u5730\u5740\u3002",readFailed:"\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25\u3002",invalid:"\u6587\u4EF6\u8BBE\u7F6E\u4E0D\u6B63\u786E\u3002",reading:"\u8BFB\u53D6\u6587\u4EF6\u2026",chooseLocal:"\u9009\u62E9\u672C\u5730\u6587\u4EF6",onlineUrl:"\u5728\u7EBF\u6587\u4EF6\u5730\u5740",title:"\u6807\u9898",caption:"\u8BF4\u660E",aspectRatio:"\u753B\u9762\u6BD4\u4F8B",poster:"\u5C01\u9762\u56FE\u7247\u5730\u5740",initialPage:"\u521D\u59CB\u9875\u7801",readerHeight:"\u9605\u8BFB\u533A\u9AD8\u5EA6",hint:"\u672C\u5730\u6587\u4EF6\u968F\u9875\u9762\u4FDD\u5B58\uFF1B\u5728\u7EBF\u5730\u5740\u9700\u8981\u7F51\u7EDC\u3002\u5355\u4E2A\u539F\u59CB\u6587\u4EF6\u6700\u591A 64 MiB\uFF0C\u9875\u9762\u8D44\u6E90\u5408\u8BA1\u6700\u591A 128 MiB\uFF1B\u9875\u9762\u6587\u5B57\u4E0E\u7ED3\u6784\u53E6\u884C\u8BA1\u7B97\u3002"},en:{wrongType:"Choose a file of the matching type.",tooLarge:"\u201C{name}\u201D is {size}. Each resource can be up to {limit}. For larger media, enter an online file URL.",readFailed:"Couldn't read the file.",invalid:"The file settings are invalid.",reading:"Reading file\u2026",chooseLocal:"Choose local file",onlineUrl:"Online file URL",title:"Title",caption:"Caption",aspectRatio:"Aspect ratio",poster:"Cover image URL",initialPage:"Starting page",readerHeight:"Reader height",hint:"Local files are saved with the page; online URLs need a network connection. Each original file can be up to 64 MiB and a page's resources up to 128 MiB in total. Page text and structure are counted separately."}});var dt=U(pe(),1);function Su({kind:e,data:t,onSave:a,onClose:n}){let o=ue(sx),r=ue(Xa),[i,l]=(0,ku.useState)(t),[s,c]=(0,ku.useState)(""),[d,u]=(0,ku.useState)(!1),p=(b,x)=>l(f=>({...f,[b]:x})),g=async b=>{c("");let x=Eh(e,b);if(!x){c(o("wrongType"));return}if(b.size>Th){c(o("tooLarge",{name:b.name,size:_l(b.size),limit:_l(Lt.resourceBytes)}));return}u(!0);try{let f=await new Promise((m,v)=>{let T=new FileReader;T.onload=()=>m(String(T.result).replace(/^data:[^;,]*;base64,/,`data:${x};base64,`)),T.onerror=()=>v(T.error??new Error(o("readFailed"))),T.readAsDataURL(b)});l(m=>({...m,src:f,fileName:b.name}))}catch(f){c(f instanceof Error?f.message:o("readFailed"))}finally{u(!1)}},y=()=>{try{To(e,i),a(i)}catch(b){c(b instanceof Error?b.message:o("invalid"))}};return(0,dt.jsx)(Wa,{children:(0,dt.jsxs)("div",{className:"sb-editor-panel",onKeyDown:b=>{b.stopPropagation(),b.key==="Escape"&&n()},children:[(0,dt.jsxs)("div",{className:"sb-resource-source",children:[(0,dt.jsxs)("label",{className:"sb-button sb-resource-upload",children:[(0,dt.jsx)(s0,{size:14}),o(d?"reading":"chooseLocal"),(0,dt.jsx)("input",{type:"file","aria-label":o("chooseLocal"),disabled:d,accept:e==="pdf"?".pdf,application/pdf":`${e}/*`,onChange:b=>{let x=b.target.files?.[0];x&&g(x),b.target.value=""}})]}),le(i.fileName)&&(0,dt.jsx)("span",{className:"sb-resource-file-name",children:le(i.fileName)})]}),(0,dt.jsx)(He,{label:o("onlineUrl"),children:(0,dt.jsx)("input",{type:"url",placeholder:"https://\u2026",value:le(i.src).startsWith("data:")?"":le(i.src),onChange:b=>l(x=>({...x,src:b.target.value,fileName:""}))})}),(0,dt.jsx)(He,{label:o("title"),children:(0,dt.jsx)("input",{value:le(i.title),onChange:b=>p("title",b.target.value)})}),(0,dt.jsx)(He,{label:o("caption"),children:(0,dt.jsx)("textarea",{rows:2,value:le(i.caption),onChange:b=>p("caption",b.target.value)})}),e==="video"&&(0,dt.jsxs)(dt.Fragment,{children:[(0,dt.jsx)(He,{label:o("aspectRatio"),children:(0,dt.jsx)("select",{value:le(i.aspectRatio,"16:9"),onChange:b=>p("aspectRatio",b.target.value),children:["16:9","4:3","1:1","9:16"].map(b=>(0,dt.jsx)("option",{children:b},b))})}),(0,dt.jsx)(He,{label:o("poster"),children:(0,dt.jsx)("input",{value:le(i.poster),onChange:b=>p("poster",b.target.value)})})]}),e==="pdf"&&(0,dt.jsxs)("div",{className:"sb-resource-fields",children:[(0,dt.jsx)(He,{label:o("initialPage"),children:(0,dt.jsx)("input",{type:"number",min:1,value:Number(i.page??1),onChange:b=>p("page",b.target.valueAsNumber)})}),(0,dt.jsx)(He,{label:o("readerHeight"),children:(0,dt.jsx)("input",{type:"number",min:240,max:1200,value:Number(i.height??560),onChange:b=>p("height",b.target.valueAsNumber)})})]}),(0,dt.jsx)("p",{className:"sb-resource-hint",children:o("hint")}),s&&(0,dt.jsx)("p",{className:"sb-error",role:"alert",children:s}),(0,dt.jsx)("div",{className:"sb-panel-footer",children:(0,dt.jsxs)("button",{className:"sb-button sb-primary",type:"button",disabled:d,onClick:y,children:[(0,dt.jsx)(Fa,{size:14}),r("save")]})})]})})}var cx=rt("media",{"zh-CN":{video:"\u89C6\u9891",audio:"\u97F3\u9891",videoPlayer:"\u89C6\u9891\u64AD\u653E\u5668",audioPlayer:"\u97F3\u9891\u64AD\u653E\u5668",playFailed:"\u6587\u4EF6\u65E0\u6CD5\u64AD\u653E\uFF0C\u8BF7\u68C0\u67E5\u5730\u5740\u3001\u7F51\u7EDC\u6216\u6587\u4EF6\u7F16\u7801\u3002",openOriginal:"\u6253\u5F00\u539F\u6587\u4EF6",addVideo:"\u6DFB\u52A0\u89C6\u9891",addAudio:"\u6DFB\u52A0\u97F3\u9891",emptyDescription:"\u4E0A\u4F20\u672C\u5730\u6587\u4EF6\u6216\u586B\u5199\u5728\u7EBF\u6587\u4EF6\u5730\u5740",chooseFile:"\u9009\u62E9\u6587\u4EF6"},en:{video:"Video",audio:"Audio",videoPlayer:"Video player",audioPlayer:"Audio player",playFailed:"This file can't be played. Check the URL, your network or the file encoding.",openOriginal:"Open original file",addVideo:"Add video",addAudio:"Add audio",emptyDescription:"Upload a local file or enter an online file URL",chooseFile:"Choose file"}});var Wt=U(pe(),1);function dx({kind:e,data:t,onChange:a,readOnly:n}){let o=ue(cx),[r,i]=(0,A5.useState)(!1),[l,s]=(0,A5.useState)(""),c=!!(a&&!n),d=Ei(e,t.src),u=o(e==="video"?"video":"audio"),p=e==="video"?Ff:Xu;return(0,Wt.jsxs)("section",{className:`sb-block sb-media sb-${e}`,"aria-label":Ka(t.title,u),children:[(e==="audio"||!d)&&(0,Wt.jsx)(ya,{editable:c,editing:r,onEdit:()=>i(!r)}),r&&(0,Wt.jsx)(Su,{kind:e,data:t,onClose:()=>i(!1),onSave:g=>{a?.(g),i(!1),s("")}}),d?(0,Wt.jsxs)("figure",{className:"sb-media-figure",children:[e==="video"?(0,Wt.jsxs)("div",{className:"sb-video-stage","data-surface-gesture":"own",children:[(0,Wt.jsx)(ya,{title:le(t.title),defaultTitle:u,editable:c,editing:r,onEdit:()=>i(!r)}),(0,Wt.jsx)("video",{controls:!0,playsInline:!0,preload:"metadata",poster:Wn(t.poster),loop:t.loop===!0,muted:t.muted===!0,style:{aspectRatio:le(t.aspectRatio,"16:9").replace(":"," / ")},src:d,"aria-label":Ka(t.title,o("videoPlayer")),onError:()=>s(d)},d)]}):(0,Wt.jsxs)("div",{className:"sb-audio-body","data-surface-gesture":"own",children:[(0,Wt.jsx)("div",{className:"sb-audio-icon",children:(0,Wt.jsx)(Xu,{size:20})}),(0,Wt.jsxs)("div",{className:"sb-audio-track",children:[(0,Wt.jsx)("div",{className:"sb-audio-name",children:le(t.title)||le(t.fileName)||o("audio")}),(0,Wt.jsx)("audio",{controls:!0,preload:"metadata",src:d,loop:t.loop===!0,"aria-label":Ka(t.title,o("audioPlayer")),onError:()=>s(d)},d)]})]}),l===d&&(0,Wt.jsxs)("p",{className:"sb-error",role:"alert",children:[o("playFailed")," ",(0,Wt.jsx)("a",{href:d,download:le(t.fileName)||void 0,target:"_blank",rel:"noopener noreferrer",children:o("openOriginal")})]}),le(t.caption)&&(0,Wt.jsx)("figcaption",{className:"sb-resource-caption",children:le(t.caption)})]}):(0,Wt.jsx)(Ta,{icon:(0,Wt.jsx)(p,{size:28,strokeWidth:1.4}),title:o(e==="video"?"addVideo":"addAudio"),description:o("emptyDescription"),action:c&&!r?(0,Wt.jsxs)("button",{type:"button",className:"sb-button",onClick:()=>i(!0),children:[(0,Wt.jsx)(Bo,{size:14}),o("chooseFile")]}):void 0})]})}var ux=e=>(0,Wt.jsx)(dx,{...e,kind:"video"}),px=e=>(0,Wt.jsx)(dx,{...e,kind:"audio"});var $a=U(Ne(),1);var lt=U(pe(),1);function SE({src:e,initialPage:t,height:a,name:n}){let o=ue(gp),[r,i]=(0,$a.useState)(),[l,s]=(0,$a.useState)(t),[c,d]=(0,$a.useState)(1),[u,p]=(0,$a.useState)(600),[g,y]=(0,$a.useState)(""),[b,x]=(0,$a.useState)(!0),[f,m]=(0,$a.useState)(""),v=(0,$a.useRef)(null),T=(0,$a.useRef)(null),w=(0,$a.useRef)(null);return(0,$a.useEffect)(()=>{let E=!0,L;return import("./chunks/pdf-engine-XQHKQXXX.js").then(H=>{if(E)return L=H.loadPdf(e),L.promise.then(S=>{E&&(i(S),s(Math.min(t,S.numPages)))})}).catch(H=>{E&&(y(o("loadFailed",{error:H instanceof Error?H.message:String(H)})),x(!1))}),()=>{E=!1,L?.destroy()}},[e]),(0,$a.useEffect)(()=>{if(!T.current)return;let E=new ResizeObserver(L=>p(L[0].contentRect.width));return E.observe(T.current),()=>E.disconnect()},[]),(0,$a.useEffect)(()=>{if(!r||!v.current)return;let E=!0,L,H=v.current;return x(!0),y(""),m(""),r.getPage(l).then(async S=>{if(!E)return;let k=S.getViewport({scale:1}),M=Math.max(120,u-40)/k.width*c,O=S.getViewport({scale:M}),C=Math.min(2,window.devicePixelRatio||1);H.width=Math.ceil(O.width*C),H.height=Math.ceil(O.height*C),H.style.width=`${O.width}px`,H.style.height=`${O.height}px`,L=S.render({canvas:H,viewport:O,transform:[C,0,0,C,0,0]}),await L.promise;let N=await S.getTextContent();E&&(m(N.items.map(z=>"str"in z?z.str+(z.hasEOL?`
|
|
37
|
-
`:" "):"").join("")),x(!1))}).catch(S=>{E&&(y(o("pageFailed",{error:S instanceof Error?S.message:String(S)})),x(!1))}),()=>{E=!1,L?.cancel()}},[r,l,u,c]),(0,lt.jsxs)("div",{className:"sb-pdf-reader","data-surface-gesture":"own","aria-busy":b,children:[(0,lt.jsxs)("div",{className:"sb-pdf-toolbar",role:"group","aria-label":o("controls"),children:[(0,lt.jsxs)("div",{className:"sb-pdf-pagination",children:[(0,lt.jsx)("button",{type:"button",className:"sb-icon-button","aria-label":o("previousPage"),disabled:!r||l<=1,onClick:()=>s(l-1),children:(0,lt.jsx)(_r,{size:16})}),(0,lt.jsxs)("label",{className:"sb-pdf-page",children:[(0,lt.jsx)("input",{ref:w,type:"number","aria-label":o("pageNumber"),min:1,max:r?.numPages??1,defaultValue:l,disabled:!r,onKeyDown:E=>{E.stopPropagation(),E.key==="Enter"&&E.currentTarget.blur()},onBlur:E=>{let L=E.target.valueAsNumber;r&&Number.isInteger(L)&&s(Math.min(r.numPages,Math.max(1,L))),E.currentTarget.value=String(Number.isInteger(L)&&r?Math.min(r.numPages,Math.max(1,L)):l)}},l),(0,lt.jsxs)("span",{children:["/ ",r?.numPages??"\u2014"]})]}),(0,lt.jsx)("button",{type:"button",className:"sb-icon-button","aria-label":o("nextPage"),disabled:!r||l>=r.numPages,onClick:()=>s(l+1),children:(0,lt.jsx)(pn,{size:16})})]}),(0,lt.jsxs)("div",{className:"sb-pdf-zoom",children:[(0,lt.jsx)("button",{type:"button",className:"sb-icon-button","aria-label":o("zoomOut"),disabled:c<=.5,onClick:()=>d(Math.max(.5,c-.25)),children:(0,lt.jsx)(Ll,{size:14})}),(0,lt.jsxs)("button",{type:"button",className:"sb-pdf-fit",title:o("fitWidth"),"aria-label":o("fitWidthLabel"),onClick:()=>d(1),children:[Math.round(c*100),"%"]}),(0,lt.jsx)("button",{type:"button",className:"sb-icon-button","aria-label":o("zoomIn"),disabled:c>=3,onClick:()=>d(Math.min(3,c+.25)),children:(0,lt.jsx)(Ot,{size:14})})]}),(0,lt.jsx)("a",{className:"sb-icon-button","aria-label":o("download"),href:e,download:n||"document.pdf",target:"_blank",rel:"noopener noreferrer",children:(0,lt.jsx)(Ur,{size:15})})]}),(0,lt.jsxs)("div",{className:"sb-pdf-viewport",ref:T,style:{height:a},tabIndex:0,"aria-label":o("viewportLabel",{page:l}),onKeyDown:E=>{E.stopPropagation(),!(E.target!==E.currentTarget||!r)&&(E.key==="ArrowRight"&&l<r.numPages&&(E.preventDefault(),s(l+1)),E.key==="ArrowLeft"&&l>1&&(E.preventDefault(),s(l-1)))},children:[b&&(0,lt.jsx)("p",{className:"sb-pdf-status",role:"status",children:o("loading")}),g&&(0,lt.jsxs)("p",{className:"sb-pdf-status sb-error",role:"alert",children:[g," ",(0,lt.jsx)("a",{href:e,download:n||"document.pdf",target:"_blank",rel:"noopener noreferrer",children:o("openOriginal")})]}),(0,lt.jsx)("canvas",{ref:v,"aria-label":o("pageContent",{page:l}),style:{visibility:b||g?"hidden":"visible"}})]}),f&&(0,lt.jsxs)("details",{className:"sb-pdf-text",children:[(0,lt.jsx)("summary",{children:o("pageText")}),(0,lt.jsx)("p",{children:f})]})]})}function mx({data:e,onChange:t,readOnly:a}){let n=ue(gp),[o,r]=(0,$a.useState)(!1),i=Ei("pdf",e.src),l=!!(t&&!a);return(0,lt.jsxs)("section",{className:"sb-block sb-pdf","aria-label":le(e.title)||n("document"),children:[(0,lt.jsx)(ya,{title:le(e.title),defaultTitle:n("document"),editable:l,editing:o,onEdit:()=>r(!o)}),o&&(0,lt.jsx)(Su,{kind:"pdf",data:e,onClose:()=>r(!1),onSave:s=>{t?.(s),r(!1)}}),i?(0,lt.jsx)(SE,{src:i,initialPage:Number(e.page??1),height:Number(e.height??560),name:le(e.fileName)},`${i}-${e.page}`):(0,lt.jsx)(Ta,{icon:(0,lt.jsx)(Bo,{size:28,strokeWidth:1.4}),title:n("emptyTitle"),description:n("emptyDescription"),action:l&&!o?(0,lt.jsx)("button",{type:"button",className:"sb-button",onClick:()=>r(!0),children:n("choose")}):void 0}),i&&le(e.caption)&&(0,lt.jsx)("p",{className:"sb-resource-caption",children:le(e.caption)})]})}var Cu=U(Ne(),1);var Ge=U(pe(),1);function fx({data:e,onChange:t,readOnly:a}){let n=ue(xu),o=ue(Xa),[r,i]=(0,Cu.useState)(!1),[l,s]=(0,Cu.useState)(e),[c,d]=(0,Cu.useState)(""),u=!!(t&&!a),p=e.items??[],g=l.items??[],y=()=>{s(e),d(""),i(!r)},b=(f,m,v)=>s(T=>({...T,items:T.items.map(w=>w.id===f?{...w,[m]:v}:w)})),x=()=>{try{To("references",l),t?.(l),i(!1)}catch(f){d(f instanceof Error?f.message:n("invalid"))}};return(0,Ge.jsxs)("section",{className:"sb-block sb-references","aria-label":Ka(e.title,n("references")),children:[(0,Ge.jsx)(ya,{title:le(e.title),defaultTitle:n("references"),editable:u,editing:r,onEdit:y}),r&&(0,Ge.jsx)(Wa,{children:(0,Ge.jsxs)("div",{className:"sb-editor-panel",onKeyDown:f=>{f.stopPropagation(),f.key==="Escape"&&i(!1)},children:[(0,Ge.jsx)(He,{label:n("title"),children:(0,Ge.jsx)("input",{value:le(l.title),onChange:f=>s(m=>({...m,title:f.target.value}))})}),g.map((f,m)=>(0,Ge.jsxs)("fieldset",{className:"sb-reference-editor",children:[(0,Ge.jsx)("legend",{children:n("entry",{index:m+1})}),(0,Ge.jsx)(He,{label:n("entryTitle"),children:(0,Ge.jsx)("input",{value:f.title,onChange:v=>b(f.id,"title",v.target.value)})}),(0,Ge.jsx)(He,{label:n("authors"),children:(0,Ge.jsx)("input",{placeholder:n("authorsPlaceholder"),value:f.authors??"",onChange:v=>b(f.id,"authors",v.target.value)})}),(0,Ge.jsxs)("div",{className:"sb-resource-fields",children:[(0,Ge.jsx)(He,{label:n("year"),children:(0,Ge.jsx)("input",{value:f.year??"",onChange:v=>b(f.id,"year",v.target.value)})}),(0,Ge.jsx)(He,{label:n("venue"),children:(0,Ge.jsx)("input",{value:f.venue??"",onChange:v=>b(f.id,"venue",v.target.value)})})]}),(0,Ge.jsx)(He,{label:"DOI",children:(0,Ge.jsx)("input",{placeholder:"10.xxxx/\u2026",value:f.doi??"",onChange:v=>b(f.id,"doi",v.target.value)})}),(0,Ge.jsx)(He,{label:n("url"),children:(0,Ge.jsx)("input",{type:"url",value:f.url??"",onChange:v=>b(f.id,"url",v.target.value)})}),(0,Ge.jsx)(He,{label:n("note"),children:(0,Ge.jsx)("textarea",{rows:2,value:f.note??"",onChange:v=>b(f.id,"note",v.target.value)})}),(0,Ge.jsxs)("button",{type:"button",className:"sb-button","aria-label":n("deleteEntry",{index:m+1}),onClick:()=>s(v=>({...v,items:v.items.filter(T=>T.id!==f.id)})),children:[(0,Ge.jsx)(pa,{size:14}),o("delete")]})]},f.id)),c&&(0,Ge.jsx)("p",{className:"sb-error",role:"alert",children:c}),(0,Ge.jsxs)("div",{className:"sb-panel-footer",children:[(0,Ge.jsxs)("button",{type:"button",className:"sb-button",disabled:g.length>=500,onClick:()=>s(f=>({...f,items:[...f.items,{id:_o(),title:""}]})),children:[(0,Ge.jsx)(Ot,{size:14}),n("addEntry")]}),(0,Ge.jsxs)("button",{type:"button",className:"sb-button sb-primary",onClick:x,children:[(0,Ge.jsx)(Fa,{size:14}),o("save")]})]})]})}),p.length?(0,Ge.jsx)("ol",{className:"sb-reference-list",children:p.map((f,m)=>{let v=Hm(f);return(0,Ge.jsxs)("li",{id:`ref-${f.id}`,children:[(0,Ge.jsxs)("span",{className:"sb-reference-number",children:["[",m+1,"]"]}),(0,Ge.jsxs)("div",{className:"sb-reference-entry",children:[(0,Ge.jsx)("div",{className:"sb-reference-meta",children:[f.authors,f.year].filter(Boolean).join(" \xB7 ")}),v?(0,Ge.jsxs)("a",{className:"sb-reference-title",href:v,target:"_blank",rel:"noopener noreferrer",children:[f.title,(0,Ge.jsx)(Vi,{size:12})]}):(0,Ge.jsx)("strong",{className:"sb-reference-title",children:f.title}),f.venue&&(0,Ge.jsx)("div",{className:"sb-reference-venue",children:f.venue}),f.doi&&(0,Ge.jsxs)("a",{className:"sb-reference-doi",href:Hm({doi:f.doi}),target:"_blank",rel:"noopener noreferrer",children:["doi:",f.doi.replace(/^https?:\/\/(?:dx\.)?doi\.org\//i,"")]}),f.note&&(0,Ge.jsx)("p",{className:"sb-reference-note",children:f.note})]})]},f.id)})}):(0,Ge.jsx)(Ta,{icon:(0,Ge.jsx)(bf,{size:28,strokeWidth:1.4}),title:n("emptyTitle"),description:n("emptyDescription"),action:u&&!r?(0,Ge.jsxs)("button",{type:"button",className:"sb-button",onClick:y,children:[(0,Ge.jsx)(Ot,{size:14}),n("addEntry")]}):void 0})]})}var Lr=U(Ne(),1);ct(`.sb-block.wk-block-root :is(h3,h4,p,ul,ol,li,dl,dt,dd,pre):not(svg){margin:0}.sb-block.wk-block-root :is(ul,ol,li):not(svg){padding:0}.sb-block.wk-block-root pre:not(svg){border:0;border-radius:0;background:none;color:inherit}.sb-block.wk-block-root{--wk-text: var(--sb-text);--wk-muted: var(--sb-muted);--wk-faint: color-mix(in srgb, var(--sb-muted) 70%, transparent);--wk-line: var(--sb-line);--wk-paper: var(--sb-surface);--wk-soft: var(--sb-soft);--wk-accent: var(--sb-accent);--wk-accent-soft: var(--sb-accent-soft);--wk-teal: #0d8579;--wk-teal-soft: #e6f4f2;--wk-orange: #bf6528;--wk-orange-soft: #fbefe6;--wk-violet: #7348d0;--wk-violet-soft: #f2edfc;--wk-rose: #c4415a;--wk-rose-soft: #fbebee;--wk-slate: #526476;--wk-slate-soft: #edf1f4;--wk-new: #1f7a4d;--wk-new-soft: #dcf1e4;--wk-changed: #8a5a00;--wk-changed-soft: #fbecc8;--wk-add: #1a7f37;--wk-add-soft: #e6f6ea;--wk-del: #b3261e;--wk-del-soft: #fbe9e7;--t: var(--wk-accent);--ts: var(--wk-accent-soft);color:var(--wk-text);font-family:inherit;font-size:14px;line-height:1.6;padding:8px 0;container-type:inline-size;overflow-wrap:anywhere}:root[data-theme=dark] .sb-block.wk-block-root,[data-theme=dark] .sb-block.wk-block-root{--wk-teal: #4fc4b6;--wk-teal-soft: #163734;--wk-orange: #e79c64;--wk-orange-soft: #3b2b1e;--wk-violet: #b497ff;--wk-violet-soft: #2e2648;--wk-rose: #f0839a;--wk-rose-soft: #3e222a;--wk-slate: #a2b2c2;--wk-slate-soft: #242d35;--wk-new: #6fd19a;--wk-new-soft: #183528;--wk-changed: #e8c06a;--wk-changed-soft: #3a2f16;--wk-add: #7ee2a0;--wk-add-soft: #173421;--wk-del: #ff9b92;--wk-del-soft: #3d1f1d}.sb-block.wk-block-root *{box-sizing:border-box}.wk-block-root [data-tone=accent]{--t: var(--wk-accent);--ts: var(--wk-accent-soft)}.wk-block-root [data-tone=teal]{--t: var(--wk-teal);--ts: var(--wk-teal-soft)}.wk-block-root [data-tone=orange]{--t: var(--wk-orange);--ts: var(--wk-orange-soft)}.wk-block-root [data-tone=violet]{--t: var(--wk-violet);--ts: var(--wk-violet-soft)}.wk-block-root [data-tone=rose]{--t: var(--wk-rose);--ts: var(--wk-rose-soft)}.wk-block-root [data-tone=slate]{--t: var(--wk-slate);--ts: var(--wk-slate-soft)}.sb-block.wk-block-root .wk-title{font-size:18px;font-weight:680;line-height:1.35}.sb-block.wk-block-root .wk-question{margin-top:6px;font-size:15px;display:flex;flex-wrap:wrap;gap:2px 10px;align-items:baseline}.wk-question>span{font-size:12px;color:var(--wk-faint)}.sb-block.wk-block-root .wk-legend{list-style:none;margin-top:10px;display:flex;flex-wrap:wrap;gap:6px}.sb-block.wk-block-root .wk-legend li{display:inline-flex;gap:6px;align-items:baseline;padding:2px 10px;border-radius:999px;background:var(--ts);color:var(--wk-muted);font-size:13px}.wk-legend b{color:var(--t);font-weight:650}.wk-tabs{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;margin-top:14px}.sb-block.wk-block-root .wk-tab{font:inherit;display:flex;align-items:center;gap:8px;min-width:0;padding:7px 10px;border:1px solid var(--wk-line);border-radius:8px;background:var(--wk-paper);color:var(--wk-muted);text-align:left;cursor:pointer}.sb-block.wk-block-root .wk-tab:hover{border-color:var(--wk-faint)}.sb-block.wk-block-root .wk-tab:focus-visible,.sb-block.wk-block-root .wk-btn:focus-visible,.sb-block.wk-block-root .wk-toggle:focus-visible{outline:2px solid var(--wk-accent);outline-offset:2px}.wk-tab-n{flex:none;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;border:1.5px solid var(--wk-faint);font-size:12px;font-weight:650}.wk-tab-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13.5px}.sb-block.wk-block-root .wk-tab[data-done] .wk-tab-n{border-color:var(--wk-accent);color:var(--wk-accent)}.sb-block.wk-block-root .wk-tab[aria-selected=true]{border-color:var(--wk-accent);background:var(--wk-accent-soft);color:var(--wk-text);font-weight:600}.sb-block.wk-block-root .wk-tab[aria-selected=true] .wk-tab-n{border-color:var(--wk-accent);background:var(--wk-accent);color:var(--wk-paper)}.wk-takeaway{margin-top:12px;padding:10px 14px;border-left:3px solid var(--wk-accent);border-radius:0 8px 8px 0;background:var(--wk-soft)}.wk-takeaway>span{font-size:12px;color:var(--wk-faint)}.sb-block.wk-block-root .wk-takeaway p{margin-top:2px;font-size:15px;font-weight:560;line-height:1.6}.wk-body{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:14px;margin-top:14px;align-items:start}.sb-block.wk-block-root .wk-col-title{font-size:13px;font-weight:650;color:var(--wk-muted);margin-bottom:8px}.wk-col-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:6px 12px;margin-bottom:8px}.sb-block.wk-block-root .wk-col-head .wk-col-title{margin-bottom:0}.sb-block.wk-block-root .wk-actions{list-style:none;display:grid;gap:8px}.sb-block.wk-block-root .wk-action{display:grid;gap:3px;padding:8px 12px;border:1px solid var(--wk-line);border-radius:10px;background:var(--wk-paper)}.sb-block.wk-block-root .wk-action[data-kind=input]{background:var(--wk-accent-soft);border-color:color-mix(in srgb,var(--wk-accent) 25%,transparent)}.sb-block.wk-block-root .wk-action[data-kind=result]{background:var(--wk-soft)}.sb-block.wk-block-root .wk-action[data-kind=note]{border-style:dashed}.wk-actor{display:flex;align-items:center;gap:6px;font-size:11.5px;color:var(--wk-faint)}.wk-illustrative{font-style:normal;font-size:11px;padding:0 5px;border-radius:3px;background:var(--wk-changed-soft);color:var(--wk-changed)}.wk-action-text{font-size:13.5px}.sb-block.wk-block-root :is(.wk-code,.wk-block-text){margin-top:4px;padding:7px 9px;border-radius:6px;background:var(--wk-soft);font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.wk-code [data-diff=add]{color:var(--wk-add);background:var(--wk-add-soft)}.wk-code [data-diff=del]{color:var(--wk-del);background:var(--wk-del-soft)}.wk-parts,.wk-blocks{display:grid;gap:10px}.wk-part,.wk-block{display:grid;gap:8px;padding:10px 12px;border:1px solid var(--wk-line);border-left:3px solid var(--t);border-radius:0 10px 10px 0;background:var(--wk-paper)}.wk-part-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}.wk-part-head b{color:var(--t);font-weight:680}.wk-part-head span{font-size:13px;color:var(--wk-muted)}.wk-part-head small{margin-left:auto;padding:1px 8px;border-radius:999px;background:var(--ts);color:var(--t);font-size:11.5px}.sb-block.wk-block-root .wk-part-note{padding:6px 9px;border-radius:6px;background:var(--wk-soft);font-size:13px;color:var(--wk-muted)}.sb-block.wk-block-root .wk-part-empty{font-size:13px;color:var(--wk-faint)}.wk-entry{padding:8px 10px;border:1px solid var(--wk-line);border-radius:8px;background:var(--wk-paper)}.wk-entry[data-status=new]{border-color:var(--wk-new);box-shadow:0 0 0 2px var(--wk-new-soft)}.wk-entry[data-status=changed]{border-color:var(--wk-changed);box-shadow:0 0 0 2px var(--wk-changed-soft)}.wk-entry[data-status=retired]{background:var(--wk-soft)}.wk-entry[data-status=retired] dd{color:var(--wk-faint);text-decoration:line-through}.wk-entry[data-status=kept]{opacity:.75}.wk-entry-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px;font-size:13px}.wk-badge{flex:none;padding:0 7px;border-radius:999px;font-size:11.5px;background:var(--wk-soft);color:var(--wk-muted)}.wk-badge[data-status=new]{background:var(--wk-new-soft);color:var(--wk-new)}.wk-badge[data-status=changed]{background:var(--wk-changed-soft);color:var(--wk-changed)}.sb-block.wk-block-root .wk-fields{display:grid;gap:3px}.wk-fields>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:8px;font-size:13px}.wk-fields dt{color:var(--wk-faint)}.wk-fields dd{white-space:pre-wrap}.wk-fields dd[data-mono]{font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.sb-block.wk-block-root .wk-entry-note{margin-top:6px;font-size:12.5px;color:var(--wk-muted)}.wk-switch{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--wk-muted);cursor:pointer}.wk-switch input{margin:0;accent-color:var(--wk-accent)}.wk-block[data-hidden]{border-style:dashed;background:var(--wk-soft)}.wk-block-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.wk-chip{padding:0 8px;border-radius:999px;background:var(--ts);color:var(--t);font-size:11.5px;font-weight:600}.wk-block-label{font:12px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--wk-muted)}.sb-block.wk-block-root .wk-callouts{list-style:none;display:grid;gap:4px}.sb-block.wk-block-root .wk-callouts li{position:relative;padding-left:16px;font-size:13px}.wk-callouts li:before{content:"\\21b3";position:absolute;left:0;color:var(--t)}.sb-block.wk-block-root .wk-hidden-note{font-size:13.5px;color:var(--wk-muted)}.wk-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.wk-foot{display:grid;gap:8px;margin-top:14px}.wk-nav{display:flex;align-items:center;gap:10px}.sb-block.wk-block-root .wk-btn{font:inherit;font-size:13px;padding:4px 12px;border:1px solid var(--wk-line);border-radius:7px;background:var(--wk-paper);color:var(--wk-text);cursor:pointer}.sb-block.wk-block-root .wk-btn:disabled{opacity:.4;cursor:default}.sb-block.wk-block-root .wk-btn[data-primary]:not(:disabled){border-color:var(--wk-accent);background:var(--wk-accent);color:var(--wk-paper)}.wk-count{font-size:12.5px;color:var(--wk-faint);font-variant-numeric:tabular-nums}.sb-block.wk-block-root .wk-toggle{font:inherit;font-size:12.5px;padding:0;border:0;background:transparent;color:var(--wk-faint);text-decoration:underline;cursor:pointer}.wk-details{margin-top:6px;padding:8px 12px;border-radius:6px;background:var(--wk-soft);font-size:13px;color:var(--wk-muted)}.sb-block.wk-block-root .wk-details ul{display:grid;gap:3px;padding-left:18px}.sb-block.wk-block-root .wk-details li{list-style:disc}.sb-block.wk-block-root .wk-sources{margin-top:6px;font-size:12.5px;color:var(--wk-faint)}.wk-sources a{color:inherit}.sb-block.wk-block-root .wk-note{margin-top:8px;font-size:12.5px;color:var(--wk-faint)}.wk-print{display:none}@container (max-width: 720px){.wk-body{grid-template-columns:minmax(0,1fr)}.wk-tabs{grid-auto-flow:row;grid-auto-columns:auto}.wk-part-head small{margin-left:0}.wk-fields>div{grid-template-columns:minmax(0,1fr);gap:0}}@media print{.wk-live{display:none}.wk-print{display:grid;gap:18px;margin-top:12px}.sb-block.wk-block-root .wk-print-title{font-size:15px;font-weight:650}.wk-print-step{break-inside:avoid-page}}
|
|
38
|
-
`);var gx=rt("stepWalkthrough",{"zh-CN":{title:"\u5206\u6B65\u6F14\u793A",question:"\u672C\u4F8B\u56DE\u7B54\u7684\u95EE\u9898",parts:"\u7EC4\u6210\u90E8\u5206",steps:"\u6B65\u9AA4",takeaway:"\u7B2C {n} \u6B65\u8981\u70B9",actions:"\u672C\u6B65\u7684\u8F93\u5165\u4E0E\u64CD\u4F5C",state:"\u6B64\u65F6\u7684\u72B6\u6001",empty:"\u65E0\u5185\u5BB9",illustrative:"\u793A\u610F",hide:"\u9690\u85CF\u300C{part}\u300D\u4EE5\u4F5C\u5BF9\u6BD4",hidden:"\u8BE5\u90E8\u5206\u5DF2\u9690\u85CF\u3002",hiddenLive:"\u5DF2\u9690\u85CF{part}",previous:"\u4E0A\u4E00\u6B65",next:"\u4E0B\u4E00\u6B65",count:"{current} / {total}",details:"\u524D\u63D0\u6761\u4EF6\u4E0E\u51FA\u5904",hideDetails:"\u6536\u8D77\u524D\u63D0\u4E0E\u51FA\u5904",sources:"\u51FA\u5904\uFF1A","status.new":"\u65B0\u589E","status.changed":"\u5DF2\u66F4\u65B0","status.retired":"\u5DF2\u5931\u6548","status.kept":"\u672A\u53D8",noSteps:"\u5C1A\u65E0\u6B65\u9AA4\u3002"},en:{title:"Step walkthrough",question:"Question this example answers",parts:"Parts",steps:"Steps",takeaway:"Step {n} key point",actions:"Inputs and operations",state:"State at this point",empty:"Empty",illustrative:"Illustrative",hide:"Hide \u201C{part}\u201D to compare",hidden:"This part is hidden.",hiddenLive:"{part} hidden",previous:"Previous",next:"Next",count:"{current} / {total}",details:"Conditions and sources",hideDetails:"Hide conditions and sources",sources:"Sources: ","status.new":"New","status.changed":"Updated","status.retired":"Retired","status.kept":"Unchanged",noSteps:"No steps yet."}});var se=U(pe(),1),CE=e=>`status.${e}`;function TE({code:e}){return(0,se.jsx)("pre",{className:"wk-code",children:e.split(`
|
|
39
|
-
`).map((t,a)=>(0,se.jsxs)("span",{"data-diff":t.startsWith("+")?"add":t.startsWith("-")?"del":void 0,children:[t,`
|
|
40
|
-
`]},a))})}function bx({step:e,index:t,parts:a,stateHeading:n,hidden:o,onHide:r,t:i}){let l=u=>a.find(p=>p.id===u),s=e.output,c=s&&o?l(s.hidePartId):void 0,d=s?.hidePartId?l(s.hidePartId):void 0;return(0,se.jsxs)("div",{className:"wk-step-view",children:[(0,se.jsxs)("div",{className:"wk-takeaway",children:[(0,se.jsx)("span",{children:i("takeaway",{n:t+1})}),(0,se.jsx)("p",{children:(0,se.jsx)(Uo,{source:e.takeaway})})]}),(0,se.jsxs)("div",{className:"wk-body",children:[(0,se.jsxs)("div",{className:"wk-col",children:[(0,se.jsx)("h4",{className:"wk-col-title",children:e.actionsHeading??i("actions")}),(0,se.jsx)("ol",{className:"wk-actions",children:e.actions.map((u,p)=>(0,se.jsxs)("li",{className:"wk-action","data-kind":u.kind??"action",children:[(0,se.jsxs)("span",{className:"wk-actor",children:[u.actor,u.illustrative&&(0,se.jsx)("em",{className:"wk-illustrative",children:i("illustrative")})]}),(0,se.jsx)("span",{className:"wk-action-text",children:(0,se.jsx)(Uo,{source:u.text})}),u.code&&(0,se.jsx)(TE,{code:u.code})]},p))})]}),(0,se.jsx)("div",{className:"wk-col",children:s?(0,se.jsxs)(se.Fragment,{children:[(0,se.jsxs)("div",{className:"wk-col-head",children:[(0,se.jsx)("h4",{className:"wk-col-title",children:s.heading}),d&&r&&(0,se.jsxs)("label",{className:"wk-switch",children:[(0,se.jsx)("input",{type:"checkbox",checked:o,onChange:u=>r(u.target.checked)}),s.hideLabel??i("hide",{part:d.label})]})]}),(0,se.jsx)("div",{className:"wk-blocks",children:s.blocks.map(u=>{let p=l(u.partId),g=c&&u.partId===c.id;return(0,se.jsxs)("div",{className:"wk-block","data-tone":p?.tone??"slate","data-hidden":g?"":void 0,children:[(0,se.jsxs)("div",{className:"wk-block-head",children:[p&&(0,se.jsx)("span",{className:"wk-chip",children:p.label}),(0,se.jsx)("span",{className:"wk-block-label",children:u.label})]}),g?(0,se.jsx)("p",{className:"wk-hidden-note",children:(0,se.jsx)(Uo,{source:s.hideNote??i("hidden")})}):(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)("pre",{className:"wk-block-text",children:u.text}),!!u.callouts?.length&&(0,se.jsx)("ul",{className:"wk-callouts",children:u.callouts.map((y,b)=>(0,se.jsx)("li",{children:(0,se.jsx)(Uo,{source:y})},b))})]})]},u.id)})}),c&&(0,se.jsx)("p",{className:"wk-sr","aria-live":"polite",children:i("hiddenLive",{part:c.label})})]}):(0,se.jsxs)(se.Fragment,{children:[(0,se.jsx)("h4",{className:"wk-col-title",children:n??i("state")}),(0,se.jsx)("div",{className:"wk-parts",children:a.map(u=>{let p=(e.entries??[]).filter(y=>y.partId===u.id),g=e.partNotes?.find(y=>y.partId===u.id)?.text;return(0,se.jsxs)("section",{className:"wk-part","data-tone":u.tone,"aria-label":u.label,children:[(0,se.jsxs)("div",{className:"wk-part-head",children:[(0,se.jsx)("b",{children:u.label}),u.plain&&(0,se.jsx)("span",{children:u.plain}),u.how&&(0,se.jsx)("small",{children:u.how})]}),g&&(0,se.jsx)("p",{className:"wk-part-note",children:(0,se.jsx)(Uo,{source:g})}),!p.length&&!g&&(0,se.jsx)("p",{className:"wk-part-empty",children:i("empty")}),p.map(y=>(0,se.jsxs)("article",{className:"wk-entry","data-status":y.status,children:[(0,se.jsxs)("div",{className:"wk-entry-head",children:[(0,se.jsx)("b",{children:y.title}),(0,se.jsx)("span",{className:"wk-badge","data-status":y.status,children:y.statusLabel??i(CE(y.status))})]}),(0,se.jsx)("dl",{className:"wk-fields",children:y.fields.map((b,x)=>(0,se.jsxs)("div",{children:[(0,se.jsx)("dt",{children:b.label}),(0,se.jsx)("dd",{"data-mono":b.mono?"":void 0,children:b.value})]},x))}),y.note&&(0,se.jsx)("p",{className:"wk-entry-note",children:(0,se.jsx)(Uo,{source:y.note})})]},y.id))]},u.id)})})]})})]})]})}function hx({step:e,t}){return(0,se.jsxs)("div",{className:"wk-details",children:[!!e.details?.length&&(0,se.jsx)("ul",{children:e.details.map((a,n)=>(0,se.jsx)("li",{children:(0,se.jsx)(Uo,{source:a})},n))}),!!e.sources?.length&&(0,se.jsxs)("p",{className:"wk-sources",children:[t("sources"),e.sources.map((a,n)=>(0,se.jsxs)("span",{children:[n>0&&" \xB7 ",(0,se.jsx)("a",{href:a.url,target:"_blank",rel:"noopener noreferrer",children:a.label})]},n))]})]})}function yx({data:e}){let t=ue(gx),a=e,n=(0,Lr.useMemo)(()=>(Array.isArray(a.parts)?a.parts:[]).map((w,E)=>({...w,tone:kc.includes(w.tone)?w.tone:mp[E%mp.length]})),[a.parts]),o=Array.isArray(a.steps)?a.steps:[],r=Math.max(0,o.findIndex(w=>w.id===a.initialStep)),[i,l]=(0,Lr.useState)(r),[s,c]=(0,Lr.useState)(r);s!==r&&(c(r),l(r));let[d,u]=(0,Lr.useState)(!1),[p,g]=(0,Lr.useState)(!1),y=(0,Lr.useRef)(new Map),b=Ka(a.title,t("title"));if(!o.length)return(0,se.jsx)("section",{className:"sb-block wk-block-root","aria-label":b,children:(0,se.jsx)("p",{className:"wk-part-empty",children:t("noSteps")})});let x=Math.min(i,o.length-1),f=o[x],m=(w,E=!1)=>{let L=Math.max(0,Math.min(o.length-1,w));l(L),u(!1),E&&y.current.get(L)?.focus()},v=w=>{let E=w.key==="ArrowRight"?1:w.key==="ArrowLeft"?-1:0;E&&(w.preventDefault(),m(x+E,!0))},T=!!f.details?.length||!!f.sources?.length;return(0,se.jsxs)("section",{className:"sb-block wk-block-root","aria-label":b,children:[(0,se.jsxs)("header",{className:"wk-head",children:[(0,se.jsx)("h3",{className:"wk-title",children:a.title}),a.question&&(0,se.jsxs)("p",{className:"wk-question",children:[(0,se.jsx)("span",{children:t("question")}),(0,se.jsx)(Uo,{source:a.question})]}),(0,se.jsx)("ul",{className:"wk-legend","aria-label":t("parts"),children:n.map(w=>(0,se.jsxs)("li",{"data-tone":w.tone,children:[(0,se.jsx)("b",{children:w.label}),w.plain&&(0,se.jsx)("span",{children:w.plain})]},w.id))})]}),(0,se.jsxs)("div",{className:"wk-live",children:[(0,se.jsx)("div",{className:"wk-tabs",role:"tablist","aria-label":t("steps"),onKeyDown:v,children:o.map((w,E)=>(0,se.jsxs)("button",{ref:L=>{L?y.current.set(E,L):y.current.delete(E)},type:"button",role:"tab","aria-selected":E===x,tabIndex:E===x?0:-1,"data-done":E<x?"":void 0,className:"wk-tab",onClick:()=>m(E),children:[(0,se.jsx)("span",{className:"wk-tab-n",children:E+1}),(0,se.jsx)("span",{className:"wk-tab-label",children:w.label})]},w.id))}),(0,se.jsx)("div",{role:"tabpanel","aria-label":f.label,children:(0,se.jsx)(bx,{step:f,index:x,parts:n,stateHeading:a.stateHeading,hidden:d,onHide:u,t})}),(0,se.jsxs)("footer",{className:"wk-foot",children:[(0,se.jsxs)("div",{className:"wk-nav",children:[(0,se.jsxs)("button",{type:"button",className:"wk-btn",disabled:x===0,onClick:()=>m(x-1),children:["\u2190 ",t("previous")]}),(0,se.jsx)("span",{className:"wk-count",children:t("count",{current:x+1,total:o.length})}),(0,se.jsxs)("button",{type:"button",className:"wk-btn","data-primary":"",disabled:x===o.length-1,onClick:()=>m(x+1),children:[t("next")," \u2192"]})]}),T&&(0,se.jsxs)("div",{children:[(0,se.jsx)("button",{type:"button",className:"wk-toggle","aria-expanded":p,onClick:()=>g(!p),children:t(p?"hideDetails":"details")}),p&&(0,se.jsx)(hx,{step:f,t})]})]})]}),(0,se.jsx)("div",{className:"wk-print",children:o.map((w,E)=>(0,se.jsxs)("section",{className:"wk-print-step",children:[(0,se.jsxs)("h4",{className:"wk-print-title",children:[E+1,". ",w.label]}),(0,se.jsx)(bx,{step:w,index:E,parts:n,stateHeading:a.stateHeading,hidden:!1,t}),(!!w.details?.length||!!w.sources?.length)&&(0,se.jsx)(hx,{step:w,t})]},w.id))}),a.note&&(0,se.jsx)("p",{className:"wk-note",children:(0,se.jsx)(Uo,{source:a.note})})]})}var po=U(Ne(),1);var vx=rt("chart",{"zh-CN":{seriesName:"\u7CFB\u5217 {index}",invalidData:"\u6570\u636E\u683C\u5F0F\u4E0D\u6B63\u786E\u3002",csvLabel:"\u6807\u7B7E",fileName:"\u56FE\u8868",chart:"\u56FE\u8868",dataChart:"\u6570\u636E\u56FE\u8868",exportData:"\u5BFC\u51FA\u56FE\u8868\u6570\u636E",exportCsv:"\u5BFC\u51FA CSV",chartType:"\u56FE\u8868\u7C7B\u578B",line:"\u6298\u7EBF\u56FE",bar:"\u67F1\u72B6\u56FE",title:"\u6807\u9898",unit:"\u5355\u4F4D",unitPlaceholder:"\u4F8B\u5982\uFF1Ams\u3001%",dataField:"\u6570\u636E \xB7 labels \u662F\u6A2A\u8F74\uFF0Cseries \u662F\u6570\u503C\u7CFB\u5217",applyData:"\u5E94\u7528\u6570\u636E",emptyTitle:"\u8BA9\u6570\u636E\u6210\u4E3A\u56FE\u8868",addData:"\u6DFB\u52A0\u6570\u636E",unitValue:"\u5355\u4F4D\uFF1A{unit}",summary:"{title}\uFF0C{points} \u4E2A\u6570\u636E\u70B9\uFF0C{series} \u4E2A\u7CFB\u5217",rawData:"\u67E5\u770B\u539F\u59CB\u6570\u636E",rows:"{count} \u884C",label:"\u6807\u7B7E"},en:{seriesName:"Series {index}",invalidData:"The data format is invalid.",csvLabel:"Label",fileName:"chart",chart:"Chart",dataChart:"Data chart",exportData:"Export chart data",exportCsv:"Export CSV",chartType:"Chart type",line:"Line chart",bar:"Bar chart",title:"Title",unit:"Unit",unitPlaceholder:"e.g. ms, %",dataField:"Data \xB7 labels are the x-axis, series are the value series",applyData:"Apply data",emptyTitle:"Turn your data into a chart",addData:"Add data",unitValue:"Unit: {unit}",summary:"{title}, data points: {points}, series: {series}",rawData:"View raw data",rows:{one:"{count} row",other:"{count} rows"},label:"Label"}});var be=U(pe(),1);function EE({label:e}){let t=qn(e);if(t.length<=12)return(0,be.jsx)(D6,{text:e});let a=s6(e).map(n=>n.note);return(0,be.jsx)("tspan",{...I0([t,...a].join(`
|
|
41
|
-
`),!1),children:t.slice(0,10)+"\u2026"})}var q1=760,Tu=272,Cl=54,xx=24,Eu=22,wx=36,kx=e=>new Intl.NumberFormat(Gl(),{notation:Math.abs(e)>=1e4?"compact":"standard",maximumFractionDigits:2}).format(e);function Sx({data:e,onChange:t,readOnly:a}){let n=ue(vx),[o,r]=(0,po.useState)(!1),[i,l]=(0,po.useState)([]),[s,c]=(0,po.useState)(null),[d,u]=(0,po.useState)(""),[p,g]=(0,po.useState)(""),[y,b]=(0,po.useState)(""),[x,f]=(0,po.useState)(""),m=Array.isArray(e.labels)?e.labels.map(_=>le(_)):[],v=Array.isArray(e.series)?e.series.filter(_=>_&&typeof _=="object"&&Array.isArray(_.values)).map((_,$)=>({name:le(_.name,n("seriesName",{index:$+1})),values:_.values.map(D=>ql(D)),color:/^#[0-9a-f]{3,8}$/i.test(_.color)?_.color:fp[$%fp.length]})):[],T=v.filter((_,$)=>!i.includes($)),w=e.type==="bar"?"bar":"line",E=T.flatMap(_=>_.values.slice(0,m.length)),L=Math.min(0,...E),H=Math.max(0,...E),S=(H-L)*.12||1,k=L<0?L-S:0,M=H+S,O=q1-Cl-xx,C=Tu-Eu-wx,N=O/Math.max(m.length,1),z=_=>w==="bar"?Cl+N*(_+.5):Cl+(m.length===1?O/2:_/(m.length-1)*O),A=_=>Eu+(M-_)/(M-k)*C,q=A(0),P=(0,po.useId)().replaceAll(":",""),Z=(0,po.useMemo)(()=>Array.from({length:5},(_,$)=>$/4),[]),F=!!(t&&!a),ee=()=>{u(JSON.stringify({labels:m,series:v.map(_=>({name:_.name,values:_.values,..._.color?{color:_.color}:{}}))},null,2)),g(le(e.title)),b(le(e.unit)),f(""),r(!o)},j=()=>{let _;try{_=C0(d)}catch($){f($ instanceof Error?$.message:n("invalidData"));return}t?.({...e,..._,title:p,unit:y}),l([]),r(!1)},K=()=>Fl(T0([{id:"label",name:n("csvLabel"),type:"text"},...v.map((_,$)=>({id:`s${$}`,name:qn(_.name),type:"number"}))],m.map((_,$)=>({id:String($),label:qn(_),...Object.fromEntries(v.map((D,V)=>[`s${V}`,D.values[$]??""]))}))),`${qn(le(e.title))||n("fileName")}.csv`,"text/csv;charset=utf-8");return(0,be.jsxs)("section",{className:"sb-block sb-chart","aria-label":Ka(e.title,n("dataChart")),children:[(0,be.jsxs)(ya,{title:le(e.title),defaultTitle:n("dataChart"),description:le(e.description),icon:(0,be.jsx)(X1,{size:17}),editable:F,editing:o,onEdit:ee,children:[m.length>0&&(0,be.jsx)("button",{type:"button",className:"sb-icon-button",onClick:K,"aria-label":n("exportData"),title:n("exportCsv"),children:(0,be.jsx)(Ur,{size:15})}),F&&(0,be.jsxs)("div",{className:"sb-segmented","aria-label":n("chartType"),children:[(0,be.jsx)("button",{type:"button","aria-label":n("line"),className:w==="line"?"is-active":"",onClick:()=>t?.({...e,type:"line"}),children:(0,be.jsx)(X1,{size:15})}),(0,be.jsx)("button",{type:"button","aria-label":n("bar"),className:w==="bar"?"is-active":"",onClick:()=>t?.({...e,type:"bar"}),children:(0,be.jsx)(hf,{size:15})})]})]}),o&&(0,be.jsx)(Wa,{children:(0,be.jsxs)("div",{className:"sb-editor-panel",children:[(0,be.jsxs)("div",{className:"sb-form-row",children:[(0,be.jsx)(He,{label:n("title"),children:(0,be.jsx)("input",{value:p,onChange:_=>g(_.target.value)})}),(0,be.jsx)(He,{label:n("unit"),children:(0,be.jsx)("input",{placeholder:n("unitPlaceholder"),value:y,onChange:_=>b(_.target.value)})})]}),(0,be.jsx)(He,{label:n("dataField"),children:(0,be.jsx)("textarea",{className:"sb-code-input",rows:10,spellCheck:!1,value:d,onChange:_=>u(_.target.value)})}),x&&(0,be.jsx)("p",{role:"alert",className:"sb-error",children:x}),(0,be.jsx)("div",{className:"sb-panel-footer",children:(0,be.jsxs)("button",{type:"button",className:"sb-button sb-primary",onClick:j,children:[(0,be.jsx)(Fa,{size:14}),n("applyData")]})})]})}),!m.length||!v.length?(0,be.jsx)(Ta,{icon:(0,be.jsx)(X1,{size:30,strokeWidth:1.4}),title:n("emptyTitle"),action:F&&!o?(0,be.jsxs)("button",{type:"button",className:"sb-button",onClick:ee,children:[(0,be.jsx)(wf,{size:14}),n("addData")]}):void 0}):(0,be.jsxs)(be.Fragment,{children:[(0,be.jsxs)("div",{className:"sb-chart-legend",children:[v.map((_,$)=>(0,be.jsxs)("button",{type:"button","aria-pressed":!i.includes($),className:i.includes($)?"is-muted":"",onClick:()=>l(D=>D.includes($)?D.filter(V=>V!==$):[...D,$]),children:[(0,be.jsx)("span",{style:{backgroundColor:_.color}}),(0,be.jsx)(N0,{text:_.name,focusable:!1})]},`${_.name}-${$}`)),le(e.unit)&&(0,be.jsx)("span",{className:"sb-chart-unit",children:n("unitValue",{unit:le(e.unit)})})]}),(0,be.jsxs)("div",{className:"sb-chart-canvas",onMouseLeave:()=>c(null),children:[(0,be.jsxs)("svg",{viewBox:`0 0 ${q1} ${Tu}`,role:"img","aria-label":n("summary",{title:qn(le(e.title))||n("chart"),points:m.length,series:v.length}),onPointerMove:_=>{let $=_.currentTarget.getBoundingClientRect(),D=(_.clientX-$.left)/$.width*q1,V=w==="bar"?Math.floor((D-Cl)/N):Math.round((D-Cl)/O*(m.length-1));c(Math.min(m.length-1,Math.max(0,V)))},children:[(0,be.jsx)("defs",{children:T.map((_,$)=>(0,be.jsxs)("linearGradient",{id:`${P}-fill-${$}`,x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,be.jsx)("stop",{offset:"0%",stopColor:_.color,stopOpacity:".11"}),(0,be.jsx)("stop",{offset:"100%",stopColor:_.color,stopOpacity:".01"})]},`${_.name}-${$}`))}),Z.map(_=>{let $=M-_*(M-k),D=Eu+C*_;return(0,be.jsxs)("g",{children:[(0,be.jsx)("line",{x1:Cl,x2:q1-xx,y1:D,y2:D,className:"sb-chart-grid"}),(0,be.jsx)("text",{x:Cl-12,y:D+4,textAnchor:"end",className:"sb-chart-label",children:kx($)})]},_)}),m.map((_,$)=>(m.length<=10||$%Math.ceil(m.length/8)===0||$===m.length-1)&&(0,be.jsx)("text",{x:z($),y:Tu-12,textAnchor:"middle",className:"sb-chart-label",children:(0,be.jsx)(EE,{label:_})},$)),T.map((_,$)=>{let D=m.map((V,B)=>`${z(B)},${A(_.values[B]??0)}`).join(" ");if(w==="bar"){let V=N*.66,B=Math.max(1,V/Math.max(T.length,1)-3);return(0,be.jsx)("g",{children:m.map((de,he)=>(0,be.jsx)("rect",{x:z(he)-V/2+$*(B+3),y:Math.min(A(_.values[he]??0),q),width:B,height:Math.max(1,Math.abs(q-A(_.values[he]??0))),rx:3,fill:_.color,opacity:s===null||s===he?".9":".5",children:(0,be.jsxs)("title",{children:[qn(de)," \xB7 ",qn(_.name),":"," ",_.values[he]??0,le(e.unit)]})},he))},`${_.name}-${$}`)}return(0,be.jsxs)("g",{children:[(0,be.jsx)("polygon",{points:`${z(0)},${q} ${D} ${z(m.length-1)},${q}`,fill:`url(#${P}-fill-${$})`}),(0,be.jsx)("polyline",{points:D,fill:"none",stroke:_.color,strokeWidth:2.3,strokeLinejoin:"round",strokeLinecap:"round"}),(m.length<=20||s!==null)&&m.map((V,B)=>(m.length<=20||s===B)&&(0,be.jsx)("circle",{cx:z(B),cy:A(_.values[B]??0),r:s===B?5:3,fill:_.color,stroke:"var(--sb-surface)",strokeWidth:2,children:(0,be.jsxs)("title",{children:[qn(V)," \xB7 ",qn(_.name),":"," ",_.values[B]??0,le(e.unit)]})},B))]},`${_.name}-${$}`)}),s!==null&&(0,be.jsx)("line",{x1:z(s),x2:z(s),y1:Eu,y2:Tu-wx,className:"sb-chart-crosshair"})]}),s!==null&&(0,be.jsxs)("div",{className:"sb-chart-tooltip",style:{left:`${Math.min(78,Math.max(8,z(s)/q1*100))}%`},children:[(0,be.jsx)("strong",{children:qn(m[s])}),T.map((_,$)=>(0,be.jsxs)("div",{children:[(0,be.jsx)("span",{className:"sb-dot",style:{background:_.color}}),qn(_.name),(0,be.jsxs)("b",{children:[kx(_.values[s]??0),le(e.unit)]})]},`${_.name}-${$}`))]})]}),(0,be.jsxs)("details",{className:"sb-data-details",children:[(0,be.jsxs)("summary",{children:[n("rawData")," ",(0,be.jsx)("span",{children:n("rows",{count:m.length})})]}),(0,be.jsx)("div",{className:"sb-table-scroll",children:(0,be.jsxs)("table",{children:[(0,be.jsx)("thead",{children:(0,be.jsxs)("tr",{children:[(0,be.jsx)("th",{children:n("label")}),v.map((_,$)=>(0,be.jsx)("th",{children:(0,be.jsx)(N0,{text:_.name})},$))]})}),(0,be.jsx)("tbody",{children:m.map((_,$)=>(0,be.jsxs)("tr",{children:[(0,be.jsx)("td",{children:(0,be.jsx)(N0,{text:_})}),v.map((D,V)=>(0,be.jsx)("td",{children:D.values[$]??"\u2014"},V))]},$))})]})})]})]})]})}var an=U(Ne(),1);var un=U(Ne(),1);var F1=rt("database",{"zh-CN":{database:"\u6570\u636E\u5E93",property:"\u5C5E\u6027","type.text":"\u6587\u672C","type.number":"\u6570\u5B57","type.select":"\u5355\u9009","type.checkbox":"\u590D\u9009\u6846","type.url":"\u94FE\u63A5",notSet:"\u672A\u8BBE\u7F6E",openLink:"\u6253\u5F00{name}","error.keepOneProperty":"\u8BF7\u81F3\u5C11\u4FDD\u7559\u4E00\u4E2A\u5C5E\u6027\u3002","error.nameEveryProperty":"\u8BF7\u4E3A\u6BCF\u4E2A\u5C5E\u6027\u586B\u5199\u540D\u79F0\u3002",exportDatabase:"\u5BFC\u51FA\u6570\u636E\u5E93",exportCsv:"\u5BFC\u51FA CSV",viewAndFilterMenu:"\u6570\u636E\u5E93\u89C6\u56FE\u4E0E\u7B5B\u9009",viewAndFilter:"\u89C6\u56FE\u4E0E\u7B5B\u9009",table:"\u8868\u683C",board:"\u770B\u677F",searchDatabase:"\u641C\u7D22\u6570\u636E\u5E93",filterDatabase:"\u7B5B\u9009\u6570\u636E\u5E93",newRecord:"\u65B0\u5EFA",groupBy:"\u5206\u7EC4\u4F9D\u636E",boardGroupProperty:"\u770B\u677F\u5206\u7EC4\u5C5E\u6027",databaseName:"\u6570\u636E\u5E93\u540D\u79F0",propertyName:"\u5C5E\u6027\u540D\u79F0",propertyType:"{name}\u7684\u7C7B\u578B",propertyOptions:"{name}\u7684\u9009\u9879\uFF0C\u7528\u9017\u53F7\u5206\u9694",optionsPlaceholder:"\u9009\u9879\uFF0C\u7528\u9017\u53F7\u5206\u9694",deleteProperty:"\u5220\u9664\u5C5E\u6027{name}",addProperty:"\u6DFB\u52A0\u5C5E\u6027",saveProperties:"\u4FDD\u5B58\u5C5E\u6027",filterProperty:"\u7B5B\u9009\u5C5E\u6027",allRecords:"\u5168\u90E8\u8BB0\u5F55",equals:"\u7B49\u4E8E",filterValue:"\u7B5B\u9009\u503C",clear:"\u6E05\u9664",rowActions:"\u884C\u64CD\u4F5C",deleteNamedRecord:"\u5220\u9664\u8BB0\u5F55{name}",deleteRecord:"\u5220\u9664\u8BB0\u5F55","empty.noMatches":"\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u8BB0\u5F55","empty.start":"\u4ECE\u7B2C\u4E00\u6761\u8BB0\u5F55\u5F00\u59CB",newRecordIn:"\u5728{group}\u4E2D\u65B0\u5EFA\u8BB0\u5F55",moveToGroup:"\u79FB\u52A8\u5230\u5206\u7EC4",addRecord:"\u65B0\u8BB0\u5F55",recordCount:"{count} \u6761\u8BB0\u5F55",filteredRecordCount:"{shown} / {count} \u6761\u8BB0\u5F55",clearSort:"\u6E05\u9664\u6392\u5E8F",previousPage:"\u4E0A\u4E00\u9875",nextPage:"\u4E0B\u4E00\u9875",calendar:"\u65E5\u5386","type.date":"\u65E5\u671F",untitled:"\u672A\u547D\u540D","calendar.noDateColumn":"\u65E5\u5386\u9700\u8981\u4E00\u4E2A\u65E5\u671F\u5C5E\u6027","calendar.noDateColumnHint":"\u5728\u5C5E\u6027\u8BBE\u7F6E\u4E2D\u6DFB\u52A0\u65E5\u671F\u7C7B\u578B\u7684\u5C5E\u6027\u540E\uFF0C\u8BB0\u5F55\u4F1A\u6309\u65E5\u671F\u6392\u8FDB\u65E5\u5386\u3002","calendar.dateProperty":"\u65E5\u5386\u65E5\u671F\u5C5E\u6027","calendar.endDateProperty":"\u7ED3\u675F\u65E5\u671F\u5C5E\u6027","calendar.colorProperty":"\u989C\u8272\u4F9D\u636E","calendar.doneProperty":"\u5B8C\u6210\u6807\u8BB0","calendar.none":"\u65E0","calendar.mode":"\u65E5\u5386\u6A21\u5F0F","calendar.mode.month":"\u6708","calendar.mode.week":"\u5468","calendar.mode.heatmap":"\u70ED\u529B\u56FE","calendar.previousMonth":"\u4E0A\u4E2A\u6708","calendar.nextMonth":"\u4E0B\u4E2A\u6708","calendar.previousWeek":"\u4E0A\u4E00\u5468","calendar.nextWeek":"\u4E0B\u4E00\u5468","calendar.previousRange":"\u66F4\u65E9","calendar.nextRange":"\u66F4\u665A","calendar.today":"\u4ECA\u5929","calendar.now":"\u73B0\u5728","calendar.agenda":"\u65E5\u7A0B\u5217\u8868","calendar.allDay":"\u5168\u5929","calendar.noRecordsInRange":"\u8FD9\u6BB5\u65F6\u95F4\u6CA1\u6709\u8BB0\u5F55","calendar.noRecordsOnDay":"\u8FD9\u4E00\u5929\u6CA1\u6709\u8BB0\u5F55","calendar.addOnDay":"\u5728{date}\u65B0\u5EFA\u8BB0\u5F55","calendar.moreRecords":"\u8FD8\u6709 {count} \u6761","calendar.showLess":"\u6536\u8D77","calendar.colorLegend":"\u6309{name}\u7740\u8272","calendar.hours":"{hours}h","calendar.closeDetail":"\u5173\u95ED\u8BB0\u5F55\u8BE6\u60C5","calendar.undated":"{count} \u6761\u8BB0\u5F55\u6CA1\u6709{name}\uFF0C\u672A\u663E\u793A\u5728\u65E5\u5386\u4E2D","calendar.currentStreak":"\u5F53\u524D\u8FDE\u7EED","calendar.longestStreak":"\u6700\u957F\u8FDE\u7EED","calendar.activeDays":"\u6709\u8BB0\u5F55\u7684\u5929\u6570","calendar.days":"{count} \u5929","calendar.doneCount":"\u5B8C\u6210 {count} \u6761","calendar.heatmapLabel":"\u6BCF\u65E5\u8BB0\u5F55\u70ED\u529B\u56FE\uFF0C{range}","calendar.less":"\u5C11","calendar.more":"\u591A"},en:{database:"Database",property:"Property","type.text":"Text","type.number":"Number","type.select":"Select","type.checkbox":"Checkbox","type.url":"URL",notSet:"Not set",openLink:"Open {name}","error.keepOneProperty":"Keep at least one property.","error.nameEveryProperty":"Give every property a name.",exportDatabase:"Export database",exportCsv:"Export CSV",viewAndFilterMenu:"Database view and filters",viewAndFilter:"View and filter",table:"Table",board:"Board",searchDatabase:"Search database",filterDatabase:"Filter database",newRecord:"New",groupBy:"Group by",boardGroupProperty:"Board grouping property",databaseName:"Database name",propertyName:"Property name",propertyType:"Type of {name}",propertyOptions:"Options for {name}, separated by commas",optionsPlaceholder:"Options, separated by commas",deleteProperty:"Delete property {name}",addProperty:"Add property",saveProperties:"Save properties",filterProperty:"Filter property",allRecords:"All records",equals:"is",filterValue:"Filter value",clear:"Clear",rowActions:"Row actions",deleteNamedRecord:"Delete record {name}",deleteRecord:"Delete record","empty.noMatches":"No matching records","empty.start":"Start with your first record",newRecordIn:"New record in {group}",moveToGroup:"Move to group",addRecord:"New record",recordCount:{one:"{count} record",other:"{count} records"},filteredRecordCount:{one:"{shown} of {count} record",other:"{shown} of {count} records"},clearSort:"Clear sort",previousPage:"Previous",nextPage:"Next",calendar:"Calendar","type.date":"Date",untitled:"Untitled","calendar.noDateColumn":"The calendar needs a date property","calendar.noDateColumnHint":"Add a property of type Date in the property settings to place records on the calendar.","calendar.dateProperty":"Calendar date property","calendar.endDateProperty":"End date property","calendar.colorProperty":"Color by","calendar.doneProperty":"Done marker","calendar.none":"None","calendar.mode":"Calendar mode","calendar.mode.month":"Month","calendar.mode.week":"Week","calendar.mode.heatmap":"Heatmap","calendar.previousMonth":"Previous month","calendar.nextMonth":"Next month","calendar.previousWeek":"Previous week","calendar.nextWeek":"Next week","calendar.previousRange":"Earlier","calendar.nextRange":"Later","calendar.today":"Today","calendar.now":"Now","calendar.agenda":"Agenda","calendar.allDay":"All day","calendar.noRecordsInRange":"No records in this period","calendar.noRecordsOnDay":"No records on this day","calendar.addOnDay":"New record on {date}","calendar.moreRecords":"{count} more","calendar.showLess":"Show less","calendar.colorLegend":"Colored by {name}","calendar.hours":"{hours}h","calendar.closeDetail":"Close record details","calendar.undated":{one:"{count} record has no {name} and is not on the calendar",other:"{count} records have no {name} and are not on the calendar"},"calendar.currentStreak":"Current streak","calendar.longestStreak":"Longest streak","calendar.activeDays":"Active days","calendar.days":{one:"{count} day",other:"{count} days"},"calendar.doneCount":"{count} done","calendar.heatmapLabel":"Daily record heatmap, {range}","calendar.less":"Less","calendar.more":"More"}});ct(`.sb-block.sb-database .sb-dbc{--dbc-0: #6b7c53;--dbc-0-soft: #e9eee2;--dbc-1: #5b7a9a;--dbc-1-soft: #e8eef4;--dbc-2: #9a804d;--dbc-2-soft: #f3edde;--dbc-3: #986e91;--dbc-3-soft: #f0e8ee;--dbc-4: #a3765d;--dbc-4-soft: #f3e7e0;--dbc-n: var(--sb-muted);--dbc-n-soft: var(--sb-soft);--dbc-a: var(--sb-accent);--dbc-a-soft: var(--sb-accent-soft);--dbc-today: #c4673f;--dbc-hour: 30px;container-type:inline-size;padding:10px 0 4px}:root[data-theme=dark] .sb-block.sb-database .sb-dbc{--dbc-0: #c1d2ae;--dbc-0-soft: #34432d;--dbc-1: #b1c8df;--dbc-1-soft: #2d3e4b;--dbc-2: #d5c59e;--dbc-2-soft: #443d2b;--dbc-3: #d1b3ca;--dbc-3-soft: #443142;--dbc-4: #d9bfa9;--dbc-4-soft: #49372d;--dbc-today: #e79a76}.sb-block.sb-database .sb-dbc-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:8px}.sb-block.sb-database .sb-dbc-modes{display:inline-flex;border:1px solid var(--sb-line);border-radius:6px;overflow:hidden}.sb-block.sb-database .sb-dbc-modes>button{font-size:10px;padding:3px 10px;color:var(--sb-muted);border-radius:0}.sb-block.sb-database .sb-dbc-modes>button+button{border-left:1px solid var(--sb-line)}.sb-block.sb-database .sb-dbc-modes>button.is-active{background:var(--sb-accent-soft);color:var(--sb-accent);font-weight:600}.sb-block.sb-database .sb-dbc-nav{display:flex;align-items:center;gap:4px}.sb-block.sb-database .sb-dbc-nav>strong{font-size:11px;min-width:96px;text-align:center;font-variant-numeric:tabular-nums}.sb-block.sb-database .sb-dbc-today{font-size:10px;padding:2px 9px;border:1px solid var(--sb-line);border-radius:999px;color:var(--sb-muted);margin-left:4px}.sb-block.sb-database .sb-dbc-legend{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.sb-block.sb-database .sb-dbc-legend>button{--dbc-c: var(--sb-text);display:inline-flex;align-items:center;gap:5px;font-size:10px;padding:2px 9px;border-radius:999px;border:1px solid var(--sb-line);background:var(--sb-surface)}.sb-block.sb-database .sb-dbc-legend i{width:7px;height:7px;border-radius:50%;background:var(--dbc-c)}.sb-block.sb-database .sb-dbc-legend b{font-weight:600;color:var(--sb-muted);font-variant-numeric:tabular-nums}.sb-block.sb-database .sb-dbc-legend>button.is-active{border-color:var(--dbc-c);background:var(--dbc-c-soft, var(--sb-accent-soft));color:var(--dbc-c)}.sb-block.sb-database .sb-calendar-settings>label{display:inline-flex;align-items:center;gap:5px}.sb-block.sb-database .sb-dbc-chip{display:flex;align-items:center;gap:4px;width:100%;min-width:0;font-size:10px;line-height:1.35;text-align:left;padding:2px 5px;margin-top:2px;border-radius:4px;border-left:3px solid var(--dbc-c);background:var(--dbc-c-soft);color:var(--sb-text);transition:opacity .15s,box-shadow .15s}.sb-block.sb-database .sb-dbc-chip:not(:disabled):hover{background:var(--dbc-c-soft);box-shadow:0 1px 4px color-mix(in srgb,var(--sb-text) 18%,transparent)}.sb-block.sb-database .sb-dbc-chip.is-selected{box-shadow:0 0 0 2px var(--dbc-c)}.sb-block.sb-database .sb-dbc-chip.is-faded{opacity:.25}.sb-block.sb-database .sb-dbc-chip.continues-before{border-top-left-radius:0;border-bottom-left-radius:0;border-left-style:dashed}.sb-block.sb-database .sb-dbc-chip.is-done .sb-dbc-chip-title{text-decoration:line-through;color:var(--sb-muted)}.sb-block.sb-database .sb-dbc-chip[draggable=true]{cursor:grab}.sb-block.sb-database .sb-dbc-chip-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sb-block.sb-database .sb-dbc-time{flex:none;color:var(--dbc-c);font-variant-numeric:tabular-nums}.sb-block.sb-database .sb-dbc-check{flex:none;width:11px;height:11px;border-radius:3px;border:1px solid var(--dbc-c);font-size:8px;line-height:9px;text-align:center;color:var(--sb-surface)}.sb-block.sb-database .sb-dbc-chip.is-done .sb-dbc-check{background:var(--dbc-c)}.sb-block.sb-database .sb-dbc-muted{color:var(--sb-muted);font-size:10px}.sb-block.sb-database .sb-dbc-add{width:18px;height:18px;opacity:0}.sb-block.sb-database .sb-dbc-day:hover .sb-dbc-add,.sb-block.sb-database .sb-dbc-weekday-head:hover .sb-dbc-add,.sb-block.sb-database .sb-dbc-heat-day .sb-dbc-add,.sb-block.sb-database .sb-dbc-add:focus-visible{opacity:1}.sb-block.sb-database .sb-dbc-month{border:1px solid var(--sb-line);border-radius:6px;overflow:hidden}.sb-block.sb-database .sb-dbc-weekdays,.sb-block.sb-database .sb-dbc-week-row{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}.sb-block.sb-database .sb-dbc-weekdays>span{font-size:9px;color:var(--sb-muted);padding:4px 6px;background:var(--sb-soft);border-bottom:1px solid var(--sb-line)}.sb-block.sb-database .sb-dbc-day{min-height:78px;padding:3px 4px 5px;border-right:1px solid var(--sb-line);border-bottom:1px solid var(--sb-line);min-width:0}.sb-block.sb-database .sb-dbc-week-row>.sb-dbc-day:nth-child(7){border-right:0}.sb-block.sb-database .sb-dbc-week-row:last-child>.sb-dbc-day{border-bottom:0}.sb-block.sb-database .sb-dbc-day.is-outside{background:var(--sb-soft)}.sb-block.sb-database .sb-dbc-day.is-outside .sb-dbc-day-number{color:var(--sb-muted);opacity:.7}.sb-block.sb-database .sb-dbc-day-head{display:flex;align-items:center;justify-content:space-between}.sb-block.sb-database .sb-dbc-day-number{font-size:10px;font-variant-numeric:tabular-nums;min-width:18px;height:18px;line-height:18px;text-align:center;border-radius:999px}.sb-block.sb-database .sb-dbc-day.is-today .sb-dbc-day-number{background:var(--dbc-today);color:var(--sb-surface);font-weight:700}.sb-block.sb-database .sb-dbc-more{font-size:9px;color:var(--sb-muted);padding:1px 4px;margin-top:2px;border-radius:3px}.sb-block.sb-database .sb-dbc-agenda{display:none;list-style:none;margin:0;padding:0}.sb-block.sb-database .sb-dbc-agenda>li{display:grid;grid-template-columns:112px minmax(0,1fr);gap:8px;padding:6px 2px;border-bottom:1px dashed var(--sb-line)}.sb-block.sb-database .sb-dbc-agenda-day{font-size:10px;color:var(--sb-muted);font-variant-numeric:tabular-nums}.sb-block.sb-database .sb-dbc-agenda-day>b{margin-left:5px;color:var(--dbc-today)}.sb-block.sb-database .sb-dbc-agenda>li.is-today .sb-dbc-agenda-day{color:var(--dbc-today);font-weight:600}.sb-block.sb-database .sb-dbc-agenda-items>.sb-dbc-chip:first-child{margin-top:0}.sb-block.sb-database .sb-dbc-agenda-empty{font-size:10px;color:var(--sb-muted)}.sb-block.sb-database .sb-dbc-weekgrid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border:1px solid var(--sb-line);border-radius:6px;overflow:hidden}.sb-block.sb-database .sb-dbc-weekgrid.is-timed{grid-template-columns:38px repeat(7,minmax(0,1fr));grid-template-rows:auto auto auto}.sb-block.sb-database .sb-dbc-weekgrid.is-timed>.sb-dbc-weekday,.sb-block.sb-database .sb-dbc-weekgrid.is-timed>.sb-dbc-axis{grid-row:1 / 4;grid-template-rows:subgrid}.sb-block.sb-database .sb-dbc-weekday{display:grid;grid-template-rows:auto auto 1fr;border-left:1px solid var(--sb-line);min-width:0;min-height:140px}.sb-block.sb-database .sb-dbc-weekgrid:not(.is-timed)>.sb-dbc-weekday:first-child{border-left:0}.sb-block.sb-database .sb-dbc-weekday.is-today{background:color-mix(in srgb,var(--dbc-today) 6%,transparent)}.sb-block.sb-database .sb-dbc-weekday-head,.sb-block.sb-database .sb-dbc-axis-head{display:flex;align-items:baseline;gap:4px;padding:4px 5px;min-height:28px;font-size:9px;color:var(--sb-muted);border-bottom:1px solid var(--sb-line);background:var(--sb-soft)}.sb-block.sb-database .sb-dbc-weekday-head>strong{font-size:10px;color:var(--sb-text)}.sb-block.sb-database .sb-dbc-weekday.is-today .sb-dbc-weekday-head>*{color:var(--dbc-today)}.sb-block.sb-database .sb-dbc-weekday-head>.sb-dbc-add{margin-left:auto;align-self:center}.sb-block.sb-database .sb-dbc-weekday-list{padding:2px 4px 4px;min-height:24px}.sb-block.sb-database .is-timed .sb-dbc-weekday-list{border-bottom:1px solid var(--sb-line)}.sb-block.sb-database .sb-dbc-axis{display:grid;grid-template-rows:auto auto 1fr}.sb-block.sb-database .sb-dbc-axis-allday{font-size:8px;color:var(--sb-muted);padding:4px 3px;min-height:24px;border-bottom:1px solid var(--sb-line)}.sb-block.sb-database .sb-dbc-axis-hours,.sb-block.sb-database .sb-dbc-hours{position:relative;height:calc(var(--dbc-hours) * var(--dbc-hour))}.sb-block.sb-database .sb-dbc-hours{background-image:repeating-linear-gradient(to bottom,var(--sb-line) 0,var(--sb-line) 1px,transparent 1px,transparent var(--dbc-hour))}.sb-block.sb-database .sb-dbc-axis-hours>span{position:absolute;right:4px;font-size:8px;color:var(--sb-muted);transform:translateY(-50%);font-variant-numeric:tabular-nums}.sb-block.sb-database .sb-dbc-axis-hours>span:first-child{transform:none}.sb-block.sb-database .sb-dbc-slot{position:absolute;padding:1px 2px}.sb-block.sb-database .sb-dbc-slot>.sb-dbc-chip{height:100%;margin:0;align-items:flex-start;flex-wrap:wrap;align-content:flex-start;overflow:hidden}.sb-block.sb-database .sb-dbc-slot .sb-dbc-chip-title{white-space:normal}.sb-block.sb-database .sb-dbc-now{position:absolute;left:0;right:0;border-top:2px solid var(--dbc-today);z-index:2;pointer-events:none}.sb-block.sb-database .sb-dbc-now>b{position:absolute;right:2px;top:-14px;font-size:8px;color:var(--dbc-today);background:var(--sb-surface);padding:0 3px;border-radius:3px}.sb-block.sb-database .sb-dbc-stats{display:flex;flex-wrap:wrap;gap:8px 22px;margin:0 0 10px}.sb-block.sb-database .sb-dbc-stats>div{display:flex;flex-direction:column-reverse}.sb-block.sb-database .sb-dbc-stats dt{font-size:9px;color:var(--sb-muted)}.sb-block.sb-database .sb-dbc-stats dd{margin:0;font-size:17px;font-weight:700;color:var(--dbc-c);font-variant-numeric:tabular-nums}.sb-block.sb-database .sb-dbc-stats dd>small{margin-left:6px;font-size:10px;font-weight:500;color:var(--sb-muted)}.sb-block.sb-database .sb-dbc-heat-scroll{overflow-x:auto;padding:2px}.sb-block.sb-database .sb-dbc-heat-grid{display:grid;grid-template-columns:24px repeat(var(--dbc-weeks),12px);grid-template-rows:14px repeat(7,12px);gap:3px;width:max-content}.sb-block.sb-database .sb-dbc-heat-month,.sb-block.sb-database .sb-dbc-heat-weekday{font-size:8px;color:var(--sb-muted);white-space:nowrap;line-height:12px;overflow:visible}.sb-block.sb-database .sb-dbc-heat-corner{grid-row:1;grid-column:1}.sb-block.sb-database .sb-dbc-heat-month{grid-row:1}.sb-block.sb-database .sb-dbc-heat-weekday{grid-column:1}.sb-block.sb-database .sb-dbc-heat-cell,.sb-block.sb-database .sb-dbc-heat-legend>i{display:block;width:12px;height:12px;padding:0;border-radius:3px;background:var(--sb-soft);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--sb-line) 70%,transparent)}.sb-block.sb-database .sb-dbc-heat-cell.level-1,.sb-block.sb-database .sb-dbc-heat-legend>i.level-1{background:color-mix(in srgb,var(--dbc-c) 28%,var(--sb-soft))}.sb-block.sb-database .sb-dbc-heat-cell.level-2,.sb-block.sb-database .sb-dbc-heat-legend>i.level-2{background:color-mix(in srgb,var(--dbc-c) 50%,var(--sb-soft))}.sb-block.sb-database .sb-dbc-heat-cell.level-3,.sb-block.sb-database .sb-dbc-heat-legend>i.level-3{background:color-mix(in srgb,var(--dbc-c) 75%,var(--sb-soft))}.sb-block.sb-database .sb-dbc-heat-cell.level-4,.sb-block.sb-database .sb-dbc-heat-legend>i.level-4{background:var(--dbc-c)}.sb-block.sb-database .sb-dbc-heat-cell:not(:disabled):hover{box-shadow:inset 0 0 0 1px var(--sb-text)}.sb-block.sb-database .sb-dbc-heat-cell.is-future{opacity:.35}.sb-block.sb-database .sb-dbc-heat-cell.is-today{box-shadow:inset 0 0 0 2px var(--dbc-today)}.sb-block.sb-database .sb-dbc-heat-cell.is-picked{outline:2px solid var(--sb-text);outline-offset:1px}.sb-block.sb-database .sb-dbc-heat-legend{display:flex;align-items:center;gap:3px;justify-content:flex-end;margin-top:6px;font-size:9px;color:var(--sb-muted)}.sb-block.sb-database .sb-dbc-heat-legend>span{margin:0 3px}.sb-block.sb-database .sb-dbc-heat-day{display:grid;grid-template-columns:auto auto 1fr;align-items:start;gap:4px 8px;margin-top:10px;padding-top:8px;border-top:1px dashed var(--sb-line)}.sb-block.sb-database .sb-dbc-heat-day>strong{font-size:10px;line-height:20px}.sb-block.sb-database .sb-dbc-heat-day .sb-dbc-agenda-items{display:flex;flex-wrap:wrap;gap:4px}.sb-block.sb-database .sb-dbc-heat-day .sb-dbc-chip{width:auto;margin:0}.sb-block.sb-database .sb-dbc-detail{margin-top:10px;padding:10px 12px;border:1px solid var(--sb-line);border-top:3px solid var(--dbc-c);border-radius:6px;background:var(--sb-surface);animation:sb-reveal .15s ease-out}.sb-block.sb-database .sb-dbc-detail-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sb-block.sb-database .sb-dbc-detail-head>strong{font-size:12px}.sb-block.sb-database .sb-dbc-detail-head>.sb-icon-button:first-of-type{margin-left:auto}.sb-block.sb-database .sb-dbc-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:6px 14px;margin:8px 0 0}.sb-block.sb-database .sb-dbc-fields dt{font-size:9px;color:var(--sb-muted)}.sb-block.sb-database .sb-dbc-fields dd{margin:0;min-width:0}.sb-block.sb-database .sb-dbc-fields .sb-tag{margin:0}.sb-block.sb-database .sb-dbc-undated{margin:8px 0 0}.sb-block.sb-database .sb-dbc-empty-glyph{font-weight:700;font-size:18px}@container (max-width: 560px){.sb-block.sb-database .sb-dbc-month,.sb-block.sb-database .sb-dbc-weekgrid{display:none}.sb-block.sb-database .sb-dbc-agenda{display:block}.sb-block.sb-database .sb-dbc-agenda>li{grid-template-columns:1fr;gap:3px}.sb-block.sb-database .sb-dbc-nav>strong{min-width:0}}@media(prefers-reduced-motion:reduce){.sb-block.sb-database .sb-dbc-detail{animation:none}.sb-block.sb-database .sb-dbc-chip{transition:none}}@media print{.sb-block.sb-database .sb-dbc-nav>button,.sb-block.sb-database .sb-dbc-modes,.sb-block.sb-database .sb-dbc-add,.sb-block.sb-database .sb-dbc-detail .sb-icon-button{display:none}.sb-block.sb-database .sb-dbc-heat-scroll{overflow:visible}.sb-block.sb-database .sb-dbc-agenda{display:block;margin-top:10px}.sb-block.sb-database .sb-dbc-chip-title{white-space:normal}}
|
|
42
|
-
`);var ce=U(pe(),1),Cx=["month","week","heatmap"],O5=864e5,M5=3,Tl=(e,t,a)=>e.find(n=>n.id===t&&n.type===a);function Tx(e,t={}){let a=Tl(e,t.dateColumn,"date")??e.find(r=>r.type==="date"),n=Tl(e,t.endDateColumn,"date"),o=Tl(e,t.startTimeColumn,"text");return{dateColumn:a,endDateColumn:n&&n!==a?n:void 0,startTimeColumn:o,endTimeColumn:o?Tl(e,t.endTimeColumn,"text"):void 0,colorColumn:t.colorColumn===""?void 0:Tl(e,t.colorColumn,"select")??e.find(r=>r.type==="select"),doneColumn:Tl(e,t.doneColumn,"checkbox"),mode:Cx.includes(t.mode)?t.mode:"month",initialDay:Ti(t.initialDate),weekStartsOn:t.weekStartsOn===0?0:1,weeks:Number.isInteger(t.weeks)&&t.weeks>=1&&t.weeks<=L2?t.weeks:12}}function Ex(e,t){if(!e)return;let a={...e},n=(o,r)=>{a[o]!==void 0&&!Tl(t,a[o],r)&&delete a[o]};return n("dateColumn","date"),n("endDateColumn","date"),n("startTimeColumn","text"),n("endTimeColumn","text"),n("colorColumn","select"),n("doneColumn","checkbox"),a.endDateColumn&&a.endDateColumn===a.dateColumn&&delete a.endDateColumn,a.startTimeColumn||delete a.endTimeColumn,a}var El=e=>new Date(e*O5),I5=e=>{let t=El(e);return Math.round(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),1)/O5)},N5=(e,t)=>{let a=El(e);return Math.round(Date.UTC(a.getUTCFullYear(),a.getUTCMonth()+t,1)/O5)},D5=e=>`${Math.floor(e/60)}:${String(e%60).padStart(2,"0")}`,Di=(e,t)=>Array.from({length:t-e+1},(a,n)=>e+n);function zE(e){return(0,un.useMemo)(()=>{let t=a=>{let n=new Intl.DateTimeFormat(e,{...a,timeZone:"UTC"});return o=>n.format(El(o))};return{month:t({year:"numeric",month:"long"}),monthShort:t({month:"short"}),day:t({month:"short",day:"numeric"}),full:t({year:"numeric",month:"short",day:"numeric",weekday:"short"}),weekday:t({weekday:"short"})}},[e])}function zx({columns:e,rows:t,settings:a,editable:n,renderCell:o,onMove:r,onAdd:i,onRemove:l}){let s=ue(F1),c=$l(),d=zE(c),u=xh(),[p,g]=(0,un.useState)(a.mode),[y,b]=(0,un.useState)(a.initialDay??u),[x,f]=(0,un.useState)(null),[m,v]=(0,un.useState)(null),[T,w]=(0,un.useState)(null),[E,L]=(0,un.useState)(null),[H,S]=(0,un.useState)(null),k=(0,un.useRef)(null),{dateColumn:M,endDateColumn:O,startTimeColumn:C,endTimeColumn:N,colorColumn:z,doneColumn:A,weekStartsOn:q}=a,P=e.find(ie=>ie.type==="text")??e[0],Z=(0,un.useMemo)(()=>M?kh(t,{dateColumn:M.id,endDateColumn:O?.id,startTimeColumn:C?.id,endTimeColumn:N?.id,doneColumn:A?.id}):[],[t,M,O,C,N,A]),F=z?Array.from(new Set([...z.options??[],...Z.map(ie=>le(ie.row[z.id]))])).filter(Boolean):[],ee=ie=>{let fe=z?F.indexOf(le(ie[z.id])):-1;return fe<0?"n":String(fe%5)},j=ie=>({"--dbc-c":`var(--dbc-${ie})`,"--dbc-c-soft":`var(--dbc-${ie}-soft)`}),K=ie=>!m||z&&le(ie.row[z.id])===m;if((0,un.useEffect)(()=>{let ie=fe=>{fe.key==="Escape"&&f(null)};if(x)return window.addEventListener("keydown",ie),()=>window.removeEventListener("keydown",ie)},[x]),!M)return(0,ce.jsx)(Ta,{icon:(0,ce.jsx)("span",{className:"sb-dbc-empty-glyph",children:"31"}),title:s("calendar.noDateColumn"),description:s("calendar.noDateColumnHint")});let _,$,D;if(p==="month"){let ie=I5(y),fe=N5(y,1)-1;_=hl(ie,q),$=hl(fe,q)+6,D=d.month(ie)}else p==="week"?(_=hl(y,q),$=_+6,D=`${d.day(_)} \u2013 ${d.day($)}`):($=hl(y,q)+6,_=$-a.weeks*7+1,D=`${d.month(_)} \u2013 ${d.month($)}`);let V=jm(Z,_,$),B=new Set;for(let ie of V.values())for(let fe of ie)B.add(fe);let de=t.length-Z.length,he=ie=>{w(null),b(fe=>p==="month"?N5(fe,ie):fe+ie*7*(p==="week"?1:a.weeks))},ye={month:[s("calendar.previousMonth"),s("calendar.nextMonth")],week:[s("calendar.previousWeek"),s("calendar.nextWeek")],heatmap:[s("calendar.previousRange"),s("calendar.nextRange")]}[p],_e=Di(0,6).map(ie=>d.weekday(hl(u,q)+ie)),Oe=Z.find(ie=>ie.row.id===x),Xe=ie=>ie.startMinute===null?"":ie.endMinute===null?D5(ie.startMinute):`${D5(ie.startMinute)}\u2013${D5(ie.endMinute)}`,yt=ie=>{let fe=i?.(P2(ie));fe&&f(fe)},Y=ie=>{if(!H||!r)return;let fe=ie-H.start;fe&&r(H.row.id,P2(H.start+fe),O&&Ti(H.row[O.id])!==null?P2(H.end+fe):void 0),S(null)},ae=ie=>r&&n?{onDragOver:fe=>{H&&fe.preventDefault()},onDrop:fe=>{fe.preventDefault(),Y(ie)}}:{},xe=(ie,fe,Me=!1)=>{let Re=ee(ie.row),Ce=le(ie.row[P?.id])||s("untitled"),ge=Xe(ie);return(0,ce.jsxs)("button",{type:"button",className:["sb-dbc-chip",ie.row.id===x&&"is-selected",K(ie)?"":"is-faded",ie.done&&"is-done",ie.start<fe&&"continues-before",ie.end>fe&&"continues-after"].filter(Boolean).join(" "),style:j(Re),"aria-pressed":ie.row.id===x,title:[ge,Ce].filter(Boolean).join(" "),draggable:!!(n&&r),onDragStart:()=>S(ie),onDragEnd:()=>S(null),onClick:()=>f(ie.row.id===x?null:ie.row.id),children:[A&&(0,ce.jsx)("span",{className:"sb-dbc-check","aria-hidden":"true",children:ie.done?"\u2713":""}),ge&&!Me&&(0,ce.jsx)("span",{className:"sb-dbc-time",children:ge}),(0,ce.jsx)("span",{className:"sb-dbc-chip-title",children:Ce})]},ie.row.id)},Ae=ie=>{let fe=ie.filter(Me=>V.get(Me).length);return(0,ce.jsxs)("ol",{className:"sb-dbc-agenda","aria-label":s("calendar.agenda"),children:[fe.map(Me=>(0,ce.jsxs)("li",{className:Me===u?"is-today":"",...ae(Me),children:[(0,ce.jsxs)("span",{className:"sb-dbc-agenda-day",children:[d.full(Me),Me===u&&(0,ce.jsx)("b",{children:s("calendar.today")})]}),(0,ce.jsx)("div",{className:"sb-dbc-agenda-items",children:V.get(Me).map(Re=>xe(Re,Me))})]},Me)),!fe.length&&(0,ce.jsx)("li",{className:"sb-dbc-agenda-empty",children:s("calendar.noRecordsInRange")})]})},Ue=ie=>n&&i?(0,ce.jsx)("button",{type:"button",className:"sb-icon-button sb-dbc-add","aria-label":s("calendar.addOnDay",{date:d.full(ie)}),onClick:()=>yt(ie),children:(0,ce.jsx)(Ot,{size:12})}):null,Se=()=>{let ie=El(I5(y)).getUTCMonth(),fe=Di(_,$);return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)("div",{className:"sb-dbc-month",role:"grid","aria-label":D,children:[(0,ce.jsx)("div",{className:"sb-dbc-weekdays",role:"row",children:_e.map(Me=>(0,ce.jsx)("span",{role:"columnheader",children:Me},Me))}),Di(0,fe.length/7-1).map(Me=>(0,ce.jsx)("div",{className:"sb-dbc-week-row",role:"row",children:fe.slice(Me*7,Me*7+7).map(Re=>{let Ce=V.get(Re),ge=T===Re,mt=ge?Ce:Ce.slice(0,M5);return(0,ce.jsxs)("div",{role:"gridcell","aria-label":d.full(Re),className:["sb-dbc-day",El(Re).getUTCMonth()!==ie&&"is-outside",Re===u&&"is-today"].filter(Boolean).join(" "),...ae(Re),children:[(0,ce.jsxs)("div",{className:"sb-dbc-day-head",children:[(0,ce.jsx)("span",{className:"sb-dbc-day-number",children:El(Re).getUTCDate()}),Ue(Re)]}),mt.map(Pe=>xe(Pe,Re)),Ce.length>M5&&(0,ce.jsx)("button",{type:"button",className:"sb-dbc-more","aria-expanded":ge,onClick:()=>w(ge?null:Re),children:ge?s("calendar.showLess"):s("calendar.moreRecords",{count:Ce.length-M5})})]},Re)})},Me))]}),Ae(Di(I5(y),N5(y,1)-1))]})},da=()=>{let ie=Di(_,$),fe=Z.some(Pe=>Pe.startMinute!==null&&B.has(Pe)),Me=8,Re=18;for(let Pe of B)Pe.startMinute!==null&&(Me=Math.min(Me,Math.floor(Pe.startMinute/60)),Re=Math.max(Re,Math.ceil((Pe.endMinute??Pe.startMinute+60)/60)));Re=Math.min(24,Re);let Ce=(Re-Me)*60,ge=new Date,mt=ge.getHours()*60+ge.getMinutes();return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)("div",{className:`sb-dbc-weekgrid ${fe?"is-timed":""}`,style:{"--dbc-hours":Re-Me},children:[fe&&(0,ce.jsxs)("div",{className:"sb-dbc-axis","aria-hidden":"true",children:[(0,ce.jsx)("span",{className:"sb-dbc-axis-head"}),(0,ce.jsx)("span",{className:"sb-dbc-axis-allday",children:s("calendar.allDay")}),(0,ce.jsx)("div",{className:"sb-dbc-axis-hours",children:Di(Me,Re-1).map(Pe=>(0,ce.jsxs)("span",{style:{top:`${(Pe-Me)*6e3/Ce}%`},children:[Pe,":00"]},Pe))})]}),ie.map(Pe=>{let oe=V.get(Pe),ne=fe?oe.filter(Ve=>Ve.startMinute===null||Ve.start!==Pe):oe,G=Sh(oe.filter(Ve=>Ve.start===Pe));return(0,ce.jsxs)("div",{className:`sb-dbc-weekday ${Pe===u?"is-today":""}`,...ae(Pe),children:[(0,ce.jsxs)("div",{className:"sb-dbc-weekday-head",children:[(0,ce.jsx)("span",{children:d.weekday(Pe)}),(0,ce.jsx)("strong",{children:d.day(Pe)}),Ue(Pe)]}),(0,ce.jsx)("div",{className:"sb-dbc-weekday-list",children:ne.map(Ve=>xe(Ve,Pe))}),fe&&(0,ce.jsxs)("div",{className:"sb-dbc-hours",children:[G.placed.map(({entry:Ve,lane:Dt,end:Sa})=>(0,ce.jsx)("div",{className:"sb-dbc-slot",style:{top:`${(Ve.startMinute-Me*60)*100/Ce}%`,height:`${(Sa-Ve.startMinute)*100/Ce}%`,left:`${Dt*100/G.laneCount}%`,width:`${100/G.laneCount}%`},children:xe(Ve,Pe)},Ve.row.id)),Pe===u&&mt>=Me*60&&mt<=Re*60&&(0,ce.jsx)("span",{className:"sb-dbc-now",style:{top:`${(mt-Me*60)*100/Ce}%`},children:(0,ce.jsx)("b",{children:s("calendar.now")})})]})]},Pe)})]}),Ae(ie)]})},Oa=()=>{let ie=Z.filter(K),fe=Math.min(u,y),Me=Ch(ie,{endDay:$,today:fe,weeks:a.weeks,weekStartsOn:q,countDone:!!A}),Re=m&&z?String(F.indexOf(m)%5):null,Ce=E??Math.min($,Math.max(_,fe)),ge=ne=>{let G={ArrowUp:-1,ArrowDown:1,ArrowLeft:-7,ArrowRight:7,Home:_-Ce,End:Me.to-Ce}[ne.key];if(G===void 0)return;ne.preventDefault();let Ve=Math.min(Me.to,Math.max(Me.from,Ce+G));L(Ve),k.current?.querySelector(`[data-day="${Ve}"]`)?.focus()},mt=Me.elapsedDays?Math.round(Me.activeDays*100/Me.elapsedDays):0,Pe=V.get(Ce).filter(K),oe=ne=>A?s("calendar.doneCount",{count:ne}):s("recordCount",{count:ne});return(0,ce.jsxs)("div",{className:"sb-dbc-heat",style:j(Re??"a"),children:[(0,ce.jsxs)("dl",{className:"sb-dbc-stats",children:[(0,ce.jsxs)("div",{children:[(0,ce.jsx)("dt",{children:s("calendar.currentStreak")}),(0,ce.jsx)("dd",{children:s("calendar.days",{count:Me.current})})]}),(0,ce.jsxs)("div",{children:[(0,ce.jsx)("dt",{children:s("calendar.longestStreak")}),(0,ce.jsx)("dd",{children:s("calendar.days",{count:Me.longest})})]}),(0,ce.jsxs)("div",{children:[(0,ce.jsx)("dt",{children:s("calendar.activeDays")}),(0,ce.jsxs)("dd",{children:[Me.activeDays," / ",Me.elapsedDays,(0,ce.jsxs)("small",{children:[mt,"%"]})]})]})]}),(0,ce.jsx)("div",{className:"sb-dbc-heat-scroll",children:(0,ce.jsxs)("div",{ref:k,className:"sb-dbc-heat-grid",role:"group","aria-label":s("calendar.heatmapLabel",{range:D}),style:{"--dbc-weeks":a.weeks},onKeyDown:ge,children:[(0,ce.jsx)("span",{className:"sb-dbc-heat-corner"}),Di(0,a.weeks-1).map(ne=>{let G=Me.from+ne*7,Ve=Di(G,G+6).find(Dt=>El(Dt).getUTCDate()===1);return(0,ce.jsx)("span",{className:"sb-dbc-heat-month",style:{gridColumn:ne+2},"aria-hidden":"true",children:Ve!==void 0||ne===0?d.monthShort(Ve??G):""},ne)}),_e.map((ne,G)=>(0,ce.jsx)("span",{className:"sb-dbc-heat-weekday",style:{gridRow:G+2},"aria-hidden":"true",children:G%2===0?ne:""},ne)),Me.cells.map((ne,G)=>(0,ce.jsx)("button",{type:"button","data-day":ne.day,tabIndex:ne.day===Ce?0:-1,className:["sb-dbc-heat-cell",`level-${ne.level}`,ne.day>u&&"is-future",ne.day===u&&"is-today",ne.day===E&&"is-picked"].filter(Boolean).join(" "),style:{gridColumn:Math.floor(G/7)+2,gridRow:G%7+2},"aria-label":`${d.full(ne.day)}: ${oe(ne.count)}`,"aria-pressed":ne.day===E,title:`${d.full(ne.day)} \xB7 ${oe(ne.count)}`,onClick:()=>L(ne.day===E?null:ne.day)},ne.day))]})}),(0,ce.jsxs)("div",{className:"sb-dbc-heat-legend","aria-hidden":"true",children:[(0,ce.jsx)("span",{children:s("calendar.less")}),[0,1,2,3,4].map(ne=>(0,ce.jsx)("i",{className:`sb-dbc-heat-cell level-${ne}`},ne)),(0,ce.jsx)("span",{children:s("calendar.more")})]}),(0,ce.jsxs)("div",{className:"sb-dbc-heat-day",children:[(0,ce.jsx)("strong",{children:d.full(Ce)}),Ue(Ce),(0,ce.jsx)("div",{className:"sb-dbc-agenda-items",children:Pe.length?Pe.map(ne=>xe(ne,Ce)):(0,ce.jsx)("span",{className:"sb-dbc-muted",children:s("calendar.noRecordsOnDay")})})]})]})};return(0,ce.jsxs)("div",{className:`sb-dbc sb-dbc-${p}`,children:[(0,ce.jsxs)("div",{className:"sb-dbc-bar",children:[(0,ce.jsx)("div",{className:"sb-dbc-modes",role:"group","aria-label":s("calendar.mode"),children:Cx.map(ie=>(0,ce.jsx)("button",{type:"button","aria-pressed":p===ie,className:p===ie?"is-active":"",onClick:()=>g(ie),children:s(`calendar.mode.${ie}`)},ie))}),(0,ce.jsxs)("div",{className:"sb-dbc-nav",children:[(0,ce.jsx)("button",{type:"button",className:"sb-icon-button","aria-label":ye[0],onClick:()=>he(-1),children:(0,ce.jsx)(_r,{size:14})}),(0,ce.jsx)("strong",{"aria-live":"polite",children:D}),(0,ce.jsx)("button",{type:"button",className:"sb-icon-button","aria-label":ye[1],onClick:()=>he(1),children:(0,ce.jsx)(pn,{size:14})}),(0,ce.jsx)("button",{type:"button",className:"sb-dbc-today",onClick:()=>{b(u),L(null)},children:s("calendar.today")})]})]}),z&&F.length>0&&(0,ce.jsxs)("div",{className:"sb-dbc-legend",role:"group","aria-label":s("calendar.colorLegend",{name:z.name}),children:[(0,ce.jsx)("button",{type:"button","aria-pressed":!m,className:m?"":"is-active",onClick:()=>v(null),children:s("allRecords")}),F.map((ie,fe)=>{let Me=[...B].filter(Ce=>le(Ce.row[z.id])===ie),Re=Me.reduce((Ce,ge)=>Ce+(ge.startMinute!==null&&ge.endMinute!==null?ge.endMinute-ge.startMinute:0),0);return(0,ce.jsxs)("button",{type:"button","aria-pressed":m===ie,className:m===ie?"is-active":"",style:j(String(fe%5)),onClick:()=>v(m===ie?null:ie),children:[(0,ce.jsx)("i",{"aria-hidden":"true"}),ie,(0,ce.jsx)("b",{children:p==="week"&&Re?s("calendar.hours",{hours:Math.round(Re/6)/10}):Me.length})]},ie)})]}),p==="month"?Se():p==="week"?da():Oa(),Oe&&(0,ce.jsxs)("div",{className:"sb-dbc-detail",role:"region","aria-label":le(Oe.row[P?.id])||s("untitled"),style:j(ee(Oe.row)),children:[(0,ce.jsxs)("div",{className:"sb-dbc-detail-head",children:[(0,ce.jsx)("strong",{children:le(Oe.row[P?.id])||s("untitled")}),(0,ce.jsxs)("span",{className:"sb-dbc-muted",children:[d.full(Oe.start),Oe.end>Oe.start&&` \u2013 ${d.full(Oe.end)}`,Xe(Oe)&&` \xB7 ${Xe(Oe)}`]}),n&&l&&(0,ce.jsx)("button",{type:"button",className:"sb-icon-button sb-danger","aria-label":s("deleteRecord"),onClick:()=>{l(Oe.row.id),f(null)},children:(0,ce.jsx)(pa,{size:13})}),(0,ce.jsx)("button",{type:"button",className:"sb-icon-button","aria-label":s("calendar.closeDetail"),onClick:()=>f(null),children:(0,ce.jsx)(on,{size:13})})]}),(0,ce.jsx)("dl",{className:"sb-dbc-fields",children:e.filter(ie=>n||ie.id!==P?.id).map(ie=>(0,ce.jsxs)("div",{children:[(0,ce.jsx)("dt",{children:ie.name}),(0,ce.jsx)("dd",{children:o(Oe.row,ie)})]},ie.id))})]}),de>0&&(0,ce.jsx)("p",{className:"sb-dbc-muted sb-dbc-undated",children:s("calendar.undated",{count:de,name:M.name})})]})}var X=U(pe(),1),Ax=[{value:"text",label:"type.text"},{value:"number",label:"type.number"},{value:"select",label:"type.select"},{value:"checkbox",label:"type.checkbox"},{value:"url",label:"type.url"},{value:"date",label:"type.date"}],AE=["table","board","calendar"],ME={text:"Aa",number:"#",select:"\u25C9",checkbox:"\u2611",url:"\u2197",date:"\u25EB"};function L5({row:e,column:t,editable:a,update:n}){let o=ue(F1),r=e[t.id];return t.type==="checkbox"?(0,X.jsx)("input",{type:"checkbox","aria-label":t.name,checked:!!r,disabled:!a,onChange:i=>n(i.target.checked)}):a?t.type==="select"?(0,X.jsxs)("select",{"aria-label":t.name,value:le(r),className:`sb-cell-select sb-tag-${(t.options?.indexOf(String(r))??0)%5}`,onChange:i=>n(i.target.value),children:[(0,X.jsx)("option",{value:"",children:o("notSet")}),t.options?.map(i=>(0,X.jsx)("option",{value:i,children:i},i)),r&&!t.options?.includes(String(r))&&(0,X.jsx)("option",{value:String(r),children:String(r)})]}):(0,X.jsxs)("div",{className:"sb-cell-input-wrap",children:[(0,X.jsx)("input",{"aria-label":t.name,type:t.type==="number"||t.type==="url"?t.type:t.type==="date"?"date":"text",className:"sb-cell-input",value:le(r),placeholder:t.type==="url"?"https://\u2026":"\u2014",onChange:i=>n(t.type==="number"&&i.target.value!==""?Number(i.target.value):i.target.value)}),t.type==="url"&&Fn(r)&&(0,X.jsx)("a",{className:"sb-icon-button",href:Fn(r),target:"_blank",rel:"noopener noreferrer","aria-label":o("openLink",{name:t.name}),children:(0,X.jsx)(Vi,{size:12})})]}):t.type==="select"&&r?(0,X.jsx)("span",{className:`sb-tag sb-tag-${(t.options?.indexOf(String(r))??0)%5}`,children:le(r)}):t.type==="url"&&Fn(r)?(0,X.jsxs)("a",{className:"sb-cell-link",href:Fn(r),target:"_blank",rel:"noopener noreferrer",children:[le(r),(0,X.jsx)(Vi,{size:12})]}):(0,X.jsx)("span",{className:"sb-cell-value",children:le(r)||(0,X.jsx)("span",{className:"sb-placeholder",children:"\u2014"})})}function Mx({data:e,onChange:t,readOnly:a}){let n=ue(F1),o=(0,an.useMemo)(()=>Array.isArray(e.columns)?e.columns.filter(Y=>Y&&typeof Y.id=="string").map(Y=>({id:Y.id,name:le(Y.name,n("property")),type:Ax.some(ae=>ae.value===Y.type)?Y.type:"text",options:Array.isArray(Y.options)?Y.options.map(ae=>le(ae)):[]})):[],[e.columns,n]),r=Array.isArray(e.rows)?e.rows.filter(Y=>Y&&typeof Y.id=="string"):[],[i,l]=(0,an.useState)(AE.includes(e.view)?e.view:"table"),[s,c]=(0,an.useState)({}),[d,u]=(0,an.useState)(""),[p,g]=(0,an.useState)(null),[y,b]=(0,an.useState)(!1),[x,f]=(0,an.useState)({column:"",value:""}),[m,v]=(0,an.useState)(!1),[T,w]=(0,an.useState)(""),[E,L]=(0,an.useState)([]),[H,S]=(0,an.useState)(""),[k,M]=(0,an.useState)(le(e.groupBy)),[O,C]=(0,an.useState)(0),[N,z]=(0,an.useState)(null),A=!!(t&&!a),q=o.filter(Y=>Y.type==="select"),P=o.find(Y=>Y.id===k&&Y.type==="select")??q[0],Z=E6(r,o,d,x,p),F=e.calendar&&typeof e.calendar=="object"?e.calendar:{},ee=Tx(o,{...F,...s}),j=o.filter(Y=>Y.type==="date"),K=30,_=Math.max(1,Math.ceil(Z.length/K)),$=Math.min(O,_-1),D=x.column?Array.from(new Set(r.map(Y=>String(Y[x.column]??"")))):[],V=P?Array.from(new Set([...P.options??[],...Z.map(Y=>le(Y[P.id])),""])):[""],B=(Y,ae)=>t?.({...e,rows:r.map(xe=>xe.id===Y?{...xe,...ae}:xe)}),de=(Y,ae,xe)=>B(Y,{[ae]:xe}),he=(Y,ae={})=>{let xe={id:_o(),...Object.fromEntries(o.map(Ae=>[Ae.id,Ae.type==="checkbox"?!1:""])),...ae};return P&&Y!==void 0&&(xe[P.id]=Y),t?.({...e,rows:[...r,xe]}),C(Math.floor(r.length/K)),u(""),f({column:"",value:""}),xe.id},ye=Y=>t?.({...e,rows:r.filter(ae=>ae.id!==Y)}),_e=Y=>{g(ae=>ae?.column===Y?ae.direction==="asc"?{column:Y,direction:"desc"}:null:{column:Y,direction:"asc"}),C(0)},Oe=()=>{w(le(e.title)),L(o.map(Y=>({...Y,options:[...Y.options??[]]}))),S(""),v(!m)},Xe=()=>{if(!E.length){S(n("error.keepOneProperty"));return}if(E.some(Ae=>!Ae.name.trim())){S(n("error.nameEveryProperty"));return}let Y=E.map(Ae=>({...Ae,name:Ae.name.trim(),options:[...new Set((Ae.options??[]).map(Ue=>Ue.trim()).filter(Boolean))]})),ae={...e,title:T,columns:Y,rows:r.map(Ae=>({id:Ae.id,...Object.fromEntries(Y.map(Ue=>{let Se=Ae[Ue.id],da=Ue.type==="checkbox"?Se===!0||Se==="true":Ue.type==="number"?Se===""||Se===void 0||Se===null?"":Number.isFinite(Number(Se))?Number(Se):"":Ue.type==="date"?wh(le(Se)):le(Se);return[Ue.id,da]}))}))},xe=Ex(e.calendar?F:void 0,Y);xe&&(ae.calendar=xe),ae.view==="calendar"&&!Y.some(Ae=>Ae.type==="date")&&delete ae.view,t?.(ae),c({}),Y.some(Ae=>Ae.id===x.column)||f({column:"",value:""}),v(!1)},yt=(Y,ae)=>L(xe=>xe.map(Ae=>Ae.id===Y?{...Ae,...ae}:Ae));return(0,X.jsxs)("section",{className:"sb-block sb-database","aria-label":Ka(e.title,n("database")),children:[(0,X.jsxs)(ya,{title:le(e.title),defaultTitle:"\u6570\u636E\u5E93",icon:(0,X.jsx)(ap,{size:17}),editable:A,editing:m,onEdit:Oe,children:[(0,X.jsx)("button",{type:"button",className:"sb-icon-button","aria-label":n("exportDatabase"),title:n("exportCsv"),onClick:()=>Fl(T0(o,Z),`${le(e.title,n("database"))}.csv`,"text/csv;charset=utf-8"),children:(0,X.jsx)(Ur,{size:15})}),(0,X.jsxs)("details",{className:"sb-tools-menu",children:[(0,X.jsxs)("summary",{"aria-label":n("viewAndFilterMenu"),children:[(0,X.jsx)(a0,{size:14,"aria-hidden":"true"}),n("viewAndFilter")]}),(0,X.jsxs)("div",{className:"sb-database-toolbar",children:[(0,X.jsxs)("div",{className:"sb-view-tabs",children:[(0,X.jsxs)("button",{type:"button",className:i==="table"?"is-active":"",onClick:()=>l("table"),children:[(0,X.jsx)(ap,{size:14}),n("table")]}),(0,X.jsxs)("button",{type:"button",className:i==="board"?"is-active":"",onClick:()=>l("board"),children:[(0,X.jsx)(xf,{size:14}),n("board")]}),(0,X.jsxs)("button",{type:"button",className:i==="calendar"?"is-active":"",onClick:()=>l("calendar"),children:[(0,X.jsx)(o0,{size:14}),n("calendar")]})]}),(0,X.jsxs)("div",{className:"sb-database-tools",children:[(0,X.jsx)(E0,{label:n("searchDatabase"),value:d,onChange:Y=>{u(Y),C(0)}}),(0,X.jsx)("button",{type:"button",className:`sb-icon-button ${y||x.column?"is-active":""}`,"aria-label":n("filterDatabase"),onClick:()=>b(!y),children:(0,X.jsx)(a0,{size:15})}),A&&(0,X.jsxs)("button",{type:"button",className:"sb-button sb-primary sb-small",onClick:()=>he(),children:[(0,X.jsx)(Ot,{size:14}),n("newRecord")]})]}),i==="board"&&q.length>0&&(0,X.jsxs)("div",{className:"sb-board-grouping",children:[(0,X.jsx)("span",{children:n("groupBy")}),(0,X.jsx)("select",{"aria-label":n("boardGroupProperty"),value:P?.id??"",onChange:Y=>M(Y.target.value),children:q.map(Y=>(0,X.jsx)("option",{value:Y.id,children:Y.name},Y.id))})]}),i==="calendar"&&ee.dateColumn&&(0,X.jsx)("div",{className:"sb-board-grouping sb-calendar-settings",children:[["dateColumn","calendar.dateProperty",j,!1],["endDateColumn","calendar.endDateProperty",j.filter(Y=>Y.id!==ee.dateColumn?.id),!0],["colorColumn","calendar.colorProperty",q,!0],["doneColumn","calendar.doneProperty",o.filter(Y=>Y.type==="checkbox"),!0]].map(([Y,ae,xe,Ae])=>xe.length>(Ae?0:1)?(0,X.jsxs)("label",{children:[(0,X.jsx)("span",{children:n(ae)}),(0,X.jsxs)("select",{value:ee[Y]?.id??"",onChange:Ue=>c(Se=>({...Se,[Y]:Ue.target.value})),children:[Ae&&(0,X.jsx)("option",{value:"",children:n("calendar.none")}),xe.map(Ue=>(0,X.jsx)("option",{value:Ue.id,children:Ue.name},Ue.id))]})]},Y):null)})]})]})]}),m&&(0,X.jsx)(Wa,{children:(0,X.jsxs)("div",{className:"sb-editor-panel",children:[(0,X.jsx)(He,{label:n("databaseName"),children:(0,X.jsx)("input",{value:T,onChange:Y=>w(Y.target.value)})}),(0,X.jsx)("div",{className:"sb-property-list",children:E.map(Y=>(0,X.jsxs)("div",{className:"sb-property-row",children:[(0,X.jsx)("input",{"aria-label":n("propertyName"),value:Y.name,onChange:ae=>yt(Y.id,{name:ae.target.value})}),(0,X.jsx)("select",{"aria-label":n("propertyType",{name:Y.name}),value:Y.type,onChange:ae=>yt(Y.id,{type:ae.target.value}),children:Ax.map(ae=>(0,X.jsx)("option",{value:ae.value,children:n(ae.label)},ae.value))}),Y.type==="select"&&(0,X.jsx)("input",{className:"sb-options-input","aria-label":n("propertyOptions",{name:Y.name}),placeholder:n("optionsPlaceholder"),value:Y.options?.join(","),onChange:ae=>yt(Y.id,{options:ae.target.value.split(/[,,]/)})}),(0,X.jsx)("button",{type:"button",className:"sb-icon-button sb-danger","aria-label":n("deleteProperty",{name:Y.name}),onClick:()=>L(ae=>ae.filter(xe=>xe.id!==Y.id)),children:(0,X.jsx)(pa,{size:14})})]},Y.id))}),H&&(0,X.jsx)("p",{role:"alert",className:"sb-error",children:H}),(0,X.jsxs)("div",{className:"sb-panel-footer",children:[(0,X.jsxs)("button",{type:"button",className:"sb-button",onClick:()=>L(Y=>[...Y,{id:_o(),name:"\u65B0\u5C5E\u6027",type:"text"}]),children:[(0,X.jsx)(Ot,{size:14}),n("addProperty")]}),(0,X.jsxs)("button",{type:"button",className:"sb-button sb-primary",onClick:Xe,children:[(0,X.jsx)(Fa,{size:14}),n("saveProperties")]})]})]})}),y&&(0,X.jsxs)("div",{className:"sb-filter-row",children:[(0,X.jsx)(a0,{size:13}),(0,X.jsxs)("select",{"aria-label":n("filterProperty"),value:x.column,onChange:Y=>{let ae=Y.target.value;f({column:ae,value:ae?String(r[0]?.[ae]??""):""}),C(0)},children:[(0,X.jsx)("option",{value:"",children:n("allRecords")}),o.map(Y=>(0,X.jsx)("option",{value:Y.id,children:Y.name},Y.id))]}),x.column&&(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)("span",{children:n("equals")}),(0,X.jsx)("select",{"aria-label":n("filterValue"),value:x.value,onChange:Y=>{f(ae=>({...ae,value:Y.target.value})),C(0)},children:D.map(Y=>(0,X.jsx)("option",{value:Y,children:Y||n("notSet")},Y))}),(0,X.jsx)("button",{type:"button",className:"sb-text-button",onClick:()=>f({column:"",value:""}),children:n("clear")})]})]}),i==="calendar"?(0,X.jsx)(zx,{columns:o,rows:Z,settings:ee,editable:A,renderCell:(Y,ae)=>(0,X.jsx)(L5,{row:Y,column:ae,editable:A,update:xe=>de(Y.id,ae.id,xe)}),onMove:(Y,ae,xe)=>B(Y,{[ee.dateColumn.id]:ae,...xe&&ee.endDateColumn?{[ee.endDateColumn.id]:xe}:{}}),onAdd:ee.dateColumn?Y=>he(void 0,{[ee.dateColumn.id]:Y}):void 0,onRemove:ye},JSON.stringify(F)):i==="table"?(0,X.jsxs)(X.Fragment,{children:[(0,X.jsx)("div",{className:"sb-table-scroll",children:(0,X.jsxs)("table",{className:"sb-database-table",children:[(0,X.jsx)("thead",{children:(0,X.jsxs)("tr",{children:[o.map(Y=>(0,X.jsx)("th",{children:(0,X.jsxs)("button",{type:"button",onClick:()=>_e(Y.id),children:[(0,X.jsx)("span",{className:"sb-type-symbol",children:ME[Y.type]}),Y.name,p?.column===Y.id&&(p.direction==="asc"?(0,X.jsx)(Hr,{size:12}):(0,X.jsx)(Dl,{size:12}))]})},Y.id)),A&&(0,X.jsx)("th",{className:"sb-row-action","aria-label":n("rowActions")})]})}),(0,X.jsx)("tbody",{children:Z.slice($*K,($+1)*K).map(Y=>(0,X.jsxs)("tr",{children:[o.map(ae=>(0,X.jsx)("td",{children:(0,X.jsx)(L5,{row:Y,column:ae,editable:A,update:xe=>de(Y.id,ae.id,xe)})},ae.id)),A&&(0,X.jsx)("td",{className:"sb-row-action",children:(0,X.jsx)("button",{type:"button",className:"sb-icon-button sb-danger","aria-label":n("deleteNamedRecord",{name:le(Y[o[0]?.id])}),onClick:()=>ye(Y.id),children:(0,X.jsx)(pa,{size:13})})})]},Y.id))})]})}),Z.length===0&&(0,X.jsx)(Ta,{icon:(0,X.jsx)(If,{size:25,strokeWidth:1.4}),title:r.length?n("empty.noMatches"):n("empty.start")})]}):(0,X.jsx)(X.Fragment,{children:(0,X.jsx)("div",{className:"sb-board",children:V.map((Y,ae)=>{let xe=P?Z.filter(Ae=>le(Ae[P.id])===Y):Z;return(0,X.jsxs)("div",{className:`sb-board-column ${N?"is-droppable":""}`,onDragOver:Ae=>{A&&P&&N&&Ae.preventDefault()},onDrop:Ae=>{!A||!P||!N||(Ae.preventDefault(),de(N,P.id,Y),z(null))},children:[(0,X.jsxs)("div",{className:"sb-board-column-header",children:[(0,X.jsx)("span",{className:`sb-tag sb-tag-${ae%5}`,children:Y||n(P?"notSet":"allRecords")}),(0,X.jsx)("span",{children:xe.length}),A&&(0,X.jsx)("button",{type:"button",className:"sb-icon-button","aria-label":n("newRecordIn",{group:Y||n("notSet")}),onClick:()=>he(Y),children:(0,X.jsx)(Ot,{size:14})})]}),xe.map(Ae=>(0,X.jsxs)("div",{className:`sb-board-card ${N===Ae.id?"is-dragging":""}`,draggable:A&&!!P,onDragStart:()=>z(Ae.id),onDragEnd:()=>z(null),children:[o.filter(Ue=>Ue.id!==P?.id).map((Ue,Se)=>(0,X.jsxs)("div",{className:Se===0?"sb-board-card-title":"sb-board-card-field",children:[Se>0&&(0,X.jsx)("span",{children:Ue.name}),(0,X.jsx)(L5,{row:Ae,column:Ue,editable:A,update:da=>de(Ae.id,Ue.id,da)})]},Ue.id)),A&&(0,X.jsxs)("div",{className:"sb-board-card-footer",children:[P&&(0,X.jsxs)("select",{"aria-label":n("moveToGroup"),value:le(Ae[P.id]),onChange:Ue=>de(Ae.id,P.id,Ue.target.value),children:[(0,X.jsx)("option",{value:"",children:n("notSet")}),V.filter(Boolean).map(Ue=>(0,X.jsx)("option",{children:Ue},Ue))]}),(0,X.jsx)("button",{type:"button",className:"sb-icon-button sb-danger","aria-label":n("deleteRecord"),onClick:()=>ye(Ae.id),children:(0,X.jsx)(pa,{size:13})})]})]},Ae.id)),A&&(0,X.jsxs)("button",{type:"button",className:"sb-add-row",onClick:()=>he(Y),children:[(0,X.jsx)(Ot,{size:13}),n("addRecord")]})]},Y)})})}),(0,X.jsxs)("div",{className:"sb-database-footer",children:[(0,X.jsxs)("span",{children:[Z.length===r.length?n("recordCount",{count:r.length}):n("filteredRecordCount",{shown:Z.length,count:r.length}),p&&(0,X.jsx)("button",{type:"button",className:"sb-text-button",onClick:()=>g(null),children:n("clearSort")})]}),i==="table"&&_>1&&(0,X.jsxs)("div",{className:"sb-pagination",children:[(0,X.jsx)("button",{type:"button",disabled:$===0,onClick:()=>C($-1),children:n("previousPage")}),(0,X.jsxs)("span",{children:[$+1," / ",_]}),(0,X.jsx)("button",{type:"button",disabled:$+1===_,onClick:()=>C($+1),children:n("nextPage")})]})]})]})}var wn=U(Ne(),1),Nx=U(Gn(),1);var zu=rt("gallery",{"zh-CN":{gallery:"\u56FE\u7247\u753B\u5ECA","error.unsupportedType":"\u652F\u6301 PNG\u3001JPEG\u3001GIF\u3001WebP \u548C AVIF \u56FE\u7247\u3002","error.tooLarge":"\u300C{name}\u300D\u4E3A {size}\uFF0C\u5355\u4E2A\u8D44\u6E90\u4E0A\u9650 {limit}\u3002","error.cannotRead":"\u65E0\u6CD5\u8BFB\u53D6\u300C{name}\u300D\u3002","error.readFailed":"\u56FE\u7247\u8BFB\u53D6\u5931\u8D25\u3002","error.importFailed":"\u56FE\u7247\u5BFC\u5165\u5931\u8D25\u3002","error.invalidSource":"\u6BCF\u5F20\u56FE\u7247\u9700\u8981\u6709\u6548\u7684\u7F51\u5740\u6216\u672C\u5730\u56FE\u7247\u3002",imagePreview:"\u56FE\u7247\u9884\u89C8",closePreview:"\u5173\u95ED\u56FE\u7247\u9884\u89C8",previousImage:"\u4E0A\u4E00\u5F20\u56FE\u7247",nextImage:"\u4E0B\u4E00\u5F20\u56FE\u7247",title:"\u6807\u9898",arrangement:"\u6392\u5217",oneColumn:"\u5355\u5217",twoColumns:"\u4E24\u5217",threeColumns:"\u4E09\u5217",imageAddress:"\u56FE\u7247 {index} \u5730\u5740",embeddedImage:"\u5DF2\u5D4C\u5165\u672C\u5730\u56FE\u7247",altText:"\u56FE\u7247\u63CF\u8FF0",caption:"\u56FE\u6CE8",moveUp:"\u4E0A\u79FB\u56FE\u7247 {index}",moveDown:"\u4E0B\u79FB\u56FE\u7247 {index}",deleteImage:"\u5220\u9664\u56FE\u7247 {index}",chooseLocalImages:"\u9009\u62E9\u672C\u5730\u56FE\u7247",reading:"\u8BFB\u53D6\u4E2D\u2026",uploadImages:"\u4E0A\u4F20\u56FE\u7247",addLink:"\u6DFB\u52A0\u94FE\u63A5",saveGallery:"\u4FDD\u5B58\u753B\u5ECA",viewImage:"\u67E5\u770B\u56FE\u7247\uFF1A{name}","empty.title":"\u7ED9\u60F3\u6CD5\u66F4\u591A\u753B\u9762",addImages:"\u6DFB\u52A0\u56FE\u7247"},en:{gallery:"Image gallery","error.unsupportedType":"Supported images: PNG, JPEG, GIF, WebP, and AVIF.","error.tooLarge":"\u201C{name}\u201D is {size}. Each resource can be up to {limit}.","error.cannotRead":"Couldn't read \u201C{name}\u201D.","error.readFailed":"Couldn't read the image.","error.importFailed":"Couldn't import the images.","error.invalidSource":"Each image needs a valid URL or a local image.",imagePreview:"Image preview",closePreview:"Close image preview",previousImage:"Previous image",nextImage:"Next image",title:"Title",arrangement:"Layout",oneColumn:"One column",twoColumns:"Two columns",threeColumns:"Three columns",imageAddress:"Image {index} URL",embeddedImage:"Embedded local image",altText:"Image description",caption:"Caption",moveUp:"Move image {index} up",moveDown:"Move image {index} down",deleteImage:"Delete image {index}",chooseLocalImages:"Choose local images",reading:"Reading\u2026",uploadImages:"Upload images",addLink:"Add link",saveGallery:"Save gallery",viewImage:"View image: {name}","empty.title":"Give your ideas more pictures",addImages:"Add images"}});var Te=U(pe(),1),Ix=Lt.resourceBytes,Au=vt(zu),IE=new Set(["image/png","image/jpeg","image/gif","image/webp","image/avif"]);function NE(e){return IE.has(e.type)?e.size>Ix?Promise.reject(new Error(Au("error.tooLarge",{name:e.name,size:_l(e.size),limit:_l(Ix)}))):new Promise((t,a)=>{let n=new FileReader;n.onerror=()=>a(new Error(Au("error.cannotRead",{name:e.name}))),n.onload=()=>typeof n.result=="string"?t(n.result):a(new Error(Au("error.readFailed"))),n.readAsDataURL(e)}):Promise.reject(new Error(Au("error.unsupportedType")))}function DE({images:e,index:t,onIndex:a,close:n,portalHost:o}){let r=ue(zu),i=(0,wn.useRef)(null);(0,wn.useEffect)(()=>{let s=document.activeElement,c=o.style.overflow;return o.style.overflow="hidden",i.current?.focus(),()=>{o.style.overflow=c,s?.focus({preventScroll:!0})}},[o]);let l=e[t];return l?(0,Nx.createPortal)((0,Te.jsxs)("div",{className:"sb-lightbox",role:"dialog","aria-modal":"true","aria-label":l.alt||r("imagePreview"),onClick:s=>{s.target===s.currentTarget&&n()},onKeyDown:s=>{if(s.key==="Escape"&&(s.stopPropagation(),n()),s.key==="ArrowLeft"&&(s.preventDefault(),a((t-1+e.length)%e.length)),s.key==="ArrowRight"&&(s.preventDefault(),a((t+1)%e.length)),s.key==="Tab"){let c=Array.from(s.currentTarget.querySelectorAll("button")),d=c[0],u=c.at(-1);s.shiftKey&&document.activeElement===d&&(s.preventDefault(),u?.focus()),!s.shiftKey&&document.activeElement===u&&(s.preventDefault(),d?.focus())}},children:[(0,Te.jsx)("button",{ref:i,type:"button",className:"sb-lightbox-close","aria-label":r("closePreview"),onClick:n,children:(0,Te.jsx)(on,{size:24})}),e.length>1&&(0,Te.jsx)("button",{type:"button",className:"sb-lightbox-prev","aria-label":r("previousImage"),onClick:()=>a((t-1+e.length)%e.length),children:(0,Te.jsx)(_r,{size:28})}),(0,Te.jsxs)("figure",{children:[(0,Te.jsx)("img",{src:Wn(l.src),alt:l.alt,referrerPolicy:"no-referrer"}),(0,Te.jsxs)("figcaption",{children:[l.caption||l.alt,(0,Te.jsxs)("span",{children:[t+1," / ",e.length]})]})]}),e.length>1&&(0,Te.jsx)("button",{type:"button",className:"sb-lightbox-next","aria-label":r("nextImage"),onClick:()=>a((t+1)%e.length),children:(0,Te.jsx)(pn,{size:28})})]}),o):null}function Dx({data:e,onChange:t,readOnly:a}){let n=ue(zu),o=(0,wn.useRef)(null),r=Array.isArray(e.images)?e.images.filter(C=>C&&typeof C=="object").map((C,N)=>({id:le(C.id,String(N)),src:le(C.src),alt:le(C.alt),caption:le(C.caption)})):[],[i,l]=(0,wn.useState)(!1),[s,c]=(0,wn.useState)(""),[d,u]=(0,wn.useState)([]),[p,g]=(0,wn.useState)(2),[y,b]=(0,wn.useState)(""),[x,f]=(0,wn.useState)(!1),[m,v]=(0,wn.useState)(null),T=(0,wn.useRef)(null),w=!!(t&&!a),E=r.filter(C=>Wn(C.src)),L=e.columns===1||e.columns===3?e.columns:2,H=()=>{c(le(e.title)),u(r.map(C=>({...C}))),g(L),b(""),l(!i)},S=(C,N)=>u(z=>z.map((A,q)=>q===C?{...A,...N}:A)),k=(C,N)=>u(z=>{let A=[...z];return[A[C],A[C+N]]=[A[C+N],A[C]],A}),M=async C=>{if(C?.length){f(!0),b("");try{let N=await Promise.all(Array.from(C).map(async z=>({id:_o(),src:await NE(z),alt:z.name.replace(/\.[^.]+$/,""),caption:""})));bo([...d,...N],"Gallery structure"),u(z=>[...z,...N])}catch(N){b(N instanceof Error?N.message:n("error.importFailed"))}finally{f(!1),T.current&&(T.current.value="")}}},O=()=>{if(d.some(C=>!Wn(C.src.trim()))){b(n("error.invalidSource"));return}t?.({...e,title:s,columns:p,images:d.map(C=>({...C,src:C.src.trim()}))}),l(!1)};return(0,Te.jsxs)("section",{ref:o,className:"sb-block sb-gallery","aria-label":Ka(e.title,n("gallery")),children:[(0,Te.jsx)(ya,{title:le(e.title),defaultTitle:"\u56FE\u7247\u753B\u5ECA",description:le(e.description),icon:(0,Te.jsx)(n0,{size:17}),editable:w&&!x,editing:i,onEdit:H}),i&&(0,Te.jsx)(Wa,{children:(0,Te.jsxs)("div",{className:"sb-editor-panel",children:[(0,Te.jsxs)("div",{className:"sb-form-row",children:[(0,Te.jsx)(He,{label:n("title"),children:(0,Te.jsx)("input",{value:s,onChange:C=>c(C.target.value)})}),(0,Te.jsx)(He,{label:n("arrangement"),children:(0,Te.jsxs)("select",{value:p,onChange:C=>g(Number(C.target.value)),children:[(0,Te.jsx)("option",{value:1,children:n("oneColumn")}),(0,Te.jsx)("option",{value:2,children:n("twoColumns")}),(0,Te.jsx)("option",{value:3,children:n("threeColumns")})]})})]}),d.map((C,N)=>(0,Te.jsxs)("div",{className:"sb-gallery-editor",children:[(0,Te.jsx)("div",{className:"sb-gallery-editor-preview",children:Wn(C.src)?(0,Te.jsx)("img",{src:Wn(C.src),alt:"",referrerPolicy:"no-referrer"}):(0,Te.jsx)(n0,{size:20})}),(0,Te.jsxs)("div",{className:"sb-gallery-editor-fields",children:[(0,Te.jsx)(He,{label:n("imageAddress",{index:N+1}),children:(0,Te.jsx)("input",{value:C.src.startsWith("data:")?n("embeddedImage"):C.src,readOnly:C.src.startsWith("data:"),placeholder:"https://\u2026",onChange:z=>S(N,{src:z.target.value})})}),(0,Te.jsx)(He,{label:n("altText"),children:(0,Te.jsx)("input",{value:C.alt,onChange:z=>S(N,{alt:z.target.value})})}),(0,Te.jsx)(He,{label:n("caption"),children:(0,Te.jsx)("input",{value:C.caption,onChange:z=>S(N,{caption:z.target.value})})})]}),(0,Te.jsxs)("div",{className:"sb-gallery-editor-actions",children:[(0,Te.jsx)("button",{type:"button",className:"sb-icon-button","aria-label":n("moveUp",{index:N+1}),disabled:N===0||x,onClick:()=>k(N,-1),children:(0,Te.jsx)(Hr,{size:14})}),(0,Te.jsx)("button",{type:"button",className:"sb-icon-button","aria-label":n("moveDown",{index:N+1}),disabled:N===d.length-1||x,onClick:()=>k(N,1),children:(0,Te.jsx)(Dl,{size:14})}),(0,Te.jsx)("button",{type:"button",className:"sb-icon-button sb-danger","aria-label":n("deleteImage",{index:N+1}),disabled:x,onClick:()=>u(z=>z.filter((A,q)=>q!==N)),children:(0,Te.jsx)(pa,{size:14})})]})]},C.id)),(0,Te.jsx)("input",{className:"sb-hidden",ref:T,type:"file",accept:"image/png,image/jpeg,image/gif,image/webp,image/avif",multiple:!0,"aria-label":n("chooseLocalImages"),onChange:C=>{M(C.target.files)}}),y&&(0,Te.jsx)("p",{className:"sb-error",role:"alert",children:y}),(0,Te.jsxs)("div",{className:"sb-panel-footer",children:[(0,Te.jsxs)("div",{className:"sb-actions",children:[(0,Te.jsxs)("button",{type:"button",className:"sb-button",disabled:x,onClick:()=>T.current?.click(),children:[(0,Te.jsx)(s0,{size:14}),n(x?"reading":"uploadImages")]}),(0,Te.jsxs)("button",{type:"button",className:"sb-button",disabled:x,onClick:()=>u(C=>[...C,{id:_o(),src:"",alt:"",caption:""}]),children:[(0,Te.jsx)(Ot,{size:14}),n("addLink")]})]}),(0,Te.jsxs)("button",{type:"button",className:"sb-button sb-primary",disabled:x,onClick:O,children:[(0,Te.jsx)(Fa,{size:14}),n("saveGallery")]})]})]})}),E.length?(0,Te.jsx)("div",{className:`sb-gallery-grid sb-gallery-columns-${L}`,children:E.map((C,N)=>(0,Te.jsxs)("figure",{children:[(0,Te.jsxs)("button",{type:"button",onClick:()=>v(N),"aria-label":n("viewImage",{name:C.alt||C.caption||N+1}),children:[(0,Te.jsx)("img",{src:Wn(C.src),alt:C.alt,loading:"lazy",referrerPolicy:"no-referrer"}),(0,Te.jsx)("span",{className:"sb-gallery-expand",children:(0,Te.jsx)(Sf,{size:16})})]}),C.caption&&(0,Te.jsx)("figcaption",{children:C.caption})]},`${C.id}-${N}`))}):(0,Te.jsx)(Ta,{icon:(0,Te.jsx)(n0,{size:29,strokeWidth:1.4}),title:n("empty.title"),action:w&&!i?(0,Te.jsxs)("button",{type:"button",className:"sb-button",onClick:H,children:[(0,Te.jsx)(Ot,{size:14}),n("addImages")]}):void 0}),m!==null&&E[m]&&(0,Te.jsx)(DE,{images:E,index:m,onIndex:v,close:()=>v(null),portalHost:o.current?.closest("[data-showai-inline-root]")??document.body})]})}var Oi=U(Ne(),1);var Ox=rt("metrics",{"zh-CN":{metrics:"\u5173\u952E\u6307\u6807",title:"\u6807\u9898",name:"\u540D\u79F0",value:"\u6570\u503C",unit:"\u5355\u4F4D",detail:"\u8BF4\u660E",trend:"\u53D8\u5316\u7387 %\uFF08\u53EF\u7559\u7A7A\uFF09",deleteMetric:"\u5220\u9664\u6307\u6807{label}",newMetric:"\u65B0\u6307\u6807",addMetric:"\u6DFB\u52A0\u6307\u6807",emptyTitle:"\u628A\u5173\u952E\u6570\u5B57\u653E\u5728\u773C\u524D"},en:{metrics:"Key metrics",title:"Title",name:"Name",value:"Value",unit:"Unit",detail:"Description",trend:"Change % (optional)",deleteMetric:"Delete metric {label}",newMetric:"New metric",addMetric:"Add metric",emptyTitle:"Keep the key numbers in view"}});var qe=U(pe(),1),OE=/^(\D*?)(-?\d{1,3}(?:,\d{3})+|-?\d+)(\.\d+)?(\D*)$/;function LE({value:e}){let t=(0,Oi.useRef)(null);return(0,Oi.useLayoutEffect)(()=>{let a=t.current,n=OE.exec(e);if(!a||!n||typeof IntersectionObserver>"u"||matchMedia("(prefers-reduced-motion: reduce)").matches||a.closest(".component-capture-stage"))return;let[,o,r,i="",l]=n,s=Number(r.replaceAll(",","")+i),c=!i&&/^(19|20)\d\d$/.test(r);if(!s||c)return;let d=Math.max(0,i.length-1),u=x=>o+x.toLocaleString("en-US",{minimumFractionDigits:d,maximumFractionDigits:d,useGrouping:r.includes(",")})+l,p=0,g=()=>{y.disconnect(),a.setAttribute("aria-busy","true"),a.textContent=u(0);let x=performance.now(),f=m=>{let v=Math.min(1,(m-x)/1e3);a.textContent=v<1?u(s*(1-(1-v)**4)):e,v<1?p=requestAnimationFrame(f):a.removeAttribute("aria-busy")};p=requestAnimationFrame(f)},y=new IntersectionObserver(x=>{x.some(f=>f.isIntersecting)&&g()}),b=a.getBoundingClientRect();return document.visibilityState==="visible"&&b.bottom>0&&b.top<innerHeight?g():y.observe(a),()=>{y.disconnect(),cancelAnimationFrame(p),a.removeAttribute("aria-busy"),a.textContent=e}},[e]),(0,qe.jsx)("span",{ref:t,className:"sb-metric-figure",children:e})}function Lx({data:e,onChange:t,readOnly:a}){let n=ue(Ox),o=ue(Xa),[r,i]=(0,Oi.useState)(!1),[l,s]=(0,Oi.useState)(""),[c,d]=(0,Oi.useState)([]),u=Array.isArray(e.items)?e.items:[],p=!!(t&&!a),g=()=>{s(le(e.title)),d(u.map(b=>({...b}))),i(!r)},y=(b,x)=>d(f=>f.map((m,v)=>v===b?{...m,...x}:m));return(0,qe.jsxs)("section",{className:"sb-block sb-metrics","aria-label":Ka(e.title,n("metrics")),children:[(0,qe.jsx)(ya,{title:le(e.title),defaultTitle:n("metrics"),icon:(0,qe.jsx)(Wu,{size:17}),editable:p,editing:r,onEdit:g}),r&&(0,qe.jsx)(Wa,{children:(0,qe.jsxs)("div",{className:"sb-editor-panel",children:[(0,qe.jsx)(He,{label:n("title"),children:(0,qe.jsx)("input",{value:l,onChange:b=>s(b.target.value)})}),(0,qe.jsx)("div",{className:"sb-metric-editors",children:c.map((b,x)=>(0,qe.jsxs)("div",{className:"sb-metric-editor",children:[(0,qe.jsxs)("div",{className:"sb-form-row",children:[(0,qe.jsx)(He,{label:n("name"),children:(0,qe.jsx)("input",{value:b.label,onChange:f=>y(x,{label:f.target.value})})}),(0,qe.jsx)(He,{label:n("value"),children:(0,qe.jsx)("input",{value:b.value,onChange:f=>y(x,{value:f.target.value})})}),(0,qe.jsx)(He,{label:n("unit"),children:(0,qe.jsx)("input",{value:b.unit??"",onChange:f=>y(x,{unit:f.target.value})})})]}),(0,qe.jsxs)("div",{className:"sb-form-row",children:[(0,qe.jsx)(He,{label:n("detail"),children:(0,qe.jsx)("input",{value:b.detail??"",onChange:f=>y(x,{detail:f.target.value})})}),(0,qe.jsx)(He,{label:n("trend"),children:(0,qe.jsx)("input",{type:"number",value:b.trend??"",onChange:f=>y(x,{trend:f.target.value===""?void 0:Number(f.target.value)})})}),(0,qe.jsx)("button",{type:"button",className:"sb-icon-button sb-danger","aria-label":n("deleteMetric",{label:b.label}),onClick:()=>d(f=>f.filter((m,v)=>v!==x)),children:(0,qe.jsx)(pa,{size:14})})]})]},x))}),(0,qe.jsxs)("div",{className:"sb-panel-footer",children:[(0,qe.jsxs)("button",{type:"button",className:"sb-button",onClick:()=>d(b=>[...b,{label:n("newMetric"),value:""}]),children:[(0,qe.jsx)(Ot,{size:14}),n("addMetric")]}),(0,qe.jsxs)("button",{type:"button",className:"sb-button sb-primary",onClick:()=>{t?.({...e,title:l,items:c.map(({trend:b,...x})=>({...x,...typeof b=="number"&&Number.isFinite(b)?{trend:b}:{}}))}),i(!1)},children:[(0,qe.jsx)(Fa,{size:14}),o("save")]})]})]})}),u.length?(0,qe.jsx)("div",{className:"sb-metric-grid",children:u.map((b,x)=>(0,qe.jsxs)("div",{className:"sb-metric",children:[(0,qe.jsx)("span",{className:"sb-metric-label",children:le(b.label)}),(0,qe.jsxs)("div",{className:"sb-metric-value",children:[(0,qe.jsx)(LE,{value:le(b.value,"\u2014")}),(0,qe.jsx)("span",{children:le(b.unit)})]}),(0,qe.jsxs)("div",{className:"sb-metric-foot",children:[typeof b.trend=="number"&&(0,qe.jsxs)("span",{className:`sb-trend ${b.trend<0?"is-negative":""}`,children:[b.trend<0?(0,qe.jsx)(ff,{size:13}):(0,qe.jsx)(J1,{size:13}),Math.abs(ql(b.trend)),"%"]}),b.detail&&(0,qe.jsx)("span",{children:le(b.detail)})]})]},x))}):(0,qe.jsx)(Ta,{icon:(0,qe.jsx)(Wu,{size:28,strokeWidth:1.4}),title:n("emptyTitle"),action:p&&!r?(0,qe.jsxs)("button",{type:"button",className:"sb-button",onClick:g,children:[(0,qe.jsx)(Ot,{size:14}),n("addMetric")]}):void 0})]})}var nn=U(Ne(),1);ct(`.sb-block.sb-playground{--pg-c1: #4b6fae;--pg-c2: #c98a3a;--pg-c3: #3f8b78;--pg-c4: #8a62b0;--pg-c5: #c0584f;--pg-c6: #5d9a45;--pg-c7: #b56a8f;--pg-c8: #7a8590;--pg-good: #2f6b4f;--pg-bad: #b0473f;container-type:inline-size}:root[data-theme=dark] .sb-block.sb-playground,[data-theme=dark] .sb-block.sb-playground{--pg-c1: #86a6e0;--pg-c2: #e2ab65;--pg-c3: #6fc0aa;--pg-c4: #b597d6;--pg-c5: #e48b83;--pg-c6: #94c77d;--pg-c7: #d99abb;--pg-c8: #a7b0b9;--pg-good: #7cc3a0;--pg-bad: #e48b83}.sb-block.sb-playground .pg-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.sb-block.sb-playground .pg-hint{margin:4px 0 0;font-size:10px;line-height:1.5;color:var(--sb-muted)}.sb-block.sb-playground .pg-editor-note{margin:0;font-size:11px;color:var(--sb-muted)}.sb-block.sb-playground .pg-presets{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:-6px}.sb-block.sb-playground .pg-chip{border:1px solid var(--sb-line);border-radius:999px;padding:3px 11px;font-size:11px;font-weight:600;color:var(--sb-text);background:var(--sb-surface)}.sb-block.sb-playground .pg-chip[aria-pressed=true]{background:var(--sb-accent);border-color:var(--sb-accent);color:var(--sb-surface)}.sb-block.sb-playground .pg-stepper-row,.sb-block.sb-playground .pg-toggle-row{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px}.sb-block.sb-playground .pg-toggle-copy{min-width:0}.sb-block.sb-playground .pg-stepper{flex:none;display:inline-flex;align-items:center;border:1px solid var(--sb-line);border-radius:999px;background:var(--sb-surface);overflow:hidden}.sb-block.sb-playground .pg-stepper button{width:32px;height:30px;display:grid;place-items:center;color:var(--sb-text)}.sb-block.sb-playground .pg-stepper output{min-width:52px;text-align:center;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}.sb-block.sb-playground .pg-stepper small{margin-left:3px;font-size:10px;font-weight:400;color:var(--sb-muted)}.sb-block.sb-playground .pg-switch{flex:none;position:relative;width:36px;height:20px;border-radius:999px;background:var(--sb-line)}.sb-block.sb-playground .pg-switch span{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--sb-surface);box-shadow:0 1px 2px #0003;transition:transform .15s}.sb-block.sb-playground .pg-switch[aria-checked=true],.sb-block.sb-playground .sb-block .pg-switch[aria-checked=true]:not(:disabled):hover{background:var(--sb-accent)}.sb-block.sb-playground .pg-switch[aria-checked=true] span{transform:translate(16px)}.sb-block.sb-playground .pg-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:7px}.sb-block.sb-playground .pg-choice{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 10px;border:1.5px solid var(--sb-line);border-radius:8px;background:var(--sb-surface);text-align:left;min-width:0}.sb-block.sb-playground .pg-choice[aria-checked=true]{border-color:var(--sb-accent);background:var(--sb-accent-soft)}.sb-block.sb-playground .pg-choice b{font-size:12px;font-weight:600}.sb-block.sb-playground .pg-choice span{font-size:10px;line-height:1.45;color:var(--sb-muted)}.sb-block.sb-playground .sb-calculation-result.pg-results{justify-content:flex-start;gap:12px}.sb-block.sb-playground .pg-headline,.sb-block.sb-playground .pg-figure{display:flex;flex-direction:column;min-width:0;width:100%}.sb-block.sb-playground .pg-headline>strong{font-size:30px;font-weight:500;color:var(--sb-accent);letter-spacing:-1px;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.sb-block.sb-playground .pg-headline small,.sb-block.sb-playground .pg-figure small{font-size:10px;color:var(--sb-muted);letter-spacing:0;font-weight:400;margin-left:4px}.sb-block.sb-playground .pg-figure{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:2px 10px;padding-top:8px;border-top:1px solid var(--sb-line)}.sb-block.sb-playground .pg-figure>b{font-size:15px;font-weight:600;color:var(--sb-text);font-variant-numeric:tabular-nums}.sb-block.sb-playground .pg-figure>.pg-hint,.sb-block.sb-playground .pg-figure>.pg-target{flex-basis:100%}.sb-block.sb-playground .pg-target{width:100%;margin-top:8px}.sb-block.sb-playground .pg-target-track{position:relative;height:8px;border-radius:4px;background:var(--sb-line)}.sb-block.sb-playground .pg-target-fill{position:absolute;inset:0 auto 0 0;border-radius:4px;transition:width .25s ease,background .25s}.sb-block.sb-playground .is-hit .pg-target-fill{background:var(--pg-good)}.sb-block.sb-playground .is-miss .pg-target-fill{background:var(--pg-bad)}.sb-block.sb-playground .pg-target-mark{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;background:var(--sb-text)}.sb-block.sb-playground .pg-target-copy{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 10px;margin-top:6px;font-size:10px}.sb-block.sb-playground .pg-target-copy b{font-size:11px}.sb-block.sb-playground .is-hit .pg-target-copy b{color:var(--pg-good)}.sb-block.sb-playground .is-miss .pg-target-copy b{color:var(--pg-bad)}.sb-block.sb-playground .pg-note{margin:0;font-size:10px;line-height:1.5;color:var(--sb-muted)}.sb-block.sb-playground .pg-note-wide{padding:0 22px 20px}.sb-block.sb-playground .pg-section-title{font-size:10px;font-weight:600;letter-spacing:.3px;color:var(--sb-muted)}.sb-block.sb-playground .pg-breakdown{width:100%;display:flex;flex-direction:column;gap:6px;padding-top:8px;border-top:1px solid var(--sb-line)}.sb-block.sb-playground .pg-bar{display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--sb-line)}.sb-block.sb-playground .pg-bar span{height:100%;transition:width .3s ease}.sb-block.sb-playground .pg-bar .is-negative,.sb-block.sb-playground .pg-table i.is-negative{background-image:repeating-linear-gradient(135deg,transparent 0 3px,color-mix(in srgb,var(--sb-surface) 70%,transparent) 3px 5px)!important}.sb-block.sb-playground .pg-table{width:100%;border-collapse:collapse;font-size:11px;color:var(--sb-text);font-variant-numeric:tabular-nums}.sb-block.sb-playground .pg-table thead th{font-size:9px;font-weight:500;color:var(--sb-muted);text-align:right;padding:0 0 3px 8px}.sb-block.sb-playground .pg-table thead th:first-child{text-align:left;padding-left:0}.sb-block.sb-playground .pg-table tbody th{font-weight:400;text-align:left;padding:3px 0;display:flex;align-items:center;gap:6px;min-width:0}.sb-block.sb-playground .pg-table td{text-align:right;padding:3px 0 3px 8px;white-space:nowrap}.sb-block.sb-playground .pg-table td:nth-child(2){font-weight:600}.sb-block.sb-playground .pg-table td:last-child{color:var(--sb-muted)}.sb-block.sb-playground .pg-table i{flex:none;width:9px;height:9px;border-radius:2px}.sb-block.sb-playground .pg-ranking-body{grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr)}.sb-block.sb-playground .pg-ranking-wide{padding:0 22px 24px}.sb-block.sb-playground .pg-ranking{min-width:0;display:flex;flex-direction:column;gap:10px}.sb-block.sb-playground .pg-ranking-head{display:flex;flex-direction:column;gap:6px}.sb-block.sb-playground .pg-legend{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 12px;font-size:10px}.sb-block.sb-playground .pg-legend li{display:inline-flex;align-items:center;gap:5px}.sb-block.sb-playground .pg-legend li.is-off{opacity:.45}.sb-block.sb-playground .pg-legend i{width:9px;height:9px;border-radius:2px}.sb-block.sb-playground .pg-legend b{font-weight:600;font-variant-numeric:tabular-nums}.sb-block.sb-playground .pg-rank-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column}.sb-block.sb-playground .pg-rank-list li{display:grid;grid-template-columns:22px minmax(90px,.9fr) minmax(0,1.4fr) 40px;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--sb-line);background:var(--sb-surface)}.sb-block.sb-playground .pg-rank-number{font-size:11px;color:var(--sb-muted);text-align:center;font-variant-numeric:tabular-nums}.sb-block.sb-playground .is-first .pg-rank-number{color:var(--sb-surface);background:var(--sb-accent);border-radius:50%;width:20px;height:20px;line-height:20px}.sb-block.sb-playground .pg-rank-copy{display:flex;flex-direction:column;min-width:0}.sb-block.sb-playground .pg-rank-copy b{font-size:12px;font-weight:600}.sb-block.sb-playground .pg-rank-copy span{font-size:10px;color:var(--sb-muted);line-height:1.4}.sb-block.sb-playground .pg-rank-bar{display:flex;height:10px;border-radius:5px;overflow:hidden;background:var(--sb-soft)}.sb-block.sb-playground .pg-rank-bar span{height:100%;transition:width .3s ease}.sb-block.sb-playground .pg-rank-score{text-align:right;font-size:15px;font-weight:600;font-variant-numeric:tabular-nums}.sb-block.sb-playground .is-first .pg-rank-score{color:var(--sb-accent)}@container (max-width: 560px){.sb-block.sb-playground .sb-playground-body{grid-template-columns:1fr;gap:20px;padding:13px 15px 18px}.sb-block.sb-playground .pg-ranking-body{grid-template-columns:1fr}.sb-block.sb-playground .pg-ranking-wide,.sb-block.sb-playground .pg-note-wide{padding-left:15px;padding-right:15px}.sb-block.sb-playground .pg-choices{grid-template-columns:1fr}.sb-block.sb-playground .pg-rank-list li{grid-template-columns:22px minmax(0,1fr) 36px}.sb-block.sb-playground .pg-rank-bar{grid-column:2 / 4;grid-row:2}}@media print{.sb-block.sb-playground .pg-presets{display:none}.sb-block.sb-playground .pg-bar,.sb-block.sb-playground .pg-rank-bar,.sb-block.sb-playground .pg-target-track,.sb-block.sb-playground .pg-legend i,.sb-block.sb-playground .pg-table i{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
|
|
43
|
-
`);var Rx=rt("playground",{"zh-CN":{"operation.sum":"\u6C42\u548C","operation.product":"\u4E58\u79EF","operation.average":"\u5E73\u5747\u503C",outOfRange:"\u8D85\u51FA\u6570\u503C\u8303\u56F4",defaultTitle:"\u4EA4\u4E92\u8BA1\u7B97",defaultResult:"\u8BA1\u7B97\u7ED3\u679C",invalidInputs:"\u6BCF\u4E2A\u53C2\u6570\u9700\u8981\u540D\u79F0\uFF0C\u6700\u5927\u503C\u987B\u5927\u4E8E\u6700\u5C0F\u503C\uFF0C\u6B65\u957F\u987B\u5927\u4E8E 0\u3002",reset:"\u91CD\u7F6E\u53C2\u6570",title:"\u6807\u9898",operation:"\u8BA1\u7B97\u65B9\u5F0F",resultLabel:"\u7ED3\u679C\u540D\u79F0",resultUnit:"\u7ED3\u679C\u5355\u4F4D",parameterName:"\u53C2\u6570\u540D\u79F0",unit:"\u5355\u4F4D",deleteParameter:"\u5220\u9664\u53C2\u6570{label}",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",step:"\u6B65\u957F",initial:"\u521D\u59CB\u503C",newParameter:"\u65B0\u53C2\u6570",addParameter:"\u6DFB\u52A0\u53C2\u6570",parameterValue:"{label}\u6570\u503C",emptyTitle:"\u8BD5\u7740\u6539\u53D8\u4E00\u4E2A\u53D8\u91CF",setUp:"\u8BBE\u7F6E\u53C2\u6570",averageSuffix:"\uFF0C\xF7 {count}",waiting:"\u7B49\u5F85\u8BBE\u7F6E\u53C2\u6570",presets:"\u9884\u8BBE\u65B9\u6848",decrease:"\u51CF\u5C11{label}",increase:"\u589E\u52A0{label}",target:"\u76EE\u6807",above:"\u9AD8\u4E8E\u76EE\u6807",below:"\u4F4E\u4E8E\u76EE\u6807",onTarget:"\u6070\u597D\u8FBE\u5230\u76EE\u6807",breakdown:"\u6784\u6210",share:"\u5360\u6BD4",value:"\u6570\u503C",item:"\u9879\u76EE",ranking:"\u52A0\u6743\u6392\u540D",weights:"\u6743\u91CD",score:"\u5F97\u5206",contribution:"{label}\u8D21\u732E {value} \u5206",advancedNote:"\u516C\u5F0F\u3001\u7ED3\u679C\u3001\u6784\u6210\u3001\u9884\u8BBE\u4E0E\u6392\u540D\u5728\u9875\u9762\u6570\u636E\u4E2D\u5B9A\u4E49\uFF1B\u8FD9\u91CC\u53EA\u4FEE\u6539\u6807\u9898\u4E0E\u53C2\u6570\uFF0C\u4FDD\u5B58\u65F6\u4FDD\u7559\u5176\u4F59\u8BBE\u7F6E\u3002",invalidData:"\u6570\u636E\u672A\u901A\u8FC7\u68C0\u67E5\uFF1A{message}"},en:{"operation.sum":"Sum","operation.product":"Product","operation.average":"Average",outOfRange:"Out of range",defaultTitle:"Interactive calculator",defaultResult:"Result",invalidInputs:"Each parameter needs a name, a maximum greater than its minimum, and a step greater than 0.",reset:"Reset parameters",title:"Title",operation:"Calculation",resultLabel:"Result name",resultUnit:"Result unit",parameterName:"Parameter name",unit:"Unit",deleteParameter:"Delete parameter {label}",min:"Minimum",max:"Maximum",step:"Step",initial:"Initial value",newParameter:"New parameter",addParameter:"Add parameter",parameterValue:"{label} value",emptyTitle:"Try changing a variable",setUp:"Set up parameters",averageSuffix:", \xF7 {count}",waiting:"Waiting for parameters",presets:"Presets",decrease:"Decrease {label}",increase:"Increase {label}",target:"Target",above:"above target",below:"below target",onTarget:"Exactly on target",breakdown:"Breakdown",share:"Share",value:"Value",item:"Item",ranking:"Weighted ranking",weights:"Weights",score:"Score",contribution:"{label} contributes {value} points",advancedNote:"Formulas, results, breakdown, presets and ranking live in the page data. Here you edit the title and parameters; other settings are kept on save.",invalidData:"Data check failed: {message}"}});var W=U(pe(),1),RE=[{value:"sum",label:"operation.sum"},{value:"product",label:"operation.product"},{value:"average",label:"operation.average"}],PE=[{key:"min",label:"min"},{key:"max",label:"max"},{key:"step",label:"step"},{key:"value",label:"initial"}],R5=e=>["slider","stepper"].includes(Ci(e)),Mu=(e,t)=>e??`var(--pg-c${t%8+1})`,Px=e=>Number(e.toFixed(10));function BE(e,t){if(!e.length)return 0;if(t==="product")return e.reduce((n,o)=>n*o,1);let a=e.reduce((n,o)=>n+o,0);return t==="average"?a/e.length:a}function jx({data:e,onChange:t,readOnly:a}){let n=(0,nn.useId)(),o=ue(Rx),r=ue(Xa),i=Array.isArray(e.inputs)?e.inputs:[],[l,s]=(0,nn.useState)({}),[c,d]=(0,nn.useState)(!1),[u,p]=(0,nn.useState)({title:"",resultLabel:"",unit:"",operation:"sum"}),[g,y]=(0,nn.useState)([]),[b,x]=(0,nn.useState)(""),f=!!(t&&!a),m=sh(e),v=Gl(),T=(0,nn.useMemo)(()=>{try{return{formulas:Pm(e),problem:""}}catch(D){return{formulas:[],problem:D.message}}},[e]),w=T.problem?{}:dh(e,l,T.formulas),E=D=>O2(D,l[D.id]??D2(D)),L=(D,V)=>s(B=>({...B,[D.id]:O2(D,V)})),H=BE(i.map(E),le(e.operation,"sum")),S=Number.isFinite(H)?new Intl.NumberFormat(v,{maximumFractionDigits:4}).format(H):o("outOfRange"),k=Array.isArray(e.formulas)?e.formulas:[],M=Array.isArray(e.outputs)?e.outputs:!m&&k.length?[{formula:k[k.length-1].id}]:[],O=e.breakdown,C=Array.isArray(e.presets)?e.presets:[],N=e.ranking,z=m||M.length>0||!!O,A=()=>{p({title:le(e.title,o("defaultTitle")),resultLabel:le(e.resultLabel,o("defaultResult")),unit:le(e.unit),operation:le(e.operation,"sum")}),y(i.map(D=>({...D}))),x(""),d(!c)},q=()=>{if(g.some(B=>!B.label.trim()||R5(B)&&(![B.min,B.max,B.value].every(Number.isFinite)||B.min>=B.max||(B.step!==void 0||Ci(B)==="slider"?!Number.isFinite(B.step)||B.step<=0:!1)))){x(o("invalidInputs"));return}let D=g.map(B=>R5(B)?{...B,value:Math.min(B.max,Math.max(B.min,B.value))}:B),V=m?{...e,...u,inputs:D}:{...e,title:u.title,inputs:D};try{Ys(V)}catch(B){x(o("invalidData",{message:B.message}));return}t?.(V),s({}),d(!1)},P=(D,V)=>y(B=>B.map((de,he)=>he===D?{...de,...V}:de)),Z=new Map(k.map(D=>[D.id,D])),F=new Map(i.map(D=>[D.id,D])),ee=D=>Z.get(D)?.label??F.get(D)?.label??D,j=(D,V)=>V??Z.get(D)?.format,K=(D,V)=>V??Z.get(D)?.unit??F.get(D)?.unit??"",_=(D,V)=>Number.isFinite(D)?mh(D,V,v):o("outOfRange"),$=D=>Object.entries(D.values).every(([V,B])=>{let de=F.get(V);return de!==void 0&&E(de)===B});return(0,W.jsxs)("section",{className:"sb-block sb-playground","aria-label":le(e.title)||o("defaultTitle"),children:[(0,W.jsx)(ya,{title:le(e.title),defaultTitle:o("defaultTitle"),description:le(e.description),icon:(0,W.jsx)(Fu,{size:17}),editable:f,editing:c,onEdit:A,children:(0,W.jsx)("button",{type:"button",className:"sb-icon-button","aria-label":o("reset"),title:o("reset"),onClick:()=>s({}),children:(0,W.jsx)(Uf,{size:15})})}),c&&(0,W.jsx)(Wa,{children:(0,W.jsxs)("div",{className:"sb-editor-panel",children:[(0,W.jsxs)("div",{className:"sb-form-row",children:[(0,W.jsx)(He,{label:o("title"),children:(0,W.jsx)("input",{value:u.title,onChange:D=>p(V=>({...V,title:D.target.value}))})}),m&&(0,W.jsx)(He,{label:o("operation"),children:(0,W.jsx)("select",{value:u.operation,onChange:D=>p(V=>({...V,operation:D.target.value})),children:RE.map(D=>(0,W.jsx)("option",{value:D.value,children:o(D.label)},D.value))})})]}),m?(0,W.jsxs)("div",{className:"sb-form-row",children:[(0,W.jsx)(He,{label:o("resultLabel"),children:(0,W.jsx)("input",{value:u.resultLabel,onChange:D=>p(V=>({...V,resultLabel:D.target.value}))})}),(0,W.jsx)(He,{label:o("resultUnit"),children:(0,W.jsx)("input",{value:u.unit,onChange:D=>p(V=>({...V,unit:D.target.value}))})})]}):(0,W.jsx)("p",{className:"pg-editor-note",children:o("advancedNote")}),g.map((D,V)=>(0,W.jsxs)("div",{className:"sb-parameter-editor",children:[(0,W.jsxs)("div",{className:"sb-form-row",children:[(0,W.jsx)(He,{label:o("parameterName"),children:(0,W.jsx)("input",{value:D.label,onChange:B=>P(V,{label:B.target.value})})}),(0,W.jsx)(He,{label:o("unit"),children:(0,W.jsx)("input",{value:D.unit??"",onChange:B=>P(V,{unit:B.target.value})})}),(0,W.jsx)("button",{type:"button",className:"sb-icon-button sb-danger","aria-label":o("deleteParameter",{label:D.label}),onClick:()=>y(B=>B.filter((de,he)=>he!==V)),children:(0,W.jsx)(pa,{size:14})})]}),R5(D)&&(0,W.jsx)("div",{className:"sb-form-row",children:PE.map(({key:B,label:de})=>(0,W.jsx)(He,{label:o(de),children:(0,W.jsx)("input",{type:"number",value:D[B]??"",onChange:he=>P(V,{[B]:he.target.value===""?0:Number(he.target.value)})})},B))})]},D.id)),b&&(0,W.jsx)("p",{className:"sb-error",role:"alert",children:b}),(0,W.jsxs)("div",{className:"sb-panel-footer",children:[(0,W.jsxs)("button",{type:"button",className:"sb-button",onClick:()=>y(D=>[...D,{id:_o(),label:o("newParameter"),min:0,max:100,step:1,value:0}]),children:[(0,W.jsx)(Ot,{size:14}),o("addParameter")]}),(0,W.jsxs)("button",{type:"button",className:"sb-button sb-primary",onClick:q,children:[(0,W.jsx)(Fa,{size:14}),r("save")]})]})]})}),T.problem&&(0,W.jsx)("p",{className:"sb-error",role:"alert",children:o("invalidData",{message:T.problem})}),(0,W.jsxs)("div",{className:`sb-playground-body${!z&&N?" pg-ranking-body":""}`,children:[(0,W.jsxs)("div",{className:"sb-parameters",children:[C.length>0&&(0,W.jsx)("div",{className:"pg-presets",role:"group","aria-label":o("presets"),children:C.map((D,V)=>(0,W.jsx)("button",{type:"button",className:"pg-chip","aria-pressed":$(D),onClick:()=>s(B=>({...B,...D.values})),children:D.label},V))}),i.length?i.map(D=>{let V=Ci(D),B=E(D),de=`${n}-param-${D.id}`;return V==="stepper"?(0,W.jsx)(jE,{id:de,input:D,value:B,locale:v,t:o,onChange:he=>L(D,he)},D.id):V==="toggle"?(0,W.jsxs)("div",{className:"sb-parameter pg-toggle-row",children:[(0,W.jsxs)("div",{className:"pg-toggle-copy",children:[(0,W.jsx)("label",{htmlFor:de,children:D.label}),D.hint&&(0,W.jsx)("p",{className:"pg-hint",children:D.hint})]}),(0,W.jsx)("button",{id:de,type:"button",role:"switch","aria-checked":B===1,className:"pg-switch",onClick:()=>L(D,B?0:1),children:(0,W.jsx)("span",{"aria-hidden":"true"})})]},D.id):V==="choice"?(0,W.jsx)(HE,{id:de,input:D,value:B,onChange:he=>L(D,he)},D.id):(0,W.jsxs)("div",{className:"sb-parameter",children:[(0,W.jsxs)("div",{className:"sb-parameter-label",children:[(0,W.jsx)("label",{htmlFor:de,children:D.label}),(0,W.jsxs)("div",{children:[(0,W.jsx)("input",{"aria-label":o("parameterValue",{label:D.label}),type:"number",min:D.min,max:D.max,step:D.step,value:B,onChange:he=>{he.target.value!==""&&L(D,Number(he.target.value))}}),(0,W.jsx)("span",{children:D.unit})]})]}),(0,W.jsx)("input",{id:de,"aria-label":D.label,type:"range",min:D.min,max:D.max,step:D.step,value:B,onChange:he=>s(ye=>({...ye,[D.id]:Number(he.target.value)})),style:{"--range-progress":`${(B-D.min)/(D.max-D.min)*100}%`}}),(0,W.jsxs)("div",{className:"sb-range-labels",children:[(0,W.jsxs)("span",{children:[D.min,D.unit]}),(0,W.jsxs)("span",{children:[D.max,D.unit]})]}),D.hint&&(0,W.jsx)("p",{className:"pg-hint",children:D.hint})]},D.id)}):(0,W.jsxs)("div",{className:"sb-empty",children:[(0,W.jsx)(Fu,{size:26}),(0,W.jsx)("strong",{children:o("emptyTitle")}),f&&!c&&(0,W.jsx)("button",{type:"button",className:"sb-button",onClick:A,children:o("setUp")})]})]}),m?(0,W.jsxs)("div",{className:"sb-calculation-result",children:[(0,W.jsx)("span",{children:le(e.resultLabel,o("defaultResult"))}),(0,W.jsxs)("strong",{"aria-live":"polite",children:[S,(0,W.jsx)("small",{children:le(e.unit)})]}),(0,W.jsx)("span",{className:"sb-formula",children:i.length?i.map(D=>D.label).join(e.operation==="product"?" \xD7 ":" + ")+(e.operation==="average"?o("averageSuffix",{count:i.length}):""):o("waiting")})]}):z?(0,W.jsxs)("div",{className:"sb-calculation-result pg-results",children:[M.map((D,V)=>{let B=w[D.formula]??Number.NaN,de=j(D.formula,D.format),he=(0,W.jsxs)(W.Fragment,{children:[_(B,de),K(D.formula,D.unit)&&(0,W.jsx)("small",{children:K(D.formula,D.unit)})]});return(0,W.jsxs)("div",{className:V?"pg-figure":"pg-headline",children:[(0,W.jsx)("span",{children:D.label??ee(D.formula)}),V?(0,W.jsx)("b",{children:he}):(0,W.jsx)("strong",{"aria-live":"polite",children:he}),D.hint&&(0,W.jsx)("p",{className:"pg-hint",children:D.hint}),D.target&&(0,W.jsx)(_E,{value:B,target:typeof D.target.value=="string"?w[D.target.value]??Number.NaN:D.target.value,label:D.target.label??o("target"),above:D.target.above??o("above"),below:D.target.below??o("below"),show:ye=>_(ye,de),t:o})]},`${D.formula}-${V}`)}),O&&(0,W.jsx)(UE,{breakdown:O,parts:uh(e,w).map(D=>({...D,label:D.label??ee(D.formula),text:_(D.value,O.format??j(D.formula))})),locale:v,t:o}),le(e.note)&&(0,W.jsx)("p",{className:"pg-note",children:le(e.note)})]}):null,N&&!z&&(0,W.jsx)(Bx,{ranking:N,scope:w,locale:v,t:o})]}),N&&z&&(0,W.jsx)("div",{className:"pg-ranking-wide",children:(0,W.jsx)(Bx,{ranking:N,scope:w,locale:v,t:o})}),N&&!z&&le(e.note)&&(0,W.jsx)("p",{className:"pg-note pg-note-wide",children:le(e.note)})]})}function jE({id:e,input:t,value:a,locale:n,t:o,onChange:r}){let i=ql(t.step,1)||1;return(0,W.jsxs)("div",{className:"sb-parameter pg-stepper-row",children:[(0,W.jsxs)("div",{className:"pg-toggle-copy",children:[(0,W.jsx)("span",{id:`${e}-label`,children:t.label}),t.hint&&(0,W.jsx)("p",{className:"pg-hint",children:t.hint})]}),(0,W.jsxs)("div",{className:"pg-stepper",role:"group","aria-labelledby":`${e}-label`,children:[(0,W.jsx)("button",{type:"button","aria-label":o("decrease",{label:t.label}),disabled:a<=t.min,onClick:()=>r(Px(a-i)),children:(0,W.jsx)(Ll,{size:14})}),(0,W.jsxs)("output",{"aria-live":"polite",children:[new Intl.NumberFormat(n,{maximumFractionDigits:4}).format(a),t.unit&&(0,W.jsx)("small",{children:t.unit})]}),(0,W.jsx)("button",{type:"button","aria-label":o("increase",{label:t.label}),disabled:a>=t.max,onClick:()=>r(Px(a+i)),children:(0,W.jsx)(Ot,{size:14})})]})]})}function HE({id:e,input:t,value:a,onChange:n}){let o=t.options??[],r=(0,nn.useRef)(null),i=l=>{let s={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1}[l.key];if(!s)return;l.preventDefault();let d=(o.findIndex(u=>u.value===a)+s+o.length)%o.length;n(o[d].value),r.current?.querySelectorAll("[role=radio]")[d]?.focus()};return(0,W.jsxs)("div",{className:"sb-parameter",children:[(0,W.jsx)("div",{className:"sb-parameter-label",children:(0,W.jsx)("span",{id:`${e}-label`,children:t.label})}),(0,W.jsx)("div",{ref:r,className:"pg-choices",role:"radiogroup","aria-labelledby":`${e}-label`,onKeyDown:i,children:o.map(l=>(0,W.jsxs)("button",{type:"button",role:"radio","aria-checked":l.value===a,tabIndex:l.value===a?0:-1,className:"pg-choice",onClick:()=>n(l.value),children:[(0,W.jsx)("b",{children:l.label}),l.note&&(0,W.jsx)("span",{children:l.note})]},l.value))}),t.hint&&(0,W.jsx)("p",{className:"pg-hint",children:t.hint})]})}function _E({value:e,target:t,label:a,above:n,below:o,show:r,t:i}){if(!Number.isFinite(e)||!Number.isFinite(t))return null;let l=Math.min(0,e,t),s=Math.max(0,e,t),c=s+(s-l||1)*.08,d=g=>`${(g-l)/(c-l)*100}%`,u=e-t,p=u>=0;return(0,W.jsxs)("div",{className:`pg-target ${p?"is-hit":"is-miss"}`,children:[(0,W.jsxs)("div",{className:"pg-target-track","aria-hidden":"true",children:[(0,W.jsx)("span",{className:"pg-target-fill",style:{width:d(e)}}),(0,W.jsx)("span",{className:"pg-target-mark",style:{left:d(t)}})]}),(0,W.jsxs)("div",{className:"pg-target-copy",children:[(0,W.jsxs)("span",{children:[a," ",r(t)]}),(0,W.jsx)("b",{children:u===0?i("onTarget"):`${p?"\u25B2":"\u25BC"} ${r(Math.abs(u))} ${p?n:o}`})]})]})}function UE({breakdown:e,parts:t,locale:a,t:n}){let o=new Intl.NumberFormat(a,{style:"percent",maximumFractionDigits:0}),r=e.title??n("breakdown");return(0,W.jsxs)("div",{className:"pg-breakdown",role:"group","aria-label":r,children:[(0,W.jsx)("span",{className:"pg-section-title",children:r}),(0,W.jsx)("div",{className:"pg-bar","aria-hidden":"true",children:t.map((i,l)=>(0,W.jsx)("span",{className:i.value<0?"is-negative":void 0,style:{width:`${i.share*100}%`,background:Mu(i.color,l)}},i.formula))}),(0,W.jsxs)("table",{className:"pg-table",children:[(0,W.jsx)("thead",{children:(0,W.jsxs)("tr",{children:[(0,W.jsx)("th",{scope:"col",children:n("item")}),(0,W.jsx)("th",{scope:"col",children:n("value")}),(0,W.jsx)("th",{scope:"col",children:n("share")})]})}),(0,W.jsx)("tbody",{children:t.map((i,l)=>(0,W.jsxs)("tr",{children:[(0,W.jsxs)("th",{scope:"row",children:[(0,W.jsx)("i",{className:i.value<0?"is-negative":void 0,style:{background:Mu(i.color,l)}}),i.label]}),(0,W.jsx)("td",{children:i.text}),(0,W.jsx)("td",{children:o.format(i.share)})]},i.formula))})]})]})}function Bx({ranking:e,scope:t,locale:a,t:n}){let o=ph(e,t),r=(0,nn.useRef)(null),i=(0,nn.useRef)(new Map),l=o.map(g=>g.item.id).join("\0");(0,nn.useLayoutEffect)(()=>{let g=[...r.current?.querySelectorAll("[data-rank-id]")??[]],y=typeof window>"u"||window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;for(let b of g){let x=b.dataset.rankId,f=b.offsetTop,m=i.current.get(x);i.current.set(x,f),!(y||m===void 0||m===f)&&b.animate?.([{transform:`translateY(${m-f}px)`},{transform:"translateY(0)"}],{duration:280,easing:"cubic-bezier(.2,.7,.2,1)"})}},[l]);let s=e.criteria.map(g=>{let y=typeof g.weight=="string"?t[g.weight]:g.weight??1;return Number.isFinite(y)?Math.max(0,y):0}),c=s.reduce((g,y)=>g+y,0),d=new Intl.NumberFormat(a,{minimumFractionDigits:e.decimals??0,maximumFractionDigits:e.decimals??0}),u=new Intl.NumberFormat(a,{style:"percent",maximumFractionDigits:0}),p=e.title??n("ranking");return(0,W.jsxs)("div",{className:"pg-ranking",role:"group","aria-label":p,children:[(0,W.jsxs)("div",{className:"pg-ranking-head",children:[(0,W.jsx)("span",{className:"pg-section-title",children:p}),(0,W.jsx)("ul",{className:"pg-legend","aria-label":n("weights"),children:e.criteria.map((g,y)=>(0,W.jsxs)("li",{className:s[y]?void 0:"is-off",title:g.hint,children:[(0,W.jsx)("i",{style:{background:Mu(g.color,y)}}),g.label,(0,W.jsx)("b",{children:u.format(c?s[y]/c:0)})]},g.id))})]}),(0,W.jsx)("ol",{className:"pg-rank-list",ref:r,children:o.map((g,y)=>(0,W.jsxs)("li",{"data-rank-id":g.item.id,className:y===0&&c?"is-first":void 0,children:[(0,W.jsx)("span",{className:"pg-rank-number","aria-hidden":"true",children:y+1}),(0,W.jsxs)("div",{className:"pg-rank-copy",children:[(0,W.jsx)("b",{children:g.item.label}),g.item.note&&(0,W.jsx)("span",{children:g.item.note})]}),(0,W.jsx)("div",{className:"pg-rank-bar",children:g.parts.map((b,x)=>b.value>0?(0,W.jsx)("span",{title:n("contribution",{label:e.criteria[x].label,value:b.value.toFixed(1)}),style:{width:`${b.value}%`,background:Mu(e.criteria[x].color,x)}},b.id):null)}),(0,W.jsxs)("strong",{className:"pg-rank-score",children:[(0,W.jsxs)("span",{className:"pg-visually-hidden",children:[n("score")," "]}),d.format(g.score)]})]},g.item.id))})]})}var VE=(0,na.lazy)(()=>import("./chunks/Flowchart-FDIMKFEA.js").then(e=>({default:e.FlowchartBlock}))),ZE=(0,na.lazy)(()=>import("./chunks/Mindmap-6NWSYUKU.js").then(e=>({default:e.MindmapBlock}))),GE=(0,na.lazy)(()=>import("./chunks/ComparisonMatrix-LFBHHO3A.js").then(e=>({default:e.ComparisonMatrixBlock}))),$E=(0,na.lazy)(()=>import("./chunks/StatusTree-EHNSDOVH.js").then(e=>({default:e.StatusTreeBlock}))),qE=(0,na.lazy)(()=>import("./chunks/ExperimentTracker-MSRAHV5J.js").then(e=>({default:e.ExperimentTrackerBlock}))),FE=(0,na.lazy)(()=>import("./chunks/Scene3D-Q5MGPU3X.js").then(e=>({default:e.Scene3DBlock}))),WE=(0,na.lazy)(()=>import("./chunks/SequenceDiagram-WA7DFSY3.js").then(e=>({default:e.SequenceDiagramBlock}))),KE=(0,na.lazy)(()=>import("./chunks/LayerDiagram-HTH3JN4D.js").then(e=>({default:e.LayerDiagramBlock}))),YE=(0,na.lazy)(()=>import("./chunks/StepGuide-UE7JVBQD.js").then(e=>({default:e.StepGuideBlock}))),JE=(0,na.lazy)(()=>import("./chunks/CommandReference-CKBSDW6N.js").then(e=>({default:e.CommandReferenceBlock}))),XE=(0,na.lazy)(()=>import("./chunks/StructureBrowser-DG3TSDJF.js").then(e=>({default:e.StructureBrowserBlock}))),QE=(0,na.lazy)(()=>import("./chunks/CardGrid-6WXY2OUD.js").then(e=>({default:e.CardGridBlock}))),ez=(0,na.lazy)(()=>import("./chunks/Roadmap-QWD7IZHX.js").then(e=>({default:e.RoadmapBlock}))),tz=(0,na.lazy)(()=>import("./chunks/Waterfall-A5MPISUU.js").then(e=>({default:e.WaterfallBlock}))),az=(0,na.lazy)(()=>import("./chunks/EventTimeline-TS5HI5GA.js").then(e=>({default:e.EventTimelineBlock}))),nz=(0,na.lazy)(()=>import("./chunks/G2Chart-QP5UF6HK.js").then(e=>({default:e.G2ChartBlock}))),oz={archify:(0,na.lazy)(()=>import("./chunks/ExternalDiagram-B6TDNZM4.js").then(e=>({default:e.ArchifyBlock}))),"diagram-design":(0,na.lazy)(()=>import("./chunks/ExternalDiagram-B6TDNZM4.js").then(e=>({default:e.DiagramDesignBlock}))),"fireworks-tech-graph":(0,na.lazy)(()=>import("./chunks/ExternalDiagram-B6TDNZM4.js").then(e=>({default:e.FireworksTechGraphBlock})))},rz=[],Hx=[],P5=new Set,_x=0,Ux=e=>(P5.add(e),()=>{P5.delete(e)}),B5=()=>_x;function kt(e){if(!/^[a-z][a-z0-9-]{0,79}$/.test(e.kind))throw new Error("Block kind must use lowercase letters, numbers, and hyphens.");if(j5(e.kind))throw new Error(`Block "${e.kind}" is already registered.`);let t="Component"in e?{kind:e.kind,title:e.label,description:e.description,icon:e.icon??"\u25C7",defaultData:e.createData(),createData:e.createData,renderer:e.Component,validate:e.validate}:{...e};if(!t.title.trim())throw new Error("Block title is required.");t.defaultData=iz(t.defaultData),t.validate?.(t.defaultData),Hx.push(t),t.replacedBy||rz.push(t),_x++;for(let a of P5)a()}function j5(e){return Hx.find(t=>t.kind===e)}function iz(e){if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Block data must be a JSON object.");let t=structuredClone(e),a=(n,o=0)=>{if(o>40)throw new Error("Block data is nested too deeply.");if(!(n===null||typeof n=="string"||typeof n=="boolean")&&!(typeof n=="number"&&Number.isFinite(n))){if(Array.isArray(n)){n.forEach(r=>a(r,o+1));return}if(n&&typeof n=="object"&&Object.getPrototypeOf(n)===Object.prototype){for(let[r,i]of Object.entries(n)){if(["__proto__","constructor","prototype"].includes(r))throw new Error("Block data contains a reserved key.");a(i,o+1)}return}throw new Error("Block data must contain only finite, serializable JSON values.")}};return a(t),t}function Vx(e,t){if(e[t]===void 0)return[];if(!Array.isArray(e[t])||e[t].some(a=>!a||typeof a!="object"||Array.isArray(a)))throw new Error(`${t} \u5FC5\u987B\u662F\u5BF9\u8C61\u6570\u7EC4\u3002`);return e[t]}for(let e of J2)kt({kind:e.kind,title:e.name,description:e.description,icon:{text:"T",image:"\u25A7",table:"\u25A6",callout:"!",toggle:"\u2304",stepper:"\u21E5",divider:"\u2014",code:"{}"}[e.kind],defaultData:e.defaultData,renderer:{text:$1,image:ex,table:tx,callout:nx,toggle:ox,stepper:rx,divider:ix,code:ax}[e.kind],validate:t=>pr(e.kind,t)});kt({kind:"mindmap",title:"\u601D\u7EF4\u5BFC\u56FE",description:"\u81EA\u52A8\u6392\u5E03\u7684\u4E3B\u9898\u5206\u652F\uFF0C\u652F\u6301\u5FEB\u6377\u952E\u521B\u5EFA\u4E0E\u7F16\u8F91\u8282\u70B9",icon:"\u2442",defaultData:Nt.find(e=>e.kind==="mindmap").defaultData,renderer:ZE,validate:y0});for(let e of Q2)kt({kind:e.kind,title:e.name,description:e.description,icon:"\u25C7",defaultData:e.defaultData,renderer:oz[e.kind],validate:t=>x0(e.kind,t)});kt({kind:"flowchart",title:"\u4EA4\u4E92\u6D41\u7A0B\u56FE",description:"\u8282\u70B9\u5206\u652F\u3001\u8DEF\u7EBF\u8BB2\u89E3\u4E0E\u9636\u6BB5\u56DE\u653E",icon:"\u2318",defaultData:Nt.find(e=>e.kind==="flowchart").defaultData,renderer:VE,validate:v0});kt({kind:"chart",title:"\u6570\u636E\u56FE\u8868",description:"\u4EA4\u4E92\u5F0F\u6298\u7EBF\u56FE\u3001\u67F1\u72B6\u56FE\u4E0E\u539F\u59CB\u6570\u636E",icon:"\u2197",defaultData:{title:"\u6570\u636E\u56FE\u8868",type:"line",labels:[],series:[],unit:""},renderer:Sx,validate:e=>{C0(JSON.stringify({...e,labels:e.labels??[],series:e.series??[]}))}});kt({kind:"database",title:"\u6570\u636E\u5E93",description:"\u8868\u683C\u3001\u770B\u677F\u3001\u65E5\u5386\u3001\u7B5B\u9009\u548C\u6392\u5E8F",icon:"\u25A6",defaultData:{title:"\u6570\u636E\u5E93",columns:[{id:"name",name:"\u540D\u79F0",type:"text"},{id:"status",name:"\u72B6\u6001",type:"select",options:["\u5F85\u5F00\u59CB","\u8FDB\u884C\u4E2D","\u5DF2\u5B8C\u6210"]}],rows:[]},renderer:Mx,validate:e=>{B2(e)}});kt({kind:"metrics",title:"\u5173\u952E\u6307\u6807",description:"\u6570\u503C\u3001\u53D8\u5316\u7387\u4E0E\u7B80\u6D01\u8BF4\u660E",icon:"\u25F4",defaultData:{title:"\u5173\u952E\u6307\u6807",items:[]},renderer:Lx,validate:e=>{Vx(e,"items")}});kt({kind:"playground",title:"\u4EA4\u4E92\u8BA1\u7B97",description:"\u8C03\u53C2\u6570\uFF0C\u770B\u516C\u5F0F\u7ED3\u679C\u3001\u6784\u6210\u4E0E\u6392\u540D",icon:"\u2301",defaultData:{title:"\u4EA4\u4E92\u8BA1\u7B97",inputs:[],operation:"sum",resultLabel:"\u8BA1\u7B97\u7ED3\u679C",unit:""},renderer:jx,validate:e=>{Ys(e)}});kt({kind:"gallery",title:"\u56FE\u7247\u753B\u5ECA",description:"\u672C\u5730\u56FE\u7247\u3001\u56FE\u6CE8\u4E0E\u5168\u5C4F\u9884\u89C8",icon:"\u25A7",defaultData:{title:"\u56FE\u7247\u753B\u5ECA",columns:2,images:[]},renderer:Dx,validate:e=>{Vx(e,"images")}});kt({kind:"bookmark",title:"\u6765\u6E90\u4E66\u7B7E",description:"\u4FDD\u5B58\u7F51\u9875\u3001\u8BBA\u6587\u548C\u9879\u76EE\u51FA\u5904",icon:"\u2197",defaultData:{title:"",description:"",url:"",image:""},renderer:lx});kt({kind:"video",title:"\u89C6\u9891",description:Nt.find(e=>e.kind==="video").description,icon:"\u25B7",defaultData:Nt.find(e=>e.kind==="video").defaultData,renderer:ux,validate:e=>To("video",e)});kt({kind:"audio",title:"\u97F3\u9891",description:Nt.find(e=>e.kind==="audio").description,icon:"\u266B",defaultData:Nt.find(e=>e.kind==="audio").defaultData,renderer:px,validate:e=>To("audio",e)});kt({kind:"pdf",title:"PDF \u6587\u6863",description:Nt.find(e=>e.kind==="pdf").description,icon:"\u25A4",defaultData:Nt.find(e=>e.kind==="pdf").defaultData,renderer:mx,validate:e=>To("pdf",e)});kt({kind:"references",title:"\u53C2\u8003\u6587\u732E",description:Nt.find(e=>e.kind==="references").description,icon:"[1]",defaultData:Nt.find(e=>e.kind==="references").defaultData,renderer:fx,validate:e=>To("references",e)});kt({kind:"custom",title:"\u81EA\u5B9A\u4E49\u7EC4\u4EF6",description:"\u4F7F\u7528\u9879\u76EE\u4E2D\u5B89\u88C5\u7684 React \u7EC4\u4EF6",icon:"\u25C7",defaultData:{componentId:"value-slider",version:"1.0.0",props:{label:"\u6570\u503C",value:0,min:0,max:100}},renderer:oy,validate:e=>{Ai(e)}});for(let e of X2)kt({kind:e.kind,title:e.name,description:e.description,icon:"\u2197",defaultData:e.defaultData,renderer:t=>(0,na.createElement)(nz,{...t,chartType:e.kind.slice(3)}),validate:w0});kt({kind:"step-walkthrough",title:"\u5206\u6B65\u6F14\u793A",description:"\u9010\u6B65\u5C55\u793A\u5B9E\u9645\u64CD\u4F5C\u4E0E\u5404\u90E8\u5206\u7684\u5177\u4F53\u5185\u5BB9\u53D8\u5316",icon:"\u21C4",defaultData:Nt.find(e=>e.kind==="step-walkthrough").defaultData,renderer:yx,validate:e=>{I2(e)}});kt({kind:"comparison-matrix",title:"\u5BF9\u6BD4\u77E9\u9635",description:"\u6309\u7EF4\u5EA6\u9010\u884C\u5BF9\u6BD4\u591A\u4E2A\u65B9\u6848\uFF0C\u7A81\u51FA\u5DEE\u5F02\u4E0E\u81EA\u5DF1\u7684\u65B9\u6848",icon:"\u25A6",defaultData:Nt.find(e=>e.kind==="comparison-matrix").defaultData,renderer:GE,validate:e=>{Zl("comparison-matrix",e)}});kt({kind:"status-tree",title:"\u72B6\u6001\u6811",description:"\u6309\u7C7B\u522B\u5C55\u5F00\u6761\u76EE\uFF0C\u533A\u5206\u8D70\u901A\u3001\u6CA1\u8D70\u901A\u4E0E\u8FDB\u884C\u4E2D",icon:"\u2442",defaultData:Nt.find(e=>e.kind==="status-tree").defaultData,renderer:$E,validate:e=>{Zl("status-tree",e)}});kt({kind:"experiment-tracker",title:"\u5B9E\u9A8C\u8FFD\u8E2A",description:"\u5B9E\u9A8C\u6563\u70B9\u4E0E\u6700\u4F18\u524D\u6CBF\u3001\u8FD0\u884C\u5217\u8868\u3001\u8D44\u6E90\u4E0E\u8BAD\u7EC3\u66F2\u7EBF",icon:"\u25CE",defaultData:Nt.find(e=>e.kind==="experiment-tracker").defaultData,renderer:qE,validate:e=>{Zl("experiment-tracker",e)}});kt({kind:"scene-3d",title:"3D \u573A\u666F",description:"\u53EF\u65CB\u8F6C\u7684\u4E09\u7EF4\u6A21\u578B\uFF0C\u5E26\u6807\u6CE8\u3001\u5750\u6807\u7BAD\u5934\u4E0E\u53C2\u6570\u9A71\u52A8\u7684\u52A8\u4F5C",icon:"\u25C8",defaultData:Nt.find(e=>e.kind==="scene-3d").defaultData,renderer:FE,validate:e=>{k0(e)}});kt({kind:"sequence-diagram",title:"\u65F6\u5E8F\u56FE",description:"\u53C2\u4E0E\u8005\u4E4B\u95F4\u9010\u6B65\u64AD\u653E\u7684\u6D88\u606F\u5F80\u8FD4",icon:"\u21C4",defaultData:Nt.find(e=>e.kind==="sequence-diagram").defaultData,renderer:WE,validate:e=>{Sc("sequence-diagram",e)}});kt({kind:"layer-diagram",title:"\u5206\u5C42\u67B6\u6784\u56FE",description:"\u81EA\u4E0A\u800C\u4E0B\u7684\u5206\u5C42\u4E0E\u53EF\u70B9\u9009\u6A21\u5757",icon:"\u2630",defaultData:Nt.find(e=>e.kind==="layer-diagram").defaultData,renderer:KE,validate:e=>{Sc("layer-diagram",e)}});kt({kind:"step-guide",title:"\u64CD\u4F5C\u6B65\u9AA4",description:"\u7F16\u53F7\u6B65\u9AA4\u3001\u53EF\u590D\u5236\u4EE3\u7801\u4E0E\u8BA1\u65F6",icon:"\u2460",defaultData:Nt.find(e=>e.kind==="step-guide").defaultData,renderer:YE,validate:e=>{Cc("step-guide",e)}});kt({kind:"command-reference",title:"\u547D\u4EE4\u53C2\u8003",description:"\u53EF\u641C\u7D22\u7684\u5206\u7EC4\u547D\u4EE4\u4E0E\u53C2\u6570",icon:"\u2318",defaultData:Nt.find(e=>e.kind==="command-reference").defaultData,renderer:JE,validate:e=>{Cc("command-reference",e)}});kt({kind:"structure-browser",title:"\u7ED3\u6784\u6D4F\u89C8\u5668",description:"\u53EF\u5C55\u5F00\u7684\u76EE\u5F55\u6216\u5B57\u6BB5\u6811\uFF0C\u9644\u8BF4\u660E\u4E0E\u793A\u4F8B",icon:"\u229F",defaultData:Nt.find(e=>e.kind==="structure-browser").defaultData,renderer:XE,validate:e=>{Tc("structure-browser",e)}});kt({kind:"card-grid",title:"\u5361\u7247\u5BFC\u822A",description:"\u5E26\u56FE\u6807\u4E0E\u8BF4\u660E\u7684\u5165\u53E3\u5361\u7247\uFF0C\u53EF\u6574\u5361\u94FE\u63A5",icon:"\u25A4",defaultData:Nt.find(e=>e.kind==="card-grid").defaultData,renderer:QE,validate:e=>{Tc("card-grid",e)}});kt({kind:"roadmap",title:"\u8DEF\u7EBF\u56FE",description:"\u6309\u65E5\u671F\u9605\u8BFB\u8BA1\u5212\u3001\u4F9D\u8D56\u4E0E\u8D1F\u8D23\u4EBA",icon:"\u25A4",defaultData:Nt.find(e=>e.kind==="roadmap").defaultData,renderer:ez,validate:e=>{Ec("roadmap",e)}});kt({kind:"waterfall",title:"\u7011\u5E03\u6865\u56FE",description:"\u671F\u521D\u5230\u671F\u672B\u7684\u9010\u9879\u589E\u51CF\u4E0E\u6784\u6210",icon:"\u25A5",defaultData:Nt.find(e=>e.kind==="waterfall").defaultData,renderer:tz,validate:e=>{Ec("waterfall",e)}});kt({kind:"event-timeline",title:"\u4E8B\u4EF6\u65F6\u95F4\u7EBF",description:"\u66F2\u7EBF\u3001\u9636\u6BB5\u4E0E\u4E8B\u4EF6\u540C\u8F74\u56DE\u653E",icon:"\u2316",defaultData:Nt.find(e=>e.kind==="event-timeline").defaultData,renderer:az,validate:e=>{S0(e)}});ct(`.sb-block{--sb-surface: var(--paper, var(--surface, #fff));--sb-soft: var(--surface, #f7f8f5);--sb-text: var(--text, #343a35);--sb-muted: var(--muted, #92968f);--sb-line: var(--line, var(--border, #e9ece5));--sb-accent: var(--accent, #50745e);--sb-hover: var(--hover, #f0f2ed);--sb-accent-soft: var(--accent-soft, #eaf0e8);font-family:Avenir Next,PingFang SC,Microsoft YaHei,sans-serif;color:var(--sb-text);font-size:12px;line-height:1.6;position:relative;border:0;border-radius:0;background:transparent;overflow:visible;margin:18px 0;isolation:isolate}.sb-block *{box-sizing:border-box}.sb-block button,.sb-block input,.sb-block textarea,.sb-block select{font:inherit;color:inherit}.sb-block button{cursor:pointer;border:0;background:transparent;transition:background .15s,color .15s,opacity .15s;line-height:1.45}.sb-block button:disabled{opacity:.4;cursor:default}.sb-block button:not(:disabled):hover{background:var(--sb-hover)}.sb-block button:focus-visible,.sb-block a:focus-visible,.sb-block summary:focus-visible{outline:2px solid var(--sb-accent);outline-offset:2px}.sb-block input,.sb-block textarea,.sb-block select{accent-color:var(--sb-accent)}.sb-block input:is([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],[type=reset]):focus-visible,.sb-block select:focus-visible{outline:2px solid color-mix(in srgb,var(--sb-accent) 50%,transparent);outline-offset:1px}.sb-block input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],[type=reset]):focus,.sb-block textarea:focus{outline:none}.sb-block input::placeholder,.sb-block textarea::placeholder{color:var(--sb-muted)}.sb-block svg{flex-shrink:0;vertical-align:middle}.sb-header{position:absolute;top:0;right:0;z-index:8;padding:4px}.sb-header.has-caption{position:relative;padding:0 0 8px;min-height:24px}.sb-header.has-caption>.sb-heading{padding-right:44px}.sb-header>.sb-actions{position:relative;min-height:28px;padding:3px;background:var(--sb-surface);border-radius:5px;opacity:0;transition:opacity .15s}.sb-header.has-caption>.sb-actions{position:absolute;top:0;right:0}.sb-header>.sb-actions:hover,.sb-header>.sb-actions:focus-within,.sb-header>.sb-actions:has(details[open]),.sb-header.is-editing>.sb-actions{opacity:1}.sb-heading{min-width:0}.sb-title{font-size:11px;font-weight:500;color:var(--sb-muted);display:flex;align-items:center;gap:8px;overflow-wrap:anywhere}.sb-title>svg{color:var(--sb-accent);stroke-width:1.6}.sb-description{font-size:10px;color:var(--sb-muted);margin:5px 0 0!important;line-height:1.7}.sb-tools-menu>summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;list-style:none;padding:4px 8px;color:var(--sb-muted);white-space:nowrap}.sb-tools-menu>summary::-webkit-details-marker{display:none}.sb-tools-menu>.sb-database-toolbar{position:absolute;right:0;top:100%;width:max-content;max-width:min(520px,85vw);padding:8px 12px;background:var(--sb-surface);border:1px solid var(--sb-line);border-radius:6px;box-shadow:0 4px 18px #00000012;flex-wrap:wrap}.sb-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap;flex-shrink:0}.sb-block .sb-icon-button{width:26px;height:26px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;color:var(--sb-muted);flex-shrink:0;text-decoration:none}.sb-block .sb-icon-button:hover{color:var(--sb-text)}.sb-block .is-active{color:var(--sb-accent);background:var(--sb-accent-soft)}.sb-block .sb-danger:hover{color:#bd6654;background:#b46b5812}.sb-block .sb-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid var(--sb-line);border-radius:5px;padding:7px 11px;background:var(--sb-surface);font-size:10px;white-space:nowrap}.sb-block .sb-button.sb-primary{background:var(--sb-accent);color:var(--sb-surface);border-color:var(--sb-accent)}.sb-block .sb-button.sb-primary:hover{filter:brightness(1.09)}.sb-block .sb-small{padding:5px 9px}.sb-block .sb-text-button{font-size:10px;padding:3px 6px;border-radius:3px;color:var(--sb-accent)}.sb-block .sb-hidden{display:none}.sb-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:32px 20px 35px;text-align:center;color:var(--sb-muted)}.sb-empty>svg{color:color-mix(in srgb,var(--sb-accent) 65%,transparent);margin-bottom:4px}.sb-empty strong{font-size:12px;color:var(--sb-text);font-weight:500}.sb-empty p{font-size:10px;max-width:300px;margin:0 0 6px!important;line-height:1.8}.sb-editor-panel{background:var(--sb-soft);border-block:1px solid var(--sb-line);padding:17px 19px;display:flex;flex-direction:column;gap:13px;animation:sb-reveal .17s ease}.sb-field{display:flex;flex-direction:column;gap:5px;font-size:10px;flex:1;min-width:0}.sb-field>span{color:var(--sb-muted);font-weight:500}.sb-field input,.sb-field select,.sb-field textarea,.sb-property-row>input,.sb-property-row>select{background:var(--sb-surface);border:1px solid var(--sb-line);border-radius:4px;padding:7px 9px;min-width:0;width:100%;font-size:11px}.sb-field textarea{resize:vertical;min-height:60px}.sb-form-row{display:flex;gap:10px;align-items:flex-end}.sb-form-row>.sb-icon-button{margin-bottom:4px}.sb-panel-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.sb-panel-footer>span{font-size:9px;color:var(--sb-muted);flex:1}.sb-block .sb-code-input{font:11px/1.7 SFMono-Regular,Consolas,monospace;tab-size:2;white-space:pre;min-height:175px}.sb-error{font-size:11px;color:#b66550;margin:0!important}.sb-inline-hint{font-size:10px;color:var(--sb-muted);padding:0 19px;margin:12px 0!important}.sb-editor-panel>.sb-inline-hint{padding:0;margin:0!important}.sb-segmented{display:flex;background:var(--sb-soft);padding:2px;border-radius:4px}.sb-segmented>button{width:26px;height:23px;border-radius:3px;display:flex;align-items:center;justify-content:center;color:var(--sb-muted)}.sb-segmented>.is-active{background:var(--sb-surface);box-shadow:0 1px 3px #0000000a}.sb-chart-legend{display:flex;align-items:center;gap:15px;flex-wrap:wrap;padding:8px 19px 6px}.sb-chart-legend>button{display:flex;align-items:center;gap:6px;font-size:10px;color:var(--sb-muted);padding:3px 0;border-radius:3px}.sb-chart-legend>button:hover{background:none;text-decoration:underline}.sb-chart-legend>button>span:not([data-showai-note]),.sb-dot{display:inline-block;width:6px;height:6px;border-radius:50%;flex-shrink:0}.sb-chart-legend>.is-muted{opacity:.4;text-decoration:line-through}.sb-chart-unit{margin-left:auto;font-size:9px;color:var(--sb-muted)}.sb-chart-canvas{padding:0 11px;position:relative;touch-action:pan-y}.sb-chart-canvas>svg{display:block;width:100%;height:auto;overflow:visible}.sb-chart-grid{stroke:var(--sb-line);stroke-dasharray:3 4;stroke-width:1}.sb-chart-label{font-size:10px;fill:var(--sb-muted);font-family:inherit}.sb-chart-crosshair{stroke:var(--sb-muted);stroke-width:1;stroke-dasharray:3 3;opacity:.5;pointer-events:none}.sb-chart-tooltip{position:absolute;top:13px;pointer-events:none;border:1px solid var(--sb-line);background:var(--sb-surface);border-radius:6px;padding:9px 12px;box-shadow:0 5px 20px #00000010;font-size:10px;min-width:112px;z-index:2}.sb-chart-tooltip>strong{display:block;font-size:10px;font-weight:500;margin-bottom:5px}.sb-chart-tooltip>div{display:flex;align-items:center;gap:6px;color:var(--sb-muted);margin-top:3px}.sb-chart-tooltip b{font-weight:500;margin-left:auto;color:var(--sb-text);padding-left:10px}.sb-data-details{border-top:1px solid var(--sb-line);font-size:10px;margin-top:10px}.sb-data-details>summary{list-style:none;cursor:pointer;padding:11px 19px;color:var(--sb-muted);display:flex;align-items:center;gap:8px;user-select:none}.sb-data-details>summary::-webkit-details-marker{display:none}.sb-data-details>summary:before{content:"\\203a";font-size:15px;line-height:1;transition:transform .15s}.sb-data-details[open]>summary:before{transform:rotate(90deg)}.sb-data-details>summary>span{margin-left:auto;font-size:9px}.sb-table-scroll{overflow:auto;max-width:100%;overscroll-behavior-x:contain}.sb-block table{border-collapse:collapse;width:100%;margin:0!important;font-size:11px;table-layout:auto}.sb-block th,.sb-block td{border:0;border-bottom:1px solid var(--sb-line);border-right:1px solid var(--sb-line);text-align:left;padding:9px 12px;vertical-align:middle;min-width:85px}.sb-block th:last-child,.sb-block td:last-child{border-right:0}.sb-block tbody tr:last-child>td{border-bottom:0}.sb-block th{font-weight:500;color:var(--sb-muted);background:var(--sb-soft);font-size:10px}.sb-block .sb-data-details th,.sb-block .sb-data-details td{padding:8px 19px}.sb-data-details .sb-table-scroll{max-height:320px}.sb-database-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 15px;border-bottom:1px solid var(--sb-line);min-height:43px}.sb-view-tabs{display:flex;align-self:stretch;gap:13px;flex-shrink:0}.sb-view-tabs>button{display:flex;gap:5px;align-items:center;padding:7px 2px;font-size:10px;position:relative;color:var(--sb-muted)}.sb-view-tabs>button.is-active{background:none;color:var(--sb-accent)}.sb-view-tabs>button.is-active:after{content:"";position:absolute;left:0;right:0;height:2px;background:var(--sb-accent);bottom:-1px}.sb-view-tabs>button:hover{background:none}.sb-database-tools{display:flex;align-items:center;gap:5px;min-width:0}.sb-search{display:flex;align-items:center;gap:5px;max-width:155px;color:var(--sb-muted)}.sb-search>input{min-width:0;width:90px;border:0;background:transparent;padding:6px 0;font-size:10px;color:var(--sb-text)}.sb-search .sb-icon-button{width:19px}.sb-filter-row,.sb-board-grouping{display:flex;align-items:center;gap:9px;padding:10px 17px;font-size:10px;color:var(--sb-muted);flex-wrap:wrap;border-bottom:1px solid var(--sb-line);background:var(--sb-soft)}.sb-filter-row select,.sb-board-grouping select{font-size:10px;border:1px solid var(--sb-line);padding:4px 6px;background:var(--sb-surface);border-radius:4px;max-width:180px}.sb-property-list{display:flex;flex-direction:column;gap:9px}.sb-property-row{display:flex;gap:8px;align-items:center}.sb-property-row>input{flex:2}.sb-property-row>select{flex:1.2}.sb-property-row>.sb-options-input{flex:2}.sb-database-table th{padding:0}.sb-database-table th>button{display:flex;align-items:center;gap:6px;padding:10px 12px;white-space:nowrap;width:100%;font-size:10px;text-align:left}.sb-type-symbol{font-size:10px;color:var(--sb-muted);min-width:13px;font-weight:400}.sb-database-table td{padding:0;min-width:115px;height:37px}.sb-database-table tbody tr:hover{background:color-mix(in srgb,var(--sb-soft) 50%,transparent)}.sb-cell-value{padding:8px 12px;display:block;overflow-wrap:anywhere;max-width:420px}.sb-placeholder{color:var(--sb-muted);opacity:.6}.sb-cell-input-wrap{display:flex;min-width:0;align-items:center}.sb-cell-input{border:0;background:transparent;outline-offset:-2px!important;min-width:70px;width:100%;padding:9px 12px;font-size:11px!important;height:37px}.sb-cell-input-wrap>.sb-icon-button{margin-right:5px}.sb-cell-link{color:var(--sb-accent);padding:8px 12px;display:flex;align-items:center;gap:6px;text-decoration:none;overflow-wrap:anywhere;max-width:350px}.sb-cell-link:hover{text-decoration:underline}.sb-cell-select{font-size:10px!important;border:0;border-radius:3px;padding:2px 5px;margin:7px 10px;max-width:calc(100% - 20px);outline-offset:1px!important;background:var(--sb-soft)}.sb-database-table input[type=checkbox]{display:block;margin:0 13px;width:13px;height:13px}.sb-tag{display:inline-flex;align-items:center;gap:5px;font-size:10px;border-radius:3px;padding:1px 7px;white-space:nowrap;background:var(--sb-soft);color:var(--sb-text);max-width:100%;overflow:hidden;text-overflow:ellipsis}.sb-database-table .sb-tag{margin:7px 12px}.sb-tag-0{background:#e9eee2;color:#6b7c53}.sb-tag-1{background:#e8eef4;color:#5b7a9a}.sb-tag-2{background:#f3edde;color:#9a804d}.sb-tag-3{background:#f0e8ee;color:#986e91}.sb-tag-4{background:#f3e7e0;color:#a3765d}.sb-block .sb-row-action{min-width:33px;width:33px;text-align:center;padding:0}.sb-row-action>.sb-icon-button{opacity:0}.sb-database-table tr:hover .sb-row-action>.sb-icon-button,.sb-row-action>.sb-icon-button:focus-visible{opacity:1}.sb-block .sb-add-row{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--sb-muted);padding:10px 13px;width:100%;text-align:left}.sb-database-footer{padding:9px 15px;border-top:1px solid var(--sb-line);color:var(--sb-muted);font-size:9px;display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:35px}.sb-database-footer>span{display:flex;gap:9px;align-items:center}.sb-pagination{display:flex;gap:8px;align-items:center}.sb-pagination>button{font-size:9px;color:var(--sb-muted);padding:3px;border-radius:3px}.sb-board-grouping{border:0;background:transparent}.sb-board-hint{margin-left:auto;font-size:9px}.sb-board{display:flex;gap:12px;overflow:auto;padding:8px 15px 16px;align-items:flex-start;max-height:600px}.sb-board-column{flex:1;min-width:200px;max-width:290px;background:var(--sb-soft);border:1px solid transparent;padding:8px;border-radius:6px;transition:border-color .2s}.sb-board-column.is-droppable{border-color:var(--sb-line)}.sb-board-column.is-droppable:hover{border-color:var(--sb-accent)}.sb-board-column-header{display:flex;gap:8px;align-items:center;font-size:9px;color:var(--sb-muted);margin-bottom:9px;padding:0 2px}.sb-board-column-header>.sb-icon-button{margin-left:auto;height:20px;width:20px}.sb-board-card{border:1px solid var(--sb-line);border-radius:5px;background:var(--sb-surface);padding:6px 4px;margin-bottom:8px;box-shadow:0 2px 3px #00000002;transition:opacity .15s,box-shadow .15s}.sb-board-card[draggable=true]{cursor:grab}.sb-board-card[draggable=true]:active{cursor:grabbing}.sb-board-card:hover{box-shadow:0 2px 8px #00000006}.sb-board-card.is-dragging{opacity:.35}.sb-board-card-title{font-size:11px;font-weight:500;min-width:0}.sb-board-card-field{display:flex;align-items:center;gap:5px;padding:0 6px}.sb-board-card-field>span:first-child{font-size:9px;color:var(--sb-muted);width:47px;flex-shrink:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sb-board-card-field input{min-width:0}.sb-board-card .sb-cell-input{padding:5px;height:29px;font-size:10px!important}.sb-board-card .sb-cell-input-wrap{flex:1}.sb-board-card .sb-cell-value{padding:5px;font-size:10px;line-height:1.5}.sb-board-card .sb-cell-link{padding:5px;font-size:9px;max-width:140px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.sb-board-card .sb-cell-select{margin:3px 5px;max-width:125px}.sb-board-card input[type=checkbox]{width:12px;height:12px}.sb-board-card-footer{display:flex;justify-content:space-between;align-items:center;padding:7px 6px 0;margin-top:5px;border-top:1px solid var(--sb-line)}.sb-board-card-footer>select{font-size:9px;border:0;background:var(--sb-soft);padding:4px 6px;border-radius:3px;color:var(--sb-muted);max-width:150px}.sb-board-card-footer .sb-icon-button{width:21px;height:21px}.sb-board-column>.sb-add-row{padding:5px;font-size:9px}.sb-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));padding:9px 0 20px}.sb-metric{padding:3px 22px;border-right:1px solid var(--sb-line);min-width:0}.sb-metric:last-child{border-right:0}.sb-metric-label{color:var(--sb-muted);font-size:10px}.sb-metric-value{font-size:31px;line-height:1.5;letter-spacing:-1px;font-weight:500;overflow-wrap:anywhere}.sb-metric-figure{font-variant-numeric:tabular-nums}.sb-metric-value>span:not(.sb-metric-figure){font-size:12px;font-weight:400;color:var(--sb-muted);letter-spacing:0;margin-left:6px}.sb-metric-foot{display:flex;flex-wrap:wrap;gap:5px 8px;font-size:9px;color:var(--sb-muted);margin-top:3px;min-height:17px}.sb-trend{display:inline-flex;align-items:center;gap:2px;color:var(--sb-accent)}.sb-trend.is-negative{color:#bd7b62}.sb-metric-editors{display:flex;flex-direction:column;gap:15px}.sb-metric-editor,.sb-parameter-editor{padding-top:13px;border-top:1px solid var(--sb-line);display:flex;flex-direction:column;gap:9px}.sb-playground-body{display:grid;grid-template-columns:1.4fr 1fr;gap:28px;padding:13px 22px 24px}.sb-parameters{display:flex;flex-direction:column;gap:24px}.sb-parameter{min-width:0}.sb-parameter-label{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:11px;margin-bottom:7px}.sb-parameter-label>div{display:flex;align-items:center;gap:5px;color:var(--sb-muted);font-size:9px}.sb-parameter-label input{width:64px;padding:3px 5px;font-size:11px;border:1px solid var(--sb-line);border-radius:4px;background:var(--sb-surface);text-align:right}.sb-parameter input[type=range]{display:block;width:100%;height:5px;margin:13px 0 9px;appearance:none;border-radius:5px;background:linear-gradient(to right,var(--sb-accent) var(--range-progress),var(--sb-line) var(--range-progress));cursor:pointer}.sb-parameter input[type=range]::-webkit-slider-thumb{appearance:none;width:13px;height:13px;background:var(--sb-surface);border:2px solid var(--sb-accent);border-radius:50%;box-shadow:0 1px 3px #0002;transition:box-shadow .15s}.sb-parameter input[type=range]::-webkit-slider-thumb:hover{box-shadow:0 0 0 4px var(--sb-accent-soft)}.sb-parameter input[type=range]::-moz-range-thumb{width:10px;height:10px;background:var(--sb-surface);border:2px solid var(--sb-accent);border-radius:50%}.sb-range-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--sb-muted)}.sb-calculation-result{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;background:transparent;border:0;font-size:10px;color:var(--sb-muted);min-width:0}.sb-calculation-result>strong{font-size:30px;font-weight:500;color:var(--sb-accent);letter-spacing:-1px;line-height:1.5;overflow-wrap:anywhere;max-width:100%}.sb-calculation-result small{font-size:10px;color:var(--sb-muted);letter-spacing:0;font-weight:400;margin-left:5px}.sb-formula{font-size:9px;line-height:1.8;margin-top:5px}.sb-local-state-note{font-size:8px;letter-spacing:.3px;border-top:1px solid var(--sb-line);margin-top:20px;padding-top:9px;width:100%;color:var(--sb-muted)}.sb-bookmark>.sb-header{padding-bottom:8px}.sb-block.sb-bookmark .sb-bookmark-link{display:flex;align-items:stretch;gap:12px;color:inherit;text-decoration:none;margin:0;padding:0;border:1px solid var(--sb-line);border-radius:8px;background:var(--sb-soft);overflow:hidden;transition:background .15s,border-color .15s}.sb-block.sb-bookmark .sb-bookmark-link:hover{background:var(--sb-hover);border-color:color-mix(in srgb,var(--sb-accent) 20%,var(--sb-line));text-decoration:none}.sb-bookmark-copy{flex:1;min-width:0;padding:10px 12px}.sb-bookmark-copy>strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.sb-bookmark-copy>p{font-size:11px;color:var(--sb-muted);line-height:1.6;margin:4px 0 6px!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.sb-bookmark-domain{display:flex;gap:6px;align-items:center;color:var(--sb-muted);font-size:9px;margin-top:6px}.sb-bookmark-domain>svg:last-child{margin-left:auto}.sb-bookmark-link>img{display:block;object-fit:cover;width:120px;max-height:140px;align-self:stretch;border:0;border-radius:0}.sb-gallery-grid{display:grid;gap:13px;padding:8px 18px 18px}.sb-gallery-columns-1{grid-template-columns:1fr}.sb-gallery-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sb-gallery-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sb-gallery-grid:has(>figure:only-child){grid-template-columns:1fr}.sb-gallery-grid figure{margin:0!important;min-width:0}.sb-gallery-grid figure>button{display:block;position:relative;width:100%;aspect-ratio:4/3;border-radius:5px;overflow:hidden;background:var(--sb-soft);padding:0}.sb-gallery-grid figure>button>img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s;max-width:100%;margin:0!important;border:0!important;border-radius:0!important}.sb-gallery-columns-1 figure>button{aspect-ratio:16/9}.sb-gallery-grid figure>button:hover>img{transform:scale(1.025)}.sb-gallery-grid figcaption{color:var(--sb-muted);font-size:10px;padding:7px 2px 0;line-height:1.6;overflow-wrap:anywhere}.sb-gallery-expand{position:absolute;right:8px;bottom:8px;width:27px;height:27px;display:flex;align-items:center;justify-content:center;border-radius:4px;background:#ffffffd9;color:#343a35;opacity:0;transition:opacity .15s}.sb-gallery-grid figure>button:hover .sb-gallery-expand,.sb-gallery-grid figure>button:focus-visible .sb-gallery-expand{opacity:1}.sb-gallery-editor{display:flex;gap:11px;align-items:flex-start;border-top:1px solid var(--sb-line);padding-top:14px}.sb-gallery-editor-preview{width:70px;height:70px;flex-shrink:0;background:var(--sb-surface);border:1px solid var(--sb-line);border-radius:5px;display:flex;align-items:center;justify-content:center;margin-top:18px;color:var(--sb-muted);overflow:hidden}.sb-gallery-editor-preview>img{object-fit:cover;width:100%;height:100%;margin:0!important;border:0!important;border-radius:0!important}.sb-gallery-editor-fields{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}.sb-gallery-editor-actions{display:flex;flex-direction:column;gap:3px;padding-top:18px}.sb-lightbox{position:fixed;inset:0;background:#101611f2;backdrop-filter:blur(12px);z-index:500;display:flex;align-items:center;justify-content:center;padding:50px 65px;color:#f1f5ee;font-family:Avenir Next,PingFang SC,sans-serif;animation:sb-reveal .2s ease}.sb-lightbox figure{margin:0;min-width:0;max-width:100%;max-height:100%;display:flex;flex-direction:column}.sb-lightbox figure>img{animation:showai-pop-in var(--duration-slow) var(--ease-out);max-width:100%;max-height:calc(100dvh - 150px);object-fit:contain;display:block;margin:auto}.sb-lightbox figcaption{font-size:12px;line-height:1.8;text-align:center;padding:15px 0;overflow-wrap:anywhere}.sb-lightbox figcaption>span{display:block;color:#a8b2a7;font-size:10px;padding-top:5px}.sb-lightbox>button{position:absolute;background:#ffffff0b;border:1px solid #ffffff15;color:#f1f5ee;cursor:pointer;width:39px;height:39px;border-radius:50%;display:flex;align-items:center;justify-content:center}.sb-lightbox>button:hover{background:#ffffff20}.sb-lightbox>button:focus-visible{outline:2px solid #b8ceba;outline-offset:4px}.sb-lightbox-close{top:20px;right:22px}.sb-lightbox-prev{left:15px}.sb-lightbox-next{right:15px}.sb-unavailable{padding:20px;background:var(--sb-soft)}.sb-unavailable-heading{display:flex;gap:12px;align-items:flex-start}.sb-unavailable-heading>svg{color:var(--sb-muted);margin-top:3px}.sb-unavailable-heading strong{font-size:12px;font-weight:500}.sb-unavailable-heading p{font-size:10px;color:var(--sb-muted);line-height:1.8;margin:5px 0!important}.sb-unavailable>.sb-data-details{margin:10px 0 13px}.sb-unavailable .sb-data-details>summary{padding-left:0}.sb-unavailable pre{font:10px/1.7 monospace;overflow:auto;max-height:300px;white-space:pre;background:var(--sb-surface);padding:12px;border:1px solid var(--sb-line);border-radius:5px}.sb-block input[type=number]{font-variant-numeric:tabular-nums}.sb-block .sb-cell-input[type=number]{appearance:textfield}.sb-block .sb-cell-input[type=number]::-webkit-inner-spin-button{appearance:none}:root[data-theme=dark] .sb-tag-0{background:#34432d;color:#c1d2ae}:root[data-theme=dark] .sb-tag-1{background:#2d3e4b;color:#b1c8df}:root[data-theme=dark] .sb-tag-2{background:#443d2b;color:#d5c59e}:root[data-theme=dark] .sb-tag-3{background:#443142;color:#d1b3ca}:root[data-theme=dark] .sb-tag-4{background:#49372d;color:#d9bfa9}@keyframes sb-reveal{0%{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.sb-header{padding:4px}.sb-title{font-size:11px;gap:6px}.sb-description{font-size:9px}.sb-actions{gap:3px}.sb-editor-panel{padding:14px 12px}.sb-form-row{gap:8px;flex-wrap:wrap}.sb-form-row>.sb-field{flex-basis:80px}.sb-panel-footer{gap:10px}.sb-panel-footer>span{flex-basis:100%}.sb-database-toolbar{padding:0 10px;gap:8px;flex-wrap:wrap}.sb-view-tabs{height:37px}.sb-database-tools{padding-bottom:4px}.sb-search{max-width:110px}.sb-search>input{width:68px}.sb-property-row{flex-wrap:wrap}.sb-property-row>.sb-options-input{flex-basis:100%;order:3}.sb-property-row>.sb-icon-button{width:22px}.sb-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 0}.sb-metric{padding:0 16px}.sb-metric:nth-child(2n){border-right:0}.sb-metric-value{font-size:27px}.sb-playground-body{padding:13px 15px 18px;gap:20px;grid-template-columns:1fr}.sb-calculation-result{padding:15px}.sb-calculation-result>strong{font-size:29px}.sb-local-state-note{margin-top:10px}.sb-board-column{min-width:185px}.sb-bookmark-copy{padding:10px 12px}.sb-bookmark-link>img{width:100px;max-height:150px}.sb-bookmark-copy>strong{font-size:12px}.sb-bookmark-copy>p{font-size:10px}.sb-gallery-grid{padding:7px 12px 14px;gap:10px}.sb-gallery-columns-3{grid-template-columns:repeat(2,minmax(0,1fr))}.sb-gallery-editor-preview{width:45px;height:45px}.sb-gallery-editor{gap:7px}.sb-gallery-editor-actions{gap:1px}.sb-chart-legend{padding:7px 13px 6px;gap:10px}.sb-chart-tooltip{font-size:9px;padding:6px 9px;max-width:150px}.sb-row-action>.sb-icon-button{opacity:1}.sb-lightbox{padding:55px 42px}.sb-lightbox>button{width:31px;height:31px}.sb-lightbox-prev{left:6px}.sb-lightbox-next{right:6px}}@media(prefers-reduced-motion:reduce){.sb-block *,.sb-lightbox{transition:none!important;animation:none!important}}@media print{.sb-header>.sb-actions,.sb-editor-panel,.sb-database-tools,.sb-filter-row,.sb-board-card-footer,.sb-add-row,.sb-pagination,.sb-lightbox,.sb-gallery-expand,.sb-database-table .sb-row-action{display:none!important}.sb-block{break-inside:avoid;border-color:#ddd;background:#fff;color:#222;--sb-surface: #fff;--sb-soft: #f6f7f4;--sb-line: #ddd;--sb-text: #222;--sb-muted: #666;--sb-accent: #42674e;box-shadow:none}.sb-chart-legend{pointer-events:none}.sb-chart-grid{stroke:#ddd}.sb-table-scroll,.sb-board{overflow:visible;max-height:none}.sb-gallery-grid,.sb-metric-grid{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.sb-primitive{margin:0;min-width:0;overflow-wrap:anywhere}.sb-rich-text{line-height:1.75}.sb-rich-text>:first-child{margin-top:0}.sb-rich-text>:last-child{margin-bottom:0}.sb-rich-text h1,.sb-rich-text h2,.sb-rich-text h3{line-height:1.35;letter-spacing:-.02em}.sb-rich-text blockquote{margin:20px 0;padding:8px 18px;border-left:3px solid #62836b;background:#edf3ee}.sb-rich-text pre{padding:14px;overflow:auto;background:#f1f3ef;border-radius:5px}.sb-rich-text img,.sb-image img{display:block;max-width:100%}.sb-image figcaption{font-size:12px;color:#73796f;text-align:center;padding-top:9px}.sb-image-empty{padding:55px 15px;background:#f1f3ef;text-align:center;color:#73796f}.sb-primitive-editor{margin-top:14px;font-size:12px;color:#73796f}.sb-primitive-editor summary{cursor:pointer}.sb-primitive-editor textarea,.sb-primitive-editor input{display:block;width:100%;padding:8px;border:1px solid #dce1d7;border-radius:5px;background:#fff;font:inherit;color:#292d29}.sb-primitive-editor textarea{min-height:130px;margin-top:8px}.sb-primitive-editor label{display:block;margin-top:8px}.sb-table-scroll{overflow-x:auto}.sb-table table,.sb-rich-text table{width:100%;border-collapse:collapse;font-size:inherit}.sb-table th,.sb-table td,.sb-rich-text th,.sb-rich-text td{padding:10px 14px;text-align:left;border-bottom:1px solid #dce1d7}.sb-table th,.sb-table td{border:1px solid var(--line, var(--border, #e8ece5))}.sb-table th,.sb-rich-text th{background:#f1f3ef;font-weight:600}.sb-table input{width:100%;min-width:70px;color:inherit;background:transparent;border:0;font:inherit}.sb-table-actions{display:flex;gap:12px;margin-top:10px;font-size:12px}.sb-toggle>summary{cursor:pointer;font-weight:600;padding:8px 0}.sb-toggle>.sb-text{padding:8px 0 8px 20px}.sb-callout>strong{display:block;margin-bottom:7px}.sb-code pre{margin:0;padding:16px;overflow-x:auto;background:#f1f3ef;border-radius:5px;font:13px/1.65 ui-monospace,monospace}.sb-code textarea{width:100%;margin-top:10px;min-height:130px;font:13px/1.65 ui-monospace,monospace}.table-alignment-buttons{display:inline-flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--border, #dedee5);border-radius:6px;background:var(--surface, #fff);box-shadow:0 2px 8px #0000000d;color:var(--muted, #70717c)}.table-alignment-buttons>button{display:inline-flex;align-items:center;justify-content:center;width:26px;height:24px;padding:0;border:0;border-radius:4px;background:transparent;color:inherit;cursor:pointer}.table-alignment-buttons>button:hover,.table-alignment-buttons>button:focus-visible{background:var(--hover, #f1f1f5);color:var(--text, #222)}.table-alignment-buttons>button:focus-visible{outline:2px solid var(--accent, #635bff);outline-offset:1px}.table-alignment-buttons>button[aria-pressed=true]{background:color-mix(in srgb,var(--accent, #635bff) 12%,transparent);color:var(--accent, #635bff)}.sb-table,.sb-table-frame,.sb-table th{position:relative}.sb-table input{text-align:inherit}.sb-table-global-alignment,.sb-table-context-menu,.table-global-alignment{display:flex;align-items:center;gap:4px;width:max-content;padding:3px 4px;border:1px solid var(--border, #dedee5);border-radius:7px;background:var(--surface, #fff);box-shadow:0 3px 12px #00000012;color:var(--muted, #70717c);font-size:11px;line-height:1.4;white-space:nowrap;text-align:left}.sb-table-global-alignment .table-alignment-buttons,.sb-table-context-menu .table-alignment-buttons,.table-global-alignment .table-alignment-buttons{border:0;box-shadow:none}.sb-table-context-menu{position:absolute;z-index:20}.document-table-controls,.table-hover-controls{position:fixed;z-index:1100}@media print{.sb-table-global-alignment,.sb-table-column-alignment,.sb-table-context-menu,.document-table-controls,.table-hover-controls{display:none!important}}.sb-block>.sb-data-details:not([open]),.sb-primitive>.sb-primitive-editor:not([open]){position:absolute;right:0;bottom:0;z-index:6;margin:0;border:0}.sb-block>.sb-data-details:not([open])>summary,.sb-primitive-editor:not([open])>summary{opacity:0;padding:6px 10px;background:var(--sb-surface, #fff);border-radius:4px}.sb-data-details:not([open]):hover>summary,.sb-data-details:not([open]):focus-within>summary,.sb-primitive-editor:not([open]):hover>summary,.sb-primitive-editor:not([open]):focus-within>summary{opacity:1}.sb-primitive{position:relative}.sb-table-actions{position:absolute;right:0;top:0;z-index:6;margin:0;padding:6px 10px;background:var(--paper, #fff);border-radius:4px;opacity:0}.sb-table-actions:hover,.sb-table-actions:focus-within{opacity:1}.sb-gallery-grid,.sb-metric-grid{padding-inline:0}.sb-chart-legend{padding-left:0;padding-right:0}.sb-g2-chart>.sb-g2-toolbar{position:absolute;right:0;top:36px;z-index:7;margin:0;padding:5px 8px;background:var(--sb-surface);border-radius:5px;opacity:0}.sb-g2-chart>.sb-g2-toolbar:hover,.sb-g2-chart>.sb-g2-toolbar:focus-within{opacity:1}.sb-g2-toolbar>span{display:none}@media(hover:none){.sb-header>.sb-actions,.sb-block>.sb-data-details:not([open])>summary,.sb-primitive-editor:not([open])>summary,.sb-table-actions,.sb-g2-chart>.sb-g2-toolbar{opacity:1}}@media print{.sb-header>.sb-actions,.sb-block>.sb-data-details:not([open]),.sb-primitive-editor,.sb-table-actions,.sb-g2-toolbar{display:none!important}}.sb-metric-foot:empty{display:none}.sb-board-column>.sb-add-row{opacity:0}.sb-board-column>.sb-add-row:hover,.sb-board-column>.sb-add-row:focus-visible{opacity:1}@media(hover:none){.sb-board-column>.sb-add-row{opacity:1}}
|
|
44
|
-
`);var Iu=rt("widget",{"zh-CN":{unavailable:"\u533A\u5757\u6682\u65F6\u65E0\u6CD5\u663E\u793A",needsCheck:"\u533A\u5757\u6570\u636E\u9700\u8981\u68C0\u67E5",notRegistered:"\u5C1A\u672A\u6CE8\u518C\u300C{kind}\u300D\u533A\u5757",dataKept:"\u539F\u59CB\u6570\u636E\u5DF2\u4FDD\u7559\u3002\u6CE8\u518C\u5BF9\u5E94\u7684 React \u7EC4\u4EF6\u540E\u5373\u53EF\u663E\u793A\u3002",viewData:"\u67E5\u770B\u533A\u5757\u6570\u636E",downloadData:"\u4E0B\u8F7D\u533A\u5757\u6570\u636E",renderFailed:"\u7EC4\u4EF6\u6E32\u67D3\u5931\u8D25\u3002",invalidData:"\u533A\u5757\u6570\u636E\u683C\u5F0F\u4E0D\u6B63\u786E\u3002",loading:"\u6B63\u5728\u52A0\u8F7D\u7EC4\u4EF6\u2026"},en:{unavailable:"Block can't be displayed right now",needsCheck:"Block data needs checking",notRegistered:"The \u201C{kind}\u201D block isn't registered",dataKept:"The original data is kept. It will display once the matching React component is registered.",viewData:"View block data",downloadData:"Download block data",renderFailed:"The component failed to render.",invalidData:"The block data format is invalid.",loading:"Loading component\u2026"}});var oa=U(pe(),1),lz=vt(Iu);function H5({kind:e,data:t,error:a}){let n=ue(Iu);return(0,oa.jsxs)("section",{className:"sb-block sb-unavailable","aria-label":n("unavailable"),children:[(0,oa.jsxs)("div",{className:"sb-unavailable-heading",children:[(0,oa.jsx)(_f,{size:20}),(0,oa.jsxs)("div",{children:[(0,oa.jsx)("strong",{children:a?n("needsCheck"):n("notRegistered",{kind:e})}),(0,oa.jsx)("p",{children:a||n("dataKept")})]})]}),(0,oa.jsxs)("details",{className:"sb-data-details",children:[(0,oa.jsx)("summary",{children:n("viewData")}),(0,oa.jsx)("pre",{children:JSON.stringify(t,null,2)})]}),(0,oa.jsxs)("button",{type:"button",className:"sb-button",onClick:()=>Fl(JSON.stringify({kind:e,data:t},null,2),`${e}.json`,"application/json"),children:[(0,oa.jsx)(Cf,{size:14}),n("downloadData")]})]})}var _5=class extends Un.Component{state={error:null};static getDerivedStateFromError(t){return{error:t.message||lz("renderFailed")}}componentDidUpdate(t){this.state.error&&(t.data!==this.props.data||t.kind!==this.props.kind)&&this.setState({error:null})}render(){return this.state.error?(0,oa.jsx)(H5,{kind:this.props.kind,data:this.props.data,error:this.state.error}):this.props.children}},Zx=(0,Un.memo)(function e({kind:t,data:a,onChange:n,readOnly:o,host:r}){let i=(0,Un.useContext)(Mi),l=(0,Un.useContext)(ec),s=(0,Un.useMemo)(()=>({useCatalog:ac,registerComponent:i,renderWidget:p=>(0,oa.jsx)(e,{...p}),assistant:o?null:l}),[i,l,o]);(0,Un.useSyncExternalStore)(Ux,B5,B5);let c=ue(Iu),d=j5(t);if(!d)return(0,oa.jsx)(H5,{kind:t,data:a});if(d.validate)try{d.validate(a)}catch(p){return(0,oa.jsx)(H5,{kind:t,data:a,error:p instanceof Error?p.message:c("invalidData")})}let u=d.renderer;return(0,oa.jsx)(_5,{kind:t,data:a,children:(0,oa.jsx)(Un.Suspense,{fallback:(0,oa.jsx)("section",{className:"sb-block","data-preview-pending":"true",role:"status",style:{minHeight:typeof a.height=="number"?a.height:t.startsWith("g2-")?320:180},children:c("loading")}),children:(0,oa.jsx)(A0.Provider,{value:s,children:(0,oa.jsx)(u,{data:a,onChange:o?void 0:n,readOnly:o,host:r})})})},t)});var Nu=U(pe(),1);function Gx({content:e,data:t}){return(0,Nu.jsx)(Qv,{content:e,data:t,renderWidget:(a,n)=>(0,Nu.jsx)(sz,{kind:a,data:n})})}function sz({kind:e,data:t}){let[a,n]=(0,Du.useState)(t);(0,Du.useEffect)(()=>n(t),[t]);let o=typeof window>"u"?void 0:window.document.querySelector('script#showai-read-options[type="application/json"]')?.textContent,r=o?JSON.parse(o).draft===!0:!1;return(0,Nu.jsx)(Zx,{kind:e,data:a,readOnly:!r,onChange:r?n:void 0})}var U5=U(pe(),1);function qx({document:e,heading:t,presentation:a="spatial",partial:n=!1}){let o=(0,$x.useMemo)(()=>N1(e,{includeTitle:!n}),[e,n]),r=typeof window>"u"?null:window.document.querySelector('script#showai-read-options[type="application/json"]')?.textContent,i=r?JSON.parse(r).nativeInkBackground===!0:!1;return(0,U5.jsx)(qv,{document:o,hideTitle:n,header:t,reading:a==="reading",nativeInkBackground:i,renderContent:({content:l,componentData:s})=>(0,U5.jsx)(Gx,{content:l,data:s})})}var Oo=U(Ne(),1);function Ou(e){return e.text?e.text:e.type==="widget"&&e.attrs?.kind==="text"?Ou(Ul(e.attrs.data)):(e.content??[]).map(Ou).join(e.type==="doc"?`
|
|
45
|
-
`:"")}var Lu={ids:100,labels:20,labelChars:160},Fx=e=>e.replace(/\s+/g," ").trim().slice(0,Lu.labelChars);function Wx(e){if(e.type!=="widget"||e.attrs?.kind!=="text")return[];let t=e.attrs.data;return t&&typeof t=="object"?Ul(t).content??[]:[]}function V5(e,t){if(t.length>=Lu.labels)return;let a=Wx(e);if(a.length){for(let n of a)V5(n,t);return}if(e.content?.some(n=>n.type==="text")){let n=Fx(Ou(e));n&&t.push(n);return}for(let n of e.content??[])V5(n,t)}function Ru(e,t){let a=new Map,n=new Map;Et(e.content,i=>{let l=i.attrs?.id;if(!(typeof l!="string"||["doc","text"].includes(i.type??""))){a.set(l,i);for(let s of Wx(i))Et(s,c=>{typeof c.attrs?.id=="string"&&n.set(c.attrs.id,l)})}});let o=[],r=[];for(let i of t){let l=a.has(i)?i:n.get(i);l?o.includes(l)||o.push(l):r.push(i)}return{ids:o,missing:r,nodes:a}}function Kx(e,t,a){let{document:n}=t,{ids:o,missing:r,nodes:i}=Ru(n,a.blockIds??[]);if(r.length)throw new Error(`Referenced content is not in the saved page: ${r.join(", ")}`);if(a.surfaceId&&!i.has(a.surfaceId))throw new Error(`Referenced Board is not in the saved page: ${a.surfaceId}`);let l=[];if(a.kind==="text"&&a.text)for(let d of a.text.split(`
|
|
46
|
-
`)){let u=Fx(d);u&&l.length<Lu.labels&&l.push(u)}else{let d=o.length?o.map(u=>i.get(u)):[a.surfaceId&&i.get(a.surfaceId)||n.content];for(let u of d)V5(u,l)}let s=o.slice(0,Lu.ids),c=a.kind==="board"?"board":s.length?"selection":"page";return{type:"showai.reference",version:1,kind:c,projectId:e,pageId:n.id,title:n.title,hash:t.hash,...t.revision?{revision:t.revision}:{},...s.length?c==="board"?{nodeIds:s}:{blockIds:s}:{},...a.surfaceId?{surfaceId:a.surfaceId}:{},labels:l,...a.reference?{position:a.reference}:{}}}function cz(e){let t=e.blockIds??e.nodeIds??(e.surfaceId?[e.surfaceId]:[]),a=`showai://project/${encodeURIComponent(e.projectId)}/page/${encodeURIComponent(e.pageId)}`;return t.length?`${a}?blocks=${t.map(encodeURIComponent).join(",")}`:a}var Z5=e=>(e.revision??e.hash).slice(0,7);function Yx(e,t){return`${t}
|
|
47
|
-
${cz(e)}
|
|
48
|
-
${JSON.stringify(e)}`}var mc=rt("reader",{"zh-CN":{draftNote:"\u4EA4\u4E92\u9884\u89C8 \xB7 \u66F4\u6539\u4EC5\u4FDD\u5B58\u5728\u6B64\u9884\u89C8\u4E2D",downloadOriginalSource:"\u4E0B\u8F7D\u539F\u59CB\u6E90\u6587\u4EF6",remoteInlineBlocked:"\u5BF9\u8BDD\u5185\u9875\u9762\u5FC5\u987B\u5B8C\u6574\u6253\u5305\u7EC4\u4EF6\uFF0C\u4E0D\u80FD\u4F7F\u7528\u8FDC\u7A0B\u4F9D\u8D56\u3002",remoteLoadFailed:"\u8FDC\u7A0B\u7EC4\u4EF6\u65E0\u6CD5\u52A0\u8F7D\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u3002",remoteLoading:"\u6B63\u5728\u6821\u9A8C\u5E76\u52A0\u8F7D\u5DF2\u53D1\u5E03\u7684\u56FA\u5B9A\u7248\u672C\u7EC4\u4EF6\u2026",remoteRequired:"\u6B64\u9875\u9762\u4F7F\u7528\u5DF2\u53D1\u5E03\u7684\u56FA\u5B9A\u7248\u672C\u7EC4\u4EF6\uFF0C\u9700\u8981\u8054\u7F51\u52A0\u8F7D\u3002",integrityUnavailable:"\u7EC4\u4EF6\u5B8C\u6574\u6027\u6821\u9A8C\u9700\u8981 HTTPS \u6216\u5728\u672C\u673A\u6253\u5F00\u9875\u9762\u3002",componentFetchFailed:"\u65E0\u6CD5\u52A0\u8F7D\u7EC4\u4EF6 {component}\uFF1A{reason}\u3002\u8BF7\u68C0\u67E5\u7F51\u7EDC\u548C\u53D1\u5E03\u670D\u52A1\u5668\u7684 CORS \u8BBE\u7F6E\u3002",networkFailed:"\u7F51\u7EDC\u8BF7\u6C42\u5931\u8D25",componentChecksumFailed:"\u7EC4\u4EF6 {component} \u7684\u6587\u4EF6\u6821\u9A8C\u5931\u8D25\uFF08SHA-256 \u6216\u5B57\u8282\u6570\u4E0D\u4E00\u81F4\uFF09\u3002",lockedComponentMissing:"\u7F3A\u5C11\u9875\u9762\u9501\u5B9A\u7684\u7EC4\u4EF6 {component}\uFF0C\u539F\u9875\u9762\u672A\u88AB\u66FF\u6362\u3002",emptyPage:"\u9875\u9762\u5185\u5BB9\u4E3A\u7A7A\u3002",unreadablePage:"\u65E0\u6CD5\u8BFB\u53D6\u8FD9\u4EFD\u9875\u9762\u3002",openFailed:"\u65E0\u6CD5\u6253\u5F00\u9875\u9762",referenceSelection:"\u5F15\u7528\u9009\u533A\u5230\u5BF9\u8BDD\uFF08{count}\uFF09",referenceBlock:"\u5F15\u7528\u6B64\u5757\u5230\u5BF9\u8BDD",referencePage:"\u5F15\u7528\u6574\u9875\u5230\u5BF9\u8BDD",referenceClear:"\u53D6\u6D88\u5BF9\u8BDD\u5F15\u7528",referenceAdded:"\u5DF2\u52A0\u5165\u5BF9\u8BDD\u8F93\u5165\u6846 \xB7 \u5F15\u7528\u7248\u672C {version}",referenceCleared:"\u5DF2\u53D6\u6D88\u5BF9\u8BDD\u5F15\u7528",referenceUnavailable:"\u5F53\u524D\u5BF9\u8BDD\u4E0D\u63A5\u6536\u9875\u9762\u5F15\u7528\u3002",referenceHeadingSelection:"ShowAI \u5F15\u7528 \xB7 \u9009\u533A\uFF08{count} \u4E2A\u5757\uFF09\xB7\u300A{title}\u300B\xB7 \u7248\u672C {version}",referenceHeadingBoard:"ShowAI \u5F15\u7528 \xB7 Board \u4E2D {count} \u4E2A\u5BF9\u8C61 \xB7\u300A{title}\u300B\xB7 \u7248\u672C {version}",referenceHeadingBoardAll:"ShowAI \u5F15\u7528 \xB7 \u6574\u4E2A Board \xB7\u300A{title}\u300B\xB7 \u7248\u672C {version}",referenceHeadingPage:"ShowAI \u5F15\u7528 \xB7 \u6574\u9875 \xB7\u300A{title}\u300B\xB7 \u7248\u672C {version}"},en:{draftNote:"Interactive preview \xB7 Changes are kept only in this preview",downloadOriginalSource:"Download original source file",remoteInlineBlocked:"Pages shown in a conversation must bundle their components; remote dependencies aren't allowed.",remoteLoadFailed:"Couldn't load remote components. Check your network.",remoteLoading:"Verifying and loading published component versions\u2026",remoteRequired:"This page uses published component versions and needs a network connection to load them.",integrityUnavailable:"Verifying components requires HTTPS or opening the page locally.",componentFetchFailed:"Couldn't load component {component}: {reason}. Check your network and the publishing server's CORS settings.",networkFailed:"Network request failed",componentChecksumFailed:"Component {component} failed verification (SHA-256 or size mismatch).",lockedComponentMissing:"Component {component} locked by this page is missing. The original page was not replaced.",emptyPage:"The page is empty.",unreadablePage:"Couldn't read this page.",openFailed:"Couldn't open page",referenceSelection:"Reference selection in chat ({count})",referenceBlock:"Reference this block in chat",referencePage:"Reference the page in chat",referenceClear:"Remove the chat reference",referenceAdded:"Added to the chat input \xB7 version {version}",referenceCleared:"Chat reference removed",referenceUnavailable:"This conversation doesn't accept page references.",referenceHeadingSelection:{one:"ShowAI reference \xB7 selection ({count} block) \xB7 \u201C{title}\u201D \xB7 version {version}",other:"ShowAI reference \xB7 selection ({count} blocks) \xB7 \u201C{title}\u201D \xB7 version {version}"},referenceHeadingBoard:{one:"ShowAI reference \xB7 {count} Board object \xB7 \u201C{title}\u201D \xB7 version {version}",other:"ShowAI reference \xB7 {count} Board objects \xB7 \u201C{title}\u201D \xB7 version {version}"},referenceHeadingBoardAll:"ShowAI reference \xB7 whole Board \xB7 \u201C{title}\u201D \xB7 version {version}",referenceHeadingPage:"ShowAI reference \xB7 whole page \xB7 \u201C{title}\u201D \xB7 version {version}"}});var mo=U(pe(),1),dz="showai:conversation-reference";function Xx(e){let t=e?JSON.parse(e).conversation:null;return t&&typeof t.projectId=="string"&&typeof t.pageId=="string"&&typeof t.hash=="string"?{projectId:t.projectId,pageId:t.pageId,title:typeof t.title=="string"?t.title:"",hash:t.hash,...typeof t.revision=="string"?{revision:t.revision}:{}}:null}var G5=e=>e.dataset.blockId??e.dataset.surfaceId;function Jx(e,t){let{clientX:a,clientY:n}=t,o=t.target instanceof Element?b6(t.target):null,r=window.getSelection(),i=r?.rangeCount?r.getRangeAt(0):null,l=o?.ranges??(i&&!i.collapsed?[i]:[]);if(!l.some(d=>[...d.getClientRects()].some(u=>a>=u.left&&a<=u.right&&n>=u.top&&n<=u.bottom)))return null;let c=[...e.querySelectorAll("[data-block-id],[data-surface-id]")].filter(d=>l.some(u=>{if(!u.intersectsNode(d))return!1;let p=document.createRange();return p.selectNodeContents(d),u.compareBoundaryPoints(Range.START_TO_START,p)<=0&&u.compareBoundaryPoints(Range.END_TO_END,p)>=0?!0:(u.compareBoundaryPoints(Range.START_TO_START,p)>0&&p.setStart(u.startContainer,u.startOffset),u.compareBoundaryPoints(Range.END_TO_END,p)<0&&p.setEnd(u.endContainer,u.endOffset),p.toString().trim()!=="")}));return{elements:c.filter(d=>!c.some(u=>u!==d&&d.contains(u))),text:o?.text??r?.toString()??""}}function Qx(e,t,a){let n=ue(mc),[o,r]=(0,Oo.useState)(null),[i,l]=(0,Oo.useState)(!1),[s,c]=(0,Oo.useState)(""),d=(0,Oo.useRef)(null),u=async(m,v="")=>{let T={reference:m,text:v};if(e.current?.dispatchEvent(new CustomEvent(dz,{bubbles:!0,composed:!0,detail:T})),!T.result)throw new Error(n("referenceUnavailable"));await T.result},p=m=>{if(!a)return;let{ids:v}=Ru(t,m.blockIds??[]),T=m.surfaceId&&!Ru(t,[m.surfaceId]).missing.length?m.surfaceId:void 0,w=Kx(a.projectId,{document:t,hash:a.hash,revision:a.revision},{...m,blockIds:v,surfaceId:T,...m.kind!=="page"&&!v.length&&!T?{kind:"page"}:{}}),E=n(w.kind==="page"?"referenceHeadingPage":w.kind==="board"?w.nodeIds?.length?"referenceHeadingBoard":"referenceHeadingBoardAll":"referenceHeadingSelection",{title:w.title||a.title,count:(w.blockIds??w.nodeIds??[]).length,version:Z5(w)});u(w,Yx(w,E)).then(()=>{l(!0),c(n("referenceAdded",{version:Z5(w)}))}).catch(L=>c(L.message))},g=()=>{u(null).then(()=>{l(!1),c(n("referenceCleared"))}).catch(m=>c(m.message))};(0,Oo.useEffect)(()=>{let m=e.current;if(!a||!m)return;let v=null,T=E=>{E.button===2&&(v={at:E.timeStamp,selection:Jx(m,E)})},w=E=>{let L=E.target;if(E.shiftKey||L.closest("input,textarea,select,a[href],[contenteditable=true]"))return;E.preventDefault();let H=v&&E.timeStamp-v.at<1e3?v.selection:Jx(m,E);v=null,r({x:E.clientX,y:E.clientY,selection:H?.elements??[],text:H?.text??"",block:L.closest("[data-block-id],[data-surface-id]")})};return m.addEventListener("pointerdown",T,!0),m.addEventListener("contextmenu",w),()=>{m.removeEventListener("pointerdown",T,!0),m.removeEventListener("contextmenu",w)}},[e,a]),(0,Oo.useEffect)(()=>{if(!o)return;let m=v=>{v instanceof KeyboardEvent&&v.key!=="Escape"||v instanceof PointerEvent&&d.current?.contains(v.target)||r(null)};return window.addEventListener("pointerdown",m,!0),window.addEventListener("keydown",m,!0),window.addEventListener("scroll",m,!0),()=>{window.removeEventListener("pointerdown",m,!0),window.removeEventListener("keydown",m,!0),window.removeEventListener("scroll",m,!0)}},[o]),(0,Oo.useEffect)(()=>{if(!s)return;let m=setTimeout(()=>c(""),3e3);return()=>clearTimeout(m)},[s]),(0,Oo.useEffect)(()=>{let m=d.current;if(!m||!o)return;let v=m.getBoundingClientRect();m.style.left=`${Math.max(8,Math.min(o.x,innerWidth-v.width-8))}px`,m.style.top=`${Math.max(8,Math.min(o.y,innerHeight-v.height-8))}px`,m.querySelector("button")?.focus()},[o]);let y=m=>{let v=Ke(t,m)?.parent;return v?.type==="surface"&&v.attrs?.kind==="board"?v.attrs.id:void 0},b=(m,v)=>{let T=m.map(G5),w=T.map(y);return w[0]&&w.every(E=>E===w[0])?{kind:"board",blockIds:T,surfaceId:w[0]}:v?{kind:"text",blockIds:m.map(G5),text:v}:{kind:"blocks",blockIds:m.map(G5)}},x=m=>{r(null),m()};return{contextMenu:o&&(0,mo.jsxs)("div",{ref:d,className:"portable-options-menu portable-context-menu",role:"menu",style:{left:o.x,top:o.y},children:[o.selection.length?(0,mo.jsxs)("button",{role:"menuitem",onClick:()=>x(()=>p(b(o.selection,o.text))),children:[(0,mo.jsx)(Ui,{size:15}),n("referenceSelection",{count:o.selection.length})]}):o.block&&(0,mo.jsxs)("button",{role:"menuitem",onClick:()=>x(()=>p(b([o.block]))),children:[(0,mo.jsx)(Ui,{size:15}),n("referenceBlock")]}),(0,mo.jsxs)("button",{role:"menuitem",onClick:()=>x(()=>p({kind:"page"})),children:[(0,mo.jsx)(Ui,{size:15}),n("referencePage")]}),i&&(0,mo.jsxs)("button",{role:"menuitem",onClick:()=>x(g),children:[(0,mo.jsx)(on,{size:15}),n("referenceClear")]})]}),status:s&&(0,mo.jsx)("div",{className:"portable-reference-status",role:"status",children:s})}}ct(`@charset "UTF-8";.portable-draft-note{padding:10px 24px;color:var(--text-secondary);background:var(--surface);border-bottom:1px solid var(--border);font-size:12px}:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;--bg: #fff;--surface: #fff;--text: #292d29;--text-secondary: #70756f;--muted: #8a8f87;--border: #e6e8e1;--accent: #34644e;--accent-soft: #edf3ea;--hover: #f2f4ef;--editor-bg: #fff;color-scheme:light}:root[data-theme=dark]{color-scheme:dark;--bg: #191d1a;--surface: #202621;--text: #e6eae3;--text-secondary: #a0aaa0;--muted: #8c978c;--border: #363f35;--accent: #a0c7a3;--accent-soft: #283b2d;--hover: #293029;--editor-bg: #191d1a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}button,input,select{font:inherit}button{cursor:pointer;background:transparent;border:1px solid transparent;color:inherit}button:hover{background:var(--hover)}button,a,input,select{outline-offset:4px}button:focus-visible,a:focus-visible{outline:2px solid var(--accent)}a{color:var(--accent)}html{scroll-behavior:smooth}.portable-options{position:fixed;right:24px;top:20px;z-index:30}.portable-options-trigger{width:36px;height:36px;display:grid;place-items:center;border-radius:8px;color:var(--text-secondary)}.portable-options-menu{position:absolute;right:0;top:43px;width:178px;padding:5px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 8px 32px #17221512;animation:menu-appear .12s ease-out}.portable-options-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:10px;border-radius:6px;font-size:13px;text-align:left}.portable-options-menu svg{color:var(--text-secondary)}.portable-context-menu{position:fixed;right:auto;z-index:40;width:max-content;max-width:min(320px,calc(100vw - 16px))}.portable-reference-status{position:fixed;left:50%;bottom:18px;z-index:40;max-width:calc(100vw - 32px);padding:8px 14px;border:1px solid var(--border);border-radius:8px;background:var(--surface);box-shadow:0 8px 32px #17221512;color:var(--text-secondary);font-size:13px;transform:translate(-50%)}.portable-document{max-width:960px;margin:0 auto;padding:90px 44px 96px}.portable-title{font-weight:600;letter-spacing:-.035em;font-size:42px;line-height:1.22;margin:0 0 32px;overflow-wrap:anywhere}.portable-page-heading{display:flex;align-items:flex-start;gap:14px;min-width:0;margin-bottom:32px}.portable-page-icon{flex-shrink:0}.portable-page-heading .portable-title{flex:1;min-width:0;margin:0}.portable-partial .portable-document{padding:24px}.portable-partial .surface-reading-heading:empty{display:none}.portable-content{overflow-wrap:anywhere}.portable-content>:first-child{margin-top:0}.portable-content p{white-space:pre-wrap}.portable-image{display:block;max-width:100%;height:auto;margin:22px auto;border-radius:5px;object-fit:contain}.portable-table-scroll>table{table-layout:fixed}.portable-table-scroll>table>tbody>tr>th,.portable-table-scroll>table>tbody>tr>td{min-width:70px}.portable-callout{display:flex;gap:11px;margin:22px 0;border-radius:6px;padding:14px 17px;background:var(--accent-soft)}.portable-callout.tone-sage{background:color-mix(in srgb,#a9c495 18%,var(--surface))}.portable-callout.tone-sand{background:color-mix(in srgb,#d5b677 19%,var(--surface))}.portable-callout.tone-blue{background:color-mix(in srgb,#93b9cd 18%,var(--surface))}.portable-callout.tone-rose{background:color-mix(in srgb,#cb9493 16%,var(--surface))}.portable-callout-icon{flex:0 0 24px;font-size:18px}.portable-callout>div{min-width:0;flex:1}.portable-callout>div>:first-child{margin-top:0}.portable-callout>div>:last-child{margin-bottom:0}.portable-toggle{margin:17px 0}.portable-toggle summary{cursor:pointer;font-weight:550}.portable-toggle summary::marker{color:var(--accent)}.portable-toggle-body{border-left:1px solid var(--border);margin:8px 0 0 7px;padding-left:21px}.portable-widget{margin:25px 0}.portable-error{max-width:600px;margin:15vh auto;padding:30px}.portable-error h1{font-size:24px;font-weight:500}.portable-error p{font-size:15px;line-height:1.8;color:var(--text-secondary)}.portable-network-note{color:var(--text-secondary);font-size:13px;line-height:1.6;margin:-12px 0 20px}.portable-network-error{padding:12px 14px;color:#b8463c;border:1px solid currentColor;border-radius:6px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}:root[data-theme=dark] .portable-network-error{color:#f18c80}@keyframes menu-appear{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}@media(max-width:700px){.portable-options{right:14px;top:12px}.portable-document{padding:76px 22px 64px}.portable-title{font-size:32px;margin-bottom:24px}.portable-page-heading{margin-bottom:24px}.portable-table-scroll>table{display:block;overflow-x:auto}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media print{.portable-options,.portable-context-menu,.portable-reference-status{display:none!important}.portable-document{max-width:none;margin:0;padding:0}.portable-title{font-size:30px}.portable-content{font-size:11pt}body,:root{--bg: #fff;--surface: #fff;--text: #111;--text-secondary: #444;--border: #ddd;background:#fff!important;color:#000!important}a{color:inherit}button{border:0}table,figure,.widget-block{break-inside:avoid}}
|
|
49
|
-
`);ct(`:root,.studio,.studio.settings-view,.studio-modal-shade,.studio-context-menu,[data-showai-inline-root]{--font-sans: "Airbnb Cereal VF", "Circular", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;--font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;--brand: #120a8f;--action: #120a8f;--action-hover: #0d076b;--text: #222222;--muted: #6a6a6a;--subtle: #929292;--paper: #ffffff;--surface: #fafafa;--line: #dddddd;--hover: #f7f7f7;--accent: var(--action);--accent-soft: #eeedf9;--brand-accent: var(--brand);--danger: #c13515;--selected: #f2f2f2;--bg: var(--paper);--border: var(--line);--text-secondary: var(--muted);--editor-bg: var(--paper);--radius-control: 8px;--radius-card: 16px;--radius-panel: 20px;--radius-pill: 999px;--space-unit: 8px;--shadow: 0 0 0 1px #00000005, 0 2px 6px #0000000a, 0 4px 8px #00000014;--shadow-dialog: 0 16px 64px #00000024;--studio-topbar-height: 56px;font-family:var(--font-sans);font-weight:500;font-synthesis:none;color-scheme:light;color:var(--text);letter-spacing:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}:root[data-theme=dark],:root[data-theme=dark] .studio,:root[data-theme=dark] .studio.settings-view,:root[data-theme=dark] .studio-modal-shade,:root[data-theme=dark] .studio-context-menu,[data-showai-inline-root][data-theme=dark]{--text: #f7f7f7;--muted: #b0b0b0;--subtle: #929292;--paper: #181818;--surface: #222222;--line: #414141;--hover: #2c2c2c;--accent: #aaa4ff;--brand-accent: #aaa4ff;--accent-soft: #25233f;--selected: #2c2c2c;--danger: #ff9c86;--shadow: 0 0 0 1px #ffffff08, 0 2px 6px #00000030, 0 4px 8px #00000040;--shadow-dialog: 0 16px 64px #00000066;color-scheme:dark}:root,[data-showai-inline-root]{--ease-out: cubic-bezier(.23, 1, .32, 1);--ease-in-out: cubic-bezier(.77, 0, .175, 1);--duration-fast: .14s;--duration-base: .2s;--duration-slow: .32s}@keyframes showai-fade-in{0%{opacity:0}}@keyframes showai-pop-in{0%{opacity:0;scale:.96}}@keyframes showai-rise-in{0%{opacity:0;translate:0 8px}}@keyframes showai-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.showai-text-shimmer{color:transparent;background:linear-gradient(90deg,var(--muted) 0%,var(--muted) 35%,var(--text) 50%,var(--muted) 65%,var(--muted) 100%) 0 0 / 200% 100%;-webkit-background-clip:text;background-clip:text;animation:showai-shimmer 2s linear infinite}button,input,textarea,select{font-family:inherit}button{transition:background-color .15s ease,color .15s ease,border-color .15s ease,transform .15s ease}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid var(--text);outline-offset:3px}input:is([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],[type=reset]):focus-visible,select:focus-visible{outline:2px solid var(--text);outline-offset:2px}input:not([type=checkbox],[type=radio],[type=range],[type=color],[type=file],[type=button],[type=submit],[type=reset]):focus,textarea:focus{outline:none}input::placeholder,textarea::placeholder{color:var(--subtle)}::selection{background:var(--accent-soft);color:var(--text)}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
|
|
50
|
-
`);ct(`:root{--reading-text: #494650;--reading-heading: #383042;--reading-accent: #120a8f;--reading-highlight: #e6e1fc;--reading-code: #f0eef9}:root[data-theme=dark]{--reading-text: #d4d1dd;--reading-heading: #e4dfec;--reading-accent: #bbb3ff;--reading-highlight: #37304f;--reading-code: #29243a}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-text){font-family:var(--font-sans);font-size:16px;font-weight:400;line-height:1.8;letter-spacing:0;color:var(--reading-text)}.sb-text>.sb-rich-text{font:inherit;line-height:inherit}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(h1,h2,h3,h4,h5,h6){color:var(--reading-heading);font-weight:600;letter-spacing:-.3px;scroll-margin-top:80px}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) h1{font-size:28px;line-height:1.35;margin:40px 0 14px}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) h2{font-size:22px;line-height:1.4;margin:34px 0 12px}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) h3{font-size:18px;line-height:1.45;margin:26px 0 8px}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(h4,h5,h6){font-size:16px;line-height:1.5;margin:20px 0 6px}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(h1,h2,h3,h4,h5,h6)+:is(h2,h3,h4,h5,h6){margin-top:14px}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) p{margin:0 0 14px}:is(.document-content,.portable-editor .tiptap,.portable-content) mark:not(:where(.sb-block *,.showai-custom-block *)),.sb-text .sb-rich-text mark{--showai-highlight-start: 43%;color:inherit;background:linear-gradient(transparent var(--showai-highlight-start),var(--showai-highlight-color, var(--reading-highlight)) var(--showai-highlight-start));box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:0 1px;border-radius:0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) mark[data-highlight-mode=full]{--showai-highlight-start: 0%}:is(.document-content,.portable-editor .tiptap,.portable-content) strong:not(:where(.sb-block *,.showai-custom-block *)),.sb-text .sb-rich-text strong{font-weight:600}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) mark{background-color:transparent!important}:root[data-theme=dark] :is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) mark{background-image:linear-gradient(transparent var(--showai-highlight-start, 43%),color-mix(in srgb,var(--showai-highlight-color, var(--reading-highlight)) 22%,transparent) var(--showai-highlight-start, 43%))}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) em{color:var(--reading-accent);font-style:normal;font-weight:550}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) a{color:var(--reading-accent);text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) blockquote{border-left:3px solid color-mix(in srgb,var(--reading-accent) 45%,transparent);background:none;color:var(--reading-text);padding:2px 0 2px 16px;margin:18px 0;border-radius:0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) blockquote p{margin:0 0 8px}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul,ol){padding-left:1.5em;margin:0 0 14px}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) li{margin:4px 0;padding-left:.2em}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) li>p{margin:0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) li>:is(ul,ol){margin:4px 0 0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) ol{font-variant-numeric:tabular-nums}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul[data-type=taskList],.portable-task-list){list-style:none;padding-left:0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul[data-type=taskList],.portable-task-list)>li{display:flex;align-items:flex-start;gap:10px;padding-left:0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul[data-type=taskList],.portable-task-list)>li>label{flex:0 0 auto;display:inline-flex;align-items:center;height:1.8em}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul[data-type=taskList],.portable-task-list) input[type=checkbox]{appearance:none;-webkit-appearance:none;flex:0 0 auto;width:15px;height:15px;margin:0;border:1.5px solid color-mix(in srgb,var(--reading-text) 40%,transparent);border-radius:4px;background:transparent;cursor:pointer;--task-tick: #ffffff}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul[data-type=taskList],.portable-task-list) input[type=checkbox]:checked{border-color:var(--reading-accent);background-color:var(--reading-accent)}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul[data-type=taskList],.portable-task-list) input[type=checkbox]:checked:before{content:"";display:block;width:4px;height:8px;margin:1px 0 0 4px;border:solid var(--task-tick);border-width:0 2px 2px 0;transform:rotate(45deg)}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul[data-type=taskList],.portable-task-list) input[type=checkbox]:disabled{cursor:default}:root[data-theme=dark] :is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul[data-type=taskList],.portable-task-list) input[type=checkbox]:checked{--task-tick: #201c2e}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul[data-type=taskList],.portable-task-list) input[type=checkbox]:focus-visible{outline:2px solid var(--reading-accent);outline-offset:2px}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) .portable-task-list>li>input[type=checkbox]{margin-top:calc(.9em - 7.5px)}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul[data-type=taskList],.portable-task-list)>li>div{flex:1;min-width:0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul[data-type=taskList],.portable-task-list)>li>div>p{margin:0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(ul[data-type=taskList],.portable-task-list)>li[data-checked=true]>div>p{color:var(--muted);text-decoration:line-through}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) li::marker{color:var(--reading-accent)}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) code{font-family:var(--font-mono);font-size:.875em;color:var(--reading-accent);background:var(--reading-code);border-radius:4px;padding:.1em .35em}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) pre,.sb-code pre{border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--reading-text);padding:16px 20px;margin:18px 0;font:13.5px/1.7 var(--font-mono);white-space:pre;tab-size:2;overflow-x:auto}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) pre code{font:inherit;color:inherit;background:transparent;padding:0;border-radius:0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) hr{border:0;border-top:1px solid var(--line);margin:28px 0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text)>:first-child{margin-top:0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text)>:last-child{margin-bottom:0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(blockquote,li,th,td,.callout-content>div,.toggle-body>div>div,.portable-callout>div,.portable-toggle-body)>:last-child{margin-bottom:0}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) :is(blockquote,li,th,td,.callout-content>div,.toggle-body>div>div,.portable-callout>div,.portable-toggle-body)>:first-child{margin-top:0}.document-content .document-image,.portable-editor .document-image,.portable-image,.sb-rich-text img,.sb-image img{border-radius:14px}:is(.document-content,.portable-editor .tiptap,.portable-content) :is(.tableWrapper,.portable-table-scroll):not(.sb-block *){overflow-x:auto;margin:18px 0}:is(.document-content,.portable-editor .tiptap,.portable-content) table:not(.sb-block table),.sb-rich-text table{border-collapse:collapse;width:100%;font-size:15px;line-height:1.6}:is(.document-content,.portable-editor .tiptap,.portable-content) :is(th,td):not(.sb-block :is(th,td)),.sb-rich-text :is(th,td){padding:8px 12px;border:1px solid var(--line);vertical-align:top;text-align:start}:is(.document-content,.portable-editor .tiptap,.portable-content) th:not(.sb-block th),.sb-rich-text th{background:var(--surface);color:var(--reading-heading);font-weight:600}:is(.document-content,.portable-editor .tiptap,.portable-content) :is(th,td):not(.sb-block :is(th,td))>p,.sb-rich-text :is(th,td)>p{margin:0}:is(.document-content,.portable-editor .tiptap,.portable-content) :is(th,td):not(.sb-block :is(th,td))>p+p,.sb-rich-text :is(th,td)>p+p{margin-top:6px}.sb-table table{font-size:inherit;line-height:inherit}.sb-table :is(th,td){padding:12px 16px;border-color:var(--line)}.sb-table th{background:var(--surface);font-weight:600}.sb-primitive{font-family:var(--font-sans)}.sb-image figcaption,.sb-primitive-editor{color:var(--muted);font-size:13px;line-height:1.5}.sb-image-empty{border-radius:14px;background:var(--surface);color:var(--muted)}.sb-primitive-editor :is(input,textarea){border:1px solid var(--line);border-radius:8px;padding:12px;background:var(--paper);color:var(--text)}.sb-code textarea{font-family:var(--font-mono);background:var(--paper);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:12px}.sb-block{font-family:var(--font-sans);font-size:14px;font-weight:500;line-height:1.6;border-radius:16px}.sb-header{padding:20px 24px 16px}.sb-title{font-size:16px;font-weight:600}.sb-description{font-size:14px;line-height:1.6}.sb-block :is(.sb-button,.sb-icon-button){border-radius:8px}.sb-block .sb-button{min-height:36px;font-size:14px}.sb-metric-value{font-weight:700;letter-spacing:-.02em}.sb-bookmark-copy>strong{font-size:16px;line-height:1.4;font-weight:600}.sb-bookmark-copy>p{font-size:14px;line-height:1.6}.portable-document{max-width:1000px;padding:80px 64px 96px}.portable-title{font-size:32px;font-weight:700;letter-spacing:-.02em;line-height:1.25;margin-bottom:32px}.portable-options-trigger{border-radius:50%;width:40px;height:40px}.portable-options-menu{border-radius:16px;box-shadow:var(--shadow);padding:8px}.portable-options-menu button{border-radius:8px;min-height:40px;font-size:14px}.portable-toggle summary{font-weight:600}@media(max-width:700px){.portable-document{padding:76px 24px 64px}.portable-title{font-size:28px}.sb-header{padding:16px}:is(.document-content,.portable-editor .tiptap,.portable-content,.sb-rich-text) pre,.sb-code pre{padding:16px}}@media print{.portable-document{max-width:none;padding:0}.sb-block{--sb-accent: #222222}}.document-content .page-document-flow>:first-child:not(.document-content :not(:first-child) *){margin-top:0}.document-content .page-document-flow>:last-child:not(.document-content :not(:last-child) *){margin-bottom:0}
|
|
51
|
-
`);var pt=U(pe(),1),zl=vt(mc);function uz(e){let{code:t,params:a}=e??{},n=a?.component??"";return t==="INTEGRITY_UNAVAILABLE"?zl("integrityUnavailable"):t==="COMPONENT_FETCH_FAILED"?zl("componentFetchFailed",{component:n,reason:a?.reason||zl("networkFailed")}):t==="COMPONENT_CHECKSUM_FAILED"?zl("componentChecksumFailed",{component:n}):e instanceof Error?e.message:zl("remoteLoadFailed")}function pz(e,t,a,n,o){let r=URL.createObjectURL(new Blob([Rh(e,t,a,n,o)],{type:"application/json"})),i=window.document.createElement("a");i.href=r,i.download=`${e.title.replace(/[^\p{L}\p{N} _-]/gu,"").trim()||"page"}.showai.json`,i.click(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}function mz({artifact:e,host:t}){let{inlineHost:a}=t,n=ue(mc),o=ue(Xa),{document:r}=e,i=(0,ra.useMemo)(()=>{let E=t.readOptions();return E?JSON.parse(E).draft===!0:!1},[t]),[l,s]=(0,ra.useState)(()=>{let E=t.readOptions();return E?JSON.parse(E).theme==="dark":window.matchMedia("(prefers-color-scheme: dark)").matches}),[c,d]=(0,ra.useState)(!1),u=(0,ra.useRef)(null),p=(0,ra.useRef)(null),g=(0,ra.useMemo)(()=>Xx(t.readOptions()),[t]),y=Qx(p,r,g),b=(0,ra.useRef)(null),[x,f]=(0,ra.useState)([]),[m,v]=(0,ra.useState)(""),[T,w]=(0,ra.useState)(!!e.remoteComponents?.length);return(0,ra.useEffect)(()=>{if(!e.remoteComponents?.length)return;if(a){v(n("remoteInlineBlocked")),w(!1);return}let E=new AbortController,L=!0;return w(!0),Ah(e.remoteComponents,{signal:E.signal}).then(H=>{L&&(f(H),v(""))}).catch(H=>{L&&v(uz(H))}).finally(()=>{L&&w(!1)}),()=>{L=!1,E.abort()}},[e.remoteComponents]),(0,ra.useEffect)(()=>{t.setTheme(l?"dark":"light")},[l,t]),(0,ra.useEffect)(()=>{if(!c)return;let E=H=>{u.current?.contains(H.target)||d(!1)},L=H=>{H.key==="Escape"&&(d(!1),b.current?.focus())};return window.document.addEventListener("pointerdown",E),window.document.addEventListener("keydown",L),()=>{window.document.removeEventListener("pointerdown",E),window.document.removeEventListener("keydown",L)}},[c]),(0,pt.jsxs)("div",{ref:p,className:`portable-app${e.selection?" portable-partial":""}`,children:[i&&(0,pt.jsx)("div",{className:"portable-draft-note",role:"status",children:n("draftNote")}),(0,pt.jsxs)("div",{className:"portable-options",ref:u,children:[(0,pt.jsx)("button",{ref:b,className:"portable-options-trigger","aria-label":o("pageOptions"),"aria-expanded":c,"aria-controls":"page-options",onClick:()=>d(!c),children:(0,pt.jsx)(e0,{size:19})}),c&&(0,pt.jsxs)("div",{className:"portable-options-menu",id:"page-options",children:[(0,pt.jsxs)("button",{onClick:()=>{pz(r,e.components,e.remoteComponents,e.presentation,e.selection),d(!1)},children:[(0,pt.jsx)(Ur,{size:15})," ",i?n("downloadOriginalSource"):o("downloadSource")]}),(0,pt.jsxs)("button",{onClick:()=>{s(!l),d(!1)},children:[l?(0,pt.jsx)(qf,{size:15}):(0,pt.jsx)(Lf,{size:15}),o(l?"lightAppearance":"darkAppearance")]}),(0,pt.jsxs)("button",{onClick:()=>{d(!1),window.print()},children:[(0,pt.jsx)(Hf,{size:15})," ",o("print")]})]})]}),y.contextMenu,y.status,(0,pt.jsx)(Fm,{components:[...e.components??[],...x],inlineHost:a,children:(0,pt.jsx)(qx,{document:r,presentation:e.presentation,partial:!!e.selection,heading:(0,pt.jsxs)(pt.Fragment,{children:[!a&&!e.selection&&(r.icon||r.title)&&(0,pt.jsxs)("div",{className:"portable-page-heading",children:[r.icon&&(0,pt.jsx)("div",{className:"portable-page-icon",children:(0,pt.jsx)(Kn,{value:r.icon,size:48})}),r.title&&(0,pt.jsx)("h1",{className:"portable-title",children:r.title})]}),!!e.remoteComponents?.length&&(0,pt.jsx)("p",{className:"portable-network-note",children:n(T?"remoteLoading":"remoteRequired")}),m&&(0,pt.jsx)("p",{role:"alert",className:"portable-network-error",children:m})]})})})]})}function fz({host:e}){let t=ue(mc);(0,ra.useLayoutEffect)(()=>Kl(window.document),[]);let a=(0,ra.useMemo)(()=>{let n=e.readArtifact();if(!n||n.trim()==="null")return{error:zl("emptyPage")};try{return{artifact:Lh(n)}}catch(o){return{error:o instanceof Error?o.message:zl("unreadablePage")}}},[e]);return a.artifact?(0,pt.jsx)(mz,{artifact:a.artifact,host:e}):(0,pt.jsxs)("main",{className:"portable-error",children:[(0,pt.jsx)("h1",{children:t("openFailed")}),(0,pt.jsx)("p",{children:a.error})]})}function tw(e,t){x6(v6(t.inlineHost?.lang||window.document.documentElement.lang||navigator.language));let a=(0,ew.createRoot)(e);return a.render((0,pt.jsx)(ra.StrictMode,{children:(0,pt.jsx)(fz,{host:t})})),()=>a.unmount()}var gz=0;function P_(e,{artifact:t,options:a,standalone:n=!1}){if(e.id||(e.id=`showai-cdn-${++gz}`),!/^[A-Za-z][\w-]*$/.test(e.id))throw new Error("The ShowAI root needs a simple id.");n||e.setAttribute("data-showai-inline-root",""),e.querySelectorAll(":scope > [data-showai-placeholder]").forEach(c=>c.remove());let o=e.ownerDocument.createElement("div");o.id=`${e.id}-root`,e.append(o);let r=rf(e,{scoped:!n}),i=typeof t=="string"?t:JSON.stringify(t),l=a?JSON.stringify(a):null,s=tw(o,{inlineHost:n?null:e,readArtifact:()=>i,readOptions:()=>l,setTheme:c=>{(n?e.ownerDocument.documentElement:e).dataset.theme=c}});return()=>{s(),r(),o.remove()}}export{P_ as mount};
|
|
52
|
-
/*! For license information please see reader-7TTEBDMO.js.LEGAL.txt */
|