reacthub-pixitweenjs 0.2.88 → 0.2.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -6,11 +6,11 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var fy=_t,cy=Symbol.for("react.element"),hy=Symbol.for("react.fragment"),dy=Object.prototype.hasOwnProperty,py=fy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vy={key:!0,ref:!0,__self:!0,__source:!0};function fc(e,t,r){var n,i={},o=null,l=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)dy.call(t,n)&&!vy.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:cy,type:e,key:o,ref:l,props:i,_owner:py.current}}$s.Fragment=hy,$s.jsx=fc,$s.jsxs=fc,uc.exports=$s;var Yt=uc.exports,Sn=(e=>(e.BlackAndWhite="BlackAndWhite",e.Sepia="Sepia",e.RetroVintage="RetroVintage",e.NightVision="NightVision",e.Normal="Normal",e.None="Normal",e))(Sn||{});let cc;function hc(){return cc=document.body,cc}function mr(e,t,r){let n;return _t.useEffect(()=>{n=n||hc();const i=o=>{const l=o.detail;t(l)};return n.addEventListener(e,i,!1),()=>{n==null||n.removeEventListener(e,i,!1)}},r),i=>{n=i}}function Jn(e,t){const r=hc(),n=new CustomEvent(e,{detail:t});r.dispatchEvent(n)}function gy(){let e;function t(r){e=r}return t.emit=function(r,n){const i=new CustomEvent(r,{bubbles:!0,detail:n});e==null||e.dispatchEvent(i)},t}const ti=Et.createContext({}),ke={STOP:"GSAP_STOP",PAUSE:"GSAP_PAUSE",PLAY:"GSAP_PLAY",RESUME:"GSAP_RESUME",RESTART:"GSAP_RESTART",REPEAT:"GSAP_REPEAT",SEEK:"GSAP_SEEK",RESET:"GSAP_RESET",COMPLETE:"GSAP_COMPLETE",SEEK_START:"GSAP_SEEK_START",SEEK_END:"GSAP_SEEK_END",SCRUBBER_SEEK:"GSAP_SCRUBBER_SEEK",SCRUBBER_PROGRESS_UPDATE:"GSAP_SCRUBBER_PROGRESS_UPDATE",SCRUBBER_PLAY:"GSAP_SCRUBBER_PLAY",SCRUBBER_PAUSE:"GSAP_SCRUBBER_PAUSE",TRANSFORMER_DRAG_START:"TRANSFORMER_DRAG_START",TRANSFORMER_DRAG_END:"TRANSFORMER_DRAG_END"},my=({children:e})=>{const[t,r]=_t.useState(!1),n=_t.useRef(),i=_t.useRef(),o=_t.useRef(.001);_t.useLayoutEffect(()=>(i.current=Te.context(()=>{n.current&&n.current.progress(0).kill(),n.current&&n.current.clear(),n.current&&Te.killTweensOf(n.current),n.current=Te.timeline({paused:!0,defaults:{duration:0}})}),()=>{n.current&&(n.current.progress(0).kill(),Te.killTweensOf(n.current)),i.current.revert()}),[]);const l=_t.useCallback(()=>{if(n.current){let b=n.current.time();o.current=b}},[]);_t.useEffect(()=>{if(n.current){const _=n.current;_.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){_.pause(),l()}).eventCallback("onUpdate",function(){l()}).eventCallback("onComplete",function(){_.pause(),_.revert(),Jn(ke.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),l()})}},[]);const u=_t.useCallback(()=>{n.current&&n.current.revert()},[]),f=_t.useCallback(()=>{n.current&&n.current.restart()},[]),h=_t.useCallback(()=>{if(n.current){const _=n.current;_.repeat(1),_.restart()}},[]),d=_t.useCallback(_=>{n.current&&n.current.seek(_)},[]),p=_t.useCallback(()=>{n.current&&n.current.seek(4)},[]),c=_t.useCallback(()=>{const _=n.current;return _?_.totalDuration():0},[]),v=()=>{n.current&&(n.current.pause(),Jn(ke.PAUSE))},m=()=>{n.current&&(n.current.resume(),Jn(ke.RESUME))};return mr(ke.SEEK_START,()=>{r(!0)}),mr(ke.SCRUBBER_PLAY,()=>{m()}),mr(ke.SCRUBBER_PAUSE,()=>{v()}),mr(ke.SCRUBBER_SEEK,_=>{d(_)}),mr(ke.SEEK_END,()=>{r(!1)}),mr(ke.SCRUBBER_PROGRESS_UPDATE,_=>{}),Yt.jsx(ti.Provider,{value:{gsapCtx:i,tl:n,handlePlay:m,handlePause:v,handleReset:u,handleSeek:d,handleSeekTest:p,handleRestart:f,handleRepeat:h,playerTimeRef:o,isDragging:t,getTimelineDuration:c},children:e})},yy=({pixiTransformerRef:e,imageRef:t,isMounted:r,transformCommit:n,transformChange:i,mouseoverEvent:o,onDoubleClick:l,uniqueId:u="",isText:f=!1})=>{const h=zr.utils.string2hex("#F3C409"),d=zr.utils.string2hex("#F3C409"),p=Et.useRef({isDragging:!1}),c=300,v=Et.useRef(0),m=Et.useCallback(()=>{o&&!p.current.isDragging&&o(!0)},[o]),_=Et.useCallback(()=>{o&&!p.current.isDragging&&o(!1)},[o]),b=Et.useCallback(()=>{p.current.isDragging=!0;const T=new Date().getTime();T-v.current<c&&l&&l(),v.current=T},[]),y=Et.useCallback(T=>{p.current.isDragging=!0,i&&i(T),Jn(ke.TRANSFORMER_DRAG_START,{uniqueId:"timeline"})},[i]),w=Et.useCallback(()=>{if(t.current===null)return;const T=t.current.x,x=t.current.y,E=t.current.width,I=t.current.height,A=t.current.rotation,O=[t.current.scale.x,t.current.scale.y],L=O[0]<0?-1:1,R=O[1]<0?-1:1;n&&(n({uniqueId:u,transformation:{x:Math.round(T),y:Math.round(x),width:Math.round(Math.max(5,E)),height:Math.round(Math.max(5,I)),rotation:A,scale:f?O:[L,R]}}),Jn(ke.TRANSFORMER_DRAG_END,{uniqueId:"timeline"})),p.current.isDragging=!1},[n]);return Et.useEffect(()=>(e.current&&(e.current.on("mouseover",m),e.current.on("mouseout",_),e.current.on("mousedown",b)),()=>{e.current&&(e.current.off("mouseover",m),e.current.off("mouseout",_),e.current.off("mousedown",b))}),[]),Yt.jsx(ay.Transformer,{ref:e,group:r?[t.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:2,color:d},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:h,shape:"circle",radius:10},transformchange:y,transformcommit:w})},_y=e=>{let t={};switch(e){case"NONE":case"none":break;case"BOUNCE_IN":t.from={duration:2,ease:"bounce.out",y:-1500};break;case"BOUNCE_IN_DOWN":t.from={ease:"bounce.out",y:-1500,duration:2};break;case"BOUNCE_IN_LEFT":t.from={ease:"bounce.out",x:-1500,duration:2};break;case"BOUNCE_IN_RIGHT":t.from={ease:"bounce.out",x:1500,duration:2};break;case"BOUNCE_IN_UP":t.from={ease:"bounce.out",y:1500,duration:2};break;case"BOUNCE_OUT":t.from={ease:"bounce.in",y:2,duration:2};break;case"BOUNCE_OUT_DOWN":break;case"BOUNCE_OUT_LEFT":break;case"BOUNCE_OUT_RIGHT":break;case"BOUNCE_OUT_UP":break;case"FADE_IN":t.to={ease:"power4.in",alpha:1,duration:1};break;case"FADE_IN_DOWN":t.fromTo={from:{y:-1e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break;case"FADE_IN_LEFT":t.fromTo={from:{x:-1e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_RIGHT":t.fromTo={from:{x:2e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_UP":t.fromTo={from:{y:2e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break}return t};var by=Object.prototype;function xy(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||by;return e===r}var dc=xy;function wy(e,t){return function(r){return e(t(r))}}var Ty=wy,Ey=Ty,Sy=Ey(Object.keys,Object),Ay=Sy,Oy=dc,Cy=Ay,Ry=Object.prototype,Iy=Ry.hasOwnProperty;function Py(e){if(!Oy(e))return Cy(e);var t=[];for(var r in Object(e))Iy.call(e,r)&&r!="constructor"&&t.push(r);return t}var pc=Py,Ny=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,vc=Ny,My=vc,ky=typeof self=="object"&&self&&self.Object===Object&&self,Ly=My||ky||Function("return this")(),Mr=Ly,Fy=Mr,By=Fy.Symbol,Gs=By,gc=Gs,mc=Object.prototype,Dy=mc.hasOwnProperty,Uy=mc.toString,Xi=gc?gc.toStringTag:void 0;function $y(e){var t=Dy.call(e,Xi),r=e[Xi];try{e[Xi]=void 0;var n=!0}catch{}var i=Uy.call(e);return n&&(t?e[Xi]=r:delete e[Xi]),i}var Gy=$y,jy=Object.prototype,qy=jy.toString;function zy(e){return qy.call(e)}var Hy=zy,yc=Gs,Vy=Gy,Wy=Hy,Xy="[object Null]",Ky="[object Undefined]",_c=yc?yc.toStringTag:void 0;function Yy(e){return e==null?e===void 0?Ky:Xy:_c&&_c in Object(e)?Vy(e):Wy(e)}var Ki=Yy;function Zy(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Yi=Zy,Qy=Ki,Jy=Yi,t0="[object AsyncFunction]",e0="[object Function]",r0="[object GeneratorFunction]",n0="[object Proxy]";function i0(e){if(!Jy(e))return!1;var t=Qy(e);return t==e0||t==r0||t==t0||t==n0}var bc=i0,s0=Mr,o0=s0["__core-js_shared__"],a0=o0,za=a0,xc=function(){var e=/[^.]+$/.exec(za&&za.keys&&za.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l0(e){return!!xc&&xc in e}var u0=l0,f0=Function.prototype,c0=f0.toString;function h0(e){if(e!=null){try{return c0.call(e)}catch{}try{return e+""}catch{}}return""}var wc=h0,d0=bc,p0=u0,v0=Yi,g0=wc,m0=/[\\^$.*+?()[\]{}|]/g,y0=/^\[object .+?Constructor\]$/,_0=Function.prototype,b0=Object.prototype,x0=_0.toString,w0=b0.hasOwnProperty,T0=RegExp("^"+x0.call(w0).replace(m0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E0(e){if(!v0(e)||p0(e))return!1;var t=d0(e)?T0:y0;return t.test(g0(e))}var S0=E0;function A0(e,t){return e==null?void 0:e[t]}var O0=A0,C0=S0,R0=O0;function I0(e,t){var r=R0(e,t);return C0(r)?r:void 0}var ei=I0,P0=ei,N0=Mr,M0=P0(N0,"DataView"),k0=M0,L0=ei,F0=Mr,B0=L0(F0,"Map"),Ha=B0,D0=ei,U0=Mr,$0=D0(U0,"Promise"),G0=$0,j0=ei,q0=Mr,z0=j0(q0,"Set"),H0=z0,V0=ei,W0=Mr,X0=V0(W0,"WeakMap"),K0=X0,Va=k0,Wa=Ha,Xa=G0,Ka=H0,Ya=K0,Tc=Ki,ri=wc,Ec="[object Map]",Y0="[object Object]",Sc="[object Promise]",Ac="[object Set]",Oc="[object WeakMap]",Cc="[object DataView]",Z0=ri(Va),Q0=ri(Wa),J0=ri(Xa),t1=ri(Ka),e1=ri(Ya),An=Tc;(Va&&An(new Va(new ArrayBuffer(1)))!=Cc||Wa&&An(new Wa)!=Ec||Xa&&An(Xa.resolve())!=Sc||Ka&&An(new Ka)!=Ac||Ya&&An(new Ya)!=Oc)&&(An=function(e){var t=Tc(e),r=t==Y0?e.constructor:void 0,n=r?ri(r):"";if(n)switch(n){case Z0:return Cc;case Q0:return Ec;case J0:return Sc;case t1:return Ac;case e1:return Oc}return t});var Rc=An;function r1(e){return e!=null&&typeof e=="object"}var Zi=r1,n1=Ki,i1=Zi,s1="[object Arguments]";function o1(e){return i1(e)&&n1(e)==s1}var a1=o1,Ic=a1,l1=Zi,Pc=Object.prototype,u1=Pc.hasOwnProperty,f1=Pc.propertyIsEnumerable,c1=Ic(function(){return arguments}())?Ic:function(e){return l1(e)&&u1.call(e,"callee")&&!f1.call(e,"callee")},Za=c1,h1=Array.isArray,kr=h1,d1=9007199254740991;function p1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=d1}var Qa=p1,v1=bc,g1=Qa;function m1(e){return e!=null&&g1(e.length)&&!v1(e)}var js=m1,qs={exports:{}};function y1(){return!1}var _1=y1;qs.exports,function(e,t){var r=Mr,n=_1,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===i,u=l?r.Buffer:void 0,f=u?u.isBuffer:void 0,h=f||n;e.exports=h}(qs,qs.exports);var Ja=qs.exports,b1=Ki,x1=Qa,w1=Zi,T1="[object Arguments]",E1="[object Array]",S1="[object Boolean]",A1="[object Date]",O1="[object Error]",C1="[object Function]",R1="[object Map]",I1="[object Number]",P1="[object Object]",N1="[object RegExp]",M1="[object Set]",k1="[object String]",L1="[object WeakMap]",F1="[object ArrayBuffer]",B1="[object DataView]",D1="[object Float32Array]",U1="[object Float64Array]",$1="[object Int8Array]",G1="[object Int16Array]",j1="[object Int32Array]",q1="[object Uint8Array]",z1="[object Uint8ClampedArray]",H1="[object Uint16Array]",V1="[object Uint32Array]",le={};le[D1]=le[U1]=le[$1]=le[G1]=le[j1]=le[q1]=le[z1]=le[H1]=le[V1]=!0,le[T1]=le[E1]=le[F1]=le[S1]=le[B1]=le[A1]=le[O1]=le[C1]=le[R1]=le[I1]=le[P1]=le[N1]=le[M1]=le[k1]=le[L1]=!1;function W1(e){return w1(e)&&x1(e.length)&&!!le[b1(e)]}var X1=W1;function K1(e){return function(t){return e(t)}}var Y1=K1,zs={exports:{}};zs.exports,function(e,t){var r=vc,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,l=o&&r.process,u=function(){try{var f=i&&i.require&&i.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}}();e.exports=u}(zs,zs.exports);var Z1=zs.exports,Q1=X1,J1=Y1,Nc=Z1,Mc=Nc&&Nc.isTypedArray,t_=Mc?J1(Mc):Q1,tl=t_,e_=pc,r_=Rc,n_=Za,i_=kr,s_=js,o_=Ja,a_=dc,l_=tl,u_="[object Map]",f_="[object Set]",c_=Object.prototype,h_=c_.hasOwnProperty;function d_(e){if(e==null)return!0;if(s_(e)&&(i_(e)||typeof e=="string"||typeof e.splice=="function"||o_(e)||l_(e)||n_(e)))return!e.length;var t=r_(e);if(t==u_||t==f_)return!e.size;if(a_(e))return!e_(e).length;for(var r in e)if(h_.call(e,r))return!1;return!0}var p_=d_;const el=En(p_);var rl=(e=>(e.NONE="none",e.NORMAL="normal",e.LENSFLARE="lensflare",e.FILMSTRIP="filmstrip",e.GRUNGE="grunge",e.BRICKS="bricks",e))(rl||{});const kc={normal:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",blendmode:"ADD",alpha:0},lensflare:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",blendmode:"ADD",alpha:1},filmstrip:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/frames_filmstrip_5.png",blendmode:"ADD",alpha:1},grunge:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/pixi_overlay_grunge_60.jpg",blendmode:"ADD",alpha:1},bricks:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/bricks_Overlay_100.jpg",blendmode:"MULTIPLY",alpha:1}},v_=e=>{const{overlay:t,width:r,height:n,x:i,y:o}=e,{src:l,blendmode:u}=kc[t]||kc.normal;return Yt.jsx(me.TilingSprite,{image:l,width:r,height:n,x:i,y:o,tilePosition:{x:0,y:0},tileScale:.5,alpha:.5,anchor:.5})},g_=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],ni=Et.forwardRef((e,t)=>{const[r,n]=Et.useState(!1),[i,o]=_t.useState(!1),[l,u]=_t.useState(!1),f=_t.useRef(null),h=_t.useRef(null),d=_t.useRef(null),p=_t.useRef(null),c=_t.useRef(e.initialAlpha),{tl:v}=_t.useContext(ti),{uniqueId:m,startAt:_,endAt:b,initialAlpha:y,transformation:{x:w,y:T,width:x,height:E,scale:I=[1,1],rotation:A=0,animation:O,effect:L,overlay:R},applyTransformer:C,disabled:P,ignoreTlForVideo:M,pointerdown:F,pointerout:q,pointerover:K,isText:z,isDragging:it,isGif:W,onDoubleClick:U,isTextEditMode:k}=e;mr(ke.COMPLETE,()=>{f.current&&(c.current=y)}),Et.useImperativeHandle(t,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>l}),[i,l]),Et.useEffect(()=>{f.current&&n(!0)},[]);const D=Et.useCallback(()=>{u(!0),K&&K()},[]),j=()=>{console.log("reverse complete"),c.current=y},Z=et=>{c.current=et.alpha},Y=et=>{c.current=et.alpha};Et.useEffect(()=>{let et=Te.context(()=>{});if(f.current&&v.current){const ot={duration:Number(b)-Number(_)},pt={onStart:Z,onReverseComplete:j,onStartParams:[{alpha:1}]},mt={onComplete:Y,onCompleteParams:[{alpha:0}]},xt=_y(O||"None");console.log("easeing",xt),et=Te.context(()=>{v.current.to(f.current,{overwrite:"auto",alpha:1,duration:.1,...pt},_).from(f.current,{overwrite:"auto",...ot},_).to(f.current,{overwrite:"auto",alpha:0,duration:.1,...mt},Number(b)-.09)})}return()=>{v.current&&(v.current.progress(0).kill(),Te.killTweensOf(v.current)),et.revert()}},[O,_,b,M]);const G=Et.useCallback(()=>{o(!0)},[]),V=Et.useCallback(et=>{console.log("changeEnd",et),e.onAnchorTransformationEnd&&(console.log("running onAnchorTransformationEnd"),e.onAnchorTransformationEnd(et)),o(!1)},[]),rt=me.withFilters(me.Container,{matrix:zr.filters.ColorMatrixFilter});console.log("abstraction props",e);const Q=c.current;return Yt.jsxs(me.Container,{ref:h,children:[Yt.jsxs(me.Container,{ref:f,alpha:Q,position:[w,T],pivot:[w,T],width:x,height:E,scale:I,rotation:A,...!P&&!i&&!it&&Q>0&&{interactive:!0,buttonMode:!0,pointerdown:F,pointerover:K,pointerout:q},children:[!W&&Yt.jsx(rt,{scale:1,apply:({matrix:et})=>{L===Sn.BlackAndWhite?et.desaturate():L===Sn.Sepia?et.sepia():L===Sn.RetroVintage||L===Sn.NightVision?et.negative():L===Sn.Normal&&et.reset()},matrix:{enabled:!0,matrix:g_},children:Yt.jsx(me.Container,{ref:d,children:e.children})}),W&&Yt.jsx(me.Container,{ref:d,children:e.children}),!el(R)&&R!==rl.NONE&&R!==rl.NORMAL&&Yt.jsx(v_,{overlay:R,width:x,height:E,x:w,y:T})]}),C&&!k&&Yt.jsx(yy,{pixiTransformerRef:p,imageRef:f,isMounted:r,transformCommit:V,transformChange:G,mouseoverEvent:D,uniqueId:m,isText:z,onDoubleClick:U})]})});ni.whyDidYouRender={logOnDifferentValues:!0,customName:"AbstractContainer"};var On=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(On||{}),Lc=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(Lc||{}),nl=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(nl||{}),Rt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Rt||{}),an=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(an||{}),yt=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(yt||{}),ii=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(ii||{}),Wt=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(Wt||{}),il=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(il||{}),Lr=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(Lr||{}),Qi=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Qi||{}),Cn=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(Cn||{}),ln=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(ln||{}),Rn=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(Rn||{}),sl=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(sl||{}),or=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(or||{}),Ee=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(Ee||{}),we=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(we||{}),Fr=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(Fr||{});const Dt={ADAPTER:{createCanvas:(e,t)=>{const r=document.createElement("canvas");return r.width=e,r.height=t,r},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var ol=/iPhone/i,Fc=/iPod/i,Bc=/iPad/i,Dc=/\biOS-universal(?:.+)Mac\b/i,al=/\bAndroid(?:.+)Mobile\b/i,Uc=/Android/i,si=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Hs=/Silk/i,Hr=/Windows Phone/i,$c=/\bWindows(?:.+)ARM\b/i,Gc=/BlackBerry/i,jc=/BB10/i,qc=/Opera Mini/i,zc=/\b(CriOS|Chrome)(?:.+)Mobile/i,Hc=/Mobile(?:.+)Firefox\b/i,Vc=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function m_(e){return function(t){return t.test(e)}}function Wc(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var r=t.userAgent,n=r.split("[FBAN");typeof n[1]<"u"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]<"u"&&(r=n[0]);var i=m_(r),o={apple:{phone:i(ol)&&!i(Hr),ipod:i(Fc),tablet:!i(ol)&&(i(Bc)||Vc(t))&&!i(Hr),universal:i(Dc),device:(i(ol)||i(Fc)||i(Bc)||i(Dc)||Vc(t))&&!i(Hr)},amazon:{phone:i(si),tablet:!i(si)&&i(Hs),device:i(si)||i(Hs)},android:{phone:!i(Hr)&&i(si)||!i(Hr)&&i(al),tablet:!i(Hr)&&!i(si)&&!i(al)&&(i(Hs)||i(Uc)),device:!i(Hr)&&(i(si)||i(Hs)||i(al)||i(Uc))||i(/\bokhttp\b/i)},windows:{phone:i(Hr),tablet:i($c),device:i(Hr)||i($c)},other:{blackberry:i(Gc),blackberry10:i(jc),opera:i(qc),firefox:i(Hc),chrome:i(zc),device:i(Gc)||i(jc)||i(qc)||i(Hc)||i(zc)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}const oi=(Wc.default??Wc)(globalThis.navigator);Dt.RETINA_PREFIX=/@([0-9\.]+)x/,Dt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Xc={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(f,h,d){this.fn=f,this.context=h,this.once=d||!1}function o(f,h,d,p,c){if(typeof d!="function")throw new TypeError("The listener must be a function");var v=new i(d,p||f,c),m=r?r+h:h;return f._events[m]?f._events[m].fn?f._events[m]=[f._events[m],v]:f._events[m].push(v):(f._events[m]=v,f._eventsCount++),f}function l(f,h){--f._eventsCount===0?f._events=new n:delete f._events[h]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var h=[],d,p;if(this._eventsCount===0)return h;for(p in d=this._events)t.call(d,p)&&h.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(d)):h},u.prototype.listeners=function(h){var d=r?r+h:h,p=this._events[d];if(!p)return[];if(p.fn)return[p.fn];for(var c=0,v=p.length,m=new Array(v);c<v;c++)m[c]=p[c].fn;return m},u.prototype.listenerCount=function(h){var d=r?r+h:h,p=this._events[d];return p?p.fn?1:p.length:0},u.prototype.emit=function(h,d,p,c,v,m){var _=r?r+h:h;if(!this._events[_])return!1;var b=this._events[_],y=arguments.length,w,T;if(b.fn){switch(b.once&&this.removeListener(h,b.fn,void 0,!0),y){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,p),!0;case 4:return b.fn.call(b.context,d,p,c),!0;case 5:return b.fn.call(b.context,d,p,c,v),!0;case 6:return b.fn.call(b.context,d,p,c,v,m),!0}for(T=1,w=new Array(y-1);T<y;T++)w[T-1]=arguments[T];b.fn.apply(b.context,w)}else{var x=b.length,E;for(T=0;T<x;T++)switch(b[T].once&&this.removeListener(h,b[T].fn,void 0,!0),y){case 1:b[T].fn.call(b[T].context);break;case 2:b[T].fn.call(b[T].context,d);break;case 3:b[T].fn.call(b[T].context,d,p);break;case 4:b[T].fn.call(b[T].context,d,p,c);break;default:if(!w)for(E=1,w=new Array(y-1);E<y;E++)w[E-1]=arguments[E];b[T].fn.apply(b[T].context,w)}}return!0},u.prototype.on=function(h,d,p){return o(this,h,d,p,!1)},u.prototype.once=function(h,d,p){return o(this,h,d,p,!0)},u.prototype.removeListener=function(h,d,p,c){var v=r?r+h:h;if(!this._events[v])return this;if(!d)return l(this,v),this;var m=this._events[v];if(m.fn)m.fn===d&&(!c||m.once)&&(!p||m.context===p)&&l(this,v);else{for(var _=0,b=[],y=m.length;_<y;_++)(m[_].fn!==d||c&&!m[_].once||p&&m[_].context!==p)&&b.push(m[_]);b.length?this._events[v]=b.length===1?b[0]:b:l(this,v)}return this},u.prototype.removeAllListeners=function(h){var d;return h?(d=r?r+h:h,this._events[d]&&l(this,d)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Xc);var y_=Xc.exports;const Vs=En(y_);var ll={exports:{}};ll.exports=Ws,ll.exports.default=Ws;function Ws(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,o=Kc(e,0,i,r,!0),l=[];if(!o||o.next===o.prev)return l;var u,f,h,d,p,c,v;if(n&&(o=T_(e,t,o,r)),e.length>80*r){u=h=e[0],f=d=e[1];for(var m=r;m<i;m+=r)p=e[m],c=e[m+1],p<u&&(u=p),c<f&&(f=c),p>h&&(h=p),c>d&&(d=c);v=Math.max(h-u,d-f),v=v!==0?32767/v:0}return Ji(o,l,r,u,f,v,0),l}function Kc(e,t,r,n,i){var o,l;if(i===cl(e,t,r,n)>0)for(o=t;o<r;o+=n)l=Qc(o,e[o],e[o+1],l);else for(o=r-n;o>=t;o-=n)l=Qc(o,e[o],e[o+1],l);return l&&Xs(l,l.next)&&(es(l),l=l.next),l}function In(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(Xs(r,r.next)||de(r.prev,r,r.next)===0)){if(es(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Ji(e,t,r,n,i,o,l){if(e){!l&&o&&C_(e,n,i,o);for(var u=e,f,h;e.prev!==e.next;){if(f=e.prev,h=e.next,o?b_(e,n,i,o):__(e)){t.push(f.i/r|0),t.push(e.i/r|0),t.push(h.i/r|0),es(e),e=h.next,u=h.next;continue}if(e=h,e===u){l?l===1?(e=x_(In(e),t,r),Ji(e,t,r,n,i,o,2)):l===2&&w_(e,t,r,n,i,o):Ji(In(e),t,r,n,i,o,1);break}}}}function __(e){var t=e.prev,r=e,n=e.next;if(de(t,r,n)>=0)return!1;for(var i=t.x,o=r.x,l=n.x,u=t.y,f=r.y,h=n.y,d=i<o?i<l?i:l:o<l?o:l,p=u<f?u<h?u:h:f<h?f:h,c=i>o?i>l?i:l:o>l?o:l,v=u>f?u>h?u:h:f>h?f:h,m=n.next;m!==t;){if(m.x>=d&&m.x<=c&&m.y>=p&&m.y<=v&&ai(i,u,o,f,l,h,m.x,m.y)&&de(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function b_(e,t,r,n){var i=e.prev,o=e,l=e.next;if(de(i,o,l)>=0)return!1;for(var u=i.x,f=o.x,h=l.x,d=i.y,p=o.y,c=l.y,v=u<f?u<h?u:h:f<h?f:h,m=d<p?d<c?d:c:p<c?p:c,_=u>f?u>h?u:h:f>h?f:h,b=d>p?d>c?d:c:p>c?p:c,y=ul(v,m,t,r,n),w=ul(_,b,t,r,n),T=e.prevZ,x=e.nextZ;T&&T.z>=y&&x&&x.z<=w;){if(T.x>=v&&T.x<=_&&T.y>=m&&T.y<=b&&T!==i&&T!==l&&ai(u,d,f,p,h,c,T.x,T.y)&&de(T.prev,T,T.next)>=0||(T=T.prevZ,x.x>=v&&x.x<=_&&x.y>=m&&x.y<=b&&x!==i&&x!==l&&ai(u,d,f,p,h,c,x.x,x.y)&&de(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;T&&T.z>=y;){if(T.x>=v&&T.x<=_&&T.y>=m&&T.y<=b&&T!==i&&T!==l&&ai(u,d,f,p,h,c,T.x,T.y)&&de(T.prev,T,T.next)>=0)return!1;T=T.prevZ}for(;x&&x.z<=w;){if(x.x>=v&&x.x<=_&&x.y>=m&&x.y<=b&&x!==i&&x!==l&&ai(u,d,f,p,h,c,x.x,x.y)&&de(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function x_(e,t,r){var n=e;do{var i=n.prev,o=n.next.next;!Xs(i,o)&&Yc(i,n,n.next,o)&&ts(i,o)&&ts(o,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(o.i/r|0),es(n),es(n.next),n=e=o),n=n.next}while(n!==e);return In(n)}function w_(e,t,r,n,i,o){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&P_(l,u)){var f=Zc(l,u);l=In(l,l.next),f=In(f,f.next),Ji(l,t,r,n,i,o,0),Ji(f,t,r,n,i,o,0);return}u=u.next}l=l.next}while(l!==e)}function T_(e,t,r,n){var i=[],o,l,u,f,h;for(o=0,l=t.length;o<l;o++)u=t[o]*n,f=o<l-1?t[o+1]*n:e.length,h=Kc(e,u,f,n,!1),h===h.next&&(h.steiner=!0),i.push(I_(h));for(i.sort(E_),o=0;o<i.length;o++)r=S_(i[o],r);return r}function E_(e,t){return e.x-t.x}function S_(e,t){var r=A_(e,t);if(!r)return t;var n=Zc(r,e);return In(n,n.next),In(r,r.next)}function A_(e,t){var r=t,n=e.x,i=e.y,o=-1/0,l;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var u=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=n&&u>o&&(o=u,l=r.x<r.next.x?r:r.next,u===n))return l}r=r.next}while(r!==t);if(!l)return null;var f=l,h=l.x,d=l.y,p=1/0,c;r=l;do n>=r.x&&r.x>=h&&n!==r.x&&ai(i<d?n:o,i,h,d,i<d?o:n,i,r.x,r.y)&&(c=Math.abs(i-r.y)/(n-r.x),ts(r,e)&&(c<p||c===p&&(r.x>l.x||r.x===l.x&&O_(l,r)))&&(l=r,p=c)),r=r.next;while(r!==f);return l}function O_(e,t){return de(e.prev,e,t.prev)<0&&de(t.next,e,e.next)<0}function C_(e,t,r,n){var i=e;do i.z===0&&(i.z=ul(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,R_(i)}function R_(e){var t,r,n,i,o,l,u,f,h=1;do{for(r=e,e=null,o=null,l=0;r;){for(l++,n=r,u=0,t=0;t<h&&(u++,n=n.nextZ,!!n);t++);for(f=h;u>0||f>0&&n;)u!==0&&(f===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,u--):(i=n,n=n.nextZ,f--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;r=n}o.nextZ=null,h*=2}while(l>1);return e}function ul(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function I_(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function ai(e,t,r,n,i,o,l,u){return(i-l)*(t-u)>=(e-l)*(o-u)&&(e-l)*(n-u)>=(r-l)*(t-u)&&(r-l)*(o-u)>=(i-l)*(n-u)}function P_(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!N_(e,t)&&(ts(e,t)&&ts(t,e)&&M_(e,t)&&(de(e.prev,e,t.prev)||de(e,t.prev,t))||Xs(e,t)&&de(e.prev,e,e.next)>0&&de(t.prev,t,t.next)>0)}function de(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Xs(e,t){return e.x===t.x&&e.y===t.y}function Yc(e,t,r,n){var i=Ys(de(e,t,r)),o=Ys(de(e,t,n)),l=Ys(de(r,n,e)),u=Ys(de(r,n,t));return!!(i!==o&&l!==u||i===0&&Ks(e,r,t)||o===0&&Ks(e,n,t)||l===0&&Ks(r,e,n)||u===0&&Ks(r,t,n))}function Ks(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function Ys(e){return e>0?1:e<0?-1:0}function N_(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Yc(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function ts(e,t){return de(e.prev,e,e.next)<0?de(e,t,e.next)>=0&&de(e,e.prev,t)>=0:de(e,t,e.prev)<0||de(e,e.next,t)<0}function M_(e,t){var r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do r.y>o!=r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function Zc(e,t){var r=new fl(e.i,e.x,e.y),n=new fl(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function Qc(e,t,r,n){var i=new fl(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function es(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function fl(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Ws.deviation=function(e,t,r,n){var i=t&&t.length,o=i?t[0]*r:e.length,l=Math.abs(cl(e,0,o,r));if(i)for(var u=0,f=t.length;u<f;u++){var h=t[u]*r,d=u<f-1?t[u+1]*r:e.length;l-=Math.abs(cl(e,h,d,r))}var p=0;for(u=0;u<n.length;u+=3){var c=n[u]*r,v=n[u+1]*r,m=n[u+2]*r;p+=Math.abs((e[c]-e[m])*(e[v+1]-e[c+1])-(e[c]-e[v])*(e[m+1]-e[c+1]))}return l===0&&p===0?0:Math.abs((p-l)/l)};function cl(e,t,r,n){for(var i=0,o=t,l=r-n;o<r;o+=n)i+=(e[l]-e[o])*(e[o+1]+e[l+1]),l=o;return i}Ws.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var l=0;l<t;l++)r.vertices.push(e[i][o][l]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var k_=ll.exports;const L_=En(k_);var Zs={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Zs.exports,function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof Ye=="object"&&Ye;(o.global===o||o.window===o||o.self===o)&&(r=o);var l,u=2147483647,f=36,h=1,d=26,p=38,c=700,v=72,m=128,_="-",b=/^xn--/,y=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=f-h,E=Math.floor,I=String.fromCharCode,A;function O(U){throw new RangeError(T[U])}function L(U,k){for(var D=U.length,j=[];D--;)j[D]=k(U[D]);return j}function R(U,k){var D=U.split("@"),j="";D.length>1&&(j=D[0]+"@",U=D[1]),U=U.replace(w,".");var Z=U.split("."),Y=L(Z,k).join(".");return j+Y}function C(U){for(var k=[],D=0,j=U.length,Z,Y;D<j;)Z=U.charCodeAt(D++),Z>=55296&&Z<=56319&&D<j?(Y=U.charCodeAt(D++),(Y&64512)==56320?k.push(((Z&1023)<<10)+(Y&1023)+65536):(k.push(Z),D--)):k.push(Z);return k}function P(U){return L(U,function(k){var D="";return k>65535&&(k-=65536,D+=I(k>>>10&1023|55296),k=56320|k&1023),D+=I(k),D}).join("")}function M(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:f}function F(U,k){return U+22+75*(U<26)-((k!=0)<<5)}function q(U,k,D){var j=0;for(U=D?E(U/c):U>>1,U+=E(U/k);U>x*d>>1;j+=f)U=E(U/x);return E(j+(x+1)*U/(U+p))}function K(U){var k=[],D=U.length,j,Z=0,Y=m,G=v,V,rt,Q,et,ot,pt,mt,xt,At;for(V=U.lastIndexOf(_),V<0&&(V=0),rt=0;rt<V;++rt)U.charCodeAt(rt)>=128&&O("not-basic"),k.push(U.charCodeAt(rt));for(Q=V>0?V+1:0;Q<D;){for(et=Z,ot=1,pt=f;Q>=D&&O("invalid-input"),mt=M(U.charCodeAt(Q++)),(mt>=f||mt>E((u-Z)/ot))&&O("overflow"),Z+=mt*ot,xt=pt<=G?h:pt>=G+d?d:pt-G,!(mt<xt);pt+=f)At=f-xt,ot>E(u/At)&&O("overflow"),ot*=At;j=k.length+1,G=q(Z-et,j,et==0),E(Z/j)>u-Y&&O("overflow"),Y+=E(Z/j),Z%=j,k.splice(Z++,0,Y)}return P(k)}function z(U){var k,D,j,Z,Y,G,V,rt,Q,et,ot,pt=[],mt,xt,At,oe;for(U=C(U),mt=U.length,k=m,D=0,Y=v,G=0;G<mt;++G)ot=U[G],ot<128&&pt.push(I(ot));for(j=Z=pt.length,Z&&pt.push(_);j<mt;){for(V=u,G=0;G<mt;++G)ot=U[G],ot>=k&&ot<V&&(V=ot);for(xt=j+1,V-k>E((u-D)/xt)&&O("overflow"),D+=(V-k)*xt,k=V,G=0;G<mt;++G)if(ot=U[G],ot<k&&++D>u&&O("overflow"),ot==k){for(rt=D,Q=f;et=Q<=Y?h:Q>=Y+d?d:Q-Y,!(rt<et);Q+=f)oe=rt-et,At=f-et,pt.push(I(F(et+oe%At,0))),rt=E(oe/At);pt.push(I(F(rt,0))),Y=q(D,xt,j==Z),D=0,++j}++D,++k}return pt.join("")}function it(U){return R(U,function(k){return b.test(k)?K(k.slice(4).toLowerCase()):k})}function W(U){return R(U,function(k){return y.test(k)?"xn--"+z(k):k})}if(l={version:"1.4.1",ucs2:{decode:C,encode:P},decode:K,encode:z,toASCII:W,toUnicode:it},n&&i)if(e.exports==n)i.exports=l;else for(A in l)l.hasOwnProperty(A)&&(n[A]=l[A]);else r.punycode=l})(Ye)}(Zs,Zs.exports);var F_=Zs.exports,B_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0},Jc=typeof Symbol<"u"&&Symbol,D_=B_,U_=function(){return typeof Jc!="function"||typeof Symbol!="function"||typeof Jc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:D_()},th={foo:{}},$_=Object,G_=function(){return{__proto__:th}.foo===th.foo&&!({__proto__:null}instanceof $_)},j_="Function.prototype.bind called on incompatible ",hl=Array.prototype.slice,q_=Object.prototype.toString,z_="[object Function]",H_=function(t){var r=this;if(typeof r!="function"||q_.call(r)!==z_)throw new TypeError(j_+r);for(var n=hl.call(arguments,1),i,o=function(){if(this instanceof i){var d=r.apply(this,n.concat(hl.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(hl.call(arguments)))},l=Math.max(0,r.length-n.length),u=[],f=0;f<l;f++)u.push("$"+f);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var h=function(){};h.prototype=r.prototype,i.prototype=new h,h.prototype=null}return i},V_=H_,dl=Function.prototype.bind||V_,W_=dl,X_=W_.call(Function.call,Object.prototype.hasOwnProperty),$t,li=SyntaxError,eh=Function,ui=TypeError,pl=function(e){try{return eh('"use strict"; return ('+e+").constructor;")()}catch{}},Pn=Object.getOwnPropertyDescriptor;if(Pn)try{Pn({},"")}catch{Pn=null}var vl=function(){throw new ui},K_=Pn?function(){try{return arguments.callee,vl}catch{try{return Pn(arguments,"callee").get}catch{return vl}}}():vl,fi=U_(),Y_=G_(),Oe=Object.getPrototypeOf||(Y_?function(e){return e.__proto__}:null),ci={},Z_=typeof Uint8Array>"u"||!Oe?$t:Oe(Uint8Array),Nn={"%AggregateError%":typeof AggregateError>"u"?$t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$t:ArrayBuffer,"%ArrayIteratorPrototype%":fi&&Oe?Oe([][Symbol.iterator]()):$t,"%AsyncFromSyncIteratorPrototype%":$t,"%AsyncFunction%":ci,"%AsyncGenerator%":ci,"%AsyncGeneratorFunction%":ci,"%AsyncIteratorPrototype%":ci,"%Atomics%":typeof Atomics>"u"?$t:Atomics,"%BigInt%":typeof BigInt>"u"?$t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?$t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$t:FinalizationRegistry,"%Function%":eh,"%GeneratorFunction%":ci,"%Int8Array%":typeof Int8Array>"u"?$t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fi&&Oe?Oe(Oe([][Symbol.iterator]())):$t,"%JSON%":typeof JSON=="object"?JSON:$t,"%Map%":typeof Map>"u"?$t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!fi||!Oe?$t:Oe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$t:Promise,"%Proxy%":typeof Proxy>"u"?$t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?$t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!fi||!Oe?$t:Oe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fi&&Oe?Oe(""[Symbol.iterator]()):$t,"%Symbol%":fi?Symbol:$t,"%SyntaxError%":li,"%ThrowTypeError%":K_,"%TypedArray%":Z_,"%TypeError%":ui,"%Uint8Array%":typeof Uint8Array>"u"?$t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?$t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$t:WeakSet};if(Oe)try{null.error}catch(e){var Q_=Oe(Oe(e));Nn["%Error.prototype%"]=Q_}var J_=function e(t){var r;if(t==="%AsyncFunction%")r=pl("async function () {}");else if(t==="%GeneratorFunction%")r=pl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=pl("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Oe&&(r=Oe(i.prototype))}return Nn[t]=r,r},rh={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},rs=dl,Qs=X_,tb=rs.call(Function.call,Array.prototype.concat),eb=rs.call(Function.apply,Array.prototype.splice),nh=rs.call(Function.call,String.prototype.replace),Js=rs.call(Function.call,String.prototype.slice),rb=rs.call(Function.call,RegExp.prototype.exec),nb=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ib=/\\(\\)?/g,sb=function(t){var r=Js(t,0,1),n=Js(t,-1);if(r==="%"&&n!=="%")throw new li("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new li("invalid intrinsic syntax, expected opening `%`");var i=[];return nh(t,nb,function(o,l,u,f){i[i.length]=u?nh(f,ib,"$1"):l||o}),i},ob=function(t,r){var n=t,i;if(Qs(rh,n)&&(i=rh[n],n="%"+i[0]+"%"),Qs(Nn,n)){var o=Nn[n];if(o===ci&&(o=J_(n)),typeof o>"u"&&!r)throw new ui("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new li("intrinsic "+t+" does not exist!")},gl=function(t,r){if(typeof t!="string"||t.length===0)throw new ui("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ui('"allowMissing" argument must be a boolean');if(rb(/^%?[^%]*%?$/,t)===null)throw new li("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=sb(t),i=n.length>0?n[0]:"",o=ob("%"+i+"%",r),l=o.name,u=o.value,f=!1,h=o.alias;h&&(i=h[0],eb(n,tb([0,1],h)));for(var d=1,p=!0;d<n.length;d+=1){var c=n[d],v=Js(c,0,1),m=Js(c,-1);if((v==='"'||v==="'"||v==="`"||m==='"'||m==="'"||m==="`")&&v!==m)throw new li("property names with quotes must have matching quotes");if((c==="constructor"||!p)&&(f=!0),i+="."+c,l="%"+i+"%",Qs(Nn,l))u=Nn[l];else if(u!=null){if(!(c in u)){if(!r)throw new ui("base intrinsic for "+t+" exists, but the property is not available.");return}if(Pn&&d+1>=n.length){var _=Pn(u,c);p=!!_,p&&"get"in _&&!("originalValue"in _.get)?u=_.get:u=u[c]}else p=Qs(u,c),u=u[c];p&&!f&&(Nn[l]=u)}}return u},ih={exports:{}};(function(e){var t=dl,r=gl,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),o=r("%Reflect.apply%",!0)||t.call(i,n),l=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),f=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(p){var c=o(t,i,arguments);if(l&&u){var v=l(c,"length");v.configurable&&u(c,"length",{value:1+f(0,p.length-(arguments.length-1))})}return c};var h=function(){return o(t,n,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h})(ih);var ab=ih.exports,sh=gl,oh=ab,lb=oh(sh("String.prototype.indexOf")),ub=function(t,r){var n=sh(t,!!r);return typeof n=="function"&&lb(t,".prototype.")>-1?oh(n):n};const fb=uy(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ml=typeof Map=="function"&&Map.prototype,yl=Object.getOwnPropertyDescriptor&&ml?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,to=ml&&yl&&typeof yl.get=="function"?yl.get:null,ah=ml&&Map.prototype.forEach,_l=typeof Set=="function"&&Set.prototype,bl=Object.getOwnPropertyDescriptor&&_l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,eo=_l&&bl&&typeof bl.get=="function"?bl.get:null,lh=_l&&Set.prototype.forEach,cb=typeof WeakMap=="function"&&WeakMap.prototype,ns=cb?WeakMap.prototype.has:null,hb=typeof WeakSet=="function"&&WeakSet.prototype,is=hb?WeakSet.prototype.has:null,db=typeof WeakRef=="function"&&WeakRef.prototype,uh=db?WeakRef.prototype.deref:null,pb=Boolean.prototype.valueOf,vb=Object.prototype.toString,gb=Function.prototype.toString,mb=String.prototype.match,xl=String.prototype.slice,un=String.prototype.replace,yb=String.prototype.toUpperCase,fh=String.prototype.toLowerCase,ch=RegExp.prototype.test,hh=Array.prototype.concat,Br=Array.prototype.join,_b=Array.prototype.slice,dh=Math.floor,wl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Tl=Object.getOwnPropertySymbols,El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hi||"symbol")?Symbol.toStringTag:null,ph=Object.prototype.propertyIsEnumerable,vh=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function gh(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||ch.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-dh(-e):dh(e);if(n!==e){var i=String(n),o=xl.call(t,i.length+1);return un.call(i,r,"$&_")+"."+un.call(un.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return un.call(t,r,"$&_")}var Sl=fb,mh=Sl.custom,yh=xh(mh)?mh:null,bb=function e(t,r,n,i){var o=r||{};if(fn(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(fn(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=fn(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(fn(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(fn(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Th(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var f=String(t);return u?gh(t,f):f}if(typeof t=="bigint"){var h=String(t)+"n";return u?gh(t,h):h}var d=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return Al(t)?"[Array]":"[Object]";var p=Db(o,n);if(typeof i>"u")i=[];else if(wh(i,t)>=0)return"[Circular]";function c(M,F,q){if(F&&(i=_b.call(i),i.push(F)),q){var K={depth:o.depth};return fn(o,"quoteStyle")&&(K.quoteStyle=o.quoteStyle),e(M,K,n+1,i)}return e(M,o,n+1,i)}if(typeof t=="function"&&!bh(t)){var v=Rb(t),m=ro(t,c);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(m.length>0?" { "+Br.call(m,", ")+" }":"")}if(xh(t)){var _=hi?un.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):El.call(t);return typeof t=="object"&&!hi?ss(_):_}if(Lb(t)){for(var b="<"+fh.call(String(t.nodeName)),y=t.attributes||[],w=0;w<y.length;w++)b+=" "+y[w].name+"="+_h(xb(y[w].value),"double",o);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+fh.call(String(t.nodeName))+">",b}if(Al(t)){if(t.length===0)return"[]";var T=ro(t,c);return p&&!Bb(T)?"["+Cl(T,p)+"]":"[ "+Br.call(T,", ")+" ]"}if(Tb(t)){var x=ro(t,c);return!("cause"in Error.prototype)&&"cause"in t&&!ph.call(t,"cause")?"{ ["+String(t)+"] "+Br.call(hh.call("[cause]: "+c(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Br.call(x,", ")+" }"}if(typeof t=="object"&&l){if(yh&&typeof t[yh]=="function"&&Sl)return Sl(t,{depth:d-n});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Ib(t)){var E=[];return ah&&ah.call(t,function(M,F){E.push(c(F,t,!0)+" => "+c(M,t))}),Eh("Map",to.call(t),E,p)}if(Mb(t)){var I=[];return lh&&lh.call(t,function(M){I.push(c(M,t))}),Eh("Set",eo.call(t),I,p)}if(Pb(t))return Ol("WeakMap");if(kb(t))return Ol("WeakSet");if(Nb(t))return Ol("WeakRef");if(Sb(t))return ss(c(Number(t)));if(Ob(t))return ss(c(wl.call(t)));if(Ab(t))return ss(pb.call(t));if(Eb(t))return ss(c(String(t)));if(!wb(t)&&!bh(t)){var A=ro(t,c),O=vh?vh(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",R=!O&&Le&&Object(t)===t&&Le in t?xl.call(cn(t),8,-1):L?"Object":"",C=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",P=C+(R||L?"["+Br.call(hh.call([],R||[],L||[]),": ")+"] ":"");return A.length===0?P+"{}":p?P+"{"+Cl(A,p)+"}":P+"{ "+Br.call(A,", ")+" }"}return String(t)};function _h(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function xb(e){return un.call(String(e),/"/g,"&quot;")}function Al(e){return cn(e)==="[object Array]"&&(!Le||!(typeof e=="object"&&Le in e))}function wb(e){return cn(e)==="[object Date]"&&(!Le||!(typeof e=="object"&&Le in e))}function bh(e){return cn(e)==="[object RegExp]"&&(!Le||!(typeof e=="object"&&Le in e))}function Tb(e){return cn(e)==="[object Error]"&&(!Le||!(typeof e=="object"&&Le in e))}function Eb(e){return cn(e)==="[object String]"&&(!Le||!(typeof e=="object"&&Le in e))}function Sb(e){return cn(e)==="[object Number]"&&(!Le||!(typeof e=="object"&&Le in e))}function Ab(e){return cn(e)==="[object Boolean]"&&(!Le||!(typeof e=="object"&&Le in e))}function xh(e){if(hi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!El)return!1;try{return El.call(e),!0}catch{}return!1}function Ob(e){if(!e||typeof e!="object"||!wl)return!1;try{return wl.call(e),!0}catch{}return!1}var Cb=Object.prototype.hasOwnProperty||function(e){return e in this};function fn(e,t){return Cb.call(e,t)}function cn(e){return vb.call(e)}function Rb(e){if(e.name)return e.name;var t=mb.call(gb.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function wh(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Ib(e){if(!to||!e||typeof e!="object")return!1;try{to.call(e);try{eo.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Pb(e){if(!ns||!e||typeof e!="object")return!1;try{ns.call(e,ns);try{is.call(e,is)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Nb(e){if(!uh||!e||typeof e!="object")return!1;try{return uh.call(e),!0}catch{}return!1}function Mb(e){if(!eo||!e||typeof e!="object")return!1;try{eo.call(e);try{to.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function kb(e){if(!is||!e||typeof e!="object")return!1;try{is.call(e,is);try{ns.call(e,ns)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Lb(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Th(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Th(xl.call(e,0,t.maxStringLength),t)+n}var i=un.call(un.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Fb);return _h(i,"single",t)}function Fb(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+yb.call(t.toString(16))}function ss(e){return"Object("+e+")"}function Ol(e){return e+" { ? }"}function Eh(e,t,r,n){var i=n?Cl(r,n):Br.call(r,", ");return e+" ("+t+") {"+i+"}"}function Bb(e){for(var t=0;t<e.length;t++)if(wh(e[t],`
9
+ */var fy=_t,cy=Symbol.for("react.element"),hy=Symbol.for("react.fragment"),dy=Object.prototype.hasOwnProperty,py=fy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,vy={key:!0,ref:!0,__self:!0,__source:!0};function fc(e,t,r){var n,i={},o=null,l=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(n in t)dy.call(t,n)&&!vy.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)i[n]===void 0&&(i[n]=t[n]);return{$$typeof:cy,type:e,key:o,ref:l,props:i,_owner:py.current}}$s.Fragment=hy,$s.jsx=fc,$s.jsxs=fc,uc.exports=$s;var Yt=uc.exports,Sn=(e=>(e.BlackAndWhite="BlackAndWhite",e.Sepia="Sepia",e.RetroVintage="RetroVintage",e.NightVision="NightVision",e.Normal="Normal",e.None="Normal",e))(Sn||{});let cc;function hc(){return cc=document.body,cc}function mr(e,t,r){let n;return _t.useEffect(()=>{n=n||hc();const i=o=>{const l=o.detail;t(l)};return n.addEventListener(e,i,!1),()=>{n==null||n.removeEventListener(e,i,!1)}},r),i=>{n=i}}function Jn(e,t){const r=hc(),n=new CustomEvent(e,{detail:t});r.dispatchEvent(n)}function gy(){let e;function t(r){e=r}return t.emit=function(r,n){const i=new CustomEvent(r,{bubbles:!0,detail:n});e==null||e.dispatchEvent(i)},t}const ti=Et.createContext({}),ke={STOP:"GSAP_STOP",PAUSE:"GSAP_PAUSE",PLAY:"GSAP_PLAY",RESUME:"GSAP_RESUME",RESTART:"GSAP_RESTART",REPEAT:"GSAP_REPEAT",SEEK:"GSAP_SEEK",RESET:"GSAP_RESET",COMPLETE:"GSAP_COMPLETE",SEEK_START:"GSAP_SEEK_START",SEEK_END:"GSAP_SEEK_END",SCRUBBER_SEEK:"GSAP_SCRUBBER_SEEK",SCRUBBER_PROGRESS_UPDATE:"GSAP_SCRUBBER_PROGRESS_UPDATE",SCRUBBER_PLAY:"GSAP_SCRUBBER_PLAY",SCRUBBER_PAUSE:"GSAP_SCRUBBER_PAUSE",TRANSFORMER_DRAG_START:"TRANSFORMER_DRAG_START",TRANSFORMER_DRAG_END:"TRANSFORMER_DRAG_END"},my=({children:e})=>{const[t,r]=_t.useState(!1),n=_t.useRef(),i=_t.useRef(),o=_t.useRef(.001);_t.useLayoutEffect(()=>(i.current=Te.context(()=>{n.current&&n.current.progress(0).kill(),n.current&&n.current.clear(),n.current&&Te.killTweensOf(n.current),n.current=Te.timeline({paused:!0,defaults:{duration:0}})}),()=>{n.current&&(n.current.progress(0).kill(),Te.killTweensOf(n.current)),i.current.revert()}),[]);const l=_t.useCallback(()=>{if(n.current){let b=n.current.time();o.current=b}},[]);_t.useEffect(()=>{if(n.current){const _=n.current;_.eventCallback("onStart",function(){}).eventCallback("onInterrupt",function(){_.pause(),l()}).eventCallback("onUpdate",function(){l()}).eventCallback("onComplete",function(){_.pause(),_.revert(),Jn(ke.COMPLETE,{uniqueId:"timeline"}),console.log("Emitted events"),l()})}},[]);const u=_t.useCallback(()=>{n.current&&n.current.revert()},[]),f=_t.useCallback(()=>{n.current&&n.current.restart()},[]),h=_t.useCallback(()=>{if(n.current){const _=n.current;_.repeat(1),_.restart()}},[]),d=_t.useCallback(_=>{n.current&&n.current.seek(_)},[]),p=_t.useCallback(()=>{n.current&&n.current.seek(4)},[]),c=_t.useCallback(()=>{const _=n.current;return _?_.totalDuration():0},[]),v=()=>{n.current&&(n.current.pause(),Jn(ke.PAUSE))},m=()=>{n.current&&(n.current.resume(),Jn(ke.RESUME))};return mr(ke.SEEK_START,()=>{r(!0)}),mr(ke.SCRUBBER_PLAY,()=>{m()}),mr(ke.SCRUBBER_PAUSE,()=>{v()}),mr(ke.SCRUBBER_SEEK,_=>{d(_)}),mr(ke.SEEK_END,()=>{r(!1)}),mr(ke.SCRUBBER_PROGRESS_UPDATE,_=>{}),Yt.jsx(ti.Provider,{value:{gsapCtx:i,tl:n,handlePlay:m,handlePause:v,handleReset:u,handleSeek:d,handleSeekTest:p,handleRestart:f,handleRepeat:h,playerTimeRef:o,isDragging:t,getTimelineDuration:c},children:e})},yy=({pixiTransformerRef:e,imageRef:t,isMounted:r,transformCommit:n,transformChange:i,mouseoverEvent:o,onDoubleClick:l,uniqueId:u="",isText:f=!1})=>{const h=zr.utils.string2hex("#F3C409"),d=zr.utils.string2hex("#F3C409"),p=Et.useRef({isDragging:!1}),c=300,v=Et.useRef(0),m=Et.useCallback(()=>{o&&!p.current.isDragging&&o(!0)},[o]),_=Et.useCallback(()=>{o&&!p.current.isDragging&&o(!1)},[o]),b=Et.useCallback(()=>{p.current.isDragging=!0;const T=new Date().getTime();T-v.current<c&&l&&l(),v.current=T},[]),y=Et.useCallback(T=>{p.current.isDragging=!0,i&&i(T),Jn(ke.TRANSFORMER_DRAG_START,{uniqueId:"timeline"})},[i]),w=Et.useCallback(()=>{if(t.current===null)return;const T=t.current.x,x=t.current.y,E=t.current.width,I=t.current.height,A=t.current.rotation,O=[t.current.scale.x,t.current.scale.y],L=O[0]<0?-1:1,R=O[1]<0?-1:1;n&&(n({uniqueId:u,transformation:{x:Math.round(T),y:Math.round(x),width:Math.round(Math.max(5,E)),height:Math.round(Math.max(5,I)),rotation:A,scale:f?O:[L,R]}}),Jn(ke.TRANSFORMER_DRAG_END,{uniqueId:"timeline"})),p.current.isDragging=!1},[n]);return Et.useEffect(()=>(e.current&&(e.current.on("mouseover",m),e.current.on("mouseout",_),e.current.on("mousedown",b)),()=>{e.current&&(e.current.off("mouseover",m),e.current.off("mouseout",_),e.current.off("mousedown",b))}),[]),Yt.jsx(ay.Transformer,{ref:e,group:r?[t.current]:[],rotateEnabled:!0,boxRotationEnabled:!0,centeredScaling:!0,boxScalingEnabled:!0,wireframeStyle:{thickness:2,color:d},lockAspectRatio:!0,scaleEnabled:!0,handleStyle:{outlineColor:h,shape:"circle",radius:10},transformchange:y,transformcommit:w})},_y=e=>{let t={};switch(e){case"NONE":case"none":break;case"BOUNCE_IN":t.from={duration:2,ease:"bounce.out",y:-1500};break;case"BOUNCE_IN_DOWN":t.from={ease:"bounce.out",y:-1500,duration:2};break;case"BOUNCE_IN_LEFT":t.from={ease:"bounce.out",x:-1500,duration:2};break;case"BOUNCE_IN_RIGHT":t.from={ease:"bounce.out",x:1500,duration:2};break;case"BOUNCE_IN_UP":t.from={ease:"bounce.out",y:1500,duration:2};break;case"BOUNCE_OUT":t.from={ease:"bounce.in",y:2,duration:2};break;case"BOUNCE_OUT_DOWN":break;case"BOUNCE_OUT_LEFT":break;case"BOUNCE_OUT_RIGHT":break;case"BOUNCE_OUT_UP":break;case"FADE_IN":t.to={ease:"power4.in",alpha:1,duration:1};break;case"FADE_IN_DOWN":t.fromTo={from:{y:-1e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break;case"FADE_IN_LEFT":t.fromTo={from:{x:-1e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_RIGHT":t.fromTo={from:{x:2e3,alpha:0},to:{ease:"power4.in",x:0,alpha:1,duration:1}};break;case"FADE_IN_UP":t.fromTo={from:{y:2e3,alpha:0},to:{ease:"power4.in",y:0,alpha:1,duration:1}};break}return t};var by=Object.prototype;function xy(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||by;return e===r}var dc=xy;function wy(e,t){return function(r){return e(t(r))}}var Ty=wy,Ey=Ty,Sy=Ey(Object.keys,Object),Ay=Sy,Oy=dc,Cy=Ay,Ry=Object.prototype,Iy=Ry.hasOwnProperty;function Py(e){if(!Oy(e))return Cy(e);var t=[];for(var r in Object(e))Iy.call(e,r)&&r!="constructor"&&t.push(r);return t}var pc=Py,Ny=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,vc=Ny,My=vc,ky=typeof self=="object"&&self&&self.Object===Object&&self,Ly=My||ky||Function("return this")(),Mr=Ly,Fy=Mr,By=Fy.Symbol,Gs=By,gc=Gs,mc=Object.prototype,Dy=mc.hasOwnProperty,Uy=mc.toString,Xi=gc?gc.toStringTag:void 0;function $y(e){var t=Dy.call(e,Xi),r=e[Xi];try{e[Xi]=void 0;var n=!0}catch{}var i=Uy.call(e);return n&&(t?e[Xi]=r:delete e[Xi]),i}var Gy=$y,jy=Object.prototype,qy=jy.toString;function zy(e){return qy.call(e)}var Hy=zy,yc=Gs,Vy=Gy,Wy=Hy,Xy="[object Null]",Ky="[object Undefined]",_c=yc?yc.toStringTag:void 0;function Yy(e){return e==null?e===void 0?Ky:Xy:_c&&_c in Object(e)?Vy(e):Wy(e)}var Ki=Yy;function Zy(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Yi=Zy,Qy=Ki,Jy=Yi,t0="[object AsyncFunction]",e0="[object Function]",r0="[object GeneratorFunction]",n0="[object Proxy]";function i0(e){if(!Jy(e))return!1;var t=Qy(e);return t==e0||t==r0||t==t0||t==n0}var bc=i0,s0=Mr,o0=s0["__core-js_shared__"],a0=o0,za=a0,xc=function(){var e=/[^.]+$/.exec(za&&za.keys&&za.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function l0(e){return!!xc&&xc in e}var u0=l0,f0=Function.prototype,c0=f0.toString;function h0(e){if(e!=null){try{return c0.call(e)}catch{}try{return e+""}catch{}}return""}var wc=h0,d0=bc,p0=u0,v0=Yi,g0=wc,m0=/[\\^$.*+?()[\]{}|]/g,y0=/^\[object .+?Constructor\]$/,_0=Function.prototype,b0=Object.prototype,x0=_0.toString,w0=b0.hasOwnProperty,T0=RegExp("^"+x0.call(w0).replace(m0,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function E0(e){if(!v0(e)||p0(e))return!1;var t=d0(e)?T0:y0;return t.test(g0(e))}var S0=E0;function A0(e,t){return e==null?void 0:e[t]}var O0=A0,C0=S0,R0=O0;function I0(e,t){var r=R0(e,t);return C0(r)?r:void 0}var ei=I0,P0=ei,N0=Mr,M0=P0(N0,"DataView"),k0=M0,L0=ei,F0=Mr,B0=L0(F0,"Map"),Ha=B0,D0=ei,U0=Mr,$0=D0(U0,"Promise"),G0=$0,j0=ei,q0=Mr,z0=j0(q0,"Set"),H0=z0,V0=ei,W0=Mr,X0=V0(W0,"WeakMap"),K0=X0,Va=k0,Wa=Ha,Xa=G0,Ka=H0,Ya=K0,Tc=Ki,ri=wc,Ec="[object Map]",Y0="[object Object]",Sc="[object Promise]",Ac="[object Set]",Oc="[object WeakMap]",Cc="[object DataView]",Z0=ri(Va),Q0=ri(Wa),J0=ri(Xa),t1=ri(Ka),e1=ri(Ya),An=Tc;(Va&&An(new Va(new ArrayBuffer(1)))!=Cc||Wa&&An(new Wa)!=Ec||Xa&&An(Xa.resolve())!=Sc||Ka&&An(new Ka)!=Ac||Ya&&An(new Ya)!=Oc)&&(An=function(e){var t=Tc(e),r=t==Y0?e.constructor:void 0,n=r?ri(r):"";if(n)switch(n){case Z0:return Cc;case Q0:return Ec;case J0:return Sc;case t1:return Ac;case e1:return Oc}return t});var Rc=An;function r1(e){return e!=null&&typeof e=="object"}var Zi=r1,n1=Ki,i1=Zi,s1="[object Arguments]";function o1(e){return i1(e)&&n1(e)==s1}var a1=o1,Ic=a1,l1=Zi,Pc=Object.prototype,u1=Pc.hasOwnProperty,f1=Pc.propertyIsEnumerable,c1=Ic(function(){return arguments}())?Ic:function(e){return l1(e)&&u1.call(e,"callee")&&!f1.call(e,"callee")},Za=c1,h1=Array.isArray,kr=h1,d1=9007199254740991;function p1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=d1}var Qa=p1,v1=bc,g1=Qa;function m1(e){return e!=null&&g1(e.length)&&!v1(e)}var js=m1,qs={exports:{}};function y1(){return!1}var _1=y1;qs.exports,function(e,t){var r=Mr,n=_1,i=t&&!t.nodeType&&t,o=i&&!0&&e&&!e.nodeType&&e,l=o&&o.exports===i,u=l?r.Buffer:void 0,f=u?u.isBuffer:void 0,h=f||n;e.exports=h}(qs,qs.exports);var Ja=qs.exports,b1=Ki,x1=Qa,w1=Zi,T1="[object Arguments]",E1="[object Array]",S1="[object Boolean]",A1="[object Date]",O1="[object Error]",C1="[object Function]",R1="[object Map]",I1="[object Number]",P1="[object Object]",N1="[object RegExp]",M1="[object Set]",k1="[object String]",L1="[object WeakMap]",F1="[object ArrayBuffer]",B1="[object DataView]",D1="[object Float32Array]",U1="[object Float64Array]",$1="[object Int8Array]",G1="[object Int16Array]",j1="[object Int32Array]",q1="[object Uint8Array]",z1="[object Uint8ClampedArray]",H1="[object Uint16Array]",V1="[object Uint32Array]",le={};le[D1]=le[U1]=le[$1]=le[G1]=le[j1]=le[q1]=le[z1]=le[H1]=le[V1]=!0,le[T1]=le[E1]=le[F1]=le[S1]=le[B1]=le[A1]=le[O1]=le[C1]=le[R1]=le[I1]=le[P1]=le[N1]=le[M1]=le[k1]=le[L1]=!1;function W1(e){return w1(e)&&x1(e.length)&&!!le[b1(e)]}var X1=W1;function K1(e){return function(t){return e(t)}}var Y1=K1,zs={exports:{}};zs.exports,function(e,t){var r=vc,n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===n,l=o&&r.process,u=function(){try{var f=i&&i.require&&i.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}}();e.exports=u}(zs,zs.exports);var Z1=zs.exports,Q1=X1,J1=Y1,Nc=Z1,Mc=Nc&&Nc.isTypedArray,t_=Mc?J1(Mc):Q1,tl=t_,e_=pc,r_=Rc,n_=Za,i_=kr,s_=js,o_=Ja,a_=dc,l_=tl,u_="[object Map]",f_="[object Set]",c_=Object.prototype,h_=c_.hasOwnProperty;function d_(e){if(e==null)return!0;if(s_(e)&&(i_(e)||typeof e=="string"||typeof e.splice=="function"||o_(e)||l_(e)||n_(e)))return!e.length;var t=r_(e);if(t==u_||t==f_)return!e.size;if(a_(e))return!e_(e).length;for(var r in e)if(h_.call(e,r))return!1;return!0}var p_=d_;const el=En(p_);var rl=(e=>(e.NONE="none",e.NORMAL="normal",e.LENSFLARE="lensflare",e.FILMSTRIP="filmstrip",e.GRUNGE="grunge",e.BRICKS="bricks",e))(rl||{});const kc={normal:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",blendmode:"ADD",alpha:0},lensflare:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/eyecast_lensflare_overlay_50.jpg",blendmode:"ADD",alpha:1},filmstrip:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/frames_filmstrip_5.png",blendmode:"ADD",alpha:1},grunge:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/pixi_overlay_grunge_60.jpg",blendmode:"ADD",alpha:1},bricks:{src:"https://eyecastvideoeditorfiles.s3.ap-southeast-2.amazonaws.com/assets/overlays/bricks_Overlay_100.jpg",blendmode:"MULTIPLY",alpha:1}},v_=e=>{const{overlay:t,width:r,height:n,x:i,y:o}=e,{src:l,blendmode:u}=kc[t]||kc.normal;return Yt.jsx(me.TilingSprite,{image:l,width:r,height:n,x:i,y:o,tilePosition:{x:0,y:0},tileScale:.5,alpha:.5,anchor:.5})},g_=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],ni=Et.forwardRef((e,t)=>{const[r,n]=Et.useState(!1),[i,o]=_t.useState(!1),[l,u]=_t.useState(!1),f=_t.useRef(null),h=_t.useRef(null),d=_t.useRef(null),p=_t.useRef(null),c=_t.useRef(e.initialAlpha),{tl:v}=_t.useContext(ti),{uniqueId:m,startAt:_,endAt:b,initialAlpha:y,transformation:{x:w,y:T,width:x,height:E,scale:I=[1,1],rotation:A=0,animation:O,effect:L,overlay:R},applyTransformer:C,disabled:P,ignoreTlForVideo:M,pointerdown:F,pointerout:q,pointerover:Y,isText:z,isDragging:it,isGif:W,onDoubleClick:U,isTextEditMode:k}=e;mr(ke.COMPLETE,()=>{f.current&&(c.current=y)}),Et.useImperativeHandle(t,()=>({getIsTransformerDragging:()=>i,getIsMouseOverTransformer:()=>l}),[i,l]),Et.useEffect(()=>{f.current&&n(!0)},[]);const D=Et.useCallback(()=>{u(!0),Y&&Y()},[]),j=()=>{c.current=y},Z=rt=>{c.current=rt.alpha},X=rt=>{c.current=rt.alpha};Et.useEffect(()=>{let rt=Te.context(()=>{});if(f.current&&v.current){const ot={duration:Number(b)-Number(_)},pt={onStart:Z,onReverseComplete:j,onStartParams:[{alpha:1}]},mt={onComplete:X,onCompleteParams:[{alpha:0}]},xt=_y(O||"None");console.log("easeing",xt),rt=Te.context(()=>{v.current.to(f.current,{overwrite:"auto",alpha:1,duration:.1,...pt},_).from(f.current,{overwrite:"auto",...ot},_).to(f.current,{overwrite:"auto",alpha:0,duration:.1,...mt},Number(b)-.09)})}return()=>{v.current&&(v.current.progress(0).kill(),Te.killTweensOf(v.current)),rt.revert()}},[O,_,b,M]);const G=Et.useCallback(()=>{o(!0)},[]),V=Et.useCallback(rt=>{e.onAnchorTransformationEnd&&e.onAnchorTransformationEnd(rt),o(!1)},[]),et=me.withFilters(me.Container,{matrix:zr.filters.ColorMatrixFilter}),Q=c.current;return Yt.jsxs(me.Container,{ref:h,children:[Yt.jsxs(me.Container,{ref:f,alpha:Q,position:[w,T],pivot:[w,T],width:x,height:E,scale:I,rotation:A,...!P&&!i&&!it&&Q>0&&{interactive:!0,buttonMode:!0,pointerdown:F,pointerover:Y,pointerout:q},children:[!W&&Yt.jsx(et,{scale:1,apply:({matrix:rt})=>{L===Sn.BlackAndWhite?rt.desaturate():L===Sn.Sepia?rt.sepia():L===Sn.RetroVintage||L===Sn.NightVision?rt.negative():L===Sn.Normal&&rt.reset()},matrix:{enabled:!0,matrix:g_},children:Yt.jsx(me.Container,{ref:d,children:e.children})}),W&&Yt.jsx(me.Container,{ref:d,children:e.children}),!el(R)&&R!==rl.NONE&&R!==rl.NORMAL&&Yt.jsx(v_,{overlay:R,width:x,height:E,x:w,y:T})]}),C&&!k&&Yt.jsx(yy,{pixiTransformerRef:p,imageRef:f,isMounted:r,transformCommit:V,transformChange:G,mouseoverEvent:D,uniqueId:m,isText:z,onDoubleClick:U})]})});ni.whyDidYouRender={logOnDifferentValues:!0,customName:"AbstractContainer"};var On=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(On||{}),Lc=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(Lc||{}),nl=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(nl||{}),Rt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Rt||{}),an=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(an||{}),yt=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(yt||{}),ii=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(ii||{}),Wt=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(Wt||{}),il=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(il||{}),Lr=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(Lr||{}),Qi=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Qi||{}),Cn=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(Cn||{}),ln=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(ln||{}),Rn=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(Rn||{}),sl=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(sl||{}),or=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(or||{}),Ee=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(Ee||{}),we=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(we||{}),Fr=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(Fr||{});const Dt={ADAPTER:{createCanvas:(e,t)=>{const r=document.createElement("canvas");return r.width=e,r.height=t,r},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var ol=/iPhone/i,Fc=/iPod/i,Bc=/iPad/i,Dc=/\biOS-universal(?:.+)Mac\b/i,al=/\bAndroid(?:.+)Mobile\b/i,Uc=/Android/i,si=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,Hs=/Silk/i,Hr=/Windows Phone/i,$c=/\bWindows(?:.+)ARM\b/i,Gc=/BlackBerry/i,jc=/BB10/i,qc=/Opera Mini/i,zc=/\b(CriOS|Chrome)(?:.+)Mobile/i,Hc=/Mobile(?:.+)Firefox\b/i,Vc=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function m_(e){return function(t){return t.test(e)}}function Wc(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var r=t.userAgent,n=r.split("[FBAN");typeof n[1]<"u"&&(r=n[0]),n=r.split("Twitter"),typeof n[1]<"u"&&(r=n[0]);var i=m_(r),o={apple:{phone:i(ol)&&!i(Hr),ipod:i(Fc),tablet:!i(ol)&&(i(Bc)||Vc(t))&&!i(Hr),universal:i(Dc),device:(i(ol)||i(Fc)||i(Bc)||i(Dc)||Vc(t))&&!i(Hr)},amazon:{phone:i(si),tablet:!i(si)&&i(Hs),device:i(si)||i(Hs)},android:{phone:!i(Hr)&&i(si)||!i(Hr)&&i(al),tablet:!i(Hr)&&!i(si)&&!i(al)&&(i(Hs)||i(Uc)),device:!i(Hr)&&(i(si)||i(Hs)||i(al)||i(Uc))||i(/\bokhttp\b/i)},windows:{phone:i(Hr),tablet:i($c),device:i(Hr)||i($c)},other:{blackberry:i(Gc),blackberry10:i(jc),opera:i(qc),firefox:i(Hc),chrome:i(zc),device:i(Gc)||i(jc)||i(qc)||i(Hc)||i(zc)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}const oi=(Wc.default??Wc)(globalThis.navigator);Dt.RETINA_PREFIX=/@([0-9\.]+)x/,Dt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Xc={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(f,h,d){this.fn=f,this.context=h,this.once=d||!1}function o(f,h,d,p,c){if(typeof d!="function")throw new TypeError("The listener must be a function");var v=new i(d,p||f,c),m=r?r+h:h;return f._events[m]?f._events[m].fn?f._events[m]=[f._events[m],v]:f._events[m].push(v):(f._events[m]=v,f._eventsCount++),f}function l(f,h){--f._eventsCount===0?f._events=new n:delete f._events[h]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var h=[],d,p;if(this._eventsCount===0)return h;for(p in d=this._events)t.call(d,p)&&h.push(r?p.slice(1):p);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(d)):h},u.prototype.listeners=function(h){var d=r?r+h:h,p=this._events[d];if(!p)return[];if(p.fn)return[p.fn];for(var c=0,v=p.length,m=new Array(v);c<v;c++)m[c]=p[c].fn;return m},u.prototype.listenerCount=function(h){var d=r?r+h:h,p=this._events[d];return p?p.fn?1:p.length:0},u.prototype.emit=function(h,d,p,c,v,m){var _=r?r+h:h;if(!this._events[_])return!1;var b=this._events[_],y=arguments.length,w,T;if(b.fn){switch(b.once&&this.removeListener(h,b.fn,void 0,!0),y){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,p),!0;case 4:return b.fn.call(b.context,d,p,c),!0;case 5:return b.fn.call(b.context,d,p,c,v),!0;case 6:return b.fn.call(b.context,d,p,c,v,m),!0}for(T=1,w=new Array(y-1);T<y;T++)w[T-1]=arguments[T];b.fn.apply(b.context,w)}else{var x=b.length,E;for(T=0;T<x;T++)switch(b[T].once&&this.removeListener(h,b[T].fn,void 0,!0),y){case 1:b[T].fn.call(b[T].context);break;case 2:b[T].fn.call(b[T].context,d);break;case 3:b[T].fn.call(b[T].context,d,p);break;case 4:b[T].fn.call(b[T].context,d,p,c);break;default:if(!w)for(E=1,w=new Array(y-1);E<y;E++)w[E-1]=arguments[E];b[T].fn.apply(b[T].context,w)}}return!0},u.prototype.on=function(h,d,p){return o(this,h,d,p,!1)},u.prototype.once=function(h,d,p){return o(this,h,d,p,!0)},u.prototype.removeListener=function(h,d,p,c){var v=r?r+h:h;if(!this._events[v])return this;if(!d)return l(this,v),this;var m=this._events[v];if(m.fn)m.fn===d&&(!c||m.once)&&(!p||m.context===p)&&l(this,v);else{for(var _=0,b=[],y=m.length;_<y;_++)(m[_].fn!==d||c&&!m[_].once||p&&m[_].context!==p)&&b.push(m[_]);b.length?this._events[v]=b.length===1?b[0]:b:l(this,v)}return this},u.prototype.removeAllListeners=function(h){var d;return h?(d=r?r+h:h,this._events[d]&&l(this,d)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Xc);var y_=Xc.exports;const Vs=En(y_);var ll={exports:{}};ll.exports=Ws,ll.exports.default=Ws;function Ws(e,t,r){r=r||2;var n=t&&t.length,i=n?t[0]*r:e.length,o=Kc(e,0,i,r,!0),l=[];if(!o||o.next===o.prev)return l;var u,f,h,d,p,c,v;if(n&&(o=T_(e,t,o,r)),e.length>80*r){u=h=e[0],f=d=e[1];for(var m=r;m<i;m+=r)p=e[m],c=e[m+1],p<u&&(u=p),c<f&&(f=c),p>h&&(h=p),c>d&&(d=c);v=Math.max(h-u,d-f),v=v!==0?32767/v:0}return Ji(o,l,r,u,f,v,0),l}function Kc(e,t,r,n,i){var o,l;if(i===cl(e,t,r,n)>0)for(o=t;o<r;o+=n)l=Qc(o,e[o],e[o+1],l);else for(o=r-n;o>=t;o-=n)l=Qc(o,e[o],e[o+1],l);return l&&Xs(l,l.next)&&(es(l),l=l.next),l}function In(e,t){if(!e)return e;t||(t=e);var r=e,n;do if(n=!1,!r.steiner&&(Xs(r,r.next)||de(r.prev,r,r.next)===0)){if(es(r),r=t=r.prev,r===r.next)break;n=!0}else r=r.next;while(n||r!==t);return t}function Ji(e,t,r,n,i,o,l){if(e){!l&&o&&C_(e,n,i,o);for(var u=e,f,h;e.prev!==e.next;){if(f=e.prev,h=e.next,o?b_(e,n,i,o):__(e)){t.push(f.i/r|0),t.push(e.i/r|0),t.push(h.i/r|0),es(e),e=h.next,u=h.next;continue}if(e=h,e===u){l?l===1?(e=x_(In(e),t,r),Ji(e,t,r,n,i,o,2)):l===2&&w_(e,t,r,n,i,o):Ji(In(e),t,r,n,i,o,1);break}}}}function __(e){var t=e.prev,r=e,n=e.next;if(de(t,r,n)>=0)return!1;for(var i=t.x,o=r.x,l=n.x,u=t.y,f=r.y,h=n.y,d=i<o?i<l?i:l:o<l?o:l,p=u<f?u<h?u:h:f<h?f:h,c=i>o?i>l?i:l:o>l?o:l,v=u>f?u>h?u:h:f>h?f:h,m=n.next;m!==t;){if(m.x>=d&&m.x<=c&&m.y>=p&&m.y<=v&&ai(i,u,o,f,l,h,m.x,m.y)&&de(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function b_(e,t,r,n){var i=e.prev,o=e,l=e.next;if(de(i,o,l)>=0)return!1;for(var u=i.x,f=o.x,h=l.x,d=i.y,p=o.y,c=l.y,v=u<f?u<h?u:h:f<h?f:h,m=d<p?d<c?d:c:p<c?p:c,_=u>f?u>h?u:h:f>h?f:h,b=d>p?d>c?d:c:p>c?p:c,y=ul(v,m,t,r,n),w=ul(_,b,t,r,n),T=e.prevZ,x=e.nextZ;T&&T.z>=y&&x&&x.z<=w;){if(T.x>=v&&T.x<=_&&T.y>=m&&T.y<=b&&T!==i&&T!==l&&ai(u,d,f,p,h,c,T.x,T.y)&&de(T.prev,T,T.next)>=0||(T=T.prevZ,x.x>=v&&x.x<=_&&x.y>=m&&x.y<=b&&x!==i&&x!==l&&ai(u,d,f,p,h,c,x.x,x.y)&&de(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;T&&T.z>=y;){if(T.x>=v&&T.x<=_&&T.y>=m&&T.y<=b&&T!==i&&T!==l&&ai(u,d,f,p,h,c,T.x,T.y)&&de(T.prev,T,T.next)>=0)return!1;T=T.prevZ}for(;x&&x.z<=w;){if(x.x>=v&&x.x<=_&&x.y>=m&&x.y<=b&&x!==i&&x!==l&&ai(u,d,f,p,h,c,x.x,x.y)&&de(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}function x_(e,t,r){var n=e;do{var i=n.prev,o=n.next.next;!Xs(i,o)&&Yc(i,n,n.next,o)&&ts(i,o)&&ts(o,i)&&(t.push(i.i/r|0),t.push(n.i/r|0),t.push(o.i/r|0),es(n),es(n.next),n=e=o),n=n.next}while(n!==e);return In(n)}function w_(e,t,r,n,i,o){var l=e;do{for(var u=l.next.next;u!==l.prev;){if(l.i!==u.i&&P_(l,u)){var f=Zc(l,u);l=In(l,l.next),f=In(f,f.next),Ji(l,t,r,n,i,o,0),Ji(f,t,r,n,i,o,0);return}u=u.next}l=l.next}while(l!==e)}function T_(e,t,r,n){var i=[],o,l,u,f,h;for(o=0,l=t.length;o<l;o++)u=t[o]*n,f=o<l-1?t[o+1]*n:e.length,h=Kc(e,u,f,n,!1),h===h.next&&(h.steiner=!0),i.push(I_(h));for(i.sort(E_),o=0;o<i.length;o++)r=S_(i[o],r);return r}function E_(e,t){return e.x-t.x}function S_(e,t){var r=A_(e,t);if(!r)return t;var n=Zc(r,e);return In(n,n.next),In(r,r.next)}function A_(e,t){var r=t,n=e.x,i=e.y,o=-1/0,l;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var u=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(u<=n&&u>o&&(o=u,l=r.x<r.next.x?r:r.next,u===n))return l}r=r.next}while(r!==t);if(!l)return null;var f=l,h=l.x,d=l.y,p=1/0,c;r=l;do n>=r.x&&r.x>=h&&n!==r.x&&ai(i<d?n:o,i,h,d,i<d?o:n,i,r.x,r.y)&&(c=Math.abs(i-r.y)/(n-r.x),ts(r,e)&&(c<p||c===p&&(r.x>l.x||r.x===l.x&&O_(l,r)))&&(l=r,p=c)),r=r.next;while(r!==f);return l}function O_(e,t){return de(e.prev,e,t.prev)<0&&de(t.next,e,e.next)<0}function C_(e,t,r,n){var i=e;do i.z===0&&(i.z=ul(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,R_(i)}function R_(e){var t,r,n,i,o,l,u,f,h=1;do{for(r=e,e=null,o=null,l=0;r;){for(l++,n=r,u=0,t=0;t<h&&(u++,n=n.nextZ,!!n);t++);for(f=h;u>0||f>0&&n;)u!==0&&(f===0||!n||r.z<=n.z)?(i=r,r=r.nextZ,u--):(i=n,n=n.nextZ,f--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;r=n}o.nextZ=null,h*=2}while(l>1);return e}function ul(e,t,r,n,i){return e=(e-r)*i|0,t=(t-n)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function I_(e){var t=e,r=e;do(t.x<r.x||t.x===r.x&&t.y<r.y)&&(r=t),t=t.next;while(t!==e);return r}function ai(e,t,r,n,i,o,l,u){return(i-l)*(t-u)>=(e-l)*(o-u)&&(e-l)*(n-u)>=(r-l)*(t-u)&&(r-l)*(o-u)>=(i-l)*(n-u)}function P_(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!N_(e,t)&&(ts(e,t)&&ts(t,e)&&M_(e,t)&&(de(e.prev,e,t.prev)||de(e,t.prev,t))||Xs(e,t)&&de(e.prev,e,e.next)>0&&de(t.prev,t,t.next)>0)}function de(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function Xs(e,t){return e.x===t.x&&e.y===t.y}function Yc(e,t,r,n){var i=Ys(de(e,t,r)),o=Ys(de(e,t,n)),l=Ys(de(r,n,e)),u=Ys(de(r,n,t));return!!(i!==o&&l!==u||i===0&&Ks(e,r,t)||o===0&&Ks(e,n,t)||l===0&&Ks(r,e,n)||u===0&&Ks(r,t,n))}function Ks(e,t,r){return t.x<=Math.max(e.x,r.x)&&t.x>=Math.min(e.x,r.x)&&t.y<=Math.max(e.y,r.y)&&t.y>=Math.min(e.y,r.y)}function Ys(e){return e>0?1:e<0?-1:0}function N_(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&Yc(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function ts(e,t){return de(e.prev,e,e.next)<0?de(e,t,e.next)>=0&&de(e,e.prev,t)>=0:de(e,t,e.prev)<0||de(e,e.next,t)<0}function M_(e,t){var r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do r.y>o!=r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next;while(r!==e);return n}function Zc(e,t){var r=new fl(e.i,e.x,e.y),n=new fl(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=i,i.prev=r,n.next=r,r.prev=n,o.next=n,n.prev=o,n}function Qc(e,t,r,n){var i=new fl(e,t,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function es(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function fl(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}Ws.deviation=function(e,t,r,n){var i=t&&t.length,o=i?t[0]*r:e.length,l=Math.abs(cl(e,0,o,r));if(i)for(var u=0,f=t.length;u<f;u++){var h=t[u]*r,d=u<f-1?t[u+1]*r:e.length;l-=Math.abs(cl(e,h,d,r))}var p=0;for(u=0;u<n.length;u+=3){var c=n[u]*r,v=n[u+1]*r,m=n[u+2]*r;p+=Math.abs((e[c]-e[m])*(e[v+1]-e[c+1])-(e[c]-e[v])*(e[m+1]-e[c+1]))}return l===0&&p===0?0:Math.abs((p-l)/l)};function cl(e,t,r,n){for(var i=0,o=t,l=r-n;o<r;o+=n)i+=(e[l]-e[o])*(e[o+1]+e[l+1]),l=o;return i}Ws.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var l=0;l<t;l++)r.vertices.push(e[i][o][l]);i>0&&(n+=e[i-1].length,r.holes.push(n))}return r};var k_=ll.exports;const L_=En(k_);var Zs={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Zs.exports,function(e,t){(function(r){var n=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof Ye=="object"&&Ye;(o.global===o||o.window===o||o.self===o)&&(r=o);var l,u=2147483647,f=36,h=1,d=26,p=38,c=700,v=72,m=128,_="-",b=/^xn--/,y=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,T={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=f-h,E=Math.floor,I=String.fromCharCode,A;function O(U){throw new RangeError(T[U])}function L(U,k){for(var D=U.length,j=[];D--;)j[D]=k(U[D]);return j}function R(U,k){var D=U.split("@"),j="";D.length>1&&(j=D[0]+"@",U=D[1]),U=U.replace(w,".");var Z=U.split("."),X=L(Z,k).join(".");return j+X}function C(U){for(var k=[],D=0,j=U.length,Z,X;D<j;)Z=U.charCodeAt(D++),Z>=55296&&Z<=56319&&D<j?(X=U.charCodeAt(D++),(X&64512)==56320?k.push(((Z&1023)<<10)+(X&1023)+65536):(k.push(Z),D--)):k.push(Z);return k}function P(U){return L(U,function(k){var D="";return k>65535&&(k-=65536,D+=I(k>>>10&1023|55296),k=56320|k&1023),D+=I(k),D}).join("")}function M(U){return U-48<10?U-22:U-65<26?U-65:U-97<26?U-97:f}function F(U,k){return U+22+75*(U<26)-((k!=0)<<5)}function q(U,k,D){var j=0;for(U=D?E(U/c):U>>1,U+=E(U/k);U>x*d>>1;j+=f)U=E(U/x);return E(j+(x+1)*U/(U+p))}function Y(U){var k=[],D=U.length,j,Z=0,X=m,G=v,V,et,Q,rt,ot,pt,mt,xt,At;for(V=U.lastIndexOf(_),V<0&&(V=0),et=0;et<V;++et)U.charCodeAt(et)>=128&&O("not-basic"),k.push(U.charCodeAt(et));for(Q=V>0?V+1:0;Q<D;){for(rt=Z,ot=1,pt=f;Q>=D&&O("invalid-input"),mt=M(U.charCodeAt(Q++)),(mt>=f||mt>E((u-Z)/ot))&&O("overflow"),Z+=mt*ot,xt=pt<=G?h:pt>=G+d?d:pt-G,!(mt<xt);pt+=f)At=f-xt,ot>E(u/At)&&O("overflow"),ot*=At;j=k.length+1,G=q(Z-rt,j,rt==0),E(Z/j)>u-X&&O("overflow"),X+=E(Z/j),Z%=j,k.splice(Z++,0,X)}return P(k)}function z(U){var k,D,j,Z,X,G,V,et,Q,rt,ot,pt=[],mt,xt,At,oe;for(U=C(U),mt=U.length,k=m,D=0,X=v,G=0;G<mt;++G)ot=U[G],ot<128&&pt.push(I(ot));for(j=Z=pt.length,Z&&pt.push(_);j<mt;){for(V=u,G=0;G<mt;++G)ot=U[G],ot>=k&&ot<V&&(V=ot);for(xt=j+1,V-k>E((u-D)/xt)&&O("overflow"),D+=(V-k)*xt,k=V,G=0;G<mt;++G)if(ot=U[G],ot<k&&++D>u&&O("overflow"),ot==k){for(et=D,Q=f;rt=Q<=X?h:Q>=X+d?d:Q-X,!(et<rt);Q+=f)oe=et-rt,At=f-rt,pt.push(I(F(rt+oe%At,0))),et=E(oe/At);pt.push(I(F(et,0))),X=q(D,xt,j==Z),D=0,++j}++D,++k}return pt.join("")}function it(U){return R(U,function(k){return b.test(k)?Y(k.slice(4).toLowerCase()):k})}function W(U){return R(U,function(k){return y.test(k)?"xn--"+z(k):k})}if(l={version:"1.4.1",ucs2:{decode:C,encode:P},decode:Y,encode:z,toASCII:W,toUnicode:it},n&&i)if(e.exports==n)i.exports=l;else for(A in l)l.hasOwnProperty(A)&&(n[A]=l[A]);else r.punycode=l})(Ye)}(Zs,Zs.exports);var F_=Zs.exports,B_=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(r in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(t,r);if(l.value!==i||l.enumerable!==!0)return!1}return!0},Jc=typeof Symbol<"u"&&Symbol,D_=B_,U_=function(){return typeof Jc!="function"||typeof Symbol!="function"||typeof Jc("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:D_()},th={foo:{}},$_=Object,G_=function(){return{__proto__:th}.foo===th.foo&&!({__proto__:null}instanceof $_)},j_="Function.prototype.bind called on incompatible ",hl=Array.prototype.slice,q_=Object.prototype.toString,z_="[object Function]",H_=function(t){var r=this;if(typeof r!="function"||q_.call(r)!==z_)throw new TypeError(j_+r);for(var n=hl.call(arguments,1),i,o=function(){if(this instanceof i){var d=r.apply(this,n.concat(hl.call(arguments)));return Object(d)===d?d:this}else return r.apply(t,n.concat(hl.call(arguments)))},l=Math.max(0,r.length-n.length),u=[],f=0;f<l;f++)u.push("$"+f);if(i=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(o),r.prototype){var h=function(){};h.prototype=r.prototype,i.prototype=new h,h.prototype=null}return i},V_=H_,dl=Function.prototype.bind||V_,W_=dl,X_=W_.call(Function.call,Object.prototype.hasOwnProperty),$t,li=SyntaxError,eh=Function,ui=TypeError,pl=function(e){try{return eh('"use strict"; return ('+e+").constructor;")()}catch{}},Pn=Object.getOwnPropertyDescriptor;if(Pn)try{Pn({},"")}catch{Pn=null}var vl=function(){throw new ui},K_=Pn?function(){try{return arguments.callee,vl}catch{try{return Pn(arguments,"callee").get}catch{return vl}}}():vl,fi=U_(),Y_=G_(),Oe=Object.getPrototypeOf||(Y_?function(e){return e.__proto__}:null),ci={},Z_=typeof Uint8Array>"u"||!Oe?$t:Oe(Uint8Array),Nn={"%AggregateError%":typeof AggregateError>"u"?$t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?$t:ArrayBuffer,"%ArrayIteratorPrototype%":fi&&Oe?Oe([][Symbol.iterator]()):$t,"%AsyncFromSyncIteratorPrototype%":$t,"%AsyncFunction%":ci,"%AsyncGenerator%":ci,"%AsyncGeneratorFunction%":ci,"%AsyncIteratorPrototype%":ci,"%Atomics%":typeof Atomics>"u"?$t:Atomics,"%BigInt%":typeof BigInt>"u"?$t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?$t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?$t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?$t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?$t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?$t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?$t:FinalizationRegistry,"%Function%":eh,"%GeneratorFunction%":ci,"%Int8Array%":typeof Int8Array>"u"?$t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?$t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?$t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":fi&&Oe?Oe(Oe([][Symbol.iterator]())):$t,"%JSON%":typeof JSON=="object"?JSON:$t,"%Map%":typeof Map>"u"?$t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!fi||!Oe?$t:Oe(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?$t:Promise,"%Proxy%":typeof Proxy>"u"?$t:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?$t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?$t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!fi||!Oe?$t:Oe(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?$t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":fi&&Oe?Oe(""[Symbol.iterator]()):$t,"%Symbol%":fi?Symbol:$t,"%SyntaxError%":li,"%ThrowTypeError%":K_,"%TypedArray%":Z_,"%TypeError%":ui,"%Uint8Array%":typeof Uint8Array>"u"?$t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?$t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?$t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?$t:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?$t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?$t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?$t:WeakSet};if(Oe)try{null.error}catch(e){var Q_=Oe(Oe(e));Nn["%Error.prototype%"]=Q_}var J_=function e(t){var r;if(t==="%AsyncFunction%")r=pl("async function () {}");else if(t==="%GeneratorFunction%")r=pl("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=pl("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&Oe&&(r=Oe(i.prototype))}return Nn[t]=r,r},rh={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},rs=dl,Qs=X_,tb=rs.call(Function.call,Array.prototype.concat),eb=rs.call(Function.apply,Array.prototype.splice),nh=rs.call(Function.call,String.prototype.replace),Js=rs.call(Function.call,String.prototype.slice),rb=rs.call(Function.call,RegExp.prototype.exec),nb=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ib=/\\(\\)?/g,sb=function(t){var r=Js(t,0,1),n=Js(t,-1);if(r==="%"&&n!=="%")throw new li("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new li("invalid intrinsic syntax, expected opening `%`");var i=[];return nh(t,nb,function(o,l,u,f){i[i.length]=u?nh(f,ib,"$1"):l||o}),i},ob=function(t,r){var n=t,i;if(Qs(rh,n)&&(i=rh[n],n="%"+i[0]+"%"),Qs(Nn,n)){var o=Nn[n];if(o===ci&&(o=J_(n)),typeof o>"u"&&!r)throw new ui("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new li("intrinsic "+t+" does not exist!")},gl=function(t,r){if(typeof t!="string"||t.length===0)throw new ui("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ui('"allowMissing" argument must be a boolean');if(rb(/^%?[^%]*%?$/,t)===null)throw new li("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=sb(t),i=n.length>0?n[0]:"",o=ob("%"+i+"%",r),l=o.name,u=o.value,f=!1,h=o.alias;h&&(i=h[0],eb(n,tb([0,1],h)));for(var d=1,p=!0;d<n.length;d+=1){var c=n[d],v=Js(c,0,1),m=Js(c,-1);if((v==='"'||v==="'"||v==="`"||m==='"'||m==="'"||m==="`")&&v!==m)throw new li("property names with quotes must have matching quotes");if((c==="constructor"||!p)&&(f=!0),i+="."+c,l="%"+i+"%",Qs(Nn,l))u=Nn[l];else if(u!=null){if(!(c in u)){if(!r)throw new ui("base intrinsic for "+t+" exists, but the property is not available.");return}if(Pn&&d+1>=n.length){var _=Pn(u,c);p=!!_,p&&"get"in _&&!("originalValue"in _.get)?u=_.get:u=u[c]}else p=Qs(u,c),u=u[c];p&&!f&&(Nn[l]=u)}}return u},ih={exports:{}};(function(e){var t=dl,r=gl,n=r("%Function.prototype.apply%"),i=r("%Function.prototype.call%"),o=r("%Reflect.apply%",!0)||t.call(i,n),l=r("%Object.getOwnPropertyDescriptor%",!0),u=r("%Object.defineProperty%",!0),f=r("%Math.max%");if(u)try{u({},"a",{value:1})}catch{u=null}e.exports=function(p){var c=o(t,i,arguments);if(l&&u){var v=l(c,"length");v.configurable&&u(c,"length",{value:1+f(0,p.length-(arguments.length-1))})}return c};var h=function(){return o(t,n,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h})(ih);var ab=ih.exports,sh=gl,oh=ab,lb=oh(sh("String.prototype.indexOf")),ub=function(t,r){var n=sh(t,!!r);return typeof n=="function"&&lb(t,".prototype.")>-1?oh(n):n};const fb=uy(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var ml=typeof Map=="function"&&Map.prototype,yl=Object.getOwnPropertyDescriptor&&ml?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,to=ml&&yl&&typeof yl.get=="function"?yl.get:null,ah=ml&&Map.prototype.forEach,_l=typeof Set=="function"&&Set.prototype,bl=Object.getOwnPropertyDescriptor&&_l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,eo=_l&&bl&&typeof bl.get=="function"?bl.get:null,lh=_l&&Set.prototype.forEach,cb=typeof WeakMap=="function"&&WeakMap.prototype,ns=cb?WeakMap.prototype.has:null,hb=typeof WeakSet=="function"&&WeakSet.prototype,is=hb?WeakSet.prototype.has:null,db=typeof WeakRef=="function"&&WeakRef.prototype,uh=db?WeakRef.prototype.deref:null,pb=Boolean.prototype.valueOf,vb=Object.prototype.toString,gb=Function.prototype.toString,mb=String.prototype.match,xl=String.prototype.slice,un=String.prototype.replace,yb=String.prototype.toUpperCase,fh=String.prototype.toLowerCase,ch=RegExp.prototype.test,hh=Array.prototype.concat,Br=Array.prototype.join,_b=Array.prototype.slice,dh=Math.floor,wl=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Tl=Object.getOwnPropertySymbols,El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hi=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Le=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hi||"symbol")?Symbol.toStringTag:null,ph=Object.prototype.propertyIsEnumerable,vh=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function gh(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||ch.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var n=e<0?-dh(-e):dh(e);if(n!==e){var i=String(n),o=xl.call(t,i.length+1);return un.call(i,r,"$&_")+"."+un.call(un.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return un.call(t,r,"$&_")}var Sl=fb,mh=Sl.custom,yh=xh(mh)?mh:null,bb=function e(t,r,n,i){var o=r||{};if(fn(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(fn(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=fn(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(fn(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(fn(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Th(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var f=String(t);return u?gh(t,f):f}if(typeof t=="bigint"){var h=String(t)+"n";return u?gh(t,h):h}var d=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=d&&d>0&&typeof t=="object")return Al(t)?"[Array]":"[Object]";var p=Db(o,n);if(typeof i>"u")i=[];else if(wh(i,t)>=0)return"[Circular]";function c(M,F,q){if(F&&(i=_b.call(i),i.push(F)),q){var Y={depth:o.depth};return fn(o,"quoteStyle")&&(Y.quoteStyle=o.quoteStyle),e(M,Y,n+1,i)}return e(M,o,n+1,i)}if(typeof t=="function"&&!bh(t)){var v=Rb(t),m=ro(t,c);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(m.length>0?" { "+Br.call(m,", ")+" }":"")}if(xh(t)){var _=hi?un.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):El.call(t);return typeof t=="object"&&!hi?ss(_):_}if(Lb(t)){for(var b="<"+fh.call(String(t.nodeName)),y=t.attributes||[],w=0;w<y.length;w++)b+=" "+y[w].name+"="+_h(xb(y[w].value),"double",o);return b+=">",t.childNodes&&t.childNodes.length&&(b+="..."),b+="</"+fh.call(String(t.nodeName))+">",b}if(Al(t)){if(t.length===0)return"[]";var T=ro(t,c);return p&&!Bb(T)?"["+Cl(T,p)+"]":"[ "+Br.call(T,", ")+" ]"}if(Tb(t)){var x=ro(t,c);return!("cause"in Error.prototype)&&"cause"in t&&!ph.call(t,"cause")?"{ ["+String(t)+"] "+Br.call(hh.call("[cause]: "+c(t.cause),x),", ")+" }":x.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Br.call(x,", ")+" }"}if(typeof t=="object"&&l){if(yh&&typeof t[yh]=="function"&&Sl)return Sl(t,{depth:d-n});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Ib(t)){var E=[];return ah&&ah.call(t,function(M,F){E.push(c(F,t,!0)+" => "+c(M,t))}),Eh("Map",to.call(t),E,p)}if(Mb(t)){var I=[];return lh&&lh.call(t,function(M){I.push(c(M,t))}),Eh("Set",eo.call(t),I,p)}if(Pb(t))return Ol("WeakMap");if(kb(t))return Ol("WeakSet");if(Nb(t))return Ol("WeakRef");if(Sb(t))return ss(c(Number(t)));if(Ob(t))return ss(c(wl.call(t)));if(Ab(t))return ss(pb.call(t));if(Eb(t))return ss(c(String(t)));if(!wb(t)&&!bh(t)){var A=ro(t,c),O=vh?vh(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",R=!O&&Le&&Object(t)===t&&Le in t?xl.call(cn(t),8,-1):L?"Object":"",C=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",P=C+(R||L?"["+Br.call(hh.call([],R||[],L||[]),": ")+"] ":"");return A.length===0?P+"{}":p?P+"{"+Cl(A,p)+"}":P+"{ "+Br.call(A,", ")+" }"}return String(t)};function _h(e,t,r){var n=(r.quoteStyle||t)==="double"?'"':"'";return n+e+n}function xb(e){return un.call(String(e),/"/g,"&quot;")}function Al(e){return cn(e)==="[object Array]"&&(!Le||!(typeof e=="object"&&Le in e))}function wb(e){return cn(e)==="[object Date]"&&(!Le||!(typeof e=="object"&&Le in e))}function bh(e){return cn(e)==="[object RegExp]"&&(!Le||!(typeof e=="object"&&Le in e))}function Tb(e){return cn(e)==="[object Error]"&&(!Le||!(typeof e=="object"&&Le in e))}function Eb(e){return cn(e)==="[object String]"&&(!Le||!(typeof e=="object"&&Le in e))}function Sb(e){return cn(e)==="[object Number]"&&(!Le||!(typeof e=="object"&&Le in e))}function Ab(e){return cn(e)==="[object Boolean]"&&(!Le||!(typeof e=="object"&&Le in e))}function xh(e){if(hi)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!El)return!1;try{return El.call(e),!0}catch{}return!1}function Ob(e){if(!e||typeof e!="object"||!wl)return!1;try{return wl.call(e),!0}catch{}return!1}var Cb=Object.prototype.hasOwnProperty||function(e){return e in this};function fn(e,t){return Cb.call(e,t)}function cn(e){return vb.call(e)}function Rb(e){if(e.name)return e.name;var t=mb.call(gb.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function wh(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function Ib(e){if(!to||!e||typeof e!="object")return!1;try{to.call(e);try{eo.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Pb(e){if(!ns||!e||typeof e!="object")return!1;try{ns.call(e,ns);try{is.call(e,is)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Nb(e){if(!uh||!e||typeof e!="object")return!1;try{return uh.call(e),!0}catch{}return!1}function Mb(e){if(!eo||!e||typeof e!="object")return!1;try{eo.call(e);try{to.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function kb(e){if(!is||!e||typeof e!="object")return!1;try{is.call(e,is);try{ns.call(e,ns)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Lb(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Th(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Th(xl.call(e,0,t.maxStringLength),t)+n}var i=un.call(un.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Fb);return _h(i,"single",t)}function Fb(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+yb.call(t.toString(16))}function ss(e){return"Object("+e+")"}function Ol(e){return e+" { ? }"}function Eh(e,t,r,n){var i=n?Cl(r,n):Br.call(r,", ");return e+" ("+t+") {"+i+"}"}function Bb(e){for(var t=0;t<e.length;t++)if(wh(e[t],`
10
10
  `)>=0)return!1;return!0}function Db(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Br.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Br.call(Array(t+1),r)}}function Cl(e,t){if(e.length===0)return"";var r=`
11
11
  `+t.prev+t.base;return r+Br.call(e,","+r)+`
12
- `+t.prev}function ro(e,t){var r=Al(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=fn(e,i)?t(e[i],e):""}var o=typeof Tl=="function"?Tl(e):[],l;if(hi){l={};for(var u=0;u<o.length;u++)l["$"+o[u]]=o[u]}for(var f in e)fn(e,f)&&(r&&String(Number(f))===f&&f<e.length||hi&&l["$"+f]instanceof Symbol||(ch.call(/[^\w$]/,f)?n.push(t(f,e)+": "+t(e[f],e)):n.push(f+": "+t(e[f],e))));if(typeof Tl=="function")for(var h=0;h<o.length;h++)ph.call(e,o[h])&&n.push("["+t(o[h])+"]: "+t(e[o[h]],e));return n}var Rl=gl,di=ub,Ub=bb,$b=Rl("%TypeError%"),no=Rl("%WeakMap%",!0),io=Rl("%Map%",!0),Gb=di("WeakMap.prototype.get",!0),jb=di("WeakMap.prototype.set",!0),qb=di("WeakMap.prototype.has",!0),zb=di("Map.prototype.get",!0),Hb=di("Map.prototype.set",!0),Vb=di("Map.prototype.has",!0),Il=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},Wb=function(e,t){var r=Il(e,t);return r&&r.value},Xb=function(e,t,r){var n=Il(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Kb=function(e,t){return!!Il(e,t)},Yb=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new $b("Side channel does not contain "+Ub(o))},get:function(o){if(no&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Gb(t,o)}else if(io){if(r)return zb(r,o)}else if(n)return Wb(n,o)},has:function(o){if(no&&o&&(typeof o=="object"||typeof o=="function")){if(t)return qb(t,o)}else if(io){if(r)return Vb(r,o)}else if(n)return Kb(n,o);return!1},set:function(o,l){no&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new no),jb(t,o,l)):io?(r||(r=new io),Hb(r,o,l)):(n||(n={key:{},next:null}),Xb(n,o,l))}};return i},Zb=String.prototype.replace,Qb=/%20/g,Pl={RFC1738:"RFC1738",RFC3986:"RFC3986"},Nl={default:Pl.RFC3986,formatters:{RFC1738:function(e){return Zb.call(e,Qb,"+")},RFC3986:function(e){return String(e)}},RFC1738:Pl.RFC1738,RFC3986:Pl.RFC3986},Jb=Nl,Ml=Object.prototype.hasOwnProperty,Mn=Array.isArray,Dr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),tx=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Mn(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},Sh=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},ex=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Mn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Ml.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return Mn(t)&&!Mn(r)&&(i=Sh(t,n)),Mn(t)&&Mn(r)?(r.forEach(function(o,l){if(Ml.call(t,l)){var u=t[l];u&&typeof u=="object"&&o&&typeof o=="object"?t[l]=e(u,o,n):t.push(o)}else t[l]=o}),t):Object.keys(r).reduce(function(o,l){var u=r[l];return Ml.call(o,l)?o[l]=e(o[l],u,n):o[l]=u,o},i)},rx=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},nx=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},ix=function(t,r,n,i,o){if(t.length===0)return t;var l=t;if(typeof t=="symbol"?l=Symbol.prototype.toString.call(t):typeof t!="string"&&(l=String(t)),n==="iso-8859-1")return escape(l).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var u="",f=0;f<l.length;++f){var h=l.charCodeAt(f);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===Jb.RFC1738&&(h===40||h===41)){u+=l.charAt(f);continue}if(h<128){u=u+Dr[h];continue}if(h<2048){u=u+(Dr[192|h>>6]+Dr[128|h&63]);continue}if(h<55296||h>=57344){u=u+(Dr[224|h>>12]+Dr[128|h>>6&63]+Dr[128|h&63]);continue}f+=1,h=65536+((h&1023)<<10|l.charCodeAt(f)&1023),u+=Dr[240|h>>18]+Dr[128|h>>12&63]+Dr[128|h>>6&63]+Dr[128|h&63]}return u},sx=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],l=o.obj[o.prop],u=Object.keys(l),f=0;f<u.length;++f){var h=u[f],d=l[h];typeof d=="object"&&d!==null&&n.indexOf(d)===-1&&(r.push({obj:l,prop:h}),n.push(d))}return tx(r),t},ox=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},ax=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},lx=function(t,r){return[].concat(t,r)},ux=function(t,r){if(Mn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},Ah={arrayToObject:Sh,assign:rx,combine:lx,compact:sx,decode:nx,encode:ix,isBuffer:ax,isRegExp:ox,maybeMap:ux,merge:ex},Oh=Yb,so=Ah,os=Nl,fx=Object.prototype.hasOwnProperty,Ch={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Vr=Array.isArray,cx=Array.prototype.push,Rh=function(e,t){cx.apply(e,Vr(t)?t:[t])},hx=Date.prototype.toISOString,Ih=os.default,Fe={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:so.encode,encodeValuesOnly:!1,format:Ih,formatter:os.formatters[Ih],indices:!1,serializeDate:function(t){return hx.call(t)},skipNulls:!1,strictNullHandling:!1},dx=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},kl={},px=function e(t,r,n,i,o,l,u,f,h,d,p,c,v,m,_,b){for(var y=t,w=b,T=0,x=!1;(w=w.get(kl))!==void 0&&!x;){var E=w.get(t);if(T+=1,typeof E<"u"){if(E===T)throw new RangeError("Cyclic object value");x=!0}typeof w.get(kl)>"u"&&(T=0)}if(typeof f=="function"?y=f(r,y):y instanceof Date?y=p(y):n==="comma"&&Vr(y)&&(y=so.maybeMap(y,function(K){return K instanceof Date?p(K):K})),y===null){if(o)return u&&!m?u(r,Fe.encoder,_,"key",c):r;y=""}if(dx(y)||so.isBuffer(y)){if(u){var I=m?r:u(r,Fe.encoder,_,"key",c);return[v(I)+"="+v(u(y,Fe.encoder,_,"value",c))]}return[v(r)+"="+v(String(y))]}var A=[];if(typeof y>"u")return A;var O;if(n==="comma"&&Vr(y))m&&u&&(y=so.maybeMap(y,u)),O=[{value:y.length>0?y.join(",")||null:void 0}];else if(Vr(f))O=f;else{var L=Object.keys(y);O=h?L.sort(h):L}for(var R=i&&Vr(y)&&y.length===1?r+"[]":r,C=0;C<O.length;++C){var P=O[C],M=typeof P=="object"&&typeof P.value<"u"?P.value:y[P];if(!(l&&M===null)){var F=Vr(y)?typeof n=="function"?n(R,P):R:R+(d?"."+P:"["+P+"]");b.set(t,T);var q=Oh();q.set(kl,b),Rh(A,e(M,F,n,i,o,l,n==="comma"&&m&&Vr(y)?null:u,f,h,d,p,c,v,m,_,q))}}return A},vx=function(t){if(!t)return Fe;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Fe.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=os.default;if(typeof t.format<"u"){if(!fx.call(os.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=os.formatters[n],o=Fe.filter;return(typeof t.filter=="function"||Vr(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Fe.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Fe.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Fe.charsetSentinel,delimiter:typeof t.delimiter>"u"?Fe.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Fe.encode,encoder:typeof t.encoder=="function"?t.encoder:Fe.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Fe.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Fe.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Fe.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Fe.strictNullHandling}},gx=function(e,t){var r=e,n=vx(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Vr(n.filter)&&(o=n.filter,i=o);var l=[];if(typeof r!="object"||r===null)return"";var u;t&&t.arrayFormat in Ch?u=t.arrayFormat:t&&"indices"in t?u=t.indices?"indices":"repeat":u="indices";var f=Ch[u];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=f==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var d=Oh(),p=0;p<i.length;++p){var c=i[p];n.skipNulls&&r[c]===null||Rh(l,px(r[c],c,f,h,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,d))}var v=l.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),v.length>0?m+v:""},pi=Ah,Ll=Object.prototype.hasOwnProperty,mx=Array.isArray,Ce={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:pi.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},yx=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Ph=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},_x="utf8=%26%2310003%3B",bx="utf8=%E2%9C%93",xx=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,l=i.split(r.delimiter,o),u=-1,f,h=r.charset;if(r.charsetSentinel)for(f=0;f<l.length;++f)l[f].indexOf("utf8=")===0&&(l[f]===bx?h="utf-8":l[f]===_x&&(h="iso-8859-1"),u=f,f=l.length);for(f=0;f<l.length;++f)if(f!==u){var d=l[f],p=d.indexOf("]="),c=p===-1?d.indexOf("="):p+1,v,m;c===-1?(v=r.decoder(d,Ce.decoder,h,"key"),m=r.strictNullHandling?null:""):(v=r.decoder(d.slice(0,c),Ce.decoder,h,"key"),m=pi.maybeMap(Ph(d.slice(c+1),r),function(_){return r.decoder(_,Ce.decoder,h,"value")})),m&&r.interpretNumericEntities&&h==="iso-8859-1"&&(m=yx(m)),d.indexOf("[]=")>-1&&(m=mx(m)?[m]:m),Ll.call(n,v)?n[v]=pi.combine(n[v],m):n[v]=m}return n},wx=function(e,t,r,n){for(var i=n?t:Ph(t,r),o=e.length-1;o>=0;--o){var l,u=e[o];if(u==="[]"&&r.parseArrays)l=[].concat(i);else{l=r.plainObjects?Object.create(null):{};var f=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,h=parseInt(f,10);!r.parseArrays&&f===""?l={0:i}:!isNaN(h)&&u!==f&&String(h)===f&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(l=[],l[h]=i):f!=="__proto__"&&(l[f]=i)}i=l}return i},Tx=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,l=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,f=n.depth>0&&l.exec(o),h=f?o.slice(0,f.index):o,d=[];if(h){if(!n.plainObjects&&Ll.call(Object.prototype,h)&&!n.allowPrototypes)return;d.push(h)}for(var p=0;n.depth>0&&(f=u.exec(o))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&Ll.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(f[1])}return f&&d.push("["+o.slice(f.index)+"]"),wx(d,r,n,i)}},Ex=function(t){if(!t)return Ce;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?Ce.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ce.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ce.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ce.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ce.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ce.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ce.comma,decoder:typeof t.decoder=="function"?t.decoder:Ce.decoder,delimiter:typeof t.delimiter=="string"||pi.isRegExp(t.delimiter)?t.delimiter:Ce.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ce.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ce.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ce.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ce.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ce.strictNullHandling}},Sx=function(e,t){var r=Ex(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?xx(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),l=0;l<o.length;++l){var u=o[l],f=Tx(u,n[u],r,typeof e=="string");i=pi.merge(i,f,r)}return r.allowSparse===!0?i:pi.compact(i)},Ax=gx,Ox=Sx,Cx=Nl,Rx={formats:Cx,parse:Ox,stringify:Ax},Ix=F_;function yr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Px=/^([a-z0-9.+-]+:)/i,Nx=/:[0-9]*$/,Mx=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,kx=["<",">",'"',"`"," ","\r",`
13
- `," "],Lx=["{","}","|","\\","^","`"].concat(kx),Fl=["'"].concat(Lx),Nh=["%","/","?",";","#"].concat(Fl),Mh=["/","?","#"],Fx=255,kh=/^[+a-z0-9A-Z_-]{0,63}$/,Bx=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Dx={javascript:!0,"javascript:":!0},Bl={javascript:!0,"javascript:":!0},vi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Dl=Rx;function oo(e,t,r){if(e&&typeof e=="object"&&e instanceof yr)return e;var n=new yr;return n.parse(e,t,r),n}yr.prototype.parse=function(e,t,r){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=n!==-1&&n<e.indexOf("#")?"?":"#",o=e.split(i),l=/\\/g;o[0]=o[0].replace(l,"/"),e=o.join(i);var u=e;if(u=u.trim(),!r&&e.split("#").length===1){var f=Mx.exec(u);if(f)return this.path=u,this.href=u,this.pathname=f[1],f[2]?(this.search=f[2],t?this.query=Dl.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var h=Px.exec(u);if(h){h=h[0];var d=h.toLowerCase();this.protocol=d,u=u.substr(h.length)}if(r||h||u.match(/^\/\/[^@/]+@[^@/]+/)){var p=u.substr(0,2)==="//";p&&!(h&&Bl[h])&&(u=u.substr(2),this.slashes=!0)}if(!Bl[h]&&(p||h&&!vi[h])){for(var c=-1,v=0;v<Mh.length;v++){var m=u.indexOf(Mh[v]);m!==-1&&(c===-1||m<c)&&(c=m)}var _,b;c===-1?b=u.lastIndexOf("@"):b=u.lastIndexOf("@",c),b!==-1&&(_=u.slice(0,b),u=u.slice(b+1),this.auth=decodeURIComponent(_)),c=-1;for(var v=0;v<Nh.length;v++){var m=u.indexOf(Nh[v]);m!==-1&&(c===-1||m<c)&&(c=m)}c===-1&&(c=u.length),this.host=u.slice(0,c),u=u.slice(c),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var w=this.hostname.split(/\./),v=0,T=w.length;v<T;v++){var x=w[v];if(x&&!x.match(kh)){for(var E="",I=0,A=x.length;I<A;I++)x.charCodeAt(I)>127?E+="x":E+=x[I];if(!E.match(kh)){var O=w.slice(0,v),L=w.slice(v+1),R=x.match(Bx);R&&(O.push(R[1]),L.unshift(R[2])),L.length&&(u="/"+L.join(".")+u),this.hostname=O.join(".");break}}}this.hostname.length>Fx?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=Ix.toASCII(this.hostname));var C=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+C,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),u[0]!=="/"&&(u="/"+u))}if(!Dx[d])for(var v=0,T=Fl.length;v<T;v++){var M=Fl[v];if(u.indexOf(M)!==-1){var F=encodeURIComponent(M);F===M&&(F=escape(M)),u=u.split(M).join(F)}}var q=u.indexOf("#");q!==-1&&(this.hash=u.substr(q),u=u.slice(0,q));var K=u.indexOf("?");if(K!==-1?(this.search=u.substr(K),this.query=u.substr(K+1),t&&(this.query=Dl.parse(this.query)),u=u.slice(0,K)):t&&(this.search="",this.query={}),u&&(this.pathname=u),vi[d]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var C=this.pathname||"",z=this.search||"";this.path=C+z}return this.href=this.format(),this};function Ux(e){return typeof e=="string"&&(e=oo(e)),e instanceof yr?e.format():yr.prototype.format.call(e)}yr.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=Dl.stringify(this.query));var l=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||vi[t])&&i!==!1?(i="//"+(i||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):i||(i=""),n&&n.charAt(0)!=="#"&&(n="#"+n),l&&l.charAt(0)!=="?"&&(l="?"+l),r=r.replace(/[?#]/g,function(u){return encodeURIComponent(u)}),l=l.replace("#","%23"),t+i+r+l+n};function $x(e,t){return oo(e,!1,!0).resolve(t)}yr.prototype.resolve=function(e){return this.resolveObject(oo(e,!1,!0)).format()},yr.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new yr;t.parse(e,!1,!0),e=t}for(var r=new yr,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),u=0;u<l.length;u++){var f=l[u];f!=="protocol"&&(r[f]=e[f])}return vi[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!vi[e.protocol]){for(var h=Object.keys(e),d=0;d<h.length;d++){var p=h[d];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,!e.host&&!Bl[e.protocol]){for(var T=(e.pathname||"").split("/");T.length&&!(e.host=T.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),T[0]!==""&&T.unshift(""),T.length<2&&T.unshift(""),r.pathname=T.join("/")}else r.pathname=e.pathname;if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var c=r.pathname||"",v=r.search||"";r.path=c+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&r.pathname.charAt(0)==="/",_=e.host||e.pathname&&e.pathname.charAt(0)==="/",b=_||m||r.host&&e.pathname,y=b,w=r.pathname&&r.pathname.split("/")||[],T=e.pathname&&e.pathname.split("/")||[],x=r.protocol&&!vi[r.protocol];if(x&&(r.hostname="",r.port=null,r.host&&(w[0]===""?w[0]=r.host:w.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(T[0]===""?T[0]=e.host:T.unshift(e.host)),e.host=null),b=b&&(T[0]===""||w[0]==="")),_)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,w=T;else if(T.length)w||(w=[]),w.pop(),w=w.concat(T),r.search=e.search,r.query=e.query;else if(e.search!=null){if(x){r.host=w.shift(),r.hostname=r.host;var E=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;E&&(r.auth=E.shift(),r.hostname=E.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=w.slice(-1)[0],A=(r.host||e.host||w.length>1)&&(I==="."||I==="..")||I==="",O=0,L=w.length;L>=0;L--)I=w[L],I==="."?w.splice(L,1):I===".."?(w.splice(L,1),O++):O&&(w.splice(L,1),O--);if(!b&&!y)for(;O--;O)w.unshift("..");b&&w[0]!==""&&(!w[0]||w[0].charAt(0)!=="/")&&w.unshift(""),A&&w.join("/").substr(-1)!=="/"&&w.push("");var R=w[0]===""||w[0]&&w[0].charAt(0)==="/";if(x){r.hostname=R?"":w.length?w.shift():"",r.host=r.hostname;var E=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;E&&(r.auth=E.shift(),r.hostname=E.shift(),r.host=r.hostname)}return b=b||r.host&&w.length,b&&!R&&w.unshift(""),w.length>0?r.pathname=w.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},yr.prototype.parseHost=function(){var e=this.host,t=Nx.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Gx=oo,jx=$x,qx=Ux;const zx={parse:Gx,format:qx,resolve:jx},Lh={};function Ht(e,t,r=3){if(Lh[t])return;let n=new Error().stack;typeof n>"u"?console.warn("PixiJS Deprecation Warning: ",`${t}
12
+ `+t.prev}function ro(e,t){var r=Al(e),n=[];if(r){n.length=e.length;for(var i=0;i<e.length;i++)n[i]=fn(e,i)?t(e[i],e):""}var o=typeof Tl=="function"?Tl(e):[],l;if(hi){l={};for(var u=0;u<o.length;u++)l["$"+o[u]]=o[u]}for(var f in e)fn(e,f)&&(r&&String(Number(f))===f&&f<e.length||hi&&l["$"+f]instanceof Symbol||(ch.call(/[^\w$]/,f)?n.push(t(f,e)+": "+t(e[f],e)):n.push(f+": "+t(e[f],e))));if(typeof Tl=="function")for(var h=0;h<o.length;h++)ph.call(e,o[h])&&n.push("["+t(o[h])+"]: "+t(e[o[h]],e));return n}var Rl=gl,di=ub,Ub=bb,$b=Rl("%TypeError%"),no=Rl("%WeakMap%",!0),io=Rl("%Map%",!0),Gb=di("WeakMap.prototype.get",!0),jb=di("WeakMap.prototype.set",!0),qb=di("WeakMap.prototype.has",!0),zb=di("Map.prototype.get",!0),Hb=di("Map.prototype.set",!0),Vb=di("Map.prototype.has",!0),Il=function(e,t){for(var r=e,n;(n=r.next)!==null;r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},Wb=function(e,t){var r=Il(e,t);return r&&r.value},Xb=function(e,t,r){var n=Il(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},Kb=function(e,t){return!!Il(e,t)},Yb=function(){var t,r,n,i={assert:function(o){if(!i.has(o))throw new $b("Side channel does not contain "+Ub(o))},get:function(o){if(no&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Gb(t,o)}else if(io){if(r)return zb(r,o)}else if(n)return Wb(n,o)},has:function(o){if(no&&o&&(typeof o=="object"||typeof o=="function")){if(t)return qb(t,o)}else if(io){if(r)return Vb(r,o)}else if(n)return Kb(n,o);return!1},set:function(o,l){no&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new no),jb(t,o,l)):io?(r||(r=new io),Hb(r,o,l)):(n||(n={key:{},next:null}),Xb(n,o,l))}};return i},Zb=String.prototype.replace,Qb=/%20/g,Pl={RFC1738:"RFC1738",RFC3986:"RFC3986"},Nl={default:Pl.RFC3986,formatters:{RFC1738:function(e){return Zb.call(e,Qb,"+")},RFC3986:function(e){return String(e)}},RFC1738:Pl.RFC1738,RFC3986:Pl.RFC3986},Jb=Nl,Ml=Object.prototype.hasOwnProperty,Mn=Array.isArray,Dr=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),tx=function(t){for(;t.length>1;){var r=t.pop(),n=r.obj[r.prop];if(Mn(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]<"u"&&i.push(n[o]);r.obj[r.prop]=i}}},Sh=function(t,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<t.length;++i)typeof t[i]<"u"&&(n[i]=t[i]);return n},ex=function e(t,r,n){if(!r)return t;if(typeof r!="object"){if(Mn(t))t.push(r);else if(t&&typeof t=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Ml.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var i=t;return Mn(t)&&!Mn(r)&&(i=Sh(t,n)),Mn(t)&&Mn(r)?(r.forEach(function(o,l){if(Ml.call(t,l)){var u=t[l];u&&typeof u=="object"&&o&&typeof o=="object"?t[l]=e(u,o,n):t.push(o)}else t[l]=o}),t):Object.keys(r).reduce(function(o,l){var u=r[l];return Ml.call(o,l)?o[l]=e(o[l],u,n):o[l]=u,o},i)},rx=function(t,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},t)},nx=function(e,t,r){var n=e.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},ix=function(t,r,n,i,o){if(t.length===0)return t;var l=t;if(typeof t=="symbol"?l=Symbol.prototype.toString.call(t):typeof t!="string"&&(l=String(t)),n==="iso-8859-1")return escape(l).replace(/%u[0-9a-f]{4}/gi,function(d){return"%26%23"+parseInt(d.slice(2),16)+"%3B"});for(var u="",f=0;f<l.length;++f){var h=l.charCodeAt(f);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===Jb.RFC1738&&(h===40||h===41)){u+=l.charAt(f);continue}if(h<128){u=u+Dr[h];continue}if(h<2048){u=u+(Dr[192|h>>6]+Dr[128|h&63]);continue}if(h<55296||h>=57344){u=u+(Dr[224|h>>12]+Dr[128|h>>6&63]+Dr[128|h&63]);continue}f+=1,h=65536+((h&1023)<<10|l.charCodeAt(f)&1023),u+=Dr[240|h>>18]+Dr[128|h>>12&63]+Dr[128|h>>6&63]+Dr[128|h&63]}return u},sx=function(t){for(var r=[{obj:{o:t},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],l=o.obj[o.prop],u=Object.keys(l),f=0;f<u.length;++f){var h=u[f],d=l[h];typeof d=="object"&&d!==null&&n.indexOf(d)===-1&&(r.push({obj:l,prop:h}),n.push(d))}return tx(r),t},ox=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},ax=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},lx=function(t,r){return[].concat(t,r)},ux=function(t,r){if(Mn(t)){for(var n=[],i=0;i<t.length;i+=1)n.push(r(t[i]));return n}return r(t)},Ah={arrayToObject:Sh,assign:rx,combine:lx,compact:sx,decode:nx,encode:ix,isBuffer:ax,isRegExp:ox,maybeMap:ux,merge:ex},Oh=Yb,so=Ah,os=Nl,fx=Object.prototype.hasOwnProperty,Ch={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Vr=Array.isArray,cx=Array.prototype.push,Rh=function(e,t){cx.apply(e,Vr(t)?t:[t])},hx=Date.prototype.toISOString,Ih=os.default,Fe={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:so.encode,encodeValuesOnly:!1,format:Ih,formatter:os.formatters[Ih],indices:!1,serializeDate:function(t){return hx.call(t)},skipNulls:!1,strictNullHandling:!1},dx=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},kl={},px=function e(t,r,n,i,o,l,u,f,h,d,p,c,v,m,_,b){for(var y=t,w=b,T=0,x=!1;(w=w.get(kl))!==void 0&&!x;){var E=w.get(t);if(T+=1,typeof E<"u"){if(E===T)throw new RangeError("Cyclic object value");x=!0}typeof w.get(kl)>"u"&&(T=0)}if(typeof f=="function"?y=f(r,y):y instanceof Date?y=p(y):n==="comma"&&Vr(y)&&(y=so.maybeMap(y,function(Y){return Y instanceof Date?p(Y):Y})),y===null){if(o)return u&&!m?u(r,Fe.encoder,_,"key",c):r;y=""}if(dx(y)||so.isBuffer(y)){if(u){var I=m?r:u(r,Fe.encoder,_,"key",c);return[v(I)+"="+v(u(y,Fe.encoder,_,"value",c))]}return[v(r)+"="+v(String(y))]}var A=[];if(typeof y>"u")return A;var O;if(n==="comma"&&Vr(y))m&&u&&(y=so.maybeMap(y,u)),O=[{value:y.length>0?y.join(",")||null:void 0}];else if(Vr(f))O=f;else{var L=Object.keys(y);O=h?L.sort(h):L}for(var R=i&&Vr(y)&&y.length===1?r+"[]":r,C=0;C<O.length;++C){var P=O[C],M=typeof P=="object"&&typeof P.value<"u"?P.value:y[P];if(!(l&&M===null)){var F=Vr(y)?typeof n=="function"?n(R,P):R:R+(d?"."+P:"["+P+"]");b.set(t,T);var q=Oh();q.set(kl,b),Rh(A,e(M,F,n,i,o,l,n==="comma"&&m&&Vr(y)?null:u,f,h,d,p,c,v,m,_,q))}}return A},vx=function(t){if(!t)return Fe;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Fe.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=os.default;if(typeof t.format<"u"){if(!fx.call(os.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var i=os.formatters[n],o=Fe.filter;return(typeof t.filter=="function"||Vr(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Fe.addQueryPrefix,allowDots:typeof t.allowDots>"u"?Fe.allowDots:!!t.allowDots,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Fe.charsetSentinel,delimiter:typeof t.delimiter>"u"?Fe.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Fe.encode,encoder:typeof t.encoder=="function"?t.encoder:Fe.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Fe.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Fe.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Fe.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Fe.strictNullHandling}},gx=function(e,t){var r=e,n=vx(t),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Vr(n.filter)&&(o=n.filter,i=o);var l=[];if(typeof r!="object"||r===null)return"";var u;t&&t.arrayFormat in Ch?u=t.arrayFormat:t&&"indices"in t?u=t.indices?"indices":"repeat":u="indices";var f=Ch[u];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var h=f==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var d=Oh(),p=0;p<i.length;++p){var c=i[p];n.skipNulls&&r[c]===null||Rh(l,px(r[c],c,f,h,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,d))}var v=l.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),v.length>0?m+v:""},pi=Ah,Ll=Object.prototype.hasOwnProperty,mx=Array.isArray,Ce={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:pi.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},yx=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},Ph=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},_x="utf8=%26%2310003%3B",bx="utf8=%E2%9C%93",xx=function(t,r){var n={__proto__:null},i=r.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=r.parameterLimit===1/0?void 0:r.parameterLimit,l=i.split(r.delimiter,o),u=-1,f,h=r.charset;if(r.charsetSentinel)for(f=0;f<l.length;++f)l[f].indexOf("utf8=")===0&&(l[f]===bx?h="utf-8":l[f]===_x&&(h="iso-8859-1"),u=f,f=l.length);for(f=0;f<l.length;++f)if(f!==u){var d=l[f],p=d.indexOf("]="),c=p===-1?d.indexOf("="):p+1,v,m;c===-1?(v=r.decoder(d,Ce.decoder,h,"key"),m=r.strictNullHandling?null:""):(v=r.decoder(d.slice(0,c),Ce.decoder,h,"key"),m=pi.maybeMap(Ph(d.slice(c+1),r),function(_){return r.decoder(_,Ce.decoder,h,"value")})),m&&r.interpretNumericEntities&&h==="iso-8859-1"&&(m=yx(m)),d.indexOf("[]=")>-1&&(m=mx(m)?[m]:m),Ll.call(n,v)?n[v]=pi.combine(n[v],m):n[v]=m}return n},wx=function(e,t,r,n){for(var i=n?t:Ph(t,r),o=e.length-1;o>=0;--o){var l,u=e[o];if(u==="[]"&&r.parseArrays)l=[].concat(i);else{l=r.plainObjects?Object.create(null):{};var f=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,h=parseInt(f,10);!r.parseArrays&&f===""?l={0:i}:!isNaN(h)&&u!==f&&String(h)===f&&h>=0&&r.parseArrays&&h<=r.arrayLimit?(l=[],l[h]=i):f!=="__proto__"&&(l[f]=i)}i=l}return i},Tx=function(t,r,n,i){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,l=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,f=n.depth>0&&l.exec(o),h=f?o.slice(0,f.index):o,d=[];if(h){if(!n.plainObjects&&Ll.call(Object.prototype,h)&&!n.allowPrototypes)return;d.push(h)}for(var p=0;n.depth>0&&(f=u.exec(o))!==null&&p<n.depth;){if(p+=1,!n.plainObjects&&Ll.call(Object.prototype,f[1].slice(1,-1))&&!n.allowPrototypes)return;d.push(f[1])}return f&&d.push("["+o.slice(f.index)+"]"),wx(d,r,n,i)}},Ex=function(t){if(!t)return Ce;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=typeof t.charset>"u"?Ce.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ce.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ce.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ce.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ce.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ce.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ce.comma,decoder:typeof t.decoder=="function"?t.decoder:Ce.decoder,delimiter:typeof t.delimiter=="string"||pi.isRegExp(t.delimiter)?t.delimiter:Ce.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ce.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ce.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ce.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ce.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ce.strictNullHandling}},Sx=function(e,t){var r=Ex(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?Object.create(null):{};for(var n=typeof e=="string"?xx(e,r):e,i=r.plainObjects?Object.create(null):{},o=Object.keys(n),l=0;l<o.length;++l){var u=o[l],f=Tx(u,n[u],r,typeof e=="string");i=pi.merge(i,f,r)}return r.allowSparse===!0?i:pi.compact(i)},Ax=gx,Ox=Sx,Cx=Nl,Rx={formats:Cx,parse:Ox,stringify:Ax},Ix=F_;function yr(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var Px=/^([a-z0-9.+-]+:)/i,Nx=/:[0-9]*$/,Mx=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,kx=["<",">",'"',"`"," ","\r",`
13
+ `," "],Lx=["{","}","|","\\","^","`"].concat(kx),Fl=["'"].concat(Lx),Nh=["%","/","?",";","#"].concat(Fl),Mh=["/","?","#"],Fx=255,kh=/^[+a-z0-9A-Z_-]{0,63}$/,Bx=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Dx={javascript:!0,"javascript:":!0},Bl={javascript:!0,"javascript:":!0},vi={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Dl=Rx;function oo(e,t,r){if(e&&typeof e=="object"&&e instanceof yr)return e;var n=new yr;return n.parse(e,t,r),n}yr.prototype.parse=function(e,t,r){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=n!==-1&&n<e.indexOf("#")?"?":"#",o=e.split(i),l=/\\/g;o[0]=o[0].replace(l,"/"),e=o.join(i);var u=e;if(u=u.trim(),!r&&e.split("#").length===1){var f=Mx.exec(u);if(f)return this.path=u,this.href=u,this.pathname=f[1],f[2]?(this.search=f[2],t?this.query=Dl.parse(this.search.substr(1)):this.query=this.search.substr(1)):t&&(this.search="",this.query={}),this}var h=Px.exec(u);if(h){h=h[0];var d=h.toLowerCase();this.protocol=d,u=u.substr(h.length)}if(r||h||u.match(/^\/\/[^@/]+@[^@/]+/)){var p=u.substr(0,2)==="//";p&&!(h&&Bl[h])&&(u=u.substr(2),this.slashes=!0)}if(!Bl[h]&&(p||h&&!vi[h])){for(var c=-1,v=0;v<Mh.length;v++){var m=u.indexOf(Mh[v]);m!==-1&&(c===-1||m<c)&&(c=m)}var _,b;c===-1?b=u.lastIndexOf("@"):b=u.lastIndexOf("@",c),b!==-1&&(_=u.slice(0,b),u=u.slice(b+1),this.auth=decodeURIComponent(_)),c=-1;for(var v=0;v<Nh.length;v++){var m=u.indexOf(Nh[v]);m!==-1&&(c===-1||m<c)&&(c=m)}c===-1&&(c=u.length),this.host=u.slice(0,c),u=u.slice(c),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y)for(var w=this.hostname.split(/\./),v=0,T=w.length;v<T;v++){var x=w[v];if(x&&!x.match(kh)){for(var E="",I=0,A=x.length;I<A;I++)x.charCodeAt(I)>127?E+="x":E+=x[I];if(!E.match(kh)){var O=w.slice(0,v),L=w.slice(v+1),R=x.match(Bx);R&&(O.push(R[1]),L.unshift(R[2])),L.length&&(u="/"+L.join(".")+u),this.hostname=O.join(".");break}}}this.hostname.length>Fx?this.hostname="":this.hostname=this.hostname.toLowerCase(),y||(this.hostname=Ix.toASCII(this.hostname));var C=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+C,this.href+=this.host,y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),u[0]!=="/"&&(u="/"+u))}if(!Dx[d])for(var v=0,T=Fl.length;v<T;v++){var M=Fl[v];if(u.indexOf(M)!==-1){var F=encodeURIComponent(M);F===M&&(F=escape(M)),u=u.split(M).join(F)}}var q=u.indexOf("#");q!==-1&&(this.hash=u.substr(q),u=u.slice(0,q));var Y=u.indexOf("?");if(Y!==-1?(this.search=u.substr(Y),this.query=u.substr(Y+1),t&&(this.query=Dl.parse(this.query)),u=u.slice(0,Y)):t&&(this.search="",this.query={}),u&&(this.pathname=u),vi[d]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var C=this.pathname||"",z=this.search||"";this.path=C+z}return this.href=this.format(),this};function Ux(e){return typeof e=="string"&&(e=oo(e)),e instanceof yr?e.format():yr.prototype.format.call(e)}yr.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=Dl.stringify(this.query));var l=this.search||o&&"?"+o||"";return t&&t.substr(-1)!==":"&&(t+=":"),this.slashes||(!t||vi[t])&&i!==!1?(i="//"+(i||""),r&&r.charAt(0)!=="/"&&(r="/"+r)):i||(i=""),n&&n.charAt(0)!=="#"&&(n="#"+n),l&&l.charAt(0)!=="?"&&(l="?"+l),r=r.replace(/[?#]/g,function(u){return encodeURIComponent(u)}),l=l.replace("#","%23"),t+i+r+l+n};function $x(e,t){return oo(e,!1,!0).resolve(t)}yr.prototype.resolve=function(e){return this.resolveObject(oo(e,!1,!0)).format()},yr.prototype.resolveObject=function(e){if(typeof e=="string"){var t=new yr;t.parse(e,!1,!0),e=t}for(var r=new yr,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,e.href==="")return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var l=Object.keys(e),u=0;u<l.length;u++){var f=l[u];f!=="protocol"&&(r[f]=e[f])}return vi[r.protocol]&&r.hostname&&!r.pathname&&(r.pathname="/",r.path=r.pathname),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!vi[e.protocol]){for(var h=Object.keys(e),d=0;d<h.length;d++){var p=h[d];r[p]=e[p]}return r.href=r.format(),r}if(r.protocol=e.protocol,!e.host&&!Bl[e.protocol]){for(var T=(e.pathname||"").split("/");T.length&&!(e.host=T.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),T[0]!==""&&T.unshift(""),T.length<2&&T.unshift(""),r.pathname=T.join("/")}else r.pathname=e.pathname;if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var c=r.pathname||"",v=r.search||"";r.path=c+v}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&r.pathname.charAt(0)==="/",_=e.host||e.pathname&&e.pathname.charAt(0)==="/",b=_||m||r.host&&e.pathname,y=b,w=r.pathname&&r.pathname.split("/")||[],T=e.pathname&&e.pathname.split("/")||[],x=r.protocol&&!vi[r.protocol];if(x&&(r.hostname="",r.port=null,r.host&&(w[0]===""?w[0]=r.host:w.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(T[0]===""?T[0]=e.host:T.unshift(e.host)),e.host=null),b=b&&(T[0]===""||w[0]==="")),_)r.host=e.host||e.host===""?e.host:r.host,r.hostname=e.hostname||e.hostname===""?e.hostname:r.hostname,r.search=e.search,r.query=e.query,w=T;else if(T.length)w||(w=[]),w.pop(),w=w.concat(T),r.search=e.search,r.query=e.query;else if(e.search!=null){if(x){r.host=w.shift(),r.hostname=r.host;var E=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;E&&(r.auth=E.shift(),r.hostname=E.shift(),r.host=r.hostname)}return r.search=e.search,r.query=e.query,(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var I=w.slice(-1)[0],A=(r.host||e.host||w.length>1)&&(I==="."||I==="..")||I==="",O=0,L=w.length;L>=0;L--)I=w[L],I==="."?w.splice(L,1):I===".."?(w.splice(L,1),O++):O&&(w.splice(L,1),O--);if(!b&&!y)for(;O--;O)w.unshift("..");b&&w[0]!==""&&(!w[0]||w[0].charAt(0)!=="/")&&w.unshift(""),A&&w.join("/").substr(-1)!=="/"&&w.push("");var R=w[0]===""||w[0]&&w[0].charAt(0)==="/";if(x){r.hostname=R?"":w.length?w.shift():"",r.host=r.hostname;var E=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;E&&(r.auth=E.shift(),r.hostname=E.shift(),r.host=r.hostname)}return b=b||r.host&&w.length,b&&!R&&w.unshift(""),w.length>0?r.pathname=w.join("/"):(r.pathname=null,r.path=null),(r.pathname!==null||r.search!==null)&&(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},yr.prototype.parseHost=function(){var e=this.host,t=Nx.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Gx=oo,jx=$x,qx=Ux;const zx={parse:Gx,format:qx,resolve:jx},Lh={};function Ht(e,t,r=3){if(Lh[t])return;let n=new Error().stack;typeof n>"u"?console.warn("PixiJS Deprecation Warning: ",`${t}
14
14
  Deprecated since v${e}`):(n=n.split(`
15
15
  `).splice(r).join(`
16
16
  `),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${t}
@@ -834,7 +834,7 @@ void main(void)
834
834
  vTextureCoord = aTextureCoord;
835
835
  vFilterCoord = vTextureCoord * inputSize.xy / outputFrame.zw;
836
836
  }
837
- `,$n=$n||{};$n.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var r=e.visit(t.orientation);return r&&(r+=", "),t.type+"("+r+e.visit(t.colorStops)+")"},visit_shape:function(t){var r=t.value,n=e.visit(t.at),i=e.visit(t.style);return i&&(r+=" "+i),n&&(r+=" at "+n),r},"visit_default-radial":function(t){var r="",n=e.visit(t.at);return n&&(r+=n),r},"visit_extent-keyword":function(t){var r=t.value,n=e.visit(t.at);return n&&(r+=" at "+n),r},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,r){var n=t,i=e.visit(r.length);return i&&(n+=" "+i),n},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var r="",n=t.length;return t.forEach(function(i,o){r+=e.visit(i),o<n-1&&(r+=", ")}),r},visit:function(t){if(!t)return"";var r="";if(t instanceof Array)return e.visit_array(t,r);if(t.type){var n=e["visit_"+t.type];if(n)return n(t);throw Error("Missing visitor visit_"+t.type)}else throw Error("Invalid node.")}};return function(t){return e.visit(t)}}();var $n=$n||{};$n.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function r(z){var it=new Error(t+": "+z);throw it.source=t,it}function n(){var z=i();return t.length>0&&r("Invalid input not EOF"),z}function i(){return T(o)}function o(){return l("linear-gradient",e.linearGradient,f)||l("repeating-linear-gradient",e.repeatingLinearGradient,f)||l("radial-gradient",e.radialGradient,p)||l("repeating-radial-gradient",e.repeatingRadialGradient,p)}function l(z,it,W){return u(it,function(U){var k=W();return k&&(q(e.comma)||r("Missing comma before color stops")),{type:z,orientation:k,colorStops:T(x)}})}function u(z,it){var W=q(z);if(W){q(e.startCall)||r("Missing (");var U=it(W);return q(e.endCall)||r("Missing )"),U}}function f(){return h()||d()}function h(){return F("directional",e.sideOrCorner,1)}function d(){return F("angular",e.angleValue,1)}function p(){var z,it=c(),W;return it&&(z=[],z.push(it),W=t,q(e.comma)&&(it=c(),it?z.push(it):t=W)),z}function c(){var z=v()||m();if(z)z.at=b();else{var it=_();if(it){z=it;var W=b();W&&(z.at=W)}else{var U=y();U&&(z={type:"default-radial",at:U})}}return z}function v(){var z=F("shape",/^(circle)/i,0);return z&&(z.style=M()||_()),z}function m(){var z=F("shape",/^(ellipse)/i,0);return z&&(z.style=C()||_()),z}function _(){return F("extent-keyword",e.extentKeywords,1)}function b(){if(F("position",/^at/,0)){var z=y();return z||r("Missing positioning value"),z}}function y(){var z=w();if(z.x||z.y)return{type:"position",value:z}}function w(){return{x:C(),y:C()}}function T(z){var it=z(),W=[];if(it)for(W.push(it);q(e.comma);)it=z(),it?W.push(it):r("One extra comma");return W}function x(){var z=E();return z||r("Expected color definition"),z.length=C(),z}function E(){return A()||L()||O()||I()}function I(){return F("literal",e.literalColor,0)}function A(){return F("hex",e.hexColor,1)}function O(){return u(e.rgbColor,function(){return{type:"rgb",value:T(R)}})}function L(){return u(e.rgbaColor,function(){return{type:"rgba",value:T(R)}})}function R(){return q(e.number)[1]}function C(){return F("%",e.percentageValue,1)||P()||M()}function P(){return F("position-keyword",e.positionKeywords,1)}function M(){return F("px",e.pixelValue,1)||F("em",e.emValue,1)}function F(z,it,W){var U=q(it);if(U)return{type:z,value:U[W]}}function q(z){var it,W;return W=/^[\n\r\t\s]+/.exec(t),W&&K(W[0].length),it=z.exec(t),it&&K(it[0].length),it}function K(z){t=t.substr(z)}return function(z){return t=z.toString(),n()}}();var MT=$n.parse;$n.stringify;var Wd={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Xd={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function kT(e){var t,r=[],n=1,i;if(typeof e=="string")if(Wd[e])r=Wd[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var o=e.slice(1),l=o.length,u=l<=4;n=1,u?(r=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],l===4&&(n=parseInt(o[3]+o[3],16)/255)):(r=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],l===8&&(n=parseInt(o[6]+o[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var f=t[1],h=f==="rgb",o=f.replace(/a$/,"");i=o;var l=o==="cmyk"?4:o==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(c,v){if(/%$/.test(c))return v===l?parseFloat(c)/100:o==="rgb"?parseFloat(c)*255/100:parseFloat(c);if(o[v]==="h"){if(/deg$/.test(c))return parseFloat(c);if(Xd[c]!==void 0)return Xd[c]}return parseFloat(c)}),f===o&&r.push(1),n=h||r[l]===void 0?1:r[l],r=r.slice(0,l)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(d){return parseFloat(d)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}var yu={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},_u={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,l,u,f;if(r===0)return f=n*255,[f,f,f];n<.5?o=n*(1+r):o=n+r-n*r,i=2*n-o,u=[0,0,0];for(var h=0;h<3;h++)l=t+1/3*-(h-1),l<0?l++:l>1&&l--,6*l<1?f=i+(o-i)*6*l:2*l<1?f=o:3*l<2?f=i+(o-i)*(2/3-l)*6:f=i,u[h]=f*255;return u}};yu.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),l=o-i,u,f,h;return o===i?u=0:t===o?u=(r-n)/l:r===o?u=2+(n-t)/l:n===o&&(u=4+(t-r)/l),u=Math.min(u*60,360),u<0&&(u+=360),h=(i+o)/2,o===i?f=0:h<=.5?f=l/(o+i):f=l/(2-o-i),[u,f*100,h*100]};function LT(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments));var t,r=kT(e);if(!r.space)return[];const n=r.space[0]==="h"?_u.min:yu.min,i=r.space[0]==="h"?_u.max:yu.max;return t=Array(3),t[0]=Math.min(Math.max(r.values[0],n[0]),i[0]),t[1]=Math.min(Math.max(r.values[1],n[1]),i[1]),t[2]=Math.min(Math.max(r.values[2],n[2]),i[2]),r.space[0]==="h"&&(t=_u.rgb(t)),t.push(Math.min(Math.max(r.alpha,0),1)),t}function Kd(e){switch(typeof e){case"string":return FT(e);case"number":return lo(e);default:return e}}function FT(e){const t=LT(e);if(!t)throw new Error(`Unable to parse color "${e}" as RGBA.`);return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function BT(e){const t=MT(VT(e));if(t.length===0)throw new Error("Invalid CSS gradient.");if(t.length!==1)throw new Error("Unsupported CSS gradient (multiple gradients is not supported).");const r=t[0],n=DT(r.type),i=UT(r.colorStops),o=zT(r.orientation);return{type:n,stops:i,angle:o}}function DT(e){const t={"linear-gradient":0,"radial-gradient":1};if(!(e in t))throw new Error(`Unsupported gradient type "${e}"`);return t[e]}function UT(e){const t=jT(e),r=[];for(let n=0;n<e.length;n++){const i=$T(e[n]);r.push({offset:t[n],color:i.slice(0,3),alpha:i[3]})}return r}function $T(e){return Kd(GT(e))}function GT(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;default:return`${e.type}(${e.value.join(",")})`}}function jT(e){const t=[];for(let i=0;i<e.length;i++){const o=e[i];let l=-1;o.type==="literal"&&o.length&&"type"in o.length&&o.length.type==="%"&&"value"in o.length&&(l=parseFloat(o.length.value)/100),t.push(l)}const r=i=>{for(let o=i;o<t.length;o++)if(t[o]!==-1)return{indexDelta:o-i,offset:t[o]};return{indexDelta:t.length-1-i,offset:1}};let n=0;for(let i=0;i<t.length;i++){const o=t[i];if(o!==-1)n=o;else if(i===0)t[i]=0;else if(i+1===t.length)t[i]=1;else{const l=r(i),u=(l.offset-n)/(1+l.indexDelta);for(let f=0;f<=l.indexDelta;f++)t[i+f]=n+(f+1)*u;i+=l.indexDelta,n=t[i]}}return t.map(qT)}function qT(e){return e.toString().length>6?parseFloat(e.toString().substring(0,6)):e}function zT(e){if(typeof e>"u")return 0;if("type"in e&&"value"in e)switch(e.type){case"angular":return parseFloat(e.value);case"directional":return HT(e.value)}return 0}function HT(e){const t={left:270,top:0,bottom:180,right:90,"left top":315,"top left":315,"left bottom":225,"bottom left":225,"right top":45,"top right":45,"right bottom":135,"bottom right":135};if(!(e in t))throw new Error(`Unsupported directional value "${e}"`);return t[e]}function VT(e){let t=e.replace(/\s{2,}/gu," ");return t=t.replace(/;/g,""),t=t.replace(/ ,/g,","),t=t.replace(/\( /g,"("),t=t.replace(/ \)/g,")"),t.trim()}var WT=Object.defineProperty,XT=Object.defineProperties,KT=Object.getOwnPropertyDescriptors,Yd=Object.getOwnPropertySymbols,YT=Object.prototype.hasOwnProperty,ZT=Object.prototype.propertyIsEnumerable,Zd=(e,t,r)=>t in e?WT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bu=(e,t)=>{for(var r in t||(t={}))YT.call(t,r)&&Zd(e,r,t[r]);if(Yd)for(var r of Yd(t))ZT.call(t,r)&&Zd(e,r,t[r]);return e},QT=(e,t)=>XT(e,KT(t));const Qd=90;function JT(e){return[...e].sort((t,r)=>t.offset-r.offset)}const xu=class extends Zt{constructor(t){t&&"css"in t&&(t=QT(bu({},BT(t.css||"")),{alpha:t.alpha,maxColors:t.maxColors}));const r=bu(bu({},xu.defaults),t);if(!r.stops||r.stops.length<2)throw new Error("ColorGradientFilter requires at least 2 color stops.");super(NT,PT),this._stops=[],this.autoFit=!1,Object.assign(this,r)}get stops(){return this._stops}set stops(t){const r=JT(t),n=new Float32Array(r.length*3),i=0,o=1,l=2;for(let u=0;u<r.length;u++){const f=Kd(r[u].color),h=u*3;n[h+i]=f[i],n[h+o]=f[o],n[h+l]=f[l]}this.uniforms.uColors=n,this.uniforms.uOffsets=r.map(u=>u.offset),this.uniforms.uAlphas=r.map(u=>u.alpha),this.uniforms.uNumStops=r.length,this._stops=r}set type(t){this.uniforms.uType=t}get type(){return this.uniforms.uType}set angle(t){this.uniforms.uAngle=t-Qd}get angle(){return this.uniforms.uAngle+Qd}set alpha(t){this.uniforms.uAlpha=t}get alpha(){return this.uniforms.uAlpha}set maxColors(t){this.uniforms.uMaxColors=t}get maxColors(){return this.uniforms.uMaxColors}};let Mo=xu;Mo.LINEAR=0,Mo.RADIAL=1,Mo.CONIC=2,Mo.defaults={type:xu.LINEAR,stops:[{offset:0,color:16711680,alpha:1},{offset:1,color:255,alpha:1}],alpha:1,angle:90,maxColors:0};var tE=`attribute vec2 aVertexPosition;
837
+ `,$n=$n||{};$n.stringify=function(){var e={"visit_linear-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-linear-gradient":function(t){return e.visit_gradient(t)},"visit_radial-gradient":function(t){return e.visit_gradient(t)},"visit_repeating-radial-gradient":function(t){return e.visit_gradient(t)},visit_gradient:function(t){var r=e.visit(t.orientation);return r&&(r+=", "),t.type+"("+r+e.visit(t.colorStops)+")"},visit_shape:function(t){var r=t.value,n=e.visit(t.at),i=e.visit(t.style);return i&&(r+=" "+i),n&&(r+=" at "+n),r},"visit_default-radial":function(t){var r="",n=e.visit(t.at);return n&&(r+=n),r},"visit_extent-keyword":function(t){var r=t.value,n=e.visit(t.at);return n&&(r+=" at "+n),r},"visit_position-keyword":function(t){return t.value},visit_position:function(t){return e.visit(t.value.x)+" "+e.visit(t.value.y)},"visit_%":function(t){return t.value+"%"},visit_em:function(t){return t.value+"em"},visit_px:function(t){return t.value+"px"},visit_literal:function(t){return e.visit_color(t.value,t)},visit_hex:function(t){return e.visit_color("#"+t.value,t)},visit_rgb:function(t){return e.visit_color("rgb("+t.value.join(", ")+")",t)},visit_rgba:function(t){return e.visit_color("rgba("+t.value.join(", ")+")",t)},visit_color:function(t,r){var n=t,i=e.visit(r.length);return i&&(n+=" "+i),n},visit_angular:function(t){return t.value+"deg"},visit_directional:function(t){return"to "+t.value},visit_array:function(t){var r="",n=t.length;return t.forEach(function(i,o){r+=e.visit(i),o<n-1&&(r+=", ")}),r},visit:function(t){if(!t)return"";var r="";if(t instanceof Array)return e.visit_array(t,r);if(t.type){var n=e["visit_"+t.type];if(n)return n(t);throw Error("Missing visitor visit_"+t.type)}else throw Error("Invalid node.")}};return function(t){return e.visit(t)}}();var $n=$n||{};$n.parse=function(){var e={linearGradient:/^(\-(webkit|o|ms|moz)\-)?(linear\-gradient)/i,repeatingLinearGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-linear\-gradient)/i,radialGradient:/^(\-(webkit|o|ms|moz)\-)?(radial\-gradient)/i,repeatingRadialGradient:/^(\-(webkit|o|ms|moz)\-)?(repeating\-radial\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function r(z){var it=new Error(t+": "+z);throw it.source=t,it}function n(){var z=i();return t.length>0&&r("Invalid input not EOF"),z}function i(){return T(o)}function o(){return l("linear-gradient",e.linearGradient,f)||l("repeating-linear-gradient",e.repeatingLinearGradient,f)||l("radial-gradient",e.radialGradient,p)||l("repeating-radial-gradient",e.repeatingRadialGradient,p)}function l(z,it,W){return u(it,function(U){var k=W();return k&&(q(e.comma)||r("Missing comma before color stops")),{type:z,orientation:k,colorStops:T(x)}})}function u(z,it){var W=q(z);if(W){q(e.startCall)||r("Missing (");var U=it(W);return q(e.endCall)||r("Missing )"),U}}function f(){return h()||d()}function h(){return F("directional",e.sideOrCorner,1)}function d(){return F("angular",e.angleValue,1)}function p(){var z,it=c(),W;return it&&(z=[],z.push(it),W=t,q(e.comma)&&(it=c(),it?z.push(it):t=W)),z}function c(){var z=v()||m();if(z)z.at=b();else{var it=_();if(it){z=it;var W=b();W&&(z.at=W)}else{var U=y();U&&(z={type:"default-radial",at:U})}}return z}function v(){var z=F("shape",/^(circle)/i,0);return z&&(z.style=M()||_()),z}function m(){var z=F("shape",/^(ellipse)/i,0);return z&&(z.style=C()||_()),z}function _(){return F("extent-keyword",e.extentKeywords,1)}function b(){if(F("position",/^at/,0)){var z=y();return z||r("Missing positioning value"),z}}function y(){var z=w();if(z.x||z.y)return{type:"position",value:z}}function w(){return{x:C(),y:C()}}function T(z){var it=z(),W=[];if(it)for(W.push(it);q(e.comma);)it=z(),it?W.push(it):r("One extra comma");return W}function x(){var z=E();return z||r("Expected color definition"),z.length=C(),z}function E(){return A()||L()||O()||I()}function I(){return F("literal",e.literalColor,0)}function A(){return F("hex",e.hexColor,1)}function O(){return u(e.rgbColor,function(){return{type:"rgb",value:T(R)}})}function L(){return u(e.rgbaColor,function(){return{type:"rgba",value:T(R)}})}function R(){return q(e.number)[1]}function C(){return F("%",e.percentageValue,1)||P()||M()}function P(){return F("position-keyword",e.positionKeywords,1)}function M(){return F("px",e.pixelValue,1)||F("em",e.emValue,1)}function F(z,it,W){var U=q(it);if(U)return{type:z,value:U[W]}}function q(z){var it,W;return W=/^[\n\r\t\s]+/.exec(t),W&&Y(W[0].length),it=z.exec(t),it&&Y(it[0].length),it}function Y(z){t=t.substr(z)}return function(z){return t=z.toString(),n()}}();var MT=$n.parse;$n.stringify;var Wd={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Xd={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};function kT(e){var t,r=[],n=1,i;if(typeof e=="string")if(Wd[e])r=Wd[e].slice(),i="rgb";else if(e==="transparent")n=0,i="rgb",r=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(e)){var o=e.slice(1),l=o.length,u=l<=4;n=1,u?(r=[parseInt(o[0]+o[0],16),parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16)],l===4&&(n=parseInt(o[3]+o[3],16)/255)):(r=[parseInt(o[0]+o[1],16),parseInt(o[2]+o[3],16),parseInt(o[4]+o[5],16)],l===8&&(n=parseInt(o[6]+o[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),i="rgb"}else if(t=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(e)){var f=t[1],h=f==="rgb",o=f.replace(/a$/,"");i=o;var l=o==="cmyk"?4:o==="gray"?1:3;r=t[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(c,v){if(/%$/.test(c))return v===l?parseFloat(c)/100:o==="rgb"?parseFloat(c)*255/100:parseFloat(c);if(o[v]==="h"){if(/deg$/.test(c))return parseFloat(c);if(Xd[c]!==void 0)return Xd[c]}return parseFloat(c)}),f===o&&r.push(1),n=h||r[l]===void 0?1:r[l],r=r.slice(0,l)}else e.length>10&&/[0-9](?:\s|\/)/.test(e)&&(r=e.match(/([0-9]+)/g).map(function(d){return parseFloat(d)}),i=e.match(/([a-z])/ig).join("").toLowerCase());else isNaN(e)?Array.isArray(e)||e.length?(r=[e[0],e[1],e[2]],i="rgb",n=e.length===4?e[3]:1):e instanceof Object&&(e.r!=null||e.red!=null||e.R!=null?(i="rgb",r=[e.r||e.red||e.R||0,e.g||e.green||e.G||0,e.b||e.blue||e.B||0]):(i="hsl",r=[e.h||e.hue||e.H||0,e.s||e.saturation||e.S||0,e.l||e.lightness||e.L||e.b||e.brightness]),n=e.a||e.alpha||e.opacity||1,e.opacity!=null&&(n/=100)):(i="rgb",r=[e>>>16,(e&65280)>>>8,e&255]);return{space:i,values:r,alpha:n}}var yu={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},_u={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t=e[0]/360,r=e[1]/100,n=e[2]/100,i,o,l,u,f;if(r===0)return f=n*255,[f,f,f];n<.5?o=n*(1+r):o=n+r-n*r,i=2*n-o,u=[0,0,0];for(var h=0;h<3;h++)l=t+1/3*-(h-1),l<0?l++:l>1&&l--,6*l<1?f=i+(o-i)*6*l:2*l<1?f=o:3*l<2?f=i+(o-i)*(2/3-l)*6:f=i,u[h]=f*255;return u}};yu.hsl=function(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),o=Math.max(t,r,n),l=o-i,u,f,h;return o===i?u=0:t===o?u=(r-n)/l:r===o?u=2+(n-t)/l:n===o&&(u=4+(t-r)/l),u=Math.min(u*60,360),u<0&&(u+=360),h=(i+o)/2,o===i?f=0:h<=.5?f=l/(o+i):f=l/(2-o-i),[u,f*100,h*100]};function LT(e){Array.isArray(e)&&e.raw&&(e=String.raw(...arguments));var t,r=kT(e);if(!r.space)return[];const n=r.space[0]==="h"?_u.min:yu.min,i=r.space[0]==="h"?_u.max:yu.max;return t=Array(3),t[0]=Math.min(Math.max(r.values[0],n[0]),i[0]),t[1]=Math.min(Math.max(r.values[1],n[1]),i[1]),t[2]=Math.min(Math.max(r.values[2],n[2]),i[2]),r.space[0]==="h"&&(t=_u.rgb(t)),t.push(Math.min(Math.max(r.alpha,0),1)),t}function Kd(e){switch(typeof e){case"string":return FT(e);case"number":return lo(e);default:return e}}function FT(e){const t=LT(e);if(!t)throw new Error(`Unable to parse color "${e}" as RGBA.`);return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function BT(e){const t=MT(VT(e));if(t.length===0)throw new Error("Invalid CSS gradient.");if(t.length!==1)throw new Error("Unsupported CSS gradient (multiple gradients is not supported).");const r=t[0],n=DT(r.type),i=UT(r.colorStops),o=zT(r.orientation);return{type:n,stops:i,angle:o}}function DT(e){const t={"linear-gradient":0,"radial-gradient":1};if(!(e in t))throw new Error(`Unsupported gradient type "${e}"`);return t[e]}function UT(e){const t=jT(e),r=[];for(let n=0;n<e.length;n++){const i=$T(e[n]);r.push({offset:t[n],color:i.slice(0,3),alpha:i[3]})}return r}function $T(e){return Kd(GT(e))}function GT(e){switch(e.type){case"hex":return`#${e.value}`;case"literal":return e.value;default:return`${e.type}(${e.value.join(",")})`}}function jT(e){const t=[];for(let i=0;i<e.length;i++){const o=e[i];let l=-1;o.type==="literal"&&o.length&&"type"in o.length&&o.length.type==="%"&&"value"in o.length&&(l=parseFloat(o.length.value)/100),t.push(l)}const r=i=>{for(let o=i;o<t.length;o++)if(t[o]!==-1)return{indexDelta:o-i,offset:t[o]};return{indexDelta:t.length-1-i,offset:1}};let n=0;for(let i=0;i<t.length;i++){const o=t[i];if(o!==-1)n=o;else if(i===0)t[i]=0;else if(i+1===t.length)t[i]=1;else{const l=r(i),u=(l.offset-n)/(1+l.indexDelta);for(let f=0;f<=l.indexDelta;f++)t[i+f]=n+(f+1)*u;i+=l.indexDelta,n=t[i]}}return t.map(qT)}function qT(e){return e.toString().length>6?parseFloat(e.toString().substring(0,6)):e}function zT(e){if(typeof e>"u")return 0;if("type"in e&&"value"in e)switch(e.type){case"angular":return parseFloat(e.value);case"directional":return HT(e.value)}return 0}function HT(e){const t={left:270,top:0,bottom:180,right:90,"left top":315,"top left":315,"left bottom":225,"bottom left":225,"right top":45,"top right":45,"right bottom":135,"bottom right":135};if(!(e in t))throw new Error(`Unsupported directional value "${e}"`);return t[e]}function VT(e){let t=e.replace(/\s{2,}/gu," ");return t=t.replace(/;/g,""),t=t.replace(/ ,/g,","),t=t.replace(/\( /g,"("),t=t.replace(/ \)/g,")"),t.trim()}var WT=Object.defineProperty,XT=Object.defineProperties,KT=Object.getOwnPropertyDescriptors,Yd=Object.getOwnPropertySymbols,YT=Object.prototype.hasOwnProperty,ZT=Object.prototype.propertyIsEnumerable,Zd=(e,t,r)=>t in e?WT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bu=(e,t)=>{for(var r in t||(t={}))YT.call(t,r)&&Zd(e,r,t[r]);if(Yd)for(var r of Yd(t))ZT.call(t,r)&&Zd(e,r,t[r]);return e},QT=(e,t)=>XT(e,KT(t));const Qd=90;function JT(e){return[...e].sort((t,r)=>t.offset-r.offset)}const xu=class extends Zt{constructor(t){t&&"css"in t&&(t=QT(bu({},BT(t.css||"")),{alpha:t.alpha,maxColors:t.maxColors}));const r=bu(bu({},xu.defaults),t);if(!r.stops||r.stops.length<2)throw new Error("ColorGradientFilter requires at least 2 color stops.");super(NT,PT),this._stops=[],this.autoFit=!1,Object.assign(this,r)}get stops(){return this._stops}set stops(t){const r=JT(t),n=new Float32Array(r.length*3),i=0,o=1,l=2;for(let u=0;u<r.length;u++){const f=Kd(r[u].color),h=u*3;n[h+i]=f[i],n[h+o]=f[o],n[h+l]=f[l]}this.uniforms.uColors=n,this.uniforms.uOffsets=r.map(u=>u.offset),this.uniforms.uAlphas=r.map(u=>u.alpha),this.uniforms.uNumStops=r.length,this._stops=r}set type(t){this.uniforms.uType=t}get type(){return this.uniforms.uType}set angle(t){this.uniforms.uAngle=t-Qd}get angle(){return this.uniforms.uAngle+Qd}set alpha(t){this.uniforms.uAlpha=t}get alpha(){return this.uniforms.uAlpha}set maxColors(t){this.uniforms.uMaxColors=t}get maxColors(){return this.uniforms.uMaxColors}};let Mo=xu;Mo.LINEAR=0,Mo.RADIAL=1,Mo.CONIC=2,Mo.defaults={type:xu.LINEAR,stops:[{offset:0,color:16711680,alpha:1},{offset:1,color:255,alpha:1}],alpha:1,angle:90,maxColors:0};var tE=`attribute vec2 aVertexPosition;
838
838
  attribute vec2 aTextureCoord;
839
839
 
840
840
  uniform mat3 projectionMatrix;
@@ -1920,7 +1920,7 @@ void main() {
1920
1920
  vec3 color = texColor.rgb;
1921
1921
  gl_FragColor = vec4(uNightVisionMatrix * vec3(color), texColor.a);
1922
1922
  }
1923
- `),t=[.393,.769,.189,.349,.686,.168,.272,.534,.131];return e.uniforms.uNightVisionMatrix=t,{nightVisionFilter:e}},vp=Et.forwardRef((e,t)=>{const r=_t.useRef(null),n=_t.useRef(null),{src:i,transformation:{x:o,y:l,width:u,height:f,anchor:h,colorCorrection:d={},effect:p},pointerdown:c}=e,{blurRadius:v=0}=d,{temperatureFilter:m,sharpnessFilter:_,hueFilter:b,blurFilter:y,adjustmentFilter:w}=ys(d),{nightVisionFilter:T}=KE();return Et.useEffect(()=>(console.log("PixiImageSprite mounting"),()=>{console.log("PixiImageSprite unmounting")}),[]),Yt.jsx(ni,{...e,ref:t,children:Yt.jsx(me.Container,{ref:n,children:Yt.jsx(me.Sprite,{image:i,width:u,height:f,anchor:h,ref:r,x:o,y:l,interactive:!0,pointerdown:c,filters:[m,_,b,w,...v>0?[y]:[],...p===Sn.NightVision?[T]:[]]})})})});vp.whyDidYouRender={logOnDifferentValues:!0,customName:"ImageSprite"};const Lo={build(e){const t=e.points;let r,n,i,o,l,u;if(e.type===Pe.CIRC){const m=e.shape;r=m.x,n=m.y,l=u=m.radius,i=o=0}else if(e.type===Pe.ELIP){const m=e.shape;r=m.x,n=m.y,l=m.width,u=m.height,i=o=0}else{const m=e.shape,_=m.width/2,b=m.height/2;r=m.x+_,n=m.y+b,l=u=Math.max(0,Math.min(m.radius,Math.min(_,b))),i=_-l,o=b-u}if(!(l>=0&&u>=0&&i>=0&&o>=0)){t.length=0;return}const f=Math.ceil(2.3*Math.sqrt(l+u)),h=f*8+(i?4:0)+(o?4:0);if(t.length=h,h===0)return;if(f===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o;return}let d=0,p=f*4+(i?2:0)+2,c=p,v=h;{const m=i+l,_=o,b=r+m,y=r-m,w=n+_;if(t[d++]=b,t[d++]=w,t[--p]=w,t[--p]=y,o){const T=n-_;t[c++]=y,t[c++]=T,t[--v]=T,t[--v]=b}}for(let m=1;m<f;m++){const _=Math.PI/2*(m/f),b=i+Math.cos(_)*l,y=o+Math.sin(_)*u,w=r+b,T=r-b,x=n+y,E=n-y;t[d++]=w,t[d++]=x,t[--p]=x,t[--p]=T,t[c++]=T,t[c++]=E,t[--v]=E,t[--v]=w}{const m=i,_=o+u,b=r+m,y=r-m,w=n+_,T=n-_;t[d++]=b,t[d++]=w,t[--v]=T,t[--v]=b,i&&(t[d++]=y,t[d++]=w,t[--v]=T,t[--v]=y)}},triangulate(e,t){const r=e.points,n=t.points,i=t.indices;if(r.length===0)return;let o=n.length/2;const l=o;let u,f;if(e.type!==Pe.RREC){const d=e.shape;u=d.x,f=d.y}else{const d=e.shape;u=d.x+d.width/2,f=d.y+d.height/2}const h=e.matrix;n.push(e.matrix?h.a*u+h.c*f+h.tx:u,e.matrix?h.b*u+h.d*f+h.ty:f),o++,n.push(r[0],r[1]);for(let d=2;d<r.length;d+=2)n.push(r[d],r[d+1]),i.push(o++,l,o);i.push(l+1,l,o)}};function gp(e,t=!1){const r=e.length;if(r<6)return;let n=0;for(let i=0,o=e[r-2],l=e[r-1];i<r;i+=2){const u=e[i],f=e[i+1];n+=(u-o)*(f+l),o=u,l=f}if(!t&&n>0||t&&n<=0){const i=r/2;for(let o=i+i%2;o<r;o+=2){const l=r-o-2,u=r-o-1,f=o,h=o+1;[e[l],e[f]]=[e[f],e[l]],[e[u],e[h]]=[e[h],e[u]]}}}const mp={build(e){e.points=e.shape.points.slice()},triangulate(e,t){let r=e.points;const n=e.holes,i=t.points,o=t.indices;if(r.length>=6){gp(r,!1);const l=[];for(let h=0;h<n.length;h++){const d=n[h];gp(d.points,!0),l.push(r.length/2),r=r.concat(d.points)}const u=L_(r,l,2);if(!u)return;const f=i.length/2;for(let h=0;h<u.length;h+=3)o.push(u[h]+f),o.push(u[h+1]+f),o.push(u[h+2]+f);for(let h=0;h<r.length;h++)i.push(r[h])}}},YE={build(e){const t=e.shape,r=t.x,n=t.y,i=t.width,o=t.height,l=e.points;l.length=0,i>=0&&o>=0&&l.push(r,n,r+i,n,r+i,n+o,r,n+o)},triangulate(e,t){const r=e.points,n=t.points;if(r.length===0)return;const i=n.length/2;n.push(r[0],r[1],r[2],r[3],r[6],r[7],r[4],r[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},ZE={build(e){Lo.build(e)},triangulate(e,t){Lo.triangulate(e,t)}};var Sr=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(Sr||{}),Gn=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))(Gn||{});const Si={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let r=Math.ceil(e/this.maxLength);return r<this.minSegments?r=this.minSegments:r>this.maxSegments&&(r=this.maxSegments),r}};class yp{static curveTo(t,r,n,i,o,l){const u=l[l.length-2],h=l[l.length-1]-r,d=u-t,p=i-r,c=n-t,v=Math.abs(h*c-d*p);if(v<1e-8||o===0)return(l[l.length-2]!==t||l[l.length-1]!==r)&&l.push(t,r),null;const m=h*h+d*d,_=p*p+c*c,b=h*p+d*c,y=o*Math.sqrt(m)/v,w=o*Math.sqrt(_)/v,T=y*b/m,x=w*b/_,E=y*c+w*d,I=y*p+w*h,A=d*(w+T),O=h*(w+T),L=c*(y+x),R=p*(y+x),C=Math.atan2(O-I,A-E),P=Math.atan2(R-I,L-E);return{cx:E+t,cy:I+r,radius:o,startAngle:C,endAngle:P,anticlockwise:d*p>c*h}}static arc(t,r,n,i,o,l,u,f,h){const d=u-l,p=Si._segmentsCount(Math.abs(d)*o,Math.ceil(Math.abs(d)/vo)*40),c=d/(p*2),v=c*2,m=Math.cos(c),_=Math.sin(c),b=p-1,y=b%1/b;for(let w=0;w<=b;++w){const T=w+y*w,x=c+l+v*T,E=Math.cos(x),I=-Math.sin(x);h.push((m*E+_*I)*o+n,(m*-I+_*E)*o+i)}}}class QE{constructor(){this.reset()}begin(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n}end(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class Eu{static curveLength(t,r,n,i,o,l,u,f){let d=0,p=0,c=0,v=0,m=0,_=0,b=0,y=0,w=0,T=0,x=0,E=t,I=r;for(let A=1;A<=10;++A)p=A/10,c=p*p,v=c*p,m=1-p,_=m*m,b=_*m,y=b*t+3*_*p*n+3*m*c*o+v*u,w=b*r+3*_*p*i+3*m*c*l+v*f,T=E-y,x=I-w,E=y,I=w,d+=Math.sqrt(T*T+x*x);return d}static curveTo(t,r,n,i,o,l,u){const f=u[u.length-2],h=u[u.length-1];u.length-=2;const d=Si._segmentsCount(Eu.curveLength(f,h,t,r,n,i,o,l));let p=0,c=0,v=0,m=0,_=0;u.push(f,h);for(let b=1,y=0;b<=d;++b)y=b/d,p=1-y,c=p*p,v=c*p,m=y*y,_=m*y,u.push(v*f+3*c*y*t+3*p*m*n+_*o,v*h+3*c*y*r+3*p*m*i+_*l)}}function _p(e,t,r,n,i,o,l,u){const f=e-r*i,h=t-n*i,d=e+r*o,p=t+n*o;let c,v;l?(c=n,v=-r):(c=-n,v=r);const m=f+c,_=h+v,b=d+c,y=p+v;return u.push(m,_,b,y),2}function jn(e,t,r,n,i,o,l,u){const f=r-e,h=n-t;let d=Math.atan2(f,h),p=Math.atan2(i-e,o-t);u&&d<p?d+=Math.PI*2:!u&&d>p&&(p+=Math.PI*2);let c=d;const v=p-d,m=Math.abs(v),_=Math.sqrt(f*f+h*h),b=(15*m*Math.sqrt(_)/Math.PI>>0)+1,y=v/b;if(c+=y,u){l.push(e,t,r,n);for(let w=1,T=c;w<b;w++,T+=y)l.push(e,t,e+Math.sin(T)*_,t+Math.cos(T)*_);l.push(e,t,i,o)}else{l.push(r,n,e,t);for(let w=1,T=c;w<b;w++,T+=y)l.push(e+Math.sin(T)*_,t+Math.cos(T)*_,e,t);l.push(i,o,e,t)}return b*2}function JE(e,t){const r=e.shape;let n=e.points||r.points.slice();const i=t.closePointEps;if(n.length===0)return;const o=e.lineStyle,l=new se(n[0],n[1]),u=new se(n[n.length-2],n[n.length-1]),f=r.type!==Pe.POLY||r.closeStroke,h=Math.abs(l.x-u.x)<i&&Math.abs(l.y-u.y)<i;if(f){n=n.slice(),h&&(n.pop(),n.pop(),u.set(n[n.length-2],n[n.length-1]));const z=(l.x+u.x)*.5,it=(u.y+l.y)*.5;n.unshift(z,it),n.push(z,it)}const d=t.points,p=n.length/2;let c=n.length;const v=d.length/2,m=o.width/2,_=m*m,b=o.miterLimit*o.miterLimit;let y=n[0],w=n[1],T=n[2],x=n[3],E=0,I=0,A=-(w-x),O=y-T,L=0,R=0,C=Math.sqrt(A*A+O*O);A/=C,O/=C,A*=m,O*=m;const P=o.alignment,M=(1-P)*2,F=P*2;f||(o.cap===Gn.ROUND?c+=jn(y-A*(M-F)*.5,w-O*(M-F)*.5,y-A*M,w-O*M,y+A*F,w+O*F,d,!0)+2:o.cap===Gn.SQUARE&&(c+=_p(y,w,A,O,M,F,!0,d))),d.push(y-A*M,w-O*M,y+A*F,w+O*F);for(let z=1;z<p-1;++z){y=n[(z-1)*2],w=n[(z-1)*2+1],T=n[z*2],x=n[z*2+1],E=n[(z+1)*2],I=n[(z+1)*2+1],A=-(w-x),O=y-T,C=Math.sqrt(A*A+O*O),A/=C,O/=C,A*=m,O*=m,L=-(x-I),R=T-E,C=Math.sqrt(L*L+R*R),L/=C,R/=C,L*=m,R*=m;const it=T-y,W=w-x,U=T-E,k=I-x,D=it*U+W*k,j=W*U-k*it,Z=j<0;if(Math.abs(j)<.001*Math.abs(D)){d.push(T-A*M,x-O*M,T+A*F,x+O*F),D>=0&&(o.join===Sr.ROUND?c+=jn(T,x,T-A*M,x-O*M,T-L*M,x-R*M,d,!1)+4:c+=2,d.push(T-L*F,x-R*F,T+L*M,x+R*M));continue}const Y=(-A+y)*(-O+x)-(-A+T)*(-O+w),G=(-L+E)*(-R+x)-(-L+T)*(-R+I),V=(it*G-U*Y)/j,rt=(k*Y-W*G)/j,Q=(V-T)*(V-T)+(rt-x)*(rt-x),et=T+(V-T)*M,ot=x+(rt-x)*M,pt=T-(V-T)*F,mt=x-(rt-x)*F,xt=Math.min(it*it+W*W,U*U+k*k),At=Z?M:F,oe=xt+At*At*_,qt=Q<=oe;let nt=o.join;if(nt===Sr.MITER&&Q/_>b&&(nt=Sr.BEVEL),qt)switch(nt){case Sr.MITER:{d.push(et,ot,pt,mt);break}case Sr.BEVEL:{Z?d.push(et,ot,T+A*F,x+O*F,et,ot,T+L*F,x+R*F):d.push(T-A*M,x-O*M,pt,mt,T-L*M,x-R*M,pt,mt),c+=2;break}case Sr.ROUND:{Z?(d.push(et,ot,T+A*F,x+O*F),c+=jn(T,x,T+A*F,x+O*F,T+L*F,x+R*F,d,!0)+4,d.push(et,ot,T+L*F,x+R*F)):(d.push(T-A*M,x-O*M,pt,mt),c+=jn(T,x,T-A*M,x-O*M,T-L*M,x-R*M,d,!1)+4,d.push(T-L*M,x-R*M,pt,mt));break}}else{switch(d.push(T-A*M,x-O*M,T+A*F,x+O*F),nt){case Sr.MITER:{Z?d.push(pt,mt,pt,mt):d.push(et,ot,et,ot),c+=2;break}case Sr.ROUND:{Z?c+=jn(T,x,T+A*F,x+O*F,T+L*F,x+R*F,d,!0)+2:c+=jn(T,x,T-A*M,x-O*M,T-L*M,x-R*M,d,!1)+2;break}}d.push(T-L*M,x-R*M,T+L*F,x+R*F),c+=2}}y=n[(p-2)*2],w=n[(p-2)*2+1],T=n[(p-1)*2],x=n[(p-1)*2+1],A=-(w-x),O=y-T,C=Math.sqrt(A*A+O*O),A/=C,O/=C,A*=m,O*=m,d.push(T-A*M,x-O*M,T+A*F,x+O*F),f||(o.cap===Gn.ROUND?c+=jn(T-A*(M-F)*.5,x-O*(M-F)*.5,T-A*M,x-O*M,T+A*F,x+O*F,d,!1)+2:o.cap===Gn.SQUARE&&(c+=_p(T,x,A,O,M,F,!1,d)));const q=t.indices,K=Si.epsilon*Si.epsilon;for(let z=v;z<c+v-2;++z)y=d[z*2],w=d[z*2+1],T=d[(z+1)*2],x=d[(z+1)*2+1],E=d[(z+2)*2],I=d[(z+2)*2+1],!(Math.abs(y*(x-I)+T*(I-w)+E*(w-x))<K)&&q.push(z,z+1,z+2)}function t2(e,t){let r=0;const n=e.shape,i=e.points||n.points,o=n.type!==Pe.POLY||n.closeStroke;if(i.length===0)return;const l=t.points,u=t.indices,f=i.length/2,h=l.length/2;let d=h;for(l.push(i[0],i[1]),r=1;r<f;r++)l.push(i[r*2],i[r*2+1]),u.push(d,d+1),d++;o&&u.push(d,h)}function bp(e,t){e.lineStyle.native?t2(e,t):JE(e,t)}class Su{static curveLength(t,r,n,i,o,l){const u=t-2*n+o,f=r-2*i+l,h=2*n-2*t,d=2*i-2*r,p=4*(u*u+f*f),c=4*(u*h+f*d),v=h*h+d*d,m=2*Math.sqrt(p+c+v),_=Math.sqrt(p),b=2*p*_,y=2*Math.sqrt(v),w=c/_;return(b*m+_*c*(m-y)+(4*v*p-c*c)*Math.log((2*_+w+m)/(w+y)))/(4*b)}static curveTo(t,r,n,i,o){const l=o[o.length-2],u=o[o.length-1],f=Si._segmentsCount(Su.curveLength(l,u,t,r,n,i));let h=0,d=0;for(let p=1;p<=f;++p){const c=p/f;h=l+(t-l)*c,d=u+(r-u)*c,o.push(h+(t+(n-t)*c-h)*c,d+(r+(i-r)*c-d)*c)}}}const Au={[Pe.POLY]:mp,[Pe.CIRC]:Lo,[Pe.ELIP]:Lo,[Pe.RECT]:YE,[Pe.RREC]:ZE},xp=[],Fo=[];class Ou{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?re.EMPTY:(t=t||new re(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,r){const{a:n,b:i,c:o,d:l,tx:u,ty:f}=t,h=n*r.x+o*r.y+u,d=i*r.x+l*r.y+f;this.minX=Math.min(this.minX,h),this.maxX=Math.max(this.maxX,h),this.minY=Math.min(this.minY,d),this.maxY=Math.max(this.maxY,d)}addQuad(t){let r=this.minX,n=this.minY,i=this.maxX,o=this.maxY,l=t[0],u=t[1];r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,l=t[2],u=t[3],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,l=t[4],u=t[5],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,l=t[6],u=t[7],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,this.minX=r,this.minY=n,this.maxX=i,this.maxY=o}addFrame(t,r,n,i,o){this.addFrameMatrix(t.worldTransform,r,n,i,o)}addFrameMatrix(t,r,n,i,o){const l=t.a,u=t.b,f=t.c,h=t.d,d=t.tx,p=t.ty;let c=this.minX,v=this.minY,m=this.maxX,_=this.maxY,b=l*r+f*n+d,y=u*r+h*n+p;c=b<c?b:c,v=y<v?y:v,m=b>m?b:m,_=y>_?y:_,b=l*i+f*n+d,y=u*i+h*n+p,c=b<c?b:c,v=y<v?y:v,m=b>m?b:m,_=y>_?y:_,b=l*r+f*o+d,y=u*r+h*o+p,c=b<c?b:c,v=y<v?y:v,m=b>m?b:m,_=y>_?y:_,b=l*i+f*o+d,y=u*i+h*o+p,c=b<c?b:c,v=y<v?y:v,m=b>m?b:m,_=y>_?y:_,this.minX=c,this.minY=v,this.maxX=m,this.maxY=_}addVertexData(t,r,n){let i=this.minX,o=this.minY,l=this.maxX,u=this.maxY;for(let f=r;f<n;f+=2){const h=t[f],d=t[f+1];i=h<i?h:i,o=d<o?d:o,l=h>l?h:l,u=d>u?d:u}this.minX=i,this.minY=o,this.maxX=l,this.maxY=u}addVertices(t,r,n,i){this.addVerticesMatrix(t.worldTransform,r,n,i)}addVerticesMatrix(t,r,n,i,o=0,l=o){const u=t.a,f=t.b,h=t.c,d=t.d,p=t.tx,c=t.ty;let v=this.minX,m=this.minY,_=this.maxX,b=this.maxY;for(let y=n;y<i;y+=2){const w=r[y],T=r[y+1],x=u*w+h*T+p,E=d*T+f*w+c;v=Math.min(v,x-o),_=Math.max(_,x+o),m=Math.min(m,E-l),b=Math.max(b,E+l)}this.minX=v,this.minY=m,this.maxX=_,this.maxY=b}addBounds(t){const r=this.minX,n=this.minY,i=this.maxX,o=this.maxY;this.minX=t.minX<r?t.minX:r,this.minY=t.minY<n?t.minY:n,this.maxX=t.maxX>i?t.maxX:i,this.maxY=t.maxY>o?t.maxY:o}addBoundsMask(t,r){const n=t.minX>r.minX?t.minX:r.minX,i=t.minY>r.minY?t.minY:r.minY,o=t.maxX<r.maxX?t.maxX:r.maxX,l=t.maxY<r.maxY?t.maxY:r.maxY;if(n<=o&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,d=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=o>h?o:h,this.maxY=l>d?l:d}}addBoundsMatrix(t,r){this.addFrameMatrix(r,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,r){const n=t.minX>r.x?t.minX:r.x,i=t.minY>r.y?t.minY:r.y,o=t.maxX<r.x+r.width?t.maxX:r.x+r.width,l=t.maxY<r.y+r.height?t.maxY:r.y+r.height;if(n<=o&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,d=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=o>h?o:h,this.maxY=l>d?l:d}}pad(t=0,r=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=r,this.maxY+=r)}addFramePad(t,r,n,i,o,l){t-=o,r-=l,n+=o,i+=l,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>n?this.maxX:n,this.minY=this.minY<r?this.minY:r,this.maxY=this.maxY>i?this.maxY:i}}class Ai extends Vs{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new su,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new Ou,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];Object.defineProperty(Ai.prototype,i,Object.getOwnPropertyDescriptor(t,i))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(t,r){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),r||(this._boundsRect||(this._boundsRect=new re),r=this._boundsRect),this._bounds.getRectangle(r)}getLocalBounds(t){t||(this._localBoundsRect||(this._localBoundsRect=new re),t=this._localBoundsRect),this._localBounds||(this._localBounds=new Ou);const r=this.transform,n=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;const i=this._bounds,o=this._boundsID;this._bounds=this._localBounds;const l=this.getBounds(!1,t);return this.parent=n,this.transform=r,this._bounds=i,this._bounds.updateID+=this._boundsID-o,l}toGlobal(t,r,n=!1){return n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,r)}toLocal(t,r,n,i){return r&&(t=r.toGlobal(t,n,i)),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,n)}setParent(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t}removeFromParent(){var t;(t=this.parent)==null||t.removeChild(this)}setTransform(t=0,r=0,n=1,i=1,o=0,l=0,u=0,f=0,h=0){return this.position.x=t,this.position.y=r,this.scale.x=n||1,this.scale.y=i||1,this.rotation=o,this.skew.x=l,this.skew.y=u,this.pivot.x=f,this.pivot.y=h,this}destroy(t){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new e2),this.tempDisplayObjectParent}enableTempParent(){const t=this.parent;return this.parent=this._tempDisplayObjectParent,t}disableTempParent(t){this.parent=t}get x(){return this.position.x}set x(t){this.transform.position.x=t}get y(){return this.position.y}set y(t){this.transform.position.y=t}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(t){this.transform.position.copyFrom(t)}get scale(){return this.transform.scale}set scale(t){this.transform.scale.copyFrom(t)}get pivot(){return this.transform.pivot}set pivot(t){this.transform.pivot.copyFrom(t)}get skew(){return this.transform.skew}set skew(t){this.transform.skew.copyFrom(t)}get rotation(){return this.transform.rotation}set rotation(t){this.transform.rotation=t}get angle(){return this.transform.rotation*vw}set angle(t){this.transform.rotation=t*fs}get zIndex(){return this._zIndex}set zIndex(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)}get worldVisible(){let t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0}get mask(){return this._mask}set mask(t){if(this._mask!==t){if(this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount--,r._maskRefCount===0&&(r.renderable=!0,r.isMask=!1))}if(this._mask=t,this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount===0&&(r.renderable=!1,r.isMask=!0),r._maskRefCount++)}}}}class e2 extends Ai{constructor(){super(...arguments),this.sortDirty=null}}Ai.prototype.displayObjectUpdateTransform=Ai.prototype.updateTransform;const r2=new $e;function n2(e,t){return e.zIndex===t.zIndex?e._lastSortedIndex-t._lastSortedIndex:e.zIndex-t.zIndex}const Cu=class extends Ai{constructor(){super(),this.children=[],this.sortableChildren=Cu.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(e){}addChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.addChild(e[t]);else{const t=e[0];t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.push(t),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this)}return e[0]}addChildAt(e,t){if(t<0||t>this.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const r=this.getChildIndex(e),n=this.getChildIndex(t);this.children[r]=t,this.children[n]=e,this.onChildrenChange(r<n?r:n)}getChildIndex(e){const t=this.children.indexOf(e);if(t===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return t}setChildIndex(e,t){if(t<0||t>=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const r=this.getChildIndex(e);fo(this.children,r,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.removeChild(e[t]);else{const t=e[0],r=this.children.indexOf(t);if(r===-1)return null;t.parent=null,t.transform._parentID=-1,fo(this.children,r,1),this._boundsID++,this.onChildrenChange(r),t.emit("removed",this),this.emit("childRemoved",t,this,r)}return e[0]}removeChildAt(e){const t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,fo(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t}removeChildren(e=0,t=this.children.length){const r=e,n=t,i=n-r;let o;if(i>0&&i<=n){o=this.children.splice(r,i);for(let l=0;l<o.length;++l)o[l].parent=null,o[l].transform&&(o[l].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(let l=0;l<o.length;++l)o[l].emit("removed",this),this.emit("childRemoved",o[l],this,l);return o}else if(i===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let e=!1;for(let t=0,r=this.children.length;t<r;++t){const n=this.children[t];n._lastSortedIndex=t,!e&&n.zIndex!==0&&(e=!0)}e&&this.children.length>1&&this.children.sort(n2),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e<t;++e){const r=this.children[e];r.visible&&r.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let e=0;e<this.children.length;e++){const t=this.children[e];if(!(!t.visible||!t.renderable))if(t.calculateBounds(),t._mask){const r=t._mask.isMaskData?t._mask.maskObject:t._mask;r?(r.calculateBounds(),this._bounds.addBoundsMask(t._bounds,r._bounds)):this._bounds.addBounds(t._bounds)}else t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(e,t=!1){const r=super.getLocalBounds(e);if(!t)for(let n=0,i=this.children.length;n<i;++n){const o=this.children[n];o.visible&&o.updateTransform()}return r}_calculateBounds(){}_renderWithCulling(e){const t=e.renderTexture.sourceFrame;if(!(t.width>0&&t.height>0))return;let r,n;this.cullArea?(r=this.cullArea,n=this.worldTransform):this._render!==Cu.prototype._render&&(r=this.getBounds(!0));const i=e.projection.transform;if(i&&(n?(n=r2.copyFrom(n),n.prepend(i)):n=i),r&&t.intersects(r,n))this._render(e);else if(this.cullArea)return;for(let o=0,l=this.children.length;o<l;++o){const u=this.children[o],f=u.cullable;u.cullable=f||!this.cullArea,u.render(e),u.cullable=f}}render(e){var t;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(t=this.filters)!=null&&t.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(let r=0,n=this.children.length;r<n;++r)this.children[r].render(e)}}renderAdvanced(e){var i,o,l;const t=this.filters,r=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let u=0;u<t.length;u++)t[u].enabled&&this._enabledFilters.push(t[u])}const n=t&&((i=this._enabledFilters)==null?void 0:i.length)||r&&(!r.isMaskData||r.enabled&&(r.autoDetect||r.type!==Ee.NONE));if(n&&e.batch.flush(),t&&((o=this._enabledFilters)!=null&&o.length)&&e.filter.push(this,this._enabledFilters),r&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(let u=0,f=this.children.length;u<f;++u)this.children[u].render(e)}n&&e.batch.flush(),r&&e.mask.pop(this),t&&((l=this._enabledFilters)!=null&&l.length)&&e.filter.pop()}_render(e){}destroy(e){super.destroy(),this.sortDirty=!1;const t=typeof e=="boolean"?e:e==null?void 0:e.children,r=this.removeChildren(0,this.children.length);if(t)for(let n=0;n<r.length;++n)r[n].destroy(e)}get width(){return this.scale.x*this.getLocalBounds().width}set width(e){const t=this.getLocalBounds().width;t!==0?this.scale.x=e/t:this.scale.x=1,this._width=e}get height(){return this.scale.y*this.getLocalBounds().height}set height(e){const t=this.getLocalBounds().height;t!==0?this.scale.y=e/t:this.scale.y=1,this._height=e}};let Oi=Cu;Oi.defaultSortableChildren=!1,Oi.prototype.containerUpdateTransform=Oi.prototype.updateTransform,Object.defineProperties(Dt,{SORTABLE_CHILDREN:{get(){return Oi.defaultSortableChildren},set(e){Ht("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Oi.defaultSortableChildren=e}}});class Bo{constructor(t,r=null,n=null,i=null){this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}clone(){return new Bo(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const Ci=new se,wp=class extends td{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new Ou,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Fo.push(this.drawCalls[e]);this.drawCalls.length=0;for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t.reset(),xp.push(t)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,r=null,n=null){const i=new Bo(e,t,r,n);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const r=new Bo(e,null,null,t),n=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=n.lineStyle,n.holes.push(r),this.dirty++,this}destroy(){super.destroy();for(let e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(e){const t=this.graphicsData;for(let r=0;r<t.length;++r){const n=t[r];if(n.fillStyle.visible&&n.shape&&(n.matrix?n.matrix.applyInverse(e,Ci):Ci.copyFrom(e),n.shape.contains(Ci.x,Ci.y))){let i=!1;if(n.holes){for(let o=0;o<n.holes.length;o++)if(n.holes[o].shape.contains(Ci.x,Ci.y)){i=!0;break}}if(!i)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const e=this.uvs,t=this.graphicsData;let r=null,n=null;this.batches.length>0&&(r=this.batches[this.batches.length-1],n=r.style);for(let u=this.shapeIndex;u<t.length;u++){this.shapeIndex++;const f=t[u],h=f.fillStyle,d=f.lineStyle;Au[f.type].build(f),f.matrix&&this.transformPoints(f.points,f.matrix),(h.visible||d.visible)&&this.processHoles(f.holes);for(let c=0;c<2;c++){const v=c===0?h:d;if(!v.visible)continue;const m=v.texture.baseTexture,_=this.indices.length,b=this.points.length/2;m.wrapMode=Qi.REPEAT,c===0?this.processFill(f):this.processLine(f);const y=this.points.length/2-b;y!==0&&(r&&!this._compareStyles(n,v)&&(r.end(_,b),r=null),r||(r=xp.pop()||new QE,r.begin(v,_,b),this.batches.push(r),n=v),this.addUvs(this.points,e,v.texture,b,y,v.matrix))}}const i=this.indices.length,o=this.points.length/2;if(r&&r.end(i,o),this.batches.length===0){this.batchable=!0;return}const l=o>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&l===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=l?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e<t;e++){const r=this.graphicsData[e],n=r.fillStyle,i=r.lineStyle;if(n&&!n.texture.baseTexture.valid||i&&!i.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const e=this.batches;for(let t=0,r=e.length;t<r;t++){const n=e[t];for(let i=0;i<n.size;i++){const o=n.start+i;this.indicesUint16[o]=this.indicesUint16[o]-n.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const e=this.batches;for(let t=0;t<e.length;t++)if(e[t].style.native)return!1;return this.points.length<wp.BATCHABLE_SIZE*2}buildDrawCalls(){let e=++Xt._globalBatch;for(let d=0;d<this.drawCalls.length;d++)this.drawCalls[d].texArray.clear(),Fo.push(this.drawCalls[d]);this.drawCalls.length=0;const t=this.colors,r=this.textureIds;let n=Fo.pop();n||(n=new eu,n.texArray=new au),n.texArray.count=0,n.start=0,n.size=0,n.type=an.TRIANGLES;let i=0,o=null,l=0,u=!1,f=an.TRIANGLES,h=0;this.drawCalls.push(n);for(let d=0;d<this.batches.length;d++){const p=this.batches[d],c=8,v=p.style,m=v.texture.baseTexture;u!==!!v.native&&(u=!!v.native,f=u?an.LINES:an.TRIANGLES,o=null,i=c,e++),o!==m&&(o=m,m._batchEnabled!==e&&(i===c&&(e++,i=0,n.size>0&&(n=Fo.pop(),n||(n=new eu,n.texArray=new au),this.drawCalls.push(n)),n.start=h,n.size=0,n.texArray.count=0,n.type=f),m.touched=1,m._batchEnabled=e,m._batchLocation=i,m.wrapMode=Qi.REPEAT,n.texArray.elements[n.texArray.count++]=m,i++)),n.size+=p.size,h+=p.size,l=m._batchLocation,this.addColors(t,v.color,v.alpha,p.attribSize,p.attribStart),this.addTextureIds(r,l,p.attribSize,p.attribStart)}Xt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,r=this.colors,n=this.textureIds,i=new ArrayBuffer(e.length*3*4),o=new Float32Array(i),l=new Uint32Array(i);let u=0;for(let f=0;f<e.length/2;f++)o[u++]=e[f*2],o[u++]=e[f*2+1],o[u++]=t[f*2],o[u++]=t[f*2+1],l[u++]=r[f],o[u++]=n[f];this._buffer.update(i),this._indexBuffer.update(this.indicesUint16)}processFill(e){e.holes.length?mp.triangulate(e,this):Au[e.type].triangulate(e,this)}processLine(e){bp(e,this);for(let t=0;t<e.holes.length;t++)bp(e.holes[t],this)}processHoles(e){for(let t=0;t<e.length;t++){const r=e[t];Au[r.type].build(r),r.matrix&&this.transformPoints(r.points,r.matrix)}}calculateBounds(){const e=this._bounds;e.clear(),e.addVertexData(this.points,0,this.points.length),e.pad(this.boundsPadding,this.boundsPadding)}transformPoints(e,t){for(let r=0;r<e.length/2;r++){const n=e[r*2],i=e[r*2+1];e[r*2]=t.a*n+t.c*i+t.tx,e[r*2+1]=t.b*n+t.d*i+t.ty}}addColors(e,t,r,n,i=0){const o=Be.shared.setValue(t).toLittleEndianNumber(),l=Be.shared.setValue(o).toPremultiplied(r);e.length=Math.max(e.length,i+n);for(let u=0;u<n;u++)e[i+u]=l}addTextureIds(e,t,r,n=0){e.length=Math.max(e.length,n+r);for(let i=0;i<r;i++)e[n+i]=t}addUvs(e,t,r,n,i,o=null){let l=0;const u=t.length,f=r.frame;for(;l<i;){let d=e[(n+l)*2],p=e[(n+l)*2+1];if(o){const c=o.a*d+o.c*p+o.tx;p=o.b*d+o.d*p+o.ty,d=c}l++,t.push(d/f.width,p/f.height)}const h=r.baseTexture;(f.width<h.width||f.height<h.height)&&this.adjustUvs(t,r,u,i)}adjustUvs(e,t,r,n){const i=t.baseTexture,o=1e-6,l=r+n*2,u=t.frame,f=u.width/i.width,h=u.height/i.height;let d=u.x/u.width,p=u.y/u.height,c=Math.floor(e[r]+o),v=Math.floor(e[r+1]+o);for(let m=r+2;m<l;m+=2)c=Math.min(c,Math.floor(e[m]+o)),v=Math.min(v,Math.floor(e[m+1]+o));d-=c,p-=v;for(let m=r;m<l;m+=2)e[m]=(e[m]+d)*f,e[m+1]=(e[m+1]+p)*h}};let Tp=wp;Tp.BATCHABLE_SIZE=100;class Do{constructor(){this.color=16777215,this.alpha=1,this.texture=Vt.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const t=new Do;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t}reset(){this.color=16777215,this.alpha=1,this.texture=Vt.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class Ru extends Do{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=Gn.BUTT,this.join=Sr.MITER,this.miterLimit=10}clone(){const t=new Ru;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1}}const Iu={},Uo=class extends Oi{constructor(e=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new Do,this._lineStyle=new Ru,this._matrix=null,this._holeMode=!1,this.state=ho.for2d(),this._geometry=e||new Tp,this._geometry.refCount++,this._transformID=-1,this._tintColor=new Be(16777215),this.blendMode=Rt.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new Uo(this._geometry)}set blendMode(e){this.state.blendMode=e}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(e){this._tintColor.setValue(e)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(e=null,t=0,r,n=.5,i=!1){return typeof e=="number"&&(e={width:e,color:t,alpha:r,alignment:n,native:i}),this.lineTextureStyle(e)}lineTextureStyle(e){const t={width:0,texture:Vt.WHITE,color:e!=null&&e.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:Gn.BUTT,join:Sr.MITER,miterLimit:10};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.width>0&&e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:r},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new cs,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new cs,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const r=this.currentPath.points,n=r[r.length-2],i=r[r.length-1];return(n!==e||i!==t)&&r.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,r,n){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),Su.curveTo(e,t,r,n,i),this}bezierCurveTo(e,t,r,n,i,o){return this._initCurve(),Eu.curveTo(e,t,r,n,i,o,this.currentPath.points),this}arcTo(e,t,r,n,i){this._initCurve(e,t);const o=this.currentPath.points,l=yp.curveTo(e,t,r,n,i,o);if(l){const{cx:u,cy:f,radius:h,startAngle:d,endAngle:p,anticlockwise:c}=l;this.arc(u,f,h,d,p,c)}return this}arc(e,t,r,n,i,o=!1){if(n===i)return this;if(!o&&i<=n?i+=vo:o&&n<=i&&(n+=vo),i-n===0)return this;const u=e+Math.cos(n)*r,f=t+Math.sin(n)*r,h=this._geometry.closePointEps;let d=this.currentPath?this.currentPath.points:null;if(d){const p=Math.abs(d[d.length-2]-u),c=Math.abs(d[d.length-1]-f);p<h&&c<h||d.push(u,f)}else this.moveTo(u,f),d=this.currentPath.points;return yp.arc(u,f,e,t,r,n,i,o,d),this}beginFill(e=0,t){return this.beginTextureFill({texture:Vt.WHITE,color:e,alpha:t})}normalizeColor(e){const t=Be.shared.setValue(e.color??0);e.color=t.toNumber(),e.alpha??(e.alpha=t.alpha)}beginTextureFill(e){const t={texture:Vt.WHITE,color:16777215,matrix:null};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:r},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,r,n){return this.drawShape(new re(e,t,r,n))}drawRoundedRect(e,t,r,n,i){return this.drawShape(new nu(e,t,r,n,i))}drawCircle(e,t,r){return this.drawShape(new ru(e,t,r))}drawEllipse(e,t,r,n){return this.drawShape(new gw(e,t,r,n))}drawPolygon(...e){let t,r=!0;const n=e[0];n.points?(r=n.closeStroke,t=n.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new cs(t);return i.closeStroke=r,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Pe.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,r=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=r,this.vertexData=new Float32Array(e.points);for(let n=0;n<r;n++){const i=e.batches[n],o=i.style.color,l=new Float32Array(this.vertexData.buffer,i.attribStart*4*2,i.attribSize*2),u=new Float32Array(e.uvsFloat32.buffer,i.attribStart*4*2,i.attribSize*2),f=new Uint16Array(e.indicesUint16.buffer,i.start*2,i.size),h={vertexData:l,blendMode:t,indices:f,uvs:u,_batchRGB:Be.shared.setValue(o).toRgbArray(),_tintRGB:o,_texture:i.style.texture,alpha:i.style.alpha,worldAlpha:1};this.batches[n]=h}}_renderBatched(e){if(this.batches.length){e.batch.setObjectRenderer(e.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let t=0,r=this.batches.length;t<r;t++){const n=this.batches[t];n.worldAlpha=this.worldAlpha*n.alpha,e.plugins[this.pluginName].render(n)}}}_renderDirect(e){const t=this._resolveDirectShader(e),r=this._geometry,n=this.worldAlpha,i=t.uniforms,o=r.drawCalls;i.translationMatrix=this.transform.worldTransform,Be.shared.setValue(this._tintColor).premultiply(n).toArray(i.tint),e.shader.bind(t),e.geometry.bind(r,t),e.state.set(this.state);for(let l=0,u=o.length;l<u;l++)this._renderDrawCallDirect(e,r.drawCalls[l])}_renderDrawCallDirect(e,t){const{texArray:r,type:n,size:i,start:o}=t,l=r.count;for(let u=0;u<l;u++)e.texture.bind(r.elements[u],u);e.geometry.draw(n,i,o)}_resolveDirectShader(e){let t=this.shader;const r=this.pluginName;if(!t){if(!Iu[r]){const{maxTextures:n}=e.plugins[r],i=new Int32Array(n);for(let u=0;u<n;u++)i[u]=u;const o={tint:new Float32Array([1,1,1,1]),translationMatrix:new $e,default:br.from({uSamplers:i},!0)},l=e.plugins[r]._shader.program;Iu[r]=new ds(l,o)}t=Iu[r]}return t}_calculateBounds(){this.finishPoly();const e=this._geometry;if(!e.graphicsData.length)return;const{minX:t,minY:r,maxX:n,maxY:i}=e.bounds;this._bounds.addFrame(this.transform,t,r,n,i)}containsPoint(e){return this.worldTransform.applyInverse(e,Uo._TEMP_POINT),this._geometry.containsPoint(Uo._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t._tintRGB=Be.shared.setValue(this._tintColor).multiply(t._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const e=this.transform._worldID;if(this._transformID===e)return;this._transformID=e;const t=this.transform.worldTransform,r=t.a,n=t.b,i=t.c,o=t.d,l=t.tx,u=t.ty,f=this._geometry.points,h=this.vertexData;let d=0;for(let p=0;p<f.length;p+=2){const c=f[p],v=f[p+1];h[d++]=r*c+i*v+l,h[d++]=o*v+n*c+u}}closePath(){const e=this.currentPath;return e&&(e.closeStroke=!0,this.finishPoly()),this}setMatrix(e){return this._matrix=e,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(e){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,super.destroy(e)}};let Pu=Uo;Pu.curves=Si,Pu._TEMP_POINT=new se;var i2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Nu={},s2={get exports(){return Nu},set exports(e){Nu=e}};/*!
1923
+ `),t=[.393,.769,.189,.349,.686,.168,.272,.534,.131];return e.uniforms.uNightVisionMatrix=t,{nightVisionFilter:e}},vp=Et.forwardRef((e,t)=>{const r=_t.useRef(null),n=_t.useRef(null),{src:i,transformation:{x:o,y:l,width:u,height:f,anchor:h,colorCorrection:d={},effect:p},pointerdown:c}=e,{blurRadius:v=0}=d,{temperatureFilter:m,sharpnessFilter:_,hueFilter:b,blurFilter:y,adjustmentFilter:w}=ys(d),{nightVisionFilter:T}=KE();return Et.useEffect(()=>()=>{console.log("PixiImageSprite unmounting")},[]),Yt.jsx(ni,{...e,ref:t,children:Yt.jsx(me.Container,{ref:n,children:Yt.jsx(me.Sprite,{image:i,width:u,height:f,anchor:h,ref:r,x:o,y:l,interactive:!0,pointerdown:c,filters:[m,_,b,w,...v>0?[y]:[],...p===Sn.NightVision?[T]:[]]})})})});vp.whyDidYouRender={logOnDifferentValues:!0,customName:"ImageSprite"};const Lo={build(e){const t=e.points;let r,n,i,o,l,u;if(e.type===Pe.CIRC){const m=e.shape;r=m.x,n=m.y,l=u=m.radius,i=o=0}else if(e.type===Pe.ELIP){const m=e.shape;r=m.x,n=m.y,l=m.width,u=m.height,i=o=0}else{const m=e.shape,_=m.width/2,b=m.height/2;r=m.x+_,n=m.y+b,l=u=Math.max(0,Math.min(m.radius,Math.min(_,b))),i=_-l,o=b-u}if(!(l>=0&&u>=0&&i>=0&&o>=0)){t.length=0;return}const f=Math.ceil(2.3*Math.sqrt(l+u)),h=f*8+(i?4:0)+(o?4:0);if(t.length=h,h===0)return;if(f===0){t.length=8,t[0]=t[6]=r+i,t[1]=t[3]=n+o,t[2]=t[4]=r-i,t[5]=t[7]=n-o;return}let d=0,p=f*4+(i?2:0)+2,c=p,v=h;{const m=i+l,_=o,b=r+m,y=r-m,w=n+_;if(t[d++]=b,t[d++]=w,t[--p]=w,t[--p]=y,o){const T=n-_;t[c++]=y,t[c++]=T,t[--v]=T,t[--v]=b}}for(let m=1;m<f;m++){const _=Math.PI/2*(m/f),b=i+Math.cos(_)*l,y=o+Math.sin(_)*u,w=r+b,T=r-b,x=n+y,E=n-y;t[d++]=w,t[d++]=x,t[--p]=x,t[--p]=T,t[c++]=T,t[c++]=E,t[--v]=E,t[--v]=w}{const m=i,_=o+u,b=r+m,y=r-m,w=n+_,T=n-_;t[d++]=b,t[d++]=w,t[--v]=T,t[--v]=b,i&&(t[d++]=y,t[d++]=w,t[--v]=T,t[--v]=y)}},triangulate(e,t){const r=e.points,n=t.points,i=t.indices;if(r.length===0)return;let o=n.length/2;const l=o;let u,f;if(e.type!==Pe.RREC){const d=e.shape;u=d.x,f=d.y}else{const d=e.shape;u=d.x+d.width/2,f=d.y+d.height/2}const h=e.matrix;n.push(e.matrix?h.a*u+h.c*f+h.tx:u,e.matrix?h.b*u+h.d*f+h.ty:f),o++,n.push(r[0],r[1]);for(let d=2;d<r.length;d+=2)n.push(r[d],r[d+1]),i.push(o++,l,o);i.push(l+1,l,o)}};function gp(e,t=!1){const r=e.length;if(r<6)return;let n=0;for(let i=0,o=e[r-2],l=e[r-1];i<r;i+=2){const u=e[i],f=e[i+1];n+=(u-o)*(f+l),o=u,l=f}if(!t&&n>0||t&&n<=0){const i=r/2;for(let o=i+i%2;o<r;o+=2){const l=r-o-2,u=r-o-1,f=o,h=o+1;[e[l],e[f]]=[e[f],e[l]],[e[u],e[h]]=[e[h],e[u]]}}}const mp={build(e){e.points=e.shape.points.slice()},triangulate(e,t){let r=e.points;const n=e.holes,i=t.points,o=t.indices;if(r.length>=6){gp(r,!1);const l=[];for(let h=0;h<n.length;h++){const d=n[h];gp(d.points,!0),l.push(r.length/2),r=r.concat(d.points)}const u=L_(r,l,2);if(!u)return;const f=i.length/2;for(let h=0;h<u.length;h+=3)o.push(u[h]+f),o.push(u[h+1]+f),o.push(u[h+2]+f);for(let h=0;h<r.length;h++)i.push(r[h])}}},YE={build(e){const t=e.shape,r=t.x,n=t.y,i=t.width,o=t.height,l=e.points;l.length=0,i>=0&&o>=0&&l.push(r,n,r+i,n,r+i,n+o,r,n+o)},triangulate(e,t){const r=e.points,n=t.points;if(r.length===0)return;const i=n.length/2;n.push(r[0],r[1],r[2],r[3],r[6],r[7],r[4],r[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},ZE={build(e){Lo.build(e)},triangulate(e,t){Lo.triangulate(e,t)}};var Sr=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(Sr||{}),Gn=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))(Gn||{});const Si={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let r=Math.ceil(e/this.maxLength);return r<this.minSegments?r=this.minSegments:r>this.maxSegments&&(r=this.maxSegments),r}};class yp{static curveTo(t,r,n,i,o,l){const u=l[l.length-2],h=l[l.length-1]-r,d=u-t,p=i-r,c=n-t,v=Math.abs(h*c-d*p);if(v<1e-8||o===0)return(l[l.length-2]!==t||l[l.length-1]!==r)&&l.push(t,r),null;const m=h*h+d*d,_=p*p+c*c,b=h*p+d*c,y=o*Math.sqrt(m)/v,w=o*Math.sqrt(_)/v,T=y*b/m,x=w*b/_,E=y*c+w*d,I=y*p+w*h,A=d*(w+T),O=h*(w+T),L=c*(y+x),R=p*(y+x),C=Math.atan2(O-I,A-E),P=Math.atan2(R-I,L-E);return{cx:E+t,cy:I+r,radius:o,startAngle:C,endAngle:P,anticlockwise:d*p>c*h}}static arc(t,r,n,i,o,l,u,f,h){const d=u-l,p=Si._segmentsCount(Math.abs(d)*o,Math.ceil(Math.abs(d)/vo)*40),c=d/(p*2),v=c*2,m=Math.cos(c),_=Math.sin(c),b=p-1,y=b%1/b;for(let w=0;w<=b;++w){const T=w+y*w,x=c+l+v*T,E=Math.cos(x),I=-Math.sin(x);h.push((m*E+_*I)*o+n,(m*-I+_*E)*o+i)}}}class QE{constructor(){this.reset()}begin(t,r,n){this.reset(),this.style=t,this.start=r,this.attribStart=n}end(t,r){this.attribSize=r-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class Eu{static curveLength(t,r,n,i,o,l,u,f){let d=0,p=0,c=0,v=0,m=0,_=0,b=0,y=0,w=0,T=0,x=0,E=t,I=r;for(let A=1;A<=10;++A)p=A/10,c=p*p,v=c*p,m=1-p,_=m*m,b=_*m,y=b*t+3*_*p*n+3*m*c*o+v*u,w=b*r+3*_*p*i+3*m*c*l+v*f,T=E-y,x=I-w,E=y,I=w,d+=Math.sqrt(T*T+x*x);return d}static curveTo(t,r,n,i,o,l,u){const f=u[u.length-2],h=u[u.length-1];u.length-=2;const d=Si._segmentsCount(Eu.curveLength(f,h,t,r,n,i,o,l));let p=0,c=0,v=0,m=0,_=0;u.push(f,h);for(let b=1,y=0;b<=d;++b)y=b/d,p=1-y,c=p*p,v=c*p,m=y*y,_=m*y,u.push(v*f+3*c*y*t+3*p*m*n+_*o,v*h+3*c*y*r+3*p*m*i+_*l)}}function _p(e,t,r,n,i,o,l,u){const f=e-r*i,h=t-n*i,d=e+r*o,p=t+n*o;let c,v;l?(c=n,v=-r):(c=-n,v=r);const m=f+c,_=h+v,b=d+c,y=p+v;return u.push(m,_,b,y),2}function jn(e,t,r,n,i,o,l,u){const f=r-e,h=n-t;let d=Math.atan2(f,h),p=Math.atan2(i-e,o-t);u&&d<p?d+=Math.PI*2:!u&&d>p&&(p+=Math.PI*2);let c=d;const v=p-d,m=Math.abs(v),_=Math.sqrt(f*f+h*h),b=(15*m*Math.sqrt(_)/Math.PI>>0)+1,y=v/b;if(c+=y,u){l.push(e,t,r,n);for(let w=1,T=c;w<b;w++,T+=y)l.push(e,t,e+Math.sin(T)*_,t+Math.cos(T)*_);l.push(e,t,i,o)}else{l.push(r,n,e,t);for(let w=1,T=c;w<b;w++,T+=y)l.push(e+Math.sin(T)*_,t+Math.cos(T)*_,e,t);l.push(i,o,e,t)}return b*2}function JE(e,t){const r=e.shape;let n=e.points||r.points.slice();const i=t.closePointEps;if(n.length===0)return;const o=e.lineStyle,l=new se(n[0],n[1]),u=new se(n[n.length-2],n[n.length-1]),f=r.type!==Pe.POLY||r.closeStroke,h=Math.abs(l.x-u.x)<i&&Math.abs(l.y-u.y)<i;if(f){n=n.slice(),h&&(n.pop(),n.pop(),u.set(n[n.length-2],n[n.length-1]));const z=(l.x+u.x)*.5,it=(u.y+l.y)*.5;n.unshift(z,it),n.push(z,it)}const d=t.points,p=n.length/2;let c=n.length;const v=d.length/2,m=o.width/2,_=m*m,b=o.miterLimit*o.miterLimit;let y=n[0],w=n[1],T=n[2],x=n[3],E=0,I=0,A=-(w-x),O=y-T,L=0,R=0,C=Math.sqrt(A*A+O*O);A/=C,O/=C,A*=m,O*=m;const P=o.alignment,M=(1-P)*2,F=P*2;f||(o.cap===Gn.ROUND?c+=jn(y-A*(M-F)*.5,w-O*(M-F)*.5,y-A*M,w-O*M,y+A*F,w+O*F,d,!0)+2:o.cap===Gn.SQUARE&&(c+=_p(y,w,A,O,M,F,!0,d))),d.push(y-A*M,w-O*M,y+A*F,w+O*F);for(let z=1;z<p-1;++z){y=n[(z-1)*2],w=n[(z-1)*2+1],T=n[z*2],x=n[z*2+1],E=n[(z+1)*2],I=n[(z+1)*2+1],A=-(w-x),O=y-T,C=Math.sqrt(A*A+O*O),A/=C,O/=C,A*=m,O*=m,L=-(x-I),R=T-E,C=Math.sqrt(L*L+R*R),L/=C,R/=C,L*=m,R*=m;const it=T-y,W=w-x,U=T-E,k=I-x,D=it*U+W*k,j=W*U-k*it,Z=j<0;if(Math.abs(j)<.001*Math.abs(D)){d.push(T-A*M,x-O*M,T+A*F,x+O*F),D>=0&&(o.join===Sr.ROUND?c+=jn(T,x,T-A*M,x-O*M,T-L*M,x-R*M,d,!1)+4:c+=2,d.push(T-L*F,x-R*F,T+L*M,x+R*M));continue}const X=(-A+y)*(-O+x)-(-A+T)*(-O+w),G=(-L+E)*(-R+x)-(-L+T)*(-R+I),V=(it*G-U*X)/j,et=(k*X-W*G)/j,Q=(V-T)*(V-T)+(et-x)*(et-x),rt=T+(V-T)*M,ot=x+(et-x)*M,pt=T-(V-T)*F,mt=x-(et-x)*F,xt=Math.min(it*it+W*W,U*U+k*k),At=Z?M:F,oe=xt+At*At*_,qt=Q<=oe;let nt=o.join;if(nt===Sr.MITER&&Q/_>b&&(nt=Sr.BEVEL),qt)switch(nt){case Sr.MITER:{d.push(rt,ot,pt,mt);break}case Sr.BEVEL:{Z?d.push(rt,ot,T+A*F,x+O*F,rt,ot,T+L*F,x+R*F):d.push(T-A*M,x-O*M,pt,mt,T-L*M,x-R*M,pt,mt),c+=2;break}case Sr.ROUND:{Z?(d.push(rt,ot,T+A*F,x+O*F),c+=jn(T,x,T+A*F,x+O*F,T+L*F,x+R*F,d,!0)+4,d.push(rt,ot,T+L*F,x+R*F)):(d.push(T-A*M,x-O*M,pt,mt),c+=jn(T,x,T-A*M,x-O*M,T-L*M,x-R*M,d,!1)+4,d.push(T-L*M,x-R*M,pt,mt));break}}else{switch(d.push(T-A*M,x-O*M,T+A*F,x+O*F),nt){case Sr.MITER:{Z?d.push(pt,mt,pt,mt):d.push(rt,ot,rt,ot),c+=2;break}case Sr.ROUND:{Z?c+=jn(T,x,T+A*F,x+O*F,T+L*F,x+R*F,d,!0)+2:c+=jn(T,x,T-A*M,x-O*M,T-L*M,x-R*M,d,!1)+2;break}}d.push(T-L*M,x-R*M,T+L*F,x+R*F),c+=2}}y=n[(p-2)*2],w=n[(p-2)*2+1],T=n[(p-1)*2],x=n[(p-1)*2+1],A=-(w-x),O=y-T,C=Math.sqrt(A*A+O*O),A/=C,O/=C,A*=m,O*=m,d.push(T-A*M,x-O*M,T+A*F,x+O*F),f||(o.cap===Gn.ROUND?c+=jn(T-A*(M-F)*.5,x-O*(M-F)*.5,T-A*M,x-O*M,T+A*F,x+O*F,d,!1)+2:o.cap===Gn.SQUARE&&(c+=_p(T,x,A,O,M,F,!1,d)));const q=t.indices,Y=Si.epsilon*Si.epsilon;for(let z=v;z<c+v-2;++z)y=d[z*2],w=d[z*2+1],T=d[(z+1)*2],x=d[(z+1)*2+1],E=d[(z+2)*2],I=d[(z+2)*2+1],!(Math.abs(y*(x-I)+T*(I-w)+E*(w-x))<Y)&&q.push(z,z+1,z+2)}function t2(e,t){let r=0;const n=e.shape,i=e.points||n.points,o=n.type!==Pe.POLY||n.closeStroke;if(i.length===0)return;const l=t.points,u=t.indices,f=i.length/2,h=l.length/2;let d=h;for(l.push(i[0],i[1]),r=1;r<f;r++)l.push(i[r*2],i[r*2+1]),u.push(d,d+1),d++;o&&u.push(d,h)}function bp(e,t){e.lineStyle.native?t2(e,t):JE(e,t)}class Su{static curveLength(t,r,n,i,o,l){const u=t-2*n+o,f=r-2*i+l,h=2*n-2*t,d=2*i-2*r,p=4*(u*u+f*f),c=4*(u*h+f*d),v=h*h+d*d,m=2*Math.sqrt(p+c+v),_=Math.sqrt(p),b=2*p*_,y=2*Math.sqrt(v),w=c/_;return(b*m+_*c*(m-y)+(4*v*p-c*c)*Math.log((2*_+w+m)/(w+y)))/(4*b)}static curveTo(t,r,n,i,o){const l=o[o.length-2],u=o[o.length-1],f=Si._segmentsCount(Su.curveLength(l,u,t,r,n,i));let h=0,d=0;for(let p=1;p<=f;++p){const c=p/f;h=l+(t-l)*c,d=u+(r-u)*c,o.push(h+(t+(n-t)*c-h)*c,d+(r+(i-r)*c-d)*c)}}}const Au={[Pe.POLY]:mp,[Pe.CIRC]:Lo,[Pe.ELIP]:Lo,[Pe.RECT]:YE,[Pe.RREC]:ZE},xp=[],Fo=[];class Ou{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?re.EMPTY:(t=t||new re(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,r){const{a:n,b:i,c:o,d:l,tx:u,ty:f}=t,h=n*r.x+o*r.y+u,d=i*r.x+l*r.y+f;this.minX=Math.min(this.minX,h),this.maxX=Math.max(this.maxX,h),this.minY=Math.min(this.minY,d),this.maxY=Math.max(this.maxY,d)}addQuad(t){let r=this.minX,n=this.minY,i=this.maxX,o=this.maxY,l=t[0],u=t[1];r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,l=t[2],u=t[3],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,l=t[4],u=t[5],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,l=t[6],u=t[7],r=l<r?l:r,n=u<n?u:n,i=l>i?l:i,o=u>o?u:o,this.minX=r,this.minY=n,this.maxX=i,this.maxY=o}addFrame(t,r,n,i,o){this.addFrameMatrix(t.worldTransform,r,n,i,o)}addFrameMatrix(t,r,n,i,o){const l=t.a,u=t.b,f=t.c,h=t.d,d=t.tx,p=t.ty;let c=this.minX,v=this.minY,m=this.maxX,_=this.maxY,b=l*r+f*n+d,y=u*r+h*n+p;c=b<c?b:c,v=y<v?y:v,m=b>m?b:m,_=y>_?y:_,b=l*i+f*n+d,y=u*i+h*n+p,c=b<c?b:c,v=y<v?y:v,m=b>m?b:m,_=y>_?y:_,b=l*r+f*o+d,y=u*r+h*o+p,c=b<c?b:c,v=y<v?y:v,m=b>m?b:m,_=y>_?y:_,b=l*i+f*o+d,y=u*i+h*o+p,c=b<c?b:c,v=y<v?y:v,m=b>m?b:m,_=y>_?y:_,this.minX=c,this.minY=v,this.maxX=m,this.maxY=_}addVertexData(t,r,n){let i=this.minX,o=this.minY,l=this.maxX,u=this.maxY;for(let f=r;f<n;f+=2){const h=t[f],d=t[f+1];i=h<i?h:i,o=d<o?d:o,l=h>l?h:l,u=d>u?d:u}this.minX=i,this.minY=o,this.maxX=l,this.maxY=u}addVertices(t,r,n,i){this.addVerticesMatrix(t.worldTransform,r,n,i)}addVerticesMatrix(t,r,n,i,o=0,l=o){const u=t.a,f=t.b,h=t.c,d=t.d,p=t.tx,c=t.ty;let v=this.minX,m=this.minY,_=this.maxX,b=this.maxY;for(let y=n;y<i;y+=2){const w=r[y],T=r[y+1],x=u*w+h*T+p,E=d*T+f*w+c;v=Math.min(v,x-o),_=Math.max(_,x+o),m=Math.min(m,E-l),b=Math.max(b,E+l)}this.minX=v,this.minY=m,this.maxX=_,this.maxY=b}addBounds(t){const r=this.minX,n=this.minY,i=this.maxX,o=this.maxY;this.minX=t.minX<r?t.minX:r,this.minY=t.minY<n?t.minY:n,this.maxX=t.maxX>i?t.maxX:i,this.maxY=t.maxY>o?t.maxY:o}addBoundsMask(t,r){const n=t.minX>r.minX?t.minX:r.minX,i=t.minY>r.minY?t.minY:r.minY,o=t.maxX<r.maxX?t.maxX:r.maxX,l=t.maxY<r.maxY?t.maxY:r.maxY;if(n<=o&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,d=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=o>h?o:h,this.maxY=l>d?l:d}}addBoundsMatrix(t,r){this.addFrameMatrix(r,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,r){const n=t.minX>r.x?t.minX:r.x,i=t.minY>r.y?t.minY:r.y,o=t.maxX<r.x+r.width?t.maxX:r.x+r.width,l=t.maxY<r.y+r.height?t.maxY:r.y+r.height;if(n<=o&&i<=l){const u=this.minX,f=this.minY,h=this.maxX,d=this.maxY;this.minX=n<u?n:u,this.minY=i<f?i:f,this.maxX=o>h?o:h,this.maxY=l>d?l:d}}pad(t=0,r=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=r,this.maxY+=r)}addFramePad(t,r,n,i,o,l){t-=o,r-=l,n+=o,i+=l,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>n?this.maxX:n,this.minY=this.minY<r?this.minY:r,this.maxY=this.maxY>i?this.maxY:i}}class Ai extends Vs{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new su,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new Ou,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];Object.defineProperty(Ai.prototype,i,Object.getOwnPropertyDescriptor(t,i))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(t,r){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),r||(this._boundsRect||(this._boundsRect=new re),r=this._boundsRect),this._bounds.getRectangle(r)}getLocalBounds(t){t||(this._localBoundsRect||(this._localBoundsRect=new re),t=this._localBoundsRect),this._localBounds||(this._localBounds=new Ou);const r=this.transform,n=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform;const i=this._bounds,o=this._boundsID;this._bounds=this._localBounds;const l=this.getBounds(!1,t);return this.parent=n,this.transform=r,this._bounds=i,this._bounds.updateID+=this._boundsID-o,l}toGlobal(t,r,n=!1){return n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,r)}toLocal(t,r,n,i){return r&&(t=r.toGlobal(t,n,i)),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,n)}setParent(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t}removeFromParent(){var t;(t=this.parent)==null||t.removeChild(this)}setTransform(t=0,r=0,n=1,i=1,o=0,l=0,u=0,f=0,h=0){return this.position.x=t,this.position.y=r,this.scale.x=n||1,this.scale.y=i||1,this.rotation=o,this.skew.x=l,this.skew.y=u,this.pivot.x=f,this.pivot.y=h,this}destroy(t){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new e2),this.tempDisplayObjectParent}enableTempParent(){const t=this.parent;return this.parent=this._tempDisplayObjectParent,t}disableTempParent(t){this.parent=t}get x(){return this.position.x}set x(t){this.transform.position.x=t}get y(){return this.position.y}set y(t){this.transform.position.y=t}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(t){this.transform.position.copyFrom(t)}get scale(){return this.transform.scale}set scale(t){this.transform.scale.copyFrom(t)}get pivot(){return this.transform.pivot}set pivot(t){this.transform.pivot.copyFrom(t)}get skew(){return this.transform.skew}set skew(t){this.transform.skew.copyFrom(t)}get rotation(){return this.transform.rotation}set rotation(t){this.transform.rotation=t}get angle(){return this.transform.rotation*vw}set angle(t){this.transform.rotation=t*fs}get zIndex(){return this._zIndex}set zIndex(t){this._zIndex=t,this.parent&&(this.parent.sortDirty=!0)}get worldVisible(){let t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0}get mask(){return this._mask}set mask(t){if(this._mask!==t){if(this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount--,r._maskRefCount===0&&(r.renderable=!0,r.isMask=!1))}if(this._mask=t,this._mask){const r=this._mask.isMaskData?this._mask.maskObject:this._mask;r&&(r._maskRefCount===0&&(r.renderable=!1,r.isMask=!0),r._maskRefCount++)}}}}class e2 extends Ai{constructor(){super(...arguments),this.sortDirty=null}}Ai.prototype.displayObjectUpdateTransform=Ai.prototype.updateTransform;const r2=new $e;function n2(e,t){return e.zIndex===t.zIndex?e._lastSortedIndex-t._lastSortedIndex:e.zIndex-t.zIndex}const Cu=class extends Ai{constructor(){super(),this.children=[],this.sortableChildren=Cu.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(e){}addChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.addChild(e[t]);else{const t=e[0];t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.push(t),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",t,this,this.children.length-1),t.emit("added",this)}return e[0]}addChildAt(e,t){if(t<0||t>this.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const r=this.getChildIndex(e),n=this.getChildIndex(t);this.children[r]=t,this.children[n]=e,this.onChildrenChange(r<n?r:n)}getChildIndex(e){const t=this.children.indexOf(e);if(t===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return t}setChildIndex(e,t){if(t<0||t>=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const r=this.getChildIndex(e);fo(this.children,r,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t<e.length;t++)this.removeChild(e[t]);else{const t=e[0],r=this.children.indexOf(t);if(r===-1)return null;t.parent=null,t.transform._parentID=-1,fo(this.children,r,1),this._boundsID++,this.onChildrenChange(r),t.emit("removed",this),this.emit("childRemoved",t,this,r)}return e[0]}removeChildAt(e){const t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,fo(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),this.emit("childRemoved",t,this,e),t}removeChildren(e=0,t=this.children.length){const r=e,n=t,i=n-r;let o;if(i>0&&i<=n){o=this.children.splice(r,i);for(let l=0;l<o.length;++l)o[l].parent=null,o[l].transform&&(o[l].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(let l=0;l<o.length;++l)o[l].emit("removed",this),this.emit("childRemoved",o[l],this,l);return o}else if(i===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let e=!1;for(let t=0,r=this.children.length;t<r;++t){const n=this.children[t];n._lastSortedIndex=t,!e&&n.zIndex!==0&&(e=!0)}e&&this.children.length>1&&this.children.sort(n2),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e<t;++e){const r=this.children[e];r.visible&&r.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let e=0;e<this.children.length;e++){const t=this.children[e];if(!(!t.visible||!t.renderable))if(t.calculateBounds(),t._mask){const r=t._mask.isMaskData?t._mask.maskObject:t._mask;r?(r.calculateBounds(),this._bounds.addBoundsMask(t._bounds,r._bounds)):this._bounds.addBounds(t._bounds)}else t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(e,t=!1){const r=super.getLocalBounds(e);if(!t)for(let n=0,i=this.children.length;n<i;++n){const o=this.children[n];o.visible&&o.updateTransform()}return r}_calculateBounds(){}_renderWithCulling(e){const t=e.renderTexture.sourceFrame;if(!(t.width>0&&t.height>0))return;let r,n;this.cullArea?(r=this.cullArea,n=this.worldTransform):this._render!==Cu.prototype._render&&(r=this.getBounds(!0));const i=e.projection.transform;if(i&&(n?(n=r2.copyFrom(n),n.prepend(i)):n=i),r&&t.intersects(r,n))this._render(e);else if(this.cullArea)return;for(let o=0,l=this.children.length;o<l;++o){const u=this.children[o],f=u.cullable;u.cullable=f||!this.cullArea,u.render(e),u.cullable=f}}render(e){var t;if(!(!this.visible||this.worldAlpha<=0||!this.renderable))if(this._mask||(t=this.filters)!=null&&t.length)this.renderAdvanced(e);else if(this.cullable)this._renderWithCulling(e);else{this._render(e);for(let r=0,n=this.children.length;r<n;++r)this.children[r].render(e)}}renderAdvanced(e){var i,o,l;const t=this.filters,r=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let u=0;u<t.length;u++)t[u].enabled&&this._enabledFilters.push(t[u])}const n=t&&((i=this._enabledFilters)==null?void 0:i.length)||r&&(!r.isMaskData||r.enabled&&(r.autoDetect||r.type!==Ee.NONE));if(n&&e.batch.flush(),t&&((o=this._enabledFilters)!=null&&o.length)&&e.filter.push(this,this._enabledFilters),r&&e.mask.push(this,this._mask),this.cullable)this._renderWithCulling(e);else{this._render(e);for(let u=0,f=this.children.length;u<f;++u)this.children[u].render(e)}n&&e.batch.flush(),r&&e.mask.pop(this),t&&((l=this._enabledFilters)!=null&&l.length)&&e.filter.pop()}_render(e){}destroy(e){super.destroy(),this.sortDirty=!1;const t=typeof e=="boolean"?e:e==null?void 0:e.children,r=this.removeChildren(0,this.children.length);if(t)for(let n=0;n<r.length;++n)r[n].destroy(e)}get width(){return this.scale.x*this.getLocalBounds().width}set width(e){const t=this.getLocalBounds().width;t!==0?this.scale.x=e/t:this.scale.x=1,this._width=e}get height(){return this.scale.y*this.getLocalBounds().height}set height(e){const t=this.getLocalBounds().height;t!==0?this.scale.y=e/t:this.scale.y=1,this._height=e}};let Oi=Cu;Oi.defaultSortableChildren=!1,Oi.prototype.containerUpdateTransform=Oi.prototype.updateTransform,Object.defineProperties(Dt,{SORTABLE_CHILDREN:{get(){return Oi.defaultSortableChildren},set(e){Ht("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Oi.defaultSortableChildren=e}}});class Bo{constructor(t,r=null,n=null,i=null){this.points=[],this.holes=[],this.shape=t,this.lineStyle=n,this.fillStyle=r,this.matrix=i,this.type=t.type}clone(){return new Bo(this.shape,this.fillStyle,this.lineStyle,this.matrix)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}const Ci=new se,wp=class extends td{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new Ou,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let e=0;e<this.drawCalls.length;e++)this.drawCalls[e].texArray.clear(),Fo.push(this.drawCalls[e]);this.drawCalls.length=0;for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t.reset(),xp.push(t)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,r=null,n=null){const i=new Bo(e,t,r,n);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const r=new Bo(e,null,null,t),n=this.graphicsData[this.graphicsData.length-1];return r.lineStyle=n.lineStyle,n.holes.push(r),this.dirty++,this}destroy(){super.destroy();for(let e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(e){const t=this.graphicsData;for(let r=0;r<t.length;++r){const n=t[r];if(n.fillStyle.visible&&n.shape&&(n.matrix?n.matrix.applyInverse(e,Ci):Ci.copyFrom(e),n.shape.contains(Ci.x,Ci.y))){let i=!1;if(n.holes){for(let o=0;o<n.holes.length;o++)if(n.holes[o].shape.contains(Ci.x,Ci.y)){i=!0;break}}if(!i)return!0}}return!1}updateBatches(){if(!this.graphicsData.length){this.batchable=!0;return}if(!this.validateBatching())return;this.cacheDirty=this.dirty;const e=this.uvs,t=this.graphicsData;let r=null,n=null;this.batches.length>0&&(r=this.batches[this.batches.length-1],n=r.style);for(let u=this.shapeIndex;u<t.length;u++){this.shapeIndex++;const f=t[u],h=f.fillStyle,d=f.lineStyle;Au[f.type].build(f),f.matrix&&this.transformPoints(f.points,f.matrix),(h.visible||d.visible)&&this.processHoles(f.holes);for(let c=0;c<2;c++){const v=c===0?h:d;if(!v.visible)continue;const m=v.texture.baseTexture,_=this.indices.length,b=this.points.length/2;m.wrapMode=Qi.REPEAT,c===0?this.processFill(f):this.processLine(f);const y=this.points.length/2-b;y!==0&&(r&&!this._compareStyles(n,v)&&(r.end(_,b),r=null),r||(r=xp.pop()||new QE,r.begin(v,_,b),this.batches.push(r),n=v),this.addUvs(this.points,e,v.texture,b,y,v.matrix))}}const i=this.indices.length,o=this.points.length/2;if(r&&r.end(i,o),this.batches.length===0){this.batchable=!0;return}const l=o>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&l===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=l?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e<t;e++){const r=this.graphicsData[e],n=r.fillStyle,i=r.lineStyle;if(n&&!n.texture.baseTexture.valid||i&&!i.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const e=this.batches;for(let t=0,r=e.length;t<r;t++){const n=e[t];for(let i=0;i<n.size;i++){const o=n.start+i;this.indicesUint16[o]=this.indicesUint16[o]-n.attribStart}}}isBatchable(){if(this.points.length>65535*2)return!1;const e=this.batches;for(let t=0;t<e.length;t++)if(e[t].style.native)return!1;return this.points.length<wp.BATCHABLE_SIZE*2}buildDrawCalls(){let e=++Xt._globalBatch;for(let d=0;d<this.drawCalls.length;d++)this.drawCalls[d].texArray.clear(),Fo.push(this.drawCalls[d]);this.drawCalls.length=0;const t=this.colors,r=this.textureIds;let n=Fo.pop();n||(n=new eu,n.texArray=new au),n.texArray.count=0,n.start=0,n.size=0,n.type=an.TRIANGLES;let i=0,o=null,l=0,u=!1,f=an.TRIANGLES,h=0;this.drawCalls.push(n);for(let d=0;d<this.batches.length;d++){const p=this.batches[d],c=8,v=p.style,m=v.texture.baseTexture;u!==!!v.native&&(u=!!v.native,f=u?an.LINES:an.TRIANGLES,o=null,i=c,e++),o!==m&&(o=m,m._batchEnabled!==e&&(i===c&&(e++,i=0,n.size>0&&(n=Fo.pop(),n||(n=new eu,n.texArray=new au),this.drawCalls.push(n)),n.start=h,n.size=0,n.texArray.count=0,n.type=f),m.touched=1,m._batchEnabled=e,m._batchLocation=i,m.wrapMode=Qi.REPEAT,n.texArray.elements[n.texArray.count++]=m,i++)),n.size+=p.size,h+=p.size,l=m._batchLocation,this.addColors(t,v.color,v.alpha,p.attribSize,p.attribStart),this.addTextureIds(r,l,p.attribSize,p.attribStart)}Xt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,r=this.colors,n=this.textureIds,i=new ArrayBuffer(e.length*3*4),o=new Float32Array(i),l=new Uint32Array(i);let u=0;for(let f=0;f<e.length/2;f++)o[u++]=e[f*2],o[u++]=e[f*2+1],o[u++]=t[f*2],o[u++]=t[f*2+1],l[u++]=r[f],o[u++]=n[f];this._buffer.update(i),this._indexBuffer.update(this.indicesUint16)}processFill(e){e.holes.length?mp.triangulate(e,this):Au[e.type].triangulate(e,this)}processLine(e){bp(e,this);for(let t=0;t<e.holes.length;t++)bp(e.holes[t],this)}processHoles(e){for(let t=0;t<e.length;t++){const r=e[t];Au[r.type].build(r),r.matrix&&this.transformPoints(r.points,r.matrix)}}calculateBounds(){const e=this._bounds;e.clear(),e.addVertexData(this.points,0,this.points.length),e.pad(this.boundsPadding,this.boundsPadding)}transformPoints(e,t){for(let r=0;r<e.length/2;r++){const n=e[r*2],i=e[r*2+1];e[r*2]=t.a*n+t.c*i+t.tx,e[r*2+1]=t.b*n+t.d*i+t.ty}}addColors(e,t,r,n,i=0){const o=Be.shared.setValue(t).toLittleEndianNumber(),l=Be.shared.setValue(o).toPremultiplied(r);e.length=Math.max(e.length,i+n);for(let u=0;u<n;u++)e[i+u]=l}addTextureIds(e,t,r,n=0){e.length=Math.max(e.length,n+r);for(let i=0;i<r;i++)e[n+i]=t}addUvs(e,t,r,n,i,o=null){let l=0;const u=t.length,f=r.frame;for(;l<i;){let d=e[(n+l)*2],p=e[(n+l)*2+1];if(o){const c=o.a*d+o.c*p+o.tx;p=o.b*d+o.d*p+o.ty,d=c}l++,t.push(d/f.width,p/f.height)}const h=r.baseTexture;(f.width<h.width||f.height<h.height)&&this.adjustUvs(t,r,u,i)}adjustUvs(e,t,r,n){const i=t.baseTexture,o=1e-6,l=r+n*2,u=t.frame,f=u.width/i.width,h=u.height/i.height;let d=u.x/u.width,p=u.y/u.height,c=Math.floor(e[r]+o),v=Math.floor(e[r+1]+o);for(let m=r+2;m<l;m+=2)c=Math.min(c,Math.floor(e[m]+o)),v=Math.min(v,Math.floor(e[m+1]+o));d-=c,p-=v;for(let m=r;m<l;m+=2)e[m]=(e[m]+d)*f,e[m+1]=(e[m+1]+p)*h}};let Tp=wp;Tp.BATCHABLE_SIZE=100;class Do{constructor(){this.color=16777215,this.alpha=1,this.texture=Vt.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const t=new Do;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t}reset(){this.color=16777215,this.alpha=1,this.texture=Vt.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class Ru extends Do{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=Gn.BUTT,this.join=Sr.MITER,this.miterLimit=10}clone(){const t=new Ru;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1}}const Iu={},Uo=class extends Oi{constructor(e=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new Do,this._lineStyle=new Ru,this._matrix=null,this._holeMode=!1,this.state=ho.for2d(),this._geometry=e||new Tp,this._geometry.refCount++,this._transformID=-1,this._tintColor=new Be(16777215),this.blendMode=Rt.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new Uo(this._geometry)}set blendMode(e){this.state.blendMode=e}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(e){this._tintColor.setValue(e)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(e=null,t=0,r,n=.5,i=!1){return typeof e=="number"&&(e={width:e,color:t,alpha:r,alignment:n,native:i}),this.lineTextureStyle(e)}lineTextureStyle(e){const t={width:0,texture:Vt.WHITE,color:e!=null&&e.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:Gn.BUTT,join:Sr.MITER,miterLimit:10};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.width>0&&e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:r},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new cs,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new cs,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const r=this.currentPath.points,n=r[r.length-2],i=r[r.length-1];return(n!==e||i!==t)&&r.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,r,n){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),Su.curveTo(e,t,r,n,i),this}bezierCurveTo(e,t,r,n,i,o){return this._initCurve(),Eu.curveTo(e,t,r,n,i,o,this.currentPath.points),this}arcTo(e,t,r,n,i){this._initCurve(e,t);const o=this.currentPath.points,l=yp.curveTo(e,t,r,n,i,o);if(l){const{cx:u,cy:f,radius:h,startAngle:d,endAngle:p,anticlockwise:c}=l;this.arc(u,f,h,d,p,c)}return this}arc(e,t,r,n,i,o=!1){if(n===i)return this;if(!o&&i<=n?i+=vo:o&&n<=i&&(n+=vo),i-n===0)return this;const u=e+Math.cos(n)*r,f=t+Math.sin(n)*r,h=this._geometry.closePointEps;let d=this.currentPath?this.currentPath.points:null;if(d){const p=Math.abs(d[d.length-2]-u),c=Math.abs(d[d.length-1]-f);p<h&&c<h||d.push(u,f)}else this.moveTo(u,f),d=this.currentPath.points;return yp.arc(u,f,e,t,r,n,i,o,d),this}beginFill(e=0,t){return this.beginTextureFill({texture:Vt.WHITE,color:e,alpha:t})}normalizeColor(e){const t=Be.shared.setValue(e.color??0);e.color=t.toNumber(),e.alpha??(e.alpha=t.alpha)}beginTextureFill(e){const t={texture:Vt.WHITE,color:16777215,matrix:null};e=Object.assign(t,e),this.normalizeColor(e),this.currentPath&&this.startPoly();const r=e.alpha>0;return r?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:r},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,r,n){return this.drawShape(new re(e,t,r,n))}drawRoundedRect(e,t,r,n,i){return this.drawShape(new nu(e,t,r,n,i))}drawCircle(e,t,r){return this.drawShape(new ru(e,t,r))}drawEllipse(e,t,r,n){return this.drawShape(new gw(e,t,r,n))}drawPolygon(...e){let t,r=!0;const n=e[0];n.points?(r=n.closeStroke,t=n.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new cs(t);return i.closeStroke=r,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Pe.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,r=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=r,this.vertexData=new Float32Array(e.points);for(let n=0;n<r;n++){const i=e.batches[n],o=i.style.color,l=new Float32Array(this.vertexData.buffer,i.attribStart*4*2,i.attribSize*2),u=new Float32Array(e.uvsFloat32.buffer,i.attribStart*4*2,i.attribSize*2),f=new Uint16Array(e.indicesUint16.buffer,i.start*2,i.size),h={vertexData:l,blendMode:t,indices:f,uvs:u,_batchRGB:Be.shared.setValue(o).toRgbArray(),_tintRGB:o,_texture:i.style.texture,alpha:i.style.alpha,worldAlpha:1};this.batches[n]=h}}_renderBatched(e){if(this.batches.length){e.batch.setObjectRenderer(e.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let t=0,r=this.batches.length;t<r;t++){const n=this.batches[t];n.worldAlpha=this.worldAlpha*n.alpha,e.plugins[this.pluginName].render(n)}}}_renderDirect(e){const t=this._resolveDirectShader(e),r=this._geometry,n=this.worldAlpha,i=t.uniforms,o=r.drawCalls;i.translationMatrix=this.transform.worldTransform,Be.shared.setValue(this._tintColor).premultiply(n).toArray(i.tint),e.shader.bind(t),e.geometry.bind(r,t),e.state.set(this.state);for(let l=0,u=o.length;l<u;l++)this._renderDrawCallDirect(e,r.drawCalls[l])}_renderDrawCallDirect(e,t){const{texArray:r,type:n,size:i,start:o}=t,l=r.count;for(let u=0;u<l;u++)e.texture.bind(r.elements[u],u);e.geometry.draw(n,i,o)}_resolveDirectShader(e){let t=this.shader;const r=this.pluginName;if(!t){if(!Iu[r]){const{maxTextures:n}=e.plugins[r],i=new Int32Array(n);for(let u=0;u<n;u++)i[u]=u;const o={tint:new Float32Array([1,1,1,1]),translationMatrix:new $e,default:br.from({uSamplers:i},!0)},l=e.plugins[r]._shader.program;Iu[r]=new ds(l,o)}t=Iu[r]}return t}_calculateBounds(){this.finishPoly();const e=this._geometry;if(!e.graphicsData.length)return;const{minX:t,minY:r,maxX:n,maxY:i}=e.bounds;this._bounds.addFrame(this.transform,t,r,n,i)}containsPoint(e){return this.worldTransform.applyInverse(e,Uo._TEMP_POINT),this._geometry.containsPoint(Uo._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let e=0;e<this.batches.length;e++){const t=this.batches[e];t._tintRGB=Be.shared.setValue(this._tintColor).multiply(t._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const e=this.transform._worldID;if(this._transformID===e)return;this._transformID=e;const t=this.transform.worldTransform,r=t.a,n=t.b,i=t.c,o=t.d,l=t.tx,u=t.ty,f=this._geometry.points,h=this.vertexData;let d=0;for(let p=0;p<f.length;p+=2){const c=f[p],v=f[p+1];h[d++]=r*c+i*v+l,h[d++]=o*v+n*c+u}}closePath(){const e=this.currentPath;return e&&(e.closeStroke=!0,this.finishPoly()),this}setMatrix(e){return this._matrix=e,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(e){this._geometry.refCount--,this._geometry.refCount===0&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,super.destroy(e)}};let Pu=Uo;Pu.curves=Si,Pu._TEMP_POINT=new se;var i2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Nu={},s2={get exports(){return Nu},set exports(e){Nu=e}};/*!
1924
1924
  * d-path-parser - v1.0.0
1925
1925
  * by Massimo Artizzu (MaxArt2501)
1926
1926
  *
@@ -1928,20 +1928,20 @@ void main() {
1928
1928
  *
1929
1929
  * Licensed under the MIT License
1930
1930
  * See LICENSE for details
1931
- */(function(e,t){(function(r,n){e.exports=n()})(i2,function(){return function(n){for(var i={command:/\s*([achlmqstvz])/gi,number:/\s*([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/gi,comma:/\s*(?:(,)|\s)/g,flag:/\s*([01])/g},o={number:function(_){return+v("number",_)},"coordinate pair":function(_){var b=v("number",_);if(b===null&&!_)return null;v("comma");var y=v("number",!0);return{x:+b,y:+y}},"arc definition":function(_){var b=o["coordinate pair"](_);if(!b&&!_)return null;v("comma");var y=+v("number",!0);v("comma",!0);var w=!!+v("flag",!0);v("comma");var T=!!+v("flag",!0);v("comma");var x=o["coordinate pair"](!0);return{radii:b,rotation:y,large:w,clockwise:T,end:x}}},l=0,u=[];l<n.length;){var f=v("command"),h=f.toUpperCase(),d=f!==h,p;switch(h){case"M":p=m("coordinate pair").map(function(_,b){return b===1&&(f=d?"l":"L"),c({end:_})});break;case"L":case"T":p=m("coordinate pair").map(function(_){return c({end:_})});break;case"C":if(p=m("coordinate pair"),p.length%3)throw Error("Expected coordinate pair triplet at position "+l);p=p.reduce(function(_,b,y){var w=y%3;if(!w)_.push(c({cp1:b}));else{var T=_[_.length-1];T[w===1?"cp2":"end"]=b}return _},[]);break;case"Q":case"S":if(p=m("coordinate pair"),p.length&1)throw Error("Expected coordinate pair couple at position "+l);p=p.reduce(function(_,b,y){var w=y&1;if(!w)_.push(c({cp:b}));else{var T=_[_.length-1];T.end=b}return _},[]);break;case"H":case"V":p=m("number").map(function(_){return c({value:_})});break;case"A":p=m("arc definition").map(c);break;case"Z":p=[{code:"Z"}];break}u.push.apply(u,p)}return u;function c(_){return _.code=f,_.relative=d,_}function v(_,b){i[_].lastIndex=l;var y=i[_].exec(n);if(!y||y.index!==l){if(!b)return null;throw Error("Expected "+_+" at position "+l)}return l=i[_].lastIndex,y[1]}function m(_){for(var b=[],y,w=!0;y=o[_](w);)b.push(y),w=!!v("comma");return b}}})})(s2);const o2=/^\s+/,a2=/\s+$/;function Tt(e,t){if(e=e||"",t=t||{},e instanceof Tt)return e;if(!(this instanceof Tt))return new Tt(e,t);var r=l2(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}Tt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t,r,n,i,o,l;return t=e.r/255,r=e.g/255,n=e.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),.2126*i+.7152*o+.0722*l},setAlpha:function(e){return this._a=Rp(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Sp(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Sp(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),n=Math.round(e.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=Ep(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Ep(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),n=Math.round(e.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return Ap(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return h2(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(fe(this._r,255)*100)+"%",g:Math.round(fe(this._g,255)*100)+"%",b:Math.round(fe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(fe(this._r,255)*100)+"%, "+Math.round(fe(this._g,255)*100)+"%, "+Math.round(fe(this._b,255)*100)+"%)":"rgba("+Math.round(fe(this._r,255)*100)+"%, "+Math.round(fe(this._g,255)*100)+"%, "+Math.round(fe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:E2[Ap(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+Op(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=Tt(e);r="#"+Op(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0,i=!t&&n&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Tt(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(g2,arguments)},brighten:function(){return this._applyModification(m2,arguments)},darken:function(){return this._applyModification(y2,arguments)},desaturate:function(){return this._applyModification(d2,arguments)},saturate:function(){return this._applyModification(p2,arguments)},greyscale:function(){return this._applyModification(v2,arguments)},spin:function(){return this._applyModification(_2,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(w2,arguments)},complement:function(){return this._applyCombination(b2,arguments)},monochromatic:function(){return this._applyCombination(T2,arguments)},splitcomplement:function(){return this._applyCombination(x2,arguments)},triad:function(){return this._applyCombination(Cp,[3])},tetrad:function(){return this._applyCombination(Cp,[4])}},Tt.fromRatio=function(e,t){if(typeof e=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=_s(e[n]));e=r}return Tt(e,t)};function l2(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,l=!1,u=!1;return typeof e=="string"&&(e=C2(e)),typeof e=="object"&&(Kr(e.r)&&Kr(e.g)&&Kr(e.b)?(t=u2(e.r,e.g,e.b),l=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Kr(e.h)&&Kr(e.s)&&Kr(e.v)?(n=_s(e.s),i=_s(e.v),t=c2(e.h,n,i),l=!0,u="hsv"):Kr(e.h)&&Kr(e.s)&&Kr(e.l)&&(n=_s(e.s),o=_s(e.l),t=f2(e.h,n,o),l=!0,u="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Rp(r),{ok:l,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function u2(e,t,r){return{r:fe(e,255)*255,g:fe(t,255)*255,b:fe(r,255)*255}}function Ep(e,t,r){e=fe(e,255),t=fe(t,255),r=fe(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,l,u=(n+i)/2;if(n==i)o=l=0;else{var f=n-i;switch(l=u>.5?f/(2-n-i):f/(n+i),n){case e:o=(t-r)/f+(t<r?6:0);break;case t:o=(r-e)/f+2;break;case r:o=(e-t)/f+4;break}o/=6}return{h:o,s:l,l:u}}function f2(e,t,r){var n,i,o;e=fe(e,360),t=fe(t,100),r=fe(r,100);function l(h,d,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?h+(d-h)*6*p:p<1/2?d:p<2/3?h+(d-h)*(2/3-p)*6:h}if(t===0)n=i=o=r;else{var u=r<.5?r*(1+t):r+t-r*t,f=2*r-u;n=l(f,u,e+1/3),i=l(f,u,e),o=l(f,u,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function Sp(e,t,r){e=fe(e,255),t=fe(t,255),r=fe(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,l,u=n,f=n-i;if(l=n===0?0:f/n,n==i)o=0;else{switch(n){case e:o=(t-r)/f+(t<r?6:0);break;case t:o=(r-e)/f+2;break;case r:o=(e-t)/f+4;break}o/=6}return{h:o,s:l,v:u}}function c2(e,t,r){e=fe(e,360)*6,t=fe(t,100),r=fe(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),l=r*(1-i*t),u=r*(1-(1-i)*t),f=n%6,h=[r,l,o,o,u,r][f],d=[u,r,r,l,o,o][f],p=[o,o,u,r,r,l][f];return{r:h*255,g:d*255,b:p*255}}function Ap(e,t,r,n){var i=[Ar(Math.round(e).toString(16)),Ar(Math.round(t).toString(16)),Ar(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function h2(e,t,r,n,i){var o=[Ar(Math.round(e).toString(16)),Ar(Math.round(t).toString(16)),Ar(Math.round(r).toString(16)),Ar(Ip(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Op(e,t,r,n){var i=[Ar(Ip(n)),Ar(Math.round(e).toString(16)),Ar(Math.round(t).toString(16)),Ar(Math.round(r).toString(16))];return i.join("")}Tt.equals=function(e,t){return!e||!t?!1:Tt(e).toRgbString()==Tt(t).toRgbString()},Tt.random=function(){return Tt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function d2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.s-=t/100,r.s=$o(r.s),Tt(r)}function p2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.s+=t/100,r.s=$o(r.s),Tt(r)}function v2(e){return Tt(e).desaturate(100)}function g2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.l+=t/100,r.l=$o(r.l),Tt(r)}function m2(e,t){t=t===0?0:t||10;var r=Tt(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),Tt(r)}function y2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.l-=t/100,r.l=$o(r.l),Tt(r)}function _2(e,t){var r=Tt(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,Tt(r)}function b2(e){var t=Tt(e).toHsl();return t.h=(t.h+180)%360,Tt(t)}function Cp(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Tt(e).toHsl(),n=[Tt(e)],i=360/t,o=1;o<t;o++)n.push(Tt({h:(r.h+o*i)%360,s:r.s,l:r.l}));return n}function x2(e){var t=Tt(e).toHsl(),r=t.h;return[Tt(e),Tt({h:(r+72)%360,s:t.s,l:t.l}),Tt({h:(r+216)%360,s:t.s,l:t.l})]}function w2(e,t,r){t=t||6,r=r||30;var n=Tt(e).toHsl(),i=360/r,o=[Tt(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(Tt(n));return o}function T2(e,t){t=t||6;for(var r=Tt(e).toHsv(),n=r.h,i=r.s,o=r.v,l=[],u=1/t;t--;)l.push(Tt({h:n,s:i,v:o})),o=(o+u)%1;return l}Tt.mix=function(e,t,r){r=r===0?0:r||50;var n=Tt(e).toRgb(),i=Tt(t).toRgb(),o=r/100,l={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return Tt(l)},Tt.readability=function(e,t){var r=Tt(e),n=Tt(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Tt.isReadable=function(e,t,r){var n=Tt.readability(e,t),i,o;switch(o=!1,i=R2(r),i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o},Tt.mostReadable=function(e,t,r){var n=null,i=0,o,l,u,f;r=r||{},l=r.includeFallbackColors,u=r.level,f=r.size;for(var h=0;h<t.length;h++)o=Tt.readability(e,t[h]),o>i&&(i=o,n=Tt(t[h]));return Tt.isReadable(e,n,{level:u,size:f})||!l?n:(r.includeFallbackColors=!1,Tt.mostReadable(e,["#fff","#000"],r))};var Mu=Tt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E2=Tt.hexNames=S2(Mu);function S2(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Rp(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fe(e,t){A2(e)&&(e="100%");var r=O2(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function $o(e){return Math.min(1,Math.max(0,e))}function Je(e){return parseInt(e,16)}function A2(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function O2(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ar(e){return e.length==1?"0"+e:""+e}function _s(e){return e<=1&&(e=e*100+"%"),e}function Ip(e){return Math.round(parseFloat(e)*255).toString(16)}function Pp(e){return Je(e)/255}var Or=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Kr(e){return!!Or.CSS_UNIT.exec(e)}function C2(e){e=e.replace(o2,"").replace(a2,"").toLowerCase();var t=!1;if(Mu[e])e=Mu[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Or.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Or.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Or.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Or.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Or.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Or.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Or.hex8.exec(e))?{r:Je(r[1]),g:Je(r[2]),b:Je(r[3]),a:Pp(r[4]),format:t?"name":"hex8"}:(r=Or.hex6.exec(e))?{r:Je(r[1]),g:Je(r[2]),b:Je(r[3]),format:t?"name":"hex"}:(r=Or.hex4.exec(e))?{r:Je(r[1]+""+r[1]),g:Je(r[2]+""+r[2]),b:Je(r[3]+""+r[3]),a:Pp(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Or.hex3.exec(e))?{r:Je(r[1]+""+r[1]),g:Je(r[2]+""+r[2]),b:Je(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function R2(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var I2=function(){function e(t,r){var n=[],i=!0,o=!1,l=void 0;try{for(var u=t[Symbol.iterator](),f;!(i=(f=u.next()).done)&&(n.push(f.value),!(r&&n.length===r));i=!0);}catch(h){o=!0,l=h}finally{try{!i&&u.return&&u.return()}finally{if(o)throw l}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),bs=Math.PI*2,ku=function(t,r,n,i,o,l,u){var f=t.x,h=t.y;f*=r,h*=n;var d=i*f-o*h,p=o*f+i*h;return{x:d+l,y:p+u}},P2=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),o=Math.sin(t),l=Math.cos(t+r),u=Math.sin(t+r);return[{x:i-o*n,y:o+i*n},{x:l+u*n,y:u-l*n},{x:l,y:u}]},Np=function(t,r,n,i){var o=t*i-r*n<0?-1:1,l=t*n+r*i;return l>1&&(l=1),l<-1&&(l=-1),o*Math.acos(l)},N2=function(t,r,n,i,o,l,u,f,h,d,p,c){var v=Math.pow(o,2),m=Math.pow(l,2),_=Math.pow(p,2),b=Math.pow(c,2),y=v*m-v*b-m*_;y<0&&(y=0),y/=v*b+m*_,y=Math.sqrt(y)*(u===f?-1:1);var w=y*o/l*c,T=y*-l/o*p,x=d*w-h*T+(t+n)/2,E=h*w+d*T+(r+i)/2,I=(p-w)/o,A=(c-T)/l,O=(-p-w)/o,L=(-c-T)/l,R=Np(1,0,I,A),C=Np(I,A,O,L);return f===0&&C>0&&(C-=bs),f===1&&C<0&&(C+=bs),[x,E,R,C]},Mp=function(t){var r=t.px,n=t.py,i=t.cx,o=t.cy,l=t.rx,u=t.ry,f=t.xAxisRotation,h=f===void 0?0:f,d=t.largeArcFlag,p=d===void 0?0:d,c=t.sweepFlag,v=c===void 0?0:c,m=[];if(l===0||u===0)return[];var _=Math.sin(h*bs/360),b=Math.cos(h*bs/360),y=b*(r-i)/2+_*(n-o)/2,w=-_*(r-i)/2+b*(n-o)/2;if(y===0&&w===0)return[];l=Math.abs(l),u=Math.abs(u);var T=Math.pow(y,2)/Math.pow(l,2)+Math.pow(w,2)/Math.pow(u,2);T>1&&(l*=Math.sqrt(T),u*=Math.sqrt(T));var x=N2(r,n,i,o,l,u,p,v,_,b,y,w),E=I2(x,4),I=E[0],A=E[1],O=E[2],L=E[3],R=Math.abs(L)/(bs/4);Math.abs(1-R)<1e-7&&(R=1);var C=Math.max(Math.ceil(R),1);L/=C;for(var P=0;P<C;P++)m.push(P2(O,L)),O+=L;return m.map(function(M){var F=ku(M[0],l,u,b,_,I,A),q=F.x,K=F.y,z=ku(M[1],l,u,b,_,I,A),it=z.x,W=z.y,U=ku(M[2],l,u,b,_,I,A),k=U.x,D=U.y;return{x1:q,y1:K,x2:it,y2:W,x:k,y:D}})};class M2 extends Pu{constructor(t){super(),this.lineColor=null,t&&this.drawSVG(t)}drawSVG(t){if(typeof t=="string"){const r=document.createElement("div");r.innerHTML=t.trim(),t=r.querySelector("svg")}if(!t)throw new Error("Missing <svg> element in SVG constructor");return this._svgFill(t),this._svgChildren(t.children),this}_svgChildren(t,r=!1){for(let n=0;n<t.length;n++){const i=t[n];switch(this._svgFill(i,r),i.nodeName.toLowerCase()){case"path":{this._svgPath(i);break}case"circle":case"ellipse":{this._svgCircle(i);break}case"rect":{this._svgRect(i);break}case"polygon":{this._svgPoly(i,!0);break}case"polyline":{this._svgPoly(i);break}case"g":break;default:{console.info(`[PIXI.SVG] <${i.nodeName}> elements unsupported`);break}}this._svgChildren(i.children,!0)}}_hexToUint(t){if(t[0]==="#")return t=t.substr(1),t.length===3&&(t=t.replace(/([a-f0-9])/ig,"$1$1")),parseInt(t,16);const{r,g:n,b:i}=Tt(t).toRgb();return(r<<16)+(n<<8)+i}_svgCircle(t){let r="r",n="r";const i=t.nodeName==="elipse";i&&(r+="x",n+="y");const o=parseFloat(t.getAttribute(n)),l=parseFloat(t.getAttribute(r)),u=t.getAttribute("cx"),f=t.getAttribute("cy");let h=0,d=0;u!==null&&(h=parseFloat(u)),f!==null&&(d=parseFloat(f)),i?this.drawEllipse(h,d,o,l):this.drawCircle(h,d,o)}_svgRect(t){const r=parseFloat(t.getAttribute("x")),n=parseFloat(t.getAttribute("y")),i=parseFloat(t.getAttribute("width")),o=parseFloat(t.getAttribute("height")),l=parseFloat(t.getAttribute("rx"));l?this.drawRoundedRect(r,n,i,o,l):this.drawRect(r,n,i,o)}_convertStyleName(t){return t.trim().replace("-width","Width").replace(/.*-(line)?/,"")}_svgStyle(t){const r=t.getAttribute("style"),n=t.getAttribute("opacity"),i={fill:t.getAttribute("fill"),opacity:n||t.getAttribute("fill-opacity"),stroke:t.getAttribute("stroke"),strokeOpacity:n||t.getAttribute("stroke-opacity"),strokeWidth:t.getAttribute("stroke-width"),cap:t.getAttribute("stroke-linecap"),join:t.getAttribute("stroke-linejoin"),miterLimit:t.getAttribute("stroke-miterlimit")};return r!==null&&r.split(";").forEach(o=>{const[l,u]=o.split(":");if(l){const f=this._convertStyleName(l);i[f]||(i[f]=u.trim())}}),i}_svgPoly(t,r){const n=t.getAttribute("points").split(/[ ,]/g).map(i=>parseInt(i,10));this.drawPolygon(n),r&&this.closePath()}_svgFill(t,r){const{fill:n,opacity:i,stroke:o,strokeOpacity:l,strokeWidth:u,cap:f,join:h,miterLimit:d}=this._svgStyle(t),c=u!==null?parseFloat(u):o!==null?1:0,v=o!==null?this._hexToUint(o):this.lineColor;n?n==="none"?this.beginFill(0,0):this.beginFill(this._hexToUint(n),i!==null?parseFloat(i):1):r||this.beginFill(0),this.lineStyle({width:o===null&&u===null&&r?this.line.width:c,alpha:l===null?this.line.alpha:parseFloat(l),color:o===null&&r?this.line.color:v,cap:f===null&&r?this.line.cap:f,join:h===null&&r?this.line.join:h,miterLimit:d===null&&r?this.line.miterLimit:parseFloat(d)}),t.getAttribute("fill-rule")&&console.info('[PIXI.SVG] "fill-rule" attribute is not supported')}_svgPath(t){const r=t.getAttribute("d");let n=0,i=0;const o=Nu(r.trim());for(let l=0;l<o.length;l++){const u=o[l];switch(u.code){case"m":{this.moveTo(n+=u.end.x,i+=u.end.y);break}case"M":{this.moveTo(n=u.end.x,i=u.end.y);break}case"H":{this.lineTo(n=u.value,i);break}case"h":{this.lineTo(n+=u.value,i);break}case"V":{this.lineTo(n,i=u.value);break}case"v":{this.lineTo(n,i+=u.value);break}case"Z":{this.closePath();break}case"L":{this.lineTo(n=u.end.x,i=u.end.y);break}case"l":{this.lineTo(n+=u.end.x,i+=u.end.y);break}case"C":{this.bezierCurveTo(u.cp1.x,u.cp1.y,u.cp2.x,u.cp2.y,n=u.end.x,i=u.end.y);break}case"c":{const f=n,h=i;this.bezierCurveTo(f+u.cp1.x,h+u.cp1.y,f+u.cp2.x,h+u.cp2.y,n+=u.end.x,i+=u.end.y);break}case"s":case"q":{const f=n,h=i;this.quadraticCurveTo(f+u.cp.x,h+u.cp.y,n+=u.end.x,i+=u.end.y);break}case"S":case"Q":{this.quadraticCurveTo(u.cp.x,u.cp.y,n=u.end.x,i=u.end.y);break}case"a":{Mp({px:n,py:i,cx:n+=u.end.x,cy:i+=u.end.y,rx:u.radii.x,ry:u.radii.y,xAxisRotation:u.rotation,largeArcFlag:u.large?1:0,sweepFlag:u.clockwise?1:0}).forEach(({x1:f,y1:h,x2:d,y2:p,x:c,y:v})=>this.bezierCurveTo(f,h,d,p,c,v));break}case"A":{Mp({px:n,py:i,cx:n=u.end.x,cy:i=u.end.y,rx:u.radii.x,ry:u.radii.y,xAxisRotation:u.rotation,largeArcFlag:u.large?1:0,sweepFlag:u.clockwise?1:0}).forEach(({x1:f,y1:h,x2:d,y2:p,x:c,y:v})=>this.bezierCurveTo(f,h,d,p,c,v));break}default:{console.info("[PIXI.SVG] Draw command not supported:",u.code,u);break}}}}}var Go={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},k2=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function L2(e){return e===10||e===13||e===8232||e===8233||e===32||e===9||e===11||e===12||e===160||e>=5760&&k2.indexOf(e)>=0}function F2(e){switch(e|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}function B2(e){return(e|32)===97}function Ri(e){return e>=48&&e<=57}function D2(e){return e>=48&&e<=57||e===43||e===45||e===46}function U2(e){this.index=0,this.path=e,this.max=e.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function jo(e){for(;e.index<e.max&&L2(e.path.charCodeAt(e.index));)e.index++}function $2(e){var t=e.path.charCodeAt(e.index);if(t===48){e.param=0,e.index++;return}if(t===49){e.param=1,e.index++;return}e.err="SvgPath: arc flag can be 0 or 1 only (at pos "+e.index+")"}function G2(e){var t=e.index,r=t,n=e.max,i=!1,o=!1,l=!1,u=!1,f;if(r>=n){e.err="SvgPath: missed param (at pos "+r+")";return}if(f=e.path.charCodeAt(r),(f===43||f===45)&&(r++,f=r<n?e.path.charCodeAt(r):0),!Ri(f)&&f!==46){e.err="SvgPath: param should start with 0..9 or `.` (at pos "+r+")";return}if(f!==46){if(i=f===48,r++,f=r<n?e.path.charCodeAt(r):0,i&&r<n&&f&&Ri(f)){e.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+t+")";return}for(;r<n&&Ri(e.path.charCodeAt(r));)r++,o=!0;f=r<n?e.path.charCodeAt(r):0}if(f===46){for(u=!0,r++;Ri(e.path.charCodeAt(r));)r++,l=!0;f=r<n?e.path.charCodeAt(r):0}if(f===101||f===69){if(u&&!o&&!l){e.err="SvgPath: invalid float exponent (at pos "+r+")";return}if(r++,f=r<n?e.path.charCodeAt(r):0,(f===43||f===45)&&r++,r<n&&Ri(e.path.charCodeAt(r)))for(;r<n&&Ri(e.path.charCodeAt(r));)r++;else{e.err="SvgPath: invalid float exponent (at pos "+r+")";return}}e.index=r,e.param=parseFloat(e.path.slice(t,r))+0}function Lu(e){var t,r;t=e.path[e.segmentStart],r=t.toLowerCase();var n=e.data;if(r==="m"&&n.length>2&&(e.result.push([t,n[0],n[1]]),n=n.slice(2),r="l",t=t==="m"?"l":"L"),r==="r")e.result.push([t].concat(n));else for(;n.length>=Go[r]&&(e.result.push([t].concat(n.splice(0,Go[r]))),!!Go[r]););}function j2(e){var t=e.max,r,n,i,o,l;if(e.segmentStart=e.index,r=e.path.charCodeAt(e.index),n=B2(r),!F2(r)){e.err="SvgPath: bad command "+e.path[e.index]+" (at pos "+e.index+")";return}if(o=Go[e.path[e.index].toLowerCase()],e.index++,jo(e),e.data=[],!o){Lu(e);return}for(i=!1;;){for(l=o;l>0;l--){if(n&&(l===3||l===4)?$2(e):G2(e),e.err.length){Lu(e);return}e.data.push(e.param),jo(e),i=!1,e.index<t&&e.path.charCodeAt(e.index)===44&&(e.index++,jo(e),i=!0)}if(!i&&(e.index>=e.max||!D2(e.path.charCodeAt(e.index))))break}Lu(e)}var q2=function(t){var r=new U2(t),n=r.max;for(jo(r);r.index<n&&!r.err.length;)j2(r);return r.result.length&&("mM".indexOf(r.result[0][0])<0?(r.err="SvgPath: string should start with `M` or `m`",r.result=[]):r.result[0][0]="M"),{err:r.err,segments:r.result}};function z2(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function Cr(){if(!(this instanceof Cr))return new Cr;this.queue=[],this.cache=null}Cr.prototype.matrix=function(e){return e[0]===1&&e[1]===0&&e[2]===0&&e[3]===1&&e[4]===0&&e[5]===0?this:(this.cache=null,this.queue.push(e),this)},Cr.prototype.translate=function(e,t){return(e!==0||t!==0)&&(this.cache=null,this.queue.push([1,0,0,1,e,t])),this},Cr.prototype.scale=function(e,t){return(e!==1||t!==1)&&(this.cache=null,this.queue.push([e,0,0,t,0,0])),this},Cr.prototype.rotate=function(e,t,r){var n,i,o;return e!==0&&(this.translate(t,r),n=e*Math.PI/180,i=Math.cos(n),o=Math.sin(n),this.queue.push([i,o,-o,i,0,0]),this.cache=null,this.translate(-t,-r)),this},Cr.prototype.skewX=function(e){return e!==0&&(this.cache=null,this.queue.push([1,0,Math.tan(e*Math.PI/180),1,0,0])),this},Cr.prototype.skewY=function(e){return e!==0&&(this.cache=null,this.queue.push([1,Math.tan(e*Math.PI/180),0,1,0,0])),this},Cr.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],this.queue.length===1)return this.cache;for(var e=1;e<this.queue.length;e++)this.cache=z2(this.cache,this.queue[e]);return this.cache},Cr.prototype.calc=function(e,t,r){var n;return this.queue.length?(this.cache||(this.cache=this.toArray()),n=this.cache,[e*n[0]+t*n[2]+(r?0:n[4]),e*n[1]+t*n[3]+(r?0:n[5])]):[e,t]};var kp=Cr,H2=kp,V2={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},W2=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,X2=/[\s,]+/,K2=function(t){var r=new H2,n,i;return t.split(W2).forEach(function(o){if(o.length){if(typeof V2[o]<"u"){n=o;return}switch(i=o.split(X2).map(function(l){return+l||0}),n){case"matrix":i.length===6&&r.matrix(i);return;case"scale":i.length===1?r.scale(i[0],i[0]):i.length===2&&r.scale(i[0],i[1]);return;case"rotate":i.length===1?r.rotate(i[0],0,0):i.length===3&&r.rotate(i[0],i[1],i[2]);return;case"translate":i.length===1?r.translate(i[0],0):i.length===2&&r.translate(i[0],i[1]);return;case"skewX":i.length===1&&r.skewX(i[0]);return;case"skewY":i.length===1&&r.skewY(i[0]);return}}}),r},xs=Math.PI*2;function Lp(e,t,r,n){var i=e*n-t*r<0?-1:1,o=e*r+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function Y2(e,t,r,n,i,o,l,u,f,h){var d=h*(e-r)/2+f*(t-n)/2,p=-f*(e-r)/2+h*(t-n)/2,c=l*l,v=u*u,m=d*d,_=p*p,b=c*v-c*_-v*m;b<0&&(b=0),b/=c*_+v*m,b=Math.sqrt(b)*(i===o?-1:1);var y=b*l/u*p,w=b*-u/l*d,T=h*y-f*w+(e+r)/2,x=f*y+h*w+(t+n)/2,E=(d-y)/l,I=(p-w)/u,A=(-d-y)/l,O=(-p-w)/u,L=Lp(1,0,E,I),R=Lp(E,I,A,O);return o===0&&R>0&&(R-=xs),o===1&&R<0&&(R+=xs),[T,x,L,R]}function Z2(e,t){var r=1.3333333333333333*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),o=Math.cos(e+t),l=Math.sin(e+t);return[n,i,n-i*r,i+n*r,o+l*r,l-o*r,o,l]}var Q2=function(t,r,n,i,o,l,u,f,h){var d=Math.sin(h*xs/360),p=Math.cos(h*xs/360),c=p*(t-n)/2+d*(r-i)/2,v=-d*(t-n)/2+p*(r-i)/2;if(c===0&&v===0)return[];if(u===0||f===0)return[];u=Math.abs(u),f=Math.abs(f);var m=c*c/(u*u)+v*v/(f*f);m>1&&(u*=Math.sqrt(m),f*=Math.sqrt(m));var _=Y2(t,r,n,i,o,l,u,f,d,p),b=[],y=_[2],w=_[3],T=Math.max(Math.ceil(Math.abs(w)/(xs/4)),1);w/=T;for(var x=0;x<T;x++)b.push(Z2(y,w)),y+=w;return b.map(function(E){for(var I=0;I<E.length;I+=2){var A=E[I+0],O=E[I+1];A*=u,O*=f;var L=p*A-d*O,R=d*A+p*O;E[I+0]=L+_[0],E[I+1]=R+_[1]}return E})},ws=1e-10,Fp=Math.PI/180;function Ts(e,t,r){if(!(this instanceof Ts))return new Ts(e,t,r);this.rx=e,this.ry=t,this.ax=r}Ts.prototype.transform=function(e){var t=Math.cos(this.ax*Fp),r=Math.sin(this.ax*Fp),n=[this.rx*(e[0]*t+e[2]*r),this.rx*(e[1]*t+e[3]*r),this.ry*(-e[0]*r+e[2]*t),this.ry*(-e[1]*r+e[3]*t)],i=n[0]*n[0]+n[2]*n[2],o=n[1]*n[1]+n[3]*n[3],l=((n[0]-n[3])*(n[0]-n[3])+(n[2]+n[1])*(n[2]+n[1]))*((n[0]+n[3])*(n[0]+n[3])+(n[2]-n[1])*(n[2]-n[1])),u=(i+o)/2;if(l<ws*u)return this.rx=this.ry=Math.sqrt(u),this.ax=0,this;var f=n[0]*n[1]+n[2]*n[3];l=Math.sqrt(l);var h=u+l/2,d=u-l/2;return this.ax=Math.abs(f)<ws&&Math.abs(h-o)<ws?90:Math.atan(Math.abs(f)>Math.abs(h-o)?(h-i)/f:f/(h-o))*180/Math.PI,this.ax>=0?(this.rx=Math.sqrt(h),this.ry=Math.sqrt(d)):(this.ax+=90,this.rx=Math.sqrt(d),this.ry=Math.sqrt(h)),this},Ts.prototype.isDegenerate=function(){return this.rx<ws*this.ry||this.ry<ws*this.rx};var J2=Ts,tS=q2,eS=K2,pn=kp,rS=Q2,nS=J2;function ve(e){if(!(this instanceof ve))return new ve(e);var t=tS(e);this.segments=t.segments,this.err=t.err,this.__stack=[]}ve.from=function(e){if(typeof e=="string")return new ve(e);if(e instanceof ve){var t=new ve("");return t.err=e.err,t.segments=e.segments.map(function(r){return r.slice()}),t.__stack=e.__stack.map(function(r){return pn().matrix(r.toArray())}),t}throw new Error("SvgPath.from: invalid param type "+e)},ve.prototype.__matrix=function(e){var t=this,r;e.queue.length&&this.iterate(function(n,i,o,l){var u,f,h,d;switch(n[0]){case"v":u=e.calc(0,n[1],!0),f=u[0]===0?["v",u[1]]:["l",u[0],u[1]];break;case"V":u=e.calc(o,n[1],!1),f=u[0]===e.calc(o,l,!1)[0]?["V",u[1]]:["L",u[0],u[1]];break;case"h":u=e.calc(n[1],0,!0),f=u[1]===0?["h",u[0]]:["l",u[0],u[1]];break;case"H":u=e.calc(n[1],l,!1),f=u[1]===e.calc(o,l,!1)[1]?["H",u[0]]:["L",u[0],u[1]];break;case"a":case"A":var p=e.toArray(),c=nS(n[1],n[2],n[3]).transform(p);if(p[0]*p[3]-p[1]*p[2]<0&&(n[5]=n[5]?"0":"1"),u=e.calc(n[6],n[7],n[0]==="a"),n[0]==="A"&&n[6]===o&&n[7]===l||n[0]==="a"&&n[6]===0&&n[7]===0){f=[n[0]==="a"?"l":"L",u[0],u[1]];break}c.isDegenerate()?f=[n[0]==="a"?"l":"L",u[0],u[1]]:f=[n[0],c.rx,c.ry,c.ax,n[4],n[5],u[0],u[1]];break;case"m":d=i>0,u=e.calc(n[1],n[2],d),f=["m",u[0],u[1]];break;default:for(h=n[0],f=[h],d=h.toLowerCase()===h,r=1;r<n.length;r+=2)u=e.calc(n[r],n[r+1],d),f.push(u[0],u[1])}t.segments[i]=f},!0)},ve.prototype.__evaluateStack=function(){var e,t;if(this.__stack.length){if(this.__stack.length===1){this.__matrix(this.__stack[0]),this.__stack=[];return}for(e=pn(),t=this.__stack.length;--t>=0;)e.matrix(this.__stack[t].toArray());this.__matrix(e),this.__stack=[]}},ve.prototype.toString=function(){var e="",t="",r=!1;this.__evaluateStack();for(var n=0,i=this.segments.length;n<i;n++){var o=this.segments[n],l=o[0];l!==t||l==="m"||l==="M"?(l==="m"&&t==="z"&&(e+=" "),e+=l,r=!1):r=!0;for(var u=1;u<o.length;u++){var f=o[u];u===1?r&&f>=0&&(e+=" "):f>=0&&(e+=" "),e+=f}t=l}return e},ve.prototype.translate=function(e,t){return this.__stack.push(pn().translate(e,t||0)),this},ve.prototype.scale=function(e,t){return this.__stack.push(pn().scale(e,!t&&t!==0?e:t)),this},ve.prototype.rotate=function(e,t,r){return this.__stack.push(pn().rotate(e,t||0,r||0)),this},ve.prototype.skewX=function(e){return this.__stack.push(pn().skewX(e)),this},ve.prototype.skewY=function(e){return this.__stack.push(pn().skewY(e)),this},ve.prototype.matrix=function(e){return this.__stack.push(pn().matrix(e)),this},ve.prototype.transform=function(e){return e.trim()?(this.__stack.push(eS(e)),this):this},ve.prototype.round=function(e){var t=0,r=0,n=0,i=0,o;return e=e||0,this.__evaluateStack(),this.segments.forEach(function(l){var u=l[0].toLowerCase()===l[0];switch(l[0]){case"H":case"h":u&&(l[1]+=n),n=l[1]-l[1].toFixed(e),l[1]=+l[1].toFixed(e);return;case"V":case"v":u&&(l[1]+=i),i=l[1]-l[1].toFixed(e),l[1]=+l[1].toFixed(e);return;case"Z":case"z":n=t,i=r;return;case"M":case"m":u&&(l[1]+=n,l[2]+=i),n=l[1]-l[1].toFixed(e),i=l[2]-l[2].toFixed(e),t=n,r=i,l[1]=+l[1].toFixed(e),l[2]=+l[2].toFixed(e);return;case"A":case"a":u&&(l[6]+=n,l[7]+=i),n=l[6]-l[6].toFixed(e),i=l[7]-l[7].toFixed(e),l[1]=+l[1].toFixed(e),l[2]=+l[2].toFixed(e),l[3]=+l[3].toFixed(e+2),l[6]=+l[6].toFixed(e),l[7]=+l[7].toFixed(e);return;default:o=l.length,u&&(l[o-2]+=n,l[o-1]+=i),n=l[o-2]-l[o-2].toFixed(e),i=l[o-1]-l[o-1].toFixed(e),l.forEach(function(f,h){h&&(l[h]=+l[h].toFixed(e))});return}}),this},ve.prototype.iterate=function(e,t){var r=this.segments,n={},i=!1,o=0,l=0,u=0,f=0,h,d,p;if(t||this.__evaluateStack(),r.forEach(function(c,v){var m=e(c,v,o,l);Array.isArray(m)&&(n[v]=m,i=!0);var _=c[0]===c[0].toLowerCase();switch(c[0]){case"m":case"M":o=c[1]+(_?o:0),l=c[2]+(_?l:0),u=o,f=l;return;case"h":case"H":o=c[1]+(_?o:0);return;case"v":case"V":l=c[1]+(_?l:0);return;case"z":case"Z":o=u,l=f;return;default:o=c[c.length-2]+(_?o:0),l=c[c.length-1]+(_?l:0)}}),!i)return this;for(p=[],h=0;h<r.length;h++)if(typeof n[h]<"u")for(d=0;d<n[h].length;d++)p.push(n[h][d]);else p.push(r[h]);return this.segments=p,this},ve.prototype.abs=function(){return this.iterate(function(e,t,r,n){var i=e[0],o=i.toUpperCase(),l;if(i!==o)switch(e[0]=o,i){case"v":e[1]+=n;return;case"a":e[6]+=r,e[7]+=n;return;default:for(l=1;l<e.length;l++)e[l]+=l%2?r:n}},!0),this},ve.prototype.rel=function(){return this.iterate(function(e,t,r,n){var i=e[0],o=i.toLowerCase(),l;if(i!==o&&!(t===0&&i==="M"))switch(e[0]=o,i){case"V":e[1]-=n;return;case"A":e[6]-=r,e[7]-=n;return;default:for(l=1;l<e.length;l++)e[l]-=l%2?r:n}},!0),this},ve.prototype.unarc=function(){return this.iterate(function(e,t,r,n){var i,o,l,u=[],f=e[0];return f!=="A"&&f!=="a"?null:(f==="a"?(o=r+e[6],l=n+e[7]):(o=e[6],l=e[7]),i=rS(r,n,o,l,e[4],e[5],e[1],e[2],e[3]),i.length===0?[[e[0]==="a"?"l":"L",e[6],e[7]]]:(i.forEach(function(h){u.push(["C",h[2],h[3],h[4],h[5],h[6],h[7]])}),u))}),this},ve.prototype.unshort=function(){var e=this.segments,t,r,n,i,o;return this.iterate(function(l,u,f,h){var d=l[0],p=d.toUpperCase(),c;u&&(p==="T"?(c=d==="t",n=e[u-1],n[0]==="Q"?(t=n[1]-f,r=n[2]-h):n[0]==="q"?(t=n[1]-n[3],r=n[2]-n[4]):(t=0,r=0),i=-t,o=-r,c||(i+=f,o+=h),e[u]=[c?"q":"Q",i,o,l[1],l[2]]):p==="S"&&(c=d==="s",n=e[u-1],n[0]==="C"?(t=n[3]-f,r=n[4]-h):n[0]==="c"?(t=n[3]-n[5],r=n[4]-n[6]):(t=0,r=0),i=-t,o=-r,c||(i+=f,o+=h),e[u]=[c?"c":"C",i,o,l[1],l[2],l[3],l[4]]))}),this};var iS=ve,sS=iS;const oS=En(sS),aS=Et.forwardRef((e,t)=>{const[r,n]=Et.useState(null),i=_t.useRef(null),o=_t.useRef(null),l=_t.useRef(null),{path:u,transformation:{x:f,y:h,width:d,height:p,anchor:c,hexColor:v,fill:m,stroke:_="none",strokeWidth:b=0,colorCorrection:y={}},pointerdown:w,pointerup:T}=e,x=me.useApp(),{temperatureFilter:E,sharpnessFilter:I,hueFilter:A,blurFilter:O,adjustmentFilter:L}=ys(y),{blurRadius:R=0}=y;return Et.useEffect(()=>{const C=oS(u).scale(5).translate(0,0).toString(),P=`<svg xmlns="http://www.w3.org/2000/svg" width="${d}" height="${p}">
1931
+ */(function(e,t){(function(r,n){e.exports=n()})(i2,function(){return function(n){for(var i={command:/\s*([achlmqstvz])/gi,number:/\s*([+-]?\d*\.?\d+(?:e[+-]?\d+)?)/gi,comma:/\s*(?:(,)|\s)/g,flag:/\s*([01])/g},o={number:function(_){return+v("number",_)},"coordinate pair":function(_){var b=v("number",_);if(b===null&&!_)return null;v("comma");var y=v("number",!0);return{x:+b,y:+y}},"arc definition":function(_){var b=o["coordinate pair"](_);if(!b&&!_)return null;v("comma");var y=+v("number",!0);v("comma",!0);var w=!!+v("flag",!0);v("comma");var T=!!+v("flag",!0);v("comma");var x=o["coordinate pair"](!0);return{radii:b,rotation:y,large:w,clockwise:T,end:x}}},l=0,u=[];l<n.length;){var f=v("command"),h=f.toUpperCase(),d=f!==h,p;switch(h){case"M":p=m("coordinate pair").map(function(_,b){return b===1&&(f=d?"l":"L"),c({end:_})});break;case"L":case"T":p=m("coordinate pair").map(function(_){return c({end:_})});break;case"C":if(p=m("coordinate pair"),p.length%3)throw Error("Expected coordinate pair triplet at position "+l);p=p.reduce(function(_,b,y){var w=y%3;if(!w)_.push(c({cp1:b}));else{var T=_[_.length-1];T[w===1?"cp2":"end"]=b}return _},[]);break;case"Q":case"S":if(p=m("coordinate pair"),p.length&1)throw Error("Expected coordinate pair couple at position "+l);p=p.reduce(function(_,b,y){var w=y&1;if(!w)_.push(c({cp:b}));else{var T=_[_.length-1];T.end=b}return _},[]);break;case"H":case"V":p=m("number").map(function(_){return c({value:_})});break;case"A":p=m("arc definition").map(c);break;case"Z":p=[{code:"Z"}];break}u.push.apply(u,p)}return u;function c(_){return _.code=f,_.relative=d,_}function v(_,b){i[_].lastIndex=l;var y=i[_].exec(n);if(!y||y.index!==l){if(!b)return null;throw Error("Expected "+_+" at position "+l)}return l=i[_].lastIndex,y[1]}function m(_){for(var b=[],y,w=!0;y=o[_](w);)b.push(y),w=!!v("comma");return b}}})})(s2);const o2=/^\s+/,a2=/\s+$/;function Tt(e,t){if(e=e||"",t=t||{},e instanceof Tt)return e;if(!(this instanceof Tt))return new Tt(e,t);var r=l2(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}Tt.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},getLuminance:function(){var e=this.toRgb(),t,r,n,i,o,l;return t=e.r/255,r=e.g/255,n=e.b/255,t<=.03928?i=t/12.92:i=Math.pow((t+.055)/1.055,2.4),r<=.03928?o=r/12.92:o=Math.pow((r+.055)/1.055,2.4),n<=.03928?l=n/12.92:l=Math.pow((n+.055)/1.055,2.4),.2126*i+.7152*o+.0722*l},setAlpha:function(e){return this._a=Rp(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=Sp(this._r,this._g,this._b);return{h:e.h*360,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=Sp(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),n=Math.round(e.v*100);return this._a==1?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=Ep(this._r,this._g,this._b);return{h:e.h*360,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=Ep(this._r,this._g,this._b),t=Math.round(e.h*360),r=Math.round(e.s*100),n=Math.round(e.l*100);return this._a==1?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return Ap(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return h2(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(fe(this._r,255)*100)+"%",g:Math.round(fe(this._g,255)*100)+"%",b:Math.round(fe(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(fe(this._r,255)*100)+"%, "+Math.round(fe(this._g,255)*100)+"%, "+Math.round(fe(this._b,255)*100)+"%)":"rgba("+Math.round(fe(this._r,255)*100)+"%, "+Math.round(fe(this._g,255)*100)+"%, "+Math.round(fe(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:E2[Ap(this._r,this._g,this._b,!0)]||!1},toFilter:function(e){var t="#"+Op(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var i=Tt(e);r="#"+Op(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0,i=!t&&n&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return Tt(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(g2,arguments)},brighten:function(){return this._applyModification(m2,arguments)},darken:function(){return this._applyModification(y2,arguments)},desaturate:function(){return this._applyModification(d2,arguments)},saturate:function(){return this._applyModification(p2,arguments)},greyscale:function(){return this._applyModification(v2,arguments)},spin:function(){return this._applyModification(_2,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(w2,arguments)},complement:function(){return this._applyCombination(b2,arguments)},monochromatic:function(){return this._applyCombination(T2,arguments)},splitcomplement:function(){return this._applyCombination(x2,arguments)},triad:function(){return this._applyCombination(Cp,[3])},tetrad:function(){return this._applyCombination(Cp,[4])}},Tt.fromRatio=function(e,t){if(typeof e=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=_s(e[n]));e=r}return Tt(e,t)};function l2(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,o=null,l=!1,u=!1;return typeof e=="string"&&(e=C2(e)),typeof e=="object"&&(Kr(e.r)&&Kr(e.g)&&Kr(e.b)?(t=u2(e.r,e.g,e.b),l=!0,u=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Kr(e.h)&&Kr(e.s)&&Kr(e.v)?(n=_s(e.s),i=_s(e.v),t=c2(e.h,n,i),l=!0,u="hsv"):Kr(e.h)&&Kr(e.s)&&Kr(e.l)&&(n=_s(e.s),o=_s(e.l),t=f2(e.h,n,o),l=!0,u="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=Rp(r),{ok:l,format:e.format||u,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function u2(e,t,r){return{r:fe(e,255)*255,g:fe(t,255)*255,b:fe(r,255)*255}}function Ep(e,t,r){e=fe(e,255),t=fe(t,255),r=fe(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,l,u=(n+i)/2;if(n==i)o=l=0;else{var f=n-i;switch(l=u>.5?f/(2-n-i):f/(n+i),n){case e:o=(t-r)/f+(t<r?6:0);break;case t:o=(r-e)/f+2;break;case r:o=(e-t)/f+4;break}o/=6}return{h:o,s:l,l:u}}function f2(e,t,r){var n,i,o;e=fe(e,360),t=fe(t,100),r=fe(r,100);function l(h,d,p){return p<0&&(p+=1),p>1&&(p-=1),p<1/6?h+(d-h)*6*p:p<1/2?d:p<2/3?h+(d-h)*(2/3-p)*6:h}if(t===0)n=i=o=r;else{var u=r<.5?r*(1+t):r+t-r*t,f=2*r-u;n=l(f,u,e+1/3),i=l(f,u,e),o=l(f,u,e-1/3)}return{r:n*255,g:i*255,b:o*255}}function Sp(e,t,r){e=fe(e,255),t=fe(t,255),r=fe(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),o,l,u=n,f=n-i;if(l=n===0?0:f/n,n==i)o=0;else{switch(n){case e:o=(t-r)/f+(t<r?6:0);break;case t:o=(r-e)/f+2;break;case r:o=(e-t)/f+4;break}o/=6}return{h:o,s:l,v:u}}function c2(e,t,r){e=fe(e,360)*6,t=fe(t,100),r=fe(r,100);var n=Math.floor(e),i=e-n,o=r*(1-t),l=r*(1-i*t),u=r*(1-(1-i)*t),f=n%6,h=[r,l,o,o,u,r][f],d=[u,r,r,l,o,o][f],p=[o,o,u,r,r,l][f];return{r:h*255,g:d*255,b:p*255}}function Ap(e,t,r,n){var i=[Ar(Math.round(e).toString(16)),Ar(Math.round(t).toString(16)),Ar(Math.round(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function h2(e,t,r,n,i){var o=[Ar(Math.round(e).toString(16)),Ar(Math.round(t).toString(16)),Ar(Math.round(r).toString(16)),Ar(Ip(n))];return i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function Op(e,t,r,n){var i=[Ar(Ip(n)),Ar(Math.round(e).toString(16)),Ar(Math.round(t).toString(16)),Ar(Math.round(r).toString(16))];return i.join("")}Tt.equals=function(e,t){return!e||!t?!1:Tt(e).toRgbString()==Tt(t).toRgbString()},Tt.random=function(){return Tt.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function d2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.s-=t/100,r.s=$o(r.s),Tt(r)}function p2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.s+=t/100,r.s=$o(r.s),Tt(r)}function v2(e){return Tt(e).desaturate(100)}function g2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.l+=t/100,r.l=$o(r.l),Tt(r)}function m2(e,t){t=t===0?0:t||10;var r=Tt(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),Tt(r)}function y2(e,t){t=t===0?0:t||10;var r=Tt(e).toHsl();return r.l-=t/100,r.l=$o(r.l),Tt(r)}function _2(e,t){var r=Tt(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,Tt(r)}function b2(e){var t=Tt(e).toHsl();return t.h=(t.h+180)%360,Tt(t)}function Cp(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=Tt(e).toHsl(),n=[Tt(e)],i=360/t,o=1;o<t;o++)n.push(Tt({h:(r.h+o*i)%360,s:r.s,l:r.l}));return n}function x2(e){var t=Tt(e).toHsl(),r=t.h;return[Tt(e),Tt({h:(r+72)%360,s:t.s,l:t.l}),Tt({h:(r+216)%360,s:t.s,l:t.l})]}function w2(e,t,r){t=t||6,r=r||30;var n=Tt(e).toHsl(),i=360/r,o=[Tt(e)];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,o.push(Tt(n));return o}function T2(e,t){t=t||6;for(var r=Tt(e).toHsv(),n=r.h,i=r.s,o=r.v,l=[],u=1/t;t--;)l.push(Tt({h:n,s:i,v:o})),o=(o+u)%1;return l}Tt.mix=function(e,t,r){r=r===0?0:r||50;var n=Tt(e).toRgb(),i=Tt(t).toRgb(),o=r/100,l={r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a};return Tt(l)},Tt.readability=function(e,t){var r=Tt(e),n=Tt(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)},Tt.isReadable=function(e,t,r){var n=Tt.readability(e,t),i,o;switch(o=!1,i=R2(r),i.level+i.size){case"AAsmall":case"AAAlarge":o=n>=4.5;break;case"AAlarge":o=n>=3;break;case"AAAsmall":o=n>=7;break}return o},Tt.mostReadable=function(e,t,r){var n=null,i=0,o,l,u,f;r=r||{},l=r.includeFallbackColors,u=r.level,f=r.size;for(var h=0;h<t.length;h++)o=Tt.readability(e,t[h]),o>i&&(i=o,n=Tt(t[h]));return Tt.isReadable(e,n,{level:u,size:f})||!l?n:(r.includeFallbackColors=!1,Tt.mostReadable(e,["#fff","#000"],r))};var Mu=Tt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},E2=Tt.hexNames=S2(Mu);function S2(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function Rp(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function fe(e,t){A2(e)&&(e="100%");var r=O2(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function $o(e){return Math.min(1,Math.max(0,e))}function Je(e){return parseInt(e,16)}function A2(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function O2(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Ar(e){return e.length==1?"0"+e:""+e}function _s(e){return e<=1&&(e=e*100+"%"),e}function Ip(e){return Math.round(parseFloat(e)*255).toString(16)}function Pp(e){return Je(e)/255}var Or=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",i="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Kr(e){return!!Or.CSS_UNIT.exec(e)}function C2(e){e=e.replace(o2,"").replace(a2,"").toLowerCase();var t=!1;if(Mu[e])e=Mu[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=Or.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=Or.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=Or.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=Or.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=Or.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=Or.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=Or.hex8.exec(e))?{r:Je(r[1]),g:Je(r[2]),b:Je(r[3]),a:Pp(r[4]),format:t?"name":"hex8"}:(r=Or.hex6.exec(e))?{r:Je(r[1]),g:Je(r[2]),b:Je(r[3]),format:t?"name":"hex"}:(r=Or.hex4.exec(e))?{r:Je(r[1]+""+r[1]),g:Je(r[2]+""+r[2]),b:Je(r[3]+""+r[3]),a:Pp(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=Or.hex3.exec(e))?{r:Je(r[1]+""+r[1]),g:Je(r[2]+""+r[2]),b:Je(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function R2(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var I2=function(){function e(t,r){var n=[],i=!0,o=!1,l=void 0;try{for(var u=t[Symbol.iterator](),f;!(i=(f=u.next()).done)&&(n.push(f.value),!(r&&n.length===r));i=!0);}catch(h){o=!0,l=h}finally{try{!i&&u.return&&u.return()}finally{if(o)throw l}}return n}return function(t,r){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),bs=Math.PI*2,ku=function(t,r,n,i,o,l,u){var f=t.x,h=t.y;f*=r,h*=n;var d=i*f-o*h,p=o*f+i*h;return{x:d+l,y:p+u}},P2=function(t,r){var n=r===1.5707963267948966?.551915024494:r===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(r/4),i=Math.cos(t),o=Math.sin(t),l=Math.cos(t+r),u=Math.sin(t+r);return[{x:i-o*n,y:o+i*n},{x:l+u*n,y:u-l*n},{x:l,y:u}]},Np=function(t,r,n,i){var o=t*i-r*n<0?-1:1,l=t*n+r*i;return l>1&&(l=1),l<-1&&(l=-1),o*Math.acos(l)},N2=function(t,r,n,i,o,l,u,f,h,d,p,c){var v=Math.pow(o,2),m=Math.pow(l,2),_=Math.pow(p,2),b=Math.pow(c,2),y=v*m-v*b-m*_;y<0&&(y=0),y/=v*b+m*_,y=Math.sqrt(y)*(u===f?-1:1);var w=y*o/l*c,T=y*-l/o*p,x=d*w-h*T+(t+n)/2,E=h*w+d*T+(r+i)/2,I=(p-w)/o,A=(c-T)/l,O=(-p-w)/o,L=(-c-T)/l,R=Np(1,0,I,A),C=Np(I,A,O,L);return f===0&&C>0&&(C-=bs),f===1&&C<0&&(C+=bs),[x,E,R,C]},Mp=function(t){var r=t.px,n=t.py,i=t.cx,o=t.cy,l=t.rx,u=t.ry,f=t.xAxisRotation,h=f===void 0?0:f,d=t.largeArcFlag,p=d===void 0?0:d,c=t.sweepFlag,v=c===void 0?0:c,m=[];if(l===0||u===0)return[];var _=Math.sin(h*bs/360),b=Math.cos(h*bs/360),y=b*(r-i)/2+_*(n-o)/2,w=-_*(r-i)/2+b*(n-o)/2;if(y===0&&w===0)return[];l=Math.abs(l),u=Math.abs(u);var T=Math.pow(y,2)/Math.pow(l,2)+Math.pow(w,2)/Math.pow(u,2);T>1&&(l*=Math.sqrt(T),u*=Math.sqrt(T));var x=N2(r,n,i,o,l,u,p,v,_,b,y,w),E=I2(x,4),I=E[0],A=E[1],O=E[2],L=E[3],R=Math.abs(L)/(bs/4);Math.abs(1-R)<1e-7&&(R=1);var C=Math.max(Math.ceil(R),1);L/=C;for(var P=0;P<C;P++)m.push(P2(O,L)),O+=L;return m.map(function(M){var F=ku(M[0],l,u,b,_,I,A),q=F.x,Y=F.y,z=ku(M[1],l,u,b,_,I,A),it=z.x,W=z.y,U=ku(M[2],l,u,b,_,I,A),k=U.x,D=U.y;return{x1:q,y1:Y,x2:it,y2:W,x:k,y:D}})};class M2 extends Pu{constructor(t){super(),this.lineColor=null,t&&this.drawSVG(t)}drawSVG(t){if(typeof t=="string"){const r=document.createElement("div");r.innerHTML=t.trim(),t=r.querySelector("svg")}if(!t)throw new Error("Missing <svg> element in SVG constructor");return this._svgFill(t),this._svgChildren(t.children),this}_svgChildren(t,r=!1){for(let n=0;n<t.length;n++){const i=t[n];switch(this._svgFill(i,r),i.nodeName.toLowerCase()){case"path":{this._svgPath(i);break}case"circle":case"ellipse":{this._svgCircle(i);break}case"rect":{this._svgRect(i);break}case"polygon":{this._svgPoly(i,!0);break}case"polyline":{this._svgPoly(i);break}case"g":break;default:{console.info(`[PIXI.SVG] <${i.nodeName}> elements unsupported`);break}}this._svgChildren(i.children,!0)}}_hexToUint(t){if(t[0]==="#")return t=t.substr(1),t.length===3&&(t=t.replace(/([a-f0-9])/ig,"$1$1")),parseInt(t,16);const{r,g:n,b:i}=Tt(t).toRgb();return(r<<16)+(n<<8)+i}_svgCircle(t){let r="r",n="r";const i=t.nodeName==="elipse";i&&(r+="x",n+="y");const o=parseFloat(t.getAttribute(n)),l=parseFloat(t.getAttribute(r)),u=t.getAttribute("cx"),f=t.getAttribute("cy");let h=0,d=0;u!==null&&(h=parseFloat(u)),f!==null&&(d=parseFloat(f)),i?this.drawEllipse(h,d,o,l):this.drawCircle(h,d,o)}_svgRect(t){const r=parseFloat(t.getAttribute("x")),n=parseFloat(t.getAttribute("y")),i=parseFloat(t.getAttribute("width")),o=parseFloat(t.getAttribute("height")),l=parseFloat(t.getAttribute("rx"));l?this.drawRoundedRect(r,n,i,o,l):this.drawRect(r,n,i,o)}_convertStyleName(t){return t.trim().replace("-width","Width").replace(/.*-(line)?/,"")}_svgStyle(t){const r=t.getAttribute("style"),n=t.getAttribute("opacity"),i={fill:t.getAttribute("fill"),opacity:n||t.getAttribute("fill-opacity"),stroke:t.getAttribute("stroke"),strokeOpacity:n||t.getAttribute("stroke-opacity"),strokeWidth:t.getAttribute("stroke-width"),cap:t.getAttribute("stroke-linecap"),join:t.getAttribute("stroke-linejoin"),miterLimit:t.getAttribute("stroke-miterlimit")};return r!==null&&r.split(";").forEach(o=>{const[l,u]=o.split(":");if(l){const f=this._convertStyleName(l);i[f]||(i[f]=u.trim())}}),i}_svgPoly(t,r){const n=t.getAttribute("points").split(/[ ,]/g).map(i=>parseInt(i,10));this.drawPolygon(n),r&&this.closePath()}_svgFill(t,r){const{fill:n,opacity:i,stroke:o,strokeOpacity:l,strokeWidth:u,cap:f,join:h,miterLimit:d}=this._svgStyle(t),c=u!==null?parseFloat(u):o!==null?1:0,v=o!==null?this._hexToUint(o):this.lineColor;n?n==="none"?this.beginFill(0,0):this.beginFill(this._hexToUint(n),i!==null?parseFloat(i):1):r||this.beginFill(0),this.lineStyle({width:o===null&&u===null&&r?this.line.width:c,alpha:l===null?this.line.alpha:parseFloat(l),color:o===null&&r?this.line.color:v,cap:f===null&&r?this.line.cap:f,join:h===null&&r?this.line.join:h,miterLimit:d===null&&r?this.line.miterLimit:parseFloat(d)}),t.getAttribute("fill-rule")&&console.info('[PIXI.SVG] "fill-rule" attribute is not supported')}_svgPath(t){const r=t.getAttribute("d");let n=0,i=0;const o=Nu(r.trim());for(let l=0;l<o.length;l++){const u=o[l];switch(u.code){case"m":{this.moveTo(n+=u.end.x,i+=u.end.y);break}case"M":{this.moveTo(n=u.end.x,i=u.end.y);break}case"H":{this.lineTo(n=u.value,i);break}case"h":{this.lineTo(n+=u.value,i);break}case"V":{this.lineTo(n,i=u.value);break}case"v":{this.lineTo(n,i+=u.value);break}case"Z":{this.closePath();break}case"L":{this.lineTo(n=u.end.x,i=u.end.y);break}case"l":{this.lineTo(n+=u.end.x,i+=u.end.y);break}case"C":{this.bezierCurveTo(u.cp1.x,u.cp1.y,u.cp2.x,u.cp2.y,n=u.end.x,i=u.end.y);break}case"c":{const f=n,h=i;this.bezierCurveTo(f+u.cp1.x,h+u.cp1.y,f+u.cp2.x,h+u.cp2.y,n+=u.end.x,i+=u.end.y);break}case"s":case"q":{const f=n,h=i;this.quadraticCurveTo(f+u.cp.x,h+u.cp.y,n+=u.end.x,i+=u.end.y);break}case"S":case"Q":{this.quadraticCurveTo(u.cp.x,u.cp.y,n=u.end.x,i=u.end.y);break}case"a":{Mp({px:n,py:i,cx:n+=u.end.x,cy:i+=u.end.y,rx:u.radii.x,ry:u.radii.y,xAxisRotation:u.rotation,largeArcFlag:u.large?1:0,sweepFlag:u.clockwise?1:0}).forEach(({x1:f,y1:h,x2:d,y2:p,x:c,y:v})=>this.bezierCurveTo(f,h,d,p,c,v));break}case"A":{Mp({px:n,py:i,cx:n=u.end.x,cy:i=u.end.y,rx:u.radii.x,ry:u.radii.y,xAxisRotation:u.rotation,largeArcFlag:u.large?1:0,sweepFlag:u.clockwise?1:0}).forEach(({x1:f,y1:h,x2:d,y2:p,x:c,y:v})=>this.bezierCurveTo(f,h,d,p,c,v));break}default:{console.info("[PIXI.SVG] Draw command not supported:",u.code,u);break}}}}}var Go={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},k2=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function L2(e){return e===10||e===13||e===8232||e===8233||e===32||e===9||e===11||e===12||e===160||e>=5760&&k2.indexOf(e)>=0}function F2(e){switch(e|32){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}function B2(e){return(e|32)===97}function Ri(e){return e>=48&&e<=57}function D2(e){return e>=48&&e<=57||e===43||e===45||e===46}function U2(e){this.index=0,this.path=e,this.max=e.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function jo(e){for(;e.index<e.max&&L2(e.path.charCodeAt(e.index));)e.index++}function $2(e){var t=e.path.charCodeAt(e.index);if(t===48){e.param=0,e.index++;return}if(t===49){e.param=1,e.index++;return}e.err="SvgPath: arc flag can be 0 or 1 only (at pos "+e.index+")"}function G2(e){var t=e.index,r=t,n=e.max,i=!1,o=!1,l=!1,u=!1,f;if(r>=n){e.err="SvgPath: missed param (at pos "+r+")";return}if(f=e.path.charCodeAt(r),(f===43||f===45)&&(r++,f=r<n?e.path.charCodeAt(r):0),!Ri(f)&&f!==46){e.err="SvgPath: param should start with 0..9 or `.` (at pos "+r+")";return}if(f!==46){if(i=f===48,r++,f=r<n?e.path.charCodeAt(r):0,i&&r<n&&f&&Ri(f)){e.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+t+")";return}for(;r<n&&Ri(e.path.charCodeAt(r));)r++,o=!0;f=r<n?e.path.charCodeAt(r):0}if(f===46){for(u=!0,r++;Ri(e.path.charCodeAt(r));)r++,l=!0;f=r<n?e.path.charCodeAt(r):0}if(f===101||f===69){if(u&&!o&&!l){e.err="SvgPath: invalid float exponent (at pos "+r+")";return}if(r++,f=r<n?e.path.charCodeAt(r):0,(f===43||f===45)&&r++,r<n&&Ri(e.path.charCodeAt(r)))for(;r<n&&Ri(e.path.charCodeAt(r));)r++;else{e.err="SvgPath: invalid float exponent (at pos "+r+")";return}}e.index=r,e.param=parseFloat(e.path.slice(t,r))+0}function Lu(e){var t,r;t=e.path[e.segmentStart],r=t.toLowerCase();var n=e.data;if(r==="m"&&n.length>2&&(e.result.push([t,n[0],n[1]]),n=n.slice(2),r="l",t=t==="m"?"l":"L"),r==="r")e.result.push([t].concat(n));else for(;n.length>=Go[r]&&(e.result.push([t].concat(n.splice(0,Go[r]))),!!Go[r]););}function j2(e){var t=e.max,r,n,i,o,l;if(e.segmentStart=e.index,r=e.path.charCodeAt(e.index),n=B2(r),!F2(r)){e.err="SvgPath: bad command "+e.path[e.index]+" (at pos "+e.index+")";return}if(o=Go[e.path[e.index].toLowerCase()],e.index++,jo(e),e.data=[],!o){Lu(e);return}for(i=!1;;){for(l=o;l>0;l--){if(n&&(l===3||l===4)?$2(e):G2(e),e.err.length){Lu(e);return}e.data.push(e.param),jo(e),i=!1,e.index<t&&e.path.charCodeAt(e.index)===44&&(e.index++,jo(e),i=!0)}if(!i&&(e.index>=e.max||!D2(e.path.charCodeAt(e.index))))break}Lu(e)}var q2=function(t){var r=new U2(t),n=r.max;for(jo(r);r.index<n&&!r.err.length;)j2(r);return r.result.length&&("mM".indexOf(r.result[0][0])<0?(r.err="SvgPath: string should start with `M` or `m`",r.result=[]):r.result[0][0]="M"),{err:r.err,segments:r.result}};function z2(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}function Cr(){if(!(this instanceof Cr))return new Cr;this.queue=[],this.cache=null}Cr.prototype.matrix=function(e){return e[0]===1&&e[1]===0&&e[2]===0&&e[3]===1&&e[4]===0&&e[5]===0?this:(this.cache=null,this.queue.push(e),this)},Cr.prototype.translate=function(e,t){return(e!==0||t!==0)&&(this.cache=null,this.queue.push([1,0,0,1,e,t])),this},Cr.prototype.scale=function(e,t){return(e!==1||t!==1)&&(this.cache=null,this.queue.push([e,0,0,t,0,0])),this},Cr.prototype.rotate=function(e,t,r){var n,i,o;return e!==0&&(this.translate(t,r),n=e*Math.PI/180,i=Math.cos(n),o=Math.sin(n),this.queue.push([i,o,-o,i,0,0]),this.cache=null,this.translate(-t,-r)),this},Cr.prototype.skewX=function(e){return e!==0&&(this.cache=null,this.queue.push([1,0,Math.tan(e*Math.PI/180),1,0,0])),this},Cr.prototype.skewY=function(e){return e!==0&&(this.cache=null,this.queue.push([1,Math.tan(e*Math.PI/180),0,1,0,0])),this},Cr.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],this.queue.length===1)return this.cache;for(var e=1;e<this.queue.length;e++)this.cache=z2(this.cache,this.queue[e]);return this.cache},Cr.prototype.calc=function(e,t,r){var n;return this.queue.length?(this.cache||(this.cache=this.toArray()),n=this.cache,[e*n[0]+t*n[2]+(r?0:n[4]),e*n[1]+t*n[3]+(r?0:n[5])]):[e,t]};var kp=Cr,H2=kp,V2={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},W2=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,X2=/[\s,]+/,K2=function(t){var r=new H2,n,i;return t.split(W2).forEach(function(o){if(o.length){if(typeof V2[o]<"u"){n=o;return}switch(i=o.split(X2).map(function(l){return+l||0}),n){case"matrix":i.length===6&&r.matrix(i);return;case"scale":i.length===1?r.scale(i[0],i[0]):i.length===2&&r.scale(i[0],i[1]);return;case"rotate":i.length===1?r.rotate(i[0],0,0):i.length===3&&r.rotate(i[0],i[1],i[2]);return;case"translate":i.length===1?r.translate(i[0],0):i.length===2&&r.translate(i[0],i[1]);return;case"skewX":i.length===1&&r.skewX(i[0]);return;case"skewY":i.length===1&&r.skewY(i[0]);return}}}),r},xs=Math.PI*2;function Lp(e,t,r,n){var i=e*n-t*r<0?-1:1,o=e*r+t*n;return o>1&&(o=1),o<-1&&(o=-1),i*Math.acos(o)}function Y2(e,t,r,n,i,o,l,u,f,h){var d=h*(e-r)/2+f*(t-n)/2,p=-f*(e-r)/2+h*(t-n)/2,c=l*l,v=u*u,m=d*d,_=p*p,b=c*v-c*_-v*m;b<0&&(b=0),b/=c*_+v*m,b=Math.sqrt(b)*(i===o?-1:1);var y=b*l/u*p,w=b*-u/l*d,T=h*y-f*w+(e+r)/2,x=f*y+h*w+(t+n)/2,E=(d-y)/l,I=(p-w)/u,A=(-d-y)/l,O=(-p-w)/u,L=Lp(1,0,E,I),R=Lp(E,I,A,O);return o===0&&R>0&&(R-=xs),o===1&&R<0&&(R+=xs),[T,x,L,R]}function Z2(e,t){var r=1.3333333333333333*Math.tan(t/4),n=Math.cos(e),i=Math.sin(e),o=Math.cos(e+t),l=Math.sin(e+t);return[n,i,n-i*r,i+n*r,o+l*r,l-o*r,o,l]}var Q2=function(t,r,n,i,o,l,u,f,h){var d=Math.sin(h*xs/360),p=Math.cos(h*xs/360),c=p*(t-n)/2+d*(r-i)/2,v=-d*(t-n)/2+p*(r-i)/2;if(c===0&&v===0)return[];if(u===0||f===0)return[];u=Math.abs(u),f=Math.abs(f);var m=c*c/(u*u)+v*v/(f*f);m>1&&(u*=Math.sqrt(m),f*=Math.sqrt(m));var _=Y2(t,r,n,i,o,l,u,f,d,p),b=[],y=_[2],w=_[3],T=Math.max(Math.ceil(Math.abs(w)/(xs/4)),1);w/=T;for(var x=0;x<T;x++)b.push(Z2(y,w)),y+=w;return b.map(function(E){for(var I=0;I<E.length;I+=2){var A=E[I+0],O=E[I+1];A*=u,O*=f;var L=p*A-d*O,R=d*A+p*O;E[I+0]=L+_[0],E[I+1]=R+_[1]}return E})},ws=1e-10,Fp=Math.PI/180;function Ts(e,t,r){if(!(this instanceof Ts))return new Ts(e,t,r);this.rx=e,this.ry=t,this.ax=r}Ts.prototype.transform=function(e){var t=Math.cos(this.ax*Fp),r=Math.sin(this.ax*Fp),n=[this.rx*(e[0]*t+e[2]*r),this.rx*(e[1]*t+e[3]*r),this.ry*(-e[0]*r+e[2]*t),this.ry*(-e[1]*r+e[3]*t)],i=n[0]*n[0]+n[2]*n[2],o=n[1]*n[1]+n[3]*n[3],l=((n[0]-n[3])*(n[0]-n[3])+(n[2]+n[1])*(n[2]+n[1]))*((n[0]+n[3])*(n[0]+n[3])+(n[2]-n[1])*(n[2]-n[1])),u=(i+o)/2;if(l<ws*u)return this.rx=this.ry=Math.sqrt(u),this.ax=0,this;var f=n[0]*n[1]+n[2]*n[3];l=Math.sqrt(l);var h=u+l/2,d=u-l/2;return this.ax=Math.abs(f)<ws&&Math.abs(h-o)<ws?90:Math.atan(Math.abs(f)>Math.abs(h-o)?(h-i)/f:f/(h-o))*180/Math.PI,this.ax>=0?(this.rx=Math.sqrt(h),this.ry=Math.sqrt(d)):(this.ax+=90,this.rx=Math.sqrt(d),this.ry=Math.sqrt(h)),this},Ts.prototype.isDegenerate=function(){return this.rx<ws*this.ry||this.ry<ws*this.rx};var J2=Ts,tS=q2,eS=K2,pn=kp,rS=Q2,nS=J2;function ve(e){if(!(this instanceof ve))return new ve(e);var t=tS(e);this.segments=t.segments,this.err=t.err,this.__stack=[]}ve.from=function(e){if(typeof e=="string")return new ve(e);if(e instanceof ve){var t=new ve("");return t.err=e.err,t.segments=e.segments.map(function(r){return r.slice()}),t.__stack=e.__stack.map(function(r){return pn().matrix(r.toArray())}),t}throw new Error("SvgPath.from: invalid param type "+e)},ve.prototype.__matrix=function(e){var t=this,r;e.queue.length&&this.iterate(function(n,i,o,l){var u,f,h,d;switch(n[0]){case"v":u=e.calc(0,n[1],!0),f=u[0]===0?["v",u[1]]:["l",u[0],u[1]];break;case"V":u=e.calc(o,n[1],!1),f=u[0]===e.calc(o,l,!1)[0]?["V",u[1]]:["L",u[0],u[1]];break;case"h":u=e.calc(n[1],0,!0),f=u[1]===0?["h",u[0]]:["l",u[0],u[1]];break;case"H":u=e.calc(n[1],l,!1),f=u[1]===e.calc(o,l,!1)[1]?["H",u[0]]:["L",u[0],u[1]];break;case"a":case"A":var p=e.toArray(),c=nS(n[1],n[2],n[3]).transform(p);if(p[0]*p[3]-p[1]*p[2]<0&&(n[5]=n[5]?"0":"1"),u=e.calc(n[6],n[7],n[0]==="a"),n[0]==="A"&&n[6]===o&&n[7]===l||n[0]==="a"&&n[6]===0&&n[7]===0){f=[n[0]==="a"?"l":"L",u[0],u[1]];break}c.isDegenerate()?f=[n[0]==="a"?"l":"L",u[0],u[1]]:f=[n[0],c.rx,c.ry,c.ax,n[4],n[5],u[0],u[1]];break;case"m":d=i>0,u=e.calc(n[1],n[2],d),f=["m",u[0],u[1]];break;default:for(h=n[0],f=[h],d=h.toLowerCase()===h,r=1;r<n.length;r+=2)u=e.calc(n[r],n[r+1],d),f.push(u[0],u[1])}t.segments[i]=f},!0)},ve.prototype.__evaluateStack=function(){var e,t;if(this.__stack.length){if(this.__stack.length===1){this.__matrix(this.__stack[0]),this.__stack=[];return}for(e=pn(),t=this.__stack.length;--t>=0;)e.matrix(this.__stack[t].toArray());this.__matrix(e),this.__stack=[]}},ve.prototype.toString=function(){var e="",t="",r=!1;this.__evaluateStack();for(var n=0,i=this.segments.length;n<i;n++){var o=this.segments[n],l=o[0];l!==t||l==="m"||l==="M"?(l==="m"&&t==="z"&&(e+=" "),e+=l,r=!1):r=!0;for(var u=1;u<o.length;u++){var f=o[u];u===1?r&&f>=0&&(e+=" "):f>=0&&(e+=" "),e+=f}t=l}return e},ve.prototype.translate=function(e,t){return this.__stack.push(pn().translate(e,t||0)),this},ve.prototype.scale=function(e,t){return this.__stack.push(pn().scale(e,!t&&t!==0?e:t)),this},ve.prototype.rotate=function(e,t,r){return this.__stack.push(pn().rotate(e,t||0,r||0)),this},ve.prototype.skewX=function(e){return this.__stack.push(pn().skewX(e)),this},ve.prototype.skewY=function(e){return this.__stack.push(pn().skewY(e)),this},ve.prototype.matrix=function(e){return this.__stack.push(pn().matrix(e)),this},ve.prototype.transform=function(e){return e.trim()?(this.__stack.push(eS(e)),this):this},ve.prototype.round=function(e){var t=0,r=0,n=0,i=0,o;return e=e||0,this.__evaluateStack(),this.segments.forEach(function(l){var u=l[0].toLowerCase()===l[0];switch(l[0]){case"H":case"h":u&&(l[1]+=n),n=l[1]-l[1].toFixed(e),l[1]=+l[1].toFixed(e);return;case"V":case"v":u&&(l[1]+=i),i=l[1]-l[1].toFixed(e),l[1]=+l[1].toFixed(e);return;case"Z":case"z":n=t,i=r;return;case"M":case"m":u&&(l[1]+=n,l[2]+=i),n=l[1]-l[1].toFixed(e),i=l[2]-l[2].toFixed(e),t=n,r=i,l[1]=+l[1].toFixed(e),l[2]=+l[2].toFixed(e);return;case"A":case"a":u&&(l[6]+=n,l[7]+=i),n=l[6]-l[6].toFixed(e),i=l[7]-l[7].toFixed(e),l[1]=+l[1].toFixed(e),l[2]=+l[2].toFixed(e),l[3]=+l[3].toFixed(e+2),l[6]=+l[6].toFixed(e),l[7]=+l[7].toFixed(e);return;default:o=l.length,u&&(l[o-2]+=n,l[o-1]+=i),n=l[o-2]-l[o-2].toFixed(e),i=l[o-1]-l[o-1].toFixed(e),l.forEach(function(f,h){h&&(l[h]=+l[h].toFixed(e))});return}}),this},ve.prototype.iterate=function(e,t){var r=this.segments,n={},i=!1,o=0,l=0,u=0,f=0,h,d,p;if(t||this.__evaluateStack(),r.forEach(function(c,v){var m=e(c,v,o,l);Array.isArray(m)&&(n[v]=m,i=!0);var _=c[0]===c[0].toLowerCase();switch(c[0]){case"m":case"M":o=c[1]+(_?o:0),l=c[2]+(_?l:0),u=o,f=l;return;case"h":case"H":o=c[1]+(_?o:0);return;case"v":case"V":l=c[1]+(_?l:0);return;case"z":case"Z":o=u,l=f;return;default:o=c[c.length-2]+(_?o:0),l=c[c.length-1]+(_?l:0)}}),!i)return this;for(p=[],h=0;h<r.length;h++)if(typeof n[h]<"u")for(d=0;d<n[h].length;d++)p.push(n[h][d]);else p.push(r[h]);return this.segments=p,this},ve.prototype.abs=function(){return this.iterate(function(e,t,r,n){var i=e[0],o=i.toUpperCase(),l;if(i!==o)switch(e[0]=o,i){case"v":e[1]+=n;return;case"a":e[6]+=r,e[7]+=n;return;default:for(l=1;l<e.length;l++)e[l]+=l%2?r:n}},!0),this},ve.prototype.rel=function(){return this.iterate(function(e,t,r,n){var i=e[0],o=i.toLowerCase(),l;if(i!==o&&!(t===0&&i==="M"))switch(e[0]=o,i){case"V":e[1]-=n;return;case"A":e[6]-=r,e[7]-=n;return;default:for(l=1;l<e.length;l++)e[l]-=l%2?r:n}},!0),this},ve.prototype.unarc=function(){return this.iterate(function(e,t,r,n){var i,o,l,u=[],f=e[0];return f!=="A"&&f!=="a"?null:(f==="a"?(o=r+e[6],l=n+e[7]):(o=e[6],l=e[7]),i=rS(r,n,o,l,e[4],e[5],e[1],e[2],e[3]),i.length===0?[[e[0]==="a"?"l":"L",e[6],e[7]]]:(i.forEach(function(h){u.push(["C",h[2],h[3],h[4],h[5],h[6],h[7]])}),u))}),this},ve.prototype.unshort=function(){var e=this.segments,t,r,n,i,o;return this.iterate(function(l,u,f,h){var d=l[0],p=d.toUpperCase(),c;u&&(p==="T"?(c=d==="t",n=e[u-1],n[0]==="Q"?(t=n[1]-f,r=n[2]-h):n[0]==="q"?(t=n[1]-n[3],r=n[2]-n[4]):(t=0,r=0),i=-t,o=-r,c||(i+=f,o+=h),e[u]=[c?"q":"Q",i,o,l[1],l[2]]):p==="S"&&(c=d==="s",n=e[u-1],n[0]==="C"?(t=n[3]-f,r=n[4]-h):n[0]==="c"?(t=n[3]-n[5],r=n[4]-n[6]):(t=0,r=0),i=-t,o=-r,c||(i+=f,o+=h),e[u]=[c?"c":"C",i,o,l[1],l[2],l[3],l[4]]))}),this};var iS=ve,sS=iS;const oS=En(sS),aS=Et.forwardRef((e,t)=>{const[r,n]=Et.useState(null),i=_t.useRef(null),o=_t.useRef(null),l=_t.useRef(null),{path:u,transformation:{x:f,y:h,width:d,height:p,anchor:c,hexColor:v,fill:m,stroke:_="none",strokeWidth:b=0,colorCorrection:y={}},pointerdown:w,pointerup:T}=e,x=me.useApp(),{temperatureFilter:E,sharpnessFilter:I,hueFilter:A,blurFilter:O,adjustmentFilter:L}=ys(y),{blurRadius:R=0}=y;return Et.useEffect(()=>{const C=oS(u).scale(5).translate(0,0).toString(),P=`<svg xmlns="http://www.w3.org/2000/svg" width="${d}" height="${p}">
1932
1932
  <path stroke="${_}" stroke-width="${b}" fill="${v||m}" d="${C}">
1933
1933
  </path>
1934
- </svg>`,M=new M2(P),F=x.renderer.generateTexture(M);return n(F),()=>{}},[x,u,_,b,v,m]),Yt.jsx(ni,{...e,ref:t,children:Yt.jsx(me.Container,{ref:o,children:Yt.jsx(me.Container,{ref:l,children:r&&Yt.jsx(me.Sprite,{texture:r,width:d,height:p,anchor:c,ref:i,x:f,y:h,interactive:!0,pointerdown:w,pointerup:T,filters:[E,I,A,L,...R>0?[O]:[]]})})})})});var lS=Mr,uS=function(){return lS.Date.now()},fS=uS,cS=/\s/;function hS(e){for(var t=e.length;t--&&cS.test(e.charAt(t)););return t}var dS=hS,pS=dS,vS=/^\s+/;function gS(e){return e&&e.slice(0,pS(e)+1).replace(vS,"")}var mS=gS,yS=Ki,_S=Zi,bS="[object Symbol]";function xS(e){return typeof e=="symbol"||_S(e)&&yS(e)==bS}var qo=xS,wS=mS,Bp=Yi,TS=qo,Dp=0/0,ES=/^[-+]0x[0-9a-f]+$/i,SS=/^0b[01]+$/i,AS=/^0o[0-7]+$/i,OS=parseInt;function CS(e){if(typeof e=="number")return e;if(TS(e))return Dp;if(Bp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Bp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wS(e);var r=SS.test(e);return r||AS.test(e)?OS(e.slice(2),r?2:8):ES.test(e)?Dp:+e}var RS=CS,IS=Yi,Fu=fS,Up=RS,PS="Expected a function",NS=Math.max,MS=Math.min;function kS(e,t,r){var n,i,o,l,u,f,h=0,d=!1,p=!1,c=!0;if(typeof e!="function")throw new TypeError(PS);t=Up(t)||0,IS(r)&&(d=!!r.leading,p="maxWait"in r,o=p?NS(Up(r.maxWait)||0,t):o,c="trailing"in r?!!r.trailing:c);function v(I){var A=n,O=i;return n=i=void 0,h=I,l=e.apply(O,A),l}function m(I){return h=I,u=setTimeout(y,t),d?v(I):l}function _(I){var A=I-f,O=I-h,L=t-A;return p?MS(L,o-O):L}function b(I){var A=I-f,O=I-h;return f===void 0||A>=t||A<0||p&&O>=o}function y(){var I=Fu();if(b(I))return w(I);u=setTimeout(y,_(I))}function w(I){return u=void 0,c&&n?v(I):(n=i=void 0,l)}function T(){u!==void 0&&clearTimeout(u),h=0,n=f=i=u=void 0}function x(){return u===void 0?l:w(Fu())}function E(){var I=Fu(),A=b(I);if(n=arguments,i=this,f=I,A){if(u===void 0)return m(f);if(p)return clearTimeout(u),u=setTimeout(y,t),v(f)}return u===void 0&&(u=setTimeout(y,t)),l}return E.cancel=T,E.flush=x,E}var LS=kS;const $p=En(LS),FS=e=>{const t={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,r]=Et.useState(!1);console.log("allProps",e);const n=_t.useRef(null),i=_t.useRef(t),o=_t.useRef(null),{tl:l,isDragging:u}=_t.useContext(ti),{uniqueId:f,src:h,startAt:d,endAt:p,mute:c,speed:v}=e,m=e.audioStartAt||d,_=e.audioEndAt||p,b=Et.useRef(null);mr(ke.PAUSE,()=>{var A;n.current&&b.current&&((A=b.current)==null||A.pause(),i.current.isPlaying=!1)}),Et.useEffect(()=>{b.current&&(u?(b.current.pause(),i.current.isPlaying=!1,i.current.isDragging=!0):i.current.isDragging=!1)},[u]);const y=A=>{var O,L;n.current&&((O=b.current)==null||O.play({volume:c?0:1,start:A,end:p,speed:v||1}),u?((L=b.current)==null||L.pause(),i.current.isPlaying=!1,i.current.completed=!1):(i.current.isPlaying=!0,i.current.completed=!1))},w=$p((A,O)=>{var L;b.current&&((L=b.current)==null||L.play({volume:c?0:1,start:A,end:O,speed:v||1}),i.current.isPlaying=!0)},100),T=$p(()=>{b.current&&(b.current.pause(),i.current.isPlaying=!1)},300),x=()=>{var A;n.current&&(console.log("audio gsapOnStart",d),(A=b.current)==null||A.stop(),i.current.isPlaying=!1,i.current.completed=!0)},E=(A,O)=>{var R,C,P,M;const L=A+((R=o.current)==null?void 0:R.time());b.current&&i.current.isDragging?(w(L,O),T(),i.current.isPlaying=!1):n.current&&!i.current.isPlaying&&((C=b.current)==null||C.refresh(),(P=b.current)==null||P.refreshPaused(),(M=b.current)==null||M.resume(),i.current.isPlaying=!0)},I=()=>{};return _t.useEffect(()=>{let A=Te.context(()=>{});if(n.current&&l.current){const O={duration:Number(_)-Number(m),onStart:y,onComplete:x,onStartParams:[m,_],onCompleteParams:[],onInterrupt:I,onUpdate:E,onUpdateParams:[m,_]};o.current&&o.current.kill(),A=Te.context(()=>{o.current=Te.from(n.current,O,m),l.current.to(n.current,{alpha:1,duration:.01},d).to(n.current,{alpha:0,duration:.1},Number(p)-.09),l.current.add(o.current,d)})}return()=>{o.current&&(o.current.kill(),Te.killTweensOf(o.current)),A.revert()}},[d,p,m,_]),Et.useEffect(()=>{n.current&&r(!0)},[]),Et.useEffect(()=>{n.current&&b.current&&(i.current.mute=c,i.current.speed=v,b.current.volume=c?0:1)},[c,v]),Et.useEffect(()=>(el(h)||(b.current=ly.Sound.from({url:h,preload:!0,singleInstance:!0,loaded:()=>{i.current.loaded=!0}})),()=>{b.current&&(b.current.pause&&b.current.pause(),b.current.destroy&&b.current.destroy())}),[f,h]),Yt.jsx(me.Container,{ref:n})};function BS(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Gp=BS;function DS(){this.__data__=[],this.size=0}var US=DS;function $S(e,t){return e===t||e!==e&&t!==t}var jp=$S,GS=jp;function jS(e,t){for(var r=e.length;r--;)if(GS(e[r][0],t))return r;return-1}var zo=jS,qS=zo,zS=Array.prototype,HS=zS.splice;function VS(e){var t=this.__data__,r=qS(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():HS.call(t,r,1),--this.size,!0}var WS=VS,XS=zo;function KS(e){var t=this.__data__,r=XS(t,e);return r<0?void 0:t[r][1]}var YS=KS,ZS=zo;function QS(e){return ZS(this.__data__,e)>-1}var JS=QS,tA=zo;function eA(e,t){var r=this.__data__,n=tA(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var rA=eA,nA=US,iA=WS,sA=YS,oA=JS,aA=rA;function Ii(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ii.prototype.clear=nA,Ii.prototype.delete=iA,Ii.prototype.get=sA,Ii.prototype.has=oA,Ii.prototype.set=aA;var Ho=Ii,lA=Ho;function uA(){this.__data__=new lA,this.size=0}var fA=uA;function cA(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var hA=cA;function dA(e){return this.__data__.get(e)}var pA=dA;function vA(e){return this.__data__.has(e)}var gA=vA,mA=ei,yA=mA(Object,"create"),Vo=yA,qp=Vo;function _A(){this.__data__=qp?qp(null):{},this.size=0}var bA=_A;function xA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wA=xA,TA=Vo,EA="__lodash_hash_undefined__",SA=Object.prototype,AA=SA.hasOwnProperty;function OA(e){var t=this.__data__;if(TA){var r=t[e];return r===EA?void 0:r}return AA.call(t,e)?t[e]:void 0}var CA=OA,RA=Vo,IA=Object.prototype,PA=IA.hasOwnProperty;function NA(e){var t=this.__data__;return RA?t[e]!==void 0:PA.call(t,e)}var MA=NA,kA=Vo,LA="__lodash_hash_undefined__";function FA(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=kA&&t===void 0?LA:t,this}var BA=FA,DA=bA,UA=wA,$A=CA,GA=MA,jA=BA;function Pi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pi.prototype.clear=DA,Pi.prototype.delete=UA,Pi.prototype.get=$A,Pi.prototype.has=GA,Pi.prototype.set=jA;var qA=Pi,zp=qA,zA=Ho,HA=Ha;function VA(){this.size=0,this.__data__={hash:new zp,map:new(HA||zA),string:new zp}}var WA=VA;function XA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var KA=XA,YA=KA;function ZA(e,t){var r=e.__data__;return YA(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Wo=ZA,QA=Wo;function JA(e){var t=QA(this,e).delete(e);return this.size-=t?1:0,t}var tO=JA,eO=Wo;function rO(e){return eO(this,e).get(e)}var nO=rO,iO=Wo;function sO(e){return iO(this,e).has(e)}var oO=sO,aO=Wo;function lO(e,t){var r=aO(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var uO=lO,fO=WA,cO=tO,hO=nO,dO=oO,pO=uO;function Ni(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ni.prototype.clear=fO,Ni.prototype.delete=cO,Ni.prototype.get=hO,Ni.prototype.has=dO,Ni.prototype.set=pO;var Bu=Ni,vO=Ho,gO=Ha,mO=Bu,yO=200;function _O(e,t){var r=this.__data__;if(r instanceof vO){var n=r.__data__;if(!gO||n.length<yO-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new mO(n)}return r.set(e,t),this.size=r.size,this}var bO=_O,xO=Ho,wO=fA,TO=hA,EO=pA,SO=gA,AO=bO;function Mi(e){var t=this.__data__=new xO(e);this.size=t.size}Mi.prototype.clear=wO,Mi.prototype.delete=TO,Mi.prototype.get=EO,Mi.prototype.has=SO,Mi.prototype.set=AO;var Hp=Mi,OO="__lodash_hash_undefined__";function CO(e){return this.__data__.set(e,OO),this}var RO=CO;function IO(e){return this.__data__.has(e)}var PO=IO,NO=Bu,MO=RO,kO=PO;function Xo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new NO;++t<r;)this.add(e[t])}Xo.prototype.add=Xo.prototype.push=MO,Xo.prototype.has=kO;var LO=Xo;function FO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var BO=FO;function DO(e,t){return e.has(t)}var UO=DO,$O=LO,GO=BO,jO=UO,qO=1,zO=2;function HO(e,t,r,n,i,o){var l=r&qO,u=e.length,f=t.length;if(u!=f&&!(l&&f>u))return!1;var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var p=-1,c=!0,v=r&zO?new $O:void 0;for(o.set(e,t),o.set(t,e);++p<u;){var m=e[p],_=t[p];if(n)var b=l?n(_,m,p,t,e,o):n(m,_,p,e,t,o);if(b!==void 0){if(b)continue;c=!1;break}if(v){if(!GO(t,function(y,w){if(!jO(v,w)&&(m===y||i(m,y,r,n,o)))return v.push(w)})){c=!1;break}}else if(!(m===_||i(m,_,r,n,o))){c=!1;break}}return o.delete(e),o.delete(t),c}var Vp=HO,VO=Mr,WO=VO.Uint8Array,XO=WO;function KO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var YO=KO;function ZO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var QO=ZO,Wp=Gs,Xp=XO,JO=jp,tC=Vp,eC=YO,rC=QO,nC=1,iC=2,sC="[object Boolean]",oC="[object Date]",aC="[object Error]",lC="[object Map]",uC="[object Number]",fC="[object RegExp]",cC="[object Set]",hC="[object String]",dC="[object Symbol]",pC="[object ArrayBuffer]",vC="[object DataView]",Kp=Wp?Wp.prototype:void 0,Du=Kp?Kp.valueOf:void 0;function gC(e,t,r,n,i,o,l){switch(r){case vC:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pC:return!(e.byteLength!=t.byteLength||!o(new Xp(e),new Xp(t)));case sC:case oC:case uC:return JO(+e,+t);case aC:return e.name==t.name&&e.message==t.message;case fC:case hC:return e==t+"";case lC:var u=eC;case cC:var f=n&nC;if(u||(u=rC),e.size!=t.size&&!f)return!1;var h=l.get(e);if(h)return h==t;n|=iC,l.set(e,t);var d=tC(u(e),u(t),n,i,o,l);return l.delete(e),d;case dC:if(Du)return Du.call(e)==Du.call(t)}return!1}var mC=gC;function yC(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var _C=yC,bC=_C,xC=kr;function wC(e,t,r){var n=t(e);return xC(e)?n:bC(n,r(e))}var TC=wC;function EC(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var l=e[r];t(l,r,e)&&(o[i++]=l)}return o}var SC=EC;function AC(){return[]}var OC=AC,CC=SC,RC=OC,IC=Object.prototype,PC=IC.propertyIsEnumerable,Yp=Object.getOwnPropertySymbols,NC=Yp?function(e){return e==null?[]:(e=Object(e),CC(Yp(e),function(t){return PC.call(e,t)}))}:RC,MC=NC;function kC(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var LC=kC,FC=9007199254740991,BC=/^(?:0|[1-9]\d*)$/;function DC(e,t){var r=typeof e;return t=t??FC,!!t&&(r=="number"||r!="symbol"&&BC.test(e))&&e>-1&&e%1==0&&e<t}var Zp=DC,UC=LC,$C=Za,GC=kr,jC=Ja,qC=Zp,zC=tl,HC=Object.prototype,VC=HC.hasOwnProperty;function WC(e,t){var r=GC(e),n=!r&&$C(e),i=!r&&!n&&jC(e),o=!r&&!n&&!i&&zC(e),l=r||n||i||o,u=l?UC(e.length,String):[],f=u.length;for(var h in e)(t||VC.call(e,h))&&!(l&&(h=="length"||i&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||qC(h,f)))&&u.push(h);return u}var XC=WC,KC=XC,YC=pc,ZC=js;function QC(e){return ZC(e)?KC(e):YC(e)}var Uu=QC,JC=TC,tR=MC,eR=Uu;function rR(e){return JC(e,eR,tR)}var nR=rR,Qp=nR,iR=1,sR=Object.prototype,oR=sR.hasOwnProperty;function aR(e,t,r,n,i,o){var l=r&iR,u=Qp(e),f=u.length,h=Qp(t),d=h.length;if(f!=d&&!l)return!1;for(var p=f;p--;){var c=u[p];if(!(l?c in t:oR.call(t,c)))return!1}var v=o.get(e),m=o.get(t);if(v&&m)return v==t&&m==e;var _=!0;o.set(e,t),o.set(t,e);for(var b=l;++p<f;){c=u[p];var y=e[c],w=t[c];if(n)var T=l?n(w,y,c,t,e,o):n(y,w,c,e,t,o);if(!(T===void 0?y===w||i(y,w,r,n,o):T)){_=!1;break}b||(b=c=="constructor")}if(_&&!b){var x=e.constructor,E=t.constructor;x!=E&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof E=="function"&&E instanceof E)&&(_=!1)}return o.delete(e),o.delete(t),_}var lR=aR,$u=Hp,uR=Vp,fR=mC,cR=lR,Jp=Rc,tv=kr,ev=Ja,hR=tl,dR=1,rv="[object Arguments]",nv="[object Array]",Ko="[object Object]",pR=Object.prototype,iv=pR.hasOwnProperty;function vR(e,t,r,n,i,o){var l=tv(e),u=tv(t),f=l?nv:Jp(e),h=u?nv:Jp(t);f=f==rv?Ko:f,h=h==rv?Ko:h;var d=f==Ko,p=h==Ko,c=f==h;if(c&&ev(e)){if(!ev(t))return!1;l=!0,d=!1}if(c&&!d)return o||(o=new $u),l||hR(e)?uR(e,t,r,n,i,o):fR(e,t,f,r,n,i,o);if(!(r&dR)){var v=d&&iv.call(e,"__wrapped__"),m=p&&iv.call(t,"__wrapped__");if(v||m){var _=v?e.value():e,b=m?t.value():t;return o||(o=new $u),i(_,b,r,n,o)}}return c?(o||(o=new $u),cR(e,t,r,n,i,o)):!1}var gR=vR,mR=gR,sv=Zi;function ov(e,t,r,n,i){return e===t?!0:e==null||t==null||!sv(e)&&!sv(t)?e!==e&&t!==t:mR(e,t,r,n,ov,i)}var av=ov,yR=Hp,_R=av,bR=1,xR=2;function wR(e,t,r,n){var i=r.length,o=i,l=!n;if(e==null)return!o;for(e=Object(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=r[i];var f=u[0],h=e[f],d=u[1];if(l&&u[2]){if(h===void 0&&!(f in e))return!1}else{var p=new yR;if(n)var c=n(h,d,f,e,t,p);if(!(c===void 0?_R(d,h,bR|xR,n,p):c))return!1}}return!0}var TR=wR,ER=Yi;function SR(e){return e===e&&!ER(e)}var lv=SR,AR=lv,OR=Uu;function CR(e){for(var t=OR(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,AR(i)]}return t}var RR=CR;function IR(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var uv=IR,PR=TR,NR=RR,MR=uv;function kR(e){var t=NR(e);return t.length==1&&t[0][2]?MR(t[0][0],t[0][1]):function(r){return r===e||PR(r,e,t)}}var LR=kR,FR=kr,BR=qo,DR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UR=/^\w*$/;function $R(e,t){if(FR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||BR(e)?!0:UR.test(e)||!DR.test(e)||t!=null&&e in Object(t)}var Gu=$R,fv=Bu,GR="Expected a function";function ju(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(GR);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var l=e.apply(this,n);return r.cache=o.set(i,l)||o,l};return r.cache=new(ju.Cache||fv),r}ju.Cache=fv;var jR=ju,qR=jR,zR=500;function HR(e){var t=qR(e,function(n){return r.size===zR&&r.clear(),n}),r=t.cache;return t}var VR=HR,WR=VR,XR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KR=/\\(\\)?/g,YR=WR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(XR,function(r,n,i,o){t.push(i?o.replace(KR,"$1"):n||r)}),t}),ZR=YR,cv=Gs,QR=Gp,JR=kr,tI=qo,eI=1/0,hv=cv?cv.prototype:void 0,dv=hv?hv.toString:void 0;function pv(e){if(typeof e=="string")return e;if(JR(e))return QR(e,pv)+"";if(tI(e))return dv?dv.call(e):"";var t=e+"";return t=="0"&&1/e==-eI?"-0":t}var rI=pv,nI=rI;function iI(e){return e==null?"":nI(e)}var sI=iI,oI=kr,aI=Gu,lI=ZR,uI=sI;function fI(e,t){return oI(e)?e:aI(e,t)?[e]:lI(uI(e))}var vv=fI,cI=qo,hI=1/0;function dI(e){if(typeof e=="string"||cI(e))return e;var t=e+"";return t=="0"&&1/e==-hI?"-0":t}var Yo=dI,pI=vv,vI=Yo;function gI(e,t){t=pI(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[vI(t[r++])];return r&&r==n?e:void 0}var gv=gI,mI=gv;function yI(e,t,r){var n=e==null?void 0:mI(e,t);return n===void 0?r:n}var _I=yI;function bI(e,t){return e!=null&&t in Object(e)}var xI=bI,wI=vv,TI=Za,EI=kr,SI=Zp,AI=Qa,OI=Yo;function CI(e,t,r){t=wI(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var l=OI(t[n]);if(!(o=e!=null&&r(e,l)))break;e=e[l]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&AI(i)&&SI(l,i)&&(EI(e)||TI(e)))}var RI=CI,II=xI,PI=RI;function NI(e,t){return e!=null&&PI(e,t,II)}var MI=NI,kI=av,LI=_I,FI=MI,BI=Gu,DI=lv,UI=uv,$I=Yo,GI=1,jI=2;function qI(e,t){return BI(e)&&DI(t)?UI($I(e),t):function(r){var n=LI(r,e);return n===void 0&&n===t?FI(r,e):kI(t,n,GI|jI)}}var zI=qI;function HI(e){return e}var VI=HI;function WI(e){return function(t){return t==null?void 0:t[e]}}var XI=WI,KI=gv;function YI(e){return function(t){return KI(t,e)}}var ZI=YI,QI=XI,JI=ZI,tP=Gu,eP=Yo;function rP(e){return tP(e)?QI(eP(e)):JI(e)}var nP=rP,iP=LR,sP=zI,oP=VI,aP=kr,lP=nP;function uP(e){return typeof e=="function"?e:e==null?oP:typeof e=="object"?aP(e)?sP(e[0],e[1]):iP(e):lP(e)}var fP=uP;function cP(e){return function(t,r,n){for(var i=-1,o=Object(t),l=n(t),u=l.length;u--;){var f=l[e?u:++i];if(r(o[f],f,o)===!1)break}return t}}var hP=cP,dP=hP,pP=dP(),vP=pP,gP=vP,mP=Uu;function yP(e,t){return e&&gP(e,t,mP)}var _P=yP,bP=js;function xP(e,t){return function(r,n){if(r==null)return r;if(!bP(r))return e(r,n);for(var i=r.length,o=t?i:-1,l=Object(r);(t?o--:++o<i)&&n(l[o],o,l)!==!1;);return r}}var wP=xP,TP=_P,EP=wP,SP=EP(TP),AP=SP,OP=AP,CP=js;function RP(e,t){var r=-1,n=CP(e)?Array(e.length):[];return OP(e,function(i,o,l){n[++r]=t(i,o,l)}),n}var IP=RP,PP=Gp,NP=fP,MP=IP,kP=kr;function LP(e,t){var r=kP(e)?PP:MP;return r(e,NP(t))}var FP=LP;const BP=En(FP);var qn={},mv={},Yr={};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.loop=Yr.conditional=Yr.parse=void 0;var DP=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n;if(Array.isArray(r))r.forEach(function(l){return e(t,l,n,i)});else if(typeof r=="function")r(t,n,i,e);else{var o=Object.keys(r)[0];Array.isArray(r[o])?(i[o]={},e(t,r[o],n,i[o])):i[o]=r[o](t,n,i,e)}return n};Yr.parse=DP;var UP=function(t,r){return function(n,i,o,l){r(n,i,o)&&l(n,t,i,o)}};Yr.conditional=UP;var $P=function(t,r){return function(n,i,o,l){for(var u=[],f=n.pos;r(n,i,o);){var h={};if(l(n,t,i,h),n.pos===f)break;f=n.pos,u.push(h)}return u}};Yr.loop=$P;var _e={};Object.defineProperty(_e,"__esModule",{value:!0}),_e.readBits=_e.readArray=_e.readUnsigned=_e.readString=_e.peekBytes=_e.readBytes=_e.peekByte=_e.readByte=_e.buildStream=void 0;var GP=function(t){return{data:t,pos:0}};_e.buildStream=GP;var yv=function(){return function(t){return t.data[t.pos++]}};_e.readByte=yv;var jP=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(r){return r.data[r.pos+t]}};_e.peekByte=jP;var Zo=function(t){return function(r){return r.data.subarray(r.pos,r.pos+=t)}};_e.readBytes=Zo;var qP=function(t){return function(r){return r.data.subarray(r.pos,r.pos+t)}};_e.peekBytes=qP;var zP=function(t){return function(r){return Array.from(Zo(t)(r)).map(function(n){return String.fromCharCode(n)}).join("")}};_e.readString=zP;var HP=function(t){return function(r){var n=Zo(2)(r);return t?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]}};_e.readUnsigned=HP;var VP=function(t,r){return function(n,i,o){for(var l=typeof r=="function"?r(n,i,o):r,u=Zo(t),f=new Array(l),h=0;h<l;h++)f[h]=u(n);return f}};_e.readArray=VP;var WP=function(t,r,n){for(var i=0,o=0;o<n;o++)i+=t[r+o]&&Math.pow(2,n-o-1);return i},XP=function(t){return function(r){for(var n=yv()(r),i=new Array(8),o=0;o<8;o++)i[7-o]=!!(n&1<<o);return Object.keys(t).reduce(function(l,u){var f=t[u];return f.length?l[u]=WP(i,f.index,f.length):l[u]=i[f.index],l},{})}};_e.readBits=XP,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Yr,r=_e,n={blocks:function(c){for(var v=0,m=[],_=c.data.length,b=0,y=(0,r.readByte)()(c);y!==v&&y;y=(0,r.readByte)()(c)){if(c.pos+y>=_){var w=_-c.pos;m.push((0,r.readBytes)(w)(c)),b+=w;break}m.push((0,r.readBytes)(y)(c)),b+=y}for(var T=new Uint8Array(b),x=0,E=0;E<m.length;E++)T.set(m[E],x),x+=m[E].length;return T}},i=(0,t.conditional)({gce:[{codes:(0,r.readBytes)(2)},{byteSize:(0,r.readByte)()},{extras:(0,r.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,r.readUnsigned)(!0)},{transparentColorIndex:(0,r.readByte)()},{terminator:(0,r.readByte)()}]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===249}),o=(0,t.conditional)({image:[{code:(0,r.readByte)()},{descriptor:[{left:(0,r.readUnsigned)(!0)},{top:(0,r.readUnsigned)(!0)},{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{lct:(0,r.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,t.conditional)({lct:(0,r.readArray)(3,function(p,c,v){return Math.pow(2,v.descriptor.lct.size+1)})},function(p,c,v){return v.descriptor.lct.exists}),{data:[{minCodeSize:(0,r.readByte)()},n]}]},function(p){return(0,r.peekByte)()(p)===44}),l=(0,t.conditional)({text:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{preData:function(c,v,m){return(0,r.readBytes)(m.text.blockSize)(c)}},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===1}),u=(0,t.conditional)({application:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{id:function(c,v,m){return(0,r.readString)(m.blockSize)(c)}},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===255}),f=(0,t.conditional)({comment:[{codes:(0,r.readBytes)(2)},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===254}),h=[{header:[{signature:(0,r.readString)(3)},{version:(0,r.readString)(3)}]},{lsd:[{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{gct:(0,r.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,r.readByte)()},{pixelAspectRatio:(0,r.readByte)()}]},(0,t.conditional)({gct:(0,r.readArray)(3,function(p,c){return Math.pow(2,c.lsd.gct.size+1)})},function(p,c){return c.lsd.gct.exists}),{frames:(0,t.loop)([i,u,f,o,l],function(p){var c=(0,r.peekByte)()(p);return c===33||c===44})}],d=h;e.default=d}(mv);var Qo={};Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.deinterlace=void 0;var KP=function(t,r){for(var n=new Array(t.length),i=t.length/r,o=function(c,v){var m=t.slice(v*r,(v+1)*r);n.splice.apply(n,[c*r,r].concat(m))},l=[0,4,2,1],u=[8,8,4,2],f=0,h=0;h<4;h++)for(var d=l[h];d<i;d+=u[h])o(d,f),f++;return n};Qo.deinterlace=KP;var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.lzw=void 0;var YP=function(t,r,n){var i=4096,o=-1,l=n,u,f,h,d,p,c,v,I,m,_,E,b,A,O,R,L,y=new Array(n),w=new Array(i),T=new Array(i),x=new Array(i+1);for(b=t,f=1<<b,p=f+1,u=f+2,v=o,d=b+1,h=(1<<d)-1,m=0;m<f;m++)w[m]=0,T[m]=m;var E,I,A,O,L,R;for(E=I=A=O=L=R=0,_=0;_<l;){if(O===0){if(I<d){E+=r[R]<<I,I+=8,R++;continue}if(m=E&h,E>>=d,I-=d,m>u||m==p)break;if(m==f){d=b+1,h=(1<<d)-1,u=f+2,v=o;continue}if(v==o){x[O++]=T[m],v=m,A=m;continue}for(c=m,m==u&&(x[O++]=A,m=v);m>f;)x[O++]=T[m],m=w[m];A=T[m]&255,x[O++]=A,u<i&&(w[u]=v,T[u]=A,u++,!(u&h)&&u<i&&(d++,h+=u)),v=c}O--,y[L++]=x[O],_++}for(_=L;_<l;_++)y[_]=0;return y};Jo.lzw=YP,Object.defineProperty(qn,"__esModule",{value:!0}),qn.decompressFrames=qn.decompressFrame=qn.parseGIF=void 0;var ZP=rN(mv),QP=Yr,JP=_e,tN=Qo,eN=Jo;function rN(e){return e&&e.__esModule?e:{default:e}}var nN=function(t){var r=new Uint8Array(t);return(0,QP.parse)((0,JP.buildStream)(r),ZP.default)};qn.parseGIF=nN;var iN=function(t){for(var r=t.pixels.length,n=new Uint8ClampedArray(r*4),i=0;i<r;i++){var o=i*4,l=t.pixels[i],u=t.colorTable[l]||[0,0,0];n[o]=u[0],n[o+1]=u[1],n[o+2]=u[2],n[o+3]=l!==t.transparentIndex?255:0}return n},_v=function(t,r,n){if(!t.image){console.warn("gif frame does not have associated image.");return}var i=t.image,o=i.descriptor.width*i.descriptor.height,l=(0,eN.lzw)(i.data.minCodeSize,i.data.blocks,o);i.descriptor.lct.interlaced&&(l=(0,tN.deinterlace)(l,i.descriptor.width));var u={pixels:l,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return i.descriptor.lct&&i.descriptor.lct.exists?u.colorTable=i.lct:u.colorTable=r,t.gce&&(u.delay=(t.gce.delay||10)*10,u.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(u.transparentIndex=t.gce.transparentColorIndex)),n&&(u.patch=iN(u)),u};qn.decompressFrame=_v;var sN=function(t,r){return t.frames.filter(function(n){return n.image}).map(function(n){return _v(n,t.gct,r)})};qn.decompressFrames=sN;const bv=(e,t={})=>{typeof t=="function"&&(t=t(e));const r=t.loaded&&e.loaded!==t.loaded,{playing:n,...i}=t,o={...e,...i};return r&&Object.assign(o,{playing:o.autoPlay&&o.loaded}),(t.delays!=null||t.frames!=null)&&Object.assign(o,{length:o.frames.length}),(t.index!=null||t.frames!=null)&&Object.assign(o,{index:o.length===0?0:(o.length+o.index)%o.length}),t.playing!=null&&Object.assign(o,o.loaded?{playing:n}:{autoPlay:n}),o},oN=e=>bv({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},e),aN=e=>_t.useReducer(bv,e,oN);var lN='function e(e){var r={exports:{}};return e(r,r.exports),r.exports}var r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.loop=r.conditional=r.parse=void 0;r.parse=function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(t))t.forEach((function(t){return e(r,t,n,a)}));else if("function"==typeof t)t(r,n,a,e);else{var i=Object.keys(t)[0];Array.isArray(t[i])?(a[i]={},e(r,t[i],n,a[i])):a[i]=t[i](r,n,a,e)}return n};r.conditional=function(e,r){return function(t,n,a,i){r(t,n,a)&&i(t,e,n,a)}};r.loop=function(e,r){return function(t,n,a,i){for(var o=[];r(t,n,a);){var s={};i(t,e,n,s),o.push(s)}return o}}})),t=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readBits=r.readArray=r.readUnsigned=r.readString=r.peekBytes=r.readBytes=r.peekByte=r.readByte=r.buildStream=void 0;r.buildStream=function(e){return{data:e,pos:0}};var t=function(){return function(e){return e.data[e.pos++]}};r.readByte=t;r.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(r){return r.data[r.pos+e]}};var n=function(e){return function(r){return r.data.subarray(r.pos,r.pos+=e)}};r.readBytes=n;r.peekBytes=function(e){return function(r){return r.data.subarray(r.pos,r.pos+e)}};r.readString=function(e){return function(r){return Array.from(n(e)(r)).map((function(e){return String.fromCharCode(e)})).join("")}};r.readUnsigned=function(e){return function(r){var t=n(2)(r);return e?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}};r.readArray=function(e,r){return function(t,a,i){for(var o="function"==typeof r?r(t,a,i):r,s=n(e),d=new Array(o),c=0;c<o;c++)d[c]=s(t);return d}};r.readBits=function(e){return function(r){for(var t=function(e){return e.data[e.pos++]}(r),n=new Array(8),a=0;a<8;a++)n[7-a]=!!(t&1<<a);return Object.keys(e).reduce((function(r,t){var a=e[t];return a.length?r[t]=function(e,r,t){for(var n=0,a=0;a<t;a++)n+=e[r+a]&&Math.pow(2,t-a-1);return n}(n,a.index,a.length):r[t]=n[a.index],r}),{})}}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={blocks:function(e){for(var r=[],n=e.data.length,a=0,i=(0,t.readByte)()(e);0!==i;i=(0,t.readByte)()(e)){if(e.pos+i>=n){var o=n-e.pos;r.push((0,t.readBytes)(o)(e)),a+=o;break}r.push((0,t.readBytes)(i)(e)),a+=i}for(var s=new Uint8Array(a),d=0,c=0;c<r.length;c++)s.set(r[c],d),d+=r[c].length;return s}},i=(0,r.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&249===r[1]})),o=(0,r.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,t.readArray)(3,(function(e,r,t){return Math.pow(2,t.descriptor.lct.size+1)}))},(function(e,r,t){return t.descriptor.lct.exists})),{data:[{minCodeSize:(0,t.readByte)()},a]}]},(function(e){return 44===(0,t.peekByte)()(e)})),s=(0,r.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(e,r,n){return(0,t.readBytes)(n.text.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&1===r[1]})),d=(0,r.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(e,r,n){return(0,t.readString)(n.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&255===r[1]})),c=(0,r.conditional)({comment:[{codes:(0,t.readBytes)(2)},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&254===r[1]})),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,r.conditional)({gct:(0,t.readArray)(3,(function(e,r){return Math.pow(2,r.lsd.gct.size+1)}))},(function(e,r){return r.lsd.gct.exists})),{frames:(0,r.loop)([i,d,c,o,s],(function(e){var r=(0,t.peekByte)()(e);return 33===r||44===r}))}];n.default=u})),a=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.deinterlace=void 0;r.deinterlace=function(e,r){for(var t=new Array(e.length),n=e.length/r,a=function(n,a){var i=e.slice(a*r,(a+1)*r);t.splice.apply(t,[n*r,r].concat(i))},i=[0,4,2,1],o=[8,8,4,2],s=0,d=0;d<4;d++)for(var c=i[d];c<n;c+=o[d])a(c,s),s++;return t}})),i=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lzw=void 0;r.lzw=function(e,r,t){var n,a,i,o,s,d,c,u,l,f,p,g,y,h,v,m,x=4096,B=t,w=new Array(t),b=new Array(x),k=new Array(x),A=new Array(4097);for(s=(a=1<<(f=e))+1,n=a+2,c=-1,i=(1<<(o=f+1))-1,u=0;u<a;u++)b[u]=0,k[u]=u;for(p=g=y=h=v=m=0,l=0;l<B;){if(0===h){if(g<o){p+=r[m]<<g,g+=8,m++;continue}if(u=p&i,p>>=o,g-=o,u>n||u==s)break;if(u==a){i=(1<<(o=f+1))-1,n=a+2,c=-1;continue}if(-1==c){A[h++]=k[u],c=u,y=u;continue}for(d=u,u==n&&(A[h++]=y,u=c);u>a;)A[h++]=k[u],u=b[u];y=255&k[u],A[h++]=y,n<x&&(b[n]=c,k[n]=y,0==(++n&i)&&n<x&&(o++,i+=n)),c=d}h--,w[v++]=A[h],l++}for(l=v;l<B;l++)w[l]=0;return w}})),o=e((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.decompressFrames=o.decompressFrame=o.parseGIF=void 0;var s,d=(s=n)&&s.__esModule?s:{default:s};o.parseGIF=function(e){var n=new Uint8Array(e);return(0,r.parse)((0,t.buildStream)(n),d.default)};var c=function(e,r,t){if(e.image){var n=e.image,o=n.descriptor.width*n.descriptor.height,s=(0,i.lzw)(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(s=(0,a.deinterlace)(s,n.descriptor.width));var d={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?d.colorTable=n.lct:d.colorTable=r,e.gce&&(d.delay=10*(e.gce.delay||10),d.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(d.transparentIndex=e.gce.transparentColorIndex)),t&&(d.patch=function(e){for(var r=e.pixels.length,t=new Uint8ClampedArray(4*r),n=0;n<r;n++){var a=4*n,i=e.pixels[n],o=e.colorTable[i]||[0,0,0];t[a]=o[0],t[a+1]=o[1],t[a+2]=o[2],t[a+3]=i!==e.transparentIndex?255:0}return t}(d)),d}console.warn("gif frame does not have associated image.")};o.decompressFrame=c;o.decompressFrames=function(e,r){return e.frames.filter((function(e){return e.image})).map((function(t){return c(t,e.gct,r)}))}}));const s=(e,r,t)=>{const{width:n,height:a,top:i,left:o}=r.dims,s=i*t.width+o;for(let i=0;i<a;i++)for(let a=0;a<n;a++){const o=i*n+a,d=r.pixels[o];if(d!==r.transparentIndex){const n=s+i*t.width+a,o=r.colorTable[d]||[0,0,0];e[4*n]=o[0],e[4*n+1]=o[1],e[4*n+2]=o[2],e[4*n+3]=255}}return e},d=new Map;self.addEventListener("message",(e=>{const{type:r,src:t}=e.data||e;switch(r){case"parse":if(!d.has(t)){const e=new AbortController,r={signal:e.signal};d.set(t,e),((e,{signal:r})=>fetch(e,{signal:r}).then((e=>{if(!e.headers.get("Content-Type").includes("image/gif"))throw Error(`Wrong content type: "${e.headers.get("Content-Type")}"`);return e.arrayBuffer()})).then((e=>o.parseGIF(e))).then((e=>((e=>{let r=null;for(const t of e.frames)r=t.gce?t.gce:r,"image"in t&&!("gce"in t)&&(t.gce=r)})(e),e))).then((e=>Promise.all([o.decompressFrames(e,!1),{width:e.lsd.width,height:e.lsd.height}]))).then((([e,r])=>{const t=[],n=r.width*r.height*4;for(let a=0;a<e.length;++a){const i=e[a],o=0===a||2===e[a-1].disposalType?new Uint8ClampedArray(n):t[a-1].slice();t.push(s(o,i,r))}return{...r,loaded:!0,delays:e.map((e=>e.delay)),frames:t}})))(t,r).then((e=>{self.postMessage(Object.assign(e,{src:t}),e.frames.map((e=>e.buffer)))})).catch((e=>{self.postMessage({src:t,error:e,loaded:!0})})).finally((()=>{d.delete(t)}))}break;case"cancel":if(d.has(t)){d.get(t).abort(),d.delete(t)}}}));\n';function uN(e){const t=new Blob([lN],{type:"application/javascript"}),r=URL.createObjectURL(t),n=new Worker(r,e);return URL.revokeObjectURL(r),n}const fN=e=>({...e,frames:e.frames.map(t=>{const r=new ImageData(e.width,e.height);return r.data.set(new Uint8ClampedArray(t)),r})}),cN=(e,t)=>{const r={};return()=>(r.instance||(r.instance=e()),_t.useLayoutEffect(()=>(r.timeout?(clearTimeout(r.timeout),delete r.timeout):r.usageCount=(r.usageCount||0)+1,()=>{r.timeout=setTimeout(()=>{r.usageCount=r.usageCount-1,r.usageCount===0&&(t&&t(r.instance),delete r.instance,delete r.timeout)})}),[r,t]),r.instance)},hN=e=>{const t=_t.useRef(e);return _t.useEffect(()=>{t.current=e},[e]),t},dN=e=>{const t=hN(e);return _t.useCallback(r=>t.current&&t.current(r),[])},pN=cN(()=>new uN,e=>e.terminate()),vN=(e,t)=>{const r=dN(t),n=pN();_t.useEffect(()=>{if(typeof e=="string"){const i=o=>{const l=o.data||o;if(l.src===e){const u=l.error?l:fN(l);r(u)}};return n.addEventListener("message",i),n.postMessage({src:e,type:"parse"}),()=>{n.postMessage({src:e,type:"cancel"}),n.removeEventListener("message",i)}}},[n,e])},gN=({isPlaying:e,forwardRef:t,...r})=>{const n=Et.useRef(null);return Et.useImperativeHandle(t,()=>n.current,[n]),Et.useEffect(()=>{if(n.current===null)return;const i=n.current;i[e?"gotoAndPlay":"gotoAndStop"](i.currentFrame)},[e]),Yt.jsx(me.AnimatedSprite,{ref:n,...r,isPlaying:e})},xv=Et.memo(gN);var ta={exports:{}};/**
1934
+ </svg>`,M=new M2(P),F=x.renderer.generateTexture(M);return n(F),()=>{}},[x,u,_,b,v,m]),Yt.jsx(ni,{...e,ref:t,children:Yt.jsx(me.Container,{ref:o,children:Yt.jsx(me.Container,{ref:l,children:r&&Yt.jsx(me.Sprite,{texture:r,width:d,height:p,anchor:c,ref:i,x:f,y:h,interactive:!0,pointerdown:w,pointerup:T,filters:[E,I,A,L,...R>0?[O]:[]]})})})})});var lS=Mr,uS=function(){return lS.Date.now()},fS=uS,cS=/\s/;function hS(e){for(var t=e.length;t--&&cS.test(e.charAt(t)););return t}var dS=hS,pS=dS,vS=/^\s+/;function gS(e){return e&&e.slice(0,pS(e)+1).replace(vS,"")}var mS=gS,yS=Ki,_S=Zi,bS="[object Symbol]";function xS(e){return typeof e=="symbol"||_S(e)&&yS(e)==bS}var qo=xS,wS=mS,Bp=Yi,TS=qo,Dp=0/0,ES=/^[-+]0x[0-9a-f]+$/i,SS=/^0b[01]+$/i,AS=/^0o[0-7]+$/i,OS=parseInt;function CS(e){if(typeof e=="number")return e;if(TS(e))return Dp;if(Bp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Bp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=wS(e);var r=SS.test(e);return r||AS.test(e)?OS(e.slice(2),r?2:8):ES.test(e)?Dp:+e}var RS=CS,IS=Yi,Fu=fS,Up=RS,PS="Expected a function",NS=Math.max,MS=Math.min;function kS(e,t,r){var n,i,o,l,u,f,h=0,d=!1,p=!1,c=!0;if(typeof e!="function")throw new TypeError(PS);t=Up(t)||0,IS(r)&&(d=!!r.leading,p="maxWait"in r,o=p?NS(Up(r.maxWait)||0,t):o,c="trailing"in r?!!r.trailing:c);function v(I){var A=n,O=i;return n=i=void 0,h=I,l=e.apply(O,A),l}function m(I){return h=I,u=setTimeout(y,t),d?v(I):l}function _(I){var A=I-f,O=I-h,L=t-A;return p?MS(L,o-O):L}function b(I){var A=I-f,O=I-h;return f===void 0||A>=t||A<0||p&&O>=o}function y(){var I=Fu();if(b(I))return w(I);u=setTimeout(y,_(I))}function w(I){return u=void 0,c&&n?v(I):(n=i=void 0,l)}function T(){u!==void 0&&clearTimeout(u),h=0,n=f=i=u=void 0}function x(){return u===void 0?l:w(Fu())}function E(){var I=Fu(),A=b(I);if(n=arguments,i=this,f=I,A){if(u===void 0)return m(f);if(p)return clearTimeout(u),u=setTimeout(y,t),v(f)}return u===void 0&&(u=setTimeout(y,t)),l}return E.cancel=T,E.flush=x,E}var LS=kS;const $p=En(LS),FS=e=>{const t={isPlaying:!1,progress:0,speed:1,mute:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1},[,r]=Et.useState(!1),n=_t.useRef(null),i=_t.useRef(t),o=_t.useRef(null),{tl:l,isDragging:u}=_t.useContext(ti),{uniqueId:f,src:h,startAt:d,endAt:p,mute:c,speed:v}=e,m=e.audioStartAt||d,_=e.audioEndAt||p,b=Et.useRef(null);mr(ke.PAUSE,()=>{var A;n.current&&b.current&&((A=b.current)==null||A.pause(),i.current.isPlaying=!1)}),Et.useEffect(()=>{b.current&&(u?(b.current.pause(),i.current.isPlaying=!1,i.current.isDragging=!0):i.current.isDragging=!1)},[u]);const y=A=>{var O,L;n.current&&((O=b.current)==null||O.play({volume:c?0:1,start:A,end:p,speed:v||1}),u?((L=b.current)==null||L.pause(),i.current.isPlaying=!1,i.current.completed=!1):(i.current.isPlaying=!0,i.current.completed=!1))},w=$p((A,O)=>{var L;b.current&&((L=b.current)==null||L.play({volume:c?0:1,start:A,end:O,speed:v||1}),i.current.isPlaying=!0)},100),T=$p(()=>{b.current&&(b.current.pause(),i.current.isPlaying=!1)},300),x=()=>{var A;n.current&&((A=b.current)==null||A.stop(),i.current.isPlaying=!1,i.current.completed=!0)},E=(A,O)=>{var R,C,P,M;const L=A+((R=o.current)==null?void 0:R.time());b.current&&i.current.isDragging?(w(L,O),T(),i.current.isPlaying=!1):n.current&&!i.current.isPlaying&&((C=b.current)==null||C.refresh(),(P=b.current)==null||P.refreshPaused(),(M=b.current)==null||M.resume(),i.current.isPlaying=!0)},I=()=>{};return _t.useEffect(()=>{let A=Te.context(()=>{});if(n.current&&l.current){const O={duration:Number(_)-Number(m),onStart:y,onComplete:x,onStartParams:[m,_],onCompleteParams:[],onInterrupt:I,onUpdate:E,onUpdateParams:[m,_]};o.current&&o.current.kill(),A=Te.context(()=>{o.current=Te.from(n.current,O,m),l.current.to(n.current,{alpha:1,duration:.01},d).to(n.current,{alpha:0,duration:.1},Number(p)-.09),l.current.add(o.current,d)})}return()=>{o.current&&(o.current.kill(),Te.killTweensOf(o.current)),A.revert()}},[d,p,m,_]),Et.useEffect(()=>{n.current&&r(!0)},[]),Et.useEffect(()=>{n.current&&b.current&&(i.current.mute=c,i.current.speed=v,b.current.volume=c?0:1)},[c,v]),Et.useEffect(()=>(el(h)||(b.current=ly.Sound.from({url:h,preload:!0,singleInstance:!0,loaded:()=>{i.current.loaded=!0}})),()=>{b.current&&(b.current.pause&&b.current.pause(),b.current.destroy&&b.current.destroy())}),[f,h]),Yt.jsx(me.Container,{ref:n})};function BS(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}var Gp=BS;function DS(){this.__data__=[],this.size=0}var US=DS;function $S(e,t){return e===t||e!==e&&t!==t}var jp=$S,GS=jp;function jS(e,t){for(var r=e.length;r--;)if(GS(e[r][0],t))return r;return-1}var zo=jS,qS=zo,zS=Array.prototype,HS=zS.splice;function VS(e){var t=this.__data__,r=qS(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():HS.call(t,r,1),--this.size,!0}var WS=VS,XS=zo;function KS(e){var t=this.__data__,r=XS(t,e);return r<0?void 0:t[r][1]}var YS=KS,ZS=zo;function QS(e){return ZS(this.__data__,e)>-1}var JS=QS,tA=zo;function eA(e,t){var r=this.__data__,n=tA(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var rA=eA,nA=US,iA=WS,sA=YS,oA=JS,aA=rA;function Ii(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ii.prototype.clear=nA,Ii.prototype.delete=iA,Ii.prototype.get=sA,Ii.prototype.has=oA,Ii.prototype.set=aA;var Ho=Ii,lA=Ho;function uA(){this.__data__=new lA,this.size=0}var fA=uA;function cA(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var hA=cA;function dA(e){return this.__data__.get(e)}var pA=dA;function vA(e){return this.__data__.has(e)}var gA=vA,mA=ei,yA=mA(Object,"create"),Vo=yA,qp=Vo;function _A(){this.__data__=qp?qp(null):{},this.size=0}var bA=_A;function xA(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var wA=xA,TA=Vo,EA="__lodash_hash_undefined__",SA=Object.prototype,AA=SA.hasOwnProperty;function OA(e){var t=this.__data__;if(TA){var r=t[e];return r===EA?void 0:r}return AA.call(t,e)?t[e]:void 0}var CA=OA,RA=Vo,IA=Object.prototype,PA=IA.hasOwnProperty;function NA(e){var t=this.__data__;return RA?t[e]!==void 0:PA.call(t,e)}var MA=NA,kA=Vo,LA="__lodash_hash_undefined__";function FA(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=kA&&t===void 0?LA:t,this}var BA=FA,DA=bA,UA=wA,$A=CA,GA=MA,jA=BA;function Pi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Pi.prototype.clear=DA,Pi.prototype.delete=UA,Pi.prototype.get=$A,Pi.prototype.has=GA,Pi.prototype.set=jA;var qA=Pi,zp=qA,zA=Ho,HA=Ha;function VA(){this.size=0,this.__data__={hash:new zp,map:new(HA||zA),string:new zp}}var WA=VA;function XA(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var KA=XA,YA=KA;function ZA(e,t){var r=e.__data__;return YA(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Wo=ZA,QA=Wo;function JA(e){var t=QA(this,e).delete(e);return this.size-=t?1:0,t}var tO=JA,eO=Wo;function rO(e){return eO(this,e).get(e)}var nO=rO,iO=Wo;function sO(e){return iO(this,e).has(e)}var oO=sO,aO=Wo;function lO(e,t){var r=aO(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var uO=lO,fO=WA,cO=tO,hO=nO,dO=oO,pO=uO;function Ni(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ni.prototype.clear=fO,Ni.prototype.delete=cO,Ni.prototype.get=hO,Ni.prototype.has=dO,Ni.prototype.set=pO;var Bu=Ni,vO=Ho,gO=Ha,mO=Bu,yO=200;function _O(e,t){var r=this.__data__;if(r instanceof vO){var n=r.__data__;if(!gO||n.length<yO-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new mO(n)}return r.set(e,t),this.size=r.size,this}var bO=_O,xO=Ho,wO=fA,TO=hA,EO=pA,SO=gA,AO=bO;function Mi(e){var t=this.__data__=new xO(e);this.size=t.size}Mi.prototype.clear=wO,Mi.prototype.delete=TO,Mi.prototype.get=EO,Mi.prototype.has=SO,Mi.prototype.set=AO;var Hp=Mi,OO="__lodash_hash_undefined__";function CO(e){return this.__data__.set(e,OO),this}var RO=CO;function IO(e){return this.__data__.has(e)}var PO=IO,NO=Bu,MO=RO,kO=PO;function Xo(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new NO;++t<r;)this.add(e[t])}Xo.prototype.add=Xo.prototype.push=MO,Xo.prototype.has=kO;var LO=Xo;function FO(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var BO=FO;function DO(e,t){return e.has(t)}var UO=DO,$O=LO,GO=BO,jO=UO,qO=1,zO=2;function HO(e,t,r,n,i,o){var l=r&qO,u=e.length,f=t.length;if(u!=f&&!(l&&f>u))return!1;var h=o.get(e),d=o.get(t);if(h&&d)return h==t&&d==e;var p=-1,c=!0,v=r&zO?new $O:void 0;for(o.set(e,t),o.set(t,e);++p<u;){var m=e[p],_=t[p];if(n)var b=l?n(_,m,p,t,e,o):n(m,_,p,e,t,o);if(b!==void 0){if(b)continue;c=!1;break}if(v){if(!GO(t,function(y,w){if(!jO(v,w)&&(m===y||i(m,y,r,n,o)))return v.push(w)})){c=!1;break}}else if(!(m===_||i(m,_,r,n,o))){c=!1;break}}return o.delete(e),o.delete(t),c}var Vp=HO,VO=Mr,WO=VO.Uint8Array,XO=WO;function KO(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}var YO=KO;function ZO(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var QO=ZO,Wp=Gs,Xp=XO,JO=jp,tC=Vp,eC=YO,rC=QO,nC=1,iC=2,sC="[object Boolean]",oC="[object Date]",aC="[object Error]",lC="[object Map]",uC="[object Number]",fC="[object RegExp]",cC="[object Set]",hC="[object String]",dC="[object Symbol]",pC="[object ArrayBuffer]",vC="[object DataView]",Kp=Wp?Wp.prototype:void 0,Du=Kp?Kp.valueOf:void 0;function gC(e,t,r,n,i,o,l){switch(r){case vC:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case pC:return!(e.byteLength!=t.byteLength||!o(new Xp(e),new Xp(t)));case sC:case oC:case uC:return JO(+e,+t);case aC:return e.name==t.name&&e.message==t.message;case fC:case hC:return e==t+"";case lC:var u=eC;case cC:var f=n&nC;if(u||(u=rC),e.size!=t.size&&!f)return!1;var h=l.get(e);if(h)return h==t;n|=iC,l.set(e,t);var d=tC(u(e),u(t),n,i,o,l);return l.delete(e),d;case dC:if(Du)return Du.call(e)==Du.call(t)}return!1}var mC=gC;function yC(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}var _C=yC,bC=_C,xC=kr;function wC(e,t,r){var n=t(e);return xC(e)?n:bC(n,r(e))}var TC=wC;function EC(e,t){for(var r=-1,n=e==null?0:e.length,i=0,o=[];++r<n;){var l=e[r];t(l,r,e)&&(o[i++]=l)}return o}var SC=EC;function AC(){return[]}var OC=AC,CC=SC,RC=OC,IC=Object.prototype,PC=IC.propertyIsEnumerable,Yp=Object.getOwnPropertySymbols,NC=Yp?function(e){return e==null?[]:(e=Object(e),CC(Yp(e),function(t){return PC.call(e,t)}))}:RC,MC=NC;function kC(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var LC=kC,FC=9007199254740991,BC=/^(?:0|[1-9]\d*)$/;function DC(e,t){var r=typeof e;return t=t??FC,!!t&&(r=="number"||r!="symbol"&&BC.test(e))&&e>-1&&e%1==0&&e<t}var Zp=DC,UC=LC,$C=Za,GC=kr,jC=Ja,qC=Zp,zC=tl,HC=Object.prototype,VC=HC.hasOwnProperty;function WC(e,t){var r=GC(e),n=!r&&$C(e),i=!r&&!n&&jC(e),o=!r&&!n&&!i&&zC(e),l=r||n||i||o,u=l?UC(e.length,String):[],f=u.length;for(var h in e)(t||VC.call(e,h))&&!(l&&(h=="length"||i&&(h=="offset"||h=="parent")||o&&(h=="buffer"||h=="byteLength"||h=="byteOffset")||qC(h,f)))&&u.push(h);return u}var XC=WC,KC=XC,YC=pc,ZC=js;function QC(e){return ZC(e)?KC(e):YC(e)}var Uu=QC,JC=TC,tR=MC,eR=Uu;function rR(e){return JC(e,eR,tR)}var nR=rR,Qp=nR,iR=1,sR=Object.prototype,oR=sR.hasOwnProperty;function aR(e,t,r,n,i,o){var l=r&iR,u=Qp(e),f=u.length,h=Qp(t),d=h.length;if(f!=d&&!l)return!1;for(var p=f;p--;){var c=u[p];if(!(l?c in t:oR.call(t,c)))return!1}var v=o.get(e),m=o.get(t);if(v&&m)return v==t&&m==e;var _=!0;o.set(e,t),o.set(t,e);for(var b=l;++p<f;){c=u[p];var y=e[c],w=t[c];if(n)var T=l?n(w,y,c,t,e,o):n(y,w,c,e,t,o);if(!(T===void 0?y===w||i(y,w,r,n,o):T)){_=!1;break}b||(b=c=="constructor")}if(_&&!b){var x=e.constructor,E=t.constructor;x!=E&&"constructor"in e&&"constructor"in t&&!(typeof x=="function"&&x instanceof x&&typeof E=="function"&&E instanceof E)&&(_=!1)}return o.delete(e),o.delete(t),_}var lR=aR,$u=Hp,uR=Vp,fR=mC,cR=lR,Jp=Rc,tv=kr,ev=Ja,hR=tl,dR=1,rv="[object Arguments]",nv="[object Array]",Ko="[object Object]",pR=Object.prototype,iv=pR.hasOwnProperty;function vR(e,t,r,n,i,o){var l=tv(e),u=tv(t),f=l?nv:Jp(e),h=u?nv:Jp(t);f=f==rv?Ko:f,h=h==rv?Ko:h;var d=f==Ko,p=h==Ko,c=f==h;if(c&&ev(e)){if(!ev(t))return!1;l=!0,d=!1}if(c&&!d)return o||(o=new $u),l||hR(e)?uR(e,t,r,n,i,o):fR(e,t,f,r,n,i,o);if(!(r&dR)){var v=d&&iv.call(e,"__wrapped__"),m=p&&iv.call(t,"__wrapped__");if(v||m){var _=v?e.value():e,b=m?t.value():t;return o||(o=new $u),i(_,b,r,n,o)}}return c?(o||(o=new $u),cR(e,t,r,n,i,o)):!1}var gR=vR,mR=gR,sv=Zi;function ov(e,t,r,n,i){return e===t?!0:e==null||t==null||!sv(e)&&!sv(t)?e!==e&&t!==t:mR(e,t,r,n,ov,i)}var av=ov,yR=Hp,_R=av,bR=1,xR=2;function wR(e,t,r,n){var i=r.length,o=i,l=!n;if(e==null)return!o;for(e=Object(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<o;){u=r[i];var f=u[0],h=e[f],d=u[1];if(l&&u[2]){if(h===void 0&&!(f in e))return!1}else{var p=new yR;if(n)var c=n(h,d,f,e,t,p);if(!(c===void 0?_R(d,h,bR|xR,n,p):c))return!1}}return!0}var TR=wR,ER=Yi;function SR(e){return e===e&&!ER(e)}var lv=SR,AR=lv,OR=Uu;function CR(e){for(var t=OR(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,AR(i)]}return t}var RR=CR;function IR(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var uv=IR,PR=TR,NR=RR,MR=uv;function kR(e){var t=NR(e);return t.length==1&&t[0][2]?MR(t[0][0],t[0][1]):function(r){return r===e||PR(r,e,t)}}var LR=kR,FR=kr,BR=qo,DR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,UR=/^\w*$/;function $R(e,t){if(FR(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||BR(e)?!0:UR.test(e)||!DR.test(e)||t!=null&&e in Object(t)}var Gu=$R,fv=Bu,GR="Expected a function";function ju(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(GR);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var l=e.apply(this,n);return r.cache=o.set(i,l)||o,l};return r.cache=new(ju.Cache||fv),r}ju.Cache=fv;var jR=ju,qR=jR,zR=500;function HR(e){var t=qR(e,function(n){return r.size===zR&&r.clear(),n}),r=t.cache;return t}var VR=HR,WR=VR,XR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KR=/\\(\\)?/g,YR=WR(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(XR,function(r,n,i,o){t.push(i?o.replace(KR,"$1"):n||r)}),t}),ZR=YR,cv=Gs,QR=Gp,JR=kr,tI=qo,eI=1/0,hv=cv?cv.prototype:void 0,dv=hv?hv.toString:void 0;function pv(e){if(typeof e=="string")return e;if(JR(e))return QR(e,pv)+"";if(tI(e))return dv?dv.call(e):"";var t=e+"";return t=="0"&&1/e==-eI?"-0":t}var rI=pv,nI=rI;function iI(e){return e==null?"":nI(e)}var sI=iI,oI=kr,aI=Gu,lI=ZR,uI=sI;function fI(e,t){return oI(e)?e:aI(e,t)?[e]:lI(uI(e))}var vv=fI,cI=qo,hI=1/0;function dI(e){if(typeof e=="string"||cI(e))return e;var t=e+"";return t=="0"&&1/e==-hI?"-0":t}var Yo=dI,pI=vv,vI=Yo;function gI(e,t){t=pI(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[vI(t[r++])];return r&&r==n?e:void 0}var gv=gI,mI=gv;function yI(e,t,r){var n=e==null?void 0:mI(e,t);return n===void 0?r:n}var _I=yI;function bI(e,t){return e!=null&&t in Object(e)}var xI=bI,wI=vv,TI=Za,EI=kr,SI=Zp,AI=Qa,OI=Yo;function CI(e,t,r){t=wI(t,e);for(var n=-1,i=t.length,o=!1;++n<i;){var l=OI(t[n]);if(!(o=e!=null&&r(e,l)))break;e=e[l]}return o||++n!=i?o:(i=e==null?0:e.length,!!i&&AI(i)&&SI(l,i)&&(EI(e)||TI(e)))}var RI=CI,II=xI,PI=RI;function NI(e,t){return e!=null&&PI(e,t,II)}var MI=NI,kI=av,LI=_I,FI=MI,BI=Gu,DI=lv,UI=uv,$I=Yo,GI=1,jI=2;function qI(e,t){return BI(e)&&DI(t)?UI($I(e),t):function(r){var n=LI(r,e);return n===void 0&&n===t?FI(r,e):kI(t,n,GI|jI)}}var zI=qI;function HI(e){return e}var VI=HI;function WI(e){return function(t){return t==null?void 0:t[e]}}var XI=WI,KI=gv;function YI(e){return function(t){return KI(t,e)}}var ZI=YI,QI=XI,JI=ZI,tP=Gu,eP=Yo;function rP(e){return tP(e)?QI(eP(e)):JI(e)}var nP=rP,iP=LR,sP=zI,oP=VI,aP=kr,lP=nP;function uP(e){return typeof e=="function"?e:e==null?oP:typeof e=="object"?aP(e)?sP(e[0],e[1]):iP(e):lP(e)}var fP=uP;function cP(e){return function(t,r,n){for(var i=-1,o=Object(t),l=n(t),u=l.length;u--;){var f=l[e?u:++i];if(r(o[f],f,o)===!1)break}return t}}var hP=cP,dP=hP,pP=dP(),vP=pP,gP=vP,mP=Uu;function yP(e,t){return e&&gP(e,t,mP)}var _P=yP,bP=js;function xP(e,t){return function(r,n){if(r==null)return r;if(!bP(r))return e(r,n);for(var i=r.length,o=t?i:-1,l=Object(r);(t?o--:++o<i)&&n(l[o],o,l)!==!1;);return r}}var wP=xP,TP=_P,EP=wP,SP=EP(TP),AP=SP,OP=AP,CP=js;function RP(e,t){var r=-1,n=CP(e)?Array(e.length):[];return OP(e,function(i,o,l){n[++r]=t(i,o,l)}),n}var IP=RP,PP=Gp,NP=fP,MP=IP,kP=kr;function LP(e,t){var r=kP(e)?PP:MP;return r(e,NP(t))}var FP=LP;const BP=En(FP);var qn={},mv={},Yr={};Object.defineProperty(Yr,"__esModule",{value:!0}),Yr.loop=Yr.conditional=Yr.parse=void 0;var DP=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:n;if(Array.isArray(r))r.forEach(function(l){return e(t,l,n,i)});else if(typeof r=="function")r(t,n,i,e);else{var o=Object.keys(r)[0];Array.isArray(r[o])?(i[o]={},e(t,r[o],n,i[o])):i[o]=r[o](t,n,i,e)}return n};Yr.parse=DP;var UP=function(t,r){return function(n,i,o,l){r(n,i,o)&&l(n,t,i,o)}};Yr.conditional=UP;var $P=function(t,r){return function(n,i,o,l){for(var u=[],f=n.pos;r(n,i,o);){var h={};if(l(n,t,i,h),n.pos===f)break;f=n.pos,u.push(h)}return u}};Yr.loop=$P;var _e={};Object.defineProperty(_e,"__esModule",{value:!0}),_e.readBits=_e.readArray=_e.readUnsigned=_e.readString=_e.peekBytes=_e.readBytes=_e.peekByte=_e.readByte=_e.buildStream=void 0;var GP=function(t){return{data:t,pos:0}};_e.buildStream=GP;var yv=function(){return function(t){return t.data[t.pos++]}};_e.readByte=yv;var jP=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(r){return r.data[r.pos+t]}};_e.peekByte=jP;var Zo=function(t){return function(r){return r.data.subarray(r.pos,r.pos+=t)}};_e.readBytes=Zo;var qP=function(t){return function(r){return r.data.subarray(r.pos,r.pos+t)}};_e.peekBytes=qP;var zP=function(t){return function(r){return Array.from(Zo(t)(r)).map(function(n){return String.fromCharCode(n)}).join("")}};_e.readString=zP;var HP=function(t){return function(r){var n=Zo(2)(r);return t?(n[1]<<8)+n[0]:(n[0]<<8)+n[1]}};_e.readUnsigned=HP;var VP=function(t,r){return function(n,i,o){for(var l=typeof r=="function"?r(n,i,o):r,u=Zo(t),f=new Array(l),h=0;h<l;h++)f[h]=u(n);return f}};_e.readArray=VP;var WP=function(t,r,n){for(var i=0,o=0;o<n;o++)i+=t[r+o]&&Math.pow(2,n-o-1);return i},XP=function(t){return function(r){for(var n=yv()(r),i=new Array(8),o=0;o<8;o++)i[7-o]=!!(n&1<<o);return Object.keys(t).reduce(function(l,u){var f=t[u];return f.length?l[u]=WP(i,f.index,f.length):l[u]=i[f.index],l},{})}};_e.readBits=XP,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Yr,r=_e,n={blocks:function(c){for(var v=0,m=[],_=c.data.length,b=0,y=(0,r.readByte)()(c);y!==v&&y;y=(0,r.readByte)()(c)){if(c.pos+y>=_){var w=_-c.pos;m.push((0,r.readBytes)(w)(c)),b+=w;break}m.push((0,r.readBytes)(y)(c)),b+=y}for(var T=new Uint8Array(b),x=0,E=0;E<m.length;E++)T.set(m[E],x),x+=m[E].length;return T}},i=(0,t.conditional)({gce:[{codes:(0,r.readBytes)(2)},{byteSize:(0,r.readByte)()},{extras:(0,r.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,r.readUnsigned)(!0)},{transparentColorIndex:(0,r.readByte)()},{terminator:(0,r.readByte)()}]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===249}),o=(0,t.conditional)({image:[{code:(0,r.readByte)()},{descriptor:[{left:(0,r.readUnsigned)(!0)},{top:(0,r.readUnsigned)(!0)},{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{lct:(0,r.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,t.conditional)({lct:(0,r.readArray)(3,function(p,c,v){return Math.pow(2,v.descriptor.lct.size+1)})},function(p,c,v){return v.descriptor.lct.exists}),{data:[{minCodeSize:(0,r.readByte)()},n]}]},function(p){return(0,r.peekByte)()(p)===44}),l=(0,t.conditional)({text:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{preData:function(c,v,m){return(0,r.readBytes)(m.text.blockSize)(c)}},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===1}),u=(0,t.conditional)({application:[{codes:(0,r.readBytes)(2)},{blockSize:(0,r.readByte)()},{id:function(c,v,m){return(0,r.readString)(m.blockSize)(c)}},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===255}),f=(0,t.conditional)({comment:[{codes:(0,r.readBytes)(2)},n]},function(p){var c=(0,r.peekBytes)(2)(p);return c[0]===33&&c[1]===254}),h=[{header:[{signature:(0,r.readString)(3)},{version:(0,r.readString)(3)}]},{lsd:[{width:(0,r.readUnsigned)(!0)},{height:(0,r.readUnsigned)(!0)},{gct:(0,r.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,r.readByte)()},{pixelAspectRatio:(0,r.readByte)()}]},(0,t.conditional)({gct:(0,r.readArray)(3,function(p,c){return Math.pow(2,c.lsd.gct.size+1)})},function(p,c){return c.lsd.gct.exists}),{frames:(0,t.loop)([i,u,f,o,l],function(p){var c=(0,r.peekByte)()(p);return c===33||c===44})}],d=h;e.default=d}(mv);var Qo={};Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.deinterlace=void 0;var KP=function(t,r){for(var n=new Array(t.length),i=t.length/r,o=function(c,v){var m=t.slice(v*r,(v+1)*r);n.splice.apply(n,[c*r,r].concat(m))},l=[0,4,2,1],u=[8,8,4,2],f=0,h=0;h<4;h++)for(var d=l[h];d<i;d+=u[h])o(d,f),f++;return n};Qo.deinterlace=KP;var Jo={};Object.defineProperty(Jo,"__esModule",{value:!0}),Jo.lzw=void 0;var YP=function(t,r,n){var i=4096,o=-1,l=n,u,f,h,d,p,c,v,I,m,_,E,b,A,O,R,L,y=new Array(n),w=new Array(i),T=new Array(i),x=new Array(i+1);for(b=t,f=1<<b,p=f+1,u=f+2,v=o,d=b+1,h=(1<<d)-1,m=0;m<f;m++)w[m]=0,T[m]=m;var E,I,A,O,L,R;for(E=I=A=O=L=R=0,_=0;_<l;){if(O===0){if(I<d){E+=r[R]<<I,I+=8,R++;continue}if(m=E&h,E>>=d,I-=d,m>u||m==p)break;if(m==f){d=b+1,h=(1<<d)-1,u=f+2,v=o;continue}if(v==o){x[O++]=T[m],v=m,A=m;continue}for(c=m,m==u&&(x[O++]=A,m=v);m>f;)x[O++]=T[m],m=w[m];A=T[m]&255,x[O++]=A,u<i&&(w[u]=v,T[u]=A,u++,!(u&h)&&u<i&&(d++,h+=u)),v=c}O--,y[L++]=x[O],_++}for(_=L;_<l;_++)y[_]=0;return y};Jo.lzw=YP,Object.defineProperty(qn,"__esModule",{value:!0}),qn.decompressFrames=qn.decompressFrame=qn.parseGIF=void 0;var ZP=rN(mv),QP=Yr,JP=_e,tN=Qo,eN=Jo;function rN(e){return e&&e.__esModule?e:{default:e}}var nN=function(t){var r=new Uint8Array(t);return(0,QP.parse)((0,JP.buildStream)(r),ZP.default)};qn.parseGIF=nN;var iN=function(t){for(var r=t.pixels.length,n=new Uint8ClampedArray(r*4),i=0;i<r;i++){var o=i*4,l=t.pixels[i],u=t.colorTable[l]||[0,0,0];n[o]=u[0],n[o+1]=u[1],n[o+2]=u[2],n[o+3]=l!==t.transparentIndex?255:0}return n},_v=function(t,r,n){if(!t.image){console.warn("gif frame does not have associated image.");return}var i=t.image,o=i.descriptor.width*i.descriptor.height,l=(0,eN.lzw)(i.data.minCodeSize,i.data.blocks,o);i.descriptor.lct.interlaced&&(l=(0,tN.deinterlace)(l,i.descriptor.width));var u={pixels:l,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return i.descriptor.lct&&i.descriptor.lct.exists?u.colorTable=i.lct:u.colorTable=r,t.gce&&(u.delay=(t.gce.delay||10)*10,u.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(u.transparentIndex=t.gce.transparentColorIndex)),n&&(u.patch=iN(u)),u};qn.decompressFrame=_v;var sN=function(t,r){return t.frames.filter(function(n){return n.image}).map(function(n){return _v(n,t.gct,r)})};qn.decompressFrames=sN;const bv=(e,t={})=>{typeof t=="function"&&(t=t(e));const r=t.loaded&&e.loaded!==t.loaded,{playing:n,...i}=t,o={...e,...i};return r&&Object.assign(o,{playing:o.autoPlay&&o.loaded}),(t.delays!=null||t.frames!=null)&&Object.assign(o,{length:o.frames.length}),(t.index!=null||t.frames!=null)&&Object.assign(o,{index:o.length===0?0:(o.length+o.index)%o.length}),t.playing!=null&&Object.assign(o,o.loaded?{playing:n}:{autoPlay:n}),o},oN=e=>bv({autoPlay:!0,playing:!1,frames:[],delays:[],index:0,length:0,loaded:!1},e),aN=e=>_t.useReducer(bv,e,oN);var lN='function e(e){var r={exports:{}};return e(r,r.exports),r.exports}var r=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.loop=r.conditional=r.parse=void 0;r.parse=function e(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(t))t.forEach((function(t){return e(r,t,n,a)}));else if("function"==typeof t)t(r,n,a,e);else{var i=Object.keys(t)[0];Array.isArray(t[i])?(a[i]={},e(r,t[i],n,a[i])):a[i]=t[i](r,n,a,e)}return n};r.conditional=function(e,r){return function(t,n,a,i){r(t,n,a)&&i(t,e,n,a)}};r.loop=function(e,r){return function(t,n,a,i){for(var o=[];r(t,n,a);){var s={};i(t,e,n,s),o.push(s)}return o}}})),t=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readBits=r.readArray=r.readUnsigned=r.readString=r.peekBytes=r.readBytes=r.peekByte=r.readByte=r.buildStream=void 0;r.buildStream=function(e){return{data:e,pos:0}};var t=function(){return function(e){return e.data[e.pos++]}};r.readByte=t;r.peekByte=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(r){return r.data[r.pos+e]}};var n=function(e){return function(r){return r.data.subarray(r.pos,r.pos+=e)}};r.readBytes=n;r.peekBytes=function(e){return function(r){return r.data.subarray(r.pos,r.pos+e)}};r.readString=function(e){return function(r){return Array.from(n(e)(r)).map((function(e){return String.fromCharCode(e)})).join("")}};r.readUnsigned=function(e){return function(r){var t=n(2)(r);return e?(t[1]<<8)+t[0]:(t[0]<<8)+t[1]}};r.readArray=function(e,r){return function(t,a,i){for(var o="function"==typeof r?r(t,a,i):r,s=n(e),d=new Array(o),c=0;c<o;c++)d[c]=s(t);return d}};r.readBits=function(e){return function(r){for(var t=function(e){return e.data[e.pos++]}(r),n=new Array(8),a=0;a<8;a++)n[7-a]=!!(t&1<<a);return Object.keys(e).reduce((function(r,t){var a=e[t];return a.length?r[t]=function(e,r,t){for(var n=0,a=0;a<t;a++)n+=e[r+a]&&Math.pow(2,t-a-1);return n}(n,a.index,a.length):r[t]=n[a.index],r}),{})}}})),n=e((function(e,n){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a={blocks:function(e){for(var r=[],n=e.data.length,a=0,i=(0,t.readByte)()(e);0!==i;i=(0,t.readByte)()(e)){if(e.pos+i>=n){var o=n-e.pos;r.push((0,t.readBytes)(o)(e)),a+=o;break}r.push((0,t.readBytes)(i)(e)),a+=i}for(var s=new Uint8Array(a),d=0,c=0;c<r.length;c++)s.set(r[c],d),d+=r[c].length;return s}},i=(0,r.conditional)({gce:[{codes:(0,t.readBytes)(2)},{byteSize:(0,t.readByte)()},{extras:(0,t.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,t.readUnsigned)(!0)},{transparentColorIndex:(0,t.readByte)()},{terminator:(0,t.readByte)()}]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&249===r[1]})),o=(0,r.conditional)({image:[{code:(0,t.readByte)()},{descriptor:[{left:(0,t.readUnsigned)(!0)},{top:(0,t.readUnsigned)(!0)},{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{lct:(0,t.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,r.conditional)({lct:(0,t.readArray)(3,(function(e,r,t){return Math.pow(2,t.descriptor.lct.size+1)}))},(function(e,r,t){return t.descriptor.lct.exists})),{data:[{minCodeSize:(0,t.readByte)()},a]}]},(function(e){return 44===(0,t.peekByte)()(e)})),s=(0,r.conditional)({text:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{preData:function(e,r,n){return(0,t.readBytes)(n.text.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&1===r[1]})),d=(0,r.conditional)({application:[{codes:(0,t.readBytes)(2)},{blockSize:(0,t.readByte)()},{id:function(e,r,n){return(0,t.readString)(n.blockSize)(e)}},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&255===r[1]})),c=(0,r.conditional)({comment:[{codes:(0,t.readBytes)(2)},a]},(function(e){var r=(0,t.peekBytes)(2)(e);return 33===r[0]&&254===r[1]})),u=[{header:[{signature:(0,t.readString)(3)},{version:(0,t.readString)(3)}]},{lsd:[{width:(0,t.readUnsigned)(!0)},{height:(0,t.readUnsigned)(!0)},{gct:(0,t.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,t.readByte)()},{pixelAspectRatio:(0,t.readByte)()}]},(0,r.conditional)({gct:(0,t.readArray)(3,(function(e,r){return Math.pow(2,r.lsd.gct.size+1)}))},(function(e,r){return r.lsd.gct.exists})),{frames:(0,r.loop)([i,d,c,o,s],(function(e){var r=(0,t.peekByte)()(e);return 33===r||44===r}))}];n.default=u})),a=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.deinterlace=void 0;r.deinterlace=function(e,r){for(var t=new Array(e.length),n=e.length/r,a=function(n,a){var i=e.slice(a*r,(a+1)*r);t.splice.apply(t,[n*r,r].concat(i))},i=[0,4,2,1],o=[8,8,4,2],s=0,d=0;d<4;d++)for(var c=i[d];c<n;c+=o[d])a(c,s),s++;return t}})),i=e((function(e,r){Object.defineProperty(r,"__esModule",{value:!0}),r.lzw=void 0;r.lzw=function(e,r,t){var n,a,i,o,s,d,c,u,l,f,p,g,y,h,v,m,x=4096,B=t,w=new Array(t),b=new Array(x),k=new Array(x),A=new Array(4097);for(s=(a=1<<(f=e))+1,n=a+2,c=-1,i=(1<<(o=f+1))-1,u=0;u<a;u++)b[u]=0,k[u]=u;for(p=g=y=h=v=m=0,l=0;l<B;){if(0===h){if(g<o){p+=r[m]<<g,g+=8,m++;continue}if(u=p&i,p>>=o,g-=o,u>n||u==s)break;if(u==a){i=(1<<(o=f+1))-1,n=a+2,c=-1;continue}if(-1==c){A[h++]=k[u],c=u,y=u;continue}for(d=u,u==n&&(A[h++]=y,u=c);u>a;)A[h++]=k[u],u=b[u];y=255&k[u],A[h++]=y,n<x&&(b[n]=c,k[n]=y,0==(++n&i)&&n<x&&(o++,i+=n)),c=d}h--,w[v++]=A[h],l++}for(l=v;l<B;l++)w[l]=0;return w}})),o=e((function(e,o){Object.defineProperty(o,"__esModule",{value:!0}),o.decompressFrames=o.decompressFrame=o.parseGIF=void 0;var s,d=(s=n)&&s.__esModule?s:{default:s};o.parseGIF=function(e){var n=new Uint8Array(e);return(0,r.parse)((0,t.buildStream)(n),d.default)};var c=function(e,r,t){if(e.image){var n=e.image,o=n.descriptor.width*n.descriptor.height,s=(0,i.lzw)(n.data.minCodeSize,n.data.blocks,o);n.descriptor.lct.interlaced&&(s=(0,a.deinterlace)(s,n.descriptor.width));var d={pixels:s,dims:{top:e.image.descriptor.top,left:e.image.descriptor.left,width:e.image.descriptor.width,height:e.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?d.colorTable=n.lct:d.colorTable=r,e.gce&&(d.delay=10*(e.gce.delay||10),d.disposalType=e.gce.extras.disposal,e.gce.extras.transparentColorGiven&&(d.transparentIndex=e.gce.transparentColorIndex)),t&&(d.patch=function(e){for(var r=e.pixels.length,t=new Uint8ClampedArray(4*r),n=0;n<r;n++){var a=4*n,i=e.pixels[n],o=e.colorTable[i]||[0,0,0];t[a]=o[0],t[a+1]=o[1],t[a+2]=o[2],t[a+3]=i!==e.transparentIndex?255:0}return t}(d)),d}console.warn("gif frame does not have associated image.")};o.decompressFrame=c;o.decompressFrames=function(e,r){return e.frames.filter((function(e){return e.image})).map((function(t){return c(t,e.gct,r)}))}}));const s=(e,r,t)=>{const{width:n,height:a,top:i,left:o}=r.dims,s=i*t.width+o;for(let i=0;i<a;i++)for(let a=0;a<n;a++){const o=i*n+a,d=r.pixels[o];if(d!==r.transparentIndex){const n=s+i*t.width+a,o=r.colorTable[d]||[0,0,0];e[4*n]=o[0],e[4*n+1]=o[1],e[4*n+2]=o[2],e[4*n+3]=255}}return e},d=new Map;self.addEventListener("message",(e=>{const{type:r,src:t}=e.data||e;switch(r){case"parse":if(!d.has(t)){const e=new AbortController,r={signal:e.signal};d.set(t,e),((e,{signal:r})=>fetch(e,{signal:r}).then((e=>{if(!e.headers.get("Content-Type").includes("image/gif"))throw Error(`Wrong content type: "${e.headers.get("Content-Type")}"`);return e.arrayBuffer()})).then((e=>o.parseGIF(e))).then((e=>((e=>{let r=null;for(const t of e.frames)r=t.gce?t.gce:r,"image"in t&&!("gce"in t)&&(t.gce=r)})(e),e))).then((e=>Promise.all([o.decompressFrames(e,!1),{width:e.lsd.width,height:e.lsd.height}]))).then((([e,r])=>{const t=[],n=r.width*r.height*4;for(let a=0;a<e.length;++a){const i=e[a],o=0===a||2===e[a-1].disposalType?new Uint8ClampedArray(n):t[a-1].slice();t.push(s(o,i,r))}return{...r,loaded:!0,delays:e.map((e=>e.delay)),frames:t}})))(t,r).then((e=>{self.postMessage(Object.assign(e,{src:t}),e.frames.map((e=>e.buffer)))})).catch((e=>{self.postMessage({src:t,error:e,loaded:!0})})).finally((()=>{d.delete(t)}))}break;case"cancel":if(d.has(t)){d.get(t).abort(),d.delete(t)}}}));\n';function uN(e){const t=new Blob([lN],{type:"application/javascript"}),r=URL.createObjectURL(t),n=new Worker(r,e);return URL.revokeObjectURL(r),n}const fN=e=>({...e,frames:e.frames.map(t=>{const r=new ImageData(e.width,e.height);return r.data.set(new Uint8ClampedArray(t)),r})}),cN=(e,t)=>{const r={};return()=>(r.instance||(r.instance=e()),_t.useLayoutEffect(()=>(r.timeout?(clearTimeout(r.timeout),delete r.timeout):r.usageCount=(r.usageCount||0)+1,()=>{r.timeout=setTimeout(()=>{r.usageCount=r.usageCount-1,r.usageCount===0&&(t&&t(r.instance),delete r.instance,delete r.timeout)})}),[r,t]),r.instance)},hN=e=>{const t=_t.useRef(e);return _t.useEffect(()=>{t.current=e},[e]),t},dN=e=>{const t=hN(e);return _t.useCallback(r=>t.current&&t.current(r),[])},pN=cN(()=>new uN,e=>e.terminate()),vN=(e,t)=>{const r=dN(t),n=pN();_t.useEffect(()=>{if(typeof e=="string"){const i=o=>{const l=o.data||o;if(l.src===e){const u=l.error?l:fN(l);r(u)}};return n.addEventListener("message",i),n.postMessage({src:e,type:"parse"}),()=>{n.postMessage({src:e,type:"cancel"}),n.removeEventListener("message",i)}}},[n,e])},gN=({isPlaying:e,forwardRef:t,...r})=>{const n=Et.useRef(null);return Et.useImperativeHandle(t,()=>n.current,[n]),Et.useEffect(()=>{if(n.current===null)return;const i=n.current;i[e?"gotoAndPlay":"gotoAndStop"](i.currentFrame)},[e]),Yt.jsx(me.AnimatedSprite,{ref:n,...r,isPlaying:e})},xv=Et.memo(gN);var ta={exports:{}};/**
1935
1935
  * @license
1936
1936
  * Lodash <https://lodash.com/>
1937
1937
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
1938
1938
  * Released under MIT license <https://lodash.com/license>
1939
1939
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
1940
1940
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
1941
- */ta.exports,function(e,t){(function(){var r,n="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",p=1,c=2,v=4,m=1,_=2,b=1,y=2,w=4,T=8,x=16,E=32,I=64,A=128,O=256,L=512,R=30,C="...",P=800,M=16,F=1,q=2,K=3,z=1/0,it=9007199254740991,W=17976931348623157e292,U=0/0,k=4294967295,D=k-1,j=k>>>1,Z=[["ary",A],["bind",b],["bindKey",y],["curry",T],["curryRight",x],["flip",L],["partial",E],["partialRight",I],["rearg",O]],Y="[object Arguments]",G="[object Array]",V="[object AsyncFunction]",rt="[object Boolean]",Q="[object Date]",et="[object DOMException]",ot="[object Error]",pt="[object Function]",mt="[object GeneratorFunction]",xt="[object Map]",At="[object Number]",oe="[object Null]",qt="[object Object]",nt="[object Promise]",lt="[object Proxy]",dt="[object RegExp]",vt="[object Set]",ct="[object String]",Pt="[object Symbol]",Lt="[object Undefined]",Nt="[object WeakMap]",He="[object WeakSet]",Ge="[object ArrayBuffer]",Qt="[object DataView]",Es="[object Float32Array]",ce="[object Float64Array]",lr="[object Int8Array]",qu="[object Int16Array]",zu="[object Int32Array]",Hu="[object Uint8Array]",Vu="[object Uint8ClampedArray]",Wu="[object Uint16Array]",Xu="[object Uint32Array]",wN=/\b__p \+= '';/g,TN=/\b(__p \+=) '' \+/g,EN=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cv=/&(?:amp|lt|gt|quot|#39);/g,Rv=/[&<>"']/g,SN=RegExp(Cv.source),AN=RegExp(Rv.source),ON=/<%-([\s\S]+?)%>/g,CN=/<%([\s\S]+?)%>/g,Iv=/<%=([\s\S]+?)%>/g,RN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,IN=/^\w*$/,PN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ku=/[\\^$.*+?()[\]{}|]/g,NN=RegExp(Ku.source),Yu=/^\s+/,MN=/\s/,kN=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,LN=/\{\n\/\* \[wrapped with (.+)\] \*/,FN=/,? & /,BN=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,DN=/[()=,{}\[\]\/\s]/,UN=/\\(\\)?/g,$N=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pv=/\w*$/,GN=/^[-+]0x[0-9a-f]+$/i,jN=/^0b[01]+$/i,qN=/^\[object .+?Constructor\]$/,zN=/^0o[0-7]+$/i,HN=/^(?:0|[1-9]\d*)$/,VN=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ea=/($^)/,WN=/['\n\r\u2028\u2029\\]/g,ra="\\ud800-\\udfff",XN="\\u0300-\\u036f",KN="\\ufe20-\\ufe2f",YN="\\u20d0-\\u20ff",Nv=XN+KN+YN,Mv="\\u2700-\\u27bf",kv="a-z\\xdf-\\xf6\\xf8-\\xff",ZN="\\xac\\xb1\\xd7\\xf7",QN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",JN="\\u2000-\\u206f",tM=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lv="A-Z\\xc0-\\xd6\\xd8-\\xde",Fv="\\ufe0e\\ufe0f",Bv=ZN+QN+JN+tM,Zu="['’]",eM="["+ra+"]",Dv="["+Bv+"]",na="["+Nv+"]",Uv="\\d+",rM="["+Mv+"]",$v="["+kv+"]",Gv="[^"+ra+Bv+Uv+Mv+kv+Lv+"]",Qu="\\ud83c[\\udffb-\\udfff]",nM="(?:"+na+"|"+Qu+")",jv="[^"+ra+"]",Ju="(?:\\ud83c[\\udde6-\\uddff]){2}",tf="[\\ud800-\\udbff][\\udc00-\\udfff]",ki="["+Lv+"]",qv="\\u200d",zv="(?:"+$v+"|"+Gv+")",iM="(?:"+ki+"|"+Gv+")",Hv="(?:"+Zu+"(?:d|ll|m|re|s|t|ve))?",Vv="(?:"+Zu+"(?:D|LL|M|RE|S|T|VE))?",Wv=nM+"?",Xv="["+Fv+"]?",sM="(?:"+qv+"(?:"+[jv,Ju,tf].join("|")+")"+Xv+Wv+")*",oM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",aM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kv=Xv+Wv+sM,lM="(?:"+[rM,Ju,tf].join("|")+")"+Kv,uM="(?:"+[jv+na+"?",na,Ju,tf,eM].join("|")+")",fM=RegExp(Zu,"g"),cM=RegExp(na,"g"),ef=RegExp(Qu+"(?="+Qu+")|"+uM+Kv,"g"),hM=RegExp([ki+"?"+$v+"+"+Hv+"(?="+[Dv,ki,"$"].join("|")+")",iM+"+"+Vv+"(?="+[Dv,ki+zv,"$"].join("|")+")",ki+"?"+zv+"+"+Hv,ki+"+"+Vv,aM,oM,Uv,lM].join("|"),"g"),dM=RegExp("["+qv+ra+Nv+Fv+"]"),pM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gM=-1,ue={};ue[Es]=ue[ce]=ue[lr]=ue[qu]=ue[zu]=ue[Hu]=ue[Vu]=ue[Wu]=ue[Xu]=!0,ue[Y]=ue[G]=ue[Ge]=ue[rt]=ue[Qt]=ue[Q]=ue[ot]=ue[pt]=ue[xt]=ue[At]=ue[qt]=ue[dt]=ue[vt]=ue[ct]=ue[Nt]=!1;var ae={};ae[Y]=ae[G]=ae[Ge]=ae[Qt]=ae[rt]=ae[Q]=ae[Es]=ae[ce]=ae[lr]=ae[qu]=ae[zu]=ae[xt]=ae[At]=ae[qt]=ae[dt]=ae[vt]=ae[ct]=ae[Pt]=ae[Hu]=ae[Vu]=ae[Wu]=ae[Xu]=!0,ae[ot]=ae[pt]=ae[Nt]=!1;var mM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},yM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_M={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},bM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xM=parseFloat,wM=parseInt,Yv=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,TM=typeof self=="object"&&self&&self.Object===Object&&self,Ne=Yv||TM||Function("return this")(),rf=t&&!t.nodeType&&t,zn=rf&&!0&&e&&!e.nodeType&&e,Zv=zn&&zn.exports===rf,nf=Zv&&Yv.process,ur=function(){try{var J=zn&&zn.require&&zn.require("util").types;return J||nf&&nf.binding&&nf.binding("util")}catch{}}(),Qv=ur&&ur.isArrayBuffer,Jv=ur&&ur.isDate,tg=ur&&ur.isMap,eg=ur&&ur.isRegExp,rg=ur&&ur.isSet,ng=ur&&ur.isTypedArray;function tr(J,at,st){switch(st.length){case 0:return J.call(at);case 1:return J.call(at,st[0]);case 2:return J.call(at,st[0],st[1]);case 3:return J.call(at,st[0],st[1],st[2])}return J.apply(at,st)}function EM(J,at,st,bt){for(var It=-1,Kt=J==null?0:J.length;++It<Kt;){var Se=J[It];at(bt,Se,st(Se),J)}return bt}function fr(J,at){for(var st=-1,bt=J==null?0:J.length;++st<bt&&at(J[st],st,J)!==!1;);return J}function SM(J,at){for(var st=J==null?0:J.length;st--&&at(J[st],st,J)!==!1;);return J}function ig(J,at){for(var st=-1,bt=J==null?0:J.length;++st<bt;)if(!at(J[st],st,J))return!1;return!0}function vn(J,at){for(var st=-1,bt=J==null?0:J.length,It=0,Kt=[];++st<bt;){var Se=J[st];at(Se,st,J)&&(Kt[It++]=Se)}return Kt}function ia(J,at){var st=J==null?0:J.length;return!!st&&Li(J,at,0)>-1}function sf(J,at,st){for(var bt=-1,It=J==null?0:J.length;++bt<It;)if(st(at,J[bt]))return!0;return!1}function he(J,at){for(var st=-1,bt=J==null?0:J.length,It=Array(bt);++st<bt;)It[st]=at(J[st],st,J);return It}function gn(J,at){for(var st=-1,bt=at.length,It=J.length;++st<bt;)J[It+st]=at[st];return J}function of(J,at,st,bt){var It=-1,Kt=J==null?0:J.length;for(bt&&Kt&&(st=J[++It]);++It<Kt;)st=at(st,J[It],It,J);return st}function AM(J,at,st,bt){var It=J==null?0:J.length;for(bt&&It&&(st=J[--It]);It--;)st=at(st,J[It],It,J);return st}function af(J,at){for(var st=-1,bt=J==null?0:J.length;++st<bt;)if(at(J[st],st,J))return!0;return!1}var OM=lf("length");function CM(J){return J.split("")}function RM(J){return J.match(BN)||[]}function sg(J,at,st){var bt;return st(J,function(It,Kt,Se){if(at(It,Kt,Se))return bt=Kt,!1}),bt}function sa(J,at,st,bt){for(var It=J.length,Kt=st+(bt?1:-1);bt?Kt--:++Kt<It;)if(at(J[Kt],Kt,J))return Kt;return-1}function Li(J,at,st){return at===at?GM(J,at,st):sa(J,og,st)}function IM(J,at,st,bt){for(var It=st-1,Kt=J.length;++It<Kt;)if(bt(J[It],at))return It;return-1}function og(J){return J!==J}function ag(J,at){var st=J==null?0:J.length;return st?ff(J,at)/st:U}function lf(J){return function(at){return at==null?r:at[J]}}function uf(J){return function(at){return J==null?r:J[at]}}function lg(J,at,st,bt,It){return It(J,function(Kt,Se,ne){st=bt?(bt=!1,Kt):at(st,Kt,Se,ne)}),st}function PM(J,at){var st=J.length;for(J.sort(at);st--;)J[st]=J[st].value;return J}function ff(J,at){for(var st,bt=-1,It=J.length;++bt<It;){var Kt=at(J[bt]);Kt!==r&&(st=st===r?Kt:st+Kt)}return st}function cf(J,at){for(var st=-1,bt=Array(J);++st<J;)bt[st]=at(st);return bt}function NM(J,at){return he(at,function(st){return[st,J[st]]})}function ug(J){return J&&J.slice(0,dg(J)+1).replace(Yu,"")}function er(J){return function(at){return J(at)}}function hf(J,at){return he(at,function(st){return J[st]})}function Ss(J,at){return J.has(at)}function fg(J,at){for(var st=-1,bt=J.length;++st<bt&&Li(at,J[st],0)>-1;);return st}function cg(J,at){for(var st=J.length;st--&&Li(at,J[st],0)>-1;);return st}function MM(J,at){for(var st=J.length,bt=0;st--;)J[st]===at&&++bt;return bt}var kM=uf(mM),LM=uf(yM);function FM(J){return"\\"+bM[J]}function BM(J,at){return J==null?r:J[at]}function Fi(J){return dM.test(J)}function DM(J){return pM.test(J)}function UM(J){for(var at,st=[];!(at=J.next()).done;)st.push(at.value);return st}function df(J){var at=-1,st=Array(J.size);return J.forEach(function(bt,It){st[++at]=[It,bt]}),st}function hg(J,at){return function(st){return J(at(st))}}function mn(J,at){for(var st=-1,bt=J.length,It=0,Kt=[];++st<bt;){var Se=J[st];(Se===at||Se===d)&&(J[st]=d,Kt[It++]=st)}return Kt}function oa(J){var at=-1,st=Array(J.size);return J.forEach(function(bt){st[++at]=bt}),st}function $M(J){var at=-1,st=Array(J.size);return J.forEach(function(bt){st[++at]=[bt,bt]}),st}function GM(J,at,st){for(var bt=st-1,It=J.length;++bt<It;)if(J[bt]===at)return bt;return-1}function jM(J,at,st){for(var bt=st+1;bt--;)if(J[bt]===at)return bt;return bt}function Bi(J){return Fi(J)?zM(J):OM(J)}function Rr(J){return Fi(J)?HM(J):CM(J)}function dg(J){for(var at=J.length;at--&&MN.test(J.charAt(at)););return at}var qM=uf(_M);function zM(J){for(var at=ef.lastIndex=0;ef.test(J);)++at;return at}function HM(J){return J.match(ef)||[]}function VM(J){return J.match(hM)||[]}var WM=function J(at){at=at==null?Ne:Di.defaults(Ne.Object(),at,Di.pick(Ne,vM));var st=at.Array,bt=at.Date,It=at.Error,Kt=at.Function,Se=at.Math,ne=at.Object,pf=at.RegExp,XM=at.String,cr=at.TypeError,aa=st.prototype,KM=Kt.prototype,Ui=ne.prototype,la=at["__core-js_shared__"],ua=KM.toString,ee=Ui.hasOwnProperty,YM=0,pg=function(){var s=/[^.]+$/.exec(la&&la.keys&&la.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),fa=Ui.toString,ZM=ua.call(ne),QM=Ne._,JM=pf("^"+ua.call(ee).replace(Ku,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ca=Zv?at.Buffer:r,yn=at.Symbol,ha=at.Uint8Array,vg=ca?ca.allocUnsafe:r,da=hg(ne.getPrototypeOf,ne),gg=ne.create,mg=Ui.propertyIsEnumerable,pa=aa.splice,yg=yn?yn.isConcatSpreadable:r,As=yn?yn.iterator:r,Hn=yn?yn.toStringTag:r,va=function(){try{var s=Yn(ne,"defineProperty");return s({},"",{}),s}catch{}}(),t3=at.clearTimeout!==Ne.clearTimeout&&at.clearTimeout,e3=bt&&bt.now!==Ne.Date.now&&bt.now,r3=at.setTimeout!==Ne.setTimeout&&at.setTimeout,ga=Se.ceil,ma=Se.floor,vf=ne.getOwnPropertySymbols,n3=ca?ca.isBuffer:r,_g=at.isFinite,i3=aa.join,s3=hg(ne.keys,ne),Ae=Se.max,De=Se.min,o3=bt.now,a3=at.parseInt,bg=Se.random,l3=aa.reverse,gf=Yn(at,"DataView"),Os=Yn(at,"Map"),mf=Yn(at,"Promise"),$i=Yn(at,"Set"),Cs=Yn(at,"WeakMap"),Rs=Yn(ne,"create"),ya=Cs&&new Cs,Gi={},u3=Zn(gf),f3=Zn(Os),c3=Zn(mf),h3=Zn($i),d3=Zn(Cs),_a=yn?yn.prototype:r,Is=_a?_a.valueOf:r,xg=_a?_a.toString:r;function B(s){if(ye(s)&&!Mt(s)&&!(s instanceof Gt)){if(s instanceof hr)return s;if(ee.call(s,"__wrapped__"))return wm(s)}return new hr(s)}var ji=function(){function s(){}return function(a){if(!ge(a))return{};if(gg)return gg(a);s.prototype=a;var g=new s;return s.prototype=r,g}}();function ba(){}function hr(s,a){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=r}B.templateSettings={escape:ON,evaluate:CN,interpolate:Iv,variable:"",imports:{_:B}},B.prototype=ba.prototype,B.prototype.constructor=B,hr.prototype=ji(ba.prototype),hr.prototype.constructor=hr;function Gt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function p3(){var s=new Gt(this.__wrapped__);return s.__actions__=Ve(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Ve(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Ve(this.__views__),s}function v3(){if(this.__filtered__){var s=new Gt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function g3(){var s=this.__wrapped__.value(),a=this.__dir__,g=Mt(s),S=a<0,N=g?s.length:0,$=Ck(0,N,this.__views__),H=$.start,X=$.end,tt=X-H,ut=S?X:H-1,ft=this.__iteratees__,ht=ft.length,gt=0,wt=De(tt,this.__takeCount__);if(!g||!S&&N==tt&&wt==tt)return Hg(s,this.__actions__);var Ot=[];t:for(;tt--&&gt<wt;){ut+=a;for(var Ft=-1,Ct=s[ut];++Ft<ht;){var Ut=ft[Ft],zt=Ut.iteratee,ir=Ut.type,ze=zt(Ct);if(ir==q)Ct=ze;else if(!ze){if(ir==F)continue t;break t}}Ot[gt++]=Ct}return Ot}Gt.prototype=ji(ba.prototype),Gt.prototype.constructor=Gt;function Vn(s){var a=-1,g=s==null?0:s.length;for(this.clear();++a<g;){var S=s[a];this.set(S[0],S[1])}}function m3(){this.__data__=Rs?Rs(null):{},this.size=0}function y3(s){var a=this.has(s)&&delete this.__data__[s];return this.size-=a?1:0,a}function _3(s){var a=this.__data__;if(Rs){var g=a[s];return g===f?r:g}return ee.call(a,s)?a[s]:r}function b3(s){var a=this.__data__;return Rs?a[s]!==r:ee.call(a,s)}function x3(s,a){var g=this.__data__;return this.size+=this.has(s)?0:1,g[s]=Rs&&a===r?f:a,this}Vn.prototype.clear=m3,Vn.prototype.delete=y3,Vn.prototype.get=_3,Vn.prototype.has=b3,Vn.prototype.set=x3;function Zr(s){var a=-1,g=s==null?0:s.length;for(this.clear();++a<g;){var S=s[a];this.set(S[0],S[1])}}function w3(){this.__data__=[],this.size=0}function T3(s){var a=this.__data__,g=xa(a,s);if(g<0)return!1;var S=a.length-1;return g==S?a.pop():pa.call(a,g,1),--this.size,!0}function E3(s){var a=this.__data__,g=xa(a,s);return g<0?r:a[g][1]}function S3(s){return xa(this.__data__,s)>-1}function A3(s,a){var g=this.__data__,S=xa(g,s);return S<0?(++this.size,g.push([s,a])):g[S][1]=a,this}Zr.prototype.clear=w3,Zr.prototype.delete=T3,Zr.prototype.get=E3,Zr.prototype.has=S3,Zr.prototype.set=A3;function Qr(s){var a=-1,g=s==null?0:s.length;for(this.clear();++a<g;){var S=s[a];this.set(S[0],S[1])}}function O3(){this.size=0,this.__data__={hash:new Vn,map:new(Os||Zr),string:new Vn}}function C3(s){var a=Ma(this,s).delete(s);return this.size-=a?1:0,a}function R3(s){return Ma(this,s).get(s)}function I3(s){return Ma(this,s).has(s)}function P3(s,a){var g=Ma(this,s),S=g.size;return g.set(s,a),this.size+=g.size==S?0:1,this}Qr.prototype.clear=O3,Qr.prototype.delete=C3,Qr.prototype.get=R3,Qr.prototype.has=I3,Qr.prototype.set=P3;function Wn(s){var a=-1,g=s==null?0:s.length;for(this.__data__=new Qr;++a<g;)this.add(s[a])}function N3(s){return this.__data__.set(s,f),this}function M3(s){return this.__data__.has(s)}Wn.prototype.add=Wn.prototype.push=N3,Wn.prototype.has=M3;function Ir(s){var a=this.__data__=new Zr(s);this.size=a.size}function k3(){this.__data__=new Zr,this.size=0}function L3(s){var a=this.__data__,g=a.delete(s);return this.size=a.size,g}function F3(s){return this.__data__.get(s)}function B3(s){return this.__data__.has(s)}function D3(s,a){var g=this.__data__;if(g instanceof Zr){var S=g.__data__;if(!Os||S.length<i-1)return S.push([s,a]),this.size=++g.size,this;g=this.__data__=new Qr(S)}return g.set(s,a),this.size=g.size,this}Ir.prototype.clear=k3,Ir.prototype.delete=L3,Ir.prototype.get=F3,Ir.prototype.has=B3,Ir.prototype.set=D3;function wg(s,a){var g=Mt(s),S=!g&&Qn(s),N=!g&&!S&&Tn(s),$=!g&&!S&&!N&&Vi(s),H=g||S||N||$,X=H?cf(s.length,XM):[],tt=X.length;for(var ut in s)(a||ee.call(s,ut))&&!(H&&(ut=="length"||N&&(ut=="offset"||ut=="parent")||$&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||rn(ut,tt)))&&X.push(ut);return X}function Tg(s){var a=s.length;return a?s[Cf(0,a-1)]:r}function U3(s,a){return ka(Ve(s),Xn(a,0,s.length))}function $3(s){return ka(Ve(s))}function yf(s,a,g){(g!==r&&!Pr(s[a],g)||g===r&&!(a in s))&&Jr(s,a,g)}function Ps(s,a,g){var S=s[a];(!(ee.call(s,a)&&Pr(S,g))||g===r&&!(a in s))&&Jr(s,a,g)}function xa(s,a){for(var g=s.length;g--;)if(Pr(s[g][0],a))return g;return-1}function G3(s,a,g,S){return _n(s,function(N,$,H){a(S,N,g(N),H)}),S}function Eg(s,a){return s&&jr(a,Ie(a),s)}function j3(s,a){return s&&jr(a,Xe(a),s)}function Jr(s,a,g){a=="__proto__"&&va?va(s,a,{configurable:!0,enumerable:!0,value:g,writable:!0}):s[a]=g}function _f(s,a){for(var g=-1,S=a.length,N=st(S),$=s==null;++g<S;)N[g]=$?r:Jf(s,a[g]);return N}function Xn(s,a,g){return s===s&&(g!==r&&(s=s<=g?s:g),a!==r&&(s=s>=a?s:a)),s}function dr(s,a,g,S,N,$){var H,X=a&p,tt=a&c,ut=a&v;if(g&&(H=N?g(s,S,N,$):g(s)),H!==r)return H;if(!ge(s))return s;var ft=Mt(s);if(ft){if(H=Ik(s),!X)return Ve(s,H)}else{var ht=Ue(s),gt=ht==pt||ht==mt;if(Tn(s))return Xg(s,X);if(ht==qt||ht==Y||gt&&!N){if(H=tt||gt?{}:dm(s),!X)return tt?_k(s,j3(H,s)):yk(s,Eg(H,s))}else{if(!ae[ht])return N?s:{};H=Pk(s,ht,X)}}$||($=new Ir);var wt=$.get(s);if(wt)return wt;$.set(s,H),jm(s)?s.forEach(function(Ct){H.add(dr(Ct,a,g,Ct,s,$))}):$m(s)&&s.forEach(function(Ct,Ut){H.set(Ut,dr(Ct,a,g,Ut,s,$))});var Ot=ut?tt?Uf:Df:tt?Xe:Ie,Ft=ft?r:Ot(s);return fr(Ft||s,function(Ct,Ut){Ft&&(Ut=Ct,Ct=s[Ut]),Ps(H,Ut,dr(Ct,a,g,Ut,s,$))}),H}function q3(s){var a=Ie(s);return function(g){return Sg(g,s,a)}}function Sg(s,a,g){var S=g.length;if(s==null)return!S;for(s=ne(s);S--;){var N=g[S],$=a[N],H=s[N];if(H===r&&!(N in s)||!$(H))return!1}return!0}function Ag(s,a,g){if(typeof s!="function")throw new cr(l);return Ds(function(){s.apply(r,g)},a)}function Ns(s,a,g,S){var N=-1,$=ia,H=!0,X=s.length,tt=[],ut=a.length;if(!X)return tt;g&&(a=he(a,er(g))),S?($=sf,H=!1):a.length>=i&&($=Ss,H=!1,a=new Wn(a));t:for(;++N<X;){var ft=s[N],ht=g==null?ft:g(ft);if(ft=S||ft!==0?ft:0,H&&ht===ht){for(var gt=ut;gt--;)if(a[gt]===ht)continue t;tt.push(ft)}else $(a,ht,S)||tt.push(ft)}return tt}var _n=Jg(Gr),Og=Jg(xf,!0);function z3(s,a){var g=!0;return _n(s,function(S,N,$){return g=!!a(S,N,$),g}),g}function wa(s,a,g){for(var S=-1,N=s.length;++S<N;){var $=s[S],H=a($);if(H!=null&&(X===r?H===H&&!nr(H):g(H,X)))var X=H,tt=$}return tt}function H3(s,a,g,S){var N=s.length;for(g=kt(g),g<0&&(g=-g>N?0:N+g),S=S===r||S>N?N:kt(S),S<0&&(S+=N),S=g>S?0:zm(S);g<S;)s[g++]=a;return s}function Cg(s,a){var g=[];return _n(s,function(S,N,$){a(S,N,$)&&g.push(S)}),g}function Me(s,a,g,S,N){var $=-1,H=s.length;for(g||(g=Mk),N||(N=[]);++$<H;){var X=s[$];a>0&&g(X)?a>1?Me(X,a-1,g,S,N):gn(N,X):S||(N[N.length]=X)}return N}var bf=tm(),Rg=tm(!0);function Gr(s,a){return s&&bf(s,a,Ie)}function xf(s,a){return s&&Rg(s,a,Ie)}function Ta(s,a){return vn(a,function(g){return nn(s[g])})}function Kn(s,a){a=xn(a,s);for(var g=0,S=a.length;s!=null&&g<S;)s=s[qr(a[g++])];return g&&g==S?s:r}function Ig(s,a,g){var S=a(s);return Mt(s)?S:gn(S,g(s))}function je(s){return s==null?s===r?Lt:oe:Hn&&Hn in ne(s)?Ok(s):$k(s)}function wf(s,a){return s>a}function V3(s,a){return s!=null&&ee.call(s,a)}function W3(s,a){return s!=null&&a in ne(s)}function X3(s,a,g){return s>=De(a,g)&&s<Ae(a,g)}function Tf(s,a,g){for(var S=g?sf:ia,N=s[0].length,$=s.length,H=$,X=st($),tt=1/0,ut=[];H--;){var ft=s[H];H&&a&&(ft=he(ft,er(a))),tt=De(ft.length,tt),X[H]=!g&&(a||N>=120&&ft.length>=120)?new Wn(H&&ft):r}ft=s[0];var ht=-1,gt=X[0];t:for(;++ht<N&&ut.length<tt;){var wt=ft[ht],Ot=a?a(wt):wt;if(wt=g||wt!==0?wt:0,!(gt?Ss(gt,Ot):S(ut,Ot,g))){for(H=$;--H;){var Ft=X[H];if(!(Ft?Ss(Ft,Ot):S(s[H],Ot,g)))continue t}gt&&gt.push(Ot),ut.push(wt)}}return ut}function K3(s,a,g,S){return Gr(s,function(N,$,H){a(S,g(N),$,H)}),S}function Ms(s,a,g){a=xn(a,s),s=mm(s,a);var S=s==null?s:s[qr(vr(a))];return S==null?r:tr(S,s,g)}function Pg(s){return ye(s)&&je(s)==Y}function Y3(s){return ye(s)&&je(s)==Ge}function Z3(s){return ye(s)&&je(s)==Q}function ks(s,a,g,S,N){return s===a?!0:s==null||a==null||!ye(s)&&!ye(a)?s!==s&&a!==a:Q3(s,a,g,S,ks,N)}function Q3(s,a,g,S,N,$){var H=Mt(s),X=Mt(a),tt=H?G:Ue(s),ut=X?G:Ue(a);tt=tt==Y?qt:tt,ut=ut==Y?qt:ut;var ft=tt==qt,ht=ut==qt,gt=tt==ut;if(gt&&Tn(s)){if(!Tn(a))return!1;H=!0,ft=!1}if(gt&&!ft)return $||($=new Ir),H||Vi(s)?fm(s,a,g,S,N,$):Sk(s,a,tt,g,S,N,$);if(!(g&m)){var wt=ft&&ee.call(s,"__wrapped__"),Ot=ht&&ee.call(a,"__wrapped__");if(wt||Ot){var Ft=wt?s.value():s,Ct=Ot?a.value():a;return $||($=new Ir),N(Ft,Ct,g,S,$)}}return gt?($||($=new Ir),Ak(s,a,g,S,N,$)):!1}function J3(s){return ye(s)&&Ue(s)==xt}function Ef(s,a,g,S){var N=g.length,$=N,H=!S;if(s==null)return!$;for(s=ne(s);N--;){var X=g[N];if(H&&X[2]?X[1]!==s[X[0]]:!(X[0]in s))return!1}for(;++N<$;){X=g[N];var tt=X[0],ut=s[tt],ft=X[1];if(H&&X[2]){if(ut===r&&!(tt in s))return!1}else{var ht=new Ir;if(S)var gt=S(ut,ft,tt,s,a,ht);if(!(gt===r?ks(ft,ut,m|_,S,ht):gt))return!1}}return!0}function Ng(s){if(!ge(s)||Lk(s))return!1;var a=nn(s)?JM:qN;return a.test(Zn(s))}function tk(s){return ye(s)&&je(s)==dt}function ek(s){return ye(s)&&Ue(s)==vt}function rk(s){return ye(s)&&$a(s.length)&&!!ue[je(s)]}function Mg(s){return typeof s=="function"?s:s==null?Ke:typeof s=="object"?Mt(s)?Fg(s[0],s[1]):Lg(s):ey(s)}function Sf(s){if(!Bs(s))return s3(s);var a=[];for(var g in ne(s))ee.call(s,g)&&g!="constructor"&&a.push(g);return a}function nk(s){if(!ge(s))return Uk(s);var a=Bs(s),g=[];for(var S in s)S=="constructor"&&(a||!ee.call(s,S))||g.push(S);return g}function Af(s,a){return s<a}function kg(s,a){var g=-1,S=We(s)?st(s.length):[];return _n(s,function(N,$,H){S[++g]=a(N,$,H)}),S}function Lg(s){var a=Gf(s);return a.length==1&&a[0][2]?vm(a[0][0],a[0][1]):function(g){return g===s||Ef(g,s,a)}}function Fg(s,a){return qf(s)&&pm(a)?vm(qr(s),a):function(g){var S=Jf(g,s);return S===r&&S===a?tc(g,s):ks(a,S,m|_)}}function Ea(s,a,g,S,N){s!==a&&bf(a,function($,H){if(N||(N=new Ir),ge($))ik(s,a,H,g,Ea,S,N);else{var X=S?S(Hf(s,H),$,H+"",s,a,N):r;X===r&&(X=$),yf(s,H,X)}},Xe)}function ik(s,a,g,S,N,$,H){var X=Hf(s,g),tt=Hf(a,g),ut=H.get(tt);if(ut){yf(s,g,ut);return}var ft=$?$(X,tt,g+"",s,a,H):r,ht=ft===r;if(ht){var gt=Mt(tt),wt=!gt&&Tn(tt),Ot=!gt&&!wt&&Vi(tt);ft=tt,gt||wt||Ot?Mt(X)?ft=X:be(X)?ft=Ve(X):wt?(ht=!1,ft=Xg(tt,!0)):Ot?(ht=!1,ft=Kg(tt,!0)):ft=[]:Us(tt)||Qn(tt)?(ft=X,Qn(X)?ft=Hm(X):(!ge(X)||nn(X))&&(ft=dm(tt))):ht=!1}ht&&(H.set(tt,ft),N(ft,tt,S,$,H),H.delete(tt)),yf(s,g,ft)}function Bg(s,a){var g=s.length;if(g)return a+=a<0?g:0,rn(a,g)?s[a]:r}function Dg(s,a,g){a.length?a=he(a,function($){return Mt($)?function(H){return Kn(H,$.length===1?$[0]:$)}:$}):a=[Ke];var S=-1;a=he(a,er(St()));var N=kg(s,function($,H,X){var tt=he(a,function(ut){return ut($)});return{criteria:tt,index:++S,value:$}});return PM(N,function($,H){return mk($,H,g)})}function sk(s,a){return Ug(s,a,function(g,S){return tc(s,S)})}function Ug(s,a,g){for(var S=-1,N=a.length,$={};++S<N;){var H=a[S],X=Kn(s,H);g(X,H)&&Ls($,xn(H,s),X)}return $}function ok(s){return function(a){return Kn(a,s)}}function Of(s,a,g,S){var N=S?IM:Li,$=-1,H=a.length,X=s;for(s===a&&(a=Ve(a)),g&&(X=he(s,er(g)));++$<H;)for(var tt=0,ut=a[$],ft=g?g(ut):ut;(tt=N(X,ft,tt,S))>-1;)X!==s&&pa.call(X,tt,1),pa.call(s,tt,1);return s}function $g(s,a){for(var g=s?a.length:0,S=g-1;g--;){var N=a[g];if(g==S||N!==$){var $=N;rn(N)?pa.call(s,N,1):Pf(s,N)}}return s}function Cf(s,a){return s+ma(bg()*(a-s+1))}function ak(s,a,g,S){for(var N=-1,$=Ae(ga((a-s)/(g||1)),0),H=st($);$--;)H[S?$:++N]=s,s+=g;return H}function Rf(s,a){var g="";if(!s||a<1||a>it)return g;do a%2&&(g+=s),a=ma(a/2),a&&(s+=s);while(a);return g}function Bt(s,a){return Vf(gm(s,a,Ke),s+"")}function lk(s){return Tg(Wi(s))}function uk(s,a){var g=Wi(s);return ka(g,Xn(a,0,g.length))}function Ls(s,a,g,S){if(!ge(s))return s;a=xn(a,s);for(var N=-1,$=a.length,H=$-1,X=s;X!=null&&++N<$;){var tt=qr(a[N]),ut=g;if(tt==="__proto__"||tt==="constructor"||tt==="prototype")return s;if(N!=H){var ft=X[tt];ut=S?S(ft,tt,X):r,ut===r&&(ut=ge(ft)?ft:rn(a[N+1])?[]:{})}Ps(X,tt,ut),X=X[tt]}return s}var Gg=ya?function(s,a){return ya.set(s,a),s}:Ke,fk=va?function(s,a){return va(s,"toString",{configurable:!0,enumerable:!1,value:rc(a),writable:!0})}:Ke;function ck(s){return ka(Wi(s))}function pr(s,a,g){var S=-1,N=s.length;a<0&&(a=-a>N?0:N+a),g=g>N?N:g,g<0&&(g+=N),N=a>g?0:g-a>>>0,a>>>=0;for(var $=st(N);++S<N;)$[S]=s[S+a];return $}function hk(s,a){var g;return _n(s,function(S,N,$){return g=a(S,N,$),!g}),!!g}function Sa(s,a,g){var S=0,N=s==null?S:s.length;if(typeof a=="number"&&a===a&&N<=j){for(;S<N;){var $=S+N>>>1,H=s[$];H!==null&&!nr(H)&&(g?H<=a:H<a)?S=$+1:N=$}return N}return If(s,a,Ke,g)}function If(s,a,g,S){var N=0,$=s==null?0:s.length;if($===0)return 0;a=g(a);for(var H=a!==a,X=a===null,tt=nr(a),ut=a===r;N<$;){var ft=ma((N+$)/2),ht=g(s[ft]),gt=ht!==r,wt=ht===null,Ot=ht===ht,Ft=nr(ht);if(H)var Ct=S||Ot;else ut?Ct=Ot&&(S||gt):X?Ct=Ot&&gt&&(S||!wt):tt?Ct=Ot&&gt&&!wt&&(S||!Ft):wt||Ft?Ct=!1:Ct=S?ht<=a:ht<a;Ct?N=ft+1:$=ft}return De($,D)}function jg(s,a){for(var g=-1,S=s.length,N=0,$=[];++g<S;){var H=s[g],X=a?a(H):H;if(!g||!Pr(X,tt)){var tt=X;$[N++]=H===0?0:H}}return $}function qg(s){return typeof s=="number"?s:nr(s)?U:+s}function rr(s){if(typeof s=="string")return s;if(Mt(s))return he(s,rr)+"";if(nr(s))return xg?xg.call(s):"";var a=s+"";return a=="0"&&1/s==-z?"-0":a}function bn(s,a,g){var S=-1,N=ia,$=s.length,H=!0,X=[],tt=X;if(g)H=!1,N=sf;else if($>=i){var ut=a?null:Tk(s);if(ut)return oa(ut);H=!1,N=Ss,tt=new Wn}else tt=a?[]:X;t:for(;++S<$;){var ft=s[S],ht=a?a(ft):ft;if(ft=g||ft!==0?ft:0,H&&ht===ht){for(var gt=tt.length;gt--;)if(tt[gt]===ht)continue t;a&&tt.push(ht),X.push(ft)}else N(tt,ht,g)||(tt!==X&&tt.push(ht),X.push(ft))}return X}function Pf(s,a){return a=xn(a,s),s=mm(s,a),s==null||delete s[qr(vr(a))]}function zg(s,a,g,S){return Ls(s,a,g(Kn(s,a)),S)}function Aa(s,a,g,S){for(var N=s.length,$=S?N:-1;(S?$--:++$<N)&&a(s[$],$,s););return g?pr(s,S?0:$,S?$+1:N):pr(s,S?$+1:0,S?N:$)}function Hg(s,a){var g=s;return g instanceof Gt&&(g=g.value()),of(a,function(S,N){return N.func.apply(N.thisArg,gn([S],N.args))},g)}function Nf(s,a,g){var S=s.length;if(S<2)return S?bn(s[0]):[];for(var N=-1,$=st(S);++N<S;)for(var H=s[N],X=-1;++X<S;)X!=N&&($[N]=Ns($[N]||H,s[X],a,g));return bn(Me($,1),a,g)}function Vg(s,a,g){for(var S=-1,N=s.length,$=a.length,H={};++S<N;){var X=S<$?a[S]:r;g(H,s[S],X)}return H}function Mf(s){return be(s)?s:[]}function kf(s){return typeof s=="function"?s:Ke}function xn(s,a){return Mt(s)?s:qf(s,a)?[s]:xm(Jt(s))}var dk=Bt;function wn(s,a,g){var S=s.length;return g=g===r?S:g,!a&&g>=S?s:pr(s,a,g)}var Wg=t3||function(s){return Ne.clearTimeout(s)};function Xg(s,a){if(a)return s.slice();var g=s.length,S=vg?vg(g):new s.constructor(g);return s.copy(S),S}function Lf(s){var a=new s.constructor(s.byteLength);return new ha(a).set(new ha(s)),a}function pk(s,a){var g=a?Lf(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.byteLength)}function vk(s){var a=new s.constructor(s.source,Pv.exec(s));return a.lastIndex=s.lastIndex,a}function gk(s){return Is?ne(Is.call(s)):{}}function Kg(s,a){var g=a?Lf(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.length)}function Yg(s,a){if(s!==a){var g=s!==r,S=s===null,N=s===s,$=nr(s),H=a!==r,X=a===null,tt=a===a,ut=nr(a);if(!X&&!ut&&!$&&s>a||$&&H&&tt&&!X&&!ut||S&&H&&tt||!g&&tt||!N)return 1;if(!S&&!$&&!ut&&s<a||ut&&g&&N&&!S&&!$||X&&g&&N||!H&&N||!tt)return-1}return 0}function mk(s,a,g){for(var S=-1,N=s.criteria,$=a.criteria,H=N.length,X=g.length;++S<H;){var tt=Yg(N[S],$[S]);if(tt){if(S>=X)return tt;var ut=g[S];return tt*(ut=="desc"?-1:1)}}return s.index-a.index}function Zg(s,a,g,S){for(var N=-1,$=s.length,H=g.length,X=-1,tt=a.length,ut=Ae($-H,0),ft=st(tt+ut),ht=!S;++X<tt;)ft[X]=a[X];for(;++N<H;)(ht||N<$)&&(ft[g[N]]=s[N]);for(;ut--;)ft[X++]=s[N++];return ft}function Qg(s,a,g,S){for(var N=-1,$=s.length,H=-1,X=g.length,tt=-1,ut=a.length,ft=Ae($-X,0),ht=st(ft+ut),gt=!S;++N<ft;)ht[N]=s[N];for(var wt=N;++tt<ut;)ht[wt+tt]=a[tt];for(;++H<X;)(gt||N<$)&&(ht[wt+g[H]]=s[N++]);return ht}function Ve(s,a){var g=-1,S=s.length;for(a||(a=st(S));++g<S;)a[g]=s[g];return a}function jr(s,a,g,S){var N=!g;g||(g={});for(var $=-1,H=a.length;++$<H;){var X=a[$],tt=S?S(g[X],s[X],X,g,s):r;tt===r&&(tt=s[X]),N?Jr(g,X,tt):Ps(g,X,tt)}return g}function yk(s,a){return jr(s,jf(s),a)}function _k(s,a){return jr(s,cm(s),a)}function Oa(s,a){return function(g,S){var N=Mt(g)?EM:G3,$=a?a():{};return N(g,s,St(S,2),$)}}function qi(s){return Bt(function(a,g){var S=-1,N=g.length,$=N>1?g[N-1]:r,H=N>2?g[2]:r;for($=s.length>3&&typeof $=="function"?(N--,$):r,H&&qe(g[0],g[1],H)&&($=N<3?r:$,N=1),a=ne(a);++S<N;){var X=g[S];X&&s(a,X,S,$)}return a})}function Jg(s,a){return function(g,S){if(g==null)return g;if(!We(g))return s(g,S);for(var N=g.length,$=a?N:-1,H=ne(g);(a?$--:++$<N)&&S(H[$],$,H)!==!1;);return g}}function tm(s){return function(a,g,S){for(var N=-1,$=ne(a),H=S(a),X=H.length;X--;){var tt=H[s?X:++N];if(g($[tt],tt,$)===!1)break}return a}}function bk(s,a,g){var S=a&b,N=Fs(s);function $(){var H=this&&this!==Ne&&this instanceof $?N:s;return H.apply(S?g:this,arguments)}return $}function em(s){return function(a){a=Jt(a);var g=Fi(a)?Rr(a):r,S=g?g[0]:a.charAt(0),N=g?wn(g,1).join(""):a.slice(1);return S[s]()+N}}function zi(s){return function(a){return of(Jm(Qm(a).replace(fM,"")),s,"")}}function Fs(s){return function(){var a=arguments;switch(a.length){case 0:return new s;case 1:return new s(a[0]);case 2:return new s(a[0],a[1]);case 3:return new s(a[0],a[1],a[2]);case 4:return new s(a[0],a[1],a[2],a[3]);case 5:return new s(a[0],a[1],a[2],a[3],a[4]);case 6:return new s(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new s(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var g=ji(s.prototype),S=s.apply(g,a);return ge(S)?S:g}}function xk(s,a,g){var S=Fs(s);function N(){for(var $=arguments.length,H=st($),X=$,tt=Hi(N);X--;)H[X]=arguments[X];var ut=$<3&&H[0]!==tt&&H[$-1]!==tt?[]:mn(H,tt);if($-=ut.length,$<g)return om(s,a,Ca,N.placeholder,r,H,ut,r,r,g-$);var ft=this&&this!==Ne&&this instanceof N?S:s;return tr(ft,this,H)}return N}function rm(s){return function(a,g,S){var N=ne(a);if(!We(a)){var $=St(g,3);a=Ie(a),g=function(X){return $(N[X],X,N)}}var H=s(a,g,S);return H>-1?N[$?a[H]:H]:r}}function nm(s){return en(function(a){var g=a.length,S=g,N=hr.prototype.thru;for(s&&a.reverse();S--;){var $=a[S];if(typeof $!="function")throw new cr(l);if(N&&!H&&Na($)=="wrapper")var H=new hr([],!0)}for(S=H?S:g;++S<g;){$=a[S];var X=Na($),tt=X=="wrapper"?$f($):r;tt&&zf(tt[0])&&tt[1]==(A|T|E|O)&&!tt[4].length&&tt[9]==1?H=H[Na(tt[0])].apply(H,tt[3]):H=$.length==1&&zf($)?H[X]():H.thru($)}return function(){var ut=arguments,ft=ut[0];if(H&&ut.length==1&&Mt(ft))return H.plant(ft).value();for(var ht=0,gt=g?a[ht].apply(this,ut):ft;++ht<g;)gt=a[ht].call(this,gt);return gt}})}function Ca(s,a,g,S,N,$,H,X,tt,ut){var ft=a&A,ht=a&b,gt=a&y,wt=a&(T|x),Ot=a&L,Ft=gt?r:Fs(s);function Ct(){for(var Ut=arguments.length,zt=st(Ut),ir=Ut;ir--;)zt[ir]=arguments[ir];if(wt)var ze=Hi(Ct),sr=MM(zt,ze);if(S&&(zt=Zg(zt,S,N,wt)),$&&(zt=Qg(zt,$,H,wt)),Ut-=sr,wt&&Ut<ut){var xe=mn(zt,ze);return om(s,a,Ca,Ct.placeholder,g,zt,xe,X,tt,ut-Ut)}var Nr=ht?g:this,on=gt?Nr[s]:s;return Ut=zt.length,X?zt=Gk(zt,X):Ot&&Ut>1&&zt.reverse(),ft&&tt<Ut&&(zt.length=tt),this&&this!==Ne&&this instanceof Ct&&(on=Ft||Fs(on)),on.apply(Nr,zt)}return Ct}function im(s,a){return function(g,S){return K3(g,s,a(S),{})}}function Ra(s,a){return function(g,S){var N;if(g===r&&S===r)return a;if(g!==r&&(N=g),S!==r){if(N===r)return S;typeof g=="string"||typeof S=="string"?(g=rr(g),S=rr(S)):(g=qg(g),S=qg(S)),N=s(g,S)}return N}}function Ff(s){return en(function(a){return a=he(a,er(St())),Bt(function(g){var S=this;return s(a,function(N){return tr(N,S,g)})})})}function Ia(s,a){a=a===r?" ":rr(a);var g=a.length;if(g<2)return g?Rf(a,s):a;var S=Rf(a,ga(s/Bi(a)));return Fi(a)?wn(Rr(S),0,s).join(""):S.slice(0,s)}function wk(s,a,g,S){var N=a&b,$=Fs(s);function H(){for(var X=-1,tt=arguments.length,ut=-1,ft=S.length,ht=st(ft+tt),gt=this&&this!==Ne&&this instanceof H?$:s;++ut<ft;)ht[ut]=S[ut];for(;tt--;)ht[ut++]=arguments[++X];return tr(gt,N?g:this,ht)}return H}function sm(s){return function(a,g,S){return S&&typeof S!="number"&&qe(a,g,S)&&(g=S=r),a=sn(a),g===r?(g=a,a=0):g=sn(g),S=S===r?a<g?1:-1:sn(S),ak(a,g,S,s)}}function Pa(s){return function(a,g){return typeof a=="string"&&typeof g=="string"||(a=gr(a),g=gr(g)),s(a,g)}}function om(s,a,g,S,N,$,H,X,tt,ut){var ft=a&T,ht=ft?H:r,gt=ft?r:H,wt=ft?$:r,Ot=ft?r:$;a|=ft?E:I,a&=~(ft?I:E),a&w||(a&=~(b|y));var Ft=[s,a,N,wt,ht,Ot,gt,X,tt,ut],Ct=g.apply(r,Ft);return zf(s)&&ym(Ct,Ft),Ct.placeholder=S,_m(Ct,s,a)}function Bf(s){var a=Se[s];return function(g,S){if(g=gr(g),S=S==null?0:De(kt(S),292),S&&_g(g)){var N=(Jt(g)+"e").split("e"),$=a(N[0]+"e"+(+N[1]+S));return N=(Jt($)+"e").split("e"),+(N[0]+"e"+(+N[1]-S))}return a(g)}}var Tk=$i&&1/oa(new $i([,-0]))[1]==z?function(s){return new $i(s)}:sc;function am(s){return function(a){var g=Ue(a);return g==xt?df(a):g==vt?$M(a):NM(a,s(a))}}function tn(s,a,g,S,N,$,H,X){var tt=a&y;if(!tt&&typeof s!="function")throw new cr(l);var ut=S?S.length:0;if(ut||(a&=~(E|I),S=N=r),H=H===r?H:Ae(kt(H),0),X=X===r?X:kt(X),ut-=N?N.length:0,a&I){var ft=S,ht=N;S=N=r}var gt=tt?r:$f(s),wt=[s,a,g,S,N,ft,ht,$,H,X];if(gt&&Dk(wt,gt),s=wt[0],a=wt[1],g=wt[2],S=wt[3],N=wt[4],X=wt[9]=wt[9]===r?tt?0:s.length:Ae(wt[9]-ut,0),!X&&a&(T|x)&&(a&=~(T|x)),!a||a==b)var Ot=bk(s,a,g);else a==T||a==x?Ot=xk(s,a,X):(a==E||a==(b|E))&&!N.length?Ot=wk(s,a,g,S):Ot=Ca.apply(r,wt);var Ft=gt?Gg:ym;return _m(Ft(Ot,wt),s,a)}function lm(s,a,g,S){return s===r||Pr(s,Ui[g])&&!ee.call(S,g)?a:s}function um(s,a,g,S,N,$){return ge(s)&&ge(a)&&($.set(a,s),Ea(s,a,r,um,$),$.delete(a)),s}function Ek(s){return Us(s)?r:s}function fm(s,a,g,S,N,$){var H=g&m,X=s.length,tt=a.length;if(X!=tt&&!(H&&tt>X))return!1;var ut=$.get(s),ft=$.get(a);if(ut&&ft)return ut==a&&ft==s;var ht=-1,gt=!0,wt=g&_?new Wn:r;for($.set(s,a),$.set(a,s);++ht<X;){var Ot=s[ht],Ft=a[ht];if(S)var Ct=H?S(Ft,Ot,ht,a,s,$):S(Ot,Ft,ht,s,a,$);if(Ct!==r){if(Ct)continue;gt=!1;break}if(wt){if(!af(a,function(Ut,zt){if(!Ss(wt,zt)&&(Ot===Ut||N(Ot,Ut,g,S,$)))return wt.push(zt)})){gt=!1;break}}else if(!(Ot===Ft||N(Ot,Ft,g,S,$))){gt=!1;break}}return $.delete(s),$.delete(a),gt}function Sk(s,a,g,S,N,$,H){switch(g){case Qt:if(s.byteLength!=a.byteLength||s.byteOffset!=a.byteOffset)return!1;s=s.buffer,a=a.buffer;case Ge:return!(s.byteLength!=a.byteLength||!$(new ha(s),new ha(a)));case rt:case Q:case At:return Pr(+s,+a);case ot:return s.name==a.name&&s.message==a.message;case dt:case ct:return s==a+"";case xt:var X=df;case vt:var tt=S&m;if(X||(X=oa),s.size!=a.size&&!tt)return!1;var ut=H.get(s);if(ut)return ut==a;S|=_,H.set(s,a);var ft=fm(X(s),X(a),S,N,$,H);return H.delete(s),ft;case Pt:if(Is)return Is.call(s)==Is.call(a)}return!1}function Ak(s,a,g,S,N,$){var H=g&m,X=Df(s),tt=X.length,ut=Df(a),ft=ut.length;if(tt!=ft&&!H)return!1;for(var ht=tt;ht--;){var gt=X[ht];if(!(H?gt in a:ee.call(a,gt)))return!1}var wt=$.get(s),Ot=$.get(a);if(wt&&Ot)return wt==a&&Ot==s;var Ft=!0;$.set(s,a),$.set(a,s);for(var Ct=H;++ht<tt;){gt=X[ht];var Ut=s[gt],zt=a[gt];if(S)var ir=H?S(zt,Ut,gt,a,s,$):S(Ut,zt,gt,s,a,$);if(!(ir===r?Ut===zt||N(Ut,zt,g,S,$):ir)){Ft=!1;break}Ct||(Ct=gt=="constructor")}if(Ft&&!Ct){var ze=s.constructor,sr=a.constructor;ze!=sr&&"constructor"in s&&"constructor"in a&&!(typeof ze=="function"&&ze instanceof ze&&typeof sr=="function"&&sr instanceof sr)&&(Ft=!1)}return $.delete(s),$.delete(a),Ft}function en(s){return Vf(gm(s,r,Sm),s+"")}function Df(s){return Ig(s,Ie,jf)}function Uf(s){return Ig(s,Xe,cm)}var $f=ya?function(s){return ya.get(s)}:sc;function Na(s){for(var a=s.name+"",g=Gi[a],S=ee.call(Gi,a)?g.length:0;S--;){var N=g[S],$=N.func;if($==null||$==s)return N.name}return a}function Hi(s){var a=ee.call(B,"placeholder")?B:s;return a.placeholder}function St(){var s=B.iteratee||nc;return s=s===nc?Mg:s,arguments.length?s(arguments[0],arguments[1]):s}function Ma(s,a){var g=s.__data__;return kk(a)?g[typeof a=="string"?"string":"hash"]:g.map}function Gf(s){for(var a=Ie(s),g=a.length;g--;){var S=a[g],N=s[S];a[g]=[S,N,pm(N)]}return a}function Yn(s,a){var g=BM(s,a);return Ng(g)?g:r}function Ok(s){var a=ee.call(s,Hn),g=s[Hn];try{s[Hn]=r;var S=!0}catch{}var N=fa.call(s);return S&&(a?s[Hn]=g:delete s[Hn]),N}var jf=vf?function(s){return s==null?[]:(s=ne(s),vn(vf(s),function(a){return mg.call(s,a)}))}:oc,cm=vf?function(s){for(var a=[];s;)gn(a,jf(s)),s=da(s);return a}:oc,Ue=je;(gf&&Ue(new gf(new ArrayBuffer(1)))!=Qt||Os&&Ue(new Os)!=xt||mf&&Ue(mf.resolve())!=nt||$i&&Ue(new $i)!=vt||Cs&&Ue(new Cs)!=Nt)&&(Ue=function(s){var a=je(s),g=a==qt?s.constructor:r,S=g?Zn(g):"";if(S)switch(S){case u3:return Qt;case f3:return xt;case c3:return nt;case h3:return vt;case d3:return Nt}return a});function Ck(s,a,g){for(var S=-1,N=g.length;++S<N;){var $=g[S],H=$.size;switch($.type){case"drop":s+=H;break;case"dropRight":a-=H;break;case"take":a=De(a,s+H);break;case"takeRight":s=Ae(s,a-H);break}}return{start:s,end:a}}function Rk(s){var a=s.match(LN);return a?a[1].split(FN):[]}function hm(s,a,g){a=xn(a,s);for(var S=-1,N=a.length,$=!1;++S<N;){var H=qr(a[S]);if(!($=s!=null&&g(s,H)))break;s=s[H]}return $||++S!=N?$:(N=s==null?0:s.length,!!N&&$a(N)&&rn(H,N)&&(Mt(s)||Qn(s)))}function Ik(s){var a=s.length,g=new s.constructor(a);return a&&typeof s[0]=="string"&&ee.call(s,"index")&&(g.index=s.index,g.input=s.input),g}function dm(s){return typeof s.constructor=="function"&&!Bs(s)?ji(da(s)):{}}function Pk(s,a,g){var S=s.constructor;switch(a){case Ge:return Lf(s);case rt:case Q:return new S(+s);case Qt:return pk(s,g);case Es:case ce:case lr:case qu:case zu:case Hu:case Vu:case Wu:case Xu:return Kg(s,g);case xt:return new S;case At:case ct:return new S(s);case dt:return vk(s);case vt:return new S;case Pt:return gk(s)}}function Nk(s,a){var g=a.length;if(!g)return s;var S=g-1;return a[S]=(g>1?"& ":"")+a[S],a=a.join(g>2?", ":" "),s.replace(kN,`{
1941
+ */ta.exports,function(e,t){(function(){var r,n="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",h=500,d="__lodash_placeholder__",p=1,c=2,v=4,m=1,_=2,b=1,y=2,w=4,T=8,x=16,E=32,I=64,A=128,O=256,L=512,R=30,C="...",P=800,M=16,F=1,q=2,Y=3,z=1/0,it=9007199254740991,W=17976931348623157e292,U=0/0,k=4294967295,D=k-1,j=k>>>1,Z=[["ary",A],["bind",b],["bindKey",y],["curry",T],["curryRight",x],["flip",L],["partial",E],["partialRight",I],["rearg",O]],X="[object Arguments]",G="[object Array]",V="[object AsyncFunction]",et="[object Boolean]",Q="[object Date]",rt="[object DOMException]",ot="[object Error]",pt="[object Function]",mt="[object GeneratorFunction]",xt="[object Map]",At="[object Number]",oe="[object Null]",qt="[object Object]",nt="[object Promise]",lt="[object Proxy]",dt="[object RegExp]",vt="[object Set]",ct="[object String]",Pt="[object Symbol]",Lt="[object Undefined]",Nt="[object WeakMap]",He="[object WeakSet]",Ge="[object ArrayBuffer]",Qt="[object DataView]",Es="[object Float32Array]",ce="[object Float64Array]",lr="[object Int8Array]",qu="[object Int16Array]",zu="[object Int32Array]",Hu="[object Uint8Array]",Vu="[object Uint8ClampedArray]",Wu="[object Uint16Array]",Xu="[object Uint32Array]",wN=/\b__p \+= '';/g,TN=/\b(__p \+=) '' \+/g,EN=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Cv=/&(?:amp|lt|gt|quot|#39);/g,Rv=/[&<>"']/g,SN=RegExp(Cv.source),AN=RegExp(Rv.source),ON=/<%-([\s\S]+?)%>/g,CN=/<%([\s\S]+?)%>/g,Iv=/<%=([\s\S]+?)%>/g,RN=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,IN=/^\w*$/,PN=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ku=/[\\^$.*+?()[\]{}|]/g,NN=RegExp(Ku.source),Yu=/^\s+/,MN=/\s/,kN=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,LN=/\{\n\/\* \[wrapped with (.+)\] \*/,FN=/,? & /,BN=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,DN=/[()=,{}\[\]\/\s]/,UN=/\\(\\)?/g,$N=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pv=/\w*$/,GN=/^[-+]0x[0-9a-f]+$/i,jN=/^0b[01]+$/i,qN=/^\[object .+?Constructor\]$/,zN=/^0o[0-7]+$/i,HN=/^(?:0|[1-9]\d*)$/,VN=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ea=/($^)/,WN=/['\n\r\u2028\u2029\\]/g,ra="\\ud800-\\udfff",XN="\\u0300-\\u036f",KN="\\ufe20-\\ufe2f",YN="\\u20d0-\\u20ff",Nv=XN+KN+YN,Mv="\\u2700-\\u27bf",kv="a-z\\xdf-\\xf6\\xf8-\\xff",ZN="\\xac\\xb1\\xd7\\xf7",QN="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",JN="\\u2000-\\u206f",tM=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Lv="A-Z\\xc0-\\xd6\\xd8-\\xde",Fv="\\ufe0e\\ufe0f",Bv=ZN+QN+JN+tM,Zu="['’]",eM="["+ra+"]",Dv="["+Bv+"]",na="["+Nv+"]",Uv="\\d+",rM="["+Mv+"]",$v="["+kv+"]",Gv="[^"+ra+Bv+Uv+Mv+kv+Lv+"]",Qu="\\ud83c[\\udffb-\\udfff]",nM="(?:"+na+"|"+Qu+")",jv="[^"+ra+"]",Ju="(?:\\ud83c[\\udde6-\\uddff]){2}",tf="[\\ud800-\\udbff][\\udc00-\\udfff]",ki="["+Lv+"]",qv="\\u200d",zv="(?:"+$v+"|"+Gv+")",iM="(?:"+ki+"|"+Gv+")",Hv="(?:"+Zu+"(?:d|ll|m|re|s|t|ve))?",Vv="(?:"+Zu+"(?:D|LL|M|RE|S|T|VE))?",Wv=nM+"?",Xv="["+Fv+"]?",sM="(?:"+qv+"(?:"+[jv,Ju,tf].join("|")+")"+Xv+Wv+")*",oM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",aM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Kv=Xv+Wv+sM,lM="(?:"+[rM,Ju,tf].join("|")+")"+Kv,uM="(?:"+[jv+na+"?",na,Ju,tf,eM].join("|")+")",fM=RegExp(Zu,"g"),cM=RegExp(na,"g"),ef=RegExp(Qu+"(?="+Qu+")|"+uM+Kv,"g"),hM=RegExp([ki+"?"+$v+"+"+Hv+"(?="+[Dv,ki,"$"].join("|")+")",iM+"+"+Vv+"(?="+[Dv,ki+zv,"$"].join("|")+")",ki+"?"+zv+"+"+Hv,ki+"+"+Vv,aM,oM,Uv,lM].join("|"),"g"),dM=RegExp("["+qv+ra+Nv+Fv+"]"),pM=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,vM=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],gM=-1,ue={};ue[Es]=ue[ce]=ue[lr]=ue[qu]=ue[zu]=ue[Hu]=ue[Vu]=ue[Wu]=ue[Xu]=!0,ue[X]=ue[G]=ue[Ge]=ue[et]=ue[Qt]=ue[Q]=ue[ot]=ue[pt]=ue[xt]=ue[At]=ue[qt]=ue[dt]=ue[vt]=ue[ct]=ue[Nt]=!1;var ae={};ae[X]=ae[G]=ae[Ge]=ae[Qt]=ae[et]=ae[Q]=ae[Es]=ae[ce]=ae[lr]=ae[qu]=ae[zu]=ae[xt]=ae[At]=ae[qt]=ae[dt]=ae[vt]=ae[ct]=ae[Pt]=ae[Hu]=ae[Vu]=ae[Wu]=ae[Xu]=!0,ae[ot]=ae[pt]=ae[Nt]=!1;var mM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},yM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},_M={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},bM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xM=parseFloat,wM=parseInt,Yv=typeof Ye=="object"&&Ye&&Ye.Object===Object&&Ye,TM=typeof self=="object"&&self&&self.Object===Object&&self,Ne=Yv||TM||Function("return this")(),rf=t&&!t.nodeType&&t,zn=rf&&!0&&e&&!e.nodeType&&e,Zv=zn&&zn.exports===rf,nf=Zv&&Yv.process,ur=function(){try{var J=zn&&zn.require&&zn.require("util").types;return J||nf&&nf.binding&&nf.binding("util")}catch{}}(),Qv=ur&&ur.isArrayBuffer,Jv=ur&&ur.isDate,tg=ur&&ur.isMap,eg=ur&&ur.isRegExp,rg=ur&&ur.isSet,ng=ur&&ur.isTypedArray;function tr(J,at,st){switch(st.length){case 0:return J.call(at);case 1:return J.call(at,st[0]);case 2:return J.call(at,st[0],st[1]);case 3:return J.call(at,st[0],st[1],st[2])}return J.apply(at,st)}function EM(J,at,st,bt){for(var It=-1,Kt=J==null?0:J.length;++It<Kt;){var Se=J[It];at(bt,Se,st(Se),J)}return bt}function fr(J,at){for(var st=-1,bt=J==null?0:J.length;++st<bt&&at(J[st],st,J)!==!1;);return J}function SM(J,at){for(var st=J==null?0:J.length;st--&&at(J[st],st,J)!==!1;);return J}function ig(J,at){for(var st=-1,bt=J==null?0:J.length;++st<bt;)if(!at(J[st],st,J))return!1;return!0}function vn(J,at){for(var st=-1,bt=J==null?0:J.length,It=0,Kt=[];++st<bt;){var Se=J[st];at(Se,st,J)&&(Kt[It++]=Se)}return Kt}function ia(J,at){var st=J==null?0:J.length;return!!st&&Li(J,at,0)>-1}function sf(J,at,st){for(var bt=-1,It=J==null?0:J.length;++bt<It;)if(st(at,J[bt]))return!0;return!1}function he(J,at){for(var st=-1,bt=J==null?0:J.length,It=Array(bt);++st<bt;)It[st]=at(J[st],st,J);return It}function gn(J,at){for(var st=-1,bt=at.length,It=J.length;++st<bt;)J[It+st]=at[st];return J}function of(J,at,st,bt){var It=-1,Kt=J==null?0:J.length;for(bt&&Kt&&(st=J[++It]);++It<Kt;)st=at(st,J[It],It,J);return st}function AM(J,at,st,bt){var It=J==null?0:J.length;for(bt&&It&&(st=J[--It]);It--;)st=at(st,J[It],It,J);return st}function af(J,at){for(var st=-1,bt=J==null?0:J.length;++st<bt;)if(at(J[st],st,J))return!0;return!1}var OM=lf("length");function CM(J){return J.split("")}function RM(J){return J.match(BN)||[]}function sg(J,at,st){var bt;return st(J,function(It,Kt,Se){if(at(It,Kt,Se))return bt=Kt,!1}),bt}function sa(J,at,st,bt){for(var It=J.length,Kt=st+(bt?1:-1);bt?Kt--:++Kt<It;)if(at(J[Kt],Kt,J))return Kt;return-1}function Li(J,at,st){return at===at?GM(J,at,st):sa(J,og,st)}function IM(J,at,st,bt){for(var It=st-1,Kt=J.length;++It<Kt;)if(bt(J[It],at))return It;return-1}function og(J){return J!==J}function ag(J,at){var st=J==null?0:J.length;return st?ff(J,at)/st:U}function lf(J){return function(at){return at==null?r:at[J]}}function uf(J){return function(at){return J==null?r:J[at]}}function lg(J,at,st,bt,It){return It(J,function(Kt,Se,ne){st=bt?(bt=!1,Kt):at(st,Kt,Se,ne)}),st}function PM(J,at){var st=J.length;for(J.sort(at);st--;)J[st]=J[st].value;return J}function ff(J,at){for(var st,bt=-1,It=J.length;++bt<It;){var Kt=at(J[bt]);Kt!==r&&(st=st===r?Kt:st+Kt)}return st}function cf(J,at){for(var st=-1,bt=Array(J);++st<J;)bt[st]=at(st);return bt}function NM(J,at){return he(at,function(st){return[st,J[st]]})}function ug(J){return J&&J.slice(0,dg(J)+1).replace(Yu,"")}function er(J){return function(at){return J(at)}}function hf(J,at){return he(at,function(st){return J[st]})}function Ss(J,at){return J.has(at)}function fg(J,at){for(var st=-1,bt=J.length;++st<bt&&Li(at,J[st],0)>-1;);return st}function cg(J,at){for(var st=J.length;st--&&Li(at,J[st],0)>-1;);return st}function MM(J,at){for(var st=J.length,bt=0;st--;)J[st]===at&&++bt;return bt}var kM=uf(mM),LM=uf(yM);function FM(J){return"\\"+bM[J]}function BM(J,at){return J==null?r:J[at]}function Fi(J){return dM.test(J)}function DM(J){return pM.test(J)}function UM(J){for(var at,st=[];!(at=J.next()).done;)st.push(at.value);return st}function df(J){var at=-1,st=Array(J.size);return J.forEach(function(bt,It){st[++at]=[It,bt]}),st}function hg(J,at){return function(st){return J(at(st))}}function mn(J,at){for(var st=-1,bt=J.length,It=0,Kt=[];++st<bt;){var Se=J[st];(Se===at||Se===d)&&(J[st]=d,Kt[It++]=st)}return Kt}function oa(J){var at=-1,st=Array(J.size);return J.forEach(function(bt){st[++at]=bt}),st}function $M(J){var at=-1,st=Array(J.size);return J.forEach(function(bt){st[++at]=[bt,bt]}),st}function GM(J,at,st){for(var bt=st-1,It=J.length;++bt<It;)if(J[bt]===at)return bt;return-1}function jM(J,at,st){for(var bt=st+1;bt--;)if(J[bt]===at)return bt;return bt}function Bi(J){return Fi(J)?zM(J):OM(J)}function Rr(J){return Fi(J)?HM(J):CM(J)}function dg(J){for(var at=J.length;at--&&MN.test(J.charAt(at)););return at}var qM=uf(_M);function zM(J){for(var at=ef.lastIndex=0;ef.test(J);)++at;return at}function HM(J){return J.match(ef)||[]}function VM(J){return J.match(hM)||[]}var WM=function J(at){at=at==null?Ne:Di.defaults(Ne.Object(),at,Di.pick(Ne,vM));var st=at.Array,bt=at.Date,It=at.Error,Kt=at.Function,Se=at.Math,ne=at.Object,pf=at.RegExp,XM=at.String,cr=at.TypeError,aa=st.prototype,KM=Kt.prototype,Ui=ne.prototype,la=at["__core-js_shared__"],ua=KM.toString,ee=Ui.hasOwnProperty,YM=0,pg=function(){var s=/[^.]+$/.exec(la&&la.keys&&la.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}(),fa=Ui.toString,ZM=ua.call(ne),QM=Ne._,JM=pf("^"+ua.call(ee).replace(Ku,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ca=Zv?at.Buffer:r,yn=at.Symbol,ha=at.Uint8Array,vg=ca?ca.allocUnsafe:r,da=hg(ne.getPrototypeOf,ne),gg=ne.create,mg=Ui.propertyIsEnumerable,pa=aa.splice,yg=yn?yn.isConcatSpreadable:r,As=yn?yn.iterator:r,Hn=yn?yn.toStringTag:r,va=function(){try{var s=Yn(ne,"defineProperty");return s({},"",{}),s}catch{}}(),t3=at.clearTimeout!==Ne.clearTimeout&&at.clearTimeout,e3=bt&&bt.now!==Ne.Date.now&&bt.now,r3=at.setTimeout!==Ne.setTimeout&&at.setTimeout,ga=Se.ceil,ma=Se.floor,vf=ne.getOwnPropertySymbols,n3=ca?ca.isBuffer:r,_g=at.isFinite,i3=aa.join,s3=hg(ne.keys,ne),Ae=Se.max,De=Se.min,o3=bt.now,a3=at.parseInt,bg=Se.random,l3=aa.reverse,gf=Yn(at,"DataView"),Os=Yn(at,"Map"),mf=Yn(at,"Promise"),$i=Yn(at,"Set"),Cs=Yn(at,"WeakMap"),Rs=Yn(ne,"create"),ya=Cs&&new Cs,Gi={},u3=Zn(gf),f3=Zn(Os),c3=Zn(mf),h3=Zn($i),d3=Zn(Cs),_a=yn?yn.prototype:r,Is=_a?_a.valueOf:r,xg=_a?_a.toString:r;function B(s){if(ye(s)&&!Mt(s)&&!(s instanceof Gt)){if(s instanceof hr)return s;if(ee.call(s,"__wrapped__"))return wm(s)}return new hr(s)}var ji=function(){function s(){}return function(a){if(!ge(a))return{};if(gg)return gg(a);s.prototype=a;var g=new s;return s.prototype=r,g}}();function ba(){}function hr(s,a){this.__wrapped__=s,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=r}B.templateSettings={escape:ON,evaluate:CN,interpolate:Iv,variable:"",imports:{_:B}},B.prototype=ba.prototype,B.prototype.constructor=B,hr.prototype=ji(ba.prototype),hr.prototype.constructor=hr;function Gt(s){this.__wrapped__=s,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=k,this.__views__=[]}function p3(){var s=new Gt(this.__wrapped__);return s.__actions__=Ve(this.__actions__),s.__dir__=this.__dir__,s.__filtered__=this.__filtered__,s.__iteratees__=Ve(this.__iteratees__),s.__takeCount__=this.__takeCount__,s.__views__=Ve(this.__views__),s}function v3(){if(this.__filtered__){var s=new Gt(this);s.__dir__=-1,s.__filtered__=!0}else s=this.clone(),s.__dir__*=-1;return s}function g3(){var s=this.__wrapped__.value(),a=this.__dir__,g=Mt(s),S=a<0,N=g?s.length:0,$=Ck(0,N,this.__views__),H=$.start,K=$.end,tt=K-H,ut=S?K:H-1,ft=this.__iteratees__,ht=ft.length,gt=0,wt=De(tt,this.__takeCount__);if(!g||!S&&N==tt&&wt==tt)return Hg(s,this.__actions__);var Ot=[];t:for(;tt--&&gt<wt;){ut+=a;for(var Ft=-1,Ct=s[ut];++Ft<ht;){var Ut=ft[Ft],zt=Ut.iteratee,ir=Ut.type,ze=zt(Ct);if(ir==q)Ct=ze;else if(!ze){if(ir==F)continue t;break t}}Ot[gt++]=Ct}return Ot}Gt.prototype=ji(ba.prototype),Gt.prototype.constructor=Gt;function Vn(s){var a=-1,g=s==null?0:s.length;for(this.clear();++a<g;){var S=s[a];this.set(S[0],S[1])}}function m3(){this.__data__=Rs?Rs(null):{},this.size=0}function y3(s){var a=this.has(s)&&delete this.__data__[s];return this.size-=a?1:0,a}function _3(s){var a=this.__data__;if(Rs){var g=a[s];return g===f?r:g}return ee.call(a,s)?a[s]:r}function b3(s){var a=this.__data__;return Rs?a[s]!==r:ee.call(a,s)}function x3(s,a){var g=this.__data__;return this.size+=this.has(s)?0:1,g[s]=Rs&&a===r?f:a,this}Vn.prototype.clear=m3,Vn.prototype.delete=y3,Vn.prototype.get=_3,Vn.prototype.has=b3,Vn.prototype.set=x3;function Zr(s){var a=-1,g=s==null?0:s.length;for(this.clear();++a<g;){var S=s[a];this.set(S[0],S[1])}}function w3(){this.__data__=[],this.size=0}function T3(s){var a=this.__data__,g=xa(a,s);if(g<0)return!1;var S=a.length-1;return g==S?a.pop():pa.call(a,g,1),--this.size,!0}function E3(s){var a=this.__data__,g=xa(a,s);return g<0?r:a[g][1]}function S3(s){return xa(this.__data__,s)>-1}function A3(s,a){var g=this.__data__,S=xa(g,s);return S<0?(++this.size,g.push([s,a])):g[S][1]=a,this}Zr.prototype.clear=w3,Zr.prototype.delete=T3,Zr.prototype.get=E3,Zr.prototype.has=S3,Zr.prototype.set=A3;function Qr(s){var a=-1,g=s==null?0:s.length;for(this.clear();++a<g;){var S=s[a];this.set(S[0],S[1])}}function O3(){this.size=0,this.__data__={hash:new Vn,map:new(Os||Zr),string:new Vn}}function C3(s){var a=Ma(this,s).delete(s);return this.size-=a?1:0,a}function R3(s){return Ma(this,s).get(s)}function I3(s){return Ma(this,s).has(s)}function P3(s,a){var g=Ma(this,s),S=g.size;return g.set(s,a),this.size+=g.size==S?0:1,this}Qr.prototype.clear=O3,Qr.prototype.delete=C3,Qr.prototype.get=R3,Qr.prototype.has=I3,Qr.prototype.set=P3;function Wn(s){var a=-1,g=s==null?0:s.length;for(this.__data__=new Qr;++a<g;)this.add(s[a])}function N3(s){return this.__data__.set(s,f),this}function M3(s){return this.__data__.has(s)}Wn.prototype.add=Wn.prototype.push=N3,Wn.prototype.has=M3;function Ir(s){var a=this.__data__=new Zr(s);this.size=a.size}function k3(){this.__data__=new Zr,this.size=0}function L3(s){var a=this.__data__,g=a.delete(s);return this.size=a.size,g}function F3(s){return this.__data__.get(s)}function B3(s){return this.__data__.has(s)}function D3(s,a){var g=this.__data__;if(g instanceof Zr){var S=g.__data__;if(!Os||S.length<i-1)return S.push([s,a]),this.size=++g.size,this;g=this.__data__=new Qr(S)}return g.set(s,a),this.size=g.size,this}Ir.prototype.clear=k3,Ir.prototype.delete=L3,Ir.prototype.get=F3,Ir.prototype.has=B3,Ir.prototype.set=D3;function wg(s,a){var g=Mt(s),S=!g&&Qn(s),N=!g&&!S&&Tn(s),$=!g&&!S&&!N&&Vi(s),H=g||S||N||$,K=H?cf(s.length,XM):[],tt=K.length;for(var ut in s)(a||ee.call(s,ut))&&!(H&&(ut=="length"||N&&(ut=="offset"||ut=="parent")||$&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||rn(ut,tt)))&&K.push(ut);return K}function Tg(s){var a=s.length;return a?s[Cf(0,a-1)]:r}function U3(s,a){return ka(Ve(s),Xn(a,0,s.length))}function $3(s){return ka(Ve(s))}function yf(s,a,g){(g!==r&&!Pr(s[a],g)||g===r&&!(a in s))&&Jr(s,a,g)}function Ps(s,a,g){var S=s[a];(!(ee.call(s,a)&&Pr(S,g))||g===r&&!(a in s))&&Jr(s,a,g)}function xa(s,a){for(var g=s.length;g--;)if(Pr(s[g][0],a))return g;return-1}function G3(s,a,g,S){return _n(s,function(N,$,H){a(S,N,g(N),H)}),S}function Eg(s,a){return s&&jr(a,Ie(a),s)}function j3(s,a){return s&&jr(a,Xe(a),s)}function Jr(s,a,g){a=="__proto__"&&va?va(s,a,{configurable:!0,enumerable:!0,value:g,writable:!0}):s[a]=g}function _f(s,a){for(var g=-1,S=a.length,N=st(S),$=s==null;++g<S;)N[g]=$?r:Jf(s,a[g]);return N}function Xn(s,a,g){return s===s&&(g!==r&&(s=s<=g?s:g),a!==r&&(s=s>=a?s:a)),s}function dr(s,a,g,S,N,$){var H,K=a&p,tt=a&c,ut=a&v;if(g&&(H=N?g(s,S,N,$):g(s)),H!==r)return H;if(!ge(s))return s;var ft=Mt(s);if(ft){if(H=Ik(s),!K)return Ve(s,H)}else{var ht=Ue(s),gt=ht==pt||ht==mt;if(Tn(s))return Xg(s,K);if(ht==qt||ht==X||gt&&!N){if(H=tt||gt?{}:dm(s),!K)return tt?_k(s,j3(H,s)):yk(s,Eg(H,s))}else{if(!ae[ht])return N?s:{};H=Pk(s,ht,K)}}$||($=new Ir);var wt=$.get(s);if(wt)return wt;$.set(s,H),jm(s)?s.forEach(function(Ct){H.add(dr(Ct,a,g,Ct,s,$))}):$m(s)&&s.forEach(function(Ct,Ut){H.set(Ut,dr(Ct,a,g,Ut,s,$))});var Ot=ut?tt?Uf:Df:tt?Xe:Ie,Ft=ft?r:Ot(s);return fr(Ft||s,function(Ct,Ut){Ft&&(Ut=Ct,Ct=s[Ut]),Ps(H,Ut,dr(Ct,a,g,Ut,s,$))}),H}function q3(s){var a=Ie(s);return function(g){return Sg(g,s,a)}}function Sg(s,a,g){var S=g.length;if(s==null)return!S;for(s=ne(s);S--;){var N=g[S],$=a[N],H=s[N];if(H===r&&!(N in s)||!$(H))return!1}return!0}function Ag(s,a,g){if(typeof s!="function")throw new cr(l);return Ds(function(){s.apply(r,g)},a)}function Ns(s,a,g,S){var N=-1,$=ia,H=!0,K=s.length,tt=[],ut=a.length;if(!K)return tt;g&&(a=he(a,er(g))),S?($=sf,H=!1):a.length>=i&&($=Ss,H=!1,a=new Wn(a));t:for(;++N<K;){var ft=s[N],ht=g==null?ft:g(ft);if(ft=S||ft!==0?ft:0,H&&ht===ht){for(var gt=ut;gt--;)if(a[gt]===ht)continue t;tt.push(ft)}else $(a,ht,S)||tt.push(ft)}return tt}var _n=Jg(Gr),Og=Jg(xf,!0);function z3(s,a){var g=!0;return _n(s,function(S,N,$){return g=!!a(S,N,$),g}),g}function wa(s,a,g){for(var S=-1,N=s.length;++S<N;){var $=s[S],H=a($);if(H!=null&&(K===r?H===H&&!nr(H):g(H,K)))var K=H,tt=$}return tt}function H3(s,a,g,S){var N=s.length;for(g=kt(g),g<0&&(g=-g>N?0:N+g),S=S===r||S>N?N:kt(S),S<0&&(S+=N),S=g>S?0:zm(S);g<S;)s[g++]=a;return s}function Cg(s,a){var g=[];return _n(s,function(S,N,$){a(S,N,$)&&g.push(S)}),g}function Me(s,a,g,S,N){var $=-1,H=s.length;for(g||(g=Mk),N||(N=[]);++$<H;){var K=s[$];a>0&&g(K)?a>1?Me(K,a-1,g,S,N):gn(N,K):S||(N[N.length]=K)}return N}var bf=tm(),Rg=tm(!0);function Gr(s,a){return s&&bf(s,a,Ie)}function xf(s,a){return s&&Rg(s,a,Ie)}function Ta(s,a){return vn(a,function(g){return nn(s[g])})}function Kn(s,a){a=xn(a,s);for(var g=0,S=a.length;s!=null&&g<S;)s=s[qr(a[g++])];return g&&g==S?s:r}function Ig(s,a,g){var S=a(s);return Mt(s)?S:gn(S,g(s))}function je(s){return s==null?s===r?Lt:oe:Hn&&Hn in ne(s)?Ok(s):$k(s)}function wf(s,a){return s>a}function V3(s,a){return s!=null&&ee.call(s,a)}function W3(s,a){return s!=null&&a in ne(s)}function X3(s,a,g){return s>=De(a,g)&&s<Ae(a,g)}function Tf(s,a,g){for(var S=g?sf:ia,N=s[0].length,$=s.length,H=$,K=st($),tt=1/0,ut=[];H--;){var ft=s[H];H&&a&&(ft=he(ft,er(a))),tt=De(ft.length,tt),K[H]=!g&&(a||N>=120&&ft.length>=120)?new Wn(H&&ft):r}ft=s[0];var ht=-1,gt=K[0];t:for(;++ht<N&&ut.length<tt;){var wt=ft[ht],Ot=a?a(wt):wt;if(wt=g||wt!==0?wt:0,!(gt?Ss(gt,Ot):S(ut,Ot,g))){for(H=$;--H;){var Ft=K[H];if(!(Ft?Ss(Ft,Ot):S(s[H],Ot,g)))continue t}gt&&gt.push(Ot),ut.push(wt)}}return ut}function K3(s,a,g,S){return Gr(s,function(N,$,H){a(S,g(N),$,H)}),S}function Ms(s,a,g){a=xn(a,s),s=mm(s,a);var S=s==null?s:s[qr(vr(a))];return S==null?r:tr(S,s,g)}function Pg(s){return ye(s)&&je(s)==X}function Y3(s){return ye(s)&&je(s)==Ge}function Z3(s){return ye(s)&&je(s)==Q}function ks(s,a,g,S,N){return s===a?!0:s==null||a==null||!ye(s)&&!ye(a)?s!==s&&a!==a:Q3(s,a,g,S,ks,N)}function Q3(s,a,g,S,N,$){var H=Mt(s),K=Mt(a),tt=H?G:Ue(s),ut=K?G:Ue(a);tt=tt==X?qt:tt,ut=ut==X?qt:ut;var ft=tt==qt,ht=ut==qt,gt=tt==ut;if(gt&&Tn(s)){if(!Tn(a))return!1;H=!0,ft=!1}if(gt&&!ft)return $||($=new Ir),H||Vi(s)?fm(s,a,g,S,N,$):Sk(s,a,tt,g,S,N,$);if(!(g&m)){var wt=ft&&ee.call(s,"__wrapped__"),Ot=ht&&ee.call(a,"__wrapped__");if(wt||Ot){var Ft=wt?s.value():s,Ct=Ot?a.value():a;return $||($=new Ir),N(Ft,Ct,g,S,$)}}return gt?($||($=new Ir),Ak(s,a,g,S,N,$)):!1}function J3(s){return ye(s)&&Ue(s)==xt}function Ef(s,a,g,S){var N=g.length,$=N,H=!S;if(s==null)return!$;for(s=ne(s);N--;){var K=g[N];if(H&&K[2]?K[1]!==s[K[0]]:!(K[0]in s))return!1}for(;++N<$;){K=g[N];var tt=K[0],ut=s[tt],ft=K[1];if(H&&K[2]){if(ut===r&&!(tt in s))return!1}else{var ht=new Ir;if(S)var gt=S(ut,ft,tt,s,a,ht);if(!(gt===r?ks(ft,ut,m|_,S,ht):gt))return!1}}return!0}function Ng(s){if(!ge(s)||Lk(s))return!1;var a=nn(s)?JM:qN;return a.test(Zn(s))}function tk(s){return ye(s)&&je(s)==dt}function ek(s){return ye(s)&&Ue(s)==vt}function rk(s){return ye(s)&&$a(s.length)&&!!ue[je(s)]}function Mg(s){return typeof s=="function"?s:s==null?Ke:typeof s=="object"?Mt(s)?Fg(s[0],s[1]):Lg(s):ey(s)}function Sf(s){if(!Bs(s))return s3(s);var a=[];for(var g in ne(s))ee.call(s,g)&&g!="constructor"&&a.push(g);return a}function nk(s){if(!ge(s))return Uk(s);var a=Bs(s),g=[];for(var S in s)S=="constructor"&&(a||!ee.call(s,S))||g.push(S);return g}function Af(s,a){return s<a}function kg(s,a){var g=-1,S=We(s)?st(s.length):[];return _n(s,function(N,$,H){S[++g]=a(N,$,H)}),S}function Lg(s){var a=Gf(s);return a.length==1&&a[0][2]?vm(a[0][0],a[0][1]):function(g){return g===s||Ef(g,s,a)}}function Fg(s,a){return qf(s)&&pm(a)?vm(qr(s),a):function(g){var S=Jf(g,s);return S===r&&S===a?tc(g,s):ks(a,S,m|_)}}function Ea(s,a,g,S,N){s!==a&&bf(a,function($,H){if(N||(N=new Ir),ge($))ik(s,a,H,g,Ea,S,N);else{var K=S?S(Hf(s,H),$,H+"",s,a,N):r;K===r&&(K=$),yf(s,H,K)}},Xe)}function ik(s,a,g,S,N,$,H){var K=Hf(s,g),tt=Hf(a,g),ut=H.get(tt);if(ut){yf(s,g,ut);return}var ft=$?$(K,tt,g+"",s,a,H):r,ht=ft===r;if(ht){var gt=Mt(tt),wt=!gt&&Tn(tt),Ot=!gt&&!wt&&Vi(tt);ft=tt,gt||wt||Ot?Mt(K)?ft=K:be(K)?ft=Ve(K):wt?(ht=!1,ft=Xg(tt,!0)):Ot?(ht=!1,ft=Kg(tt,!0)):ft=[]:Us(tt)||Qn(tt)?(ft=K,Qn(K)?ft=Hm(K):(!ge(K)||nn(K))&&(ft=dm(tt))):ht=!1}ht&&(H.set(tt,ft),N(ft,tt,S,$,H),H.delete(tt)),yf(s,g,ft)}function Bg(s,a){var g=s.length;if(g)return a+=a<0?g:0,rn(a,g)?s[a]:r}function Dg(s,a,g){a.length?a=he(a,function($){return Mt($)?function(H){return Kn(H,$.length===1?$[0]:$)}:$}):a=[Ke];var S=-1;a=he(a,er(St()));var N=kg(s,function($,H,K){var tt=he(a,function(ut){return ut($)});return{criteria:tt,index:++S,value:$}});return PM(N,function($,H){return mk($,H,g)})}function sk(s,a){return Ug(s,a,function(g,S){return tc(s,S)})}function Ug(s,a,g){for(var S=-1,N=a.length,$={};++S<N;){var H=a[S],K=Kn(s,H);g(K,H)&&Ls($,xn(H,s),K)}return $}function ok(s){return function(a){return Kn(a,s)}}function Of(s,a,g,S){var N=S?IM:Li,$=-1,H=a.length,K=s;for(s===a&&(a=Ve(a)),g&&(K=he(s,er(g)));++$<H;)for(var tt=0,ut=a[$],ft=g?g(ut):ut;(tt=N(K,ft,tt,S))>-1;)K!==s&&pa.call(K,tt,1),pa.call(s,tt,1);return s}function $g(s,a){for(var g=s?a.length:0,S=g-1;g--;){var N=a[g];if(g==S||N!==$){var $=N;rn(N)?pa.call(s,N,1):Pf(s,N)}}return s}function Cf(s,a){return s+ma(bg()*(a-s+1))}function ak(s,a,g,S){for(var N=-1,$=Ae(ga((a-s)/(g||1)),0),H=st($);$--;)H[S?$:++N]=s,s+=g;return H}function Rf(s,a){var g="";if(!s||a<1||a>it)return g;do a%2&&(g+=s),a=ma(a/2),a&&(s+=s);while(a);return g}function Bt(s,a){return Vf(gm(s,a,Ke),s+"")}function lk(s){return Tg(Wi(s))}function uk(s,a){var g=Wi(s);return ka(g,Xn(a,0,g.length))}function Ls(s,a,g,S){if(!ge(s))return s;a=xn(a,s);for(var N=-1,$=a.length,H=$-1,K=s;K!=null&&++N<$;){var tt=qr(a[N]),ut=g;if(tt==="__proto__"||tt==="constructor"||tt==="prototype")return s;if(N!=H){var ft=K[tt];ut=S?S(ft,tt,K):r,ut===r&&(ut=ge(ft)?ft:rn(a[N+1])?[]:{})}Ps(K,tt,ut),K=K[tt]}return s}var Gg=ya?function(s,a){return ya.set(s,a),s}:Ke,fk=va?function(s,a){return va(s,"toString",{configurable:!0,enumerable:!1,value:rc(a),writable:!0})}:Ke;function ck(s){return ka(Wi(s))}function pr(s,a,g){var S=-1,N=s.length;a<0&&(a=-a>N?0:N+a),g=g>N?N:g,g<0&&(g+=N),N=a>g?0:g-a>>>0,a>>>=0;for(var $=st(N);++S<N;)$[S]=s[S+a];return $}function hk(s,a){var g;return _n(s,function(S,N,$){return g=a(S,N,$),!g}),!!g}function Sa(s,a,g){var S=0,N=s==null?S:s.length;if(typeof a=="number"&&a===a&&N<=j){for(;S<N;){var $=S+N>>>1,H=s[$];H!==null&&!nr(H)&&(g?H<=a:H<a)?S=$+1:N=$}return N}return If(s,a,Ke,g)}function If(s,a,g,S){var N=0,$=s==null?0:s.length;if($===0)return 0;a=g(a);for(var H=a!==a,K=a===null,tt=nr(a),ut=a===r;N<$;){var ft=ma((N+$)/2),ht=g(s[ft]),gt=ht!==r,wt=ht===null,Ot=ht===ht,Ft=nr(ht);if(H)var Ct=S||Ot;else ut?Ct=Ot&&(S||gt):K?Ct=Ot&&gt&&(S||!wt):tt?Ct=Ot&&gt&&!wt&&(S||!Ft):wt||Ft?Ct=!1:Ct=S?ht<=a:ht<a;Ct?N=ft+1:$=ft}return De($,D)}function jg(s,a){for(var g=-1,S=s.length,N=0,$=[];++g<S;){var H=s[g],K=a?a(H):H;if(!g||!Pr(K,tt)){var tt=K;$[N++]=H===0?0:H}}return $}function qg(s){return typeof s=="number"?s:nr(s)?U:+s}function rr(s){if(typeof s=="string")return s;if(Mt(s))return he(s,rr)+"";if(nr(s))return xg?xg.call(s):"";var a=s+"";return a=="0"&&1/s==-z?"-0":a}function bn(s,a,g){var S=-1,N=ia,$=s.length,H=!0,K=[],tt=K;if(g)H=!1,N=sf;else if($>=i){var ut=a?null:Tk(s);if(ut)return oa(ut);H=!1,N=Ss,tt=new Wn}else tt=a?[]:K;t:for(;++S<$;){var ft=s[S],ht=a?a(ft):ft;if(ft=g||ft!==0?ft:0,H&&ht===ht){for(var gt=tt.length;gt--;)if(tt[gt]===ht)continue t;a&&tt.push(ht),K.push(ft)}else N(tt,ht,g)||(tt!==K&&tt.push(ht),K.push(ft))}return K}function Pf(s,a){return a=xn(a,s),s=mm(s,a),s==null||delete s[qr(vr(a))]}function zg(s,a,g,S){return Ls(s,a,g(Kn(s,a)),S)}function Aa(s,a,g,S){for(var N=s.length,$=S?N:-1;(S?$--:++$<N)&&a(s[$],$,s););return g?pr(s,S?0:$,S?$+1:N):pr(s,S?$+1:0,S?N:$)}function Hg(s,a){var g=s;return g instanceof Gt&&(g=g.value()),of(a,function(S,N){return N.func.apply(N.thisArg,gn([S],N.args))},g)}function Nf(s,a,g){var S=s.length;if(S<2)return S?bn(s[0]):[];for(var N=-1,$=st(S);++N<S;)for(var H=s[N],K=-1;++K<S;)K!=N&&($[N]=Ns($[N]||H,s[K],a,g));return bn(Me($,1),a,g)}function Vg(s,a,g){for(var S=-1,N=s.length,$=a.length,H={};++S<N;){var K=S<$?a[S]:r;g(H,s[S],K)}return H}function Mf(s){return be(s)?s:[]}function kf(s){return typeof s=="function"?s:Ke}function xn(s,a){return Mt(s)?s:qf(s,a)?[s]:xm(Jt(s))}var dk=Bt;function wn(s,a,g){var S=s.length;return g=g===r?S:g,!a&&g>=S?s:pr(s,a,g)}var Wg=t3||function(s){return Ne.clearTimeout(s)};function Xg(s,a){if(a)return s.slice();var g=s.length,S=vg?vg(g):new s.constructor(g);return s.copy(S),S}function Lf(s){var a=new s.constructor(s.byteLength);return new ha(a).set(new ha(s)),a}function pk(s,a){var g=a?Lf(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.byteLength)}function vk(s){var a=new s.constructor(s.source,Pv.exec(s));return a.lastIndex=s.lastIndex,a}function gk(s){return Is?ne(Is.call(s)):{}}function Kg(s,a){var g=a?Lf(s.buffer):s.buffer;return new s.constructor(g,s.byteOffset,s.length)}function Yg(s,a){if(s!==a){var g=s!==r,S=s===null,N=s===s,$=nr(s),H=a!==r,K=a===null,tt=a===a,ut=nr(a);if(!K&&!ut&&!$&&s>a||$&&H&&tt&&!K&&!ut||S&&H&&tt||!g&&tt||!N)return 1;if(!S&&!$&&!ut&&s<a||ut&&g&&N&&!S&&!$||K&&g&&N||!H&&N||!tt)return-1}return 0}function mk(s,a,g){for(var S=-1,N=s.criteria,$=a.criteria,H=N.length,K=g.length;++S<H;){var tt=Yg(N[S],$[S]);if(tt){if(S>=K)return tt;var ut=g[S];return tt*(ut=="desc"?-1:1)}}return s.index-a.index}function Zg(s,a,g,S){for(var N=-1,$=s.length,H=g.length,K=-1,tt=a.length,ut=Ae($-H,0),ft=st(tt+ut),ht=!S;++K<tt;)ft[K]=a[K];for(;++N<H;)(ht||N<$)&&(ft[g[N]]=s[N]);for(;ut--;)ft[K++]=s[N++];return ft}function Qg(s,a,g,S){for(var N=-1,$=s.length,H=-1,K=g.length,tt=-1,ut=a.length,ft=Ae($-K,0),ht=st(ft+ut),gt=!S;++N<ft;)ht[N]=s[N];for(var wt=N;++tt<ut;)ht[wt+tt]=a[tt];for(;++H<K;)(gt||N<$)&&(ht[wt+g[H]]=s[N++]);return ht}function Ve(s,a){var g=-1,S=s.length;for(a||(a=st(S));++g<S;)a[g]=s[g];return a}function jr(s,a,g,S){var N=!g;g||(g={});for(var $=-1,H=a.length;++$<H;){var K=a[$],tt=S?S(g[K],s[K],K,g,s):r;tt===r&&(tt=s[K]),N?Jr(g,K,tt):Ps(g,K,tt)}return g}function yk(s,a){return jr(s,jf(s),a)}function _k(s,a){return jr(s,cm(s),a)}function Oa(s,a){return function(g,S){var N=Mt(g)?EM:G3,$=a?a():{};return N(g,s,St(S,2),$)}}function qi(s){return Bt(function(a,g){var S=-1,N=g.length,$=N>1?g[N-1]:r,H=N>2?g[2]:r;for($=s.length>3&&typeof $=="function"?(N--,$):r,H&&qe(g[0],g[1],H)&&($=N<3?r:$,N=1),a=ne(a);++S<N;){var K=g[S];K&&s(a,K,S,$)}return a})}function Jg(s,a){return function(g,S){if(g==null)return g;if(!We(g))return s(g,S);for(var N=g.length,$=a?N:-1,H=ne(g);(a?$--:++$<N)&&S(H[$],$,H)!==!1;);return g}}function tm(s){return function(a,g,S){for(var N=-1,$=ne(a),H=S(a),K=H.length;K--;){var tt=H[s?K:++N];if(g($[tt],tt,$)===!1)break}return a}}function bk(s,a,g){var S=a&b,N=Fs(s);function $(){var H=this&&this!==Ne&&this instanceof $?N:s;return H.apply(S?g:this,arguments)}return $}function em(s){return function(a){a=Jt(a);var g=Fi(a)?Rr(a):r,S=g?g[0]:a.charAt(0),N=g?wn(g,1).join(""):a.slice(1);return S[s]()+N}}function zi(s){return function(a){return of(Jm(Qm(a).replace(fM,"")),s,"")}}function Fs(s){return function(){var a=arguments;switch(a.length){case 0:return new s;case 1:return new s(a[0]);case 2:return new s(a[0],a[1]);case 3:return new s(a[0],a[1],a[2]);case 4:return new s(a[0],a[1],a[2],a[3]);case 5:return new s(a[0],a[1],a[2],a[3],a[4]);case 6:return new s(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new s(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var g=ji(s.prototype),S=s.apply(g,a);return ge(S)?S:g}}function xk(s,a,g){var S=Fs(s);function N(){for(var $=arguments.length,H=st($),K=$,tt=Hi(N);K--;)H[K]=arguments[K];var ut=$<3&&H[0]!==tt&&H[$-1]!==tt?[]:mn(H,tt);if($-=ut.length,$<g)return om(s,a,Ca,N.placeholder,r,H,ut,r,r,g-$);var ft=this&&this!==Ne&&this instanceof N?S:s;return tr(ft,this,H)}return N}function rm(s){return function(a,g,S){var N=ne(a);if(!We(a)){var $=St(g,3);a=Ie(a),g=function(K){return $(N[K],K,N)}}var H=s(a,g,S);return H>-1?N[$?a[H]:H]:r}}function nm(s){return en(function(a){var g=a.length,S=g,N=hr.prototype.thru;for(s&&a.reverse();S--;){var $=a[S];if(typeof $!="function")throw new cr(l);if(N&&!H&&Na($)=="wrapper")var H=new hr([],!0)}for(S=H?S:g;++S<g;){$=a[S];var K=Na($),tt=K=="wrapper"?$f($):r;tt&&zf(tt[0])&&tt[1]==(A|T|E|O)&&!tt[4].length&&tt[9]==1?H=H[Na(tt[0])].apply(H,tt[3]):H=$.length==1&&zf($)?H[K]():H.thru($)}return function(){var ut=arguments,ft=ut[0];if(H&&ut.length==1&&Mt(ft))return H.plant(ft).value();for(var ht=0,gt=g?a[ht].apply(this,ut):ft;++ht<g;)gt=a[ht].call(this,gt);return gt}})}function Ca(s,a,g,S,N,$,H,K,tt,ut){var ft=a&A,ht=a&b,gt=a&y,wt=a&(T|x),Ot=a&L,Ft=gt?r:Fs(s);function Ct(){for(var Ut=arguments.length,zt=st(Ut),ir=Ut;ir--;)zt[ir]=arguments[ir];if(wt)var ze=Hi(Ct),sr=MM(zt,ze);if(S&&(zt=Zg(zt,S,N,wt)),$&&(zt=Qg(zt,$,H,wt)),Ut-=sr,wt&&Ut<ut){var xe=mn(zt,ze);return om(s,a,Ca,Ct.placeholder,g,zt,xe,K,tt,ut-Ut)}var Nr=ht?g:this,on=gt?Nr[s]:s;return Ut=zt.length,K?zt=Gk(zt,K):Ot&&Ut>1&&zt.reverse(),ft&&tt<Ut&&(zt.length=tt),this&&this!==Ne&&this instanceof Ct&&(on=Ft||Fs(on)),on.apply(Nr,zt)}return Ct}function im(s,a){return function(g,S){return K3(g,s,a(S),{})}}function Ra(s,a){return function(g,S){var N;if(g===r&&S===r)return a;if(g!==r&&(N=g),S!==r){if(N===r)return S;typeof g=="string"||typeof S=="string"?(g=rr(g),S=rr(S)):(g=qg(g),S=qg(S)),N=s(g,S)}return N}}function Ff(s){return en(function(a){return a=he(a,er(St())),Bt(function(g){var S=this;return s(a,function(N){return tr(N,S,g)})})})}function Ia(s,a){a=a===r?" ":rr(a);var g=a.length;if(g<2)return g?Rf(a,s):a;var S=Rf(a,ga(s/Bi(a)));return Fi(a)?wn(Rr(S),0,s).join(""):S.slice(0,s)}function wk(s,a,g,S){var N=a&b,$=Fs(s);function H(){for(var K=-1,tt=arguments.length,ut=-1,ft=S.length,ht=st(ft+tt),gt=this&&this!==Ne&&this instanceof H?$:s;++ut<ft;)ht[ut]=S[ut];for(;tt--;)ht[ut++]=arguments[++K];return tr(gt,N?g:this,ht)}return H}function sm(s){return function(a,g,S){return S&&typeof S!="number"&&qe(a,g,S)&&(g=S=r),a=sn(a),g===r?(g=a,a=0):g=sn(g),S=S===r?a<g?1:-1:sn(S),ak(a,g,S,s)}}function Pa(s){return function(a,g){return typeof a=="string"&&typeof g=="string"||(a=gr(a),g=gr(g)),s(a,g)}}function om(s,a,g,S,N,$,H,K,tt,ut){var ft=a&T,ht=ft?H:r,gt=ft?r:H,wt=ft?$:r,Ot=ft?r:$;a|=ft?E:I,a&=~(ft?I:E),a&w||(a&=~(b|y));var Ft=[s,a,N,wt,ht,Ot,gt,K,tt,ut],Ct=g.apply(r,Ft);return zf(s)&&ym(Ct,Ft),Ct.placeholder=S,_m(Ct,s,a)}function Bf(s){var a=Se[s];return function(g,S){if(g=gr(g),S=S==null?0:De(kt(S),292),S&&_g(g)){var N=(Jt(g)+"e").split("e"),$=a(N[0]+"e"+(+N[1]+S));return N=(Jt($)+"e").split("e"),+(N[0]+"e"+(+N[1]-S))}return a(g)}}var Tk=$i&&1/oa(new $i([,-0]))[1]==z?function(s){return new $i(s)}:sc;function am(s){return function(a){var g=Ue(a);return g==xt?df(a):g==vt?$M(a):NM(a,s(a))}}function tn(s,a,g,S,N,$,H,K){var tt=a&y;if(!tt&&typeof s!="function")throw new cr(l);var ut=S?S.length:0;if(ut||(a&=~(E|I),S=N=r),H=H===r?H:Ae(kt(H),0),K=K===r?K:kt(K),ut-=N?N.length:0,a&I){var ft=S,ht=N;S=N=r}var gt=tt?r:$f(s),wt=[s,a,g,S,N,ft,ht,$,H,K];if(gt&&Dk(wt,gt),s=wt[0],a=wt[1],g=wt[2],S=wt[3],N=wt[4],K=wt[9]=wt[9]===r?tt?0:s.length:Ae(wt[9]-ut,0),!K&&a&(T|x)&&(a&=~(T|x)),!a||a==b)var Ot=bk(s,a,g);else a==T||a==x?Ot=xk(s,a,K):(a==E||a==(b|E))&&!N.length?Ot=wk(s,a,g,S):Ot=Ca.apply(r,wt);var Ft=gt?Gg:ym;return _m(Ft(Ot,wt),s,a)}function lm(s,a,g,S){return s===r||Pr(s,Ui[g])&&!ee.call(S,g)?a:s}function um(s,a,g,S,N,$){return ge(s)&&ge(a)&&($.set(a,s),Ea(s,a,r,um,$),$.delete(a)),s}function Ek(s){return Us(s)?r:s}function fm(s,a,g,S,N,$){var H=g&m,K=s.length,tt=a.length;if(K!=tt&&!(H&&tt>K))return!1;var ut=$.get(s),ft=$.get(a);if(ut&&ft)return ut==a&&ft==s;var ht=-1,gt=!0,wt=g&_?new Wn:r;for($.set(s,a),$.set(a,s);++ht<K;){var Ot=s[ht],Ft=a[ht];if(S)var Ct=H?S(Ft,Ot,ht,a,s,$):S(Ot,Ft,ht,s,a,$);if(Ct!==r){if(Ct)continue;gt=!1;break}if(wt){if(!af(a,function(Ut,zt){if(!Ss(wt,zt)&&(Ot===Ut||N(Ot,Ut,g,S,$)))return wt.push(zt)})){gt=!1;break}}else if(!(Ot===Ft||N(Ot,Ft,g,S,$))){gt=!1;break}}return $.delete(s),$.delete(a),gt}function Sk(s,a,g,S,N,$,H){switch(g){case Qt:if(s.byteLength!=a.byteLength||s.byteOffset!=a.byteOffset)return!1;s=s.buffer,a=a.buffer;case Ge:return!(s.byteLength!=a.byteLength||!$(new ha(s),new ha(a)));case et:case Q:case At:return Pr(+s,+a);case ot:return s.name==a.name&&s.message==a.message;case dt:case ct:return s==a+"";case xt:var K=df;case vt:var tt=S&m;if(K||(K=oa),s.size!=a.size&&!tt)return!1;var ut=H.get(s);if(ut)return ut==a;S|=_,H.set(s,a);var ft=fm(K(s),K(a),S,N,$,H);return H.delete(s),ft;case Pt:if(Is)return Is.call(s)==Is.call(a)}return!1}function Ak(s,a,g,S,N,$){var H=g&m,K=Df(s),tt=K.length,ut=Df(a),ft=ut.length;if(tt!=ft&&!H)return!1;for(var ht=tt;ht--;){var gt=K[ht];if(!(H?gt in a:ee.call(a,gt)))return!1}var wt=$.get(s),Ot=$.get(a);if(wt&&Ot)return wt==a&&Ot==s;var Ft=!0;$.set(s,a),$.set(a,s);for(var Ct=H;++ht<tt;){gt=K[ht];var Ut=s[gt],zt=a[gt];if(S)var ir=H?S(zt,Ut,gt,a,s,$):S(Ut,zt,gt,s,a,$);if(!(ir===r?Ut===zt||N(Ut,zt,g,S,$):ir)){Ft=!1;break}Ct||(Ct=gt=="constructor")}if(Ft&&!Ct){var ze=s.constructor,sr=a.constructor;ze!=sr&&"constructor"in s&&"constructor"in a&&!(typeof ze=="function"&&ze instanceof ze&&typeof sr=="function"&&sr instanceof sr)&&(Ft=!1)}return $.delete(s),$.delete(a),Ft}function en(s){return Vf(gm(s,r,Sm),s+"")}function Df(s){return Ig(s,Ie,jf)}function Uf(s){return Ig(s,Xe,cm)}var $f=ya?function(s){return ya.get(s)}:sc;function Na(s){for(var a=s.name+"",g=Gi[a],S=ee.call(Gi,a)?g.length:0;S--;){var N=g[S],$=N.func;if($==null||$==s)return N.name}return a}function Hi(s){var a=ee.call(B,"placeholder")?B:s;return a.placeholder}function St(){var s=B.iteratee||nc;return s=s===nc?Mg:s,arguments.length?s(arguments[0],arguments[1]):s}function Ma(s,a){var g=s.__data__;return kk(a)?g[typeof a=="string"?"string":"hash"]:g.map}function Gf(s){for(var a=Ie(s),g=a.length;g--;){var S=a[g],N=s[S];a[g]=[S,N,pm(N)]}return a}function Yn(s,a){var g=BM(s,a);return Ng(g)?g:r}function Ok(s){var a=ee.call(s,Hn),g=s[Hn];try{s[Hn]=r;var S=!0}catch{}var N=fa.call(s);return S&&(a?s[Hn]=g:delete s[Hn]),N}var jf=vf?function(s){return s==null?[]:(s=ne(s),vn(vf(s),function(a){return mg.call(s,a)}))}:oc,cm=vf?function(s){for(var a=[];s;)gn(a,jf(s)),s=da(s);return a}:oc,Ue=je;(gf&&Ue(new gf(new ArrayBuffer(1)))!=Qt||Os&&Ue(new Os)!=xt||mf&&Ue(mf.resolve())!=nt||$i&&Ue(new $i)!=vt||Cs&&Ue(new Cs)!=Nt)&&(Ue=function(s){var a=je(s),g=a==qt?s.constructor:r,S=g?Zn(g):"";if(S)switch(S){case u3:return Qt;case f3:return xt;case c3:return nt;case h3:return vt;case d3:return Nt}return a});function Ck(s,a,g){for(var S=-1,N=g.length;++S<N;){var $=g[S],H=$.size;switch($.type){case"drop":s+=H;break;case"dropRight":a-=H;break;case"take":a=De(a,s+H);break;case"takeRight":s=Ae(s,a-H);break}}return{start:s,end:a}}function Rk(s){var a=s.match(LN);return a?a[1].split(FN):[]}function hm(s,a,g){a=xn(a,s);for(var S=-1,N=a.length,$=!1;++S<N;){var H=qr(a[S]);if(!($=s!=null&&g(s,H)))break;s=s[H]}return $||++S!=N?$:(N=s==null?0:s.length,!!N&&$a(N)&&rn(H,N)&&(Mt(s)||Qn(s)))}function Ik(s){var a=s.length,g=new s.constructor(a);return a&&typeof s[0]=="string"&&ee.call(s,"index")&&(g.index=s.index,g.input=s.input),g}function dm(s){return typeof s.constructor=="function"&&!Bs(s)?ji(da(s)):{}}function Pk(s,a,g){var S=s.constructor;switch(a){case Ge:return Lf(s);case et:case Q:return new S(+s);case Qt:return pk(s,g);case Es:case ce:case lr:case qu:case zu:case Hu:case Vu:case Wu:case Xu:return Kg(s,g);case xt:return new S;case At:case ct:return new S(s);case dt:return vk(s);case vt:return new S;case Pt:return gk(s)}}function Nk(s,a){var g=a.length;if(!g)return s;var S=g-1;return a[S]=(g>1?"& ":"")+a[S],a=a.join(g>2?", ":" "),s.replace(kN,`{
1942
1942
  /* [wrapped with `+a+`] */
1943
- `)}function Mk(s){return Mt(s)||Qn(s)||!!(yg&&s&&s[yg])}function rn(s,a){var g=typeof s;return a=a??it,!!a&&(g=="number"||g!="symbol"&&HN.test(s))&&s>-1&&s%1==0&&s<a}function qe(s,a,g){if(!ge(g))return!1;var S=typeof a;return(S=="number"?We(g)&&rn(a,g.length):S=="string"&&a in g)?Pr(g[a],s):!1}function qf(s,a){if(Mt(s))return!1;var g=typeof s;return g=="number"||g=="symbol"||g=="boolean"||s==null||nr(s)?!0:IN.test(s)||!RN.test(s)||a!=null&&s in ne(a)}function kk(s){var a=typeof s;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?s!=="__proto__":s===null}function zf(s){var a=Na(s),g=B[a];if(typeof g!="function"||!(a in Gt.prototype))return!1;if(s===g)return!0;var S=$f(g);return!!S&&s===S[0]}function Lk(s){return!!pg&&pg in s}var Fk=la?nn:ac;function Bs(s){var a=s&&s.constructor,g=typeof a=="function"&&a.prototype||Ui;return s===g}function pm(s){return s===s&&!ge(s)}function vm(s,a){return function(g){return g==null?!1:g[s]===a&&(a!==r||s in ne(g))}}function Bk(s){var a=Da(s,function(S){return g.size===h&&g.clear(),S}),g=a.cache;return a}function Dk(s,a){var g=s[1],S=a[1],N=g|S,$=N<(b|y|A),H=S==A&&g==T||S==A&&g==O&&s[7].length<=a[8]||S==(A|O)&&a[7].length<=a[8]&&g==T;if(!($||H))return s;S&b&&(s[2]=a[2],N|=g&b?0:w);var X=a[3];if(X){var tt=s[3];s[3]=tt?Zg(tt,X,a[4]):X,s[4]=tt?mn(s[3],d):a[4]}return X=a[5],X&&(tt=s[5],s[5]=tt?Qg(tt,X,a[6]):X,s[6]=tt?mn(s[5],d):a[6]),X=a[7],X&&(s[7]=X),S&A&&(s[8]=s[8]==null?a[8]:De(s[8],a[8])),s[9]==null&&(s[9]=a[9]),s[0]=a[0],s[1]=N,s}function Uk(s){var a=[];if(s!=null)for(var g in ne(s))a.push(g);return a}function $k(s){return fa.call(s)}function gm(s,a,g){return a=Ae(a===r?s.length-1:a,0),function(){for(var S=arguments,N=-1,$=Ae(S.length-a,0),H=st($);++N<$;)H[N]=S[a+N];N=-1;for(var X=st(a+1);++N<a;)X[N]=S[N];return X[a]=g(H),tr(s,this,X)}}function mm(s,a){return a.length<2?s:Kn(s,pr(a,0,-1))}function Gk(s,a){for(var g=s.length,S=De(a.length,g),N=Ve(s);S--;){var $=a[S];s[S]=rn($,g)?N[$]:r}return s}function Hf(s,a){if(!(a==="constructor"&&typeof s[a]=="function")&&a!="__proto__")return s[a]}var ym=bm(Gg),Ds=r3||function(s,a){return Ne.setTimeout(s,a)},Vf=bm(fk);function _m(s,a,g){var S=a+"";return Vf(s,Nk(S,jk(Rk(S),g)))}function bm(s){var a=0,g=0;return function(){var S=o3(),N=M-(S-g);if(g=S,N>0){if(++a>=P)return arguments[0]}else a=0;return s.apply(r,arguments)}}function ka(s,a){var g=-1,S=s.length,N=S-1;for(a=a===r?S:a;++g<a;){var $=Cf(g,N),H=s[$];s[$]=s[g],s[g]=H}return s.length=a,s}var xm=Bk(function(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(PN,function(g,S,N,$){a.push(N?$.replace(UN,"$1"):S||g)}),a});function qr(s){if(typeof s=="string"||nr(s))return s;var a=s+"";return a=="0"&&1/s==-z?"-0":a}function Zn(s){if(s!=null){try{return ua.call(s)}catch{}try{return s+""}catch{}}return""}function jk(s,a){return fr(Z,function(g){var S="_."+g[0];a&g[1]&&!ia(s,S)&&s.push(S)}),s.sort()}function wm(s){if(s instanceof Gt)return s.clone();var a=new hr(s.__wrapped__,s.__chain__);return a.__actions__=Ve(s.__actions__),a.__index__=s.__index__,a.__values__=s.__values__,a}function qk(s,a,g){(g?qe(s,a,g):a===r)?a=1:a=Ae(kt(a),0);var S=s==null?0:s.length;if(!S||a<1)return[];for(var N=0,$=0,H=st(ga(S/a));N<S;)H[$++]=pr(s,N,N+=a);return H}function zk(s){for(var a=-1,g=s==null?0:s.length,S=0,N=[];++a<g;){var $=s[a];$&&(N[S++]=$)}return N}function Hk(){var s=arguments.length;if(!s)return[];for(var a=st(s-1),g=arguments[0],S=s;S--;)a[S-1]=arguments[S];return gn(Mt(g)?Ve(g):[g],Me(a,1))}var Vk=Bt(function(s,a){return be(s)?Ns(s,Me(a,1,be,!0)):[]}),Wk=Bt(function(s,a){var g=vr(a);return be(g)&&(g=r),be(s)?Ns(s,Me(a,1,be,!0),St(g,2)):[]}),Xk=Bt(function(s,a){var g=vr(a);return be(g)&&(g=r),be(s)?Ns(s,Me(a,1,be,!0),r,g):[]});function Kk(s,a,g){var S=s==null?0:s.length;return S?(a=g||a===r?1:kt(a),pr(s,a<0?0:a,S)):[]}function Yk(s,a,g){var S=s==null?0:s.length;return S?(a=g||a===r?1:kt(a),a=S-a,pr(s,0,a<0?0:a)):[]}function Zk(s,a){return s&&s.length?Aa(s,St(a,3),!0,!0):[]}function Qk(s,a){return s&&s.length?Aa(s,St(a,3),!0):[]}function Jk(s,a,g,S){var N=s==null?0:s.length;return N?(g&&typeof g!="number"&&qe(s,a,g)&&(g=0,S=N),H3(s,a,g,S)):[]}function Tm(s,a,g){var S=s==null?0:s.length;if(!S)return-1;var N=g==null?0:kt(g);return N<0&&(N=Ae(S+N,0)),sa(s,St(a,3),N)}function Em(s,a,g){var S=s==null?0:s.length;if(!S)return-1;var N=S-1;return g!==r&&(N=kt(g),N=g<0?Ae(S+N,0):De(N,S-1)),sa(s,St(a,3),N,!0)}function Sm(s){var a=s==null?0:s.length;return a?Me(s,1):[]}function t5(s){var a=s==null?0:s.length;return a?Me(s,z):[]}function e5(s,a){var g=s==null?0:s.length;return g?(a=a===r?1:kt(a),Me(s,a)):[]}function r5(s){for(var a=-1,g=s==null?0:s.length,S={};++a<g;){var N=s[a];S[N[0]]=N[1]}return S}function Am(s){return s&&s.length?s[0]:r}function n5(s,a,g){var S=s==null?0:s.length;if(!S)return-1;var N=g==null?0:kt(g);return N<0&&(N=Ae(S+N,0)),Li(s,a,N)}function i5(s){var a=s==null?0:s.length;return a?pr(s,0,-1):[]}var s5=Bt(function(s){var a=he(s,Mf);return a.length&&a[0]===s[0]?Tf(a):[]}),o5=Bt(function(s){var a=vr(s),g=he(s,Mf);return a===vr(g)?a=r:g.pop(),g.length&&g[0]===s[0]?Tf(g,St(a,2)):[]}),a5=Bt(function(s){var a=vr(s),g=he(s,Mf);return a=typeof a=="function"?a:r,a&&g.pop(),g.length&&g[0]===s[0]?Tf(g,r,a):[]});function l5(s,a){return s==null?"":i3.call(s,a)}function vr(s){var a=s==null?0:s.length;return a?s[a-1]:r}function u5(s,a,g){var S=s==null?0:s.length;if(!S)return-1;var N=S;return g!==r&&(N=kt(g),N=N<0?Ae(S+N,0):De(N,S-1)),a===a?jM(s,a,N):sa(s,og,N,!0)}function f5(s,a){return s&&s.length?Bg(s,kt(a)):r}var c5=Bt(Om);function Om(s,a){return s&&s.length&&a&&a.length?Of(s,a):s}function h5(s,a,g){return s&&s.length&&a&&a.length?Of(s,a,St(g,2)):s}function d5(s,a,g){return s&&s.length&&a&&a.length?Of(s,a,r,g):s}var p5=en(function(s,a){var g=s==null?0:s.length,S=_f(s,a);return $g(s,he(a,function(N){return rn(N,g)?+N:N}).sort(Yg)),S});function v5(s,a){var g=[];if(!(s&&s.length))return g;var S=-1,N=[],$=s.length;for(a=St(a,3);++S<$;){var H=s[S];a(H,S,s)&&(g.push(H),N.push(S))}return $g(s,N),g}function Wf(s){return s==null?s:l3.call(s)}function g5(s,a,g){var S=s==null?0:s.length;return S?(g&&typeof g!="number"&&qe(s,a,g)?(a=0,g=S):(a=a==null?0:kt(a),g=g===r?S:kt(g)),pr(s,a,g)):[]}function m5(s,a){return Sa(s,a)}function y5(s,a,g){return If(s,a,St(g,2))}function _5(s,a){var g=s==null?0:s.length;if(g){var S=Sa(s,a);if(S<g&&Pr(s[S],a))return S}return-1}function b5(s,a){return Sa(s,a,!0)}function x5(s,a,g){return If(s,a,St(g,2),!0)}function w5(s,a){var g=s==null?0:s.length;if(g){var S=Sa(s,a,!0)-1;if(Pr(s[S],a))return S}return-1}function T5(s){return s&&s.length?jg(s):[]}function E5(s,a){return s&&s.length?jg(s,St(a,2)):[]}function S5(s){var a=s==null?0:s.length;return a?pr(s,1,a):[]}function A5(s,a,g){return s&&s.length?(a=g||a===r?1:kt(a),pr(s,0,a<0?0:a)):[]}function O5(s,a,g){var S=s==null?0:s.length;return S?(a=g||a===r?1:kt(a),a=S-a,pr(s,a<0?0:a,S)):[]}function C5(s,a){return s&&s.length?Aa(s,St(a,3),!1,!0):[]}function R5(s,a){return s&&s.length?Aa(s,St(a,3)):[]}var I5=Bt(function(s){return bn(Me(s,1,be,!0))}),P5=Bt(function(s){var a=vr(s);return be(a)&&(a=r),bn(Me(s,1,be,!0),St(a,2))}),N5=Bt(function(s){var a=vr(s);return a=typeof a=="function"?a:r,bn(Me(s,1,be,!0),r,a)});function M5(s){return s&&s.length?bn(s):[]}function k5(s,a){return s&&s.length?bn(s,St(a,2)):[]}function L5(s,a){return a=typeof a=="function"?a:r,s&&s.length?bn(s,r,a):[]}function Xf(s){if(!(s&&s.length))return[];var a=0;return s=vn(s,function(g){if(be(g))return a=Ae(g.length,a),!0}),cf(a,function(g){return he(s,lf(g))})}function Cm(s,a){if(!(s&&s.length))return[];var g=Xf(s);return a==null?g:he(g,function(S){return tr(a,r,S)})}var F5=Bt(function(s,a){return be(s)?Ns(s,a):[]}),B5=Bt(function(s){return Nf(vn(s,be))}),D5=Bt(function(s){var a=vr(s);return be(a)&&(a=r),Nf(vn(s,be),St(a,2))}),U5=Bt(function(s){var a=vr(s);return a=typeof a=="function"?a:r,Nf(vn(s,be),r,a)}),$5=Bt(Xf);function G5(s,a){return Vg(s||[],a||[],Ps)}function j5(s,a){return Vg(s||[],a||[],Ls)}var q5=Bt(function(s){var a=s.length,g=a>1?s[a-1]:r;return g=typeof g=="function"?(s.pop(),g):r,Cm(s,g)});function Rm(s){var a=B(s);return a.__chain__=!0,a}function z5(s,a){return a(s),s}function La(s,a){return a(s)}var H5=en(function(s){var a=s.length,g=a?s[0]:0,S=this.__wrapped__,N=function($){return _f($,s)};return a>1||this.__actions__.length||!(S instanceof Gt)||!rn(g)?this.thru(N):(S=S.slice(g,+g+(a?1:0)),S.__actions__.push({func:La,args:[N],thisArg:r}),new hr(S,this.__chain__).thru(function($){return a&&!$.length&&$.push(r),$}))});function V5(){return Rm(this)}function W5(){return new hr(this.value(),this.__chain__)}function X5(){this.__values__===r&&(this.__values__=qm(this.value()));var s=this.__index__>=this.__values__.length,a=s?r:this.__values__[this.__index__++];return{done:s,value:a}}function K5(){return this}function Y5(s){for(var a,g=this;g instanceof ba;){var S=wm(g);S.__index__=0,S.__values__=r,a?N.__wrapped__=S:a=S;var N=S;g=g.__wrapped__}return N.__wrapped__=s,a}function Z5(){var s=this.__wrapped__;if(s instanceof Gt){var a=s;return this.__actions__.length&&(a=new Gt(this)),a=a.reverse(),a.__actions__.push({func:La,args:[Wf],thisArg:r}),new hr(a,this.__chain__)}return this.thru(Wf)}function Q5(){return Hg(this.__wrapped__,this.__actions__)}var J5=Oa(function(s,a,g){ee.call(s,g)?++s[g]:Jr(s,g,1)});function tL(s,a,g){var S=Mt(s)?ig:z3;return g&&qe(s,a,g)&&(a=r),S(s,St(a,3))}function eL(s,a){var g=Mt(s)?vn:Cg;return g(s,St(a,3))}var rL=rm(Tm),nL=rm(Em);function iL(s,a){return Me(Fa(s,a),1)}function sL(s,a){return Me(Fa(s,a),z)}function oL(s,a,g){return g=g===r?1:kt(g),Me(Fa(s,a),g)}function Im(s,a){var g=Mt(s)?fr:_n;return g(s,St(a,3))}function Pm(s,a){var g=Mt(s)?SM:Og;return g(s,St(a,3))}var aL=Oa(function(s,a,g){ee.call(s,g)?s[g].push(a):Jr(s,g,[a])});function lL(s,a,g,S){s=We(s)?s:Wi(s),g=g&&!S?kt(g):0;var N=s.length;return g<0&&(g=Ae(N+g,0)),Ga(s)?g<=N&&s.indexOf(a,g)>-1:!!N&&Li(s,a,g)>-1}var uL=Bt(function(s,a,g){var S=-1,N=typeof a=="function",$=We(s)?st(s.length):[];return _n(s,function(H){$[++S]=N?tr(a,H,g):Ms(H,a,g)}),$}),fL=Oa(function(s,a,g){Jr(s,g,a)});function Fa(s,a){var g=Mt(s)?he:kg;return g(s,St(a,3))}function cL(s,a,g,S){return s==null?[]:(Mt(a)||(a=a==null?[]:[a]),g=S?r:g,Mt(g)||(g=g==null?[]:[g]),Dg(s,a,g))}var hL=Oa(function(s,a,g){s[g?0:1].push(a)},function(){return[[],[]]});function dL(s,a,g){var S=Mt(s)?of:lg,N=arguments.length<3;return S(s,St(a,4),g,N,_n)}function pL(s,a,g){var S=Mt(s)?AM:lg,N=arguments.length<3;return S(s,St(a,4),g,N,Og)}function vL(s,a){var g=Mt(s)?vn:Cg;return g(s,Ua(St(a,3)))}function gL(s){var a=Mt(s)?Tg:lk;return a(s)}function mL(s,a,g){(g?qe(s,a,g):a===r)?a=1:a=kt(a);var S=Mt(s)?U3:uk;return S(s,a)}function yL(s){var a=Mt(s)?$3:ck;return a(s)}function _L(s){if(s==null)return 0;if(We(s))return Ga(s)?Bi(s):s.length;var a=Ue(s);return a==xt||a==vt?s.size:Sf(s).length}function bL(s,a,g){var S=Mt(s)?af:hk;return g&&qe(s,a,g)&&(a=r),S(s,St(a,3))}var xL=Bt(function(s,a){if(s==null)return[];var g=a.length;return g>1&&qe(s,a[0],a[1])?a=[]:g>2&&qe(a[0],a[1],a[2])&&(a=[a[0]]),Dg(s,Me(a,1),[])}),Ba=e3||function(){return Ne.Date.now()};function wL(s,a){if(typeof a!="function")throw new cr(l);return s=kt(s),function(){if(--s<1)return a.apply(this,arguments)}}function Nm(s,a,g){return a=g?r:a,a=s&&a==null?s.length:a,tn(s,A,r,r,r,r,a)}function Mm(s,a){var g;if(typeof a!="function")throw new cr(l);return s=kt(s),function(){return--s>0&&(g=a.apply(this,arguments)),s<=1&&(a=r),g}}var Kf=Bt(function(s,a,g){var S=b;if(g.length){var N=mn(g,Hi(Kf));S|=E}return tn(s,S,a,g,N)}),km=Bt(function(s,a,g){var S=b|y;if(g.length){var N=mn(g,Hi(km));S|=E}return tn(a,S,s,g,N)});function Lm(s,a,g){a=g?r:a;var S=tn(s,T,r,r,r,r,r,a);return S.placeholder=Lm.placeholder,S}function Fm(s,a,g){a=g?r:a;var S=tn(s,x,r,r,r,r,r,a);return S.placeholder=Fm.placeholder,S}function Bm(s,a,g){var S,N,$,H,X,tt,ut=0,ft=!1,ht=!1,gt=!0;if(typeof s!="function")throw new cr(l);a=gr(a)||0,ge(g)&&(ft=!!g.leading,ht="maxWait"in g,$=ht?Ae(gr(g.maxWait)||0,a):$,gt="trailing"in g?!!g.trailing:gt);function wt(xe){var Nr=S,on=N;return S=N=r,ut=xe,H=s.apply(on,Nr),H}function Ot(xe){return ut=xe,X=Ds(Ut,a),ft?wt(xe):H}function Ft(xe){var Nr=xe-tt,on=xe-ut,ry=a-Nr;return ht?De(ry,$-on):ry}function Ct(xe){var Nr=xe-tt,on=xe-ut;return tt===r||Nr>=a||Nr<0||ht&&on>=$}function Ut(){var xe=Ba();if(Ct(xe))return zt(xe);X=Ds(Ut,Ft(xe))}function zt(xe){return X=r,gt&&S?wt(xe):(S=N=r,H)}function ir(){X!==r&&Wg(X),ut=0,S=tt=N=X=r}function ze(){return X===r?H:zt(Ba())}function sr(){var xe=Ba(),Nr=Ct(xe);if(S=arguments,N=this,tt=xe,Nr){if(X===r)return Ot(tt);if(ht)return Wg(X),X=Ds(Ut,a),wt(tt)}return X===r&&(X=Ds(Ut,a)),H}return sr.cancel=ir,sr.flush=ze,sr}var TL=Bt(function(s,a){return Ag(s,1,a)}),EL=Bt(function(s,a,g){return Ag(s,gr(a)||0,g)});function SL(s){return tn(s,L)}function Da(s,a){if(typeof s!="function"||a!=null&&typeof a!="function")throw new cr(l);var g=function(){var S=arguments,N=a?a.apply(this,S):S[0],$=g.cache;if($.has(N))return $.get(N);var H=s.apply(this,S);return g.cache=$.set(N,H)||$,H};return g.cache=new(Da.Cache||Qr),g}Da.Cache=Qr;function Ua(s){if(typeof s!="function")throw new cr(l);return function(){var a=arguments;switch(a.length){case 0:return!s.call(this);case 1:return!s.call(this,a[0]);case 2:return!s.call(this,a[0],a[1]);case 3:return!s.call(this,a[0],a[1],a[2])}return!s.apply(this,a)}}function AL(s){return Mm(2,s)}var OL=dk(function(s,a){a=a.length==1&&Mt(a[0])?he(a[0],er(St())):he(Me(a,1),er(St()));var g=a.length;return Bt(function(S){for(var N=-1,$=De(S.length,g);++N<$;)S[N]=a[N].call(this,S[N]);return tr(s,this,S)})}),Yf=Bt(function(s,a){var g=mn(a,Hi(Yf));return tn(s,E,r,a,g)}),Dm=Bt(function(s,a){var g=mn(a,Hi(Dm));return tn(s,I,r,a,g)}),CL=en(function(s,a){return tn(s,O,r,r,r,a)});function RL(s,a){if(typeof s!="function")throw new cr(l);return a=a===r?a:kt(a),Bt(s,a)}function IL(s,a){if(typeof s!="function")throw new cr(l);return a=a==null?0:Ae(kt(a),0),Bt(function(g){var S=g[a],N=wn(g,0,a);return S&&gn(N,S),tr(s,this,N)})}function PL(s,a,g){var S=!0,N=!0;if(typeof s!="function")throw new cr(l);return ge(g)&&(S="leading"in g?!!g.leading:S,N="trailing"in g?!!g.trailing:N),Bm(s,a,{leading:S,maxWait:a,trailing:N})}function NL(s){return Nm(s,1)}function ML(s,a){return Yf(kf(a),s)}function kL(){if(!arguments.length)return[];var s=arguments[0];return Mt(s)?s:[s]}function LL(s){return dr(s,v)}function FL(s,a){return a=typeof a=="function"?a:r,dr(s,v,a)}function BL(s){return dr(s,p|v)}function DL(s,a){return a=typeof a=="function"?a:r,dr(s,p|v,a)}function UL(s,a){return a==null||Sg(s,a,Ie(a))}function Pr(s,a){return s===a||s!==s&&a!==a}var $L=Pa(wf),GL=Pa(function(s,a){return s>=a}),Qn=Pg(function(){return arguments}())?Pg:function(s){return ye(s)&&ee.call(s,"callee")&&!mg.call(s,"callee")},Mt=st.isArray,jL=Qv?er(Qv):Y3;function We(s){return s!=null&&$a(s.length)&&!nn(s)}function be(s){return ye(s)&&We(s)}function qL(s){return s===!0||s===!1||ye(s)&&je(s)==rt}var Tn=n3||ac,zL=Jv?er(Jv):Z3;function HL(s){return ye(s)&&s.nodeType===1&&!Us(s)}function VL(s){if(s==null)return!0;if(We(s)&&(Mt(s)||typeof s=="string"||typeof s.splice=="function"||Tn(s)||Vi(s)||Qn(s)))return!s.length;var a=Ue(s);if(a==xt||a==vt)return!s.size;if(Bs(s))return!Sf(s).length;for(var g in s)if(ee.call(s,g))return!1;return!0}function WL(s,a){return ks(s,a)}function XL(s,a,g){g=typeof g=="function"?g:r;var S=g?g(s,a):r;return S===r?ks(s,a,r,g):!!S}function Zf(s){if(!ye(s))return!1;var a=je(s);return a==ot||a==et||typeof s.message=="string"&&typeof s.name=="string"&&!Us(s)}function KL(s){return typeof s=="number"&&_g(s)}function nn(s){if(!ge(s))return!1;var a=je(s);return a==pt||a==mt||a==V||a==lt}function Um(s){return typeof s=="number"&&s==kt(s)}function $a(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=it}function ge(s){var a=typeof s;return s!=null&&(a=="object"||a=="function")}function ye(s){return s!=null&&typeof s=="object"}var $m=tg?er(tg):J3;function YL(s,a){return s===a||Ef(s,a,Gf(a))}function ZL(s,a,g){return g=typeof g=="function"?g:r,Ef(s,a,Gf(a),g)}function QL(s){return Gm(s)&&s!=+s}function JL(s){if(Fk(s))throw new It(o);return Ng(s)}function tF(s){return s===null}function eF(s){return s==null}function Gm(s){return typeof s=="number"||ye(s)&&je(s)==At}function Us(s){if(!ye(s)||je(s)!=qt)return!1;var a=da(s);if(a===null)return!0;var g=ee.call(a,"constructor")&&a.constructor;return typeof g=="function"&&g instanceof g&&ua.call(g)==ZM}var Qf=eg?er(eg):tk;function rF(s){return Um(s)&&s>=-it&&s<=it}var jm=rg?er(rg):ek;function Ga(s){return typeof s=="string"||!Mt(s)&&ye(s)&&je(s)==ct}function nr(s){return typeof s=="symbol"||ye(s)&&je(s)==Pt}var Vi=ng?er(ng):rk;function nF(s){return s===r}function iF(s){return ye(s)&&Ue(s)==Nt}function sF(s){return ye(s)&&je(s)==He}var oF=Pa(Af),aF=Pa(function(s,a){return s<=a});function qm(s){if(!s)return[];if(We(s))return Ga(s)?Rr(s):Ve(s);if(As&&s[As])return UM(s[As]());var a=Ue(s),g=a==xt?df:a==vt?oa:Wi;return g(s)}function sn(s){if(!s)return s===0?s:0;if(s=gr(s),s===z||s===-z){var a=s<0?-1:1;return a*W}return s===s?s:0}function kt(s){var a=sn(s),g=a%1;return a===a?g?a-g:a:0}function zm(s){return s?Xn(kt(s),0,k):0}function gr(s){if(typeof s=="number")return s;if(nr(s))return U;if(ge(s)){var a=typeof s.valueOf=="function"?s.valueOf():s;s=ge(a)?a+"":a}if(typeof s!="string")return s===0?s:+s;s=ug(s);var g=jN.test(s);return g||zN.test(s)?wM(s.slice(2),g?2:8):GN.test(s)?U:+s}function Hm(s){return jr(s,Xe(s))}function lF(s){return s?Xn(kt(s),-it,it):s===0?s:0}function Jt(s){return s==null?"":rr(s)}var uF=qi(function(s,a){if(Bs(a)||We(a)){jr(a,Ie(a),s);return}for(var g in a)ee.call(a,g)&&Ps(s,g,a[g])}),Vm=qi(function(s,a){jr(a,Xe(a),s)}),ja=qi(function(s,a,g,S){jr(a,Xe(a),s,S)}),fF=qi(function(s,a,g,S){jr(a,Ie(a),s,S)}),cF=en(_f);function hF(s,a){var g=ji(s);return a==null?g:Eg(g,a)}var dF=Bt(function(s,a){s=ne(s);var g=-1,S=a.length,N=S>2?a[2]:r;for(N&&qe(a[0],a[1],N)&&(S=1);++g<S;)for(var $=a[g],H=Xe($),X=-1,tt=H.length;++X<tt;){var ut=H[X],ft=s[ut];(ft===r||Pr(ft,Ui[ut])&&!ee.call(s,ut))&&(s[ut]=$[ut])}return s}),pF=Bt(function(s){return s.push(r,um),tr(Wm,r,s)});function vF(s,a){return sg(s,St(a,3),Gr)}function gF(s,a){return sg(s,St(a,3),xf)}function mF(s,a){return s==null?s:bf(s,St(a,3),Xe)}function yF(s,a){return s==null?s:Rg(s,St(a,3),Xe)}function _F(s,a){return s&&Gr(s,St(a,3))}function bF(s,a){return s&&xf(s,St(a,3))}function xF(s){return s==null?[]:Ta(s,Ie(s))}function wF(s){return s==null?[]:Ta(s,Xe(s))}function Jf(s,a,g){var S=s==null?r:Kn(s,a);return S===r?g:S}function TF(s,a){return s!=null&&hm(s,a,V3)}function tc(s,a){return s!=null&&hm(s,a,W3)}var EF=im(function(s,a,g){a!=null&&typeof a.toString!="function"&&(a=fa.call(a)),s[a]=g},rc(Ke)),SF=im(function(s,a,g){a!=null&&typeof a.toString!="function"&&(a=fa.call(a)),ee.call(s,a)?s[a].push(g):s[a]=[g]},St),AF=Bt(Ms);function Ie(s){return We(s)?wg(s):Sf(s)}function Xe(s){return We(s)?wg(s,!0):nk(s)}function OF(s,a){var g={};return a=St(a,3),Gr(s,function(S,N,$){Jr(g,a(S,N,$),S)}),g}function CF(s,a){var g={};return a=St(a,3),Gr(s,function(S,N,$){Jr(g,N,a(S,N,$))}),g}var RF=qi(function(s,a,g){Ea(s,a,g)}),Wm=qi(function(s,a,g,S){Ea(s,a,g,S)}),IF=en(function(s,a){var g={};if(s==null)return g;var S=!1;a=he(a,function($){return $=xn($,s),S||(S=$.length>1),$}),jr(s,Uf(s),g),S&&(g=dr(g,p|c|v,Ek));for(var N=a.length;N--;)Pf(g,a[N]);return g});function PF(s,a){return Xm(s,Ua(St(a)))}var NF=en(function(s,a){return s==null?{}:sk(s,a)});function Xm(s,a){if(s==null)return{};var g=he(Uf(s),function(S){return[S]});return a=St(a),Ug(s,g,function(S,N){return a(S,N[0])})}function MF(s,a,g){a=xn(a,s);var S=-1,N=a.length;for(N||(N=1,s=r);++S<N;){var $=s==null?r:s[qr(a[S])];$===r&&(S=N,$=g),s=nn($)?$.call(s):$}return s}function kF(s,a,g){return s==null?s:Ls(s,a,g)}function LF(s,a,g,S){return S=typeof S=="function"?S:r,s==null?s:Ls(s,a,g,S)}var Km=am(Ie),Ym=am(Xe);function FF(s,a,g){var S=Mt(s),N=S||Tn(s)||Vi(s);if(a=St(a,4),g==null){var $=s&&s.constructor;N?g=S?new $:[]:ge(s)?g=nn($)?ji(da(s)):{}:g={}}return(N?fr:Gr)(s,function(H,X,tt){return a(g,H,X,tt)}),g}function BF(s,a){return s==null?!0:Pf(s,a)}function DF(s,a,g){return s==null?s:zg(s,a,kf(g))}function UF(s,a,g,S){return S=typeof S=="function"?S:r,s==null?s:zg(s,a,kf(g),S)}function Wi(s){return s==null?[]:hf(s,Ie(s))}function $F(s){return s==null?[]:hf(s,Xe(s))}function GF(s,a,g){return g===r&&(g=a,a=r),g!==r&&(g=gr(g),g=g===g?g:0),a!==r&&(a=gr(a),a=a===a?a:0),Xn(gr(s),a,g)}function jF(s,a,g){return a=sn(a),g===r?(g=a,a=0):g=sn(g),s=gr(s),X3(s,a,g)}function qF(s,a,g){if(g&&typeof g!="boolean"&&qe(s,a,g)&&(a=g=r),g===r&&(typeof a=="boolean"?(g=a,a=r):typeof s=="boolean"&&(g=s,s=r)),s===r&&a===r?(s=0,a=1):(s=sn(s),a===r?(a=s,s=0):a=sn(a)),s>a){var S=s;s=a,a=S}if(g||s%1||a%1){var N=bg();return De(s+N*(a-s+xM("1e-"+((N+"").length-1))),a)}return Cf(s,a)}var zF=zi(function(s,a,g){return a=a.toLowerCase(),s+(g?Zm(a):a)});function Zm(s){return ec(Jt(s).toLowerCase())}function Qm(s){return s=Jt(s),s&&s.replace(VN,kM).replace(cM,"")}function HF(s,a,g){s=Jt(s),a=rr(a);var S=s.length;g=g===r?S:Xn(kt(g),0,S);var N=g;return g-=a.length,g>=0&&s.slice(g,N)==a}function VF(s){return s=Jt(s),s&&AN.test(s)?s.replace(Rv,LM):s}function WF(s){return s=Jt(s),s&&NN.test(s)?s.replace(Ku,"\\$&"):s}var XF=zi(function(s,a,g){return s+(g?"-":"")+a.toLowerCase()}),KF=zi(function(s,a,g){return s+(g?" ":"")+a.toLowerCase()}),YF=em("toLowerCase");function ZF(s,a,g){s=Jt(s),a=kt(a);var S=a?Bi(s):0;if(!a||S>=a)return s;var N=(a-S)/2;return Ia(ma(N),g)+s+Ia(ga(N),g)}function QF(s,a,g){s=Jt(s),a=kt(a);var S=a?Bi(s):0;return a&&S<a?s+Ia(a-S,g):s}function JF(s,a,g){s=Jt(s),a=kt(a);var S=a?Bi(s):0;return a&&S<a?Ia(a-S,g)+s:s}function t4(s,a,g){return g||a==null?a=0:a&&(a=+a),a3(Jt(s).replace(Yu,""),a||0)}function e4(s,a,g){return(g?qe(s,a,g):a===r)?a=1:a=kt(a),Rf(Jt(s),a)}function r4(){var s=arguments,a=Jt(s[0]);return s.length<3?a:a.replace(s[1],s[2])}var n4=zi(function(s,a,g){return s+(g?"_":"")+a.toLowerCase()});function i4(s,a,g){return g&&typeof g!="number"&&qe(s,a,g)&&(a=g=r),g=g===r?k:g>>>0,g?(s=Jt(s),s&&(typeof a=="string"||a!=null&&!Qf(a))&&(a=rr(a),!a&&Fi(s))?wn(Rr(s),0,g):s.split(a,g)):[]}var s4=zi(function(s,a,g){return s+(g?" ":"")+ec(a)});function o4(s,a,g){return s=Jt(s),g=g==null?0:Xn(kt(g),0,s.length),a=rr(a),s.slice(g,g+a.length)==a}function a4(s,a,g){var S=B.templateSettings;g&&qe(s,a,g)&&(a=r),s=Jt(s),a=ja({},a,S,lm);var N=ja({},a.imports,S.imports,lm),$=Ie(N),H=hf(N,$),X,tt,ut=0,ft=a.interpolate||ea,ht="__p += '",gt=pf((a.escape||ea).source+"|"+ft.source+"|"+(ft===Iv?$N:ea).source+"|"+(a.evaluate||ea).source+"|$","g"),wt="//# sourceURL="+(ee.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gM+"]")+`
1944
- `;s.replace(gt,function(Ct,Ut,zt,ir,ze,sr){return zt||(zt=ir),ht+=s.slice(ut,sr).replace(WN,FM),Ut&&(X=!0,ht+=`' +
1943
+ `)}function Mk(s){return Mt(s)||Qn(s)||!!(yg&&s&&s[yg])}function rn(s,a){var g=typeof s;return a=a??it,!!a&&(g=="number"||g!="symbol"&&HN.test(s))&&s>-1&&s%1==0&&s<a}function qe(s,a,g){if(!ge(g))return!1;var S=typeof a;return(S=="number"?We(g)&&rn(a,g.length):S=="string"&&a in g)?Pr(g[a],s):!1}function qf(s,a){if(Mt(s))return!1;var g=typeof s;return g=="number"||g=="symbol"||g=="boolean"||s==null||nr(s)?!0:IN.test(s)||!RN.test(s)||a!=null&&s in ne(a)}function kk(s){var a=typeof s;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?s!=="__proto__":s===null}function zf(s){var a=Na(s),g=B[a];if(typeof g!="function"||!(a in Gt.prototype))return!1;if(s===g)return!0;var S=$f(g);return!!S&&s===S[0]}function Lk(s){return!!pg&&pg in s}var Fk=la?nn:ac;function Bs(s){var a=s&&s.constructor,g=typeof a=="function"&&a.prototype||Ui;return s===g}function pm(s){return s===s&&!ge(s)}function vm(s,a){return function(g){return g==null?!1:g[s]===a&&(a!==r||s in ne(g))}}function Bk(s){var a=Da(s,function(S){return g.size===h&&g.clear(),S}),g=a.cache;return a}function Dk(s,a){var g=s[1],S=a[1],N=g|S,$=N<(b|y|A),H=S==A&&g==T||S==A&&g==O&&s[7].length<=a[8]||S==(A|O)&&a[7].length<=a[8]&&g==T;if(!($||H))return s;S&b&&(s[2]=a[2],N|=g&b?0:w);var K=a[3];if(K){var tt=s[3];s[3]=tt?Zg(tt,K,a[4]):K,s[4]=tt?mn(s[3],d):a[4]}return K=a[5],K&&(tt=s[5],s[5]=tt?Qg(tt,K,a[6]):K,s[6]=tt?mn(s[5],d):a[6]),K=a[7],K&&(s[7]=K),S&A&&(s[8]=s[8]==null?a[8]:De(s[8],a[8])),s[9]==null&&(s[9]=a[9]),s[0]=a[0],s[1]=N,s}function Uk(s){var a=[];if(s!=null)for(var g in ne(s))a.push(g);return a}function $k(s){return fa.call(s)}function gm(s,a,g){return a=Ae(a===r?s.length-1:a,0),function(){for(var S=arguments,N=-1,$=Ae(S.length-a,0),H=st($);++N<$;)H[N]=S[a+N];N=-1;for(var K=st(a+1);++N<a;)K[N]=S[N];return K[a]=g(H),tr(s,this,K)}}function mm(s,a){return a.length<2?s:Kn(s,pr(a,0,-1))}function Gk(s,a){for(var g=s.length,S=De(a.length,g),N=Ve(s);S--;){var $=a[S];s[S]=rn($,g)?N[$]:r}return s}function Hf(s,a){if(!(a==="constructor"&&typeof s[a]=="function")&&a!="__proto__")return s[a]}var ym=bm(Gg),Ds=r3||function(s,a){return Ne.setTimeout(s,a)},Vf=bm(fk);function _m(s,a,g){var S=a+"";return Vf(s,Nk(S,jk(Rk(S),g)))}function bm(s){var a=0,g=0;return function(){var S=o3(),N=M-(S-g);if(g=S,N>0){if(++a>=P)return arguments[0]}else a=0;return s.apply(r,arguments)}}function ka(s,a){var g=-1,S=s.length,N=S-1;for(a=a===r?S:a;++g<a;){var $=Cf(g,N),H=s[$];s[$]=s[g],s[g]=H}return s.length=a,s}var xm=Bk(function(s){var a=[];return s.charCodeAt(0)===46&&a.push(""),s.replace(PN,function(g,S,N,$){a.push(N?$.replace(UN,"$1"):S||g)}),a});function qr(s){if(typeof s=="string"||nr(s))return s;var a=s+"";return a=="0"&&1/s==-z?"-0":a}function Zn(s){if(s!=null){try{return ua.call(s)}catch{}try{return s+""}catch{}}return""}function jk(s,a){return fr(Z,function(g){var S="_."+g[0];a&g[1]&&!ia(s,S)&&s.push(S)}),s.sort()}function wm(s){if(s instanceof Gt)return s.clone();var a=new hr(s.__wrapped__,s.__chain__);return a.__actions__=Ve(s.__actions__),a.__index__=s.__index__,a.__values__=s.__values__,a}function qk(s,a,g){(g?qe(s,a,g):a===r)?a=1:a=Ae(kt(a),0);var S=s==null?0:s.length;if(!S||a<1)return[];for(var N=0,$=0,H=st(ga(S/a));N<S;)H[$++]=pr(s,N,N+=a);return H}function zk(s){for(var a=-1,g=s==null?0:s.length,S=0,N=[];++a<g;){var $=s[a];$&&(N[S++]=$)}return N}function Hk(){var s=arguments.length;if(!s)return[];for(var a=st(s-1),g=arguments[0],S=s;S--;)a[S-1]=arguments[S];return gn(Mt(g)?Ve(g):[g],Me(a,1))}var Vk=Bt(function(s,a){return be(s)?Ns(s,Me(a,1,be,!0)):[]}),Wk=Bt(function(s,a){var g=vr(a);return be(g)&&(g=r),be(s)?Ns(s,Me(a,1,be,!0),St(g,2)):[]}),Xk=Bt(function(s,a){var g=vr(a);return be(g)&&(g=r),be(s)?Ns(s,Me(a,1,be,!0),r,g):[]});function Kk(s,a,g){var S=s==null?0:s.length;return S?(a=g||a===r?1:kt(a),pr(s,a<0?0:a,S)):[]}function Yk(s,a,g){var S=s==null?0:s.length;return S?(a=g||a===r?1:kt(a),a=S-a,pr(s,0,a<0?0:a)):[]}function Zk(s,a){return s&&s.length?Aa(s,St(a,3),!0,!0):[]}function Qk(s,a){return s&&s.length?Aa(s,St(a,3),!0):[]}function Jk(s,a,g,S){var N=s==null?0:s.length;return N?(g&&typeof g!="number"&&qe(s,a,g)&&(g=0,S=N),H3(s,a,g,S)):[]}function Tm(s,a,g){var S=s==null?0:s.length;if(!S)return-1;var N=g==null?0:kt(g);return N<0&&(N=Ae(S+N,0)),sa(s,St(a,3),N)}function Em(s,a,g){var S=s==null?0:s.length;if(!S)return-1;var N=S-1;return g!==r&&(N=kt(g),N=g<0?Ae(S+N,0):De(N,S-1)),sa(s,St(a,3),N,!0)}function Sm(s){var a=s==null?0:s.length;return a?Me(s,1):[]}function t5(s){var a=s==null?0:s.length;return a?Me(s,z):[]}function e5(s,a){var g=s==null?0:s.length;return g?(a=a===r?1:kt(a),Me(s,a)):[]}function r5(s){for(var a=-1,g=s==null?0:s.length,S={};++a<g;){var N=s[a];S[N[0]]=N[1]}return S}function Am(s){return s&&s.length?s[0]:r}function n5(s,a,g){var S=s==null?0:s.length;if(!S)return-1;var N=g==null?0:kt(g);return N<0&&(N=Ae(S+N,0)),Li(s,a,N)}function i5(s){var a=s==null?0:s.length;return a?pr(s,0,-1):[]}var s5=Bt(function(s){var a=he(s,Mf);return a.length&&a[0]===s[0]?Tf(a):[]}),o5=Bt(function(s){var a=vr(s),g=he(s,Mf);return a===vr(g)?a=r:g.pop(),g.length&&g[0]===s[0]?Tf(g,St(a,2)):[]}),a5=Bt(function(s){var a=vr(s),g=he(s,Mf);return a=typeof a=="function"?a:r,a&&g.pop(),g.length&&g[0]===s[0]?Tf(g,r,a):[]});function l5(s,a){return s==null?"":i3.call(s,a)}function vr(s){var a=s==null?0:s.length;return a?s[a-1]:r}function u5(s,a,g){var S=s==null?0:s.length;if(!S)return-1;var N=S;return g!==r&&(N=kt(g),N=N<0?Ae(S+N,0):De(N,S-1)),a===a?jM(s,a,N):sa(s,og,N,!0)}function f5(s,a){return s&&s.length?Bg(s,kt(a)):r}var c5=Bt(Om);function Om(s,a){return s&&s.length&&a&&a.length?Of(s,a):s}function h5(s,a,g){return s&&s.length&&a&&a.length?Of(s,a,St(g,2)):s}function d5(s,a,g){return s&&s.length&&a&&a.length?Of(s,a,r,g):s}var p5=en(function(s,a){var g=s==null?0:s.length,S=_f(s,a);return $g(s,he(a,function(N){return rn(N,g)?+N:N}).sort(Yg)),S});function v5(s,a){var g=[];if(!(s&&s.length))return g;var S=-1,N=[],$=s.length;for(a=St(a,3);++S<$;){var H=s[S];a(H,S,s)&&(g.push(H),N.push(S))}return $g(s,N),g}function Wf(s){return s==null?s:l3.call(s)}function g5(s,a,g){var S=s==null?0:s.length;return S?(g&&typeof g!="number"&&qe(s,a,g)?(a=0,g=S):(a=a==null?0:kt(a),g=g===r?S:kt(g)),pr(s,a,g)):[]}function m5(s,a){return Sa(s,a)}function y5(s,a,g){return If(s,a,St(g,2))}function _5(s,a){var g=s==null?0:s.length;if(g){var S=Sa(s,a);if(S<g&&Pr(s[S],a))return S}return-1}function b5(s,a){return Sa(s,a,!0)}function x5(s,a,g){return If(s,a,St(g,2),!0)}function w5(s,a){var g=s==null?0:s.length;if(g){var S=Sa(s,a,!0)-1;if(Pr(s[S],a))return S}return-1}function T5(s){return s&&s.length?jg(s):[]}function E5(s,a){return s&&s.length?jg(s,St(a,2)):[]}function S5(s){var a=s==null?0:s.length;return a?pr(s,1,a):[]}function A5(s,a,g){return s&&s.length?(a=g||a===r?1:kt(a),pr(s,0,a<0?0:a)):[]}function O5(s,a,g){var S=s==null?0:s.length;return S?(a=g||a===r?1:kt(a),a=S-a,pr(s,a<0?0:a,S)):[]}function C5(s,a){return s&&s.length?Aa(s,St(a,3),!1,!0):[]}function R5(s,a){return s&&s.length?Aa(s,St(a,3)):[]}var I5=Bt(function(s){return bn(Me(s,1,be,!0))}),P5=Bt(function(s){var a=vr(s);return be(a)&&(a=r),bn(Me(s,1,be,!0),St(a,2))}),N5=Bt(function(s){var a=vr(s);return a=typeof a=="function"?a:r,bn(Me(s,1,be,!0),r,a)});function M5(s){return s&&s.length?bn(s):[]}function k5(s,a){return s&&s.length?bn(s,St(a,2)):[]}function L5(s,a){return a=typeof a=="function"?a:r,s&&s.length?bn(s,r,a):[]}function Xf(s){if(!(s&&s.length))return[];var a=0;return s=vn(s,function(g){if(be(g))return a=Ae(g.length,a),!0}),cf(a,function(g){return he(s,lf(g))})}function Cm(s,a){if(!(s&&s.length))return[];var g=Xf(s);return a==null?g:he(g,function(S){return tr(a,r,S)})}var F5=Bt(function(s,a){return be(s)?Ns(s,a):[]}),B5=Bt(function(s){return Nf(vn(s,be))}),D5=Bt(function(s){var a=vr(s);return be(a)&&(a=r),Nf(vn(s,be),St(a,2))}),U5=Bt(function(s){var a=vr(s);return a=typeof a=="function"?a:r,Nf(vn(s,be),r,a)}),$5=Bt(Xf);function G5(s,a){return Vg(s||[],a||[],Ps)}function j5(s,a){return Vg(s||[],a||[],Ls)}var q5=Bt(function(s){var a=s.length,g=a>1?s[a-1]:r;return g=typeof g=="function"?(s.pop(),g):r,Cm(s,g)});function Rm(s){var a=B(s);return a.__chain__=!0,a}function z5(s,a){return a(s),s}function La(s,a){return a(s)}var H5=en(function(s){var a=s.length,g=a?s[0]:0,S=this.__wrapped__,N=function($){return _f($,s)};return a>1||this.__actions__.length||!(S instanceof Gt)||!rn(g)?this.thru(N):(S=S.slice(g,+g+(a?1:0)),S.__actions__.push({func:La,args:[N],thisArg:r}),new hr(S,this.__chain__).thru(function($){return a&&!$.length&&$.push(r),$}))});function V5(){return Rm(this)}function W5(){return new hr(this.value(),this.__chain__)}function X5(){this.__values__===r&&(this.__values__=qm(this.value()));var s=this.__index__>=this.__values__.length,a=s?r:this.__values__[this.__index__++];return{done:s,value:a}}function K5(){return this}function Y5(s){for(var a,g=this;g instanceof ba;){var S=wm(g);S.__index__=0,S.__values__=r,a?N.__wrapped__=S:a=S;var N=S;g=g.__wrapped__}return N.__wrapped__=s,a}function Z5(){var s=this.__wrapped__;if(s instanceof Gt){var a=s;return this.__actions__.length&&(a=new Gt(this)),a=a.reverse(),a.__actions__.push({func:La,args:[Wf],thisArg:r}),new hr(a,this.__chain__)}return this.thru(Wf)}function Q5(){return Hg(this.__wrapped__,this.__actions__)}var J5=Oa(function(s,a,g){ee.call(s,g)?++s[g]:Jr(s,g,1)});function tL(s,a,g){var S=Mt(s)?ig:z3;return g&&qe(s,a,g)&&(a=r),S(s,St(a,3))}function eL(s,a){var g=Mt(s)?vn:Cg;return g(s,St(a,3))}var rL=rm(Tm),nL=rm(Em);function iL(s,a){return Me(Fa(s,a),1)}function sL(s,a){return Me(Fa(s,a),z)}function oL(s,a,g){return g=g===r?1:kt(g),Me(Fa(s,a),g)}function Im(s,a){var g=Mt(s)?fr:_n;return g(s,St(a,3))}function Pm(s,a){var g=Mt(s)?SM:Og;return g(s,St(a,3))}var aL=Oa(function(s,a,g){ee.call(s,g)?s[g].push(a):Jr(s,g,[a])});function lL(s,a,g,S){s=We(s)?s:Wi(s),g=g&&!S?kt(g):0;var N=s.length;return g<0&&(g=Ae(N+g,0)),Ga(s)?g<=N&&s.indexOf(a,g)>-1:!!N&&Li(s,a,g)>-1}var uL=Bt(function(s,a,g){var S=-1,N=typeof a=="function",$=We(s)?st(s.length):[];return _n(s,function(H){$[++S]=N?tr(a,H,g):Ms(H,a,g)}),$}),fL=Oa(function(s,a,g){Jr(s,g,a)});function Fa(s,a){var g=Mt(s)?he:kg;return g(s,St(a,3))}function cL(s,a,g,S){return s==null?[]:(Mt(a)||(a=a==null?[]:[a]),g=S?r:g,Mt(g)||(g=g==null?[]:[g]),Dg(s,a,g))}var hL=Oa(function(s,a,g){s[g?0:1].push(a)},function(){return[[],[]]});function dL(s,a,g){var S=Mt(s)?of:lg,N=arguments.length<3;return S(s,St(a,4),g,N,_n)}function pL(s,a,g){var S=Mt(s)?AM:lg,N=arguments.length<3;return S(s,St(a,4),g,N,Og)}function vL(s,a){var g=Mt(s)?vn:Cg;return g(s,Ua(St(a,3)))}function gL(s){var a=Mt(s)?Tg:lk;return a(s)}function mL(s,a,g){(g?qe(s,a,g):a===r)?a=1:a=kt(a);var S=Mt(s)?U3:uk;return S(s,a)}function yL(s){var a=Mt(s)?$3:ck;return a(s)}function _L(s){if(s==null)return 0;if(We(s))return Ga(s)?Bi(s):s.length;var a=Ue(s);return a==xt||a==vt?s.size:Sf(s).length}function bL(s,a,g){var S=Mt(s)?af:hk;return g&&qe(s,a,g)&&(a=r),S(s,St(a,3))}var xL=Bt(function(s,a){if(s==null)return[];var g=a.length;return g>1&&qe(s,a[0],a[1])?a=[]:g>2&&qe(a[0],a[1],a[2])&&(a=[a[0]]),Dg(s,Me(a,1),[])}),Ba=e3||function(){return Ne.Date.now()};function wL(s,a){if(typeof a!="function")throw new cr(l);return s=kt(s),function(){if(--s<1)return a.apply(this,arguments)}}function Nm(s,a,g){return a=g?r:a,a=s&&a==null?s.length:a,tn(s,A,r,r,r,r,a)}function Mm(s,a){var g;if(typeof a!="function")throw new cr(l);return s=kt(s),function(){return--s>0&&(g=a.apply(this,arguments)),s<=1&&(a=r),g}}var Kf=Bt(function(s,a,g){var S=b;if(g.length){var N=mn(g,Hi(Kf));S|=E}return tn(s,S,a,g,N)}),km=Bt(function(s,a,g){var S=b|y;if(g.length){var N=mn(g,Hi(km));S|=E}return tn(a,S,s,g,N)});function Lm(s,a,g){a=g?r:a;var S=tn(s,T,r,r,r,r,r,a);return S.placeholder=Lm.placeholder,S}function Fm(s,a,g){a=g?r:a;var S=tn(s,x,r,r,r,r,r,a);return S.placeholder=Fm.placeholder,S}function Bm(s,a,g){var S,N,$,H,K,tt,ut=0,ft=!1,ht=!1,gt=!0;if(typeof s!="function")throw new cr(l);a=gr(a)||0,ge(g)&&(ft=!!g.leading,ht="maxWait"in g,$=ht?Ae(gr(g.maxWait)||0,a):$,gt="trailing"in g?!!g.trailing:gt);function wt(xe){var Nr=S,on=N;return S=N=r,ut=xe,H=s.apply(on,Nr),H}function Ot(xe){return ut=xe,K=Ds(Ut,a),ft?wt(xe):H}function Ft(xe){var Nr=xe-tt,on=xe-ut,ry=a-Nr;return ht?De(ry,$-on):ry}function Ct(xe){var Nr=xe-tt,on=xe-ut;return tt===r||Nr>=a||Nr<0||ht&&on>=$}function Ut(){var xe=Ba();if(Ct(xe))return zt(xe);K=Ds(Ut,Ft(xe))}function zt(xe){return K=r,gt&&S?wt(xe):(S=N=r,H)}function ir(){K!==r&&Wg(K),ut=0,S=tt=N=K=r}function ze(){return K===r?H:zt(Ba())}function sr(){var xe=Ba(),Nr=Ct(xe);if(S=arguments,N=this,tt=xe,Nr){if(K===r)return Ot(tt);if(ht)return Wg(K),K=Ds(Ut,a),wt(tt)}return K===r&&(K=Ds(Ut,a)),H}return sr.cancel=ir,sr.flush=ze,sr}var TL=Bt(function(s,a){return Ag(s,1,a)}),EL=Bt(function(s,a,g){return Ag(s,gr(a)||0,g)});function SL(s){return tn(s,L)}function Da(s,a){if(typeof s!="function"||a!=null&&typeof a!="function")throw new cr(l);var g=function(){var S=arguments,N=a?a.apply(this,S):S[0],$=g.cache;if($.has(N))return $.get(N);var H=s.apply(this,S);return g.cache=$.set(N,H)||$,H};return g.cache=new(Da.Cache||Qr),g}Da.Cache=Qr;function Ua(s){if(typeof s!="function")throw new cr(l);return function(){var a=arguments;switch(a.length){case 0:return!s.call(this);case 1:return!s.call(this,a[0]);case 2:return!s.call(this,a[0],a[1]);case 3:return!s.call(this,a[0],a[1],a[2])}return!s.apply(this,a)}}function AL(s){return Mm(2,s)}var OL=dk(function(s,a){a=a.length==1&&Mt(a[0])?he(a[0],er(St())):he(Me(a,1),er(St()));var g=a.length;return Bt(function(S){for(var N=-1,$=De(S.length,g);++N<$;)S[N]=a[N].call(this,S[N]);return tr(s,this,S)})}),Yf=Bt(function(s,a){var g=mn(a,Hi(Yf));return tn(s,E,r,a,g)}),Dm=Bt(function(s,a){var g=mn(a,Hi(Dm));return tn(s,I,r,a,g)}),CL=en(function(s,a){return tn(s,O,r,r,r,a)});function RL(s,a){if(typeof s!="function")throw new cr(l);return a=a===r?a:kt(a),Bt(s,a)}function IL(s,a){if(typeof s!="function")throw new cr(l);return a=a==null?0:Ae(kt(a),0),Bt(function(g){var S=g[a],N=wn(g,0,a);return S&&gn(N,S),tr(s,this,N)})}function PL(s,a,g){var S=!0,N=!0;if(typeof s!="function")throw new cr(l);return ge(g)&&(S="leading"in g?!!g.leading:S,N="trailing"in g?!!g.trailing:N),Bm(s,a,{leading:S,maxWait:a,trailing:N})}function NL(s){return Nm(s,1)}function ML(s,a){return Yf(kf(a),s)}function kL(){if(!arguments.length)return[];var s=arguments[0];return Mt(s)?s:[s]}function LL(s){return dr(s,v)}function FL(s,a){return a=typeof a=="function"?a:r,dr(s,v,a)}function BL(s){return dr(s,p|v)}function DL(s,a){return a=typeof a=="function"?a:r,dr(s,p|v,a)}function UL(s,a){return a==null||Sg(s,a,Ie(a))}function Pr(s,a){return s===a||s!==s&&a!==a}var $L=Pa(wf),GL=Pa(function(s,a){return s>=a}),Qn=Pg(function(){return arguments}())?Pg:function(s){return ye(s)&&ee.call(s,"callee")&&!mg.call(s,"callee")},Mt=st.isArray,jL=Qv?er(Qv):Y3;function We(s){return s!=null&&$a(s.length)&&!nn(s)}function be(s){return ye(s)&&We(s)}function qL(s){return s===!0||s===!1||ye(s)&&je(s)==et}var Tn=n3||ac,zL=Jv?er(Jv):Z3;function HL(s){return ye(s)&&s.nodeType===1&&!Us(s)}function VL(s){if(s==null)return!0;if(We(s)&&(Mt(s)||typeof s=="string"||typeof s.splice=="function"||Tn(s)||Vi(s)||Qn(s)))return!s.length;var a=Ue(s);if(a==xt||a==vt)return!s.size;if(Bs(s))return!Sf(s).length;for(var g in s)if(ee.call(s,g))return!1;return!0}function WL(s,a){return ks(s,a)}function XL(s,a,g){g=typeof g=="function"?g:r;var S=g?g(s,a):r;return S===r?ks(s,a,r,g):!!S}function Zf(s){if(!ye(s))return!1;var a=je(s);return a==ot||a==rt||typeof s.message=="string"&&typeof s.name=="string"&&!Us(s)}function KL(s){return typeof s=="number"&&_g(s)}function nn(s){if(!ge(s))return!1;var a=je(s);return a==pt||a==mt||a==V||a==lt}function Um(s){return typeof s=="number"&&s==kt(s)}function $a(s){return typeof s=="number"&&s>-1&&s%1==0&&s<=it}function ge(s){var a=typeof s;return s!=null&&(a=="object"||a=="function")}function ye(s){return s!=null&&typeof s=="object"}var $m=tg?er(tg):J3;function YL(s,a){return s===a||Ef(s,a,Gf(a))}function ZL(s,a,g){return g=typeof g=="function"?g:r,Ef(s,a,Gf(a),g)}function QL(s){return Gm(s)&&s!=+s}function JL(s){if(Fk(s))throw new It(o);return Ng(s)}function tF(s){return s===null}function eF(s){return s==null}function Gm(s){return typeof s=="number"||ye(s)&&je(s)==At}function Us(s){if(!ye(s)||je(s)!=qt)return!1;var a=da(s);if(a===null)return!0;var g=ee.call(a,"constructor")&&a.constructor;return typeof g=="function"&&g instanceof g&&ua.call(g)==ZM}var Qf=eg?er(eg):tk;function rF(s){return Um(s)&&s>=-it&&s<=it}var jm=rg?er(rg):ek;function Ga(s){return typeof s=="string"||!Mt(s)&&ye(s)&&je(s)==ct}function nr(s){return typeof s=="symbol"||ye(s)&&je(s)==Pt}var Vi=ng?er(ng):rk;function nF(s){return s===r}function iF(s){return ye(s)&&Ue(s)==Nt}function sF(s){return ye(s)&&je(s)==He}var oF=Pa(Af),aF=Pa(function(s,a){return s<=a});function qm(s){if(!s)return[];if(We(s))return Ga(s)?Rr(s):Ve(s);if(As&&s[As])return UM(s[As]());var a=Ue(s),g=a==xt?df:a==vt?oa:Wi;return g(s)}function sn(s){if(!s)return s===0?s:0;if(s=gr(s),s===z||s===-z){var a=s<0?-1:1;return a*W}return s===s?s:0}function kt(s){var a=sn(s),g=a%1;return a===a?g?a-g:a:0}function zm(s){return s?Xn(kt(s),0,k):0}function gr(s){if(typeof s=="number")return s;if(nr(s))return U;if(ge(s)){var a=typeof s.valueOf=="function"?s.valueOf():s;s=ge(a)?a+"":a}if(typeof s!="string")return s===0?s:+s;s=ug(s);var g=jN.test(s);return g||zN.test(s)?wM(s.slice(2),g?2:8):GN.test(s)?U:+s}function Hm(s){return jr(s,Xe(s))}function lF(s){return s?Xn(kt(s),-it,it):s===0?s:0}function Jt(s){return s==null?"":rr(s)}var uF=qi(function(s,a){if(Bs(a)||We(a)){jr(a,Ie(a),s);return}for(var g in a)ee.call(a,g)&&Ps(s,g,a[g])}),Vm=qi(function(s,a){jr(a,Xe(a),s)}),ja=qi(function(s,a,g,S){jr(a,Xe(a),s,S)}),fF=qi(function(s,a,g,S){jr(a,Ie(a),s,S)}),cF=en(_f);function hF(s,a){var g=ji(s);return a==null?g:Eg(g,a)}var dF=Bt(function(s,a){s=ne(s);var g=-1,S=a.length,N=S>2?a[2]:r;for(N&&qe(a[0],a[1],N)&&(S=1);++g<S;)for(var $=a[g],H=Xe($),K=-1,tt=H.length;++K<tt;){var ut=H[K],ft=s[ut];(ft===r||Pr(ft,Ui[ut])&&!ee.call(s,ut))&&(s[ut]=$[ut])}return s}),pF=Bt(function(s){return s.push(r,um),tr(Wm,r,s)});function vF(s,a){return sg(s,St(a,3),Gr)}function gF(s,a){return sg(s,St(a,3),xf)}function mF(s,a){return s==null?s:bf(s,St(a,3),Xe)}function yF(s,a){return s==null?s:Rg(s,St(a,3),Xe)}function _F(s,a){return s&&Gr(s,St(a,3))}function bF(s,a){return s&&xf(s,St(a,3))}function xF(s){return s==null?[]:Ta(s,Ie(s))}function wF(s){return s==null?[]:Ta(s,Xe(s))}function Jf(s,a,g){var S=s==null?r:Kn(s,a);return S===r?g:S}function TF(s,a){return s!=null&&hm(s,a,V3)}function tc(s,a){return s!=null&&hm(s,a,W3)}var EF=im(function(s,a,g){a!=null&&typeof a.toString!="function"&&(a=fa.call(a)),s[a]=g},rc(Ke)),SF=im(function(s,a,g){a!=null&&typeof a.toString!="function"&&(a=fa.call(a)),ee.call(s,a)?s[a].push(g):s[a]=[g]},St),AF=Bt(Ms);function Ie(s){return We(s)?wg(s):Sf(s)}function Xe(s){return We(s)?wg(s,!0):nk(s)}function OF(s,a){var g={};return a=St(a,3),Gr(s,function(S,N,$){Jr(g,a(S,N,$),S)}),g}function CF(s,a){var g={};return a=St(a,3),Gr(s,function(S,N,$){Jr(g,N,a(S,N,$))}),g}var RF=qi(function(s,a,g){Ea(s,a,g)}),Wm=qi(function(s,a,g,S){Ea(s,a,g,S)}),IF=en(function(s,a){var g={};if(s==null)return g;var S=!1;a=he(a,function($){return $=xn($,s),S||(S=$.length>1),$}),jr(s,Uf(s),g),S&&(g=dr(g,p|c|v,Ek));for(var N=a.length;N--;)Pf(g,a[N]);return g});function PF(s,a){return Xm(s,Ua(St(a)))}var NF=en(function(s,a){return s==null?{}:sk(s,a)});function Xm(s,a){if(s==null)return{};var g=he(Uf(s),function(S){return[S]});return a=St(a),Ug(s,g,function(S,N){return a(S,N[0])})}function MF(s,a,g){a=xn(a,s);var S=-1,N=a.length;for(N||(N=1,s=r);++S<N;){var $=s==null?r:s[qr(a[S])];$===r&&(S=N,$=g),s=nn($)?$.call(s):$}return s}function kF(s,a,g){return s==null?s:Ls(s,a,g)}function LF(s,a,g,S){return S=typeof S=="function"?S:r,s==null?s:Ls(s,a,g,S)}var Km=am(Ie),Ym=am(Xe);function FF(s,a,g){var S=Mt(s),N=S||Tn(s)||Vi(s);if(a=St(a,4),g==null){var $=s&&s.constructor;N?g=S?new $:[]:ge(s)?g=nn($)?ji(da(s)):{}:g={}}return(N?fr:Gr)(s,function(H,K,tt){return a(g,H,K,tt)}),g}function BF(s,a){return s==null?!0:Pf(s,a)}function DF(s,a,g){return s==null?s:zg(s,a,kf(g))}function UF(s,a,g,S){return S=typeof S=="function"?S:r,s==null?s:zg(s,a,kf(g),S)}function Wi(s){return s==null?[]:hf(s,Ie(s))}function $F(s){return s==null?[]:hf(s,Xe(s))}function GF(s,a,g){return g===r&&(g=a,a=r),g!==r&&(g=gr(g),g=g===g?g:0),a!==r&&(a=gr(a),a=a===a?a:0),Xn(gr(s),a,g)}function jF(s,a,g){return a=sn(a),g===r?(g=a,a=0):g=sn(g),s=gr(s),X3(s,a,g)}function qF(s,a,g){if(g&&typeof g!="boolean"&&qe(s,a,g)&&(a=g=r),g===r&&(typeof a=="boolean"?(g=a,a=r):typeof s=="boolean"&&(g=s,s=r)),s===r&&a===r?(s=0,a=1):(s=sn(s),a===r?(a=s,s=0):a=sn(a)),s>a){var S=s;s=a,a=S}if(g||s%1||a%1){var N=bg();return De(s+N*(a-s+xM("1e-"+((N+"").length-1))),a)}return Cf(s,a)}var zF=zi(function(s,a,g){return a=a.toLowerCase(),s+(g?Zm(a):a)});function Zm(s){return ec(Jt(s).toLowerCase())}function Qm(s){return s=Jt(s),s&&s.replace(VN,kM).replace(cM,"")}function HF(s,a,g){s=Jt(s),a=rr(a);var S=s.length;g=g===r?S:Xn(kt(g),0,S);var N=g;return g-=a.length,g>=0&&s.slice(g,N)==a}function VF(s){return s=Jt(s),s&&AN.test(s)?s.replace(Rv,LM):s}function WF(s){return s=Jt(s),s&&NN.test(s)?s.replace(Ku,"\\$&"):s}var XF=zi(function(s,a,g){return s+(g?"-":"")+a.toLowerCase()}),KF=zi(function(s,a,g){return s+(g?" ":"")+a.toLowerCase()}),YF=em("toLowerCase");function ZF(s,a,g){s=Jt(s),a=kt(a);var S=a?Bi(s):0;if(!a||S>=a)return s;var N=(a-S)/2;return Ia(ma(N),g)+s+Ia(ga(N),g)}function QF(s,a,g){s=Jt(s),a=kt(a);var S=a?Bi(s):0;return a&&S<a?s+Ia(a-S,g):s}function JF(s,a,g){s=Jt(s),a=kt(a);var S=a?Bi(s):0;return a&&S<a?Ia(a-S,g)+s:s}function t4(s,a,g){return g||a==null?a=0:a&&(a=+a),a3(Jt(s).replace(Yu,""),a||0)}function e4(s,a,g){return(g?qe(s,a,g):a===r)?a=1:a=kt(a),Rf(Jt(s),a)}function r4(){var s=arguments,a=Jt(s[0]);return s.length<3?a:a.replace(s[1],s[2])}var n4=zi(function(s,a,g){return s+(g?"_":"")+a.toLowerCase()});function i4(s,a,g){return g&&typeof g!="number"&&qe(s,a,g)&&(a=g=r),g=g===r?k:g>>>0,g?(s=Jt(s),s&&(typeof a=="string"||a!=null&&!Qf(a))&&(a=rr(a),!a&&Fi(s))?wn(Rr(s),0,g):s.split(a,g)):[]}var s4=zi(function(s,a,g){return s+(g?" ":"")+ec(a)});function o4(s,a,g){return s=Jt(s),g=g==null?0:Xn(kt(g),0,s.length),a=rr(a),s.slice(g,g+a.length)==a}function a4(s,a,g){var S=B.templateSettings;g&&qe(s,a,g)&&(a=r),s=Jt(s),a=ja({},a,S,lm);var N=ja({},a.imports,S.imports,lm),$=Ie(N),H=hf(N,$),K,tt,ut=0,ft=a.interpolate||ea,ht="__p += '",gt=pf((a.escape||ea).source+"|"+ft.source+"|"+(ft===Iv?$N:ea).source+"|"+(a.evaluate||ea).source+"|$","g"),wt="//# sourceURL="+(ee.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++gM+"]")+`
1944
+ `;s.replace(gt,function(Ct,Ut,zt,ir,ze,sr){return zt||(zt=ir),ht+=s.slice(ut,sr).replace(WN,FM),Ut&&(K=!0,ht+=`' +
1945
1945
  __e(`+Ut+`) +
1946
1946
  '`),ze&&(tt=!0,ht+=`';
1947
1947
  `+ze+`;
@@ -1953,48 +1953,48 @@ __p += '`),zt&&(ht+=`' +
1953
1953
  }
1954
1954
  `;else if(DN.test(Ot))throw new It(u);ht=(tt?ht.replace(wN,""):ht).replace(TN,"$1").replace(EN,"$1;"),ht="function("+(Ot||"obj")+`) {
1955
1955
  `+(Ot?"":`obj || (obj = {});
1956
- `)+"var __t, __p = ''"+(X?", __e = _.escape":"")+(tt?`, __j = Array.prototype.join;
1956
+ `)+"var __t, __p = ''"+(K?", __e = _.escape":"")+(tt?`, __j = Array.prototype.join;
1957
1957
  function print() { __p += __j.call(arguments, '') }
1958
1958
  `:`;
1959
1959
  `)+ht+`return __p
1960
- }`;var Ft=ty(function(){return Kt($,wt+"return "+ht).apply(r,H)});if(Ft.source=ht,Zf(Ft))throw Ft;return Ft}function l4(s){return Jt(s).toLowerCase()}function u4(s){return Jt(s).toUpperCase()}function f4(s,a,g){if(s=Jt(s),s&&(g||a===r))return ug(s);if(!s||!(a=rr(a)))return s;var S=Rr(s),N=Rr(a),$=fg(S,N),H=cg(S,N)+1;return wn(S,$,H).join("")}function c4(s,a,g){if(s=Jt(s),s&&(g||a===r))return s.slice(0,dg(s)+1);if(!s||!(a=rr(a)))return s;var S=Rr(s),N=cg(S,Rr(a))+1;return wn(S,0,N).join("")}function h4(s,a,g){if(s=Jt(s),s&&(g||a===r))return s.replace(Yu,"");if(!s||!(a=rr(a)))return s;var S=Rr(s),N=fg(S,Rr(a));return wn(S,N).join("")}function d4(s,a){var g=R,S=C;if(ge(a)){var N="separator"in a?a.separator:N;g="length"in a?kt(a.length):g,S="omission"in a?rr(a.omission):S}s=Jt(s);var $=s.length;if(Fi(s)){var H=Rr(s);$=H.length}if(g>=$)return s;var X=g-Bi(S);if(X<1)return S;var tt=H?wn(H,0,X).join(""):s.slice(0,X);if(N===r)return tt+S;if(H&&(X+=tt.length-X),Qf(N)){if(s.slice(X).search(N)){var ut,ft=tt;for(N.global||(N=pf(N.source,Jt(Pv.exec(N))+"g")),N.lastIndex=0;ut=N.exec(ft);)var ht=ut.index;tt=tt.slice(0,ht===r?X:ht)}}else if(s.indexOf(rr(N),X)!=X){var gt=tt.lastIndexOf(N);gt>-1&&(tt=tt.slice(0,gt))}return tt+S}function p4(s){return s=Jt(s),s&&SN.test(s)?s.replace(Cv,qM):s}var v4=zi(function(s,a,g){return s+(g?" ":"")+a.toUpperCase()}),ec=em("toUpperCase");function Jm(s,a,g){return s=Jt(s),a=g?r:a,a===r?DM(s)?VM(s):RM(s):s.match(a)||[]}var ty=Bt(function(s,a){try{return tr(s,r,a)}catch(g){return Zf(g)?g:new It(g)}}),g4=en(function(s,a){return fr(a,function(g){g=qr(g),Jr(s,g,Kf(s[g],s))}),s});function m4(s){var a=s==null?0:s.length,g=St();return s=a?he(s,function(S){if(typeof S[1]!="function")throw new cr(l);return[g(S[0]),S[1]]}):[],Bt(function(S){for(var N=-1;++N<a;){var $=s[N];if(tr($[0],this,S))return tr($[1],this,S)}})}function y4(s){return q3(dr(s,p))}function rc(s){return function(){return s}}function _4(s,a){return s==null||s!==s?a:s}var b4=nm(),x4=nm(!0);function Ke(s){return s}function nc(s){return Mg(typeof s=="function"?s:dr(s,p))}function w4(s){return Lg(dr(s,p))}function T4(s,a){return Fg(s,dr(a,p))}var E4=Bt(function(s,a){return function(g){return Ms(g,s,a)}}),S4=Bt(function(s,a){return function(g){return Ms(s,g,a)}});function ic(s,a,g){var S=Ie(a),N=Ta(a,S);g==null&&!(ge(a)&&(N.length||!S.length))&&(g=a,a=s,s=this,N=Ta(a,Ie(a)));var $=!(ge(g)&&"chain"in g)||!!g.chain,H=nn(s);return fr(N,function(X){var tt=a[X];s[X]=tt,H&&(s.prototype[X]=function(){var ut=this.__chain__;if($||ut){var ft=s(this.__wrapped__),ht=ft.__actions__=Ve(this.__actions__);return ht.push({func:tt,args:arguments,thisArg:s}),ft.__chain__=ut,ft}return tt.apply(s,gn([this.value()],arguments))})}),s}function A4(){return Ne._===this&&(Ne._=QM),this}function sc(){}function O4(s){return s=kt(s),Bt(function(a){return Bg(a,s)})}var C4=Ff(he),R4=Ff(ig),I4=Ff(af);function ey(s){return qf(s)?lf(qr(s)):ok(s)}function P4(s){return function(a){return s==null?r:Kn(s,a)}}var N4=sm(),M4=sm(!0);function oc(){return[]}function ac(){return!1}function k4(){return{}}function L4(){return""}function F4(){return!0}function B4(s,a){if(s=kt(s),s<1||s>it)return[];var g=k,S=De(s,k);a=St(a),s-=k;for(var N=cf(S,a);++g<s;)a(g);return N}function D4(s){return Mt(s)?he(s,qr):nr(s)?[s]:Ve(xm(Jt(s)))}function U4(s){var a=++YM;return Jt(s)+a}var $4=Ra(function(s,a){return s+a},0),G4=Bf("ceil"),j4=Ra(function(s,a){return s/a},1),q4=Bf("floor");function z4(s){return s&&s.length?wa(s,Ke,wf):r}function H4(s,a){return s&&s.length?wa(s,St(a,2),wf):r}function V4(s){return ag(s,Ke)}function W4(s,a){return ag(s,St(a,2))}function X4(s){return s&&s.length?wa(s,Ke,Af):r}function K4(s,a){return s&&s.length?wa(s,St(a,2),Af):r}var Y4=Ra(function(s,a){return s*a},1),Z4=Bf("round"),Q4=Ra(function(s,a){return s-a},0);function J4(s){return s&&s.length?ff(s,Ke):0}function tB(s,a){return s&&s.length?ff(s,St(a,2)):0}return B.after=wL,B.ary=Nm,B.assign=uF,B.assignIn=Vm,B.assignInWith=ja,B.assignWith=fF,B.at=cF,B.before=Mm,B.bind=Kf,B.bindAll=g4,B.bindKey=km,B.castArray=kL,B.chain=Rm,B.chunk=qk,B.compact=zk,B.concat=Hk,B.cond=m4,B.conforms=y4,B.constant=rc,B.countBy=J5,B.create=hF,B.curry=Lm,B.curryRight=Fm,B.debounce=Bm,B.defaults=dF,B.defaultsDeep=pF,B.defer=TL,B.delay=EL,B.difference=Vk,B.differenceBy=Wk,B.differenceWith=Xk,B.drop=Kk,B.dropRight=Yk,B.dropRightWhile=Zk,B.dropWhile=Qk,B.fill=Jk,B.filter=eL,B.flatMap=iL,B.flatMapDeep=sL,B.flatMapDepth=oL,B.flatten=Sm,B.flattenDeep=t5,B.flattenDepth=e5,B.flip=SL,B.flow=b4,B.flowRight=x4,B.fromPairs=r5,B.functions=xF,B.functionsIn=wF,B.groupBy=aL,B.initial=i5,B.intersection=s5,B.intersectionBy=o5,B.intersectionWith=a5,B.invert=EF,B.invertBy=SF,B.invokeMap=uL,B.iteratee=nc,B.keyBy=fL,B.keys=Ie,B.keysIn=Xe,B.map=Fa,B.mapKeys=OF,B.mapValues=CF,B.matches=w4,B.matchesProperty=T4,B.memoize=Da,B.merge=RF,B.mergeWith=Wm,B.method=E4,B.methodOf=S4,B.mixin=ic,B.negate=Ua,B.nthArg=O4,B.omit=IF,B.omitBy=PF,B.once=AL,B.orderBy=cL,B.over=C4,B.overArgs=OL,B.overEvery=R4,B.overSome=I4,B.partial=Yf,B.partialRight=Dm,B.partition=hL,B.pick=NF,B.pickBy=Xm,B.property=ey,B.propertyOf=P4,B.pull=c5,B.pullAll=Om,B.pullAllBy=h5,B.pullAllWith=d5,B.pullAt=p5,B.range=N4,B.rangeRight=M4,B.rearg=CL,B.reject=vL,B.remove=v5,B.rest=RL,B.reverse=Wf,B.sampleSize=mL,B.set=kF,B.setWith=LF,B.shuffle=yL,B.slice=g5,B.sortBy=xL,B.sortedUniq=T5,B.sortedUniqBy=E5,B.split=i4,B.spread=IL,B.tail=S5,B.take=A5,B.takeRight=O5,B.takeRightWhile=C5,B.takeWhile=R5,B.tap=z5,B.throttle=PL,B.thru=La,B.toArray=qm,B.toPairs=Km,B.toPairsIn=Ym,B.toPath=D4,B.toPlainObject=Hm,B.transform=FF,B.unary=NL,B.union=I5,B.unionBy=P5,B.unionWith=N5,B.uniq=M5,B.uniqBy=k5,B.uniqWith=L5,B.unset=BF,B.unzip=Xf,B.unzipWith=Cm,B.update=DF,B.updateWith=UF,B.values=Wi,B.valuesIn=$F,B.without=F5,B.words=Jm,B.wrap=ML,B.xor=B5,B.xorBy=D5,B.xorWith=U5,B.zip=$5,B.zipObject=G5,B.zipObjectDeep=j5,B.zipWith=q5,B.entries=Km,B.entriesIn=Ym,B.extend=Vm,B.extendWith=ja,ic(B,B),B.add=$4,B.attempt=ty,B.camelCase=zF,B.capitalize=Zm,B.ceil=G4,B.clamp=GF,B.clone=LL,B.cloneDeep=BL,B.cloneDeepWith=DL,B.cloneWith=FL,B.conformsTo=UL,B.deburr=Qm,B.defaultTo=_4,B.divide=j4,B.endsWith=HF,B.eq=Pr,B.escape=VF,B.escapeRegExp=WF,B.every=tL,B.find=rL,B.findIndex=Tm,B.findKey=vF,B.findLast=nL,B.findLastIndex=Em,B.findLastKey=gF,B.floor=q4,B.forEach=Im,B.forEachRight=Pm,B.forIn=mF,B.forInRight=yF,B.forOwn=_F,B.forOwnRight=bF,B.get=Jf,B.gt=$L,B.gte=GL,B.has=TF,B.hasIn=tc,B.head=Am,B.identity=Ke,B.includes=lL,B.indexOf=n5,B.inRange=jF,B.invoke=AF,B.isArguments=Qn,B.isArray=Mt,B.isArrayBuffer=jL,B.isArrayLike=We,B.isArrayLikeObject=be,B.isBoolean=qL,B.isBuffer=Tn,B.isDate=zL,B.isElement=HL,B.isEmpty=VL,B.isEqual=WL,B.isEqualWith=XL,B.isError=Zf,B.isFinite=KL,B.isFunction=nn,B.isInteger=Um,B.isLength=$a,B.isMap=$m,B.isMatch=YL,B.isMatchWith=ZL,B.isNaN=QL,B.isNative=JL,B.isNil=eF,B.isNull=tF,B.isNumber=Gm,B.isObject=ge,B.isObjectLike=ye,B.isPlainObject=Us,B.isRegExp=Qf,B.isSafeInteger=rF,B.isSet=jm,B.isString=Ga,B.isSymbol=nr,B.isTypedArray=Vi,B.isUndefined=nF,B.isWeakMap=iF,B.isWeakSet=sF,B.join=l5,B.kebabCase=XF,B.last=vr,B.lastIndexOf=u5,B.lowerCase=KF,B.lowerFirst=YF,B.lt=oF,B.lte=aF,B.max=z4,B.maxBy=H4,B.mean=V4,B.meanBy=W4,B.min=X4,B.minBy=K4,B.stubArray=oc,B.stubFalse=ac,B.stubObject=k4,B.stubString=L4,B.stubTrue=F4,B.multiply=Y4,B.nth=f5,B.noConflict=A4,B.noop=sc,B.now=Ba,B.pad=ZF,B.padEnd=QF,B.padStart=JF,B.parseInt=t4,B.random=qF,B.reduce=dL,B.reduceRight=pL,B.repeat=e4,B.replace=r4,B.result=MF,B.round=Z4,B.runInContext=J,B.sample=gL,B.size=_L,B.snakeCase=n4,B.some=bL,B.sortedIndex=m5,B.sortedIndexBy=y5,B.sortedIndexOf=_5,B.sortedLastIndex=b5,B.sortedLastIndexBy=x5,B.sortedLastIndexOf=w5,B.startCase=s4,B.startsWith=o4,B.subtract=Q4,B.sum=J4,B.sumBy=tB,B.template=a4,B.times=B4,B.toFinite=sn,B.toInteger=kt,B.toLength=zm,B.toLower=l4,B.toNumber=gr,B.toSafeInteger=lF,B.toString=Jt,B.toUpper=u4,B.trim=f4,B.trimEnd=c4,B.trimStart=h4,B.truncate=d4,B.unescape=p4,B.uniqueId=U4,B.upperCase=v4,B.upperFirst=ec,B.each=Im,B.eachRight=Pm,B.first=Am,ic(B,function(){var s={};return Gr(B,function(a,g){ee.call(B.prototype,g)||(s[g]=a)}),s}(),{chain:!1}),B.VERSION=n,fr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){B[s].placeholder=B}),fr(["drop","take"],function(s,a){Gt.prototype[s]=function(g){g=g===r?1:Ae(kt(g),0);var S=this.__filtered__&&!a?new Gt(this):this.clone();return S.__filtered__?S.__takeCount__=De(g,S.__takeCount__):S.__views__.push({size:De(g,k),type:s+(S.__dir__<0?"Right":"")}),S},Gt.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),fr(["filter","map","takeWhile"],function(s,a){var g=a+1,S=g==F||g==K;Gt.prototype[s]=function(N){var $=this.clone();return $.__iteratees__.push({iteratee:St(N,3),type:g}),$.__filtered__=$.__filtered__||S,$}}),fr(["head","last"],function(s,a){var g="take"+(a?"Right":"");Gt.prototype[s]=function(){return this[g](1).value()[0]}}),fr(["initial","tail"],function(s,a){var g="drop"+(a?"":"Right");Gt.prototype[s]=function(){return this.__filtered__?new Gt(this):this[g](1)}}),Gt.prototype.compact=function(){return this.filter(Ke)},Gt.prototype.find=function(s){return this.filter(s).head()},Gt.prototype.findLast=function(s){return this.reverse().find(s)},Gt.prototype.invokeMap=Bt(function(s,a){return typeof s=="function"?new Gt(this):this.map(function(g){return Ms(g,s,a)})}),Gt.prototype.reject=function(s){return this.filter(Ua(St(s)))},Gt.prototype.slice=function(s,a){s=kt(s);var g=this;return g.__filtered__&&(s>0||a<0)?new Gt(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),a!==r&&(a=kt(a),g=a<0?g.dropRight(-a):g.take(a-s)),g)},Gt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Gt.prototype.toArray=function(){return this.take(k)},Gr(Gt.prototype,function(s,a){var g=/^(?:filter|find|map|reject)|While$/.test(a),S=/^(?:head|last)$/.test(a),N=B[S?"take"+(a=="last"?"Right":""):a],$=S||/^find/.test(a);N&&(B.prototype[a]=function(){var H=this.__wrapped__,X=S?[1]:arguments,tt=H instanceof Gt,ut=X[0],ft=tt||Mt(H),ht=function(Ut){var zt=N.apply(B,gn([Ut],X));return S&&gt?zt[0]:zt};ft&&g&&typeof ut=="function"&&ut.length!=1&&(tt=ft=!1);var gt=this.__chain__,wt=!!this.__actions__.length,Ot=$&&!gt,Ft=tt&&!wt;if(!$&&ft){H=Ft?H:new Gt(this);var Ct=s.apply(H,X);return Ct.__actions__.push({func:La,args:[ht],thisArg:r}),new hr(Ct,gt)}return Ot&&Ft?s.apply(this,X):(Ct=this.thru(ht),Ot?S?Ct.value()[0]:Ct.value():Ct)})}),fr(["pop","push","shift","sort","splice","unshift"],function(s){var a=aa[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",S=/^(?:pop|shift)$/.test(s);B.prototype[s]=function(){var N=arguments;if(S&&!this.__chain__){var $=this.value();return a.apply(Mt($)?$:[],N)}return this[g](function(H){return a.apply(Mt(H)?H:[],N)})}}),Gr(Gt.prototype,function(s,a){var g=B[a];if(g){var S=g.name+"";ee.call(Gi,S)||(Gi[S]=[]),Gi[S].push({name:a,func:g})}}),Gi[Ca(r,y).name]=[{name:"wrapper",func:r}],Gt.prototype.clone=p3,Gt.prototype.reverse=v3,Gt.prototype.value=g3,B.prototype.at=H5,B.prototype.chain=V5,B.prototype.commit=W5,B.prototype.next=X5,B.prototype.plant=Y5,B.prototype.reverse=Z5,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=Q5,B.prototype.first=B.prototype.head,As&&(B.prototype[As]=K5),B},Di=WM();zn?((zn.exports=Di)._=Di,rf._=Di):Ne._=Di}).call(Ye)}(ta,ta.exports);var wv=ta.exports;const mN={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},Tv=Et.forwardRef((e,t)=>{const[r,n]=Et.useState([]),[,i]=Et.useState(0),[o,l]=Et.useState([]),[,u]=_t.useState(!1),[f,h]=aN({autoPlay:!1}),d=_t.useRef(null),p=_t.useRef(null),c=_t.useRef(mN),v=_t.useRef(),{tl:m,isDragging:_}=_t.useContext(ti),{frames:b,delays:y}=f,{src:w,startAt:T,endAt:x,frameStartAt:E,frameEndAt:I,loop:A,transformation:{width:O=0,height:L=0,x:R,y:C,animation:P,colorCorrection:M={}},pointerdown:F}=e,{temperatureFilter:q,sharpnessFilter:K,hueFilter:z,blurFilter:it,adjustmentFilter:W}=ys(M),{blurRadius:U=0}=M,k=.1;vN(w,h),mr(ke.PAUSE,Q=>{console.log("pause event",Q),d.current&&(d.current.stop(),c.current.isPlaying=!1)}),Et.useEffect(()=>{c.current&&d.current&&(_?(d.current.stop(),c.current.isPlaying=!1,c.current.isDragging=!0):c.current.isDragging=!1)},[_]),Et.useEffect(()=>{if(!el(b)){const Q=BP(b,pt=>{const{data:mt,width:xt,height:At}=pt,oe=new Uint8Array(mt);return zr.Texture.fromBuffer(oe,xt,At)}),et=Q.map((pt,mt)=>({texture:pt,time:y[mt]}));n(Q),l(et);let ot=0;y.forEach(pt=>{ot+=pt*10}),i(ot),c.current.totalDuration=ot,c.current.totalFrames=b.length}},[b,y]);const D=wv.debounce(Q=>{if(d.current){let et=Q===0?0:Q/k;et=isNaN(et)?0:et;const ot=c.current.totalFrames;et=et>ot?ot:et,et>=ot?(d.current.gotoAndStop(0),c.current.isPlaying=!1):(d.current.gotoAndPlay(et||0),c.current.isPlaying=!0)}},20),j=wv.debounce(()=>{d.current&&(d.current.stop(),c.current.isPlaying=!1)},50),Z=Q=>{if(d.current){let et=Q===0?0:Q/k;et=isNaN(et)?0:et;const ot=c.current.totalFrames;et=et>ot?ot:et,et>=ot?(d.current.gotoAndStop(0),c.current.isPlaying=!1):(d.current.gotoAndPlay(et||0),c.current.isPlaying=!0)}},Y=()=>{d.current&&(d.current.stop(),c.current.isPlaying=!1)},G=()=>{d.current&&(d.current.stop(),c.current.isPlaying=!1)},V=Q=>{var ot;const et=Q+((ot=v.current)==null?void 0:ot.time());d.current&&c.current.isDragging?(D(et),j(),c.current.isPlaying=!1):d.current&&!c.current.isPlaying&&(D(et),c.current.isPlaying=!0)},rt=()=>{u(!0)};return _t.useEffect(()=>{let Q=Te.context(()=>{});if(p.current&&m.current){const et={duration:Number(I)-Number(E),onStart:Z,onComplete:Y,onStartParams:[E,I],onCompleteParams:[],onInterrupt:G,onUpdate:V,onUpdateParams:[E,I]};v.current&&v.current.kill(),Q=Te.context(()=>{v.current=Te.from(p.current,et,E),m.current.add(v.current,T)})}return()=>{v.current&&(v.current.kill(),Te.killTweensOf(v.current)),Q.revert()}},[P,T,x,E,I]),Yt.jsx(ni,{...e,ref:t,ignoreTlForVideo:!0,isGif:!0,children:Yt.jsx(me.Container,{ref:p,children:r&&r.length>0&&Yt.jsx(xv,{x:R,y:C,width:O,height:L,animationSpeed:1,loop:A,textures:o,onComplete:rt,anchor:.5,forwardRef:d,interactive:!0,pointerdown:F,filters:[q,K,z,W,...U>0?[it]:[]]})})})});Tv.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiGifSprite"};var Ev={exports:{}};/*!
1960
+ }`;var Ft=ty(function(){return Kt($,wt+"return "+ht).apply(r,H)});if(Ft.source=ht,Zf(Ft))throw Ft;return Ft}function l4(s){return Jt(s).toLowerCase()}function u4(s){return Jt(s).toUpperCase()}function f4(s,a,g){if(s=Jt(s),s&&(g||a===r))return ug(s);if(!s||!(a=rr(a)))return s;var S=Rr(s),N=Rr(a),$=fg(S,N),H=cg(S,N)+1;return wn(S,$,H).join("")}function c4(s,a,g){if(s=Jt(s),s&&(g||a===r))return s.slice(0,dg(s)+1);if(!s||!(a=rr(a)))return s;var S=Rr(s),N=cg(S,Rr(a))+1;return wn(S,0,N).join("")}function h4(s,a,g){if(s=Jt(s),s&&(g||a===r))return s.replace(Yu,"");if(!s||!(a=rr(a)))return s;var S=Rr(s),N=fg(S,Rr(a));return wn(S,N).join("")}function d4(s,a){var g=R,S=C;if(ge(a)){var N="separator"in a?a.separator:N;g="length"in a?kt(a.length):g,S="omission"in a?rr(a.omission):S}s=Jt(s);var $=s.length;if(Fi(s)){var H=Rr(s);$=H.length}if(g>=$)return s;var K=g-Bi(S);if(K<1)return S;var tt=H?wn(H,0,K).join(""):s.slice(0,K);if(N===r)return tt+S;if(H&&(K+=tt.length-K),Qf(N)){if(s.slice(K).search(N)){var ut,ft=tt;for(N.global||(N=pf(N.source,Jt(Pv.exec(N))+"g")),N.lastIndex=0;ut=N.exec(ft);)var ht=ut.index;tt=tt.slice(0,ht===r?K:ht)}}else if(s.indexOf(rr(N),K)!=K){var gt=tt.lastIndexOf(N);gt>-1&&(tt=tt.slice(0,gt))}return tt+S}function p4(s){return s=Jt(s),s&&SN.test(s)?s.replace(Cv,qM):s}var v4=zi(function(s,a,g){return s+(g?" ":"")+a.toUpperCase()}),ec=em("toUpperCase");function Jm(s,a,g){return s=Jt(s),a=g?r:a,a===r?DM(s)?VM(s):RM(s):s.match(a)||[]}var ty=Bt(function(s,a){try{return tr(s,r,a)}catch(g){return Zf(g)?g:new It(g)}}),g4=en(function(s,a){return fr(a,function(g){g=qr(g),Jr(s,g,Kf(s[g],s))}),s});function m4(s){var a=s==null?0:s.length,g=St();return s=a?he(s,function(S){if(typeof S[1]!="function")throw new cr(l);return[g(S[0]),S[1]]}):[],Bt(function(S){for(var N=-1;++N<a;){var $=s[N];if(tr($[0],this,S))return tr($[1],this,S)}})}function y4(s){return q3(dr(s,p))}function rc(s){return function(){return s}}function _4(s,a){return s==null||s!==s?a:s}var b4=nm(),x4=nm(!0);function Ke(s){return s}function nc(s){return Mg(typeof s=="function"?s:dr(s,p))}function w4(s){return Lg(dr(s,p))}function T4(s,a){return Fg(s,dr(a,p))}var E4=Bt(function(s,a){return function(g){return Ms(g,s,a)}}),S4=Bt(function(s,a){return function(g){return Ms(s,g,a)}});function ic(s,a,g){var S=Ie(a),N=Ta(a,S);g==null&&!(ge(a)&&(N.length||!S.length))&&(g=a,a=s,s=this,N=Ta(a,Ie(a)));var $=!(ge(g)&&"chain"in g)||!!g.chain,H=nn(s);return fr(N,function(K){var tt=a[K];s[K]=tt,H&&(s.prototype[K]=function(){var ut=this.__chain__;if($||ut){var ft=s(this.__wrapped__),ht=ft.__actions__=Ve(this.__actions__);return ht.push({func:tt,args:arguments,thisArg:s}),ft.__chain__=ut,ft}return tt.apply(s,gn([this.value()],arguments))})}),s}function A4(){return Ne._===this&&(Ne._=QM),this}function sc(){}function O4(s){return s=kt(s),Bt(function(a){return Bg(a,s)})}var C4=Ff(he),R4=Ff(ig),I4=Ff(af);function ey(s){return qf(s)?lf(qr(s)):ok(s)}function P4(s){return function(a){return s==null?r:Kn(s,a)}}var N4=sm(),M4=sm(!0);function oc(){return[]}function ac(){return!1}function k4(){return{}}function L4(){return""}function F4(){return!0}function B4(s,a){if(s=kt(s),s<1||s>it)return[];var g=k,S=De(s,k);a=St(a),s-=k;for(var N=cf(S,a);++g<s;)a(g);return N}function D4(s){return Mt(s)?he(s,qr):nr(s)?[s]:Ve(xm(Jt(s)))}function U4(s){var a=++YM;return Jt(s)+a}var $4=Ra(function(s,a){return s+a},0),G4=Bf("ceil"),j4=Ra(function(s,a){return s/a},1),q4=Bf("floor");function z4(s){return s&&s.length?wa(s,Ke,wf):r}function H4(s,a){return s&&s.length?wa(s,St(a,2),wf):r}function V4(s){return ag(s,Ke)}function W4(s,a){return ag(s,St(a,2))}function X4(s){return s&&s.length?wa(s,Ke,Af):r}function K4(s,a){return s&&s.length?wa(s,St(a,2),Af):r}var Y4=Ra(function(s,a){return s*a},1),Z4=Bf("round"),Q4=Ra(function(s,a){return s-a},0);function J4(s){return s&&s.length?ff(s,Ke):0}function tB(s,a){return s&&s.length?ff(s,St(a,2)):0}return B.after=wL,B.ary=Nm,B.assign=uF,B.assignIn=Vm,B.assignInWith=ja,B.assignWith=fF,B.at=cF,B.before=Mm,B.bind=Kf,B.bindAll=g4,B.bindKey=km,B.castArray=kL,B.chain=Rm,B.chunk=qk,B.compact=zk,B.concat=Hk,B.cond=m4,B.conforms=y4,B.constant=rc,B.countBy=J5,B.create=hF,B.curry=Lm,B.curryRight=Fm,B.debounce=Bm,B.defaults=dF,B.defaultsDeep=pF,B.defer=TL,B.delay=EL,B.difference=Vk,B.differenceBy=Wk,B.differenceWith=Xk,B.drop=Kk,B.dropRight=Yk,B.dropRightWhile=Zk,B.dropWhile=Qk,B.fill=Jk,B.filter=eL,B.flatMap=iL,B.flatMapDeep=sL,B.flatMapDepth=oL,B.flatten=Sm,B.flattenDeep=t5,B.flattenDepth=e5,B.flip=SL,B.flow=b4,B.flowRight=x4,B.fromPairs=r5,B.functions=xF,B.functionsIn=wF,B.groupBy=aL,B.initial=i5,B.intersection=s5,B.intersectionBy=o5,B.intersectionWith=a5,B.invert=EF,B.invertBy=SF,B.invokeMap=uL,B.iteratee=nc,B.keyBy=fL,B.keys=Ie,B.keysIn=Xe,B.map=Fa,B.mapKeys=OF,B.mapValues=CF,B.matches=w4,B.matchesProperty=T4,B.memoize=Da,B.merge=RF,B.mergeWith=Wm,B.method=E4,B.methodOf=S4,B.mixin=ic,B.negate=Ua,B.nthArg=O4,B.omit=IF,B.omitBy=PF,B.once=AL,B.orderBy=cL,B.over=C4,B.overArgs=OL,B.overEvery=R4,B.overSome=I4,B.partial=Yf,B.partialRight=Dm,B.partition=hL,B.pick=NF,B.pickBy=Xm,B.property=ey,B.propertyOf=P4,B.pull=c5,B.pullAll=Om,B.pullAllBy=h5,B.pullAllWith=d5,B.pullAt=p5,B.range=N4,B.rangeRight=M4,B.rearg=CL,B.reject=vL,B.remove=v5,B.rest=RL,B.reverse=Wf,B.sampleSize=mL,B.set=kF,B.setWith=LF,B.shuffle=yL,B.slice=g5,B.sortBy=xL,B.sortedUniq=T5,B.sortedUniqBy=E5,B.split=i4,B.spread=IL,B.tail=S5,B.take=A5,B.takeRight=O5,B.takeRightWhile=C5,B.takeWhile=R5,B.tap=z5,B.throttle=PL,B.thru=La,B.toArray=qm,B.toPairs=Km,B.toPairsIn=Ym,B.toPath=D4,B.toPlainObject=Hm,B.transform=FF,B.unary=NL,B.union=I5,B.unionBy=P5,B.unionWith=N5,B.uniq=M5,B.uniqBy=k5,B.uniqWith=L5,B.unset=BF,B.unzip=Xf,B.unzipWith=Cm,B.update=DF,B.updateWith=UF,B.values=Wi,B.valuesIn=$F,B.without=F5,B.words=Jm,B.wrap=ML,B.xor=B5,B.xorBy=D5,B.xorWith=U5,B.zip=$5,B.zipObject=G5,B.zipObjectDeep=j5,B.zipWith=q5,B.entries=Km,B.entriesIn=Ym,B.extend=Vm,B.extendWith=ja,ic(B,B),B.add=$4,B.attempt=ty,B.camelCase=zF,B.capitalize=Zm,B.ceil=G4,B.clamp=GF,B.clone=LL,B.cloneDeep=BL,B.cloneDeepWith=DL,B.cloneWith=FL,B.conformsTo=UL,B.deburr=Qm,B.defaultTo=_4,B.divide=j4,B.endsWith=HF,B.eq=Pr,B.escape=VF,B.escapeRegExp=WF,B.every=tL,B.find=rL,B.findIndex=Tm,B.findKey=vF,B.findLast=nL,B.findLastIndex=Em,B.findLastKey=gF,B.floor=q4,B.forEach=Im,B.forEachRight=Pm,B.forIn=mF,B.forInRight=yF,B.forOwn=_F,B.forOwnRight=bF,B.get=Jf,B.gt=$L,B.gte=GL,B.has=TF,B.hasIn=tc,B.head=Am,B.identity=Ke,B.includes=lL,B.indexOf=n5,B.inRange=jF,B.invoke=AF,B.isArguments=Qn,B.isArray=Mt,B.isArrayBuffer=jL,B.isArrayLike=We,B.isArrayLikeObject=be,B.isBoolean=qL,B.isBuffer=Tn,B.isDate=zL,B.isElement=HL,B.isEmpty=VL,B.isEqual=WL,B.isEqualWith=XL,B.isError=Zf,B.isFinite=KL,B.isFunction=nn,B.isInteger=Um,B.isLength=$a,B.isMap=$m,B.isMatch=YL,B.isMatchWith=ZL,B.isNaN=QL,B.isNative=JL,B.isNil=eF,B.isNull=tF,B.isNumber=Gm,B.isObject=ge,B.isObjectLike=ye,B.isPlainObject=Us,B.isRegExp=Qf,B.isSafeInteger=rF,B.isSet=jm,B.isString=Ga,B.isSymbol=nr,B.isTypedArray=Vi,B.isUndefined=nF,B.isWeakMap=iF,B.isWeakSet=sF,B.join=l5,B.kebabCase=XF,B.last=vr,B.lastIndexOf=u5,B.lowerCase=KF,B.lowerFirst=YF,B.lt=oF,B.lte=aF,B.max=z4,B.maxBy=H4,B.mean=V4,B.meanBy=W4,B.min=X4,B.minBy=K4,B.stubArray=oc,B.stubFalse=ac,B.stubObject=k4,B.stubString=L4,B.stubTrue=F4,B.multiply=Y4,B.nth=f5,B.noConflict=A4,B.noop=sc,B.now=Ba,B.pad=ZF,B.padEnd=QF,B.padStart=JF,B.parseInt=t4,B.random=qF,B.reduce=dL,B.reduceRight=pL,B.repeat=e4,B.replace=r4,B.result=MF,B.round=Z4,B.runInContext=J,B.sample=gL,B.size=_L,B.snakeCase=n4,B.some=bL,B.sortedIndex=m5,B.sortedIndexBy=y5,B.sortedIndexOf=_5,B.sortedLastIndex=b5,B.sortedLastIndexBy=x5,B.sortedLastIndexOf=w5,B.startCase=s4,B.startsWith=o4,B.subtract=Q4,B.sum=J4,B.sumBy=tB,B.template=a4,B.times=B4,B.toFinite=sn,B.toInteger=kt,B.toLength=zm,B.toLower=l4,B.toNumber=gr,B.toSafeInteger=lF,B.toString=Jt,B.toUpper=u4,B.trim=f4,B.trimEnd=c4,B.trimStart=h4,B.truncate=d4,B.unescape=p4,B.uniqueId=U4,B.upperCase=v4,B.upperFirst=ec,B.each=Im,B.eachRight=Pm,B.first=Am,ic(B,function(){var s={};return Gr(B,function(a,g){ee.call(B.prototype,g)||(s[g]=a)}),s}(),{chain:!1}),B.VERSION=n,fr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){B[s].placeholder=B}),fr(["drop","take"],function(s,a){Gt.prototype[s]=function(g){g=g===r?1:Ae(kt(g),0);var S=this.__filtered__&&!a?new Gt(this):this.clone();return S.__filtered__?S.__takeCount__=De(g,S.__takeCount__):S.__views__.push({size:De(g,k),type:s+(S.__dir__<0?"Right":"")}),S},Gt.prototype[s+"Right"]=function(g){return this.reverse()[s](g).reverse()}}),fr(["filter","map","takeWhile"],function(s,a){var g=a+1,S=g==F||g==Y;Gt.prototype[s]=function(N){var $=this.clone();return $.__iteratees__.push({iteratee:St(N,3),type:g}),$.__filtered__=$.__filtered__||S,$}}),fr(["head","last"],function(s,a){var g="take"+(a?"Right":"");Gt.prototype[s]=function(){return this[g](1).value()[0]}}),fr(["initial","tail"],function(s,a){var g="drop"+(a?"":"Right");Gt.prototype[s]=function(){return this.__filtered__?new Gt(this):this[g](1)}}),Gt.prototype.compact=function(){return this.filter(Ke)},Gt.prototype.find=function(s){return this.filter(s).head()},Gt.prototype.findLast=function(s){return this.reverse().find(s)},Gt.prototype.invokeMap=Bt(function(s,a){return typeof s=="function"?new Gt(this):this.map(function(g){return Ms(g,s,a)})}),Gt.prototype.reject=function(s){return this.filter(Ua(St(s)))},Gt.prototype.slice=function(s,a){s=kt(s);var g=this;return g.__filtered__&&(s>0||a<0)?new Gt(g):(s<0?g=g.takeRight(-s):s&&(g=g.drop(s)),a!==r&&(a=kt(a),g=a<0?g.dropRight(-a):g.take(a-s)),g)},Gt.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},Gt.prototype.toArray=function(){return this.take(k)},Gr(Gt.prototype,function(s,a){var g=/^(?:filter|find|map|reject)|While$/.test(a),S=/^(?:head|last)$/.test(a),N=B[S?"take"+(a=="last"?"Right":""):a],$=S||/^find/.test(a);N&&(B.prototype[a]=function(){var H=this.__wrapped__,K=S?[1]:arguments,tt=H instanceof Gt,ut=K[0],ft=tt||Mt(H),ht=function(Ut){var zt=N.apply(B,gn([Ut],K));return S&&gt?zt[0]:zt};ft&&g&&typeof ut=="function"&&ut.length!=1&&(tt=ft=!1);var gt=this.__chain__,wt=!!this.__actions__.length,Ot=$&&!gt,Ft=tt&&!wt;if(!$&&ft){H=Ft?H:new Gt(this);var Ct=s.apply(H,K);return Ct.__actions__.push({func:La,args:[ht],thisArg:r}),new hr(Ct,gt)}return Ot&&Ft?s.apply(this,K):(Ct=this.thru(ht),Ot?S?Ct.value()[0]:Ct.value():Ct)})}),fr(["pop","push","shift","sort","splice","unshift"],function(s){var a=aa[s],g=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",S=/^(?:pop|shift)$/.test(s);B.prototype[s]=function(){var N=arguments;if(S&&!this.__chain__){var $=this.value();return a.apply(Mt($)?$:[],N)}return this[g](function(H){return a.apply(Mt(H)?H:[],N)})}}),Gr(Gt.prototype,function(s,a){var g=B[a];if(g){var S=g.name+"";ee.call(Gi,S)||(Gi[S]=[]),Gi[S].push({name:a,func:g})}}),Gi[Ca(r,y).name]=[{name:"wrapper",func:r}],Gt.prototype.clone=p3,Gt.prototype.reverse=v3,Gt.prototype.value=g3,B.prototype.at=H5,B.prototype.chain=V5,B.prototype.commit=W5,B.prototype.next=X5,B.prototype.plant=Y5,B.prototype.reverse=Z5,B.prototype.toJSON=B.prototype.valueOf=B.prototype.value=Q5,B.prototype.first=B.prototype.head,As&&(B.prototype[As]=K5),B},Di=WM();zn?((zn.exports=Di)._=Di,rf._=Di):Ne._=Di}).call(Ye)}(ta,ta.exports);var wv=ta.exports;const mN={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,totalFrames:0,totalDuration:0},Tv=Et.forwardRef((e,t)=>{const[r,n]=Et.useState([]),[,i]=Et.useState(0),[o,l]=Et.useState([]),[,u]=_t.useState(!1),[f,h]=aN({autoPlay:!1}),d=_t.useRef(null),p=_t.useRef(null),c=_t.useRef(mN),v=_t.useRef(),{tl:m,isDragging:_}=_t.useContext(ti),{frames:b,delays:y}=f,{src:w,startAt:T,endAt:x,frameStartAt:E,frameEndAt:I,loop:A,transformation:{width:O=0,height:L=0,x:R,y:C,animation:P,colorCorrection:M={}},pointerdown:F}=e,{temperatureFilter:q,sharpnessFilter:Y,hueFilter:z,blurFilter:it,adjustmentFilter:W}=ys(M),{blurRadius:U=0}=M,k=.1;vN(w,h),mr(ke.PAUSE,()=>{d.current&&(d.current.stop(),c.current.isPlaying=!1)}),Et.useEffect(()=>{c.current&&d.current&&(_?(d.current.stop(),c.current.isPlaying=!1,c.current.isDragging=!0):c.current.isDragging=!1)},[_]),Et.useEffect(()=>{if(!el(b)){const Q=BP(b,pt=>{const{data:mt,width:xt,height:At}=pt,oe=new Uint8Array(mt);return zr.Texture.fromBuffer(oe,xt,At)}),rt=Q.map((pt,mt)=>({texture:pt,time:y[mt]}));n(Q),l(rt);let ot=0;y.forEach(pt=>{ot+=pt*10}),i(ot),c.current.totalDuration=ot,c.current.totalFrames=b.length}},[b,y]);const D=wv.debounce(Q=>{if(d.current){let rt=Q===0?0:Q/k;rt=isNaN(rt)?0:rt;const ot=c.current.totalFrames;rt=rt>ot?ot:rt,rt>=ot?(d.current.gotoAndStop(0),c.current.isPlaying=!1):(d.current.gotoAndPlay(rt||0),c.current.isPlaying=!0)}},20),j=wv.debounce(()=>{d.current&&(d.current.stop(),c.current.isPlaying=!1)},50),Z=Q=>{if(d.current){let rt=Q===0?0:Q/k;rt=isNaN(rt)?0:rt;const ot=c.current.totalFrames;rt=rt>ot?ot:rt,rt>=ot?(d.current.gotoAndStop(0),c.current.isPlaying=!1):(d.current.gotoAndPlay(rt||0),c.current.isPlaying=!0)}},X=()=>{d.current&&(d.current.stop(),c.current.isPlaying=!1)},G=()=>{d.current&&(d.current.stop(),c.current.isPlaying=!1)},V=Q=>{var ot;const rt=Q+((ot=v.current)==null?void 0:ot.time());d.current&&c.current.isDragging?(D(rt),j(),c.current.isPlaying=!1):v.current&&d.current&&!c.current.isPlaying&&v.current.isActive()&&m.current.isActive()&&(D(rt),c.current.isPlaying=!0)},et=()=>{u(!0)};return _t.useEffect(()=>{let Q=Te.context(()=>{});if(p.current&&m.current){const rt={duration:Number(I)-Number(E),onStart:Z,onComplete:X,onStartParams:[E,I],onCompleteParams:[],onInterrupt:G,onUpdate:V,onUpdateParams:[E,I]};v.current&&v.current.kill(),Q=Te.context(()=>{v.current=Te.from(p.current,rt,E),m.current.add(v.current,T)})}return()=>{console.log("PixiGif Sprite Component cleanup"),v.current&&(v.current.kill(),Te.killTweensOf(v.current)),Q.revert()}},[P,T,x,E,I]),Yt.jsx(ni,{...e,ref:t,ignoreTlForVideo:!0,isGif:!0,children:Yt.jsx(me.Container,{ref:p,children:r&&r.length>0&&Yt.jsx(xv,{x:R,y:C,width:O,height:L,animationSpeed:1,loop:A,textures:o,onComplete:et,anchor:.5,forwardRef:d,interactive:!0,pointerdown:F,filters:[q,Y,z,W,...U>0?[it]:[]]})})})});Tv.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiGifSprite"};var Ev={exports:{}};/*!
1961
1961
  * Quill Editor v1.3.7
1962
1962
  * https://quilljs.com/
1963
1963
  * Copyright (c) 2014, Jason Chen
1964
1964
  * Copyright (c) 2013, salesforce.com
1965
1965
  */(function(e,t){(function(n,i){e.exports=i()})(typeof self<"u"?self:Ye,function(){return function(r){var n={};function i(o){if(n[o])return n[o].exports;var l=n[o]={i:o,l:!1,exports:{}};return r[o].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=r,i.c=n,i.d=function(o,l,u){i.o(o,l)||Object.defineProperty(o,l,{configurable:!1,enumerable:!0,get:u})},i.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(l,"a",l),l},i.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},i.p="",i(i.s=109)}([function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(17),l=i(18),u=i(19),f=i(45),h=i(46),d=i(47),p=i(48),c=i(49),v=i(12),m=i(32),_=i(33),b=i(31),y=i(1),w={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:o.default,Format:l.default,Leaf:u.default,Embed:p.default,Scroll:f.default,Block:d.default,Inline:h.default,Text:c.default,Attributor:{Attribute:v.default,Class:m.default,Style:_.default,Store:b.default}};n.default=w},function(r,n,i){var o=this&&this.__extends||function(){var b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,w){y.__proto__=w}||function(y,w){for(var T in w)w.hasOwnProperty(T)&&(y[T]=w[T])};return function(y,w){b(y,w);function T(){this.constructor=y}y.prototype=w===null?Object.create(w):(T.prototype=w.prototype,new T)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=function(b){o(y,b);function y(w){var T=this;return w="[Parchment] "+w,T=b.call(this,w)||this,T.message=w,T.name=T.constructor.name,T}return y}(Error);n.ParchmentError=l;var u={},f={},h={},d={};n.DATA_KEY="__blot";var p;(function(b){b[b.TYPE=3]="TYPE",b[b.LEVEL=12]="LEVEL",b[b.ATTRIBUTE=13]="ATTRIBUTE",b[b.BLOT=14]="BLOT",b[b.INLINE=7]="INLINE",b[b.BLOCK=11]="BLOCK",b[b.BLOCK_BLOT=10]="BLOCK_BLOT",b[b.INLINE_BLOT=6]="INLINE_BLOT",b[b.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",b[b.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",b[b.ANY=15]="ANY"})(p=n.Scope||(n.Scope={}));function c(b,y){var w=m(b);if(w==null)throw new l("Unable to create "+b+" blot");var T=w,x=b instanceof Node||b.nodeType===Node.TEXT_NODE?b:T.create(y);return new T(x,y)}n.create=c;function v(b,y){return y===void 0&&(y=!1),b==null?null:b[n.DATA_KEY]!=null?b[n.DATA_KEY].blot:y?v(b.parentNode,y):null}n.find=v;function m(b,y){y===void 0&&(y=p.ANY);var w;if(typeof b=="string")w=d[b]||u[b];else if(b instanceof Text||b.nodeType===Node.TEXT_NODE)w=d.text;else if(typeof b=="number")b&p.LEVEL&p.BLOCK?w=d.block:b&p.LEVEL&p.INLINE&&(w=d.inline);else if(b instanceof HTMLElement){var T=(b.getAttribute("class")||"").split(/\s+/);for(var x in T)if(w=f[T[x]],w)break;w=w||h[b.tagName]}return w==null?null:y&p.LEVEL&w.scope&&y&p.TYPE&w.scope?w:null}n.query=m;function _(){for(var b=[],y=0;y<arguments.length;y++)b[y]=arguments[y];if(b.length>1)return b.map(function(x){return _(x)});var w=b[0];if(typeof w.blotName!="string"&&typeof w.attrName!="string")throw new l("Invalid definition");if(w.blotName==="abstract")throw new l("Cannot register abstract class");if(d[w.blotName||w.attrName]=w,typeof w.keyName=="string")u[w.keyName]=w;else if(w.className!=null&&(f[w.className]=w),w.tagName!=null){Array.isArray(w.tagName)?w.tagName=w.tagName.map(function(x){return x.toUpperCase()}):w.tagName=w.tagName.toUpperCase();var T=Array.isArray(w.tagName)?w.tagName:[w.tagName];T.forEach(function(x){(h[x]==null||w.className==null)&&(h[x]=w)})}return w}n.register=_},function(r,n,i){var o=i(51),l=i(11),u=i(3),f=i(20),h=String.fromCharCode(0),d=function(p){Array.isArray(p)?this.ops=p:p!=null&&Array.isArray(p.ops)?this.ops=p.ops:this.ops=[]};d.prototype.insert=function(p,c){var v={};return p.length===0?this:(v.insert=p,c!=null&&typeof c=="object"&&Object.keys(c).length>0&&(v.attributes=c),this.push(v))},d.prototype.delete=function(p){return p<=0?this:this.push({delete:p})},d.prototype.retain=function(p,c){if(p<=0)return this;var v={retain:p};return c!=null&&typeof c=="object"&&Object.keys(c).length>0&&(v.attributes=c),this.push(v)},d.prototype.push=function(p){var c=this.ops.length,v=this.ops[c-1];if(p=u(!0,{},p),typeof v=="object"){if(typeof p.delete=="number"&&typeof v.delete=="number")return this.ops[c-1]={delete:v.delete+p.delete},this;if(typeof v.delete=="number"&&p.insert!=null&&(c-=1,v=this.ops[c-1],typeof v!="object"))return this.ops.unshift(p),this;if(l(p.attributes,v.attributes)){if(typeof p.insert=="string"&&typeof v.insert=="string")return this.ops[c-1]={insert:v.insert+p.insert},typeof p.attributes=="object"&&(this.ops[c-1].attributes=p.attributes),this;if(typeof p.retain=="number"&&typeof v.retain=="number")return this.ops[c-1]={retain:v.retain+p.retain},typeof p.attributes=="object"&&(this.ops[c-1].attributes=p.attributes),this}}return c===this.ops.length?this.ops.push(p):this.ops.splice(c,0,p),this},d.prototype.chop=function(){var p=this.ops[this.ops.length-1];return p&&p.retain&&!p.attributes&&this.ops.pop(),this},d.prototype.filter=function(p){return this.ops.filter(p)},d.prototype.forEach=function(p){this.ops.forEach(p)},d.prototype.map=function(p){return this.ops.map(p)},d.prototype.partition=function(p){var c=[],v=[];return this.forEach(function(m){var _=p(m)?c:v;_.push(m)}),[c,v]},d.prototype.reduce=function(p,c){return this.ops.reduce(p,c)},d.prototype.changeLength=function(){return this.reduce(function(p,c){return c.insert?p+f.length(c):c.delete?p-c.delete:p},0)},d.prototype.length=function(){return this.reduce(function(p,c){return p+f.length(c)},0)},d.prototype.slice=function(p,c){p=p||0,typeof c!="number"&&(c=1/0);for(var v=[],m=f.iterator(this.ops),_=0;_<c&&m.hasNext();){var b;_<p?b=m.next(p-_):(b=m.next(c-_),v.push(b)),_+=f.length(b)}return new d(v)},d.prototype.compose=function(p){var c=f.iterator(this.ops),v=f.iterator(p.ops),m=[],_=v.peek();if(_!=null&&typeof _.retain=="number"&&_.attributes==null){for(var b=_.retain;c.peekType()==="insert"&&c.peekLength()<=b;)b-=c.peekLength(),m.push(c.next());_.retain-b>0&&v.next(_.retain-b)}for(var y=new d(m);c.hasNext()||v.hasNext();)if(v.peekType()==="insert")y.push(v.next());else if(c.peekType()==="delete")y.push(c.next());else{var w=Math.min(c.peekLength(),v.peekLength()),T=c.next(w),x=v.next(w);if(typeof x.retain=="number"){var E={};typeof T.retain=="number"?E.retain=w:E.insert=T.insert;var I=f.attributes.compose(T.attributes,x.attributes,typeof T.retain=="number");if(I&&(E.attributes=I),y.push(E),!v.hasNext()&&l(y.ops[y.ops.length-1],E)){var A=new d(c.rest());return y.concat(A).chop()}}else typeof x.delete=="number"&&typeof T.retain=="number"&&y.push(x)}return y.chop()},d.prototype.concat=function(p){var c=new d(this.ops.slice());return p.ops.length>0&&(c.push(p.ops[0]),c.ops=c.ops.concat(p.ops.slice(1))),c},d.prototype.diff=function(p,c){if(this.ops===p.ops)return new d;var v=[this,p].map(function(w){return w.map(function(T){if(T.insert!=null)return typeof T.insert=="string"?T.insert:h;var x=w===p?"on":"with";throw new Error("diff() called "+x+" non-document")}).join("")}),m=new d,_=o(v[0],v[1],c),b=f.iterator(this.ops),y=f.iterator(p.ops);return _.forEach(function(w){for(var T=w[1].length;T>0;){var x=0;switch(w[0]){case o.INSERT:x=Math.min(y.peekLength(),T),m.push(y.next(x));break;case o.DELETE:x=Math.min(T,b.peekLength()),b.next(x),m.delete(x);break;case o.EQUAL:x=Math.min(b.peekLength(),y.peekLength(),T);var E=b.next(x),I=y.next(x);l(E.insert,I.insert)?m.retain(x,f.attributes.diff(E.attributes,I.attributes)):m.push(I).delete(x);break}T-=x}}),m.chop()},d.prototype.eachLine=function(p,c){c=c||`
1966
- `;for(var v=f.iterator(this.ops),m=new d,_=0;v.hasNext();){if(v.peekType()!=="insert")return;var b=v.peek(),y=f.length(b)-v.peekLength(),w=typeof b.insert=="string"?b.insert.indexOf(c,y)-y:-1;if(w<0)m.push(v.next());else if(w>0)m.push(v.next(w));else{if(p(m,v.next(1).attributes||{},_)===!1)return;_+=1,m=new d}}m.length()>0&&p(m,{},_)},d.prototype.transform=function(p,c){if(c=!!c,typeof p=="number")return this.transformPosition(p,c);for(var v=f.iterator(this.ops),m=f.iterator(p.ops),_=new d;v.hasNext()||m.hasNext();)if(v.peekType()==="insert"&&(c||m.peekType()!=="insert"))_.retain(f.length(v.next()));else if(m.peekType()==="insert")_.push(m.next());else{var b=Math.min(v.peekLength(),m.peekLength()),y=v.next(b),w=m.next(b);if(y.delete)continue;w.delete?_.push(w):_.retain(b,f.attributes.transform(y.attributes,w.attributes,c))}return _.chop()},d.prototype.transformPosition=function(p,c){c=!!c;for(var v=f.iterator(this.ops),m=0;v.hasNext()&&m<=p;){var _=v.peekLength(),b=v.peekType();if(v.next(),b==="delete"){p-=Math.min(_,p-m);continue}else b==="insert"&&(m<p||!c)&&(p+=_);m+=_}return p},r.exports=d},function(r,n){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=function(v){return typeof Array.isArray=="function"?Array.isArray(v):o.call(v)==="[object Array]"},h=function(v){if(!v||o.call(v)!=="[object Object]")return!1;var m=i.call(v,"constructor"),_=v.constructor&&v.constructor.prototype&&i.call(v.constructor.prototype,"isPrototypeOf");if(v.constructor&&!m&&!_)return!1;var b;for(b in v);return typeof b>"u"||i.call(v,b)},d=function(v,m){l&&m.name==="__proto__"?l(v,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):v[m.name]=m.newValue},p=function(v,m){if(m==="__proto__")if(i.call(v,m)){if(u)return u(v,m).value}else return;return v[m]};r.exports=function c(){var v,m,_,b,y,w,T=arguments[0],x=1,E=arguments.length,I=!1;for(typeof T=="boolean"&&(I=T,T=arguments[1]||{},x=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});x<E;++x)if(v=arguments[x],v!=null)for(m in v)_=p(T,m),b=p(v,m),T!==b&&(I&&b&&(h(b)||(y=f(b)))?(y?(y=!1,w=_&&f(_)?_:[]):w=_&&h(_)?_:{},d(T,{name:m,newValue:c(I,w,b)})):typeof b<"u"&&d(T,{name:m,newValue:b}));return T}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BlockEmbed=n.bubbleFormats=void 0;var o=function(){function C(P,M){for(var F=0;F<M.length;F++){var q=M[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(P,q.key,q)}}return function(P,M,F){return M&&C(P.prototype,M),F&&C(P,F),P}}(),l=function C(P,M,F){P===null&&(P=Function.prototype);var q=Object.getOwnPropertyDescriptor(P,M);if(q===void 0){var K=Object.getPrototypeOf(P);return K===null?void 0:C(K,M,F)}else{if("value"in q)return q.value;var z=q.get;return z===void 0?void 0:z.call(F)}},u=i(3),f=T(u),h=i(2),d=T(h),p=i(0),c=T(p),v=i(16),m=T(v),_=i(6),b=T(_),y=i(7),w=T(y);function T(C){return C&&C.__esModule?C:{default:C}}function x(C,P){if(!(C instanceof P))throw new TypeError("Cannot call a class as a function")}function E(C,P){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:C}function I(C,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);C.prototype=Object.create(P&&P.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(C,P):C.__proto__=P)}var A=1,O=function(C){I(P,C);function P(){return x(this,P),E(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return o(P,[{key:"attach",value:function(){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new d.default().insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(F,q){var K=c.default.query(F,c.default.Scope.BLOCK_ATTRIBUTE);K!=null&&this.attributes.attribute(K,q)}},{key:"formatAt",value:function(F,q,K,z){this.format(K,z)}},{key:"insertAt",value:function(F,q,K){if(typeof q=="string"&&q.endsWith(`
1967
- `)){var z=c.default.create(L.blotName);this.parent.insertBefore(z,F===0?this:this.next),z.insertAt(0,q.slice(0,-1))}else l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertAt",this).call(this,F,q,K)}}]),P}(c.default.Embed);O.scope=c.default.Scope.BLOCK_BLOT;var L=function(C){I(P,C);function P(M){x(this,P);var F=E(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,M));return F.cache={},F}return o(P,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(c.default.Leaf).reduce(function(F,q){return q.length()===0?F:F.insert(q.value(),R(q))},new d.default).insert(`
1968
- `,R(this))),this.cache.delta}},{key:"deleteAt",value:function(F,q){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"deleteAt",this).call(this,F,q),this.cache={}}},{key:"formatAt",value:function(F,q,K,z){q<=0||(c.default.query(K,c.default.Scope.BLOCK)?F+q===this.length()&&this.format(K,z):l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"formatAt",this).call(this,F,Math.min(q,this.length()-F-1),K,z),this.cache={})}},{key:"insertAt",value:function(F,q,K){if(K!=null)return l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertAt",this).call(this,F,q,K);if(q.length!==0){var z=q.split(`
1969
- `),it=z.shift();it.length>0&&(F<this.length()-1||this.children.tail==null?l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertAt",this).call(this,Math.min(F,this.length()-1),it):this.children.tail.insertAt(this.children.tail.length(),it),this.cache={});var W=this;z.reduce(function(U,k){return W=W.split(U,!0),W.insertAt(0,k),k.length},F+it.length)}}},{key:"insertBefore",value:function(F,q){var K=this.children.head;l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertBefore",this).call(this,F,q),K instanceof m.default&&K.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"length",this).call(this)+A),this.cache.length}},{key:"moveChildren",value:function(F,q){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"moveChildren",this).call(this,F,q),this.cache={}}},{key:"optimize",value:function(F){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,F),this.cache={}}},{key:"path",value:function(F){return l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"path",this).call(this,F,!0)}},{key:"removeChild",value:function(F){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"removeChild",this).call(this,F),this.cache={}}},{key:"split",value:function(F){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(q&&(F===0||F>=this.length()-A)){var K=this.clone();return F===0?(this.parent.insertBefore(K,this),this):(this.parent.insertBefore(K,this.next),K)}else{var z=l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"split",this).call(this,F,q);return this.cache={},z}}}]),P}(c.default.Block);L.blotName="block",L.tagName="P",L.defaultChild="break",L.allowedChildren=[b.default,c.default.Embed,w.default];function R(C){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(P=(0,f.default)(P,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?P:R(C.parent,P)}n.bubbleFormats=R,n.BlockEmbed=O,n.default=L},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.overload=n.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},l=function(){function W(U,k){var D=[],j=!0,Z=!1,Y=void 0;try{for(var G=U[Symbol.iterator](),V;!(j=(V=G.next()).done)&&(D.push(V.value),!(k&&D.length===k));j=!0);}catch(rt){Z=!0,Y=rt}finally{try{!j&&G.return&&G.return()}finally{if(Z)throw Y}}return D}return function(U,k){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return W(U,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function W(U,k){for(var D=0;D<k.length;D++){var j=k[D];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(U,j.key,j)}}return function(U,k,D){return k&&W(U.prototype,k),D&&W(U,D),U}}();i(50);var f=i(2),h=R(f),d=i(14),p=R(d),c=i(8),v=R(c),m=i(9),_=R(m),b=i(0),y=R(b),w=i(15),T=R(w),x=i(3),E=R(x),I=i(10),A=R(I),O=i(34),L=R(O);function R(W){return W&&W.__esModule?W:{default:W}}function C(W,U,k){return U in W?Object.defineProperty(W,U,{value:k,enumerable:!0,configurable:!0,writable:!0}):W[U]=k,W}function P(W,U){if(!(W instanceof U))throw new TypeError("Cannot call a class as a function")}var M=(0,A.default)("quill"),F=function(){u(W,null,[{key:"debug",value:function(k){k===!0&&(k="log"),A.default.level(k)}},{key:"find",value:function(k){return k.__quill||y.default.find(k)}},{key:"import",value:function(k){return this.imports[k]==null&&M.error("Cannot import "+k+". Are you sure it was registered?"),this.imports[k]}},{key:"register",value:function(k,D){var j=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof k!="string"){var Y=k.attrName||k.blotName;typeof Y=="string"?this.register("formats/"+Y,k,D):Object.keys(k).forEach(function(G){j.register(G,k[G],D)})}else this.imports[k]!=null&&!Z&&M.warn("Overwriting "+k+" with",D),this.imports[k]=D,(k.startsWith("blots/")||k.startsWith("formats/"))&&D.blotName!=="abstract"?y.default.register(D):k.startsWith("modules")&&typeof D.register=="function"&&D.register()}}]);function W(U){var k=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(P(this,W),this.options=q(U,D),this.container=this.options.container,this.container==null)return M.error("Invalid Quill container",U);this.options.debug&&W.debug(this.options.debug);var j=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new v.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new p.default(this.scroll),this.selection=new T.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(v.default.events.EDITOR_CHANGE,function(Y){Y===v.default.events.TEXT_CHANGE&&k.root.classList.toggle("ql-blank",k.editor.isBlank())}),this.emitter.on(v.default.events.SCROLL_UPDATE,function(Y,G){var V=k.selection.lastRange,rt=V&&V.length===0?V.index:void 0;K.call(k,function(){return k.editor.update(null,G,rt)},Y)});var Z=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+j+"<p><br></p></div>");this.setContents(Z),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return u(W,[{key:"addContainer",value:function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof k=="string"){var j=k;k=document.createElement("div"),k.classList.add(j)}return this.container.insertBefore(k,D),k}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(k,D,j){var Z=this,Y=z(k,D,j),G=l(Y,4);return k=G[0],D=G[1],j=G[3],K.call(this,function(){return Z.editor.deleteText(k,D)},j,k,-1*D)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(k),this.container.classList.toggle("ql-disabled",!k)}},{key:"focus",value:function(){var k=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=k,this.scrollIntoView()}},{key:"format",value:function(k,D){var j=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;return K.call(this,function(){var Y=j.getSelection(!0),G=new h.default;if(Y==null)return G;if(y.default.query(k,y.default.Scope.BLOCK))G=j.editor.formatLine(Y.index,Y.length,C({},k,D));else{if(Y.length===0)return j.selection.format(k,D),G;G=j.editor.formatText(Y.index,Y.length,C({},k,D))}return j.setSelection(Y,v.default.sources.SILENT),G},Z)}},{key:"formatLine",value:function(k,D,j,Z,Y){var G=this,V=void 0,rt=z(k,D,j,Z,Y),Q=l(rt,4);return k=Q[0],D=Q[1],V=Q[2],Y=Q[3],K.call(this,function(){return G.editor.formatLine(k,D,V)},Y,k,0)}},{key:"formatText",value:function(k,D,j,Z,Y){var G=this,V=void 0,rt=z(k,D,j,Z,Y),Q=l(rt,4);return k=Q[0],D=Q[1],V=Q[2],Y=Q[3],K.call(this,function(){return G.editor.formatText(k,D,V)},Y,k,0)}},{key:"getBounds",value:function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=void 0;typeof k=="number"?j=this.selection.getBounds(k,D):j=this.selection.getBounds(k.index,k.length);var Z=this.container.getBoundingClientRect();return{bottom:j.bottom-Z.top,height:j.height,left:j.left-Z.left,right:j.right-Z.left,top:j.top-Z.top,width:j.width}}},{key:"getContents",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,j=z(k,D),Z=l(j,2);return k=Z[0],D=Z[1],this.editor.getContents(k,D)}},{key:"getFormat",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="number"?this.editor.getFormat(k,D):this.editor.getFormat(k.index,k.length)}},{key:"getIndex",value:function(k){return k.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(k){return this.scroll.leaf(k)}},{key:"getLine",value:function(k){return this.scroll.line(k)}},{key:"getLines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof k!="number"?this.scroll.lines(k.index,k.length):this.scroll.lines(k,D)}},{key:"getModule",value:function(k){return this.theme.modules[k]}},{key:"getSelection",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return k&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,j=z(k,D),Z=l(j,2);return k=Z[0],D=Z[1],this.editor.getText(k,D)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(k,D,j){var Z=this,Y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:W.sources.API;return K.call(this,function(){return Z.editor.insertEmbed(k,D,j)},Y,k)}},{key:"insertText",value:function(k,D,j,Z,Y){var G=this,V=void 0,rt=z(k,0,j,Z,Y),Q=l(rt,4);return k=Q[0],V=Q[2],Y=Q[3],K.call(this,function(){return G.editor.insertText(k,D,V)},Y,k,D.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(k,D,j){this.clipboard.dangerouslyPasteHTML(k,D,j)}},{key:"removeFormat",value:function(k,D,j){var Z=this,Y=z(k,D,j),G=l(Y,4);return k=G[0],D=G[1],j=G[3],K.call(this,function(){return Z.editor.removeFormat(k,D)},j,k)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(k){var D=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API;return K.call(this,function(){k=new h.default(k);var Z=D.getLength(),Y=D.editor.deleteText(0,Z),G=D.editor.applyDelta(k),V=G.ops[G.ops.length-1];V!=null&&typeof V.insert=="string"&&V.insert[V.insert.length-1]===`
1970
- `&&(D.editor.deleteText(D.getLength()-1,1),G.delete(1));var rt=Y.compose(G);return rt},j)}},{key:"setSelection",value:function(k,D,j){if(k==null)this.selection.setRange(null,D||W.sources.API);else{var Z=z(k,D,j),Y=l(Z,4);k=Y[0],D=Y[1],j=Y[3],this.selection.setRange(new w.Range(k,D),j),j!==v.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API,j=new h.default().insert(k);return this.setContents(j,D)}},{key:"update",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,D=this.scroll.update(k);return this.selection.update(k),D}},{key:"updateContents",value:function(k){var D=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API;return K.call(this,function(){return k=new h.default(k),D.editor.applyDelta(k,j)},j,!0)}}]),W}();F.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},F.events=v.default.events,F.sources=v.default.sources,F.version="1.3.7",F.imports={delta:h.default,parchment:y.default,"core/module":_.default,"core/theme":L.default};function q(W,U){if(U=(0,E.default)(!0,{container:W,modules:{clipboard:!0,keyboard:!0,history:!0}},U),!U.theme||U.theme===F.DEFAULTS.theme)U.theme=L.default;else if(U.theme=F.import("themes/"+U.theme),U.theme==null)throw new Error("Invalid theme "+U.theme+". Did you register it?");var k=(0,E.default)(!0,{},U.theme.DEFAULTS);[k,U].forEach(function(Z){Z.modules=Z.modules||{},Object.keys(Z.modules).forEach(function(Y){Z.modules[Y]===!0&&(Z.modules[Y]={})})});var D=Object.keys(k.modules).concat(Object.keys(U.modules)),j=D.reduce(function(Z,Y){var G=F.import("modules/"+Y);return G==null?M.error("Cannot load "+Y+" module. Are you sure you registered it?"):Z[Y]=G.DEFAULTS||{},Z},{});return U.modules!=null&&U.modules.toolbar&&U.modules.toolbar.constructor!==Object&&(U.modules.toolbar={container:U.modules.toolbar}),U=(0,E.default)(!0,{},F.DEFAULTS,{modules:j},k,U),["bounds","container","scrollingContainer"].forEach(function(Z){typeof U[Z]=="string"&&(U[Z]=document.querySelector(U[Z]))}),U.modules=Object.keys(U.modules).reduce(function(Z,Y){return U.modules[Y]&&(Z[Y]=U.modules[Y]),Z},{}),U}function K(W,U,k,D){if(this.options.strict&&!this.isEnabled()&&U===v.default.sources.USER)return new h.default;var j=k==null?null:this.getSelection(),Z=this.editor.delta,Y=W();if(j!=null&&(k===!0&&(k=j.index),D==null?j=it(j,Y,U):D!==0&&(j=it(j,k,D,U)),this.setSelection(j,v.default.sources.SILENT)),Y.length()>0){var G,V=[v.default.events.TEXT_CHANGE,Y,Z,U];if((G=this.emitter).emit.apply(G,[v.default.events.EDITOR_CHANGE].concat(V)),U!==v.default.sources.SILENT){var rt;(rt=this.emitter).emit.apply(rt,V)}}return Y}function z(W,U,k,D,j){var Z={};return typeof W.index=="number"&&typeof W.length=="number"?typeof U!="number"?(j=D,D=k,k=U,U=W.length,W=W.index):(U=W.length,W=W.index):typeof U!="number"&&(j=D,D=k,k=U,U=0),(typeof k>"u"?"undefined":o(k))==="object"?(Z=k,j=D):typeof k=="string"&&(D!=null?Z[k]=D:j=k),j=j||v.default.sources.API,[W,U,Z,j]}function it(W,U,k,D){if(W==null)return null;var j=void 0,Z=void 0;if(U instanceof h.default){var Y=[W.index,W.index+W.length].map(function(Q){return U.transformPosition(Q,D!==v.default.sources.USER)}),G=l(Y,2);j=G[0],Z=G[1]}else{var V=[W.index,W.index+W.length].map(function(Q){return Q<U||Q===U&&D===v.default.sources.USER?Q:k>=0?Q+k:Math.max(U,Q+k)}),rt=l(V,2);j=rt[0],Z=rt[1]}return new w.Range(j,Z-j)}n.expandConfig=q,n.overload=z,n.default=F},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function b(y,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,w,T){return w&&b(y.prototype,w),T&&b(y,T),y}}(),l=function b(y,w,T){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,w);if(x===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:b(E,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(7),f=p(u),h=i(0),d=p(h);function p(b){return b&&b.__esModule?b:{default:b}}function c(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function v(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function m(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var _=function(b){m(y,b);function y(){return c(this,y),v(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"formatAt",value:function(T,x,E,I){if(y.compare(this.statics.blotName,E)<0&&d.default.query(E,d.default.Scope.BLOT)){var A=this.isolate(T,x);I&&A.wrap(E,I)}else l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,T,x,E,I)}},{key:"optimize",value:function(T){if(l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,T),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var x=this.parent.isolate(this.offset(),this.length());this.moveChildren(x),x.wrap(this)}}}],[{key:"compare",value:function(T,x){var E=y.order.indexOf(T),I=y.order.indexOf(x);return E>=0||I>=0?E-I:T===x?0:T<x?-1:1}}]),y}(d.default.Inline);_.allowedChildren=[_,d.default.Embed,f.default],_.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default.Text);n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function w(T,x){for(var E=0;E<x.length;E++){var I=x[E];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,I.key,I)}}return function(T,x,E){return x&&w(T.prototype,x),E&&w(T,E),T}}(),l=function w(T,x,E){T===null&&(T=Function.prototype);var I=Object.getOwnPropertyDescriptor(T,x);if(I===void 0){var A=Object.getPrototypeOf(T);return A===null?void 0:w(A,x,E)}else{if("value"in I)return I.value;var O=I.get;return O===void 0?void 0:O.call(E)}},u=i(54),f=p(u),h=i(10),d=p(h);function p(w){return w&&w.__esModule?w:{default:w}}function c(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function v(w,T){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:w}function m(w,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(w,T):w.__proto__=T)}var _=(0,d.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(w){document.addEventListener(w,function(){for(var T=arguments.length,x=Array(T),E=0;E<T;E++)x[E]=arguments[E];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(I){if(I.__quill&&I.__quill.emitter){var A;(A=I.__quill.emitter).handleDOM.apply(A,x)}})})});var y=function(w){m(T,w);function T(){c(this,T);var x=v(this,(T.__proto__||Object.getPrototypeOf(T)).call(this));return x.listeners={},x.on("error",_.error),x}return o(T,[{key:"emit",value:function(){_.log.apply(_,arguments),l(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(E){for(var I=arguments.length,A=Array(I>1?I-1:0),O=1;O<I;O++)A[O-1]=arguments[O];(this.listeners[E.type]||[]).forEach(function(L){var R=L.node,C=L.handler;(E.target===R||R.contains(E.target))&&C.apply(void 0,[E].concat(A))})}},{key:"listenDOM",value:function(E,I,A){this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push({node:I,handler:A})}}]),T}(f.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},n.default=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});function o(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}var l=function u(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,u),this.quill=f,this.options=h};l.DEFAULTS={},n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=["error","warn","log","info"],l="warn";function u(h){if(o.indexOf(h)<=o.indexOf(l)){for(var d,p=arguments.length,c=Array(p>1?p-1:0),v=1;v<p;v++)c[v-1]=arguments[v];(d=console)[h].apply(d,c)}}function f(h){return o.reduce(function(d,p){return d[p]=u.bind(console,p,h),d},{})}u.level=f.level=function(h){l=h},n.default=f},function(r,n,i){var o=Array.prototype.slice,l=i(52),u=i(53),f=r.exports=function(c,v,m){return m||(m={}),c===v?!0:c instanceof Date&&v instanceof Date?c.getTime()===v.getTime():!c||!v||typeof c!="object"&&typeof v!="object"?m.strict?c===v:c==v:p(c,v,m)};function h(c){return c==null}function d(c){return!(!c||typeof c!="object"||typeof c.length!="number"||typeof c.copy!="function"||typeof c.slice!="function"||c.length>0&&typeof c[0]!="number")}function p(c,v,m){var _,b;if(h(c)||h(v)||c.prototype!==v.prototype)return!1;if(u(c))return u(v)?(c=o.call(c),v=o.call(v),f(c,v,m)):!1;if(d(c)){if(!d(v)||c.length!==v.length)return!1;for(_=0;_<c.length;_++)if(c[_]!==v[_])return!1;return!0}try{var y=l(c),w=l(v)}catch{return!1}if(y.length!=w.length)return!1;for(y.sort(),w.sort(),_=y.length-1;_>=0;_--)if(y[_]!=w[_])return!1;for(_=y.length-1;_>=0;_--)if(b=y[_],!f(c[b],v[b],m))return!1;return typeof c==typeof v}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(1),l=function(){function u(f,h,d){d===void 0&&(d={}),this.attrName=f,this.keyName=h;var p=o.Scope.TYPE&o.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&o.Scope.LEVEL|p:this.scope=o.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return u.keys=function(f){return[].map.call(f.attributes,function(h){return h.name})},u.prototype.add=function(f,h){return this.canAdd(f,h)?(f.setAttribute(this.keyName,h),!0):!1},u.prototype.canAdd=function(f,h){var d=o.query(f,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},u.prototype.remove=function(f){f.removeAttribute(this.keyName)},u.prototype.value=function(f){var h=f.getAttribute(this.keyName);return this.canAdd(f,h)&&h?h:""},u}();n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Code=void 0;var o=function(){function O(L,R){var C=[],P=!0,M=!1,F=void 0;try{for(var q=L[Symbol.iterator](),K;!(P=(K=q.next()).done)&&(C.push(K.value),!(R&&C.length===R));P=!0);}catch(z){M=!0,F=z}finally{try{!P&&q.return&&q.return()}finally{if(M)throw F}}return C}return function(L,R){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return O(L,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function O(L,R){for(var C=0;C<R.length;C++){var P=R[C];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,P.key,P)}}return function(L,R,C){return R&&O(L.prototype,R),C&&O(L,C),L}}(),u=function O(L,R,C){L===null&&(L=Function.prototype);var P=Object.getOwnPropertyDescriptor(L,R);if(P===void 0){var M=Object.getPrototypeOf(L);return M===null?void 0:O(M,R,C)}else{if("value"in P)return P.value;var F=P.get;return F===void 0?void 0:F.call(C)}},f=i(2),h=w(f),d=i(0),p=w(d),c=i(4),v=w(c),m=i(6),_=w(m),b=i(7),y=w(b);function w(O){return O&&O.__esModule?O:{default:O}}function T(O,L){if(!(O instanceof L))throw new TypeError("Cannot call a class as a function")}function x(O,L){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:O}function E(O,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);O.prototype=Object.create(L&&L.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(O,L):O.__proto__=L)}var I=function(O){E(L,O);function L(){return T(this,L),x(this,(L.__proto__||Object.getPrototypeOf(L)).apply(this,arguments))}return L}(_.default);I.blotName="code",I.tagName="CODE";var A=function(O){E(L,O);function L(){return T(this,L),x(this,(L.__proto__||Object.getPrototypeOf(L)).apply(this,arguments))}return l(L,[{key:"delta",value:function(){var C=this,P=this.domNode.textContent;return P.endsWith(`
1966
+ `;for(var v=f.iterator(this.ops),m=new d,_=0;v.hasNext();){if(v.peekType()!=="insert")return;var b=v.peek(),y=f.length(b)-v.peekLength(),w=typeof b.insert=="string"?b.insert.indexOf(c,y)-y:-1;if(w<0)m.push(v.next());else if(w>0)m.push(v.next(w));else{if(p(m,v.next(1).attributes||{},_)===!1)return;_+=1,m=new d}}m.length()>0&&p(m,{},_)},d.prototype.transform=function(p,c){if(c=!!c,typeof p=="number")return this.transformPosition(p,c);for(var v=f.iterator(this.ops),m=f.iterator(p.ops),_=new d;v.hasNext()||m.hasNext();)if(v.peekType()==="insert"&&(c||m.peekType()!=="insert"))_.retain(f.length(v.next()));else if(m.peekType()==="insert")_.push(m.next());else{var b=Math.min(v.peekLength(),m.peekLength()),y=v.next(b),w=m.next(b);if(y.delete)continue;w.delete?_.push(w):_.retain(b,f.attributes.transform(y.attributes,w.attributes,c))}return _.chop()},d.prototype.transformPosition=function(p,c){c=!!c;for(var v=f.iterator(this.ops),m=0;v.hasNext()&&m<=p;){var _=v.peekLength(),b=v.peekType();if(v.next(),b==="delete"){p-=Math.min(_,p-m);continue}else b==="insert"&&(m<p||!c)&&(p+=_);m+=_}return p},r.exports=d},function(r,n){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=function(v){return typeof Array.isArray=="function"?Array.isArray(v):o.call(v)==="[object Array]"},h=function(v){if(!v||o.call(v)!=="[object Object]")return!1;var m=i.call(v,"constructor"),_=v.constructor&&v.constructor.prototype&&i.call(v.constructor.prototype,"isPrototypeOf");if(v.constructor&&!m&&!_)return!1;var b;for(b in v);return typeof b>"u"||i.call(v,b)},d=function(v,m){l&&m.name==="__proto__"?l(v,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):v[m.name]=m.newValue},p=function(v,m){if(m==="__proto__")if(i.call(v,m)){if(u)return u(v,m).value}else return;return v[m]};r.exports=function c(){var v,m,_,b,y,w,T=arguments[0],x=1,E=arguments.length,I=!1;for(typeof T=="boolean"&&(I=T,T=arguments[1]||{},x=2),(T==null||typeof T!="object"&&typeof T!="function")&&(T={});x<E;++x)if(v=arguments[x],v!=null)for(m in v)_=p(T,m),b=p(v,m),T!==b&&(I&&b&&(h(b)||(y=f(b)))?(y?(y=!1,w=_&&f(_)?_:[]):w=_&&h(_)?_:{},d(T,{name:m,newValue:c(I,w,b)})):typeof b<"u"&&d(T,{name:m,newValue:b}));return T}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BlockEmbed=n.bubbleFormats=void 0;var o=function(){function C(P,M){for(var F=0;F<M.length;F++){var q=M[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(P,q.key,q)}}return function(P,M,F){return M&&C(P.prototype,M),F&&C(P,F),P}}(),l=function C(P,M,F){P===null&&(P=Function.prototype);var q=Object.getOwnPropertyDescriptor(P,M);if(q===void 0){var Y=Object.getPrototypeOf(P);return Y===null?void 0:C(Y,M,F)}else{if("value"in q)return q.value;var z=q.get;return z===void 0?void 0:z.call(F)}},u=i(3),f=T(u),h=i(2),d=T(h),p=i(0),c=T(p),v=i(16),m=T(v),_=i(6),b=T(_),y=i(7),w=T(y);function T(C){return C&&C.__esModule?C:{default:C}}function x(C,P){if(!(C instanceof P))throw new TypeError("Cannot call a class as a function")}function E(C,P){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:C}function I(C,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);C.prototype=Object.create(P&&P.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(C,P):C.__proto__=P)}var A=1,O=function(C){I(P,C);function P(){return x(this,P),E(this,(P.__proto__||Object.getPrototypeOf(P)).apply(this,arguments))}return o(P,[{key:"attach",value:function(){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"attach",this).call(this),this.attributes=new c.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return new d.default().insert(this.value(),(0,f.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(F,q){var Y=c.default.query(F,c.default.Scope.BLOCK_ATTRIBUTE);Y!=null&&this.attributes.attribute(Y,q)}},{key:"formatAt",value:function(F,q,Y,z){this.format(Y,z)}},{key:"insertAt",value:function(F,q,Y){if(typeof q=="string"&&q.endsWith(`
1967
+ `)){var z=c.default.create(L.blotName);this.parent.insertBefore(z,F===0?this:this.next),z.insertAt(0,q.slice(0,-1))}else l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertAt",this).call(this,F,q,Y)}}]),P}(c.default.Embed);O.scope=c.default.Scope.BLOCK_BLOT;var L=function(C){I(P,C);function P(M){x(this,P);var F=E(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,M));return F.cache={},F}return o(P,[{key:"delta",value:function(){return this.cache.delta==null&&(this.cache.delta=this.descendants(c.default.Leaf).reduce(function(F,q){return q.length()===0?F:F.insert(q.value(),R(q))},new d.default).insert(`
1968
+ `,R(this))),this.cache.delta}},{key:"deleteAt",value:function(F,q){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"deleteAt",this).call(this,F,q),this.cache={}}},{key:"formatAt",value:function(F,q,Y,z){q<=0||(c.default.query(Y,c.default.Scope.BLOCK)?F+q===this.length()&&this.format(Y,z):l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"formatAt",this).call(this,F,Math.min(q,this.length()-F-1),Y,z),this.cache={})}},{key:"insertAt",value:function(F,q,Y){if(Y!=null)return l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertAt",this).call(this,F,q,Y);if(q.length!==0){var z=q.split(`
1969
+ `),it=z.shift();it.length>0&&(F<this.length()-1||this.children.tail==null?l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertAt",this).call(this,Math.min(F,this.length()-1),it):this.children.tail.insertAt(this.children.tail.length(),it),this.cache={});var W=this;z.reduce(function(U,k){return W=W.split(U,!0),W.insertAt(0,k),k.length},F+it.length)}}},{key:"insertBefore",value:function(F,q){var Y=this.children.head;l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"insertBefore",this).call(this,F,q),Y instanceof m.default&&Y.remove(),this.cache={}}},{key:"length",value:function(){return this.cache.length==null&&(this.cache.length=l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"length",this).call(this)+A),this.cache.length}},{key:"moveChildren",value:function(F,q){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"moveChildren",this).call(this,F,q),this.cache={}}},{key:"optimize",value:function(F){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"optimize",this).call(this,F),this.cache={}}},{key:"path",value:function(F){return l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"path",this).call(this,F,!0)}},{key:"removeChild",value:function(F){l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"removeChild",this).call(this,F),this.cache={}}},{key:"split",value:function(F){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(q&&(F===0||F>=this.length()-A)){var Y=this.clone();return F===0?(this.parent.insertBefore(Y,this),this):(this.parent.insertBefore(Y,this.next),Y)}else{var z=l(P.prototype.__proto__||Object.getPrototypeOf(P.prototype),"split",this).call(this,F,q);return this.cache={},z}}}]),P}(c.default.Block);L.blotName="block",L.tagName="P",L.defaultChild="break",L.allowedChildren=[b.default,c.default.Embed,w.default];function R(C){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return C==null||(typeof C.formats=="function"&&(P=(0,f.default)(P,C.formats())),C.parent==null||C.parent.blotName=="scroll"||C.parent.statics.scope!==C.statics.scope)?P:R(C.parent,P)}n.bubbleFormats=R,n.BlockEmbed=O,n.default=L},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.overload=n.expandConfig=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},l=function(){function W(U,k){var D=[],j=!0,Z=!1,X=void 0;try{for(var G=U[Symbol.iterator](),V;!(j=(V=G.next()).done)&&(D.push(V.value),!(k&&D.length===k));j=!0);}catch(et){Z=!0,X=et}finally{try{!j&&G.return&&G.return()}finally{if(Z)throw X}}return D}return function(U,k){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return W(U,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function W(U,k){for(var D=0;D<k.length;D++){var j=k[D];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(U,j.key,j)}}return function(U,k,D){return k&&W(U.prototype,k),D&&W(U,D),U}}();i(50);var f=i(2),h=R(f),d=i(14),p=R(d),c=i(8),v=R(c),m=i(9),_=R(m),b=i(0),y=R(b),w=i(15),T=R(w),x=i(3),E=R(x),I=i(10),A=R(I),O=i(34),L=R(O);function R(W){return W&&W.__esModule?W:{default:W}}function C(W,U,k){return U in W?Object.defineProperty(W,U,{value:k,enumerable:!0,configurable:!0,writable:!0}):W[U]=k,W}function P(W,U){if(!(W instanceof U))throw new TypeError("Cannot call a class as a function")}var M=(0,A.default)("quill"),F=function(){u(W,null,[{key:"debug",value:function(k){k===!0&&(k="log"),A.default.level(k)}},{key:"find",value:function(k){return k.__quill||y.default.find(k)}},{key:"import",value:function(k){return this.imports[k]==null&&M.error("Cannot import "+k+". Are you sure it was registered?"),this.imports[k]}},{key:"register",value:function(k,D){var j=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(typeof k!="string"){var X=k.attrName||k.blotName;typeof X=="string"?this.register("formats/"+X,k,D):Object.keys(k).forEach(function(G){j.register(G,k[G],D)})}else this.imports[k]!=null&&!Z&&M.warn("Overwriting "+k+" with",D),this.imports[k]=D,(k.startsWith("blots/")||k.startsWith("formats/"))&&D.blotName!=="abstract"?y.default.register(D):k.startsWith("modules")&&typeof D.register=="function"&&D.register()}}]);function W(U){var k=this,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(P(this,W),this.options=q(U,D),this.container=this.options.container,this.container==null)return M.error("Invalid Quill container",U);this.options.debug&&W.debug(this.options.debug);var j=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new v.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new p.default(this.scroll),this.selection=new T.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(v.default.events.EDITOR_CHANGE,function(X){X===v.default.events.TEXT_CHANGE&&k.root.classList.toggle("ql-blank",k.editor.isBlank())}),this.emitter.on(v.default.events.SCROLL_UPDATE,function(X,G){var V=k.selection.lastRange,et=V&&V.length===0?V.index:void 0;Y.call(k,function(){return k.editor.update(null,G,et)},X)});var Z=this.clipboard.convert(`<div class='ql-editor' style="white-space: normal;">`+j+"<p><br></p></div>");this.setContents(Z),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return u(W,[{key:"addContainer",value:function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(typeof k=="string"){var j=k;k=document.createElement("div"),k.classList.add(j)}return this.container.insertBefore(k,D),k}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(k,D,j){var Z=this,X=z(k,D,j),G=l(X,4);return k=G[0],D=G[1],j=G[3],Y.call(this,function(){return Z.editor.deleteText(k,D)},j,k,-1*D)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.scroll.enable(k),this.container.classList.toggle("ql-disabled",!k)}},{key:"focus",value:function(){var k=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=k,this.scrollIntoView()}},{key:"format",value:function(k,D){var j=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v.default.sources.API;return Y.call(this,function(){var X=j.getSelection(!0),G=new h.default;if(X==null)return G;if(y.default.query(k,y.default.Scope.BLOCK))G=j.editor.formatLine(X.index,X.length,C({},k,D));else{if(X.length===0)return j.selection.format(k,D),G;G=j.editor.formatText(X.index,X.length,C({},k,D))}return j.setSelection(X,v.default.sources.SILENT),G},Z)}},{key:"formatLine",value:function(k,D,j,Z,X){var G=this,V=void 0,et=z(k,D,j,Z,X),Q=l(et,4);return k=Q[0],D=Q[1],V=Q[2],X=Q[3],Y.call(this,function(){return G.editor.formatLine(k,D,V)},X,k,0)}},{key:"formatText",value:function(k,D,j,Z,X){var G=this,V=void 0,et=z(k,D,j,Z,X),Q=l(et,4);return k=Q[0],D=Q[1],V=Q[2],X=Q[3],Y.call(this,function(){return G.editor.formatText(k,D,V)},X,k,0)}},{key:"getBounds",value:function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=void 0;typeof k=="number"?j=this.selection.getBounds(k,D):j=this.selection.getBounds(k.index,k.length);var Z=this.container.getBoundingClientRect();return{bottom:j.bottom-Z.top,height:j.height,left:j.left-Z.left,right:j.right-Z.left,top:j.top-Z.top,width:j.width}}},{key:"getContents",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,j=z(k,D),Z=l(j,2);return k=Z[0],D=Z[1],this.editor.getContents(k,D)}},{key:"getFormat",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getSelection(!0),D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return typeof k=="number"?this.editor.getFormat(k,D):this.editor.getFormat(k.index,k.length)}},{key:"getIndex",value:function(k){return k.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(k){return this.scroll.leaf(k)}},{key:"getLine",value:function(k){return this.scroll.line(k)}},{key:"getLines",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE;return typeof k!="number"?this.scroll.lines(k.index,k.length):this.scroll.lines(k,D)}},{key:"getModule",value:function(k){return this.theme.modules[k]}},{key:"getSelection",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return k&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getLength()-k,j=z(k,D),Z=l(j,2);return k=Z[0],D=Z[1],this.editor.getText(k,D)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(k,D,j){var Z=this,X=arguments.length>3&&arguments[3]!==void 0?arguments[3]:W.sources.API;return Y.call(this,function(){return Z.editor.insertEmbed(k,D,j)},X,k)}},{key:"insertText",value:function(k,D,j,Z,X){var G=this,V=void 0,et=z(k,0,j,Z,X),Q=l(et,4);return k=Q[0],V=Q[2],X=Q[3],Y.call(this,function(){return G.editor.insertText(k,D,V)},X,k,D.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(k,D,j){this.clipboard.dangerouslyPasteHTML(k,D,j)}},{key:"removeFormat",value:function(k,D,j){var Z=this,X=z(k,D,j),G=l(X,4);return k=G[0],D=G[1],j=G[3],Y.call(this,function(){return Z.editor.removeFormat(k,D)},j,k)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(k){var D=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API;return Y.call(this,function(){k=new h.default(k);var Z=D.getLength(),X=D.editor.deleteText(0,Z),G=D.editor.applyDelta(k),V=G.ops[G.ops.length-1];V!=null&&typeof V.insert=="string"&&V.insert[V.insert.length-1]===`
1970
+ `&&(D.editor.deleteText(D.getLength()-1,1),G.delete(1));var et=X.compose(G);return et},j)}},{key:"setSelection",value:function(k,D,j){if(k==null)this.selection.setRange(null,D||W.sources.API);else{var Z=z(k,D,j),X=l(Z,4);k=X[0],D=X[1],j=X[3],this.selection.setRange(new w.Range(k,D),j),j!==v.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API,j=new h.default().insert(k);return this.setContents(j,D)}},{key:"update",value:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:v.default.sources.USER,D=this.scroll.update(k);return this.selection.update(k),D}},{key:"updateContents",value:function(k){var D=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v.default.sources.API;return Y.call(this,function(){return k=new h.default(k),D.editor.applyDelta(k,j)},j,!0)}}]),W}();F.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},F.events=v.default.events,F.sources=v.default.sources,F.version="1.3.7",F.imports={delta:h.default,parchment:y.default,"core/module":_.default,"core/theme":L.default};function q(W,U){if(U=(0,E.default)(!0,{container:W,modules:{clipboard:!0,keyboard:!0,history:!0}},U),!U.theme||U.theme===F.DEFAULTS.theme)U.theme=L.default;else if(U.theme=F.import("themes/"+U.theme),U.theme==null)throw new Error("Invalid theme "+U.theme+". Did you register it?");var k=(0,E.default)(!0,{},U.theme.DEFAULTS);[k,U].forEach(function(Z){Z.modules=Z.modules||{},Object.keys(Z.modules).forEach(function(X){Z.modules[X]===!0&&(Z.modules[X]={})})});var D=Object.keys(k.modules).concat(Object.keys(U.modules)),j=D.reduce(function(Z,X){var G=F.import("modules/"+X);return G==null?M.error("Cannot load "+X+" module. Are you sure you registered it?"):Z[X]=G.DEFAULTS||{},Z},{});return U.modules!=null&&U.modules.toolbar&&U.modules.toolbar.constructor!==Object&&(U.modules.toolbar={container:U.modules.toolbar}),U=(0,E.default)(!0,{},F.DEFAULTS,{modules:j},k,U),["bounds","container","scrollingContainer"].forEach(function(Z){typeof U[Z]=="string"&&(U[Z]=document.querySelector(U[Z]))}),U.modules=Object.keys(U.modules).reduce(function(Z,X){return U.modules[X]&&(Z[X]=U.modules[X]),Z},{}),U}function Y(W,U,k,D){if(this.options.strict&&!this.isEnabled()&&U===v.default.sources.USER)return new h.default;var j=k==null?null:this.getSelection(),Z=this.editor.delta,X=W();if(j!=null&&(k===!0&&(k=j.index),D==null?j=it(j,X,U):D!==0&&(j=it(j,k,D,U)),this.setSelection(j,v.default.sources.SILENT)),X.length()>0){var G,V=[v.default.events.TEXT_CHANGE,X,Z,U];if((G=this.emitter).emit.apply(G,[v.default.events.EDITOR_CHANGE].concat(V)),U!==v.default.sources.SILENT){var et;(et=this.emitter).emit.apply(et,V)}}return X}function z(W,U,k,D,j){var Z={};return typeof W.index=="number"&&typeof W.length=="number"?typeof U!="number"?(j=D,D=k,k=U,U=W.length,W=W.index):(U=W.length,W=W.index):typeof U!="number"&&(j=D,D=k,k=U,U=0),(typeof k>"u"?"undefined":o(k))==="object"?(Z=k,j=D):typeof k=="string"&&(D!=null?Z[k]=D:j=k),j=j||v.default.sources.API,[W,U,Z,j]}function it(W,U,k,D){if(W==null)return null;var j=void 0,Z=void 0;if(U instanceof h.default){var X=[W.index,W.index+W.length].map(function(Q){return U.transformPosition(Q,D!==v.default.sources.USER)}),G=l(X,2);j=G[0],Z=G[1]}else{var V=[W.index,W.index+W.length].map(function(Q){return Q<U||Q===U&&D===v.default.sources.USER?Q:k>=0?Q+k:Math.max(U,Q+k)}),et=l(V,2);j=et[0],Z=et[1]}return new w.Range(j,Z-j)}n.expandConfig=q,n.overload=z,n.default=F},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function b(y,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,w,T){return w&&b(y.prototype,w),T&&b(y,T),y}}(),l=function b(y,w,T){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,w);if(x===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:b(E,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(7),f=p(u),h=i(0),d=p(h);function p(b){return b&&b.__esModule?b:{default:b}}function c(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function v(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function m(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var _=function(b){m(y,b);function y(){return c(this,y),v(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"formatAt",value:function(T,x,E,I){if(y.compare(this.statics.blotName,E)<0&&d.default.query(E,d.default.Scope.BLOT)){var A=this.isolate(T,x);I&&A.wrap(E,I)}else l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,T,x,E,I)}},{key:"optimize",value:function(T){if(l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,T),this.parent instanceof y&&y.compare(this.statics.blotName,this.parent.statics.blotName)>0){var x=this.parent.isolate(this.offset(),this.length());this.moveChildren(x),x.wrap(this)}}}],[{key:"compare",value:function(T,x){var E=y.order.indexOf(T),I=y.order.indexOf(x);return E>=0||I>=0?E-I:T===x?0:T<x?-1:1}}]),y}(d.default.Inline);_.allowedChildren=[_,d.default.Embed,f.default],_.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default.Text);n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function w(T,x){for(var E=0;E<x.length;E++){var I=x[E];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(T,I.key,I)}}return function(T,x,E){return x&&w(T.prototype,x),E&&w(T,E),T}}(),l=function w(T,x,E){T===null&&(T=Function.prototype);var I=Object.getOwnPropertyDescriptor(T,x);if(I===void 0){var A=Object.getPrototypeOf(T);return A===null?void 0:w(A,x,E)}else{if("value"in I)return I.value;var O=I.get;return O===void 0?void 0:O.call(E)}},u=i(54),f=p(u),h=i(10),d=p(h);function p(w){return w&&w.__esModule?w:{default:w}}function c(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function v(w,T){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:w}function m(w,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(w,T):w.__proto__=T)}var _=(0,d.default)("quill:events"),b=["selectionchange","mousedown","mouseup","click"];b.forEach(function(w){document.addEventListener(w,function(){for(var T=arguments.length,x=Array(T),E=0;E<T;E++)x[E]=arguments[E];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(I){if(I.__quill&&I.__quill.emitter){var A;(A=I.__quill.emitter).handleDOM.apply(A,x)}})})});var y=function(w){m(T,w);function T(){c(this,T);var x=v(this,(T.__proto__||Object.getPrototypeOf(T)).call(this));return x.listeners={},x.on("error",_.error),x}return o(T,[{key:"emit",value:function(){_.log.apply(_,arguments),l(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(E){for(var I=arguments.length,A=Array(I>1?I-1:0),O=1;O<I;O++)A[O-1]=arguments[O];(this.listeners[E.type]||[]).forEach(function(L){var R=L.node,C=L.handler;(E.target===R||R.contains(E.target))&&C.apply(void 0,[E].concat(A))})}},{key:"listenDOM",value:function(E,I,A){this.listeners[E]||(this.listeners[E]=[]),this.listeners[E].push({node:I,handler:A})}}]),T}(f.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},n.default=y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});function o(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}var l=function u(f){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};o(this,u),this.quill=f,this.options=h};l.DEFAULTS={},n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=["error","warn","log","info"],l="warn";function u(h){if(o.indexOf(h)<=o.indexOf(l)){for(var d,p=arguments.length,c=Array(p>1?p-1:0),v=1;v<p;v++)c[v-1]=arguments[v];(d=console)[h].apply(d,c)}}function f(h){return o.reduce(function(d,p){return d[p]=u.bind(console,p,h),d},{})}u.level=f.level=function(h){l=h},n.default=f},function(r,n,i){var o=Array.prototype.slice,l=i(52),u=i(53),f=r.exports=function(c,v,m){return m||(m={}),c===v?!0:c instanceof Date&&v instanceof Date?c.getTime()===v.getTime():!c||!v||typeof c!="object"&&typeof v!="object"?m.strict?c===v:c==v:p(c,v,m)};function h(c){return c==null}function d(c){return!(!c||typeof c!="object"||typeof c.length!="number"||typeof c.copy!="function"||typeof c.slice!="function"||c.length>0&&typeof c[0]!="number")}function p(c,v,m){var _,b;if(h(c)||h(v)||c.prototype!==v.prototype)return!1;if(u(c))return u(v)?(c=o.call(c),v=o.call(v),f(c,v,m)):!1;if(d(c)){if(!d(v)||c.length!==v.length)return!1;for(_=0;_<c.length;_++)if(c[_]!==v[_])return!1;return!0}try{var y=l(c),w=l(v)}catch{return!1}if(y.length!=w.length)return!1;for(y.sort(),w.sort(),_=y.length-1;_>=0;_--)if(y[_]!=w[_])return!1;for(_=y.length-1;_>=0;_--)if(b=y[_],!f(c[b],v[b],m))return!1;return typeof c==typeof v}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(1),l=function(){function u(f,h,d){d===void 0&&(d={}),this.attrName=f,this.keyName=h;var p=o.Scope.TYPE&o.Scope.ATTRIBUTE;d.scope!=null?this.scope=d.scope&o.Scope.LEVEL|p:this.scope=o.Scope.ATTRIBUTE,d.whitelist!=null&&(this.whitelist=d.whitelist)}return u.keys=function(f){return[].map.call(f.attributes,function(h){return h.name})},u.prototype.add=function(f,h){return this.canAdd(f,h)?(f.setAttribute(this.keyName,h),!0):!1},u.prototype.canAdd=function(f,h){var d=o.query(f,o.Scope.BLOT&(this.scope|o.Scope.TYPE));return d==null?!1:this.whitelist==null?!0:typeof h=="string"?this.whitelist.indexOf(h.replace(/["']/g,""))>-1:this.whitelist.indexOf(h)>-1},u.prototype.remove=function(f){f.removeAttribute(this.keyName)},u.prototype.value=function(f){var h=f.getAttribute(this.keyName);return this.canAdd(f,h)&&h?h:""},u}();n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Code=void 0;var o=function(){function O(L,R){var C=[],P=!0,M=!1,F=void 0;try{for(var q=L[Symbol.iterator](),Y;!(P=(Y=q.next()).done)&&(C.push(Y.value),!(R&&C.length===R));P=!0);}catch(z){M=!0,F=z}finally{try{!P&&q.return&&q.return()}finally{if(M)throw F}}return C}return function(L,R){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return O(L,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function O(L,R){for(var C=0;C<R.length;C++){var P=R[C];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,P.key,P)}}return function(L,R,C){return R&&O(L.prototype,R),C&&O(L,C),L}}(),u=function O(L,R,C){L===null&&(L=Function.prototype);var P=Object.getOwnPropertyDescriptor(L,R);if(P===void 0){var M=Object.getPrototypeOf(L);return M===null?void 0:O(M,R,C)}else{if("value"in P)return P.value;var F=P.get;return F===void 0?void 0:F.call(C)}},f=i(2),h=w(f),d=i(0),p=w(d),c=i(4),v=w(c),m=i(6),_=w(m),b=i(7),y=w(b);function w(O){return O&&O.__esModule?O:{default:O}}function T(O,L){if(!(O instanceof L))throw new TypeError("Cannot call a class as a function")}function x(O,L){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return L&&(typeof L=="object"||typeof L=="function")?L:O}function E(O,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof L);O.prototype=Object.create(L&&L.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),L&&(Object.setPrototypeOf?Object.setPrototypeOf(O,L):O.__proto__=L)}var I=function(O){E(L,O);function L(){return T(this,L),x(this,(L.__proto__||Object.getPrototypeOf(L)).apply(this,arguments))}return L}(_.default);I.blotName="code",I.tagName="CODE";var A=function(O){E(L,O);function L(){return T(this,L),x(this,(L.__proto__||Object.getPrototypeOf(L)).apply(this,arguments))}return l(L,[{key:"delta",value:function(){var C=this,P=this.domNode.textContent;return P.endsWith(`
1971
1971
  `)&&(P=P.slice(0,-1)),P.split(`
1972
1972
  `).reduce(function(M,F){return M.insert(F).insert(`
1973
- `,C.formats())},new h.default)}},{key:"format",value:function(C,P){if(!(C===this.statics.blotName&&P)){var M=this.descendant(y.default,this.length()-1),F=o(M,1),q=F[0];q!=null&&q.deleteAt(q.length()-1,1),u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"format",this).call(this,C,P)}}},{key:"formatAt",value:function(C,P,M,F){if(P!==0&&!(p.default.query(M,p.default.Scope.BLOCK)==null||M===this.statics.blotName&&F===this.statics.formats(this.domNode))){var q=this.newlineIndex(C);if(!(q<0||q>=C+P)){var K=this.newlineIndex(C,!0)+1,z=q-K+1,it=this.isolate(K,z),W=it.next;it.format(M,F),W instanceof L&&W.formatAt(0,C-K+P-z,M,F)}}}},{key:"insertAt",value:function(C,P,M){if(M==null){var F=this.descendant(y.default,C),q=o(F,2),K=q[0],z=q[1];K.insertAt(z,P)}}},{key:"length",value:function(){var C=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
1973
+ `,C.formats())},new h.default)}},{key:"format",value:function(C,P){if(!(C===this.statics.blotName&&P)){var M=this.descendant(y.default,this.length()-1),F=o(M,1),q=F[0];q!=null&&q.deleteAt(q.length()-1,1),u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"format",this).call(this,C,P)}}},{key:"formatAt",value:function(C,P,M,F){if(P!==0&&!(p.default.query(M,p.default.Scope.BLOCK)==null||M===this.statics.blotName&&F===this.statics.formats(this.domNode))){var q=this.newlineIndex(C);if(!(q<0||q>=C+P)){var Y=this.newlineIndex(C,!0)+1,z=q-Y+1,it=this.isolate(Y,z),W=it.next;it.format(M,F),W instanceof L&&W.formatAt(0,C-Y+P-z,M,F)}}}},{key:"insertAt",value:function(C,P,M){if(M==null){var F=this.descendant(y.default,C),q=o(F,2),Y=q[0],z=q[1];Y.insertAt(z,P)}}},{key:"length",value:function(){var C=this.domNode.textContent.length;return this.domNode.textContent.endsWith(`
1974
1974
  `)?C:C+1}},{key:"newlineIndex",value:function(C){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(P)return this.domNode.textContent.slice(0,C).lastIndexOf(`
1975
1975
  `);var M=this.domNode.textContent.slice(C).indexOf(`
1976
1976
  `);return M>-1?C+M:-1}},{key:"optimize",value:function(C){this.domNode.textContent.endsWith(`
1977
1977
  `)||this.appendChild(p.default.create("text",`
1978
- `)),u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"optimize",this).call(this,C);var P=this.next;P!=null&&P.prev===this&&P.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===P.statics.formats(P.domNode)&&(P.optimize(C),P.moveChildren(this),P.remove())}},{key:"replace",value:function(C){u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(P){var M=p.default.find(P);M==null?P.parentNode.removeChild(P):M instanceof p.default.Embed?M.remove():M.unwrap()})}}],[{key:"create",value:function(C){var P=u(L.__proto__||Object.getPrototypeOf(L),"create",this).call(this,C);return P.setAttribute("spellcheck",!1),P}},{key:"formats",value:function(){return!0}}]),L}(v.default);A.blotName="code-block",A.tagName="PRE",A.TAB=" ",n.Code=I,n.default=A},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},l=function(){function W(U,k){var D=[],j=!0,Z=!1,Y=void 0;try{for(var G=U[Symbol.iterator](),V;!(j=(V=G.next()).done)&&(D.push(V.value),!(k&&D.length===k));j=!0);}catch(rt){Z=!0,Y=rt}finally{try{!j&&G.return&&G.return()}finally{if(Z)throw Y}}return D}return function(U,k){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return W(U,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function W(U,k){for(var D=0;D<k.length;D++){var j=k[D];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(U,j.key,j)}}return function(U,k,D){return k&&W(U.prototype,k),D&&W(U,D),U}}(),f=i(2),h=P(f),d=i(20),p=P(d),c=i(0),v=P(c),m=i(13),_=P(m),b=i(24),y=P(b),w=i(4),T=P(w),x=i(16),E=P(x),I=i(21),A=P(I),O=i(11),L=P(O),R=i(3),C=P(R);function P(W){return W&&W.__esModule?W:{default:W}}function M(W,U,k){return U in W?Object.defineProperty(W,U,{value:k,enumerable:!0,configurable:!0,writable:!0}):W[U]=k,W}function F(W,U){if(!(W instanceof U))throw new TypeError("Cannot call a class as a function")}var q=/^[ -~]*$/,K=function(){function W(U){F(this,W),this.scroll=U,this.delta=this.getDelta()}return u(W,[{key:"applyDelta",value:function(k){var D=this,j=!1;this.scroll.update();var Z=this.scroll.length();return this.scroll.batchStart(),k=it(k),k.reduce(function(Y,G){var V=G.retain||G.delete||G.insert.length||1,rt=G.attributes||{};if(G.insert!=null){if(typeof G.insert=="string"){var Q=G.insert;Q.endsWith(`
1979
- `)&&j&&(j=!1,Q=Q.slice(0,-1)),Y>=Z&&!Q.endsWith(`
1980
- `)&&(j=!0),D.scroll.insertAt(Y,Q);var et=D.scroll.line(Y),ot=l(et,2),pt=ot[0],mt=ot[1],xt=(0,C.default)({},(0,w.bubbleFormats)(pt));if(pt instanceof T.default){var At=pt.descendant(v.default.Leaf,mt),oe=l(At,1),qt=oe[0];xt=(0,C.default)(xt,(0,w.bubbleFormats)(qt))}rt=p.default.attributes.diff(xt,rt)||{}}else if(o(G.insert)==="object"){var nt=Object.keys(G.insert)[0];if(nt==null)return Y;D.scroll.insertAt(Y,nt,G.insert[nt])}Z+=V}return Object.keys(rt).forEach(function(lt){D.scroll.formatAt(Y,V,lt,rt[lt])}),Y+V},0),k.reduce(function(Y,G){return typeof G.delete=="number"?(D.scroll.deleteAt(Y,G.delete),Y):Y+(G.retain||G.insert.length||1)},0),this.scroll.batchEnd(),this.update(k)}},{key:"deleteText",value:function(k,D){return this.scroll.deleteAt(k,D),this.update(new h.default().retain(k).delete(D))}},{key:"formatLine",value:function(k,D){var j=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(Z).forEach(function(Y){if(!(j.scroll.whitelist!=null&&!j.scroll.whitelist[Y])){var G=j.scroll.lines(k,Math.max(D,1)),V=D;G.forEach(function(rt){var Q=rt.length();if(!(rt instanceof _.default))rt.format(Y,Z[Y]);else{var et=k-rt.offset(j.scroll),ot=rt.newlineIndex(et+V)-et+1;rt.formatAt(et,ot,Y,Z[Y])}V-=Q})}}),this.scroll.optimize(),this.update(new h.default().retain(k).retain(D,(0,A.default)(Z)))}},{key:"formatText",value:function(k,D){var j=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(Z).forEach(function(Y){j.scroll.formatAt(k,D,Y,Z[Y])}),this.update(new h.default().retain(k).retain(D,(0,A.default)(Z)))}},{key:"getContents",value:function(k,D){return this.delta.slice(k,k+D)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(k,D){return k.concat(D.delta())},new h.default)}},{key:"getFormat",value:function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=[],Z=[];D===0?this.scroll.path(k).forEach(function(G){var V=l(G,1),rt=V[0];rt instanceof T.default?j.push(rt):rt instanceof v.default.Leaf&&Z.push(rt)}):(j=this.scroll.lines(k,D),Z=this.scroll.descendants(v.default.Leaf,k,D));var Y=[j,Z].map(function(G){if(G.length===0)return{};for(var V=(0,w.bubbleFormats)(G.shift());Object.keys(V).length>0;){var rt=G.shift();if(rt==null)return V;V=z((0,w.bubbleFormats)(rt),V)}return V});return C.default.apply(C.default,Y)}},{key:"getText",value:function(k,D){return this.getContents(k,D).filter(function(j){return typeof j.insert=="string"}).map(function(j){return j.insert}).join("")}},{key:"insertEmbed",value:function(k,D,j){return this.scroll.insertAt(k,D,j),this.update(new h.default().retain(k).insert(M({},D,j)))}},{key:"insertText",value:function(k,D){var j=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return D=D.replace(/\r\n/g,`
1978
+ `)),u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"optimize",this).call(this,C);var P=this.next;P!=null&&P.prev===this&&P.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===P.statics.formats(P.domNode)&&(P.optimize(C),P.moveChildren(this),P.remove())}},{key:"replace",value:function(C){u(L.prototype.__proto__||Object.getPrototypeOf(L.prototype),"replace",this).call(this,C),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(P){var M=p.default.find(P);M==null?P.parentNode.removeChild(P):M instanceof p.default.Embed?M.remove():M.unwrap()})}}],[{key:"create",value:function(C){var P=u(L.__proto__||Object.getPrototypeOf(L),"create",this).call(this,C);return P.setAttribute("spellcheck",!1),P}},{key:"formats",value:function(){return!0}}]),L}(v.default);A.blotName="code-block",A.tagName="PRE",A.TAB=" ",n.Code=I,n.default=A},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},l=function(){function W(U,k){var D=[],j=!0,Z=!1,X=void 0;try{for(var G=U[Symbol.iterator](),V;!(j=(V=G.next()).done)&&(D.push(V.value),!(k&&D.length===k));j=!0);}catch(et){Z=!0,X=et}finally{try{!j&&G.return&&G.return()}finally{if(Z)throw X}}return D}return function(U,k){if(Array.isArray(U))return U;if(Symbol.iterator in Object(U))return W(U,k);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function W(U,k){for(var D=0;D<k.length;D++){var j=k[D];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(U,j.key,j)}}return function(U,k,D){return k&&W(U.prototype,k),D&&W(U,D),U}}(),f=i(2),h=P(f),d=i(20),p=P(d),c=i(0),v=P(c),m=i(13),_=P(m),b=i(24),y=P(b),w=i(4),T=P(w),x=i(16),E=P(x),I=i(21),A=P(I),O=i(11),L=P(O),R=i(3),C=P(R);function P(W){return W&&W.__esModule?W:{default:W}}function M(W,U,k){return U in W?Object.defineProperty(W,U,{value:k,enumerable:!0,configurable:!0,writable:!0}):W[U]=k,W}function F(W,U){if(!(W instanceof U))throw new TypeError("Cannot call a class as a function")}var q=/^[ -~]*$/,Y=function(){function W(U){F(this,W),this.scroll=U,this.delta=this.getDelta()}return u(W,[{key:"applyDelta",value:function(k){var D=this,j=!1;this.scroll.update();var Z=this.scroll.length();return this.scroll.batchStart(),k=it(k),k.reduce(function(X,G){var V=G.retain||G.delete||G.insert.length||1,et=G.attributes||{};if(G.insert!=null){if(typeof G.insert=="string"){var Q=G.insert;Q.endsWith(`
1979
+ `)&&j&&(j=!1,Q=Q.slice(0,-1)),X>=Z&&!Q.endsWith(`
1980
+ `)&&(j=!0),D.scroll.insertAt(X,Q);var rt=D.scroll.line(X),ot=l(rt,2),pt=ot[0],mt=ot[1],xt=(0,C.default)({},(0,w.bubbleFormats)(pt));if(pt instanceof T.default){var At=pt.descendant(v.default.Leaf,mt),oe=l(At,1),qt=oe[0];xt=(0,C.default)(xt,(0,w.bubbleFormats)(qt))}et=p.default.attributes.diff(xt,et)||{}}else if(o(G.insert)==="object"){var nt=Object.keys(G.insert)[0];if(nt==null)return X;D.scroll.insertAt(X,nt,G.insert[nt])}Z+=V}return Object.keys(et).forEach(function(lt){D.scroll.formatAt(X,V,lt,et[lt])}),X+V},0),k.reduce(function(X,G){return typeof G.delete=="number"?(D.scroll.deleteAt(X,G.delete),X):X+(G.retain||G.insert.length||1)},0),this.scroll.batchEnd(),this.update(k)}},{key:"deleteText",value:function(k,D){return this.scroll.deleteAt(k,D),this.update(new h.default().retain(k).delete(D))}},{key:"formatLine",value:function(k,D){var j=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.scroll.update(),Object.keys(Z).forEach(function(X){if(!(j.scroll.whitelist!=null&&!j.scroll.whitelist[X])){var G=j.scroll.lines(k,Math.max(D,1)),V=D;G.forEach(function(et){var Q=et.length();if(!(et instanceof _.default))et.format(X,Z[X]);else{var rt=k-et.offset(j.scroll),ot=et.newlineIndex(rt+V)-rt+1;et.formatAt(rt,ot,X,Z[X])}V-=Q})}}),this.scroll.optimize(),this.update(new h.default().retain(k).retain(D,(0,A.default)(Z)))}},{key:"formatText",value:function(k,D){var j=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Object.keys(Z).forEach(function(X){j.scroll.formatAt(k,D,X,Z[X])}),this.update(new h.default().retain(k).retain(D,(0,A.default)(Z)))}},{key:"getContents",value:function(k,D){return this.delta.slice(k,k+D)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(k,D){return k.concat(D.delta())},new h.default)}},{key:"getFormat",value:function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,j=[],Z=[];D===0?this.scroll.path(k).forEach(function(G){var V=l(G,1),et=V[0];et instanceof T.default?j.push(et):et instanceof v.default.Leaf&&Z.push(et)}):(j=this.scroll.lines(k,D),Z=this.scroll.descendants(v.default.Leaf,k,D));var X=[j,Z].map(function(G){if(G.length===0)return{};for(var V=(0,w.bubbleFormats)(G.shift());Object.keys(V).length>0;){var et=G.shift();if(et==null)return V;V=z((0,w.bubbleFormats)(et),V)}return V});return C.default.apply(C.default,X)}},{key:"getText",value:function(k,D){return this.getContents(k,D).filter(function(j){return typeof j.insert=="string"}).map(function(j){return j.insert}).join("")}},{key:"insertEmbed",value:function(k,D,j){return this.scroll.insertAt(k,D,j),this.update(new h.default().retain(k).insert(M({},D,j)))}},{key:"insertText",value:function(k,D){var j=this,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return D=D.replace(/\r\n/g,`
1981
1981
  `).replace(/\r/g,`
1982
- `),this.scroll.insertAt(k,D),Object.keys(Z).forEach(function(Y){j.scroll.formatAt(k,D.length,Y,Z[Y])}),this.update(new h.default().retain(k).insert(D,(0,A.default)(Z)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var k=this.scroll.children.head;return k.statics.blotName!==T.default.blotName||k.children.length>1?!1:k.children.head instanceof E.default}},{key:"removeFormat",value:function(k,D){var j=this.getText(k,D),Z=this.scroll.line(k+D),Y=l(Z,2),G=Y[0],V=Y[1],rt=0,Q=new h.default;G!=null&&(G instanceof _.default?rt=G.newlineIndex(V)-V+1:rt=G.length()-V,Q=G.delta().slice(V,V+rt-1).insert(`
1983
- `));var et=this.getContents(k,D+rt),ot=et.diff(new h.default().insert(j).concat(Q)),pt=new h.default().retain(k).concat(ot);return this.applyDelta(pt)}},{key:"update",value:function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,Z=this.delta;if(D.length===1&&D[0].type==="characterData"&&D[0].target.data.match(q)&&v.default.find(D[0].target)){var Y=v.default.find(D[0].target),G=(0,w.bubbleFormats)(Y),V=Y.offset(this.scroll),rt=D[0].oldValue.replace(y.default.CONTENTS,""),Q=new h.default().insert(rt),et=new h.default().insert(Y.value()),ot=new h.default().retain(V).concat(Q.diff(et,j));k=ot.reduce(function(pt,mt){return mt.insert?pt.insert(mt.insert,G):pt.push(mt)},new h.default),this.delta=Z.compose(k)}else this.delta=this.getDelta(),(!k||!(0,L.default)(Z.compose(k),this.delta))&&(k=Z.diff(this.delta,j));return k}}]),W}();function z(W,U){return Object.keys(U).reduce(function(k,D){return W[D]==null||(U[D]===W[D]?k[D]=U[D]:Array.isArray(U[D])?U[D].indexOf(W[D])<0&&(k[D]=U[D].concat([W[D]])):k[D]=[U[D],W[D]]),k},{})}function it(W){return W.reduce(function(U,k){if(k.insert===1){var D=(0,A.default)(k.attributes);return delete D.image,U.insert({image:k.attributes.image},D)}if(k.attributes!=null&&(k.attributes.list===!0||k.attributes.bullet===!0)&&(k=(0,A.default)(k),k.attributes.list?k.attributes.list="ordered":(k.attributes.list="bullet",delete k.attributes.bullet)),typeof k.insert=="string"){var j=k.insert.replace(/\r\n/g,`
1982
+ `),this.scroll.insertAt(k,D),Object.keys(Z).forEach(function(X){j.scroll.formatAt(k,D.length,X,Z[X])}),this.update(new h.default().retain(k).insert(D,(0,A.default)(Z)))}},{key:"isBlank",value:function(){if(this.scroll.children.length==0)return!0;if(this.scroll.children.length>1)return!1;var k=this.scroll.children.head;return k.statics.blotName!==T.default.blotName||k.children.length>1?!1:k.children.head instanceof E.default}},{key:"removeFormat",value:function(k,D){var j=this.getText(k,D),Z=this.scroll.line(k+D),X=l(Z,2),G=X[0],V=X[1],et=0,Q=new h.default;G!=null&&(G instanceof _.default?et=G.newlineIndex(V)-V+1:et=G.length()-V,Q=G.delta().slice(V,V+et-1).insert(`
1983
+ `));var rt=this.getContents(k,D+et),ot=rt.diff(new h.default().insert(j).concat(Q)),pt=new h.default().retain(k).concat(ot);return this.applyDelta(pt)}},{key:"update",value:function(k){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0,Z=this.delta;if(D.length===1&&D[0].type==="characterData"&&D[0].target.data.match(q)&&v.default.find(D[0].target)){var X=v.default.find(D[0].target),G=(0,w.bubbleFormats)(X),V=X.offset(this.scroll),et=D[0].oldValue.replace(y.default.CONTENTS,""),Q=new h.default().insert(et),rt=new h.default().insert(X.value()),ot=new h.default().retain(V).concat(Q.diff(rt,j));k=ot.reduce(function(pt,mt){return mt.insert?pt.insert(mt.insert,G):pt.push(mt)},new h.default),this.delta=Z.compose(k)}else this.delta=this.getDelta(),(!k||!(0,L.default)(Z.compose(k),this.delta))&&(k=Z.diff(this.delta,j));return k}}]),W}();function z(W,U){return Object.keys(U).reduce(function(k,D){return W[D]==null||(U[D]===W[D]?k[D]=U[D]:Array.isArray(U[D])?U[D].indexOf(W[D])<0&&(k[D]=U[D].concat([W[D]])):k[D]=[U[D],W[D]]),k},{})}function it(W){return W.reduce(function(U,k){if(k.insert===1){var D=(0,A.default)(k.attributes);return delete D.image,U.insert({image:k.attributes.image},D)}if(k.attributes!=null&&(k.attributes.list===!0||k.attributes.bullet===!0)&&(k=(0,A.default)(k),k.attributes.list?k.attributes.list="ordered":(k.attributes.list="bullet",delete k.attributes.bullet)),typeof k.insert=="string"){var j=k.insert.replace(/\r\n/g,`
1984
1984
  `).replace(/\r/g,`
1985
- `);return U.insert(j,k.attributes)}return U.push(k)},new h.default)}n.default=K},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Range=void 0;var o=function(){function O(L,R){var C=[],P=!0,M=!1,F=void 0;try{for(var q=L[Symbol.iterator](),K;!(P=(K=q.next()).done)&&(C.push(K.value),!(R&&C.length===R));P=!0);}catch(z){M=!0,F=z}finally{try{!P&&q.return&&q.return()}finally{if(M)throw F}}return C}return function(L,R){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return O(L,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function O(L,R){for(var C=0;C<R.length;C++){var P=R[C];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,P.key,P)}}return function(L,R,C){return R&&O(L.prototype,R),C&&O(L,C),L}}(),u=i(0),f=y(u),h=i(21),d=y(h),p=i(11),c=y(p),v=i(8),m=y(v),_=i(10),b=y(_);function y(O){return O&&O.__esModule?O:{default:O}}function w(O){if(Array.isArray(O)){for(var L=0,R=Array(O.length);L<O.length;L++)R[L]=O[L];return R}else return Array.from(O)}function T(O,L){if(!(O instanceof L))throw new TypeError("Cannot call a class as a function")}var x=(0,b.default)("quill:selection"),E=function O(L){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;T(this,O),this.index=L,this.length=R},I=function(){function O(L,R){var C=this;T(this,O),this.emitter=R,this.scroll=L,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=f.default.create("cursor",this),this.lastRange=this.savedRange=new E(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){C.mouseDown||setTimeout(C.update.bind(C,m.default.sources.USER),1)}),this.emitter.on(m.default.events.EDITOR_CHANGE,function(P,M){P===m.default.events.TEXT_CHANGE&&M.length()>0&&C.update(m.default.sources.SILENT)}),this.emitter.on(m.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var P=C.getNativeRange();P!=null&&P.start.node!==C.cursor.textNode&&C.emitter.once(m.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(P.start.node,P.start.offset,P.end.node,P.end.offset)}catch{}})}}),this.emitter.on(m.default.events.SCROLL_OPTIMIZE,function(P,M){if(M.range){var F=M.range,q=F.startNode,K=F.startOffset,z=F.endNode,it=F.endOffset;C.setNativeRange(q,K,z,it)}}),this.update(m.default.sources.SILENT)}return l(O,[{key:"handleComposition",value:function(){var R=this;this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){if(R.composing=!1,R.cursor.parent){var C=R.cursor.restore();if(!C)return;setTimeout(function(){R.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var R=this;this.emitter.listenDOM("mousedown",document.body,function(){R.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){R.mouseDown=!1,R.update(m.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(R,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[R])){this.scroll.update();var P=this.getNativeRange();if(!(P==null||!P.native.collapsed||f.default.query(R,f.default.Scope.BLOCK))){if(P.start.node!==this.cursor.textNode){var M=f.default.find(P.start.node,!1);if(M==null)return;if(M instanceof f.default.Leaf){var F=M.split(P.start.offset);M.parent.insertBefore(this.cursor,F)}else M.insertBefore(this.cursor,P.start.node);this.cursor.attach()}this.cursor.format(R,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=this.scroll.length();R=Math.min(R,P-1),C=Math.min(R+C,P-1)-R;var M=void 0,F=this.scroll.leaf(R),q=o(F,2),K=q[0],z=q[1];if(K==null)return null;var it=K.position(z,!0),W=o(it,2);M=W[0],z=W[1];var U=document.createRange();if(C>0){U.setStart(M,z);var k=this.scroll.leaf(R+C),D=o(k,2);if(K=D[0],z=D[1],K==null)return null;var j=K.position(z,!0),Z=o(j,2);return M=Z[0],z=Z[1],U.setEnd(M,z),U.getBoundingClientRect()}else{var Y="left",G=void 0;return M instanceof Text?(z<M.data.length?(U.setStart(M,z),U.setEnd(M,z+1)):(U.setStart(M,z-1),U.setEnd(M,z),Y="right"),G=U.getBoundingClientRect()):(G=K.domNode.getBoundingClientRect(),z>0&&(Y="right")),{bottom:G.top+G.height,height:G.height,left:G[Y],right:G[Y],top:G.top,width:0}}}},{key:"getNativeRange",value:function(){var R=document.getSelection();if(R==null||R.rangeCount<=0)return null;var C=R.getRangeAt(0);if(C==null)return null;var P=this.normalizeNative(C);return x.info("getNativeRange",P),P}},{key:"getRange",value:function(){var R=this.getNativeRange();if(R==null)return[null,null];var C=this.normalizedToRange(R);return[C,R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(R){var C=this,P=[[R.start.node,R.start.offset]];R.native.collapsed||P.push([R.end.node,R.end.offset]);var M=P.map(function(K){var z=o(K,2),it=z[0],W=z[1],U=f.default.find(it,!0),k=U.offset(C.scroll);return W===0?k:U instanceof f.default.Container?k+U.length():k+U.index(it,W)}),F=Math.min(Math.max.apply(Math,w(M)),this.scroll.length()-1),q=Math.min.apply(Math,[F].concat(w(M)));return new E(q,F-q)}},{key:"normalizeNative",value:function(R){if(!A(this.root,R.startContainer)||!R.collapsed&&!A(this.root,R.endContainer))return null;var C={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[C.start,C.end].forEach(function(P){for(var M=P.node,F=P.offset;!(M instanceof Text)&&M.childNodes.length>0;)if(M.childNodes.length>F)M=M.childNodes[F],F=0;else if(M.childNodes.length===F)M=M.lastChild,F=M instanceof Text?M.data.length:M.childNodes.length+1;else break;P.node=M,P.offset=F}),C}},{key:"rangeToNative",value:function(R){var C=this,P=R.collapsed?[R.index]:[R.index,R.index+R.length],M=[],F=this.scroll.length();return P.forEach(function(q,K){q=Math.min(F-1,q);var z=void 0,it=C.scroll.leaf(q),W=o(it,2),U=W[0],k=W[1],D=U.position(k,K!==0),j=o(D,2);z=j[0],k=j[1],M.push(z,k)}),M.length<2&&(M=M.concat(M)),M}},{key:"scrollIntoView",value:function(R){var C=this.lastRange;if(C!=null){var P=this.getBounds(C.index,C.length);if(P!=null){var M=this.scroll.length()-1,F=this.scroll.line(Math.min(C.index,M)),q=o(F,1),K=q[0],z=K;if(C.length>0){var it=this.scroll.line(Math.min(C.index+C.length,M)),W=o(it,1);z=W[0]}if(!(K==null||z==null)){var U=R.getBoundingClientRect();P.top<U.top?R.scrollTop-=U.top-P.top:P.bottom>U.bottom&&(R.scrollTop+=P.bottom-U.bottom)}}}}},{key:"setNativeRange",value:function(R,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:R,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(x.info("setNativeRange",R,C,P,M),!(R!=null&&(this.root.parentNode==null||R.parentNode==null||P.parentNode==null))){var q=document.getSelection();if(q!=null)if(R!=null){this.hasFocus()||this.root.focus();var K=(this.getNativeRange()||{}).native;if(K==null||F||R!==K.startContainer||C!==K.startOffset||P!==K.endContainer||M!==K.endOffset){R.tagName=="BR"&&(C=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode),P.tagName=="BR"&&(M=[].indexOf.call(P.parentNode.childNodes,P),P=P.parentNode);var z=document.createRange();z.setStart(R,C),z.setEnd(P,M),q.removeAllRanges(),q.addRange(z)}}else q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof C=="string"&&(P=C,C=!1),x.info("setRange",R),R!=null){var M=this.rangeToNative(R);this.setNativeRange.apply(this,w(M).concat([C]))}else this.setNativeRange(null);this.update(P)}},{key:"update",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.default.sources.USER,C=this.lastRange,P=this.getRange(),M=o(P,2),F=M[0],q=M[1];if(this.lastRange=F,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,c.default)(C,this.lastRange)){var K;!this.composing&&q!=null&&q.native.collapsed&&q.start.node!==this.cursor.textNode&&this.cursor.restore();var z=[m.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(C),R];if((K=this.emitter).emit.apply(K,[m.default.events.EDITOR_CHANGE].concat(z)),R!==m.default.sources.SILENT){var it;(it=this.emitter).emit.apply(it,z)}}}}]),O}();function A(O,L){try{L.parentNode}catch{return!1}return L instanceof Text&&(L=L.parentNode),O.contains(L)}n.Range=E,n.default=I},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,b){for(var y=0;y<b.length;y++){var w=b[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,b,y){return b&&m(_.prototype,b),y&&m(_,y),_}}(),l=function m(_,b,y){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,b);if(w===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:m(T,b,y)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(y)}},u=i(0),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function p(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var v=function(m){c(_,m);function _(){return d(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"insertInto",value:function(y,w){y.children.length===0?l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertInto",this).call(this,y,w):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),_}(f.default.Embed);v.blotName="break",v.tagName="BR",n.default=v},function(r,n,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])};return function(c,v){p(c,v);function m(){this.constructor=c}c.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(44),u=i(30),f=i(1),h=function(p){o(c,p);function c(v){var m=p.call(this,v)||this;return m.build(),m}return c.prototype.appendChild=function(v){this.insertBefore(v)},c.prototype.attach=function(){p.prototype.attach.call(this),this.children.forEach(function(v){v.attach()})},c.prototype.build=function(){var v=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(m){try{var _=d(m);v.insertBefore(_,v.children.head||void 0)}catch(b){if(b instanceof f.ParchmentError)return;throw b}})},c.prototype.deleteAt=function(v,m){if(v===0&&m===this.length())return this.remove();this.children.forEachAt(v,m,function(_,b,y){_.deleteAt(b,y)})},c.prototype.descendant=function(v,m){var _=this.children.find(m),b=_[0],y=_[1];return v.blotName==null&&v(b)||v.blotName!=null&&b instanceof v?[b,y]:b instanceof c?b.descendant(v,y):[null,-1]},c.prototype.descendants=function(v,m,_){m===void 0&&(m=0),_===void 0&&(_=Number.MAX_VALUE);var b=[],y=_;return this.children.forEachAt(m,_,function(w,T,x){(v.blotName==null&&v(w)||v.blotName!=null&&w instanceof v)&&b.push(w),w instanceof c&&(b=b.concat(w.descendants(v,T,y))),y-=x}),b},c.prototype.detach=function(){this.children.forEach(function(v){v.detach()}),p.prototype.detach.call(this)},c.prototype.formatAt=function(v,m,_,b){this.children.forEachAt(v,m,function(y,w,T){y.formatAt(w,T,_,b)})},c.prototype.insertAt=function(v,m,_){var b=this.children.find(v),y=b[0],w=b[1];if(y)y.insertAt(w,m,_);else{var T=_==null?f.create("text",m):f.create(m,_);this.appendChild(T)}},c.prototype.insertBefore=function(v,m){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(_){return v instanceof _}))throw new f.ParchmentError("Cannot insert "+v.statics.blotName+" into "+this.statics.blotName);v.insertInto(this,m)},c.prototype.length=function(){return this.children.reduce(function(v,m){return v+m.length()},0)},c.prototype.moveChildren=function(v,m){this.children.forEach(function(_){v.insertBefore(_,m)})},c.prototype.optimize=function(v){if(p.prototype.optimize.call(this,v),this.children.length===0)if(this.statics.defaultChild!=null){var m=f.create(this.statics.defaultChild);this.appendChild(m),m.optimize(v)}else this.remove()},c.prototype.path=function(v,m){m===void 0&&(m=!1);var _=this.children.find(v,m),b=_[0],y=_[1],w=[[this,v]];return b instanceof c?w.concat(b.path(y,m)):(b!=null&&w.push([b,y]),w)},c.prototype.removeChild=function(v){this.children.remove(v)},c.prototype.replace=function(v){v instanceof c&&v.moveChildren(this),p.prototype.replace.call(this,v)},c.prototype.split=function(v,m){if(m===void 0&&(m=!1),!m){if(v===0)return this;if(v===this.length())return this.next}var _=this.clone();return this.parent.insertBefore(_,this.next),this.children.forEachAt(v,this.length(),function(b,y,w){b=b.split(y,m),_.appendChild(b)}),_},c.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},c.prototype.update=function(v,m){var _=this,b=[],y=[];v.forEach(function(w){w.target===_.domNode&&w.type==="childList"&&(b.push.apply(b,w.addedNodes),y.push.apply(y,w.removedNodes))}),y.forEach(function(w){if(!(w.parentNode!=null&&w.tagName!=="IFRAME"&&document.body.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var T=f.find(w);T!=null&&(T.domNode.parentNode==null||T.domNode.parentNode===_.domNode)&&T.detach()}}),b.filter(function(w){return w.parentNode==_.domNode}).sort(function(w,T){return w===T?0:w.compareDocumentPosition(T)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(w){var T=null;w.nextSibling!=null&&(T=f.find(w.nextSibling));var x=d(w);(x.next!=T||x.next==null)&&(x.parent!=null&&x.parent.removeChild(_),_.insertBefore(x,T||void 0))})},c}(u.default);function d(p){var c=f.find(p);if(c==null)try{c=f.create(p)}catch{c=f.create(f.Scope.INLINE),[].slice.call(p.childNodes).forEach(function(m){c.domNode.appendChild(m)}),p.parentNode&&p.parentNode.replaceChild(c.domNode,p),c.attach()}return c}n.default=h},function(r,n,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])};return function(c,v){p(c,v);function m(){this.constructor=c}c.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12),u=i(31),f=i(17),h=i(1),d=function(p){o(c,p);function c(v){var m=p.call(this,v)||this;return m.attributes=new u.default(m.domNode),m}return c.formats=function(v){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return v.tagName.toLowerCase()},c.prototype.format=function(v,m){var _=h.query(v);_ instanceof l.default?this.attributes.attribute(_,m):m&&_!=null&&(v!==this.statics.blotName||this.formats()[v]!==m)&&this.replaceWith(v,m)},c.prototype.formats=function(){var v=this.attributes.values(),m=this.statics.formats(this.domNode);return m!=null&&(v[this.statics.blotName]=m),v},c.prototype.replaceWith=function(v,m){var _=p.prototype.replaceWith.call(this,v,m);return this.attributes.copy(_),_},c.prototype.update=function(v,m){var _=this;p.prototype.update.call(this,v,m),v.some(function(b){return b.target===_.domNode&&b.type==="attributes"})&&this.attributes.build()},c.prototype.wrap=function(v,m){var _=p.prototype.wrap.call(this,v,m);return _ instanceof c&&_.statics.scope===this.statics.scope&&this.attributes.move(_),_},c}(f.default);n.default=d},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(30),u=i(1),f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.value=function(p){return!0},d.prototype.index=function(p,c){return this.domNode===p||this.domNode.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(c,1):-1},d.prototype.position=function(p,c){var v=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return p>0&&(v+=1),[this.parent.domNode,v]},d.prototype.value=function(){var p;return p={},p[this.statics.blotName]=this.statics.value(this.domNode)||!0,p},d.scope=u.Scope.INLINE_BLOT,d}(l.default);n.default=f},function(r,n,i){var o=i(11),l=i(3),u={attributes:{compose:function(h,d,p){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var c=l(!0,{},d);p||(c=Object.keys(c).reduce(function(m,_){return c[_]!=null&&(m[_]=c[_]),m},{}));for(var v in h)h[v]!==void 0&&d[v]===void 0&&(c[v]=h[v]);return Object.keys(c).length>0?c:void 0},diff:function(h,d){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var p=Object.keys(h).concat(Object.keys(d)).reduce(function(c,v){return o(h[v],d[v])||(c[v]=d[v]===void 0?null:d[v]),c},{});return Object.keys(p).length>0?p:void 0},transform:function(h,d,p){if(typeof h!="object")return d;if(typeof d=="object"){if(!p)return d;var c=Object.keys(d).reduce(function(v,m){return h[m]===void 0&&(v[m]=d[m]),v},{});return Object.keys(c).length>0?c:void 0}}},iterator:function(h){return new f(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function f(h){this.ops=h,this.index=0,this.offset=0}f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(h){h||(h=1/0);var d=this.ops[this.index];if(d){var p=this.offset,c=u.length(d);if(h>=c-p?(h=c-p,this.index+=1,this.offset=0):this.offset+=h,typeof d.delete=="number")return{delete:h};var v={};return d.attributes&&(v.attributes=d.attributes),typeof d.retain=="number"?v.retain=h:typeof d.insert=="string"?v.insert=d.insert.substr(p,h):v.insert=d.insert,v}else return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?u.length(this.ops[this.index])-this.offset:1/0},f.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},f.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,d=this.index,p=this.next(),c=this.ops.slice(this.index);return this.offset=h,this.index=d,[p].concat(c)}else return[]},r.exports=u},function(r,n){var i=function(){function o(_,b){return b!=null&&_ instanceof b}var l;try{l=Map}catch{l=function(){}}var u;try{u=Set}catch{u=function(){}}var f;try{f=Promise}catch{f=function(){}}function h(_,b,y,w,T){typeof b=="object"&&(y=b.depth,w=b.prototype,T=b.includeNonEnumerable,b=b.circular);var x=[],E=[],I=typeof Buffer<"u";typeof b>"u"&&(b=!0),typeof y>"u"&&(y=1/0);function A(O,L){if(O===null)return null;if(L===0)return O;var R,C;if(typeof O!="object")return O;if(o(O,l))R=new l;else if(o(O,u))R=new u;else if(o(O,f))R=new f(function(U,k){O.then(function(D){U(A(D,L-1))},function(D){k(A(D,L-1))})});else if(h.__isArray(O))R=[];else if(h.__isRegExp(O))R=new RegExp(O.source,m(O)),O.lastIndex&&(R.lastIndex=O.lastIndex);else if(h.__isDate(O))R=new Date(O.getTime());else{if(I&&Buffer.isBuffer(O))return Buffer.allocUnsafe?R=Buffer.allocUnsafe(O.length):R=new Buffer(O.length),O.copy(R),R;o(O,Error)?R=Object.create(O):typeof w>"u"?(C=Object.getPrototypeOf(O),R=Object.create(C)):(R=Object.create(w),C=w)}if(b){var P=x.indexOf(O);if(P!=-1)return E[P];x.push(O),E.push(R)}o(O,l)&&O.forEach(function(U,k){var D=A(k,L-1),j=A(U,L-1);R.set(D,j)}),o(O,u)&&O.forEach(function(U){var k=A(U,L-1);R.add(k)});for(var M in O){var F;C&&(F=Object.getOwnPropertyDescriptor(C,M)),!(F&&F.set==null)&&(R[M]=A(O[M],L-1))}if(Object.getOwnPropertySymbols)for(var q=Object.getOwnPropertySymbols(O),M=0;M<q.length;M++){var K=q[M],z=Object.getOwnPropertyDescriptor(O,K);z&&!z.enumerable&&!T||(R[K]=A(O[K],L-1),z.enumerable||Object.defineProperty(R,K,{enumerable:!1}))}if(T)for(var it=Object.getOwnPropertyNames(O),M=0;M<it.length;M++){var W=it[M],z=Object.getOwnPropertyDescriptor(O,W);z&&z.enumerable||(R[W]=A(O[W],L-1),Object.defineProperty(R,W,{enumerable:!1}))}return R}return A(_,y)}h.clonePrototype=function(b){if(b===null)return null;var y=function(){};return y.prototype=b,new y};function d(_){return Object.prototype.toString.call(_)}h.__objToStr=d;function p(_){return typeof _=="object"&&d(_)==="[object Date]"}h.__isDate=p;function c(_){return typeof _=="object"&&d(_)==="[object Array]"}h.__isArray=c;function v(_){return typeof _=="object"&&d(_)==="[object RegExp]"}h.__isRegExp=v;function m(_){var b="";return _.global&&(b+="g"),_.ignoreCase&&(b+="i"),_.multiline&&(b+="m"),b}return h.__getRegExpFlags=m,h}();typeof r=="object"&&r.exports&&(r.exports=i)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function R(C,P){var M=[],F=!0,q=!1,K=void 0;try{for(var z=C[Symbol.iterator](),it;!(F=(it=z.next()).done)&&(M.push(it.value),!(P&&M.length===P));F=!0);}catch(W){q=!0,K=W}finally{try{!F&&z.return&&z.return()}finally{if(q)throw K}}return M}return function(C,P){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function R(C,P){for(var M=0;M<P.length;M++){var F=P[M];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(C,F.key,F)}}return function(C,P,M){return P&&R(C.prototype,P),M&&R(C,M),C}}(),u=function R(C,P,M){C===null&&(C=Function.prototype);var F=Object.getOwnPropertyDescriptor(C,P);if(F===void 0){var q=Object.getPrototypeOf(C);return q===null?void 0:R(q,P,M)}else{if("value"in F)return F.value;var K=F.get;return K===void 0?void 0:K.call(M)}},f=i(0),h=x(f),d=i(8),p=x(d),c=i(4),v=x(c),m=i(16),_=x(m),b=i(13),y=x(b),w=i(25),T=x(w);function x(R){return R&&R.__esModule?R:{default:R}}function E(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function I(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function A(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}function O(R){return R instanceof v.default||R instanceof c.BlockEmbed}var L=function(R){A(C,R);function C(P,M){E(this,C);var F=I(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P));return F.emitter=M.emitter,Array.isArray(M.whitelist)&&(F.whitelist=M.whitelist.reduce(function(q,K){return q[K]=!0,q},{})),F.domNode.addEventListener("DOMNodeInserted",function(){}),F.optimize(),F.enable(),F}return l(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(M,F){var q=this.line(M),K=o(q,2),z=K[0],it=K[1],W=this.line(M+F),U=o(W,1),k=U[0];if(u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,M,F),k!=null&&z!==k&&it>0){if(z instanceof c.BlockEmbed||k instanceof c.BlockEmbed){this.optimize();return}if(z instanceof y.default){var D=z.newlineIndex(z.length(),!0);if(D>-1&&(z=z.split(D+1),z===k)){this.optimize();return}}else if(k instanceof y.default){var j=k.newlineIndex(0);j>-1&&k.split(j+1)}var Z=k.children.head instanceof _.default?null:k.children.head;z.moveChildren(k,Z),z.remove()}this.optimize()}},{key:"enable",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",M)}},{key:"formatAt",value:function(M,F,q,K){this.whitelist!=null&&!this.whitelist[q]||(u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,M,F,q,K),this.optimize())}},{key:"insertAt",value:function(M,F,q){if(!(q!=null&&this.whitelist!=null&&!this.whitelist[F])){if(M>=this.length())if(q==null||h.default.query(F,h.default.Scope.BLOCK)==null){var K=h.default.create(this.statics.defaultChild);this.appendChild(K),q==null&&F.endsWith(`
1986
- `)&&(F=F.slice(0,-1)),K.insertAt(0,F,q)}else{var z=h.default.create(F,q);this.appendChild(z)}else u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,M,F,q);this.optimize()}}},{key:"insertBefore",value:function(M,F){if(M.statics.scope===h.default.Scope.INLINE_BLOT){var q=h.default.create(this.statics.defaultChild);q.appendChild(M),M=q}u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,M,F)}},{key:"leaf",value:function(M){return this.path(M).pop()||[null,-1]}},{key:"line",value:function(M){return M===this.length()?this.line(M-1):this.descendant(O,M)}},{key:"lines",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,q=function K(z,it,W){var U=[],k=W;return z.children.forEachAt(it,W,function(D,j,Z){O(D)?U.push(D):D instanceof h.default.Container&&(U=U.concat(K(D,j,k))),k-=Z}),U};return q(this,M,F)}},{key:"optimize",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,M,F),M.length>0&&this.emitter.emit(p.default.events.SCROLL_OPTIMIZE,M,F))}},{key:"path",value:function(M){return u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"path",this).call(this,M).slice(1)}},{key:"update",value:function(M){if(this.batch!==!0){var F=p.default.sources.USER;typeof M=="string"&&(F=M),Array.isArray(M)||(M=this.observer.takeRecords()),M.length>0&&this.emitter.emit(p.default.events.SCROLL_BEFORE_UPDATE,F,M),u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"update",this).call(this,M.concat([])),M.length>0&&this.emitter.emit(p.default.events.SCROLL_UPDATE,F,M)}}}]),C}(h.default.Scroll);L.blotName="scroll",L.className="ql-editor",L.tagName="DIV",L.defaultChild="block",L.allowedChildren=[v.default,c.BlockEmbed,T.default],n.default=L},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SHORTKEY=n.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},l=function(){function G(V,rt){var Q=[],et=!0,ot=!1,pt=void 0;try{for(var mt=V[Symbol.iterator](),xt;!(et=(xt=mt.next()).done)&&(Q.push(xt.value),!(rt&&Q.length===rt));et=!0);}catch(At){ot=!0,pt=At}finally{try{!et&&mt.return&&mt.return()}finally{if(ot)throw pt}}return Q}return function(V,rt){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return G(V,rt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function G(V,rt){for(var Q=0;Q<rt.length;Q++){var et=rt[Q];et.enumerable=et.enumerable||!1,et.configurable=!0,"value"in et&&(et.writable=!0),Object.defineProperty(V,et.key,et)}}return function(V,rt,Q){return rt&&G(V.prototype,rt),Q&&G(V,Q),V}}(),f=i(21),h=R(f),d=i(11),p=R(d),c=i(3),v=R(c),m=i(2),_=R(m),b=i(20),y=R(b),w=i(0),T=R(w),x=i(5),E=R(x),I=i(10),A=R(I),O=i(9),L=R(O);function R(G){return G&&G.__esModule?G:{default:G}}function C(G,V,rt){return V in G?Object.defineProperty(G,V,{value:rt,enumerable:!0,configurable:!0,writable:!0}):G[V]=rt,G}function P(G,V){if(!(G instanceof V))throw new TypeError("Cannot call a class as a function")}function M(G,V){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:G}function F(G,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);G.prototype=Object.create(V&&V.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(G,V):G.__proto__=V)}var q=(0,A.default)("quill:keyboard"),K=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",z=function(G){F(V,G),u(V,null,[{key:"match",value:function(Q,et){return et=Y(et),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ot){return!!et[ot]!==Q[ot]&&et[ot]!==null})?!1:et.key===(Q.which||Q.keyCode)}}]);function V(rt,Q){P(this,V);var et=M(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,rt,Q));return et.bindings={},Object.keys(et.options.bindings).forEach(function(ot){ot==="list autofill"&&rt.scroll.whitelist!=null&&!rt.scroll.whitelist.list||et.options.bindings[ot]&&et.addBinding(et.options.bindings[ot])}),et.addBinding({key:V.keys.ENTER,shiftKey:null},D),et.addBinding({key:V.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(et.addBinding({key:V.keys.BACKSPACE},{collapsed:!0},W),et.addBinding({key:V.keys.DELETE},{collapsed:!0},U)):(et.addBinding({key:V.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},W),et.addBinding({key:V.keys.DELETE},{collapsed:!0,suffix:/^.?$/},U)),et.addBinding({key:V.keys.BACKSPACE},{collapsed:!1},k),et.addBinding({key:V.keys.DELETE},{collapsed:!1},k),et.addBinding({key:V.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},W),et.listen(),et}return u(V,[{key:"addBinding",value:function(Q){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pt=Y(Q);if(pt==null||pt.key==null)return q.warn("Attempted to add invalid keyboard binding",pt);typeof et=="function"&&(et={handler:et}),typeof ot=="function"&&(ot={handler:ot}),pt=(0,v.default)(pt,et,ot),this.bindings[pt.key]=this.bindings[pt.key]||[],this.bindings[pt.key].push(pt)}},{key:"listen",value:function(){var Q=this;this.quill.root.addEventListener("keydown",function(et){if(!et.defaultPrevented){var ot=et.which||et.keyCode,pt=(Q.bindings[ot]||[]).filter(function(ce){return V.match(et,ce)});if(pt.length!==0){var mt=Q.quill.getSelection();if(!(mt==null||!Q.quill.hasFocus())){var xt=Q.quill.getLine(mt.index),At=l(xt,2),oe=At[0],qt=At[1],nt=Q.quill.getLeaf(mt.index),lt=l(nt,2),dt=lt[0],vt=lt[1],ct=mt.length===0?[dt,vt]:Q.quill.getLeaf(mt.index+mt.length),Pt=l(ct,2),Lt=Pt[0],Nt=Pt[1],He=dt instanceof T.default.Text?dt.value().slice(0,vt):"",Ge=Lt instanceof T.default.Text?Lt.value().slice(Nt):"",Qt={collapsed:mt.length===0,empty:mt.length===0&&oe.length()<=1,format:Q.quill.getFormat(mt),offset:qt,prefix:He,suffix:Ge},Es=pt.some(function(ce){if(ce.collapsed!=null&&ce.collapsed!==Qt.collapsed||ce.empty!=null&&ce.empty!==Qt.empty||ce.offset!=null&&ce.offset!==Qt.offset)return!1;if(Array.isArray(ce.format)){if(ce.format.every(function(lr){return Qt.format[lr]==null}))return!1}else if(o(ce.format)==="object"&&!Object.keys(ce.format).every(function(lr){return ce.format[lr]===!0?Qt.format[lr]!=null:ce.format[lr]===!1?Qt.format[lr]==null:(0,p.default)(ce.format[lr],Qt.format[lr])}))return!1;return ce.prefix!=null&&!ce.prefix.test(Qt.prefix)||ce.suffix!=null&&!ce.suffix.test(Qt.suffix)?!1:ce.handler.call(Q,mt,Qt)!==!0});Es&&et.preventDefault()}}}})}}]),V}(L.default);z.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},z.DEFAULTS={bindings:{bold:Z("bold"),italic:Z("italic"),underline:Z("underline"),indent:{key:z.keys.TAB,format:["blockquote","indent","list"],handler:function(V,rt){if(rt.collapsed&&rt.offset!==0)return!0;this.quill.format("indent","+1",E.default.sources.USER)}},outdent:{key:z.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(V,rt){if(rt.collapsed&&rt.offset!==0)return!0;this.quill.format("indent","-1",E.default.sources.USER)}},"outdent backspace":{key:z.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(V,rt){rt.format.indent!=null?this.quill.format("indent","-1",E.default.sources.USER):rt.format.list!=null&&this.quill.format("list",!1,E.default.sources.USER)}},"indent code-block":j(!0),"outdent code-block":j(!1),"remove tab":{key:z.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(V){this.quill.deleteText(V.index-1,1,E.default.sources.USER)}},tab:{key:z.keys.TAB,handler:function(V){this.quill.history.cutoff();var rt=new _.default().retain(V.index).delete(V.length).insert(" ");this.quill.updateContents(rt,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index+1,E.default.sources.SILENT)}},"list empty enter":{key:z.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(V,rt){this.quill.format("list",!1,E.default.sources.USER),rt.format.indent&&this.quill.format("indent",!1,E.default.sources.USER)}},"checklist enter":{key:z.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(V){var rt=this.quill.getLine(V.index),Q=l(rt,2),et=Q[0],ot=Q[1],pt=(0,v.default)({},et.formats(),{list:"checked"}),mt=new _.default().retain(V.index).insert(`
1987
- `,pt).retain(et.length()-ot-1).retain(1,{list:"unchecked"});this.quill.updateContents(mt,E.default.sources.USER),this.quill.setSelection(V.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(V,rt){var Q=this.quill.getLine(V.index),et=l(Q,2),ot=et[0],pt=et[1],mt=new _.default().retain(V.index).insert(`
1988
- `,rt.format).retain(ot.length()-pt-1).retain(1,{header:null});this.quill.updateContents(mt,E.default.sources.USER),this.quill.setSelection(V.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(V,rt){var Q=rt.prefix.length,et=this.quill.getLine(V.index),ot=l(et,2),pt=ot[0],mt=ot[1];if(mt>Q)return!0;var xt=void 0;switch(rt.prefix.trim()){case"[]":case"[ ]":xt="unchecked";break;case"[x]":xt="checked";break;case"-":case"*":xt="bullet";break;default:xt="ordered"}this.quill.insertText(V.index," ",E.default.sources.USER),this.quill.history.cutoff();var At=new _.default().retain(V.index-mt).delete(Q+1).retain(pt.length()-2-mt).retain(1,{list:xt});this.quill.updateContents(At,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index-Q,E.default.sources.SILENT)}},"code exit":{key:z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(V){var rt=this.quill.getLine(V.index),Q=l(rt,2),et=Q[0],ot=Q[1],pt=new _.default().retain(V.index+et.length()-ot-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(pt,E.default.sources.USER)}},"embed left":it(z.keys.LEFT,!1),"embed left shift":it(z.keys.LEFT,!0),"embed right":it(z.keys.RIGHT,!1),"embed right shift":it(z.keys.RIGHT,!0)}};function it(G,V){var rt,Q=G===z.keys.LEFT?"prefix":"suffix";return rt={key:G,shiftKey:V,altKey:null},C(rt,Q,/^$/),C(rt,"handler",function(ot){var pt=ot.index;G===z.keys.RIGHT&&(pt+=ot.length+1);var mt=this.quill.getLeaf(pt),xt=l(mt,1),At=xt[0];return At instanceof T.default.Embed?(G===z.keys.LEFT?V?this.quill.setSelection(ot.index-1,ot.length+1,E.default.sources.USER):this.quill.setSelection(ot.index-1,E.default.sources.USER):V?this.quill.setSelection(ot.index,ot.length+1,E.default.sources.USER):this.quill.setSelection(ot.index+ot.length+1,E.default.sources.USER),!1):!0}),rt}function W(G,V){if(!(G.index===0||this.quill.getLength()<=1)){var rt=this.quill.getLine(G.index),Q=l(rt,1),et=Q[0],ot={};if(V.offset===0){var pt=this.quill.getLine(G.index-1),mt=l(pt,1),xt=mt[0];if(xt!=null&&xt.length()>1){var At=et.formats(),oe=this.quill.getFormat(G.index-1,1);ot=y.default.attributes.diff(At,oe)||{}}}var qt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(V.prefix)?2:1;this.quill.deleteText(G.index-qt,qt,E.default.sources.USER),Object.keys(ot).length>0&&this.quill.formatLine(G.index-qt,qt,ot,E.default.sources.USER),this.quill.focus()}}function U(G,V){var rt=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(V.suffix)?2:1;if(!(G.index>=this.quill.getLength()-rt)){var Q={},et=0,ot=this.quill.getLine(G.index),pt=l(ot,1),mt=pt[0];if(V.offset>=mt.length()-1){var xt=this.quill.getLine(G.index+1),At=l(xt,1),oe=At[0];if(oe){var qt=mt.formats(),nt=this.quill.getFormat(G.index,1);Q=y.default.attributes.diff(qt,nt)||{},et=oe.length()}}this.quill.deleteText(G.index,rt,E.default.sources.USER),Object.keys(Q).length>0&&this.quill.formatLine(G.index+et-1,rt,Q,E.default.sources.USER)}}function k(G){var V=this.quill.getLines(G),rt={};if(V.length>1){var Q=V[0].formats(),et=V[V.length-1].formats();rt=y.default.attributes.diff(et,Q)||{}}this.quill.deleteText(G,E.default.sources.USER),Object.keys(rt).length>0&&this.quill.formatLine(G.index,1,rt,E.default.sources.USER),this.quill.setSelection(G.index,E.default.sources.SILENT),this.quill.focus()}function D(G,V){var rt=this;G.length>0&&this.quill.scroll.deleteAt(G.index,G.length);var Q=Object.keys(V.format).reduce(function(et,ot){return T.default.query(ot,T.default.Scope.BLOCK)&&!Array.isArray(V.format[ot])&&(et[ot]=V.format[ot]),et},{});this.quill.insertText(G.index,`
1989
- `,Q,E.default.sources.USER),this.quill.setSelection(G.index+1,E.default.sources.SILENT),this.quill.focus(),Object.keys(V.format).forEach(function(et){Q[et]==null&&(Array.isArray(V.format[et])||et!=="link"&&rt.quill.format(et,V.format[et],E.default.sources.USER))})}function j(G){return{key:z.keys.TAB,shiftKey:!G,format:{"code-block":!0},handler:function(rt){var Q=T.default.query("code-block"),et=rt.index,ot=rt.length,pt=this.quill.scroll.descendant(Q,et),mt=l(pt,2),xt=mt[0],At=mt[1];if(xt!=null){var oe=this.quill.getIndex(xt),qt=xt.newlineIndex(At,!0)+1,nt=xt.newlineIndex(oe+At+ot),lt=xt.domNode.textContent.slice(qt,nt).split(`
1990
- `);At=0,lt.forEach(function(dt,vt){G?(xt.insertAt(qt+At,Q.TAB),At+=Q.TAB.length,vt===0?et+=Q.TAB.length:ot+=Q.TAB.length):dt.startsWith(Q.TAB)&&(xt.deleteAt(qt+At,Q.TAB.length),At-=Q.TAB.length,vt===0?et-=Q.TAB.length:ot-=Q.TAB.length),At+=dt.length+1}),this.quill.update(E.default.sources.USER),this.quill.setSelection(et,ot,E.default.sources.SILENT)}}}}function Z(G){return{key:G[0].toUpperCase(),shortKey:!0,handler:function(rt,Q){this.quill.format(G,!Q.format[G],E.default.sources.USER)}}}function Y(G){if(typeof G=="string"||typeof G=="number")return Y({key:G});if((typeof G>"u"?"undefined":o(G))==="object"&&(G=(0,h.default)(G,!1)),typeof G.key=="string")if(z.keys[G.key.toUpperCase()]!=null)G.key=z.keys[G.key.toUpperCase()];else if(G.key.length===1)G.key=G.key.toUpperCase().charCodeAt(0);else return null;return G.shortKey&&(G[K]=G.shortKey,delete G.shortKey),G}n.default=z,n.SHORTKEY=K},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function y(w,T){var x=[],E=!0,I=!1,A=void 0;try{for(var O=w[Symbol.iterator](),L;!(E=(L=O.next()).done)&&(x.push(L.value),!(T&&x.length===T));E=!0);}catch(R){I=!0,A=R}finally{try{!E&&O.return&&O.return()}finally{if(I)throw A}}return x}return function(w,T){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return y(w,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function y(w,T,x){w===null&&(w=Function.prototype);var E=Object.getOwnPropertyDescriptor(w,T);if(E===void 0){var I=Object.getPrototypeOf(w);return I===null?void 0:y(I,T,x)}else{if("value"in E)return E.value;var A=E.get;return A===void 0?void 0:A.call(x)}},u=function(){function y(w,T){for(var x=0;x<T.length;x++){var E=T[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,T,x){return T&&y(w.prototype,T),x&&y(w,x),w}}(),f=i(0),h=c(f),d=i(7),p=c(d);function c(y){return y&&y.__esModule?y:{default:y}}function v(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function m(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function _(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var b=function(y){_(w,y),u(w,null,[{key:"value",value:function(){}}]);function w(T,x){v(this,w);var E=m(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T));return E.selection=x,E.textNode=document.createTextNode(w.CONTENTS),E.domNode.appendChild(E.textNode),E._length=0,E}return u(w,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(x,E){if(this._length!==0)return l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,x,E);for(var I=this,A=0;I!=null&&I.statics.scope!==h.default.Scope.BLOCK_BLOT;)A+=I.offset(I.parent),I=I.parent;I!=null&&(this._length=w.CONTENTS.length,I.optimize(),I.formatAt(A,w.CONTENTS.length,x,E),this._length=0)}},{key:"index",value:function(x,E){return x===this.textNode?0:l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"index",this).call(this,x,E)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var x=this.textNode,E=this.selection.getNativeRange(),I=void 0,A=void 0,O=void 0;if(E!=null&&E.start.node===x&&E.end.node===x){var L=[x,E.start.offset,E.end.offset];I=L[0],A=L[1],O=L[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==w.CONTENTS){var R=this.textNode.data.split(w.CONTENTS).join("");this.next instanceof p.default?(I=this.next.domNode,this.next.insertAt(0,R),this.textNode.data=w.CONTENTS):(this.textNode.data=R,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(w.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),A!=null){var C=[A,O].map(function(M){return Math.max(0,Math.min(I.data.length,M-1))}),P=o(C,2);return A=P[0],O=P[1],{startNode:I,startOffset:A,endNode:I,endOffset:O}}}}},{key:"update",value:function(x,E){var I=this;if(x.some(function(O){return O.type==="characterData"&&O.target===I.textNode})){var A=this.restore();A&&(E.range=A)}}},{key:"value",value:function(){return""}}]),w}(h.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),l=h(o),u=i(4),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function p(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var v=function(m){c(_,m);function _(){return d(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return _}(l.default.Container);v.allowedChildren=[f.default,u.BlockEmbed,v],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorStyle=n.ColorClass=n.ColorAttributor=void 0;var o=function(){function b(y,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,w,T){return w&&b(y.prototype,w),T&&b(y,T),y}}(),l=function b(y,w,T){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,w);if(x===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:b(E,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(0),f=h(u);function h(b){return b&&b.__esModule?b:{default:b}}function d(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function p(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function c(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var v=function(b){c(y,b);function y(){return d(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"value",value:function(T){var x=l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,T);return x.startsWith("rgb(")?(x=x.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+x.split(",").map(function(E){return("00"+parseInt(E).toString(16)).slice(-2)}).join("")):x}}]),y}(f.default.Attributor.Style),m=new f.default.Attributor.Class("color","ql-color",{scope:f.default.Scope.INLINE}),_=new v("color","color",{scope:f.default.Scope.INLINE});n.ColorAttributor=v,n.ColorClass=m,n.ColorStyle=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.sanitize=n.default=void 0;var o=function(){function _(b,y){for(var w=0;w<y.length;w++){var T=y[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(b,T.key,T)}}return function(b,y,w){return y&&_(b.prototype,y),w&&_(b,w),b}}(),l=function _(b,y,w){b===null&&(b=Function.prototype);var T=Object.getOwnPropertyDescriptor(b,y);if(T===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:_(x,y,w)}else{if("value"in T)return T.value;var E=T.get;return E===void 0?void 0:E.call(w)}},u=i(6),f=h(u);function h(_){return _&&_.__esModule?_:{default:_}}function d(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function p(_,b){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:_}function c(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);_.prototype=Object.create(b&&b.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(_,b):_.__proto__=b)}var v=function(_){c(b,_);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"format",value:function(w,T){if(w!==this.statics.blotName||!T)return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,w,T);T=this.constructor.sanitize(T),this.domNode.setAttribute("href",T)}}],[{key:"create",value:function(w){var T=l(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,w);return w=this.sanitize(w),T.setAttribute("href",w),T.setAttribute("rel","noopener noreferrer"),T.setAttribute("target","_blank"),T}},{key:"formats",value:function(w){return w.getAttribute("href")}},{key:"sanitize",value:function(w){return m(w,this.PROTOCOL_WHITELIST)?w:this.SANITIZED_URL}}]),b}(f.default);v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",v.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function m(_,b){var y=document.createElement("a");y.href=_;var w=y.href.slice(0,y.href.indexOf(":"));return b.indexOf(w)>-1}n.default=v,n.sanitize=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},l=function(){function b(y,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,w,T){return w&&b(y.prototype,w),T&&b(y,T),y}}(),u=i(23),f=p(u),h=i(107),d=p(h);function p(b){return b&&b.__esModule?b:{default:b}}function c(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}var v=0;function m(b,y){b.setAttribute(y,b.getAttribute(y)!=="true")}var _=function(){function b(y){var w=this;c(this,b),this.select=y,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){w.togglePicker()}),this.label.addEventListener("keydown",function(T){switch(T.keyCode){case f.default.keys.ENTER:w.togglePicker();break;case f.default.keys.ESCAPE:w.escape(),T.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return l(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),m(this.label,"aria-expanded"),m(this.options,"aria-hidden")}},{key:"buildItem",value:function(w){var T=this,x=document.createElement("span");return x.tabIndex="0",x.setAttribute("role","button"),x.classList.add("ql-picker-item"),w.hasAttribute("value")&&x.setAttribute("data-value",w.getAttribute("value")),w.textContent&&x.setAttribute("data-label",w.textContent),x.addEventListener("click",function(){T.selectItem(x,!0)}),x.addEventListener("keydown",function(E){switch(E.keyCode){case f.default.keys.ENTER:T.selectItem(x,!0),E.preventDefault();break;case f.default.keys.ESCAPE:T.escape(),E.preventDefault();break}}),x}},{key:"buildLabel",value:function(){var w=document.createElement("span");return w.classList.add("ql-picker-label"),w.innerHTML=d.default,w.tabIndex="0",w.setAttribute("role","button"),w.setAttribute("aria-expanded","false"),this.container.appendChild(w),w}},{key:"buildOptions",value:function(){var w=this,T=document.createElement("span");T.classList.add("ql-picker-options"),T.setAttribute("aria-hidden","true"),T.tabIndex="-1",T.id="ql-picker-options-"+v,v+=1,this.label.setAttribute("aria-controls",T.id),this.options=T,[].slice.call(this.select.options).forEach(function(x){var E=w.buildItem(x);T.appendChild(E),x.selected===!0&&w.selectItem(E)}),this.container.appendChild(T)}},{key:"buildPicker",value:function(){var w=this;[].slice.call(this.select.attributes).forEach(function(T){w.container.setAttribute(T.name,T.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var w=this;this.close(),setTimeout(function(){return w.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(w){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=this.container.querySelector(".ql-selected");if(w!==x&&(x!=null&&x.classList.remove("ql-selected"),w!=null&&(w.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(w.parentNode.children,w),w.hasAttribute("data-value")?this.label.setAttribute("data-value",w.getAttribute("data-value")):this.label.removeAttribute("data-value"),w.hasAttribute("data-label")?this.label.setAttribute("data-label",w.getAttribute("data-label")):this.label.removeAttribute("data-label"),T))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":o(Event))==="object"){var E=document.createEvent("Event");E.initEvent("change",!0,!0),this.select.dispatchEvent(E)}this.close()}}},{key:"update",value:function(){var w=void 0;if(this.select.selectedIndex>-1){var T=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];w=this.select.options[this.select.selectedIndex],this.selectItem(T)}else this.selectItem(null);var x=w!=null&&w!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",x)}}]),b}();n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),l=q(o),u=i(5),f=q(u),h=i(4),d=q(h),p=i(16),c=q(p),v=i(25),m=q(v),_=i(24),b=q(_),y=i(35),w=q(y),T=i(6),x=q(T),E=i(22),I=q(E),A=i(7),O=q(A),L=i(55),R=q(L),C=i(42),P=q(C),M=i(23),F=q(M);function q(K){return K&&K.__esModule?K:{default:K}}f.default.register({"blots/block":d.default,"blots/block/embed":h.BlockEmbed,"blots/break":c.default,"blots/container":m.default,"blots/cursor":b.default,"blots/embed":w.default,"blots/inline":x.default,"blots/scroll":I.default,"blots/text":O.default,"modules/clipboard":R.default,"modules/history":P.default,"modules/keyboard":F.default}),l.default.register(d.default,c.default,b.default,x.default,I.default,O.default),n.default=f.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(1),l=function(){function u(f){this.domNode=f,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(u.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),u.create=function(f){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof f=="string"&&(f=f.toUpperCase(),parseInt(f).toString()===f&&(f=parseInt(f))),typeof f=="number"?h=document.createElement(this.tagName[f-1]):this.tagName.indexOf(f)>-1?h=document.createElement(f):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},u.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},u.prototype.clone=function(){var f=this.domNode.cloneNode(!1);return o.create(f)},u.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},u.prototype.deleteAt=function(f,h){var d=this.isolate(f,h);d.remove()},u.prototype.formatAt=function(f,h,d,p){var c=this.isolate(f,h);if(o.query(d,o.Scope.BLOT)!=null&&p)c.wrap(d,p);else if(o.query(d,o.Scope.ATTRIBUTE)!=null){var v=o.create(this.statics.scope);c.wrap(v),v.format(d,p)}},u.prototype.insertAt=function(f,h,d){var p=d==null?o.create("text",h):o.create(h,d),c=this.split(f);this.parent.insertBefore(p,c)},u.prototype.insertInto=function(f,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var d=null;f.children.insertBefore(this,h),h!=null&&(d=h.domNode),(this.domNode.parentNode!=f.domNode||this.domNode.nextSibling!=d)&&f.domNode.insertBefore(this.domNode,d),this.parent=f,this.attach()},u.prototype.isolate=function(f,h){var d=this.split(f);return d.split(h),d},u.prototype.length=function(){return 1},u.prototype.offset=function(f){return f===void 0&&(f=this.parent),this.parent==null||this==f?0:this.parent.children.offset(this)+this.parent.offset(f)},u.prototype.optimize=function(f){this.domNode[o.DATA_KEY]!=null&&delete this.domNode[o.DATA_KEY].mutations},u.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},u.prototype.replace=function(f){f.parent!=null&&(f.parent.insertBefore(this,f.next),f.remove())},u.prototype.replaceWith=function(f,h){var d=typeof f=="string"?o.create(f,h):f;return d.replace(this),d},u.prototype.split=function(f,h){return f===0?this:this.next},u.prototype.update=function(f,h){},u.prototype.wrap=function(f,h){var d=typeof f=="string"?o.create(f,h):f;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},u.blotName="abstract",u}();n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(12),l=i(32),u=i(33),f=i(1),h=function(){function d(p){this.attributes={},this.domNode=p,this.build()}return d.prototype.attribute=function(p,c){c?p.add(this.domNode,c)&&(p.value(this.domNode)!=null?this.attributes[p.attrName]=p:delete this.attributes[p.attrName]):(p.remove(this.domNode),delete this.attributes[p.attrName])},d.prototype.build=function(){var p=this;this.attributes={};var c=o.default.keys(this.domNode),v=l.default.keys(this.domNode),m=u.default.keys(this.domNode);c.concat(v).concat(m).forEach(function(_){var b=f.query(_,f.Scope.ATTRIBUTE);b instanceof o.default&&(p.attributes[b.attrName]=b)})},d.prototype.copy=function(p){var c=this;Object.keys(this.attributes).forEach(function(v){var m=c.attributes[v].value(c.domNode);p.format(v,m)})},d.prototype.move=function(p){var c=this;this.copy(p),Object.keys(this.attributes).forEach(function(v){c.attributes[v].remove(c.domNode)}),this.attributes={}},d.prototype.values=function(){var p=this;return Object.keys(this.attributes).reduce(function(c,v){return c[v]=p.attributes[v].value(p.domNode),c},{})},d}();n.default=h},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12);function u(h,d){var p=h.getAttribute("class")||"";return p.split(/\s+/).filter(function(c){return c.indexOf(d+"-")===0})}var f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(p){return(p.getAttribute("class")||"").split(/\s+/).map(function(c){return c.split("-").slice(0,-1).join("-")})},d.prototype.add=function(p,c){return this.canAdd(p,c)?(this.remove(p),p.classList.add(this.keyName+"-"+c),!0):!1},d.prototype.remove=function(p){var c=u(p,this.keyName);c.forEach(function(v){p.classList.remove(v)}),p.classList.length===0&&p.removeAttribute("class")},d.prototype.value=function(p){var c=u(p,this.keyName)[0]||"",v=c.slice(this.keyName.length+1);return this.canAdd(p,v)?v:""},d}(l.default);n.default=f},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12);function u(h){var d=h.split("-"),p=d.slice(1).map(function(c){return c[0].toUpperCase()+c.slice(1)}).join("");return d[0]+p}var f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(p){return(p.getAttribute("style")||"").split(";").map(function(c){var v=c.split(":");return v[0].trim()})},d.prototype.add=function(p,c){return this.canAdd(p,c)?(p.style[u(this.keyName)]=c,!0):!1},d.prototype.remove=function(p){p.style[u(this.keyName)]="",p.getAttribute("style")||p.removeAttribute("style")},d.prototype.value=function(p){var c=p.style[u(this.keyName)];return this.canAdd(p,c)?c:""},d}(l.default);n.default=f},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function f(h,d){for(var p=0;p<d.length;p++){var c=d[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,d,p){return d&&f(h.prototype,d),p&&f(h,p),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,d){l(this,f),this.quill=h,this.options=d,this.modules={}}return o(f,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(p){d.modules[p]==null&&d.addModule(p)})}},{key:"addModule",value:function(d){var p=this.quill.constructor.import("modules/"+d);return this.modules[d]=new p(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),f}();u.DEFAULTS={modules:{}},u.themes={default:u},n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function y(w,T){for(var x=0;x<T.length;x++){var E=T[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,T,x){return T&&y(w.prototype,T),x&&y(w,x),w}}(),l=function y(w,T,x){w===null&&(w=Function.prototype);var E=Object.getOwnPropertyDescriptor(w,T);if(E===void 0){var I=Object.getPrototypeOf(w);return I===null?void 0:y(I,T,x)}else{if("value"in E)return E.value;var A=E.get;return A===void 0?void 0:A.call(x)}},u=i(0),f=p(u),h=i(7),d=p(h);function p(y){return y&&y.__esModule?y:{default:y}}function c(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function v(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function m(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var _="\uFEFF",b=function(y){m(w,y);function w(T){c(this,w);var x=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T));return x.contentNode=document.createElement("span"),x.contentNode.setAttribute("contenteditable",!1),[].slice.call(x.domNode.childNodes).forEach(function(E){x.contentNode.appendChild(E)}),x.leftGuard=document.createTextNode(_),x.rightGuard=document.createTextNode(_),x.domNode.appendChild(x.leftGuard),x.domNode.appendChild(x.contentNode),x.domNode.appendChild(x.rightGuard),x}return o(w,[{key:"index",value:function(x,E){return x===this.leftGuard?0:x===this.rightGuard?1:l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"index",this).call(this,x,E)}},{key:"restore",value:function(x){var E=void 0,I=void 0,A=x.data.split(_).join("");if(x===this.leftGuard)if(this.prev instanceof d.default){var O=this.prev.length();this.prev.insertAt(O,A),E={startNode:this.prev.domNode,startOffset:O+A.length}}else I=document.createTextNode(A),this.parent.insertBefore(f.default.create(I),this),E={startNode:I,startOffset:A.length};else x===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,A),E={startNode:this.next.domNode,startOffset:A.length}):(I=document.createTextNode(A),this.parent.insertBefore(f.default.create(I),this.next),E={startNode:I,startOffset:A.length}));return x.data=_,E}},{key:"update",value:function(x,E){var I=this;x.forEach(function(A){if(A.type==="characterData"&&(A.target===I.leftGuard||A.target===I.rightGuard)){var O=I.restore(A.target);O&&(E.range=O)}})}}]),w}(f.default.Embed);n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.AlignStyle=n.AlignClass=n.AlignAttribute=void 0;var o=i(0),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var f={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new l.default.Attributor.Attribute("align","align",f),d=new l.default.Attributor.Class("align","ql-align",f),p=new l.default.Attributor.Style("align","text-align",f);n.AlignAttribute=h,n.AlignClass=d,n.AlignStyle=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.BackgroundStyle=n.BackgroundClass=void 0;var o=i(0),l=f(o),u=i(26);function f(p){return p&&p.__esModule?p:{default:p}}var h=new l.default.Attributor.Class("background","ql-bg",{scope:l.default.Scope.INLINE}),d=new u.ColorAttributor("background","background-color",{scope:l.default.Scope.INLINE});n.BackgroundClass=h,n.BackgroundStyle=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectionStyle=n.DirectionClass=n.DirectionAttribute=void 0;var o=i(0),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var f={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},h=new l.default.Attributor.Attribute("direction","dir",f),d=new l.default.Attributor.Class("direction","ql-direction",f),p=new l.default.Attributor.Style("direction","direction",f);n.DirectionAttribute=h,n.DirectionClass=d,n.DirectionStyle=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.FontClass=n.FontStyle=void 0;var o=function(){function y(w,T){for(var x=0;x<T.length;x++){var E=T[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,T,x){return T&&y(w.prototype,T),x&&y(w,x),w}}(),l=function y(w,T,x){w===null&&(w=Function.prototype);var E=Object.getOwnPropertyDescriptor(w,T);if(E===void 0){var I=Object.getPrototypeOf(w);return I===null?void 0:y(I,T,x)}else{if("value"in E)return E.value;var A=E.get;return A===void 0?void 0:A.call(x)}},u=i(0),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function p(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function c(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var v={scope:f.default.Scope.INLINE,whitelist:["serif","monospace"]},m=new f.default.Attributor.Class("font","ql-font",v),_=function(y){c(w,y);function w(){return d(this,w),p(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return o(w,[{key:"value",value:function(x){return l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"value",this).call(this,x).replace(/["']/g,"")}}]),w}(f.default.Attributor.Style),b=new _("font","font-family",v);n.FontStyle=b,n.FontClass=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SizeStyle=n.SizeClass=void 0;var o=i(0),l=u(o);function u(d){return d&&d.__esModule?d:{default:d}}var f=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});n.SizeClass=f,n.SizeStyle=h},function(r,n,i){r.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.getLastChangeIndex=n.default=void 0;var o=function(){function T(x,E){for(var I=0;I<E.length;I++){var A=E[I];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(x,A.key,A)}}return function(x,E,I){return E&&T(x.prototype,E),I&&T(x,I),x}}(),l=i(0),u=c(l),f=i(5),h=c(f),d=i(9),p=c(d);function c(T){return T&&T.__esModule?T:{default:T}}function v(T,x){if(!(T instanceof x))throw new TypeError("Cannot call a class as a function")}function m(T,x){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:T}function _(T,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);T.prototype=Object.create(x&&x.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(T,x):T.__proto__=x)}var b=function(T){_(x,T);function x(E,I){v(this,x);var A=m(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,E,I));return A.lastRecorded=0,A.ignoreChange=!1,A.clear(),A.quill.on(h.default.events.EDITOR_CHANGE,function(O,L,R,C){O!==h.default.events.TEXT_CHANGE||A.ignoreChange||(!A.options.userOnly||C===h.default.sources.USER?A.record(L,R):A.transform(L))}),A.quill.keyboard.addBinding({key:"Z",shortKey:!0},A.undo.bind(A)),A.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},A.redo.bind(A)),/Win/i.test(navigator.platform)&&A.quill.keyboard.addBinding({key:"Y",shortKey:!0},A.redo.bind(A)),A}return o(x,[{key:"change",value:function(I,A){if(this.stack[I].length!==0){var O=this.stack[I].pop();this.stack[A].push(O),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(O[I],h.default.sources.USER),this.ignoreChange=!1;var L=w(O[I]);this.quill.setSelection(L)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(I,A){if(I.ops.length!==0){this.stack.redo=[];var O=this.quill.getContents().diff(A),L=Date.now();if(this.lastRecorded+this.options.delay>L&&this.stack.undo.length>0){var R=this.stack.undo.pop();O=O.compose(R.undo),I=R.redo.compose(I)}else this.lastRecorded=L;this.stack.undo.push({redo:I,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(I){this.stack.undo.forEach(function(A){A.undo=I.transform(A.undo,!0),A.redo=I.transform(A.redo,!0)}),this.stack.redo.forEach(function(A){A.undo=I.transform(A.undo,!0),A.redo=I.transform(A.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),x}(p.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function y(T){var x=T.ops[T.ops.length-1];return x==null?!1:x.insert!=null?typeof x.insert=="string"&&x.insert.endsWith(`
1991
- `):x.attributes!=null?Object.keys(x.attributes).some(function(E){return u.default.query(E,u.default.Scope.BLOCK)!=null}):!1}function w(T){var x=T.reduce(function(I,A){return I+=A.delete||0,I},0),E=T.length()-x;return y(T)&&(E-=1),E}n.default=b,n.getLastChangeIndex=w},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BaseTooltip=void 0;var o=function(){function D(j,Z){for(var Y=0;Y<Z.length;Y++){var G=Z[Y];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(j,G.key,G)}}return function(j,Z,Y){return Z&&D(j.prototype,Z),Y&&D(j,Y),j}}(),l=function D(j,Z,Y){j===null&&(j=Function.prototype);var G=Object.getOwnPropertyDescriptor(j,Z);if(G===void 0){var V=Object.getPrototypeOf(j);return V===null?void 0:D(V,Z,Y)}else{if("value"in G)return G.value;var rt=G.get;return rt===void 0?void 0:rt.call(Y)}},u=i(3),f=L(u),h=i(2),d=L(h),p=i(8),c=L(p),v=i(23),m=L(v),_=i(34),b=L(_),y=i(59),w=L(y),T=i(60),x=L(T),E=i(28),I=L(E),A=i(61),O=L(A);function L(D){return D&&D.__esModule?D:{default:D}}function R(D,j){if(!(D instanceof j))throw new TypeError("Cannot call a class as a function")}function C(D,j){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:D}function P(D,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);D.prototype=Object.create(j&&j.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(D,j):D.__proto__=j)}var M=[!1,"center","right","justify"],F=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],q=[!1,"serif","monospace"],K=["1","2","3",!1],z=["small",!1,"large","huge"],it=function(D){P(j,D);function j(Z,Y){R(this,j);var G=C(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,Z,Y)),V=function rt(Q){if(!document.body.contains(Z.root))return document.body.removeEventListener("click",rt);G.tooltip!=null&&!G.tooltip.root.contains(Q.target)&&document.activeElement!==G.tooltip.textbox&&!G.quill.hasFocus()&&G.tooltip.hide(),G.pickers!=null&&G.pickers.forEach(function(et){et.container.contains(Q.target)||et.close()})};return Z.emitter.listenDOM("click",document.body,V),G}return o(j,[{key:"addModule",value:function(Y){var G=l(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"addModule",this).call(this,Y);return Y==="toolbar"&&this.extendToolbar(G),G}},{key:"buildButtons",value:function(Y,G){Y.forEach(function(V){var rt=V.getAttribute("class")||"";rt.split(/\s+/).forEach(function(Q){if(Q.startsWith("ql-")&&(Q=Q.slice(3),G[Q]!=null))if(Q==="direction")V.innerHTML=G[Q][""]+G[Q].rtl;else if(typeof G[Q]=="string")V.innerHTML=G[Q];else{var et=V.value||"";et!=null&&G[Q][et]&&(V.innerHTML=G[Q][et])}})})}},{key:"buildPickers",value:function(Y,G){var V=this;this.pickers=Y.map(function(Q){if(Q.classList.contains("ql-align"))return Q.querySelector("option")==null&&k(Q,M),new x.default(Q,G.align);if(Q.classList.contains("ql-background")||Q.classList.contains("ql-color")){var et=Q.classList.contains("ql-background")?"background":"color";return Q.querySelector("option")==null&&k(Q,F,et==="background"?"#ffffff":"#000000"),new w.default(Q,G[et])}else return Q.querySelector("option")==null&&(Q.classList.contains("ql-font")?k(Q,q):Q.classList.contains("ql-header")?k(Q,K):Q.classList.contains("ql-size")&&k(Q,z)),new I.default(Q)});var rt=function(){V.pickers.forEach(function(et){et.update()})};this.quill.on(c.default.events.EDITOR_CHANGE,rt)}}]),j}(b.default);it.DEFAULTS=(0,f.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var j=this,Z=this.container.querySelector("input.ql-image[type=file]");Z==null&&(Z=document.createElement("input"),Z.setAttribute("type","file"),Z.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),Z.classList.add("ql-image"),Z.addEventListener("change",function(){if(Z.files!=null&&Z.files[0]!=null){var Y=new FileReader;Y.onload=function(G){var V=j.quill.getSelection(!0);j.quill.updateContents(new d.default().retain(V.index).delete(V.length).insert({image:G.target.result}),c.default.sources.USER),j.quill.setSelection(V.index+1,c.default.sources.SILENT),Z.value=""},Y.readAsDataURL(Z.files[0])}}),this.container.appendChild(Z)),Z.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var W=function(D){P(j,D);function j(Z,Y){R(this,j);var G=C(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,Z,Y));return G.textbox=G.root.querySelector('input[type="text"]'),G.listen(),G}return o(j,[{key:"listen",value:function(){var Y=this;this.textbox.addEventListener("keydown",function(G){m.default.match(G,"enter")?(Y.save(),G.preventDefault()):m.default.match(G,"escape")&&(Y.cancel(),G.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),G!=null?this.textbox.value=G:Y!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+Y)||""),this.root.setAttribute("data-mode",Y)}},{key:"restoreFocus",value:function(){var Y=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=Y}},{key:"save",value:function(){var Y=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var G=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",Y,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",Y,c.default.sources.USER)),this.quill.root.scrollTop=G;break}case"video":Y=U(Y);case"formula":{if(!Y)break;var V=this.quill.getSelection(!0);if(V!=null){var rt=V.index+V.length;this.quill.insertEmbed(rt,this.root.getAttribute("data-mode"),Y,c.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(rt+1," ",c.default.sources.USER),this.quill.setSelection(rt+2,c.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),j}(O.default);function U(D){var j=D.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||D.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return j?(j[1]||"https")+"://www.youtube.com/embed/"+j[2]+"?showinfo=0":(j=D.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(j[1]||"https")+"://player.vimeo.com/video/"+j[2]+"/":D}function k(D,j){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;j.forEach(function(Y){var G=document.createElement("option");Y===Z?G.setAttribute("selected","selected"):G.setAttribute("value",Y),D.appendChild(G)})}n.BaseTooltip=W,n.default=it},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function l(){this.head=this.tail=null,this.length=0}return l.prototype.append=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];this.insertBefore(u[0],null),u.length>1&&this.append.apply(this,u.slice(1))},l.prototype.contains=function(u){for(var f,h=this.iterator();f=h();)if(f===u)return!0;return!1},l.prototype.insertBefore=function(u,f){u&&(u.next=f,f!=null?(u.prev=f.prev,f.prev!=null&&(f.prev.next=u),f.prev=u,f===this.head&&(this.head=u)):this.tail!=null?(this.tail.next=u,u.prev=this.tail,this.tail=u):(u.prev=null,this.head=this.tail=u),this.length+=1)},l.prototype.offset=function(u){for(var f=0,h=this.head;h!=null;){if(h===u)return f;f+=h.length(),h=h.next}return-1},l.prototype.remove=function(u){this.contains(u)&&(u.prev!=null&&(u.prev.next=u.next),u.next!=null&&(u.next.prev=u.prev),u===this.head&&(this.head=u.next),u===this.tail&&(this.tail=u.prev),this.length-=1)},l.prototype.iterator=function(u){return u===void 0&&(u=this.head),function(){var f=u;return u!=null&&(u=u.next),f}},l.prototype.find=function(u,f){f===void 0&&(f=!1);for(var h,d=this.iterator();h=d();){var p=h.length();if(u<p||f&&u===p&&(h.next==null||h.next.length()!==0))return[h,u];u-=p}return[null,0]},l.prototype.forEach=function(u){for(var f,h=this.iterator();f=h();)u(f)},l.prototype.forEachAt=function(u,f,h){if(!(f<=0))for(var d=this.find(u),p=d[0],c=d[1],v,m=u-c,_=this.iterator(p);(v=_())&&m<u+f;){var b=v.length();u>m?h(v,u-m,Math.min(f,m+b-u)):h(v,0,Math.min(b,u+f-m)),m+=b}},l.prototype.map=function(u){return this.reduce(function(f,h){return f.push(u(h)),f},[])},l.prototype.reduce=function(u,f){for(var h,d=this.iterator();h=d();)f=u(f,h);return f},l}();n.default=o},function(r,n,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])};return function(c,v){p(c,v);function m(){this.constructor=c}c.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(17),u=i(1),f={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,d=function(p){o(c,p);function c(v){var m=p.call(this,v)||this;return m.scroll=m,m.observer=new MutationObserver(function(_){m.update(_)}),m.observer.observe(m.domNode,f),m.attach(),m}return c.prototype.detach=function(){p.prototype.detach.call(this),this.observer.disconnect()},c.prototype.deleteAt=function(v,m){this.update(),v===0&&m===this.length()?this.children.forEach(function(_){_.remove()}):p.prototype.deleteAt.call(this,v,m)},c.prototype.formatAt=function(v,m,_,b){this.update(),p.prototype.formatAt.call(this,v,m,_,b)},c.prototype.insertAt=function(v,m,_){this.update(),p.prototype.insertAt.call(this,v,m,_)},c.prototype.optimize=function(v,m){var _=this;v===void 0&&(v=[]),m===void 0&&(m={}),p.prototype.optimize.call(this,m);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)v.push(b.pop());for(var y=function(E,I){I===void 0&&(I=!0),!(E==null||E===_)&&E.domNode.parentNode!=null&&(E.domNode[u.DATA_KEY].mutations==null&&(E.domNode[u.DATA_KEY].mutations=[]),I&&y(E.parent))},w=function(E){E.domNode[u.DATA_KEY]==null||E.domNode[u.DATA_KEY].mutations==null||(E instanceof l.default&&E.children.forEach(w),E.optimize(m))},T=v,x=0;T.length>0;x+=1){if(x>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(T.forEach(function(E){var I=u.find(E.target,!0);I!=null&&(I.domNode===E.target&&(E.type==="childList"?(y(u.find(E.previousSibling,!1)),[].forEach.call(E.addedNodes,function(A){var O=u.find(A,!1);y(O,!1),O instanceof l.default&&O.children.forEach(function(L){y(L,!1)})})):E.type==="attributes"&&y(I.prev)),y(I))}),this.children.forEach(w),T=[].slice.call(this.observer.takeRecords()),b=T.slice();b.length>0;)v.push(b.pop())}},c.prototype.update=function(v,m){var _=this;m===void 0&&(m={}),v=v||this.observer.takeRecords(),v.map(function(b){var y=u.find(b.target,!0);return y==null?null:y.domNode[u.DATA_KEY].mutations==null?(y.domNode[u.DATA_KEY].mutations=[b],y):(y.domNode[u.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===_||b.domNode[u.DATA_KEY]==null||b.update(b.domNode[u.DATA_KEY].mutations||[],m)}),this.domNode[u.DATA_KEY].mutations!=null&&p.prototype.update.call(this,this.domNode[u.DATA_KEY].mutations,m),this.optimize(v,m)},c.blotName="scroll",c.defaultChild="block",c.scope=u.Scope.BLOCK_BLOT,c.tagName="DIV",c}(l.default);n.default=d},function(r,n,i){var o=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var v in c)c.hasOwnProperty(v)&&(p[v]=c[v])};return function(p,c){d(p,c);function v(){this.constructor=p}p.prototype=c===null?Object.create(c):(v.prototype=c.prototype,new v)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(18),u=i(1);function f(d,p){if(Object.keys(d).length!==Object.keys(p).length)return!1;for(var c in d)if(d[c]!==p[c])return!1;return!0}var h=function(d){o(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.formats=function(c){if(c.tagName!==p.tagName)return d.formats.call(this,c)},p.prototype.format=function(c,v){var m=this;c===this.statics.blotName&&!v?(this.children.forEach(function(_){_ instanceof l.default||(_=_.wrap(p.blotName,!0)),m.attributes.copy(_)}),this.unwrap()):d.prototype.format.call(this,c,v)},p.prototype.formatAt=function(c,v,m,_){if(this.formats()[m]!=null||u.query(m,u.Scope.ATTRIBUTE)){var b=this.isolate(c,v);b.format(m,_)}else d.prototype.formatAt.call(this,c,v,m,_)},p.prototype.optimize=function(c){d.prototype.optimize.call(this,c);var v=this.formats();if(Object.keys(v).length===0)return this.unwrap();var m=this.next;m instanceof p&&m.prev===this&&f(v,m.formats())&&(m.moveChildren(this),m.remove())},p.blotName="inline",p.scope=u.Scope.INLINE_BLOT,p.tagName="SPAN",p}(l.default);n.default=h},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(18),u=i(1),f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.formats=function(p){var c=u.query(d.blotName).tagName;if(p.tagName!==c)return h.formats.call(this,p)},d.prototype.format=function(p,c){u.query(p,u.Scope.BLOCK)!=null&&(p===this.statics.blotName&&!c?this.replaceWith(d.blotName):h.prototype.format.call(this,p,c))},d.prototype.formatAt=function(p,c,v,m){u.query(v,u.Scope.BLOCK)!=null?this.format(v,m):h.prototype.formatAt.call(this,p,c,v,m)},d.prototype.insertAt=function(p,c,v){if(v==null||u.query(c,u.Scope.INLINE)!=null)h.prototype.insertAt.call(this,p,c,v);else{var m=this.split(p),_=u.create(c,v);m.parent.insertBefore(_,m)}},d.prototype.update=function(p,c){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,p,c)},d.blotName="block",d.scope=u.Scope.BLOCK_BLOT,d.tagName="P",d}(l.default);n.default=f},function(r,n,i){var o=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var p in d)d.hasOwnProperty(p)&&(h[p]=d[p])};return function(h,d){f(h,d);function p(){this.constructor=h}h.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(19),u=function(f){o(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.formats=function(d){},h.prototype.format=function(d,p){f.prototype.formatAt.call(this,0,this.length(),d,p)},h.prototype.formatAt=function(d,p,c,v){d===0&&p===this.length()?this.format(c,v):f.prototype.formatAt.call(this,d,p,c,v)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(l.default);n.default=u},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(19),u=i(1),f=function(h){o(d,h);function d(p){var c=h.call(this,p)||this;return c.text=c.statics.value(c.domNode),c}return d.create=function(p){return document.createTextNode(p)},d.value=function(p){var c=p.data;return c.normalize&&(c=c.normalize()),c},d.prototype.deleteAt=function(p,c){this.domNode.data=this.text=this.text.slice(0,p)+this.text.slice(p+c)},d.prototype.index=function(p,c){return this.domNode===p?c:-1},d.prototype.insertAt=function(p,c,v){v==null?(this.text=this.text.slice(0,p)+c+this.text.slice(p),this.domNode.data=this.text):h.prototype.insertAt.call(this,p,c,v)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(p){h.prototype.optimize.call(this,p),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(p,c){return[this.domNode,p]},d.prototype.split=function(p,c){if(c===void 0&&(c=!1),!c){if(p===0)return this;if(p===this.length())return this.next}var v=u.create(this.domNode.splitText(p));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},d.prototype.update=function(p,c){var v=this;p.some(function(m){return m.type==="characterData"&&m.target===v.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=u.Scope.INLINE_BLOT,d}(l.default);n.default=f},function(r,n,i){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(u,f){return arguments.length>1&&!this.contains(u)==!f?f:l.call(this,u)}}String.prototype.startsWith||(String.prototype.startsWith=function(u,f){return f=f||0,this.substr(f,u.length)===u}),String.prototype.endsWith||(String.prototype.endsWith=function(u,f){var h=this.toString();(typeof f!="number"||!isFinite(f)||Math.floor(f)!==f||f>h.length)&&(f=h.length),f-=u.length;var d=h.indexOf(u,f);return d!==-1&&d===f}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof f!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),d=h.length>>>0,p=arguments[1],c,v=0;v<d;v++)if(c=h[v],f.call(p,c,v,h))return c}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(r,n){var i=-1,o=1,l=0;function u(x,E,I){if(x==E)return x?[[l,x]]:[];(I<0||x.length<I)&&(I=null);var A=p(x,E),O=x.substring(0,A);x=x.substring(A),E=E.substring(A),A=c(x,E);var L=x.substring(x.length-A);x=x.substring(0,x.length-A),E=E.substring(0,E.length-A);var R=f(x,E);return O&&R.unshift([l,O]),L&&R.push([l,L]),m(R),I!=null&&(R=y(R,I)),R=w(R),R}function f(x,E){var I;if(!x)return[[o,E]];if(!E)return[[i,x]];var A=x.length>E.length?x:E,O=x.length>E.length?E:x,L=A.indexOf(O);if(L!=-1)return I=[[o,A.substring(0,L)],[l,O],[o,A.substring(L+O.length)]],x.length>E.length&&(I[0][0]=I[2][0]=i),I;if(O.length==1)return[[i,x],[o,E]];var R=v(x,E);if(R){var C=R[0],P=R[1],M=R[2],F=R[3],q=R[4],K=u(C,M),z=u(P,F);return K.concat([[l,q]],z)}return h(x,E)}function h(x,E){for(var I=x.length,A=E.length,O=Math.ceil((I+A)/2),L=O,R=2*O,C=new Array(R),P=new Array(R),M=0;M<R;M++)C[M]=-1,P[M]=-1;C[L+1]=0,P[L+1]=0;for(var F=I-A,q=F%2!=0,K=0,z=0,it=0,W=0,U=0;U<O;U++){for(var k=-U+K;k<=U-z;k+=2){var D=L+k,j;k==-U||k!=U&&C[D-1]<C[D+1]?j=C[D+1]:j=C[D-1]+1;for(var Z=j-k;j<I&&Z<A&&x.charAt(j)==E.charAt(Z);)j++,Z++;if(C[D]=j,j>I)z+=2;else if(Z>A)K+=2;else if(q){var Y=L+F-k;if(Y>=0&&Y<R&&P[Y]!=-1){var G=I-P[Y];if(j>=G)return d(x,E,j,Z)}}}for(var V=-U+it;V<=U-W;V+=2){var Y=L+V,G;V==-U||V!=U&&P[Y-1]<P[Y+1]?G=P[Y+1]:G=P[Y-1]+1;for(var rt=G-V;G<I&&rt<A&&x.charAt(I-G-1)==E.charAt(A-rt-1);)G++,rt++;if(P[Y]=G,G>I)W+=2;else if(rt>A)it+=2;else if(!q){var D=L+F-V;if(D>=0&&D<R&&C[D]!=-1){var j=C[D],Z=L+j-D;if(G=I-G,j>=G)return d(x,E,j,Z)}}}}return[[i,x],[o,E]]}function d(x,E,I,A){var O=x.substring(0,I),L=E.substring(0,A),R=x.substring(I),C=E.substring(A),P=u(O,L),M=u(R,C);return P.concat(M)}function p(x,E){if(!x||!E||x.charAt(0)!=E.charAt(0))return 0;for(var I=0,A=Math.min(x.length,E.length),O=A,L=0;I<O;)x.substring(L,O)==E.substring(L,O)?(I=O,L=I):A=O,O=Math.floor((A-I)/2+I);return O}function c(x,E){if(!x||!E||x.charAt(x.length-1)!=E.charAt(E.length-1))return 0;for(var I=0,A=Math.min(x.length,E.length),O=A,L=0;I<O;)x.substring(x.length-O,x.length-L)==E.substring(E.length-O,E.length-L)?(I=O,L=I):A=O,O=Math.floor((A-I)/2+I);return O}function v(x,E){var I=x.length>E.length?x:E,A=x.length>E.length?E:x;if(I.length<4||A.length*2<I.length)return null;function O(z,it,W){for(var U=z.substring(W,W+Math.floor(z.length/4)),k=-1,D="",j,Z,Y,G;(k=it.indexOf(U,k+1))!=-1;){var V=p(z.substring(W),it.substring(k)),rt=c(z.substring(0,W),it.substring(0,k));D.length<rt+V&&(D=it.substring(k-rt,k)+it.substring(k,k+V),j=z.substring(0,W-rt),Z=z.substring(W+V),Y=it.substring(0,k-rt),G=it.substring(k+V))}return D.length*2>=z.length?[j,Z,Y,G,D]:null}var L=O(I,A,Math.ceil(I.length/4)),R=O(I,A,Math.ceil(I.length/2)),C;if(!L&&!R)return null;R?L?C=L[4].length>R[4].length?L:R:C=R:C=L;var P,M,F,q;x.length>E.length?(P=C[0],M=C[1],F=C[2],q=C[3]):(F=C[0],q=C[1],P=C[2],M=C[3]);var K=C[4];return[P,M,F,q,K]}function m(x){x.push([l,""]);for(var E=0,I=0,A=0,O="",L="",R;E<x.length;)switch(x[E][0]){case o:A++,L+=x[E][1],E++;break;case i:I++,O+=x[E][1],E++;break;case l:I+A>1?(I!==0&&A!==0&&(R=p(L,O),R!==0&&(E-I-A>0&&x[E-I-A-1][0]==l?x[E-I-A-1][1]+=L.substring(0,R):(x.splice(0,0,[l,L.substring(0,R)]),E++),L=L.substring(R),O=O.substring(R)),R=c(L,O),R!==0&&(x[E][1]=L.substring(L.length-R)+x[E][1],L=L.substring(0,L.length-R),O=O.substring(0,O.length-R))),I===0?x.splice(E-A,I+A,[o,L]):A===0?x.splice(E-I,I+A,[i,O]):x.splice(E-I-A,I+A,[i,O],[o,L]),E=E-I-A+(I?1:0)+(A?1:0)+1):E!==0&&x[E-1][0]==l?(x[E-1][1]+=x[E][1],x.splice(E,1)):E++,A=0,I=0,O="",L="";break}x[x.length-1][1]===""&&x.pop();var C=!1;for(E=1;E<x.length-1;)x[E-1][0]==l&&x[E+1][0]==l&&(x[E][1].substring(x[E][1].length-x[E-1][1].length)==x[E-1][1]?(x[E][1]=x[E-1][1]+x[E][1].substring(0,x[E][1].length-x[E-1][1].length),x[E+1][1]=x[E-1][1]+x[E+1][1],x.splice(E-1,1),C=!0):x[E][1].substring(0,x[E+1][1].length)==x[E+1][1]&&(x[E-1][1]+=x[E+1][1],x[E][1]=x[E][1].substring(x[E+1][1].length)+x[E+1][1],x.splice(E+1,1),C=!0)),E++;C&&m(x)}var _=u;_.INSERT=o,_.DELETE=i,_.EQUAL=l,r.exports=_;function b(x,E){if(E===0)return[l,x];for(var I=0,A=0;A<x.length;A++){var O=x[A];if(O[0]===i||O[0]===l){var L=I+O[1].length;if(E===L)return[A+1,x];if(E<L){x=x.slice();var R=E-I,C=[O[0],O[1].slice(0,R)],P=[O[0],O[1].slice(R)];return x.splice(A,1,C,P),[A+1,x]}else I=L}}throw new Error("cursor_pos is out of bounds!")}function y(x,E){var I=b(x,E),A=I[1],O=I[0],L=A[O],R=A[O+1];if(L==null)return x;if(L[0]!==l)return x;if(R!=null&&L[1]+R[1]===R[1]+L[1])return A.splice(O,2,R,L),T(A,O,2);if(R!=null&&R[1].indexOf(L[1])===0){A.splice(O,2,[R[0],L[1]],[0,L[1]]);var C=R[1].slice(L[1].length);return C.length>0&&A.splice(O+2,0,[R[0],C]),T(A,O,3)}else return x}function w(x){for(var E=!1,I=function(R){return R.charCodeAt(0)>=56320&&R.charCodeAt(0)<=57343},A=function(R){return R.charCodeAt(R.length-1)>=55296&&R.charCodeAt(R.length-1)<=56319},O=2;O<x.length;O+=1)x[O-2][0]===l&&A(x[O-2][1])&&x[O-1][0]===i&&I(x[O-1][1])&&x[O][0]===o&&I(x[O][1])&&(E=!0,x[O-1][1]=x[O-2][1].slice(-1)+x[O-1][1],x[O][1]=x[O-2][1].slice(-1)+x[O][1],x[O-2][1]=x[O-2][1].slice(0,-1));if(!E)return x;for(var L=[],O=0;O<x.length;O+=1)x[O][1].length>0&&L.push(x[O]);return L}function T(x,E,I){for(var A=E+I-1;A>=0&&A>=E-1;A--)if(A+1<x.length){var O=x[A],L=x[A+1];O[0]===L[1]&&x.splice(A,2,[O[0],O[1]+L[1]])}return x}},function(r,n){n=r.exports=typeof Object.keys=="function"?Object.keys:i,n.shim=i;function i(o){var l=[];for(var u in o)l.push(u);return l}},function(r,n){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";n=r.exports=i?o:l,n.supported=o;function o(u){return Object.prototype.toString.call(u)=="[object Arguments]"}n.unsupported=l;function l(u){return u&&typeof u=="object"&&typeof u.length=="number"&&Object.prototype.hasOwnProperty.call(u,"callee")&&!Object.prototype.propertyIsEnumerable.call(u,"callee")||!1}},function(r,n){var i=Object.prototype.hasOwnProperty,o="~";function l(){}Object.create&&(l.prototype=Object.create(null),new l().__proto__||(o=!1));function u(h,d,p){this.fn=h,this.context=d,this.once=p||!1}function f(){this._events=new l,this._eventsCount=0}f.prototype.eventNames=function(){var d=[],p,c;if(this._eventsCount===0)return d;for(c in p=this._events)i.call(p,c)&&d.push(o?c.slice(1):c);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(p)):d},f.prototype.listeners=function(d,p){var c=o?o+d:d,v=this._events[c];if(p)return!!v;if(!v)return[];if(v.fn)return[v.fn];for(var m=0,_=v.length,b=new Array(_);m<_;m++)b[m]=v[m].fn;return b},f.prototype.emit=function(d,p,c,v,m,_){var b=o?o+d:d;if(!this._events[b])return!1;var y=this._events[b],w=arguments.length,T,x;if(y.fn){switch(y.once&&this.removeListener(d,y.fn,void 0,!0),w){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,p),!0;case 3:return y.fn.call(y.context,p,c),!0;case 4:return y.fn.call(y.context,p,c,v),!0;case 5:return y.fn.call(y.context,p,c,v,m),!0;case 6:return y.fn.call(y.context,p,c,v,m,_),!0}for(x=1,T=new Array(w-1);x<w;x++)T[x-1]=arguments[x];y.fn.apply(y.context,T)}else{var E=y.length,I;for(x=0;x<E;x++)switch(y[x].once&&this.removeListener(d,y[x].fn,void 0,!0),w){case 1:y[x].fn.call(y[x].context);break;case 2:y[x].fn.call(y[x].context,p);break;case 3:y[x].fn.call(y[x].context,p,c);break;case 4:y[x].fn.call(y[x].context,p,c,v);break;default:if(!T)for(I=1,T=new Array(w-1);I<w;I++)T[I-1]=arguments[I];y[x].fn.apply(y[x].context,T)}}return!0},f.prototype.on=function(d,p,c){var v=new u(p,c||this),m=o?o+d:d;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],v]:this._events[m].push(v):(this._events[m]=v,this._eventsCount++),this},f.prototype.once=function(d,p,c){var v=new u(p,c||this,!0),m=o?o+d:d;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],v]:this._events[m].push(v):(this._events[m]=v,this._eventsCount++),this},f.prototype.removeListener=function(d,p,c,v){var m=o?o+d:d;if(!this._events[m])return this;if(!p)return--this._eventsCount===0?this._events=new l:delete this._events[m],this;var _=this._events[m];if(_.fn)_.fn===p&&(!v||_.once)&&(!c||_.context===c)&&(--this._eventsCount===0?this._events=new l:delete this._events[m]);else{for(var b=0,y=[],w=_.length;b<w;b++)(_[b].fn!==p||v&&!_[b].once||c&&_[b].context!==c)&&y.push(_[b]);y.length?this._events[m]=y.length===1?y[0]:y:--this._eventsCount===0?this._events=new l:delete this._events[m]}return this},f.prototype.removeAllListeners=function(d){var p;return d?(p=o?o+d:d,this._events[p]&&(--this._eventsCount===0?this._events=new l:delete this._events[p])):(this._events=new l,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prototype.setMaxListeners=function(){return this},f.prefixed=o,f.EventEmitter=f,typeof r<"u"&&(r.exports=f)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.matchText=n.matchSpacing=n.matchNewline=n.matchBlot=n.matchAttributor=n.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},l=function(){function nt(lt,dt){var vt=[],ct=!0,Pt=!1,Lt=void 0;try{for(var Nt=lt[Symbol.iterator](),He;!(ct=(He=Nt.next()).done)&&(vt.push(He.value),!(dt&&vt.length===dt));ct=!0);}catch(Ge){Pt=!0,Lt=Ge}finally{try{!ct&&Nt.return&&Nt.return()}finally{if(Pt)throw Lt}}return vt}return function(lt,dt){if(Array.isArray(lt))return lt;if(Symbol.iterator in Object(lt))return nt(lt,dt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function nt(lt,dt){for(var vt=0;vt<dt.length;vt++){var ct=dt[vt];ct.enumerable=ct.enumerable||!1,ct.configurable=!0,"value"in ct&&(ct.writable=!0),Object.defineProperty(lt,ct.key,ct)}}return function(lt,dt,vt){return dt&&nt(lt.prototype,dt),vt&&nt(lt,vt),lt}}(),f=i(3),h=P(f),d=i(2),p=P(d),c=i(0),v=P(c),m=i(5),_=P(m),b=i(10),y=P(b),w=i(9),T=P(w),x=i(36),E=i(37),I=i(13),A=P(I),O=i(26),L=i(38),R=i(39),C=i(40);function P(nt){return nt&&nt.__esModule?nt:{default:nt}}function M(nt,lt,dt){return lt in nt?Object.defineProperty(nt,lt,{value:dt,enumerable:!0,configurable:!0,writable:!0}):nt[lt]=dt,nt}function F(nt,lt){if(!(nt instanceof lt))throw new TypeError("Cannot call a class as a function")}function q(nt,lt){if(!nt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lt&&(typeof lt=="object"||typeof lt=="function")?lt:nt}function K(nt,lt){if(typeof lt!="function"&&lt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof lt);nt.prototype=Object.create(lt&&lt.prototype,{constructor:{value:nt,enumerable:!1,writable:!0,configurable:!0}}),lt&&(Object.setPrototypeOf?Object.setPrototypeOf(nt,lt):nt.__proto__=lt)}var z=(0,y.default)("quill:clipboard"),it="__ql-matcher",W=[[Node.TEXT_NODE,qt],[Node.TEXT_NODE,xt],["br",ot],[Node.ELEMENT_NODE,xt],[Node.ELEMENT_NODE,et],[Node.ELEMENT_NODE,At],[Node.ELEMENT_NODE,Q],[Node.ELEMENT_NODE,oe],["li",mt],["b",rt.bind(rt,"bold")],["i",rt.bind(rt,"italic")],["style",pt]],U=[x.AlignAttribute,L.DirectionAttribute].reduce(function(nt,lt){return nt[lt.keyName]=lt,nt},{}),k=[x.AlignStyle,E.BackgroundStyle,O.ColorStyle,L.DirectionStyle,R.FontStyle,C.SizeStyle].reduce(function(nt,lt){return nt[lt.keyName]=lt,nt},{}),D=function(nt){K(lt,nt);function lt(dt,vt){F(this,lt);var ct=q(this,(lt.__proto__||Object.getPrototypeOf(lt)).call(this,dt,vt));return ct.quill.root.addEventListener("paste",ct.onPaste.bind(ct)),ct.container=ct.quill.addContainer("ql-clipboard"),ct.container.setAttribute("contenteditable",!0),ct.container.setAttribute("tabindex",-1),ct.matchers=[],W.concat(ct.options.matchers).forEach(function(Pt){var Lt=l(Pt,2),Nt=Lt[0],He=Lt[1];!vt.matchVisual&&He===At||ct.addMatcher(Nt,He)}),ct}return u(lt,[{key:"addMatcher",value:function(vt,ct){this.matchers.push([vt,ct])}},{key:"convert",value:function(vt){if(typeof vt=="string")return this.container.innerHTML=vt.replace(/\>\r?\n +\</g,"><"),this.convert();var ct=this.quill.getFormat(this.quill.selection.savedRange.index);if(ct[A.default.blotName]){var Pt=this.container.innerText;return this.container.innerHTML="",new p.default().insert(Pt,M({},A.default.blotName,ct[A.default.blotName]))}var Lt=this.prepareMatching(),Nt=l(Lt,2),He=Nt[0],Ge=Nt[1],Qt=V(this.container,He,Ge);return Y(Qt,`
1992
- `)&&Qt.ops[Qt.ops.length-1].attributes==null&&(Qt=Qt.compose(new p.default().retain(Qt.length()-1).delete(1))),z.log("convert",this.container.innerHTML,Qt),this.container.innerHTML="",Qt}},{key:"dangerouslyPasteHTML",value:function(vt,ct){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_.default.sources.API;if(typeof vt=="string")this.quill.setContents(this.convert(vt),ct),this.quill.setSelection(0,_.default.sources.SILENT);else{var Lt=this.convert(ct);this.quill.updateContents(new p.default().retain(vt).concat(Lt),Pt),this.quill.setSelection(vt+Lt.length(),_.default.sources.SILENT)}}},{key:"onPaste",value:function(vt){var ct=this;if(!(vt.defaultPrevented||!this.quill.isEnabled())){var Pt=this.quill.getSelection(),Lt=new p.default().retain(Pt.index),Nt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(_.default.sources.SILENT),setTimeout(function(){Lt=Lt.concat(ct.convert()).delete(Pt.length),ct.quill.updateContents(Lt,_.default.sources.USER),ct.quill.setSelection(Lt.length()-Pt.length,_.default.sources.SILENT),ct.quill.scrollingContainer.scrollTop=Nt,ct.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var vt=this,ct=[],Pt=[];return this.matchers.forEach(function(Lt){var Nt=l(Lt,2),He=Nt[0],Ge=Nt[1];switch(He){case Node.TEXT_NODE:Pt.push(Ge);break;case Node.ELEMENT_NODE:ct.push(Ge);break;default:[].forEach.call(vt.container.querySelectorAll(He),function(Qt){Qt[it]=Qt[it]||[],Qt[it].push(Ge)});break}}),[ct,Pt]}}]),lt}(T.default);D.DEFAULTS={matchers:[],matchVisual:!0};function j(nt,lt,dt){return(typeof lt>"u"?"undefined":o(lt))==="object"?Object.keys(lt).reduce(function(vt,ct){return j(vt,ct,lt[ct])},nt):nt.reduce(function(vt,ct){return ct.attributes&&ct.attributes[lt]?vt.push(ct):vt.insert(ct.insert,(0,h.default)({},M({},lt,dt),ct.attributes))},new p.default)}function Z(nt){if(nt.nodeType!==Node.ELEMENT_NODE)return{};var lt="__ql-computed-style";return nt[lt]||(nt[lt]=window.getComputedStyle(nt))}function Y(nt,lt){for(var dt="",vt=nt.ops.length-1;vt>=0&&dt.length<lt.length;--vt){var ct=nt.ops[vt];if(typeof ct.insert!="string")break;dt=ct.insert+dt}return dt.slice(-1*lt.length)===lt}function G(nt){if(nt.childNodes.length===0)return!1;var lt=Z(nt);return["block","list-item"].indexOf(lt.display)>-1}function V(nt,lt,dt){return nt.nodeType===nt.TEXT_NODE?dt.reduce(function(vt,ct){return ct(nt,vt)},new p.default):nt.nodeType===nt.ELEMENT_NODE?[].reduce.call(nt.childNodes||[],function(vt,ct){var Pt=V(ct,lt,dt);return ct.nodeType===nt.ELEMENT_NODE&&(Pt=lt.reduce(function(Lt,Nt){return Nt(ct,Lt)},Pt),Pt=(ct[it]||[]).reduce(function(Lt,Nt){return Nt(ct,Lt)},Pt)),vt.concat(Pt)},new p.default):new p.default}function rt(nt,lt,dt){return j(dt,nt,!0)}function Q(nt,lt){var dt=v.default.Attributor.Attribute.keys(nt),vt=v.default.Attributor.Class.keys(nt),ct=v.default.Attributor.Style.keys(nt),Pt={};return dt.concat(vt).concat(ct).forEach(function(Lt){var Nt=v.default.query(Lt,v.default.Scope.ATTRIBUTE);Nt!=null&&(Pt[Nt.attrName]=Nt.value(nt),Pt[Nt.attrName])||(Nt=U[Lt],Nt!=null&&(Nt.attrName===Lt||Nt.keyName===Lt)&&(Pt[Nt.attrName]=Nt.value(nt)||void 0),Nt=k[Lt],Nt!=null&&(Nt.attrName===Lt||Nt.keyName===Lt)&&(Nt=k[Lt],Pt[Nt.attrName]=Nt.value(nt)||void 0))}),Object.keys(Pt).length>0&&(lt=j(lt,Pt)),lt}function et(nt,lt){var dt=v.default.query(nt);if(dt==null)return lt;if(dt.prototype instanceof v.default.Embed){var vt={},ct=dt.value(nt);ct!=null&&(vt[dt.blotName]=ct,lt=new p.default().insert(vt,dt.formats(nt)))}else typeof dt.formats=="function"&&(lt=j(lt,dt.blotName,dt.formats(nt)));return lt}function ot(nt,lt){return Y(lt,`
1985
+ `);return U.insert(j,k.attributes)}return U.push(k)},new h.default)}n.default=Y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.Range=void 0;var o=function(){function O(L,R){var C=[],P=!0,M=!1,F=void 0;try{for(var q=L[Symbol.iterator](),Y;!(P=(Y=q.next()).done)&&(C.push(Y.value),!(R&&C.length===R));P=!0);}catch(z){M=!0,F=z}finally{try{!P&&q.return&&q.return()}finally{if(M)throw F}}return C}return function(L,R){if(Array.isArray(L))return L;if(Symbol.iterator in Object(L))return O(L,R);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function O(L,R){for(var C=0;C<R.length;C++){var P=R[C];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(L,P.key,P)}}return function(L,R,C){return R&&O(L.prototype,R),C&&O(L,C),L}}(),u=i(0),f=y(u),h=i(21),d=y(h),p=i(11),c=y(p),v=i(8),m=y(v),_=i(10),b=y(_);function y(O){return O&&O.__esModule?O:{default:O}}function w(O){if(Array.isArray(O)){for(var L=0,R=Array(O.length);L<O.length;L++)R[L]=O[L];return R}else return Array.from(O)}function T(O,L){if(!(O instanceof L))throw new TypeError("Cannot call a class as a function")}var x=(0,b.default)("quill:selection"),E=function O(L){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;T(this,O),this.index=L,this.length=R},I=function(){function O(L,R){var C=this;T(this,O),this.emitter=R,this.scroll=L,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=f.default.create("cursor",this),this.lastRange=this.savedRange=new E(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){C.mouseDown||setTimeout(C.update.bind(C,m.default.sources.USER),1)}),this.emitter.on(m.default.events.EDITOR_CHANGE,function(P,M){P===m.default.events.TEXT_CHANGE&&M.length()>0&&C.update(m.default.sources.SILENT)}),this.emitter.on(m.default.events.SCROLL_BEFORE_UPDATE,function(){if(C.hasFocus()){var P=C.getNativeRange();P!=null&&P.start.node!==C.cursor.textNode&&C.emitter.once(m.default.events.SCROLL_UPDATE,function(){try{C.setNativeRange(P.start.node,P.start.offset,P.end.node,P.end.offset)}catch{}})}}),this.emitter.on(m.default.events.SCROLL_OPTIMIZE,function(P,M){if(M.range){var F=M.range,q=F.startNode,Y=F.startOffset,z=F.endNode,it=F.endOffset;C.setNativeRange(q,Y,z,it)}}),this.update(m.default.sources.SILENT)}return l(O,[{key:"handleComposition",value:function(){var R=this;this.root.addEventListener("compositionstart",function(){R.composing=!0}),this.root.addEventListener("compositionend",function(){if(R.composing=!1,R.cursor.parent){var C=R.cursor.restore();if(!C)return;setTimeout(function(){R.setNativeRange(C.startNode,C.startOffset,C.endNode,C.endOffset)},1)}})}},{key:"handleDragging",value:function(){var R=this;this.emitter.listenDOM("mousedown",document.body,function(){R.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){R.mouseDown=!1,R.update(m.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(R,C){if(!(this.scroll.whitelist!=null&&!this.scroll.whitelist[R])){this.scroll.update();var P=this.getNativeRange();if(!(P==null||!P.native.collapsed||f.default.query(R,f.default.Scope.BLOCK))){if(P.start.node!==this.cursor.textNode){var M=f.default.find(P.start.node,!1);if(M==null)return;if(M instanceof f.default.Leaf){var F=M.split(P.start.offset);M.parent.insertBefore(this.cursor,F)}else M.insertBefore(this.cursor,P.start.node);this.cursor.attach()}this.cursor.format(R,C),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,P=this.scroll.length();R=Math.min(R,P-1),C=Math.min(R+C,P-1)-R;var M=void 0,F=this.scroll.leaf(R),q=o(F,2),Y=q[0],z=q[1];if(Y==null)return null;var it=Y.position(z,!0),W=o(it,2);M=W[0],z=W[1];var U=document.createRange();if(C>0){U.setStart(M,z);var k=this.scroll.leaf(R+C),D=o(k,2);if(Y=D[0],z=D[1],Y==null)return null;var j=Y.position(z,!0),Z=o(j,2);return M=Z[0],z=Z[1],U.setEnd(M,z),U.getBoundingClientRect()}else{var X="left",G=void 0;return M instanceof Text?(z<M.data.length?(U.setStart(M,z),U.setEnd(M,z+1)):(U.setStart(M,z-1),U.setEnd(M,z),X="right"),G=U.getBoundingClientRect()):(G=Y.domNode.getBoundingClientRect(),z>0&&(X="right")),{bottom:G.top+G.height,height:G.height,left:G[X],right:G[X],top:G.top,width:0}}}},{key:"getNativeRange",value:function(){var R=document.getSelection();if(R==null||R.rangeCount<=0)return null;var C=R.getRangeAt(0);if(C==null)return null;var P=this.normalizeNative(C);return x.info("getNativeRange",P),P}},{key:"getRange",value:function(){var R=this.getNativeRange();if(R==null)return[null,null];var C=this.normalizedToRange(R);return[C,R]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(R){var C=this,P=[[R.start.node,R.start.offset]];R.native.collapsed||P.push([R.end.node,R.end.offset]);var M=P.map(function(Y){var z=o(Y,2),it=z[0],W=z[1],U=f.default.find(it,!0),k=U.offset(C.scroll);return W===0?k:U instanceof f.default.Container?k+U.length():k+U.index(it,W)}),F=Math.min(Math.max.apply(Math,w(M)),this.scroll.length()-1),q=Math.min.apply(Math,[F].concat(w(M)));return new E(q,F-q)}},{key:"normalizeNative",value:function(R){if(!A(this.root,R.startContainer)||!R.collapsed&&!A(this.root,R.endContainer))return null;var C={start:{node:R.startContainer,offset:R.startOffset},end:{node:R.endContainer,offset:R.endOffset},native:R};return[C.start,C.end].forEach(function(P){for(var M=P.node,F=P.offset;!(M instanceof Text)&&M.childNodes.length>0;)if(M.childNodes.length>F)M=M.childNodes[F],F=0;else if(M.childNodes.length===F)M=M.lastChild,F=M instanceof Text?M.data.length:M.childNodes.length+1;else break;P.node=M,P.offset=F}),C}},{key:"rangeToNative",value:function(R){var C=this,P=R.collapsed?[R.index]:[R.index,R.index+R.length],M=[],F=this.scroll.length();return P.forEach(function(q,Y){q=Math.min(F-1,q);var z=void 0,it=C.scroll.leaf(q),W=o(it,2),U=W[0],k=W[1],D=U.position(k,Y!==0),j=o(D,2);z=j[0],k=j[1],M.push(z,k)}),M.length<2&&(M=M.concat(M)),M}},{key:"scrollIntoView",value:function(R){var C=this.lastRange;if(C!=null){var P=this.getBounds(C.index,C.length);if(P!=null){var M=this.scroll.length()-1,F=this.scroll.line(Math.min(C.index,M)),q=o(F,1),Y=q[0],z=Y;if(C.length>0){var it=this.scroll.line(Math.min(C.index+C.length,M)),W=o(it,1);z=W[0]}if(!(Y==null||z==null)){var U=R.getBoundingClientRect();P.top<U.top?R.scrollTop-=U.top-P.top:P.bottom>U.bottom&&(R.scrollTop+=P.bottom-U.bottom)}}}}},{key:"setNativeRange",value:function(R,C){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:R,M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:C,F=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(x.info("setNativeRange",R,C,P,M),!(R!=null&&(this.root.parentNode==null||R.parentNode==null||P.parentNode==null))){var q=document.getSelection();if(q!=null)if(R!=null){this.hasFocus()||this.root.focus();var Y=(this.getNativeRange()||{}).native;if(Y==null||F||R!==Y.startContainer||C!==Y.startOffset||P!==Y.endContainer||M!==Y.endOffset){R.tagName=="BR"&&(C=[].indexOf.call(R.parentNode.childNodes,R),R=R.parentNode),P.tagName=="BR"&&(M=[].indexOf.call(P.parentNode.childNodes,P),P=P.parentNode);var z=document.createRange();z.setStart(R,C),z.setEnd(P,M),q.removeAllRanges(),q.addRange(z)}}else q.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(R){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:m.default.sources.API;if(typeof C=="string"&&(P=C,C=!1),x.info("setRange",R),R!=null){var M=this.rangeToNative(R);this.setNativeRange.apply(this,w(M).concat([C]))}else this.setNativeRange(null);this.update(P)}},{key:"update",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:m.default.sources.USER,C=this.lastRange,P=this.getRange(),M=o(P,2),F=M[0],q=M[1];if(this.lastRange=F,this.lastRange!=null&&(this.savedRange=this.lastRange),!(0,c.default)(C,this.lastRange)){var Y;!this.composing&&q!=null&&q.native.collapsed&&q.start.node!==this.cursor.textNode&&this.cursor.restore();var z=[m.default.events.SELECTION_CHANGE,(0,d.default)(this.lastRange),(0,d.default)(C),R];if((Y=this.emitter).emit.apply(Y,[m.default.events.EDITOR_CHANGE].concat(z)),R!==m.default.sources.SILENT){var it;(it=this.emitter).emit.apply(it,z)}}}}]),O}();function A(O,L){try{L.parentNode}catch{return!1}return L instanceof Text&&(L=L.parentNode),O.contains(L)}n.Range=E,n.default=I},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,b){for(var y=0;y<b.length;y++){var w=b[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,b,y){return b&&m(_.prototype,b),y&&m(_,y),_}}(),l=function m(_,b,y){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,b);if(w===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:m(T,b,y)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(y)}},u=i(0),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function p(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var v=function(m){c(_,m);function _(){return d(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"insertInto",value:function(y,w){y.children.length===0?l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"insertInto",this).call(this,y,w):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),_}(f.default.Embed);v.blotName="break",v.tagName="BR",n.default=v},function(r,n,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])};return function(c,v){p(c,v);function m(){this.constructor=c}c.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(44),u=i(30),f=i(1),h=function(p){o(c,p);function c(v){var m=p.call(this,v)||this;return m.build(),m}return c.prototype.appendChild=function(v){this.insertBefore(v)},c.prototype.attach=function(){p.prototype.attach.call(this),this.children.forEach(function(v){v.attach()})},c.prototype.build=function(){var v=this;this.children=new l.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(m){try{var _=d(m);v.insertBefore(_,v.children.head||void 0)}catch(b){if(b instanceof f.ParchmentError)return;throw b}})},c.prototype.deleteAt=function(v,m){if(v===0&&m===this.length())return this.remove();this.children.forEachAt(v,m,function(_,b,y){_.deleteAt(b,y)})},c.prototype.descendant=function(v,m){var _=this.children.find(m),b=_[0],y=_[1];return v.blotName==null&&v(b)||v.blotName!=null&&b instanceof v?[b,y]:b instanceof c?b.descendant(v,y):[null,-1]},c.prototype.descendants=function(v,m,_){m===void 0&&(m=0),_===void 0&&(_=Number.MAX_VALUE);var b=[],y=_;return this.children.forEachAt(m,_,function(w,T,x){(v.blotName==null&&v(w)||v.blotName!=null&&w instanceof v)&&b.push(w),w instanceof c&&(b=b.concat(w.descendants(v,T,y))),y-=x}),b},c.prototype.detach=function(){this.children.forEach(function(v){v.detach()}),p.prototype.detach.call(this)},c.prototype.formatAt=function(v,m,_,b){this.children.forEachAt(v,m,function(y,w,T){y.formatAt(w,T,_,b)})},c.prototype.insertAt=function(v,m,_){var b=this.children.find(v),y=b[0],w=b[1];if(y)y.insertAt(w,m,_);else{var T=_==null?f.create("text",m):f.create(m,_);this.appendChild(T)}},c.prototype.insertBefore=function(v,m){if(this.statics.allowedChildren!=null&&!this.statics.allowedChildren.some(function(_){return v instanceof _}))throw new f.ParchmentError("Cannot insert "+v.statics.blotName+" into "+this.statics.blotName);v.insertInto(this,m)},c.prototype.length=function(){return this.children.reduce(function(v,m){return v+m.length()},0)},c.prototype.moveChildren=function(v,m){this.children.forEach(function(_){v.insertBefore(_,m)})},c.prototype.optimize=function(v){if(p.prototype.optimize.call(this,v),this.children.length===0)if(this.statics.defaultChild!=null){var m=f.create(this.statics.defaultChild);this.appendChild(m),m.optimize(v)}else this.remove()},c.prototype.path=function(v,m){m===void 0&&(m=!1);var _=this.children.find(v,m),b=_[0],y=_[1],w=[[this,v]];return b instanceof c?w.concat(b.path(y,m)):(b!=null&&w.push([b,y]),w)},c.prototype.removeChild=function(v){this.children.remove(v)},c.prototype.replace=function(v){v instanceof c&&v.moveChildren(this),p.prototype.replace.call(this,v)},c.prototype.split=function(v,m){if(m===void 0&&(m=!1),!m){if(v===0)return this;if(v===this.length())return this.next}var _=this.clone();return this.parent.insertBefore(_,this.next),this.children.forEachAt(v,this.length(),function(b,y,w){b=b.split(y,m),_.appendChild(b)}),_},c.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},c.prototype.update=function(v,m){var _=this,b=[],y=[];v.forEach(function(w){w.target===_.domNode&&w.type==="childList"&&(b.push.apply(b,w.addedNodes),y.push.apply(y,w.removedNodes))}),y.forEach(function(w){if(!(w.parentNode!=null&&w.tagName!=="IFRAME"&&document.body.compareDocumentPosition(w)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var T=f.find(w);T!=null&&(T.domNode.parentNode==null||T.domNode.parentNode===_.domNode)&&T.detach()}}),b.filter(function(w){return w.parentNode==_.domNode}).sort(function(w,T){return w===T?0:w.compareDocumentPosition(T)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(w){var T=null;w.nextSibling!=null&&(T=f.find(w.nextSibling));var x=d(w);(x.next!=T||x.next==null)&&(x.parent!=null&&x.parent.removeChild(_),_.insertBefore(x,T||void 0))})},c}(u.default);function d(p){var c=f.find(p);if(c==null)try{c=f.create(p)}catch{c=f.create(f.Scope.INLINE),[].slice.call(p.childNodes).forEach(function(m){c.domNode.appendChild(m)}),p.parentNode&&p.parentNode.replaceChild(c.domNode,p),c.attach()}return c}n.default=h},function(r,n,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])};return function(c,v){p(c,v);function m(){this.constructor=c}c.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12),u=i(31),f=i(17),h=i(1),d=function(p){o(c,p);function c(v){var m=p.call(this,v)||this;return m.attributes=new u.default(m.domNode),m}return c.formats=function(v){if(typeof this.tagName=="string")return!0;if(Array.isArray(this.tagName))return v.tagName.toLowerCase()},c.prototype.format=function(v,m){var _=h.query(v);_ instanceof l.default?this.attributes.attribute(_,m):m&&_!=null&&(v!==this.statics.blotName||this.formats()[v]!==m)&&this.replaceWith(v,m)},c.prototype.formats=function(){var v=this.attributes.values(),m=this.statics.formats(this.domNode);return m!=null&&(v[this.statics.blotName]=m),v},c.prototype.replaceWith=function(v,m){var _=p.prototype.replaceWith.call(this,v,m);return this.attributes.copy(_),_},c.prototype.update=function(v,m){var _=this;p.prototype.update.call(this,v,m),v.some(function(b){return b.target===_.domNode&&b.type==="attributes"})&&this.attributes.build()},c.prototype.wrap=function(v,m){var _=p.prototype.wrap.call(this,v,m);return _ instanceof c&&_.statics.scope===this.statics.scope&&this.attributes.move(_),_},c}(f.default);n.default=d},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(30),u=i(1),f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.value=function(p){return!0},d.prototype.index=function(p,c){return this.domNode===p||this.domNode.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(c,1):-1},d.prototype.position=function(p,c){var v=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return p>0&&(v+=1),[this.parent.domNode,v]},d.prototype.value=function(){var p;return p={},p[this.statics.blotName]=this.statics.value(this.domNode)||!0,p},d.scope=u.Scope.INLINE_BLOT,d}(l.default);n.default=f},function(r,n,i){var o=i(11),l=i(3),u={attributes:{compose:function(h,d,p){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var c=l(!0,{},d);p||(c=Object.keys(c).reduce(function(m,_){return c[_]!=null&&(m[_]=c[_]),m},{}));for(var v in h)h[v]!==void 0&&d[v]===void 0&&(c[v]=h[v]);return Object.keys(c).length>0?c:void 0},diff:function(h,d){typeof h!="object"&&(h={}),typeof d!="object"&&(d={});var p=Object.keys(h).concat(Object.keys(d)).reduce(function(c,v){return o(h[v],d[v])||(c[v]=d[v]===void 0?null:d[v]),c},{});return Object.keys(p).length>0?p:void 0},transform:function(h,d,p){if(typeof h!="object")return d;if(typeof d=="object"){if(!p)return d;var c=Object.keys(d).reduce(function(v,m){return h[m]===void 0&&(v[m]=d[m]),v},{});return Object.keys(c).length>0?c:void 0}}},iterator:function(h){return new f(h)},length:function(h){return typeof h.delete=="number"?h.delete:typeof h.retain=="number"?h.retain:typeof h.insert=="string"?h.insert.length:1}};function f(h){this.ops=h,this.index=0,this.offset=0}f.prototype.hasNext=function(){return this.peekLength()<1/0},f.prototype.next=function(h){h||(h=1/0);var d=this.ops[this.index];if(d){var p=this.offset,c=u.length(d);if(h>=c-p?(h=c-p,this.index+=1,this.offset=0):this.offset+=h,typeof d.delete=="number")return{delete:h};var v={};return d.attributes&&(v.attributes=d.attributes),typeof d.retain=="number"?v.retain=h:typeof d.insert=="string"?v.insert=d.insert.substr(p,h):v.insert=d.insert,v}else return{retain:1/0}},f.prototype.peek=function(){return this.ops[this.index]},f.prototype.peekLength=function(){return this.ops[this.index]?u.length(this.ops[this.index])-this.offset:1/0},f.prototype.peekType=function(){return this.ops[this.index]?typeof this.ops[this.index].delete=="number"?"delete":typeof this.ops[this.index].retain=="number"?"retain":"insert":"retain"},f.prototype.rest=function(){if(this.hasNext()){if(this.offset===0)return this.ops.slice(this.index);var h=this.offset,d=this.index,p=this.next(),c=this.ops.slice(this.index);return this.offset=h,this.index=d,[p].concat(c)}else return[]},r.exports=u},function(r,n){var i=function(){function o(_,b){return b!=null&&_ instanceof b}var l;try{l=Map}catch{l=function(){}}var u;try{u=Set}catch{u=function(){}}var f;try{f=Promise}catch{f=function(){}}function h(_,b,y,w,T){typeof b=="object"&&(y=b.depth,w=b.prototype,T=b.includeNonEnumerable,b=b.circular);var x=[],E=[],I=typeof Buffer<"u";typeof b>"u"&&(b=!0),typeof y>"u"&&(y=1/0);function A(O,L){if(O===null)return null;if(L===0)return O;var R,C;if(typeof O!="object")return O;if(o(O,l))R=new l;else if(o(O,u))R=new u;else if(o(O,f))R=new f(function(U,k){O.then(function(D){U(A(D,L-1))},function(D){k(A(D,L-1))})});else if(h.__isArray(O))R=[];else if(h.__isRegExp(O))R=new RegExp(O.source,m(O)),O.lastIndex&&(R.lastIndex=O.lastIndex);else if(h.__isDate(O))R=new Date(O.getTime());else{if(I&&Buffer.isBuffer(O))return Buffer.allocUnsafe?R=Buffer.allocUnsafe(O.length):R=new Buffer(O.length),O.copy(R),R;o(O,Error)?R=Object.create(O):typeof w>"u"?(C=Object.getPrototypeOf(O),R=Object.create(C)):(R=Object.create(w),C=w)}if(b){var P=x.indexOf(O);if(P!=-1)return E[P];x.push(O),E.push(R)}o(O,l)&&O.forEach(function(U,k){var D=A(k,L-1),j=A(U,L-1);R.set(D,j)}),o(O,u)&&O.forEach(function(U){var k=A(U,L-1);R.add(k)});for(var M in O){var F;C&&(F=Object.getOwnPropertyDescriptor(C,M)),!(F&&F.set==null)&&(R[M]=A(O[M],L-1))}if(Object.getOwnPropertySymbols)for(var q=Object.getOwnPropertySymbols(O),M=0;M<q.length;M++){var Y=q[M],z=Object.getOwnPropertyDescriptor(O,Y);z&&!z.enumerable&&!T||(R[Y]=A(O[Y],L-1),z.enumerable||Object.defineProperty(R,Y,{enumerable:!1}))}if(T)for(var it=Object.getOwnPropertyNames(O),M=0;M<it.length;M++){var W=it[M],z=Object.getOwnPropertyDescriptor(O,W);z&&z.enumerable||(R[W]=A(O[W],L-1),Object.defineProperty(R,W,{enumerable:!1}))}return R}return A(_,y)}h.clonePrototype=function(b){if(b===null)return null;var y=function(){};return y.prototype=b,new y};function d(_){return Object.prototype.toString.call(_)}h.__objToStr=d;function p(_){return typeof _=="object"&&d(_)==="[object Date]"}h.__isDate=p;function c(_){return typeof _=="object"&&d(_)==="[object Array]"}h.__isArray=c;function v(_){return typeof _=="object"&&d(_)==="[object RegExp]"}h.__isRegExp=v;function m(_){var b="";return _.global&&(b+="g"),_.ignoreCase&&(b+="i"),_.multiline&&(b+="m"),b}return h.__getRegExpFlags=m,h}();typeof r=="object"&&r.exports&&(r.exports=i)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function R(C,P){var M=[],F=!0,q=!1,Y=void 0;try{for(var z=C[Symbol.iterator](),it;!(F=(it=z.next()).done)&&(M.push(it.value),!(P&&M.length===P));F=!0);}catch(W){q=!0,Y=W}finally{try{!F&&z.return&&z.return()}finally{if(q)throw Y}}return M}return function(C,P){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function R(C,P){for(var M=0;M<P.length;M++){var F=P[M];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(C,F.key,F)}}return function(C,P,M){return P&&R(C.prototype,P),M&&R(C,M),C}}(),u=function R(C,P,M){C===null&&(C=Function.prototype);var F=Object.getOwnPropertyDescriptor(C,P);if(F===void 0){var q=Object.getPrototypeOf(C);return q===null?void 0:R(q,P,M)}else{if("value"in F)return F.value;var Y=F.get;return Y===void 0?void 0:Y.call(M)}},f=i(0),h=x(f),d=i(8),p=x(d),c=i(4),v=x(c),m=i(16),_=x(m),b=i(13),y=x(b),w=i(25),T=x(w);function x(R){return R&&R.__esModule?R:{default:R}}function E(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function I(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function A(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}function O(R){return R instanceof v.default||R instanceof c.BlockEmbed}var L=function(R){A(C,R);function C(P,M){E(this,C);var F=I(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P));return F.emitter=M.emitter,Array.isArray(M.whitelist)&&(F.whitelist=M.whitelist.reduce(function(q,Y){return q[Y]=!0,q},{})),F.domNode.addEventListener("DOMNodeInserted",function(){}),F.optimize(),F.enable(),F}return l(C,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(M,F){var q=this.line(M),Y=o(q,2),z=Y[0],it=Y[1],W=this.line(M+F),U=o(W,1),k=U[0];if(u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"deleteAt",this).call(this,M,F),k!=null&&z!==k&&it>0){if(z instanceof c.BlockEmbed||k instanceof c.BlockEmbed){this.optimize();return}if(z instanceof y.default){var D=z.newlineIndex(z.length(),!0);if(D>-1&&(z=z.split(D+1),z===k)){this.optimize();return}}else if(k instanceof y.default){var j=k.newlineIndex(0);j>-1&&k.split(j+1)}var Z=k.children.head instanceof _.default?null:k.children.head;z.moveChildren(k,Z),z.remove()}this.optimize()}},{key:"enable",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.domNode.setAttribute("contenteditable",M)}},{key:"formatAt",value:function(M,F,q,Y){this.whitelist!=null&&!this.whitelist[q]||(u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"formatAt",this).call(this,M,F,q,Y),this.optimize())}},{key:"insertAt",value:function(M,F,q){if(!(q!=null&&this.whitelist!=null&&!this.whitelist[F])){if(M>=this.length())if(q==null||h.default.query(F,h.default.Scope.BLOCK)==null){var Y=h.default.create(this.statics.defaultChild);this.appendChild(Y),q==null&&F.endsWith(`
1986
+ `)&&(F=F.slice(0,-1)),Y.insertAt(0,F,q)}else{var z=h.default.create(F,q);this.appendChild(z)}else u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertAt",this).call(this,M,F,q);this.optimize()}}},{key:"insertBefore",value:function(M,F){if(M.statics.scope===h.default.Scope.INLINE_BLOT){var q=h.default.create(this.statics.defaultChild);q.appendChild(M),M=q}u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"insertBefore",this).call(this,M,F)}},{key:"leaf",value:function(M){return this.path(M).pop()||[null,-1]}},{key:"line",value:function(M){return M===this.length()?this.line(M-1):this.descendant(O,M)}},{key:"lines",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.MAX_VALUE,q=function Y(z,it,W){var U=[],k=W;return z.children.forEachAt(it,W,function(D,j,Z){O(D)?U.push(D):D instanceof h.default.Container&&(U=U.concat(Y(D,j,k))),k-=Z}),U};return q(this,M,F)}},{key:"optimize",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.batch!==!0&&(u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"optimize",this).call(this,M,F),M.length>0&&this.emitter.emit(p.default.events.SCROLL_OPTIMIZE,M,F))}},{key:"path",value:function(M){return u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"path",this).call(this,M).slice(1)}},{key:"update",value:function(M){if(this.batch!==!0){var F=p.default.sources.USER;typeof M=="string"&&(F=M),Array.isArray(M)||(M=this.observer.takeRecords()),M.length>0&&this.emitter.emit(p.default.events.SCROLL_BEFORE_UPDATE,F,M),u(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"update",this).call(this,M.concat([])),M.length>0&&this.emitter.emit(p.default.events.SCROLL_UPDATE,F,M)}}}]),C}(h.default.Scroll);L.blotName="scroll",L.className="ql-editor",L.tagName="DIV",L.defaultChild="block",L.allowedChildren=[v.default,c.BlockEmbed,T.default],n.default=L},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SHORTKEY=n.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(G){return typeof G}:function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},l=function(){function G(V,et){var Q=[],rt=!0,ot=!1,pt=void 0;try{for(var mt=V[Symbol.iterator](),xt;!(rt=(xt=mt.next()).done)&&(Q.push(xt.value),!(et&&Q.length===et));rt=!0);}catch(At){ot=!0,pt=At}finally{try{!rt&&mt.return&&mt.return()}finally{if(ot)throw pt}}return Q}return function(V,et){if(Array.isArray(V))return V;if(Symbol.iterator in Object(V))return G(V,et);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function G(V,et){for(var Q=0;Q<et.length;Q++){var rt=et[Q];rt.enumerable=rt.enumerable||!1,rt.configurable=!0,"value"in rt&&(rt.writable=!0),Object.defineProperty(V,rt.key,rt)}}return function(V,et,Q){return et&&G(V.prototype,et),Q&&G(V,Q),V}}(),f=i(21),h=R(f),d=i(11),p=R(d),c=i(3),v=R(c),m=i(2),_=R(m),b=i(20),y=R(b),w=i(0),T=R(w),x=i(5),E=R(x),I=i(10),A=R(I),O=i(9),L=R(O);function R(G){return G&&G.__esModule?G:{default:G}}function C(G,V,et){return V in G?Object.defineProperty(G,V,{value:et,enumerable:!0,configurable:!0,writable:!0}):G[V]=et,G}function P(G,V){if(!(G instanceof V))throw new TypeError("Cannot call a class as a function")}function M(G,V){if(!G)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V&&(typeof V=="object"||typeof V=="function")?V:G}function F(G,V){if(typeof V!="function"&&V!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof V);G.prototype=Object.create(V&&V.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}}),V&&(Object.setPrototypeOf?Object.setPrototypeOf(G,V):G.__proto__=V)}var q=(0,A.default)("quill:keyboard"),Y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",z=function(G){F(V,G),u(V,null,[{key:"match",value:function(Q,rt){return rt=X(rt),["altKey","ctrlKey","metaKey","shiftKey"].some(function(ot){return!!rt[ot]!==Q[ot]&&rt[ot]!==null})?!1:rt.key===(Q.which||Q.keyCode)}}]);function V(et,Q){P(this,V);var rt=M(this,(V.__proto__||Object.getPrototypeOf(V)).call(this,et,Q));return rt.bindings={},Object.keys(rt.options.bindings).forEach(function(ot){ot==="list autofill"&&et.scroll.whitelist!=null&&!et.scroll.whitelist.list||rt.options.bindings[ot]&&rt.addBinding(rt.options.bindings[ot])}),rt.addBinding({key:V.keys.ENTER,shiftKey:null},D),rt.addBinding({key:V.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(rt.addBinding({key:V.keys.BACKSPACE},{collapsed:!0},W),rt.addBinding({key:V.keys.DELETE},{collapsed:!0},U)):(rt.addBinding({key:V.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},W),rt.addBinding({key:V.keys.DELETE},{collapsed:!0,suffix:/^.?$/},U)),rt.addBinding({key:V.keys.BACKSPACE},{collapsed:!1},k),rt.addBinding({key:V.keys.DELETE},{collapsed:!1},k),rt.addBinding({key:V.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},W),rt.listen(),rt}return u(V,[{key:"addBinding",value:function(Q){var rt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},pt=X(Q);if(pt==null||pt.key==null)return q.warn("Attempted to add invalid keyboard binding",pt);typeof rt=="function"&&(rt={handler:rt}),typeof ot=="function"&&(ot={handler:ot}),pt=(0,v.default)(pt,rt,ot),this.bindings[pt.key]=this.bindings[pt.key]||[],this.bindings[pt.key].push(pt)}},{key:"listen",value:function(){var Q=this;this.quill.root.addEventListener("keydown",function(rt){if(!rt.defaultPrevented){var ot=rt.which||rt.keyCode,pt=(Q.bindings[ot]||[]).filter(function(ce){return V.match(rt,ce)});if(pt.length!==0){var mt=Q.quill.getSelection();if(!(mt==null||!Q.quill.hasFocus())){var xt=Q.quill.getLine(mt.index),At=l(xt,2),oe=At[0],qt=At[1],nt=Q.quill.getLeaf(mt.index),lt=l(nt,2),dt=lt[0],vt=lt[1],ct=mt.length===0?[dt,vt]:Q.quill.getLeaf(mt.index+mt.length),Pt=l(ct,2),Lt=Pt[0],Nt=Pt[1],He=dt instanceof T.default.Text?dt.value().slice(0,vt):"",Ge=Lt instanceof T.default.Text?Lt.value().slice(Nt):"",Qt={collapsed:mt.length===0,empty:mt.length===0&&oe.length()<=1,format:Q.quill.getFormat(mt),offset:qt,prefix:He,suffix:Ge},Es=pt.some(function(ce){if(ce.collapsed!=null&&ce.collapsed!==Qt.collapsed||ce.empty!=null&&ce.empty!==Qt.empty||ce.offset!=null&&ce.offset!==Qt.offset)return!1;if(Array.isArray(ce.format)){if(ce.format.every(function(lr){return Qt.format[lr]==null}))return!1}else if(o(ce.format)==="object"&&!Object.keys(ce.format).every(function(lr){return ce.format[lr]===!0?Qt.format[lr]!=null:ce.format[lr]===!1?Qt.format[lr]==null:(0,p.default)(ce.format[lr],Qt.format[lr])}))return!1;return ce.prefix!=null&&!ce.prefix.test(Qt.prefix)||ce.suffix!=null&&!ce.suffix.test(Qt.suffix)?!1:ce.handler.call(Q,mt,Qt)!==!0});Es&&rt.preventDefault()}}}})}}]),V}(L.default);z.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},z.DEFAULTS={bindings:{bold:Z("bold"),italic:Z("italic"),underline:Z("underline"),indent:{key:z.keys.TAB,format:["blockquote","indent","list"],handler:function(V,et){if(et.collapsed&&et.offset!==0)return!0;this.quill.format("indent","+1",E.default.sources.USER)}},outdent:{key:z.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(V,et){if(et.collapsed&&et.offset!==0)return!0;this.quill.format("indent","-1",E.default.sources.USER)}},"outdent backspace":{key:z.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(V,et){et.format.indent!=null?this.quill.format("indent","-1",E.default.sources.USER):et.format.list!=null&&this.quill.format("list",!1,E.default.sources.USER)}},"indent code-block":j(!0),"outdent code-block":j(!1),"remove tab":{key:z.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(V){this.quill.deleteText(V.index-1,1,E.default.sources.USER)}},tab:{key:z.keys.TAB,handler:function(V){this.quill.history.cutoff();var et=new _.default().retain(V.index).delete(V.length).insert(" ");this.quill.updateContents(et,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index+1,E.default.sources.SILENT)}},"list empty enter":{key:z.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(V,et){this.quill.format("list",!1,E.default.sources.USER),et.format.indent&&this.quill.format("indent",!1,E.default.sources.USER)}},"checklist enter":{key:z.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(V){var et=this.quill.getLine(V.index),Q=l(et,2),rt=Q[0],ot=Q[1],pt=(0,v.default)({},rt.formats(),{list:"checked"}),mt=new _.default().retain(V.index).insert(`
1987
+ `,pt).retain(rt.length()-ot-1).retain(1,{list:"unchecked"});this.quill.updateContents(mt,E.default.sources.USER),this.quill.setSelection(V.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:z.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(V,et){var Q=this.quill.getLine(V.index),rt=l(Q,2),ot=rt[0],pt=rt[1],mt=new _.default().retain(V.index).insert(`
1988
+ `,et.format).retain(ot.length()-pt-1).retain(1,{header:null});this.quill.updateContents(mt,E.default.sources.USER),this.quill.setSelection(V.index+1,E.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(V,et){var Q=et.prefix.length,rt=this.quill.getLine(V.index),ot=l(rt,2),pt=ot[0],mt=ot[1];if(mt>Q)return!0;var xt=void 0;switch(et.prefix.trim()){case"[]":case"[ ]":xt="unchecked";break;case"[x]":xt="checked";break;case"-":case"*":xt="bullet";break;default:xt="ordered"}this.quill.insertText(V.index," ",E.default.sources.USER),this.quill.history.cutoff();var At=new _.default().retain(V.index-mt).delete(Q+1).retain(pt.length()-2-mt).retain(1,{list:xt});this.quill.updateContents(At,E.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(V.index-Q,E.default.sources.SILENT)}},"code exit":{key:z.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(V){var et=this.quill.getLine(V.index),Q=l(et,2),rt=Q[0],ot=Q[1],pt=new _.default().retain(V.index+rt.length()-ot-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(pt,E.default.sources.USER)}},"embed left":it(z.keys.LEFT,!1),"embed left shift":it(z.keys.LEFT,!0),"embed right":it(z.keys.RIGHT,!1),"embed right shift":it(z.keys.RIGHT,!0)}};function it(G,V){var et,Q=G===z.keys.LEFT?"prefix":"suffix";return et={key:G,shiftKey:V,altKey:null},C(et,Q,/^$/),C(et,"handler",function(ot){var pt=ot.index;G===z.keys.RIGHT&&(pt+=ot.length+1);var mt=this.quill.getLeaf(pt),xt=l(mt,1),At=xt[0];return At instanceof T.default.Embed?(G===z.keys.LEFT?V?this.quill.setSelection(ot.index-1,ot.length+1,E.default.sources.USER):this.quill.setSelection(ot.index-1,E.default.sources.USER):V?this.quill.setSelection(ot.index,ot.length+1,E.default.sources.USER):this.quill.setSelection(ot.index+ot.length+1,E.default.sources.USER),!1):!0}),et}function W(G,V){if(!(G.index===0||this.quill.getLength()<=1)){var et=this.quill.getLine(G.index),Q=l(et,1),rt=Q[0],ot={};if(V.offset===0){var pt=this.quill.getLine(G.index-1),mt=l(pt,1),xt=mt[0];if(xt!=null&&xt.length()>1){var At=rt.formats(),oe=this.quill.getFormat(G.index-1,1);ot=y.default.attributes.diff(At,oe)||{}}}var qt=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(V.prefix)?2:1;this.quill.deleteText(G.index-qt,qt,E.default.sources.USER),Object.keys(ot).length>0&&this.quill.formatLine(G.index-qt,qt,ot,E.default.sources.USER),this.quill.focus()}}function U(G,V){var et=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(V.suffix)?2:1;if(!(G.index>=this.quill.getLength()-et)){var Q={},rt=0,ot=this.quill.getLine(G.index),pt=l(ot,1),mt=pt[0];if(V.offset>=mt.length()-1){var xt=this.quill.getLine(G.index+1),At=l(xt,1),oe=At[0];if(oe){var qt=mt.formats(),nt=this.quill.getFormat(G.index,1);Q=y.default.attributes.diff(qt,nt)||{},rt=oe.length()}}this.quill.deleteText(G.index,et,E.default.sources.USER),Object.keys(Q).length>0&&this.quill.formatLine(G.index+rt-1,et,Q,E.default.sources.USER)}}function k(G){var V=this.quill.getLines(G),et={};if(V.length>1){var Q=V[0].formats(),rt=V[V.length-1].formats();et=y.default.attributes.diff(rt,Q)||{}}this.quill.deleteText(G,E.default.sources.USER),Object.keys(et).length>0&&this.quill.formatLine(G.index,1,et,E.default.sources.USER),this.quill.setSelection(G.index,E.default.sources.SILENT),this.quill.focus()}function D(G,V){var et=this;G.length>0&&this.quill.scroll.deleteAt(G.index,G.length);var Q=Object.keys(V.format).reduce(function(rt,ot){return T.default.query(ot,T.default.Scope.BLOCK)&&!Array.isArray(V.format[ot])&&(rt[ot]=V.format[ot]),rt},{});this.quill.insertText(G.index,`
1989
+ `,Q,E.default.sources.USER),this.quill.setSelection(G.index+1,E.default.sources.SILENT),this.quill.focus(),Object.keys(V.format).forEach(function(rt){Q[rt]==null&&(Array.isArray(V.format[rt])||rt!=="link"&&et.quill.format(rt,V.format[rt],E.default.sources.USER))})}function j(G){return{key:z.keys.TAB,shiftKey:!G,format:{"code-block":!0},handler:function(et){var Q=T.default.query("code-block"),rt=et.index,ot=et.length,pt=this.quill.scroll.descendant(Q,rt),mt=l(pt,2),xt=mt[0],At=mt[1];if(xt!=null){var oe=this.quill.getIndex(xt),qt=xt.newlineIndex(At,!0)+1,nt=xt.newlineIndex(oe+At+ot),lt=xt.domNode.textContent.slice(qt,nt).split(`
1990
+ `);At=0,lt.forEach(function(dt,vt){G?(xt.insertAt(qt+At,Q.TAB),At+=Q.TAB.length,vt===0?rt+=Q.TAB.length:ot+=Q.TAB.length):dt.startsWith(Q.TAB)&&(xt.deleteAt(qt+At,Q.TAB.length),At-=Q.TAB.length,vt===0?rt-=Q.TAB.length:ot-=Q.TAB.length),At+=dt.length+1}),this.quill.update(E.default.sources.USER),this.quill.setSelection(rt,ot,E.default.sources.SILENT)}}}}function Z(G){return{key:G[0].toUpperCase(),shortKey:!0,handler:function(et,Q){this.quill.format(G,!Q.format[G],E.default.sources.USER)}}}function X(G){if(typeof G=="string"||typeof G=="number")return X({key:G});if((typeof G>"u"?"undefined":o(G))==="object"&&(G=(0,h.default)(G,!1)),typeof G.key=="string")if(z.keys[G.key.toUpperCase()]!=null)G.key=z.keys[G.key.toUpperCase()];else if(G.key.length===1)G.key=G.key.toUpperCase().charCodeAt(0);else return null;return G.shortKey&&(G[Y]=G.shortKey,delete G.shortKey),G}n.default=z,n.SHORTKEY=Y},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function y(w,T){var x=[],E=!0,I=!1,A=void 0;try{for(var O=w[Symbol.iterator](),L;!(E=(L=O.next()).done)&&(x.push(L.value),!(T&&x.length===T));E=!0);}catch(R){I=!0,A=R}finally{try{!E&&O.return&&O.return()}finally{if(I)throw A}}return x}return function(w,T){if(Array.isArray(w))return w;if(Symbol.iterator in Object(w))return y(w,T);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function y(w,T,x){w===null&&(w=Function.prototype);var E=Object.getOwnPropertyDescriptor(w,T);if(E===void 0){var I=Object.getPrototypeOf(w);return I===null?void 0:y(I,T,x)}else{if("value"in E)return E.value;var A=E.get;return A===void 0?void 0:A.call(x)}},u=function(){function y(w,T){for(var x=0;x<T.length;x++){var E=T[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,T,x){return T&&y(w.prototype,T),x&&y(w,x),w}}(),f=i(0),h=c(f),d=i(7),p=c(d);function c(y){return y&&y.__esModule?y:{default:y}}function v(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function m(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function _(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var b=function(y){_(w,y),u(w,null,[{key:"value",value:function(){}}]);function w(T,x){v(this,w);var E=m(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T));return E.selection=x,E.textNode=document.createTextNode(w.CONTENTS),E.domNode.appendChild(E.textNode),E._length=0,E}return u(w,[{key:"detach",value:function(){this.parent!=null&&this.parent.removeChild(this)}},{key:"format",value:function(x,E){if(this._length!==0)return l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,x,E);for(var I=this,A=0;I!=null&&I.statics.scope!==h.default.Scope.BLOCK_BLOT;)A+=I.offset(I.parent),I=I.parent;I!=null&&(this._length=w.CONTENTS.length,I.optimize(),I.formatAt(A,w.CONTENTS.length,x,E),this._length=0)}},{key:"index",value:function(x,E){return x===this.textNode?0:l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"index",this).call(this,x,E)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!(this.selection.composing||this.parent==null)){var x=this.textNode,E=this.selection.getNativeRange(),I=void 0,A=void 0,O=void 0;if(E!=null&&E.start.node===x&&E.end.node===x){var L=[x,E.start.offset,E.end.offset];I=L[0],A=L[1],O=L[2]}for(;this.domNode.lastChild!=null&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==w.CONTENTS){var R=this.textNode.data.split(w.CONTENTS).join("");this.next instanceof p.default?(I=this.next.domNode,this.next.insertAt(0,R),this.textNode.data=w.CONTENTS):(this.textNode.data=R,this.parent.insertBefore(h.default.create(this.textNode),this),this.textNode=document.createTextNode(w.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),A!=null){var C=[A,O].map(function(M){return Math.max(0,Math.min(I.data.length,M-1))}),P=o(C,2);return A=P[0],O=P[1],{startNode:I,startOffset:A,endNode:I,endOffset:O}}}}},{key:"update",value:function(x,E){var I=this;if(x.some(function(O){return O.type==="characterData"&&O.target===I.textNode})){var A=this.restore();A&&(E.range=A)}}},{key:"value",value:function(){return""}}]),w}(h.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\uFEFF",n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),l=h(o),u=i(4),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function p(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var v=function(m){c(_,m);function _(){return d(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return _}(l.default.Container);v.allowedChildren=[f.default,u.BlockEmbed,v],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.ColorStyle=n.ColorClass=n.ColorAttributor=void 0;var o=function(){function b(y,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,w,T){return w&&b(y.prototype,w),T&&b(y,T),y}}(),l=function b(y,w,T){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,w);if(x===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:b(E,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(0),f=h(u);function h(b){return b&&b.__esModule?b:{default:b}}function d(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function p(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function c(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var v=function(b){c(y,b);function y(){return d(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"value",value:function(T){var x=l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"value",this).call(this,T);return x.startsWith("rgb(")?(x=x.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+x.split(",").map(function(E){return("00"+parseInt(E).toString(16)).slice(-2)}).join("")):x}}]),y}(f.default.Attributor.Style),m=new f.default.Attributor.Class("color","ql-color",{scope:f.default.Scope.INLINE}),_=new v("color","color",{scope:f.default.Scope.INLINE});n.ColorAttributor=v,n.ColorClass=m,n.ColorStyle=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.sanitize=n.default=void 0;var o=function(){function _(b,y){for(var w=0;w<y.length;w++){var T=y[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(b,T.key,T)}}return function(b,y,w){return y&&_(b.prototype,y),w&&_(b,w),b}}(),l=function _(b,y,w){b===null&&(b=Function.prototype);var T=Object.getOwnPropertyDescriptor(b,y);if(T===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:_(x,y,w)}else{if("value"in T)return T.value;var E=T.get;return E===void 0?void 0:E.call(w)}},u=i(6),f=h(u);function h(_){return _&&_.__esModule?_:{default:_}}function d(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function p(_,b){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:_}function c(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);_.prototype=Object.create(b&&b.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(_,b):_.__proto__=b)}var v=function(_){c(b,_);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"format",value:function(w,T){if(w!==this.statics.blotName||!T)return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,w,T);T=this.constructor.sanitize(T),this.domNode.setAttribute("href",T)}}],[{key:"create",value:function(w){var T=l(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,w);return w=this.sanitize(w),T.setAttribute("href",w),T.setAttribute("rel","noopener noreferrer"),T.setAttribute("target","_blank"),T}},{key:"formats",value:function(w){return w.getAttribute("href")}},{key:"sanitize",value:function(w){return m(w,this.PROTOCOL_WHITELIST)?w:this.SANITIZED_URL}}]),b}(f.default);v.blotName="link",v.tagName="A",v.SANITIZED_URL="about:blank",v.PROTOCOL_WHITELIST=["http","https","mailto","tel"];function m(_,b){var y=document.createElement("a");y.href=_;var w=y.href.slice(0,y.href.indexOf(":"));return b.indexOf(w)>-1}n.default=v,n.sanitize=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},l=function(){function b(y,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,w,T){return w&&b(y.prototype,w),T&&b(y,T),y}}(),u=i(23),f=p(u),h=i(107),d=p(h);function p(b){return b&&b.__esModule?b:{default:b}}function c(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}var v=0;function m(b,y){b.setAttribute(y,b.getAttribute(y)!=="true")}var _=function(){function b(y){var w=this;c(this,b),this.select=y,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){w.togglePicker()}),this.label.addEventListener("keydown",function(T){switch(T.keyCode){case f.default.keys.ENTER:w.togglePicker();break;case f.default.keys.ESCAPE:w.escape(),T.preventDefault();break}}),this.select.addEventListener("change",this.update.bind(this))}return l(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),m(this.label,"aria-expanded"),m(this.options,"aria-hidden")}},{key:"buildItem",value:function(w){var T=this,x=document.createElement("span");return x.tabIndex="0",x.setAttribute("role","button"),x.classList.add("ql-picker-item"),w.hasAttribute("value")&&x.setAttribute("data-value",w.getAttribute("value")),w.textContent&&x.setAttribute("data-label",w.textContent),x.addEventListener("click",function(){T.selectItem(x,!0)}),x.addEventListener("keydown",function(E){switch(E.keyCode){case f.default.keys.ENTER:T.selectItem(x,!0),E.preventDefault();break;case f.default.keys.ESCAPE:T.escape(),E.preventDefault();break}}),x}},{key:"buildLabel",value:function(){var w=document.createElement("span");return w.classList.add("ql-picker-label"),w.innerHTML=d.default,w.tabIndex="0",w.setAttribute("role","button"),w.setAttribute("aria-expanded","false"),this.container.appendChild(w),w}},{key:"buildOptions",value:function(){var w=this,T=document.createElement("span");T.classList.add("ql-picker-options"),T.setAttribute("aria-hidden","true"),T.tabIndex="-1",T.id="ql-picker-options-"+v,v+=1,this.label.setAttribute("aria-controls",T.id),this.options=T,[].slice.call(this.select.options).forEach(function(x){var E=w.buildItem(x);T.appendChild(E),x.selected===!0&&w.selectItem(E)}),this.container.appendChild(T)}},{key:"buildPicker",value:function(){var w=this;[].slice.call(this.select.attributes).forEach(function(T){w.container.setAttribute(T.name,T.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var w=this;this.close(),setTimeout(function(){return w.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(w){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,x=this.container.querySelector(".ql-selected");if(w!==x&&(x!=null&&x.classList.remove("ql-selected"),w!=null&&(w.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(w.parentNode.children,w),w.hasAttribute("data-value")?this.label.setAttribute("data-value",w.getAttribute("data-value")):this.label.removeAttribute("data-value"),w.hasAttribute("data-label")?this.label.setAttribute("data-label",w.getAttribute("data-label")):this.label.removeAttribute("data-label"),T))){if(typeof Event=="function")this.select.dispatchEvent(new Event("change"));else if((typeof Event>"u"?"undefined":o(Event))==="object"){var E=document.createEvent("Event");E.initEvent("change",!0,!0),this.select.dispatchEvent(E)}this.close()}}},{key:"update",value:function(){var w=void 0;if(this.select.selectedIndex>-1){var T=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];w=this.select.options[this.select.selectedIndex],this.selectItem(T)}else this.selectItem(null);var x=w!=null&&w!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",x)}}]),b}();n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(0),l=q(o),u=i(5),f=q(u),h=i(4),d=q(h),p=i(16),c=q(p),v=i(25),m=q(v),_=i(24),b=q(_),y=i(35),w=q(y),T=i(6),x=q(T),E=i(22),I=q(E),A=i(7),O=q(A),L=i(55),R=q(L),C=i(42),P=q(C),M=i(23),F=q(M);function q(Y){return Y&&Y.__esModule?Y:{default:Y}}f.default.register({"blots/block":d.default,"blots/block/embed":h.BlockEmbed,"blots/break":c.default,"blots/container":m.default,"blots/cursor":b.default,"blots/embed":w.default,"blots/inline":x.default,"blots/scroll":I.default,"blots/text":O.default,"modules/clipboard":R.default,"modules/history":P.default,"modules/keyboard":F.default}),l.default.register(d.default,c.default,b.default,x.default,I.default,O.default),n.default=f.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(1),l=function(){function u(f){this.domNode=f,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(u.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),u.create=function(f){if(this.tagName==null)throw new o.ParchmentError("Blot definition missing tagName");var h;return Array.isArray(this.tagName)?(typeof f=="string"&&(f=f.toUpperCase(),parseInt(f).toString()===f&&(f=parseInt(f))),typeof f=="number"?h=document.createElement(this.tagName[f-1]):this.tagName.indexOf(f)>-1?h=document.createElement(f):h=document.createElement(this.tagName[0])):h=document.createElement(this.tagName),this.className&&h.classList.add(this.className),h},u.prototype.attach=function(){this.parent!=null&&(this.scroll=this.parent.scroll)},u.prototype.clone=function(){var f=this.domNode.cloneNode(!1);return o.create(f)},u.prototype.detach=function(){this.parent!=null&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},u.prototype.deleteAt=function(f,h){var d=this.isolate(f,h);d.remove()},u.prototype.formatAt=function(f,h,d,p){var c=this.isolate(f,h);if(o.query(d,o.Scope.BLOT)!=null&&p)c.wrap(d,p);else if(o.query(d,o.Scope.ATTRIBUTE)!=null){var v=o.create(this.statics.scope);c.wrap(v),v.format(d,p)}},u.prototype.insertAt=function(f,h,d){var p=d==null?o.create("text",h):o.create(h,d),c=this.split(f);this.parent.insertBefore(p,c)},u.prototype.insertInto=function(f,h){h===void 0&&(h=null),this.parent!=null&&this.parent.children.remove(this);var d=null;f.children.insertBefore(this,h),h!=null&&(d=h.domNode),(this.domNode.parentNode!=f.domNode||this.domNode.nextSibling!=d)&&f.domNode.insertBefore(this.domNode,d),this.parent=f,this.attach()},u.prototype.isolate=function(f,h){var d=this.split(f);return d.split(h),d},u.prototype.length=function(){return 1},u.prototype.offset=function(f){return f===void 0&&(f=this.parent),this.parent==null||this==f?0:this.parent.children.offset(this)+this.parent.offset(f)},u.prototype.optimize=function(f){this.domNode[o.DATA_KEY]!=null&&delete this.domNode[o.DATA_KEY].mutations},u.prototype.remove=function(){this.domNode.parentNode!=null&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},u.prototype.replace=function(f){f.parent!=null&&(f.parent.insertBefore(this,f.next),f.remove())},u.prototype.replaceWith=function(f,h){var d=typeof f=="string"?o.create(f,h):f;return d.replace(this),d},u.prototype.split=function(f,h){return f===0?this:this.next},u.prototype.update=function(f,h){},u.prototype.wrap=function(f,h){var d=typeof f=="string"?o.create(f,h):f;return this.parent!=null&&this.parent.insertBefore(d,this.next),d.appendChild(this),d},u.blotName="abstract",u}();n.default=l},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(12),l=i(32),u=i(33),f=i(1),h=function(){function d(p){this.attributes={},this.domNode=p,this.build()}return d.prototype.attribute=function(p,c){c?p.add(this.domNode,c)&&(p.value(this.domNode)!=null?this.attributes[p.attrName]=p:delete this.attributes[p.attrName]):(p.remove(this.domNode),delete this.attributes[p.attrName])},d.prototype.build=function(){var p=this;this.attributes={};var c=o.default.keys(this.domNode),v=l.default.keys(this.domNode),m=u.default.keys(this.domNode);c.concat(v).concat(m).forEach(function(_){var b=f.query(_,f.Scope.ATTRIBUTE);b instanceof o.default&&(p.attributes[b.attrName]=b)})},d.prototype.copy=function(p){var c=this;Object.keys(this.attributes).forEach(function(v){var m=c.attributes[v].value(c.domNode);p.format(v,m)})},d.prototype.move=function(p){var c=this;this.copy(p),Object.keys(this.attributes).forEach(function(v){c.attributes[v].remove(c.domNode)}),this.attributes={}},d.prototype.values=function(){var p=this;return Object.keys(this.attributes).reduce(function(c,v){return c[v]=p.attributes[v].value(p.domNode),c},{})},d}();n.default=h},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12);function u(h,d){var p=h.getAttribute("class")||"";return p.split(/\s+/).filter(function(c){return c.indexOf(d+"-")===0})}var f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(p){return(p.getAttribute("class")||"").split(/\s+/).map(function(c){return c.split("-").slice(0,-1).join("-")})},d.prototype.add=function(p,c){return this.canAdd(p,c)?(this.remove(p),p.classList.add(this.keyName+"-"+c),!0):!1},d.prototype.remove=function(p){var c=u(p,this.keyName);c.forEach(function(v){p.classList.remove(v)}),p.classList.length===0&&p.removeAttribute("class")},d.prototype.value=function(p){var c=u(p,this.keyName)[0]||"",v=c.slice(this.keyName.length+1);return this.canAdd(p,v)?v:""},d}(l.default);n.default=f},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(12);function u(h){var d=h.split("-"),p=d.slice(1).map(function(c){return c[0].toUpperCase()+c.slice(1)}).join("");return d[0]+p}var f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.keys=function(p){return(p.getAttribute("style")||"").split(";").map(function(c){var v=c.split(":");return v[0].trim()})},d.prototype.add=function(p,c){return this.canAdd(p,c)?(p.style[u(this.keyName)]=c,!0):!1},d.prototype.remove=function(p){p.style[u(this.keyName)]="",p.getAttribute("style")||p.removeAttribute("style")},d.prototype.value=function(p){var c=p.style[u(this.keyName)];return this.canAdd(p,c)?c:""},d}(l.default);n.default=f},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function f(h,d){for(var p=0;p<d.length;p++){var c=d[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,d,p){return d&&f(h.prototype,d),p&&f(h,p),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,d){l(this,f),this.quill=h,this.options=d,this.modules={}}return o(f,[{key:"init",value:function(){var d=this;Object.keys(this.options.modules).forEach(function(p){d.modules[p]==null&&d.addModule(p)})}},{key:"addModule",value:function(d){var p=this.quill.constructor.import("modules/"+d);return this.modules[d]=new p(this.quill,this.options.modules[d]||{}),this.modules[d]}}]),f}();u.DEFAULTS={modules:{}},u.themes={default:u},n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function y(w,T){for(var x=0;x<T.length;x++){var E=T[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,T,x){return T&&y(w.prototype,T),x&&y(w,x),w}}(),l=function y(w,T,x){w===null&&(w=Function.prototype);var E=Object.getOwnPropertyDescriptor(w,T);if(E===void 0){var I=Object.getPrototypeOf(w);return I===null?void 0:y(I,T,x)}else{if("value"in E)return E.value;var A=E.get;return A===void 0?void 0:A.call(x)}},u=i(0),f=p(u),h=i(7),d=p(h);function p(y){return y&&y.__esModule?y:{default:y}}function c(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function v(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function m(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var _="\uFEFF",b=function(y){m(w,y);function w(T){c(this,w);var x=v(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,T));return x.contentNode=document.createElement("span"),x.contentNode.setAttribute("contenteditable",!1),[].slice.call(x.domNode.childNodes).forEach(function(E){x.contentNode.appendChild(E)}),x.leftGuard=document.createTextNode(_),x.rightGuard=document.createTextNode(_),x.domNode.appendChild(x.leftGuard),x.domNode.appendChild(x.contentNode),x.domNode.appendChild(x.rightGuard),x}return o(w,[{key:"index",value:function(x,E){return x===this.leftGuard?0:x===this.rightGuard?1:l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"index",this).call(this,x,E)}},{key:"restore",value:function(x){var E=void 0,I=void 0,A=x.data.split(_).join("");if(x===this.leftGuard)if(this.prev instanceof d.default){var O=this.prev.length();this.prev.insertAt(O,A),E={startNode:this.prev.domNode,startOffset:O+A.length}}else I=document.createTextNode(A),this.parent.insertBefore(f.default.create(I),this),E={startNode:I,startOffset:A.length};else x===this.rightGuard&&(this.next instanceof d.default?(this.next.insertAt(0,A),E={startNode:this.next.domNode,startOffset:A.length}):(I=document.createTextNode(A),this.parent.insertBefore(f.default.create(I),this.next),E={startNode:I,startOffset:A.length}));return x.data=_,E}},{key:"update",value:function(x,E){var I=this;x.forEach(function(A){if(A.type==="characterData"&&(A.target===I.leftGuard||A.target===I.rightGuard)){var O=I.restore(A.target);O&&(E.range=O)}})}}]),w}(f.default.Embed);n.default=b},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.AlignStyle=n.AlignClass=n.AlignAttribute=void 0;var o=i(0),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var f={scope:l.default.Scope.BLOCK,whitelist:["right","center","justify"]},h=new l.default.Attributor.Attribute("align","align",f),d=new l.default.Attributor.Class("align","ql-align",f),p=new l.default.Attributor.Style("align","text-align",f);n.AlignAttribute=h,n.AlignClass=d,n.AlignStyle=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.BackgroundStyle=n.BackgroundClass=void 0;var o=i(0),l=f(o),u=i(26);function f(p){return p&&p.__esModule?p:{default:p}}var h=new l.default.Attributor.Class("background","ql-bg",{scope:l.default.Scope.INLINE}),d=new u.ColorAttributor("background","background-color",{scope:l.default.Scope.INLINE});n.BackgroundClass=h,n.BackgroundStyle=d},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.DirectionStyle=n.DirectionClass=n.DirectionAttribute=void 0;var o=i(0),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}var f={scope:l.default.Scope.BLOCK,whitelist:["rtl"]},h=new l.default.Attributor.Attribute("direction","dir",f),d=new l.default.Attributor.Class("direction","ql-direction",f),p=new l.default.Attributor.Style("direction","direction",f);n.DirectionAttribute=h,n.DirectionClass=d,n.DirectionStyle=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.FontClass=n.FontStyle=void 0;var o=function(){function y(w,T){for(var x=0;x<T.length;x++){var E=T[x];E.enumerable=E.enumerable||!1,E.configurable=!0,"value"in E&&(E.writable=!0),Object.defineProperty(w,E.key,E)}}return function(w,T,x){return T&&y(w.prototype,T),x&&y(w,x),w}}(),l=function y(w,T,x){w===null&&(w=Function.prototype);var E=Object.getOwnPropertyDescriptor(w,T);if(E===void 0){var I=Object.getPrototypeOf(w);return I===null?void 0:y(I,T,x)}else{if("value"in E)return E.value;var A=E.get;return A===void 0?void 0:A.call(x)}},u=i(0),f=h(u);function h(y){return y&&y.__esModule?y:{default:y}}function d(y,w){if(!(y instanceof w))throw new TypeError("Cannot call a class as a function")}function p(y,w){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w&&(typeof w=="object"||typeof w=="function")?w:y}function c(y,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);y.prototype=Object.create(w&&w.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(y,w):y.__proto__=w)}var v={scope:f.default.Scope.INLINE,whitelist:["serif","monospace"]},m=new f.default.Attributor.Class("font","ql-font",v),_=function(y){c(w,y);function w(){return d(this,w),p(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return o(w,[{key:"value",value:function(x){return l(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"value",this).call(this,x).replace(/["']/g,"")}}]),w}(f.default.Attributor.Style),b=new _("font","font-family",v);n.FontStyle=b,n.FontClass=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.SizeStyle=n.SizeClass=void 0;var o=i(0),l=u(o);function u(d){return d&&d.__esModule?d:{default:d}}var f=new l.default.Attributor.Class("size","ql-size",{scope:l.default.Scope.INLINE,whitelist:["small","large","huge"]}),h=new l.default.Attributor.Style("size","font-size",{scope:l.default.Scope.INLINE,whitelist:["10px","18px","32px"]});n.SizeClass=f,n.SizeStyle=h},function(r,n,i){r.exports={align:{"":i(76),center:i(77),right:i(78),justify:i(79)},background:i(80),blockquote:i(81),bold:i(82),clean:i(83),code:i(58),"code-block":i(58),color:i(84),direction:{"":i(85),rtl:i(86)},float:{center:i(87),full:i(88),left:i(89),right:i(90)},formula:i(91),header:{1:i(92),2:i(93)},italic:i(94),image:i(95),indent:{"+1":i(96),"-1":i(97)},link:i(98),list:{ordered:i(99),bullet:i(100),check:i(101)},script:{sub:i(102),super:i(103)},strike:i(104),underline:i(105),video:i(106)}},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.getLastChangeIndex=n.default=void 0;var o=function(){function T(x,E){for(var I=0;I<E.length;I++){var A=E[I];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(x,A.key,A)}}return function(x,E,I){return E&&T(x.prototype,E),I&&T(x,I),x}}(),l=i(0),u=c(l),f=i(5),h=c(f),d=i(9),p=c(d);function c(T){return T&&T.__esModule?T:{default:T}}function v(T,x){if(!(T instanceof x))throw new TypeError("Cannot call a class as a function")}function m(T,x){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:T}function _(T,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);T.prototype=Object.create(x&&x.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(T,x):T.__proto__=x)}var b=function(T){_(x,T);function x(E,I){v(this,x);var A=m(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,E,I));return A.lastRecorded=0,A.ignoreChange=!1,A.clear(),A.quill.on(h.default.events.EDITOR_CHANGE,function(O,L,R,C){O!==h.default.events.TEXT_CHANGE||A.ignoreChange||(!A.options.userOnly||C===h.default.sources.USER?A.record(L,R):A.transform(L))}),A.quill.keyboard.addBinding({key:"Z",shortKey:!0},A.undo.bind(A)),A.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},A.redo.bind(A)),/Win/i.test(navigator.platform)&&A.quill.keyboard.addBinding({key:"Y",shortKey:!0},A.redo.bind(A)),A}return o(x,[{key:"change",value:function(I,A){if(this.stack[I].length!==0){var O=this.stack[I].pop();this.stack[A].push(O),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(O[I],h.default.sources.USER),this.ignoreChange=!1;var L=w(O[I]);this.quill.setSelection(L)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(I,A){if(I.ops.length!==0){this.stack.redo=[];var O=this.quill.getContents().diff(A),L=Date.now();if(this.lastRecorded+this.options.delay>L&&this.stack.undo.length>0){var R=this.stack.undo.pop();O=O.compose(R.undo),I=R.redo.compose(I)}else this.lastRecorded=L;this.stack.undo.push({redo:I,undo:O}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(I){this.stack.undo.forEach(function(A){A.undo=I.transform(A.undo,!0),A.redo=I.transform(A.redo,!0)}),this.stack.redo.forEach(function(A){A.undo=I.transform(A.undo,!0),A.redo=I.transform(A.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),x}(p.default);b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1};function y(T){var x=T.ops[T.ops.length-1];return x==null?!1:x.insert!=null?typeof x.insert=="string"&&x.insert.endsWith(`
1991
+ `):x.attributes!=null?Object.keys(x.attributes).some(function(E){return u.default.query(E,u.default.Scope.BLOCK)!=null}):!1}function w(T){var x=T.reduce(function(I,A){return I+=A.delete||0,I},0),E=T.length()-x;return y(T)&&(E-=1),E}n.default=b,n.getLastChangeIndex=w},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BaseTooltip=void 0;var o=function(){function D(j,Z){for(var X=0;X<Z.length;X++){var G=Z[X];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(j,G.key,G)}}return function(j,Z,X){return Z&&D(j.prototype,Z),X&&D(j,X),j}}(),l=function D(j,Z,X){j===null&&(j=Function.prototype);var G=Object.getOwnPropertyDescriptor(j,Z);if(G===void 0){var V=Object.getPrototypeOf(j);return V===null?void 0:D(V,Z,X)}else{if("value"in G)return G.value;var et=G.get;return et===void 0?void 0:et.call(X)}},u=i(3),f=L(u),h=i(2),d=L(h),p=i(8),c=L(p),v=i(23),m=L(v),_=i(34),b=L(_),y=i(59),w=L(y),T=i(60),x=L(T),E=i(28),I=L(E),A=i(61),O=L(A);function L(D){return D&&D.__esModule?D:{default:D}}function R(D,j){if(!(D instanceof j))throw new TypeError("Cannot call a class as a function")}function C(D,j){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j&&(typeof j=="object"||typeof j=="function")?j:D}function P(D,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof j);D.prototype=Object.create(j&&j.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),j&&(Object.setPrototypeOf?Object.setPrototypeOf(D,j):D.__proto__=j)}var M=[!1,"center","right","justify"],F=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],q=[!1,"serif","monospace"],Y=["1","2","3",!1],z=["small",!1,"large","huge"],it=function(D){P(j,D);function j(Z,X){R(this,j);var G=C(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,Z,X)),V=function et(Q){if(!document.body.contains(Z.root))return document.body.removeEventListener("click",et);G.tooltip!=null&&!G.tooltip.root.contains(Q.target)&&document.activeElement!==G.tooltip.textbox&&!G.quill.hasFocus()&&G.tooltip.hide(),G.pickers!=null&&G.pickers.forEach(function(rt){rt.container.contains(Q.target)||rt.close()})};return Z.emitter.listenDOM("click",document.body,V),G}return o(j,[{key:"addModule",value:function(X){var G=l(j.prototype.__proto__||Object.getPrototypeOf(j.prototype),"addModule",this).call(this,X);return X==="toolbar"&&this.extendToolbar(G),G}},{key:"buildButtons",value:function(X,G){X.forEach(function(V){var et=V.getAttribute("class")||"";et.split(/\s+/).forEach(function(Q){if(Q.startsWith("ql-")&&(Q=Q.slice(3),G[Q]!=null))if(Q==="direction")V.innerHTML=G[Q][""]+G[Q].rtl;else if(typeof G[Q]=="string")V.innerHTML=G[Q];else{var rt=V.value||"";rt!=null&&G[Q][rt]&&(V.innerHTML=G[Q][rt])}})})}},{key:"buildPickers",value:function(X,G){var V=this;this.pickers=X.map(function(Q){if(Q.classList.contains("ql-align"))return Q.querySelector("option")==null&&k(Q,M),new x.default(Q,G.align);if(Q.classList.contains("ql-background")||Q.classList.contains("ql-color")){var rt=Q.classList.contains("ql-background")?"background":"color";return Q.querySelector("option")==null&&k(Q,F,rt==="background"?"#ffffff":"#000000"),new w.default(Q,G[rt])}else return Q.querySelector("option")==null&&(Q.classList.contains("ql-font")?k(Q,q):Q.classList.contains("ql-header")?k(Q,Y):Q.classList.contains("ql-size")&&k(Q,z)),new I.default(Q)});var et=function(){V.pickers.forEach(function(rt){rt.update()})};this.quill.on(c.default.events.EDITOR_CHANGE,et)}}]),j}(b.default);it.DEFAULTS=(0,f.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var j=this,Z=this.container.querySelector("input.ql-image[type=file]");Z==null&&(Z=document.createElement("input"),Z.setAttribute("type","file"),Z.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),Z.classList.add("ql-image"),Z.addEventListener("change",function(){if(Z.files!=null&&Z.files[0]!=null){var X=new FileReader;X.onload=function(G){var V=j.quill.getSelection(!0);j.quill.updateContents(new d.default().retain(V.index).delete(V.length).insert({image:G.target.result}),c.default.sources.USER),j.quill.setSelection(V.index+1,c.default.sources.SILENT),Z.value=""},X.readAsDataURL(Z.files[0])}}),this.container.appendChild(Z)),Z.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var W=function(D){P(j,D);function j(Z,X){R(this,j);var G=C(this,(j.__proto__||Object.getPrototypeOf(j)).call(this,Z,X));return G.textbox=G.root.querySelector('input[type="text"]'),G.listen(),G}return o(j,[{key:"listen",value:function(){var X=this;this.textbox.addEventListener("keydown",function(G){m.default.match(G,"enter")?(X.save(),G.preventDefault()):m.default.match(G,"escape")&&(X.cancel(),G.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"link",G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),G!=null?this.textbox.value=G:X!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+X)||""),this.root.setAttribute("data-mode",X)}},{key:"restoreFocus",value:function(){var X=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=X}},{key:"save",value:function(){var X=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":{var G=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",X,c.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",X,c.default.sources.USER)),this.quill.root.scrollTop=G;break}case"video":X=U(X);case"formula":{if(!X)break;var V=this.quill.getSelection(!0);if(V!=null){var et=V.index+V.length;this.quill.insertEmbed(et,this.root.getAttribute("data-mode"),X,c.default.sources.USER),this.root.getAttribute("data-mode")==="formula"&&this.quill.insertText(et+1," ",c.default.sources.USER),this.quill.setSelection(et+2,c.default.sources.USER)}break}}this.textbox.value="",this.hide()}}]),j}(O.default);function U(D){var j=D.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||D.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return j?(j[1]||"https")+"://www.youtube.com/embed/"+j[2]+"?showinfo=0":(j=D.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(j[1]||"https")+"://player.vimeo.com/video/"+j[2]+"/":D}function k(D,j){var Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;j.forEach(function(X){var G=document.createElement("option");X===Z?G.setAttribute("selected","selected"):G.setAttribute("value",X),D.appendChild(G)})}n.BaseTooltip=W,n.default=it},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function l(){this.head=this.tail=null,this.length=0}return l.prototype.append=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];this.insertBefore(u[0],null),u.length>1&&this.append.apply(this,u.slice(1))},l.prototype.contains=function(u){for(var f,h=this.iterator();f=h();)if(f===u)return!0;return!1},l.prototype.insertBefore=function(u,f){u&&(u.next=f,f!=null?(u.prev=f.prev,f.prev!=null&&(f.prev.next=u),f.prev=u,f===this.head&&(this.head=u)):this.tail!=null?(this.tail.next=u,u.prev=this.tail,this.tail=u):(u.prev=null,this.head=this.tail=u),this.length+=1)},l.prototype.offset=function(u){for(var f=0,h=this.head;h!=null;){if(h===u)return f;f+=h.length(),h=h.next}return-1},l.prototype.remove=function(u){this.contains(u)&&(u.prev!=null&&(u.prev.next=u.next),u.next!=null&&(u.next.prev=u.prev),u===this.head&&(this.head=u.next),u===this.tail&&(this.tail=u.prev),this.length-=1)},l.prototype.iterator=function(u){return u===void 0&&(u=this.head),function(){var f=u;return u!=null&&(u=u.next),f}},l.prototype.find=function(u,f){f===void 0&&(f=!1);for(var h,d=this.iterator();h=d();){var p=h.length();if(u<p||f&&u===p&&(h.next==null||h.next.length()!==0))return[h,u];u-=p}return[null,0]},l.prototype.forEach=function(u){for(var f,h=this.iterator();f=h();)u(f)},l.prototype.forEachAt=function(u,f,h){if(!(f<=0))for(var d=this.find(u),p=d[0],c=d[1],v,m=u-c,_=this.iterator(p);(v=_())&&m<u+f;){var b=v.length();u>m?h(v,u-m,Math.min(f,m+b-u)):h(v,0,Math.min(b,u+f-m)),m+=b}},l.prototype.map=function(u){return this.reduce(function(f,h){return f.push(u(h)),f},[])},l.prototype.reduce=function(u,f){for(var h,d=this.iterator();h=d();)f=u(f,h);return f},l}();n.default=o},function(r,n,i){var o=this&&this.__extends||function(){var p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,v){c.__proto__=v}||function(c,v){for(var m in v)v.hasOwnProperty(m)&&(c[m]=v[m])};return function(c,v){p(c,v);function m(){this.constructor=c}c.prototype=v===null?Object.create(v):(m.prototype=v.prototype,new m)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(17),u=i(1),f={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},h=100,d=function(p){o(c,p);function c(v){var m=p.call(this,v)||this;return m.scroll=m,m.observer=new MutationObserver(function(_){m.update(_)}),m.observer.observe(m.domNode,f),m.attach(),m}return c.prototype.detach=function(){p.prototype.detach.call(this),this.observer.disconnect()},c.prototype.deleteAt=function(v,m){this.update(),v===0&&m===this.length()?this.children.forEach(function(_){_.remove()}):p.prototype.deleteAt.call(this,v,m)},c.prototype.formatAt=function(v,m,_,b){this.update(),p.prototype.formatAt.call(this,v,m,_,b)},c.prototype.insertAt=function(v,m,_){this.update(),p.prototype.insertAt.call(this,v,m,_)},c.prototype.optimize=function(v,m){var _=this;v===void 0&&(v=[]),m===void 0&&(m={}),p.prototype.optimize.call(this,m);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)v.push(b.pop());for(var y=function(E,I){I===void 0&&(I=!0),!(E==null||E===_)&&E.domNode.parentNode!=null&&(E.domNode[u.DATA_KEY].mutations==null&&(E.domNode[u.DATA_KEY].mutations=[]),I&&y(E.parent))},w=function(E){E.domNode[u.DATA_KEY]==null||E.domNode[u.DATA_KEY].mutations==null||(E instanceof l.default&&E.children.forEach(w),E.optimize(m))},T=v,x=0;T.length>0;x+=1){if(x>=h)throw new Error("[Parchment] Maximum optimize iterations reached");for(T.forEach(function(E){var I=u.find(E.target,!0);I!=null&&(I.domNode===E.target&&(E.type==="childList"?(y(u.find(E.previousSibling,!1)),[].forEach.call(E.addedNodes,function(A){var O=u.find(A,!1);y(O,!1),O instanceof l.default&&O.children.forEach(function(L){y(L,!1)})})):E.type==="attributes"&&y(I.prev)),y(I))}),this.children.forEach(w),T=[].slice.call(this.observer.takeRecords()),b=T.slice();b.length>0;)v.push(b.pop())}},c.prototype.update=function(v,m){var _=this;m===void 0&&(m={}),v=v||this.observer.takeRecords(),v.map(function(b){var y=u.find(b.target,!0);return y==null?null:y.domNode[u.DATA_KEY].mutations==null?(y.domNode[u.DATA_KEY].mutations=[b],y):(y.domNode[u.DATA_KEY].mutations.push(b),null)}).forEach(function(b){b==null||b===_||b.domNode[u.DATA_KEY]==null||b.update(b.domNode[u.DATA_KEY].mutations||[],m)}),this.domNode[u.DATA_KEY].mutations!=null&&p.prototype.update.call(this,this.domNode[u.DATA_KEY].mutations,m),this.optimize(v,m)},c.blotName="scroll",c.defaultChild="block",c.scope=u.Scope.BLOCK_BLOT,c.tagName="DIV",c}(l.default);n.default=d},function(r,n,i){var o=this&&this.__extends||function(){var d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,c){p.__proto__=c}||function(p,c){for(var v in c)c.hasOwnProperty(v)&&(p[v]=c[v])};return function(p,c){d(p,c);function v(){this.constructor=p}p.prototype=c===null?Object.create(c):(v.prototype=c.prototype,new v)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(18),u=i(1);function f(d,p){if(Object.keys(d).length!==Object.keys(p).length)return!1;for(var c in d)if(d[c]!==p[c])return!1;return!0}var h=function(d){o(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.formats=function(c){if(c.tagName!==p.tagName)return d.formats.call(this,c)},p.prototype.format=function(c,v){var m=this;c===this.statics.blotName&&!v?(this.children.forEach(function(_){_ instanceof l.default||(_=_.wrap(p.blotName,!0)),m.attributes.copy(_)}),this.unwrap()):d.prototype.format.call(this,c,v)},p.prototype.formatAt=function(c,v,m,_){if(this.formats()[m]!=null||u.query(m,u.Scope.ATTRIBUTE)){var b=this.isolate(c,v);b.format(m,_)}else d.prototype.formatAt.call(this,c,v,m,_)},p.prototype.optimize=function(c){d.prototype.optimize.call(this,c);var v=this.formats();if(Object.keys(v).length===0)return this.unwrap();var m=this.next;m instanceof p&&m.prev===this&&f(v,m.formats())&&(m.moveChildren(this),m.remove())},p.blotName="inline",p.scope=u.Scope.INLINE_BLOT,p.tagName="SPAN",p}(l.default);n.default=h},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(18),u=i(1),f=function(h){o(d,h);function d(){return h!==null&&h.apply(this,arguments)||this}return d.formats=function(p){var c=u.query(d.blotName).tagName;if(p.tagName!==c)return h.formats.call(this,p)},d.prototype.format=function(p,c){u.query(p,u.Scope.BLOCK)!=null&&(p===this.statics.blotName&&!c?this.replaceWith(d.blotName):h.prototype.format.call(this,p,c))},d.prototype.formatAt=function(p,c,v,m){u.query(v,u.Scope.BLOCK)!=null?this.format(v,m):h.prototype.formatAt.call(this,p,c,v,m)},d.prototype.insertAt=function(p,c,v){if(v==null||u.query(c,u.Scope.INLINE)!=null)h.prototype.insertAt.call(this,p,c,v);else{var m=this.split(p),_=u.create(c,v);m.parent.insertBefore(_,m)}},d.prototype.update=function(p,c){navigator.userAgent.match(/Trident/)?this.build():h.prototype.update.call(this,p,c)},d.blotName="block",d.scope=u.Scope.BLOCK_BLOT,d.tagName="P",d}(l.default);n.default=f},function(r,n,i){var o=this&&this.__extends||function(){var f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,d){h.__proto__=d}||function(h,d){for(var p in d)d.hasOwnProperty(p)&&(h[p]=d[p])};return function(h,d){f(h,d);function p(){this.constructor=h}h.prototype=d===null?Object.create(d):(p.prototype=d.prototype,new p)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(19),u=function(f){o(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.formats=function(d){},h.prototype.format=function(d,p){f.prototype.formatAt.call(this,0,this.length(),d,p)},h.prototype.formatAt=function(d,p,c,v){d===0&&p===this.length()?this.format(c,v):f.prototype.formatAt.call(this,d,p,c,v)},h.prototype.formats=function(){return this.statics.formats(this.domNode)},h}(l.default);n.default=u},function(r,n,i){var o=this&&this.__extends||function(){var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var c in p)p.hasOwnProperty(c)&&(d[c]=p[c])};return function(d,p){h(d,p);function c(){this.constructor=d}d.prototype=p===null?Object.create(p):(c.prototype=p.prototype,new c)}}();Object.defineProperty(n,"__esModule",{value:!0});var l=i(19),u=i(1),f=function(h){o(d,h);function d(p){var c=h.call(this,p)||this;return c.text=c.statics.value(c.domNode),c}return d.create=function(p){return document.createTextNode(p)},d.value=function(p){var c=p.data;return c.normalize&&(c=c.normalize()),c},d.prototype.deleteAt=function(p,c){this.domNode.data=this.text=this.text.slice(0,p)+this.text.slice(p+c)},d.prototype.index=function(p,c){return this.domNode===p?c:-1},d.prototype.insertAt=function(p,c,v){v==null?(this.text=this.text.slice(0,p)+c+this.text.slice(p),this.domNode.data=this.text):h.prototype.insertAt.call(this,p,c,v)},d.prototype.length=function(){return this.text.length},d.prototype.optimize=function(p){h.prototype.optimize.call(this,p),this.text=this.statics.value(this.domNode),this.text.length===0?this.remove():this.next instanceof d&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},d.prototype.position=function(p,c){return[this.domNode,p]},d.prototype.split=function(p,c){if(c===void 0&&(c=!1),!c){if(p===0)return this;if(p===this.length())return this.next}var v=u.create(this.domNode.splitText(p));return this.parent.insertBefore(v,this.next),this.text=this.statics.value(this.domNode),v},d.prototype.update=function(p,c){var v=this;p.some(function(m){return m.type==="characterData"&&m.target===v.domNode})&&(this.text=this.statics.value(this.domNode))},d.prototype.value=function(){return this.text},d.blotName="text",d.scope=u.Scope.INLINE_BLOT,d}(l.default);n.default=f},function(r,n,i){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var l=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(u,f){return arguments.length>1&&!this.contains(u)==!f?f:l.call(this,u)}}String.prototype.startsWith||(String.prototype.startsWith=function(u,f){return f=f||0,this.substr(f,u.length)===u}),String.prototype.endsWith||(String.prototype.endsWith=function(u,f){var h=this.toString();(typeof f!="number"||!isFinite(f)||Math.floor(f)!==f||f>h.length)&&(f=h.length),f-=u.length;var d=h.indexOf(u,f);return d!==-1&&d===f}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(f){if(this===null)throw new TypeError("Array.prototype.find called on null or undefined");if(typeof f!="function")throw new TypeError("predicate must be a function");for(var h=Object(this),d=h.length>>>0,p=arguments[1],c,v=0;v<d;v++)if(c=h[v],f.call(p,c,v,h))return c}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(r,n){var i=-1,o=1,l=0;function u(x,E,I){if(x==E)return x?[[l,x]]:[];(I<0||x.length<I)&&(I=null);var A=p(x,E),O=x.substring(0,A);x=x.substring(A),E=E.substring(A),A=c(x,E);var L=x.substring(x.length-A);x=x.substring(0,x.length-A),E=E.substring(0,E.length-A);var R=f(x,E);return O&&R.unshift([l,O]),L&&R.push([l,L]),m(R),I!=null&&(R=y(R,I)),R=w(R),R}function f(x,E){var I;if(!x)return[[o,E]];if(!E)return[[i,x]];var A=x.length>E.length?x:E,O=x.length>E.length?E:x,L=A.indexOf(O);if(L!=-1)return I=[[o,A.substring(0,L)],[l,O],[o,A.substring(L+O.length)]],x.length>E.length&&(I[0][0]=I[2][0]=i),I;if(O.length==1)return[[i,x],[o,E]];var R=v(x,E);if(R){var C=R[0],P=R[1],M=R[2],F=R[3],q=R[4],Y=u(C,M),z=u(P,F);return Y.concat([[l,q]],z)}return h(x,E)}function h(x,E){for(var I=x.length,A=E.length,O=Math.ceil((I+A)/2),L=O,R=2*O,C=new Array(R),P=new Array(R),M=0;M<R;M++)C[M]=-1,P[M]=-1;C[L+1]=0,P[L+1]=0;for(var F=I-A,q=F%2!=0,Y=0,z=0,it=0,W=0,U=0;U<O;U++){for(var k=-U+Y;k<=U-z;k+=2){var D=L+k,j;k==-U||k!=U&&C[D-1]<C[D+1]?j=C[D+1]:j=C[D-1]+1;for(var Z=j-k;j<I&&Z<A&&x.charAt(j)==E.charAt(Z);)j++,Z++;if(C[D]=j,j>I)z+=2;else if(Z>A)Y+=2;else if(q){var X=L+F-k;if(X>=0&&X<R&&P[X]!=-1){var G=I-P[X];if(j>=G)return d(x,E,j,Z)}}}for(var V=-U+it;V<=U-W;V+=2){var X=L+V,G;V==-U||V!=U&&P[X-1]<P[X+1]?G=P[X+1]:G=P[X-1]+1;for(var et=G-V;G<I&&et<A&&x.charAt(I-G-1)==E.charAt(A-et-1);)G++,et++;if(P[X]=G,G>I)W+=2;else if(et>A)it+=2;else if(!q){var D=L+F-V;if(D>=0&&D<R&&C[D]!=-1){var j=C[D],Z=L+j-D;if(G=I-G,j>=G)return d(x,E,j,Z)}}}}return[[i,x],[o,E]]}function d(x,E,I,A){var O=x.substring(0,I),L=E.substring(0,A),R=x.substring(I),C=E.substring(A),P=u(O,L),M=u(R,C);return P.concat(M)}function p(x,E){if(!x||!E||x.charAt(0)!=E.charAt(0))return 0;for(var I=0,A=Math.min(x.length,E.length),O=A,L=0;I<O;)x.substring(L,O)==E.substring(L,O)?(I=O,L=I):A=O,O=Math.floor((A-I)/2+I);return O}function c(x,E){if(!x||!E||x.charAt(x.length-1)!=E.charAt(E.length-1))return 0;for(var I=0,A=Math.min(x.length,E.length),O=A,L=0;I<O;)x.substring(x.length-O,x.length-L)==E.substring(E.length-O,E.length-L)?(I=O,L=I):A=O,O=Math.floor((A-I)/2+I);return O}function v(x,E){var I=x.length>E.length?x:E,A=x.length>E.length?E:x;if(I.length<4||A.length*2<I.length)return null;function O(z,it,W){for(var U=z.substring(W,W+Math.floor(z.length/4)),k=-1,D="",j,Z,X,G;(k=it.indexOf(U,k+1))!=-1;){var V=p(z.substring(W),it.substring(k)),et=c(z.substring(0,W),it.substring(0,k));D.length<et+V&&(D=it.substring(k-et,k)+it.substring(k,k+V),j=z.substring(0,W-et),Z=z.substring(W+V),X=it.substring(0,k-et),G=it.substring(k+V))}return D.length*2>=z.length?[j,Z,X,G,D]:null}var L=O(I,A,Math.ceil(I.length/4)),R=O(I,A,Math.ceil(I.length/2)),C;if(!L&&!R)return null;R?L?C=L[4].length>R[4].length?L:R:C=R:C=L;var P,M,F,q;x.length>E.length?(P=C[0],M=C[1],F=C[2],q=C[3]):(F=C[0],q=C[1],P=C[2],M=C[3]);var Y=C[4];return[P,M,F,q,Y]}function m(x){x.push([l,""]);for(var E=0,I=0,A=0,O="",L="",R;E<x.length;)switch(x[E][0]){case o:A++,L+=x[E][1],E++;break;case i:I++,O+=x[E][1],E++;break;case l:I+A>1?(I!==0&&A!==0&&(R=p(L,O),R!==0&&(E-I-A>0&&x[E-I-A-1][0]==l?x[E-I-A-1][1]+=L.substring(0,R):(x.splice(0,0,[l,L.substring(0,R)]),E++),L=L.substring(R),O=O.substring(R)),R=c(L,O),R!==0&&(x[E][1]=L.substring(L.length-R)+x[E][1],L=L.substring(0,L.length-R),O=O.substring(0,O.length-R))),I===0?x.splice(E-A,I+A,[o,L]):A===0?x.splice(E-I,I+A,[i,O]):x.splice(E-I-A,I+A,[i,O],[o,L]),E=E-I-A+(I?1:0)+(A?1:0)+1):E!==0&&x[E-1][0]==l?(x[E-1][1]+=x[E][1],x.splice(E,1)):E++,A=0,I=0,O="",L="";break}x[x.length-1][1]===""&&x.pop();var C=!1;for(E=1;E<x.length-1;)x[E-1][0]==l&&x[E+1][0]==l&&(x[E][1].substring(x[E][1].length-x[E-1][1].length)==x[E-1][1]?(x[E][1]=x[E-1][1]+x[E][1].substring(0,x[E][1].length-x[E-1][1].length),x[E+1][1]=x[E-1][1]+x[E+1][1],x.splice(E-1,1),C=!0):x[E][1].substring(0,x[E+1][1].length)==x[E+1][1]&&(x[E-1][1]+=x[E+1][1],x[E][1]=x[E][1].substring(x[E+1][1].length)+x[E+1][1],x.splice(E+1,1),C=!0)),E++;C&&m(x)}var _=u;_.INSERT=o,_.DELETE=i,_.EQUAL=l,r.exports=_;function b(x,E){if(E===0)return[l,x];for(var I=0,A=0;A<x.length;A++){var O=x[A];if(O[0]===i||O[0]===l){var L=I+O[1].length;if(E===L)return[A+1,x];if(E<L){x=x.slice();var R=E-I,C=[O[0],O[1].slice(0,R)],P=[O[0],O[1].slice(R)];return x.splice(A,1,C,P),[A+1,x]}else I=L}}throw new Error("cursor_pos is out of bounds!")}function y(x,E){var I=b(x,E),A=I[1],O=I[0],L=A[O],R=A[O+1];if(L==null)return x;if(L[0]!==l)return x;if(R!=null&&L[1]+R[1]===R[1]+L[1])return A.splice(O,2,R,L),T(A,O,2);if(R!=null&&R[1].indexOf(L[1])===0){A.splice(O,2,[R[0],L[1]],[0,L[1]]);var C=R[1].slice(L[1].length);return C.length>0&&A.splice(O+2,0,[R[0],C]),T(A,O,3)}else return x}function w(x){for(var E=!1,I=function(R){return R.charCodeAt(0)>=56320&&R.charCodeAt(0)<=57343},A=function(R){return R.charCodeAt(R.length-1)>=55296&&R.charCodeAt(R.length-1)<=56319},O=2;O<x.length;O+=1)x[O-2][0]===l&&A(x[O-2][1])&&x[O-1][0]===i&&I(x[O-1][1])&&x[O][0]===o&&I(x[O][1])&&(E=!0,x[O-1][1]=x[O-2][1].slice(-1)+x[O-1][1],x[O][1]=x[O-2][1].slice(-1)+x[O][1],x[O-2][1]=x[O-2][1].slice(0,-1));if(!E)return x;for(var L=[],O=0;O<x.length;O+=1)x[O][1].length>0&&L.push(x[O]);return L}function T(x,E,I){for(var A=E+I-1;A>=0&&A>=E-1;A--)if(A+1<x.length){var O=x[A],L=x[A+1];O[0]===L[1]&&x.splice(A,2,[O[0],O[1]+L[1]])}return x}},function(r,n){n=r.exports=typeof Object.keys=="function"?Object.keys:i,n.shim=i;function i(o){var l=[];for(var u in o)l.push(u);return l}},function(r,n){var i=function(){return Object.prototype.toString.call(arguments)}()=="[object Arguments]";n=r.exports=i?o:l,n.supported=o;function o(u){return Object.prototype.toString.call(u)=="[object Arguments]"}n.unsupported=l;function l(u){return u&&typeof u=="object"&&typeof u.length=="number"&&Object.prototype.hasOwnProperty.call(u,"callee")&&!Object.prototype.propertyIsEnumerable.call(u,"callee")||!1}},function(r,n){var i=Object.prototype.hasOwnProperty,o="~";function l(){}Object.create&&(l.prototype=Object.create(null),new l().__proto__||(o=!1));function u(h,d,p){this.fn=h,this.context=d,this.once=p||!1}function f(){this._events=new l,this._eventsCount=0}f.prototype.eventNames=function(){var d=[],p,c;if(this._eventsCount===0)return d;for(c in p=this._events)i.call(p,c)&&d.push(o?c.slice(1):c);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(p)):d},f.prototype.listeners=function(d,p){var c=o?o+d:d,v=this._events[c];if(p)return!!v;if(!v)return[];if(v.fn)return[v.fn];for(var m=0,_=v.length,b=new Array(_);m<_;m++)b[m]=v[m].fn;return b},f.prototype.emit=function(d,p,c,v,m,_){var b=o?o+d:d;if(!this._events[b])return!1;var y=this._events[b],w=arguments.length,T,x;if(y.fn){switch(y.once&&this.removeListener(d,y.fn,void 0,!0),w){case 1:return y.fn.call(y.context),!0;case 2:return y.fn.call(y.context,p),!0;case 3:return y.fn.call(y.context,p,c),!0;case 4:return y.fn.call(y.context,p,c,v),!0;case 5:return y.fn.call(y.context,p,c,v,m),!0;case 6:return y.fn.call(y.context,p,c,v,m,_),!0}for(x=1,T=new Array(w-1);x<w;x++)T[x-1]=arguments[x];y.fn.apply(y.context,T)}else{var E=y.length,I;for(x=0;x<E;x++)switch(y[x].once&&this.removeListener(d,y[x].fn,void 0,!0),w){case 1:y[x].fn.call(y[x].context);break;case 2:y[x].fn.call(y[x].context,p);break;case 3:y[x].fn.call(y[x].context,p,c);break;case 4:y[x].fn.call(y[x].context,p,c,v);break;default:if(!T)for(I=1,T=new Array(w-1);I<w;I++)T[I-1]=arguments[I];y[x].fn.apply(y[x].context,T)}}return!0},f.prototype.on=function(d,p,c){var v=new u(p,c||this),m=o?o+d:d;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],v]:this._events[m].push(v):(this._events[m]=v,this._eventsCount++),this},f.prototype.once=function(d,p,c){var v=new u(p,c||this,!0),m=o?o+d:d;return this._events[m]?this._events[m].fn?this._events[m]=[this._events[m],v]:this._events[m].push(v):(this._events[m]=v,this._eventsCount++),this},f.prototype.removeListener=function(d,p,c,v){var m=o?o+d:d;if(!this._events[m])return this;if(!p)return--this._eventsCount===0?this._events=new l:delete this._events[m],this;var _=this._events[m];if(_.fn)_.fn===p&&(!v||_.once)&&(!c||_.context===c)&&(--this._eventsCount===0?this._events=new l:delete this._events[m]);else{for(var b=0,y=[],w=_.length;b<w;b++)(_[b].fn!==p||v&&!_[b].once||c&&_[b].context!==c)&&y.push(_[b]);y.length?this._events[m]=y.length===1?y[0]:y:--this._eventsCount===0?this._events=new l:delete this._events[m]}return this},f.prototype.removeAllListeners=function(d){var p;return d?(p=o?o+d:d,this._events[p]&&(--this._eventsCount===0?this._events=new l:delete this._events[p])):(this._events=new l,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prototype.setMaxListeners=function(){return this},f.prefixed=o,f.EventEmitter=f,typeof r<"u"&&(r.exports=f)},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.matchText=n.matchSpacing=n.matchNewline=n.matchBlot=n.matchAttributor=n.default=void 0;var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(nt){return typeof nt}:function(nt){return nt&&typeof Symbol=="function"&&nt.constructor===Symbol&&nt!==Symbol.prototype?"symbol":typeof nt},l=function(){function nt(lt,dt){var vt=[],ct=!0,Pt=!1,Lt=void 0;try{for(var Nt=lt[Symbol.iterator](),He;!(ct=(He=Nt.next()).done)&&(vt.push(He.value),!(dt&&vt.length===dt));ct=!0);}catch(Ge){Pt=!0,Lt=Ge}finally{try{!ct&&Nt.return&&Nt.return()}finally{if(Pt)throw Lt}}return vt}return function(lt,dt){if(Array.isArray(lt))return lt;if(Symbol.iterator in Object(lt))return nt(lt,dt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),u=function(){function nt(lt,dt){for(var vt=0;vt<dt.length;vt++){var ct=dt[vt];ct.enumerable=ct.enumerable||!1,ct.configurable=!0,"value"in ct&&(ct.writable=!0),Object.defineProperty(lt,ct.key,ct)}}return function(lt,dt,vt){return dt&&nt(lt.prototype,dt),vt&&nt(lt,vt),lt}}(),f=i(3),h=P(f),d=i(2),p=P(d),c=i(0),v=P(c),m=i(5),_=P(m),b=i(10),y=P(b),w=i(9),T=P(w),x=i(36),E=i(37),I=i(13),A=P(I),O=i(26),L=i(38),R=i(39),C=i(40);function P(nt){return nt&&nt.__esModule?nt:{default:nt}}function M(nt,lt,dt){return lt in nt?Object.defineProperty(nt,lt,{value:dt,enumerable:!0,configurable:!0,writable:!0}):nt[lt]=dt,nt}function F(nt,lt){if(!(nt instanceof lt))throw new TypeError("Cannot call a class as a function")}function q(nt,lt){if(!nt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return lt&&(typeof lt=="object"||typeof lt=="function")?lt:nt}function Y(nt,lt){if(typeof lt!="function"&&lt!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof lt);nt.prototype=Object.create(lt&&lt.prototype,{constructor:{value:nt,enumerable:!1,writable:!0,configurable:!0}}),lt&&(Object.setPrototypeOf?Object.setPrototypeOf(nt,lt):nt.__proto__=lt)}var z=(0,y.default)("quill:clipboard"),it="__ql-matcher",W=[[Node.TEXT_NODE,qt],[Node.TEXT_NODE,xt],["br",ot],[Node.ELEMENT_NODE,xt],[Node.ELEMENT_NODE,rt],[Node.ELEMENT_NODE,At],[Node.ELEMENT_NODE,Q],[Node.ELEMENT_NODE,oe],["li",mt],["b",et.bind(et,"bold")],["i",et.bind(et,"italic")],["style",pt]],U=[x.AlignAttribute,L.DirectionAttribute].reduce(function(nt,lt){return nt[lt.keyName]=lt,nt},{}),k=[x.AlignStyle,E.BackgroundStyle,O.ColorStyle,L.DirectionStyle,R.FontStyle,C.SizeStyle].reduce(function(nt,lt){return nt[lt.keyName]=lt,nt},{}),D=function(nt){Y(lt,nt);function lt(dt,vt){F(this,lt);var ct=q(this,(lt.__proto__||Object.getPrototypeOf(lt)).call(this,dt,vt));return ct.quill.root.addEventListener("paste",ct.onPaste.bind(ct)),ct.container=ct.quill.addContainer("ql-clipboard"),ct.container.setAttribute("contenteditable",!0),ct.container.setAttribute("tabindex",-1),ct.matchers=[],W.concat(ct.options.matchers).forEach(function(Pt){var Lt=l(Pt,2),Nt=Lt[0],He=Lt[1];!vt.matchVisual&&He===At||ct.addMatcher(Nt,He)}),ct}return u(lt,[{key:"addMatcher",value:function(vt,ct){this.matchers.push([vt,ct])}},{key:"convert",value:function(vt){if(typeof vt=="string")return this.container.innerHTML=vt.replace(/\>\r?\n +\</g,"><"),this.convert();var ct=this.quill.getFormat(this.quill.selection.savedRange.index);if(ct[A.default.blotName]){var Pt=this.container.innerText;return this.container.innerHTML="",new p.default().insert(Pt,M({},A.default.blotName,ct[A.default.blotName]))}var Lt=this.prepareMatching(),Nt=l(Lt,2),He=Nt[0],Ge=Nt[1],Qt=V(this.container,He,Ge);return X(Qt,`
1992
+ `)&&Qt.ops[Qt.ops.length-1].attributes==null&&(Qt=Qt.compose(new p.default().retain(Qt.length()-1).delete(1))),z.log("convert",this.container.innerHTML,Qt),this.container.innerHTML="",Qt}},{key:"dangerouslyPasteHTML",value:function(vt,ct){var Pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:_.default.sources.API;if(typeof vt=="string")this.quill.setContents(this.convert(vt),ct),this.quill.setSelection(0,_.default.sources.SILENT);else{var Lt=this.convert(ct);this.quill.updateContents(new p.default().retain(vt).concat(Lt),Pt),this.quill.setSelection(vt+Lt.length(),_.default.sources.SILENT)}}},{key:"onPaste",value:function(vt){var ct=this;if(!(vt.defaultPrevented||!this.quill.isEnabled())){var Pt=this.quill.getSelection(),Lt=new p.default().retain(Pt.index),Nt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(_.default.sources.SILENT),setTimeout(function(){Lt=Lt.concat(ct.convert()).delete(Pt.length),ct.quill.updateContents(Lt,_.default.sources.USER),ct.quill.setSelection(Lt.length()-Pt.length,_.default.sources.SILENT),ct.quill.scrollingContainer.scrollTop=Nt,ct.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var vt=this,ct=[],Pt=[];return this.matchers.forEach(function(Lt){var Nt=l(Lt,2),He=Nt[0],Ge=Nt[1];switch(He){case Node.TEXT_NODE:Pt.push(Ge);break;case Node.ELEMENT_NODE:ct.push(Ge);break;default:[].forEach.call(vt.container.querySelectorAll(He),function(Qt){Qt[it]=Qt[it]||[],Qt[it].push(Ge)});break}}),[ct,Pt]}}]),lt}(T.default);D.DEFAULTS={matchers:[],matchVisual:!0};function j(nt,lt,dt){return(typeof lt>"u"?"undefined":o(lt))==="object"?Object.keys(lt).reduce(function(vt,ct){return j(vt,ct,lt[ct])},nt):nt.reduce(function(vt,ct){return ct.attributes&&ct.attributes[lt]?vt.push(ct):vt.insert(ct.insert,(0,h.default)({},M({},lt,dt),ct.attributes))},new p.default)}function Z(nt){if(nt.nodeType!==Node.ELEMENT_NODE)return{};var lt="__ql-computed-style";return nt[lt]||(nt[lt]=window.getComputedStyle(nt))}function X(nt,lt){for(var dt="",vt=nt.ops.length-1;vt>=0&&dt.length<lt.length;--vt){var ct=nt.ops[vt];if(typeof ct.insert!="string")break;dt=ct.insert+dt}return dt.slice(-1*lt.length)===lt}function G(nt){if(nt.childNodes.length===0)return!1;var lt=Z(nt);return["block","list-item"].indexOf(lt.display)>-1}function V(nt,lt,dt){return nt.nodeType===nt.TEXT_NODE?dt.reduce(function(vt,ct){return ct(nt,vt)},new p.default):nt.nodeType===nt.ELEMENT_NODE?[].reduce.call(nt.childNodes||[],function(vt,ct){var Pt=V(ct,lt,dt);return ct.nodeType===nt.ELEMENT_NODE&&(Pt=lt.reduce(function(Lt,Nt){return Nt(ct,Lt)},Pt),Pt=(ct[it]||[]).reduce(function(Lt,Nt){return Nt(ct,Lt)},Pt)),vt.concat(Pt)},new p.default):new p.default}function et(nt,lt,dt){return j(dt,nt,!0)}function Q(nt,lt){var dt=v.default.Attributor.Attribute.keys(nt),vt=v.default.Attributor.Class.keys(nt),ct=v.default.Attributor.Style.keys(nt),Pt={};return dt.concat(vt).concat(ct).forEach(function(Lt){var Nt=v.default.query(Lt,v.default.Scope.ATTRIBUTE);Nt!=null&&(Pt[Nt.attrName]=Nt.value(nt),Pt[Nt.attrName])||(Nt=U[Lt],Nt!=null&&(Nt.attrName===Lt||Nt.keyName===Lt)&&(Pt[Nt.attrName]=Nt.value(nt)||void 0),Nt=k[Lt],Nt!=null&&(Nt.attrName===Lt||Nt.keyName===Lt)&&(Nt=k[Lt],Pt[Nt.attrName]=Nt.value(nt)||void 0))}),Object.keys(Pt).length>0&&(lt=j(lt,Pt)),lt}function rt(nt,lt){var dt=v.default.query(nt);if(dt==null)return lt;if(dt.prototype instanceof v.default.Embed){var vt={},ct=dt.value(nt);ct!=null&&(vt[dt.blotName]=ct,lt=new p.default().insert(vt,dt.formats(nt)))}else typeof dt.formats=="function"&&(lt=j(lt,dt.blotName,dt.formats(nt)));return lt}function ot(nt,lt){return X(lt,`
1993
1993
  `)||lt.insert(`
1994
- `),lt}function pt(){return new p.default}function mt(nt,lt){var dt=v.default.query(nt);if(dt==null||dt.blotName!=="list-item"||!Y(lt,`
1995
- `))return lt;for(var vt=-1,ct=nt.parentNode;!ct.classList.contains("ql-clipboard");)(v.default.query(ct)||{}).blotName==="list"&&(vt+=1),ct=ct.parentNode;return vt<=0?lt:lt.compose(new p.default().retain(lt.length()-1).retain(1,{indent:vt}))}function xt(nt,lt){return Y(lt,`
1994
+ `),lt}function pt(){return new p.default}function mt(nt,lt){var dt=v.default.query(nt);if(dt==null||dt.blotName!=="list-item"||!X(lt,`
1995
+ `))return lt;for(var vt=-1,ct=nt.parentNode;!ct.classList.contains("ql-clipboard");)(v.default.query(ct)||{}).blotName==="list"&&(vt+=1),ct=ct.parentNode;return vt<=0?lt:lt.compose(new p.default().retain(lt.length()-1).retain(1,{indent:vt}))}function xt(nt,lt){return X(lt,`
1996
1996
  `)||(G(nt)||lt.length()>0&&nt.nextSibling&&G(nt.nextSibling))&&lt.insert(`
1997
- `),lt}function At(nt,lt){if(G(nt)&&nt.nextElementSibling!=null&&!Y(lt,`
1997
+ `),lt}function At(nt,lt){if(G(nt)&&nt.nextElementSibling!=null&&!X(lt,`
1998
1998
 
1999
1999
  `)){var dt=nt.offsetHeight+parseFloat(Z(nt).marginTop)+parseFloat(Z(nt).marginBottom);nt.nextElementSibling.offsetTop>nt.offsetTop+dt*1.5&&lt.insert(`
2000
- `)}return lt}function oe(nt,lt){var dt={},vt=nt.style||{};return vt.fontStyle&&Z(nt).fontStyle==="italic"&&(dt.italic=!0),vt.fontWeight&&(Z(nt).fontWeight.startsWith("bold")||parseInt(Z(nt).fontWeight)>=700)&&(dt.bold=!0),Object.keys(dt).length>0&&(lt=j(lt,dt)),parseFloat(vt.textIndent||0)>0&&(lt=new p.default().insert(" ").concat(lt)),lt}function qt(nt,lt){var dt=nt.data;if(nt.parentNode.tagName==="O:P")return lt.insert(dt.trim());if(dt.trim().length===0&&nt.parentNode.classList.contains("ql-clipboard"))return lt;if(!Z(nt.parentNode).whiteSpace.startsWith("pre")){var vt=function(Pt,Lt){return Lt=Lt.replace(/[^\u00a0]/g,""),Lt.length<1&&Pt?" ":Lt};dt=dt.replace(/\r\n/g," ").replace(/\n/g," "),dt=dt.replace(/\s\s+/g,vt.bind(vt,!0)),(nt.previousSibling==null&&G(nt.parentNode)||nt.previousSibling!=null&&G(nt.previousSibling))&&(dt=dt.replace(/^\s+/,vt.bind(vt,!1))),(nt.nextSibling==null&&G(nt.parentNode)||nt.nextSibling!=null&&G(nt.nextSibling))&&(dt=dt.replace(/\s+$/,vt.bind(vt,!1)))}return lt.insert(dt)}n.default=D,n.matchAttributor=Q,n.matchBlot=et,n.matchNewline=xt,n.matchSpacing=At,n.matchText=qt},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,b){for(var y=0;y<b.length;y++){var w=b[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,b,y){return b&&m(_.prototype,b),y&&m(_,y),_}}(),l=function m(_,b,y){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,b);if(w===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:m(T,b,y)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(y)}},u=i(6),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function p(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var v=function(m){c(_,m);function _(){return d(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"optimize",value:function(y){l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),_}(f.default);v.blotName="bold",v.tagName=["STRONG","B"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var o=function(){function C(P,M){var F=[],q=!0,K=!1,z=void 0;try{for(var it=P[Symbol.iterator](),W;!(q=(W=it.next()).done)&&(F.push(W.value),!(M&&F.length===M));q=!0);}catch(U){K=!0,z=U}finally{try{!q&&it.return&&it.return()}finally{if(K)throw z}}return F}return function(P,M){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return C(P,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function C(P,M){for(var F=0;F<M.length;F++){var q=M[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(P,q.key,q)}}return function(P,M,F){return M&&C(P.prototype,M),F&&C(P,F),P}}(),u=i(2),f=y(u),h=i(0),d=y(h),p=i(5),c=y(p),v=i(10),m=y(v),_=i(9),b=y(_);function y(C){return C&&C.__esModule?C:{default:C}}function w(C,P,M){return P in C?Object.defineProperty(C,P,{value:M,enumerable:!0,configurable:!0,writable:!0}):C[P]=M,C}function T(C,P){if(!(C instanceof P))throw new TypeError("Cannot call a class as a function")}function x(C,P){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:C}function E(C,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);C.prototype=Object.create(P&&P.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(C,P):C.__proto__=P)}var I=(0,m.default)("quill:toolbar"),A=function(C){E(P,C);function P(M,F){T(this,P);var q=x(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,M,F));if(Array.isArray(q.options.container)){var K=document.createElement("div");L(K,q.options.container),M.container.parentNode.insertBefore(K,M.container),q.container=K}else typeof q.options.container=="string"?q.container=document.querySelector(q.options.container):q.container=q.options.container;if(!(q.container instanceof HTMLElement)){var z;return z=I.error("Container required for toolbar",q.options),x(q,z)}return q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(it){q.addHandler(it,q.options.handlers[it])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(it){q.attach(it)}),q.quill.on(c.default.events.EDITOR_CHANGE,function(it,W){it===c.default.events.SELECTION_CHANGE&&q.update(W)}),q.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){var it=q.quill.selection.getRange(),W=o(it,1),U=W[0];q.update(U)}),q}return l(P,[{key:"addHandler",value:function(F,q){this.handlers[F]=q}},{key:"attach",value:function(F){var q=this,K=[].find.call(F.classList,function(it){return it.indexOf("ql-")===0});if(K){if(K=K.slice(3),F.tagName==="BUTTON"&&F.setAttribute("type","button"),this.handlers[K]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[K]==null){I.warn("ignoring attaching to disabled format",K,F);return}if(d.default.query(K)==null){I.warn("ignoring attaching to nonexistent format",K,F);return}}var z=F.tagName==="SELECT"?"change":"click";F.addEventListener(z,function(it){var W=void 0;if(F.tagName==="SELECT"){if(F.selectedIndex<0)return;var U=F.options[F.selectedIndex];U.hasAttribute("selected")?W=!1:W=U.value||!1}else F.classList.contains("ql-active")?W=!1:W=F.value||!F.hasAttribute("value"),it.preventDefault();q.quill.focus();var k=q.quill.selection.getRange(),D=o(k,1),j=D[0];if(q.handlers[K]!=null)q.handlers[K].call(q,W);else if(d.default.query(K).prototype instanceof d.default.Embed){if(W=prompt("Enter "+K),!W)return;q.quill.updateContents(new f.default().retain(j.index).delete(j.length).insert(w({},K,W)),c.default.sources.USER)}else q.quill.format(K,W,c.default.sources.USER);q.update(j)}),this.controls.push([K,F])}}},{key:"update",value:function(F){var q=F==null?{}:this.quill.getFormat(F);this.controls.forEach(function(K){var z=o(K,2),it=z[0],W=z[1];if(W.tagName==="SELECT"){var U=void 0;if(F==null)U=null;else if(q[it]==null)U=W.querySelector("option[selected]");else if(!Array.isArray(q[it])){var k=q[it];typeof k=="string"&&(k=k.replace(/\"/g,'\\"')),U=W.querySelector('option[value="'+k+'"]')}U==null?(W.value="",W.selectedIndex=-1):U.selected=!0}else if(F==null)W.classList.remove("ql-active");else if(W.hasAttribute("value")){var D=q[it]===W.getAttribute("value")||q[it]!=null&&q[it].toString()===W.getAttribute("value")||q[it]==null&&!W.getAttribute("value");W.classList.toggle("ql-active",D)}else W.classList.toggle("ql-active",q[it]!=null)})}}]),P}(b.default);A.DEFAULTS={};function O(C,P,M){var F=document.createElement("button");F.setAttribute("type","button"),F.classList.add("ql-"+P),M!=null&&(F.value=M),C.appendChild(F)}function L(C,P){Array.isArray(P[0])||(P=[P]),P.forEach(function(M){var F=document.createElement("span");F.classList.add("ql-formats"),M.forEach(function(q){if(typeof q=="string")O(F,q);else{var K=Object.keys(q)[0],z=q[K];Array.isArray(z)?R(F,K,z):O(F,K,z)}}),C.appendChild(F)})}function R(C,P,M){var F=document.createElement("select");F.classList.add("ql-"+P),M.forEach(function(q){var K=document.createElement("option");q!==!1?K.setAttribute("value",q):K.setAttribute("selected","selected"),F.appendChild(K)}),C.appendChild(F)}A.DEFAULTS={container:null,handlers:{clean:function(){var P=this,M=this.quill.getSelection();if(M!=null)if(M.length==0){var F=this.quill.getFormat();Object.keys(F).forEach(function(q){d.default.query(q,d.default.Scope.INLINE)!=null&&P.quill.format(q,!1)})}else this.quill.removeFormat(M,c.default.sources.USER)},direction:function(P){var M=this.quill.getFormat().align;P==="rtl"&&M==null?this.quill.format("align","right",c.default.sources.USER):!P&&M==="right"&&this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",P,c.default.sources.USER)},indent:function(P){var M=this.quill.getSelection(),F=this.quill.getFormat(M),q=parseInt(F.indent||0);if(P==="+1"||P==="-1"){var K=P==="+1"?1:-1;F.direction==="rtl"&&(K*=-1),this.quill.format("indent",q+K,c.default.sources.USER)}},link:function(P){P===!0&&(P=prompt("Enter link URL:")),this.quill.format("link",P,c.default.sources.USER)},list:function(P){var M=this.quill.getSelection(),F=this.quill.getFormat(M);P==="check"?F.list==="checked"||F.list==="unchecked"?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",P,c.default.sources.USER)}}},n.default=A,n.addControls=L},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,b){for(var y=0;y<b.length;y++){var w=b[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,b,y){return b&&m(_.prototype,b),y&&m(_,y),_}}(),l=function m(_,b,y){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,b);if(w===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:m(T,b,y)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(y)}},u=i(28),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function p(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var v=function(m){c(_,m);function _(b,y){d(this,_);var w=p(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,b));return w.label.innerHTML=y,w.container.classList.add("ql-color-picker"),[].slice.call(w.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(T){T.classList.add("ql-primary")}),w}return o(_,[{key:"buildItem",value:function(y){var w=l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"buildItem",this).call(this,y);return w.style.backgroundColor=y.getAttribute("value")||"",w}},{key:"selectItem",value:function(y,w){l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"selectItem",this).call(this,y,w);var T=this.label.querySelector(".ql-color-label"),x=y&&y.getAttribute("data-value")||"";T&&(T.tagName==="line"?T.style.stroke=x:T.style.fill=x)}}]),_}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,b){for(var y=0;y<b.length;y++){var w=b[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,b,y){return b&&m(_.prototype,b),y&&m(_,y),_}}(),l=function m(_,b,y){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,b);if(w===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:m(T,b,y)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(y)}},u=i(28),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function p(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var v=function(m){c(_,m);function _(b,y){d(this,_);var w=p(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,b));return w.container.classList.add("ql-icon-picker"),[].forEach.call(w.container.querySelectorAll(".ql-picker-item"),function(T){T.innerHTML=y[T.getAttribute("data-value")||""]}),w.defaultItem=w.container.querySelector(".ql-selected"),w.selectItem(w.defaultItem),w}return o(_,[{key:"selectItem",value:function(y,w){l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"selectItem",this).call(this,y,w),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),_}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function f(h,d){for(var p=0;p<d.length;p++){var c=d[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,d,p){return d&&f(h.prototype,d),p&&f(h,p),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,d){var p=this;l(this,f),this.quill=h,this.boundsContainer=d||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){p.root.style.marginTop=-1*p.quill.root.scrollTop+"px"}),this.hide()}return o(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var p=d.left+d.width/2-this.root.offsetWidth/2,c=d.bottom+this.quill.root.scrollTop;this.root.style.left=p+"px",this.root.style.top=c+"px",this.root.classList.remove("ql-flip");var v=this.boundsContainer.getBoundingClientRect(),m=this.root.getBoundingClientRect(),_=0;if(m.right>v.right&&(_=v.right-m.right,this.root.style.left=p+_+"px"),m.left<v.left&&(_=v.left-m.left,this.root.style.left=p+_+"px"),m.bottom>v.bottom){var b=m.bottom-m.top,y=d.bottom-d.top+b;this.root.style.top=c-y+"px",this.root.classList.add("ql-flip")}return _}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function R(C,P){var M=[],F=!0,q=!1,K=void 0;try{for(var z=C[Symbol.iterator](),it;!(F=(it=z.next()).done)&&(M.push(it.value),!(P&&M.length===P));F=!0);}catch(W){q=!0,K=W}finally{try{!F&&z.return&&z.return()}finally{if(q)throw K}}return M}return function(C,P){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function R(C,P,M){C===null&&(C=Function.prototype);var F=Object.getOwnPropertyDescriptor(C,P);if(F===void 0){var q=Object.getPrototypeOf(C);return q===null?void 0:R(q,P,M)}else{if("value"in F)return F.value;var K=F.get;return K===void 0?void 0:K.call(M)}},u=function(){function R(C,P){for(var M=0;M<P.length;M++){var F=P[M];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(C,F.key,F)}}return function(C,P,M){return P&&R(C.prototype,P),M&&R(C,M),C}}(),f=i(3),h=T(f),d=i(8),p=T(d),c=i(43),v=T(c),m=i(27),_=T(m),b=i(15),y=i(41),w=T(y);function T(R){return R&&R.__esModule?R:{default:R}}function x(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function E(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function I(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}var A=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(R){I(C,R);function C(P,M){x(this,C),M.modules.toolbar!=null&&M.modules.toolbar.container==null&&(M.modules.toolbar.container=A);var F=E(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P,M));return F.quill.container.classList.add("ql-snow"),F}return u(C,[{key:"extendToolbar",value:function(M){M.container.classList.add("ql-snow"),this.buildButtons([].slice.call(M.container.querySelectorAll("button")),w.default),this.buildPickers([].slice.call(M.container.querySelectorAll("select")),w.default),this.tooltip=new L(this.quill,this.options.bounds),M.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(F,q){M.handlers.link.call(M,!q.format.link)})}}]),C}(v.default);O.DEFAULTS=(0,h.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var P=this.quill.getSelection();if(P==null||P.length==0)return;var M=this.quill.getText(P);/^\S+@\S+\.\S+$/.test(M)&&M.indexOf("mailto:")!==0&&(M="mailto:"+M);var F=this.quill.theme.tooltip;F.edit("link",M)}else this.quill.format("link",!1)}}}}});var L=function(R){I(C,R);function C(P,M){x(this,C);var F=E(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P,M));return F.preview=F.root.querySelector("a.ql-preview"),F}return u(C,[{key:"listen",value:function(){var M=this;l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(F){M.root.classList.contains("ql-editing")?M.save():M.edit("link",M.preview.textContent),F.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(F){if(M.linkRange!=null){var q=M.linkRange;M.restoreFocus(),M.quill.formatText(q,"link",!1,p.default.sources.USER),delete M.linkRange}F.preventDefault(),M.hide()}),this.quill.on(p.default.events.SELECTION_CHANGE,function(F,q,K){if(F!=null){if(F.length===0&&K===p.default.sources.USER){var z=M.quill.scroll.descendant(_.default,F.index),it=o(z,2),W=it[0],U=it[1];if(W!=null){M.linkRange=new b.Range(F.index-U,W.length());var k=_.default.formats(W.domNode);M.preview.textContent=k,M.preview.setAttribute("href",k),M.show(),M.position(M.quill.getBounds(M.linkRange));return}}else delete M.linkRange;M.hide()}})}},{key:"show",value:function(){l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C}(c.BaseTooltip);L.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),n.default=O},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(29),l=ct(o),u=i(36),f=i(38),h=i(64),d=i(65),p=ct(d),c=i(66),v=ct(c),m=i(67),_=ct(m),b=i(37),y=i(26),w=i(39),T=i(40),x=i(56),E=ct(x),I=i(68),A=ct(I),O=i(27),L=ct(O),R=i(69),C=ct(R),P=i(70),M=ct(P),F=i(71),q=ct(F),K=i(72),z=ct(K),it=i(73),W=ct(it),U=i(13),k=ct(U),D=i(74),j=ct(D),Z=i(75),Y=ct(Z),G=i(57),V=ct(G),rt=i(41),Q=ct(rt),et=i(28),ot=ct(et),pt=i(59),mt=ct(pt),xt=i(60),At=ct(xt),oe=i(61),qt=ct(oe),nt=i(108),lt=ct(nt),dt=i(62),vt=ct(dt);function ct(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}}l.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":u.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":w.FontClass,"attributors/class/size":T.SizeClass,"attributors/style/align":u.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":w.FontStyle,"attributors/style/size":T.SizeStyle},!0),l.default.register({"formats/align":u.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":w.FontClass,"formats/size":T.SizeClass,"formats/blockquote":p.default,"formats/code-block":k.default,"formats/header":v.default,"formats/list":_.default,"formats/bold":E.default,"formats/code":U.Code,"formats/italic":A.default,"formats/link":L.default,"formats/script":C.default,"formats/strike":M.default,"formats/underline":q.default,"formats/image":z.default,"formats/video":W.default,"formats/list/item":m.ListItem,"modules/formula":j.default,"modules/syntax":Y.default,"modules/toolbar":V.default,"themes/bubble":lt.default,"themes/snow":vt.default,"ui/icons":Q.default,"ui/picker":ot.default,"ui/icon-picker":At.default,"ui/color-picker":mt.default,"ui/tooltip":qt.default},!0),n.default=l.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var o=function(){function _(b,y){for(var w=0;w<y.length;w++){var T=y[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(b,T.key,T)}}return function(b,y,w){return y&&_(b.prototype,y),w&&_(b,w),b}}(),l=function _(b,y,w){b===null&&(b=Function.prototype);var T=Object.getOwnPropertyDescriptor(b,y);if(T===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:_(x,y,w)}else{if("value"in T)return T.value;var E=T.get;return E===void 0?void 0:E.call(w)}},u=i(0),f=h(u);function h(_){return _&&_.__esModule?_:{default:_}}function d(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function p(_,b){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:_}function c(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);_.prototype=Object.create(b&&b.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(_,b):_.__proto__=b)}var v=function(_){c(b,_);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"add",value:function(w,T){if(T==="+1"||T==="-1"){var x=this.value(w)||0;T=T==="+1"?x+1:x-1}return T===0?(this.remove(w),!0):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,w,T)}},{key:"canAdd",value:function(w,T){return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,w,T)||l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,w,parseInt(T))}},{key:"value",value:function(w){return parseInt(l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,w))||void 0}}]),b}(f.default.Attributor.Class),m=new v("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(4),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="blockquote",p.tagName="blockquote",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function v(m,_){for(var b=0;b<_.length;b++){var y=_[b];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,_,b){return _&&v(m.prototype,_),b&&v(m,b),m}}(),l=i(4),u=f(l);function f(v){return v&&v.__esModule?v:{default:v}}function h(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function p(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var c=function(v){p(m,v);function m(){return h(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),m}(u.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],n.default=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var o=function(){function x(E,I){for(var A=0;A<I.length;A++){var O=I[A];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(E,O.key,O)}}return function(E,I,A){return I&&x(E.prototype,I),A&&x(E,A),E}}(),l=function x(E,I,A){E===null&&(E=Function.prototype);var O=Object.getOwnPropertyDescriptor(E,I);if(O===void 0){var L=Object.getPrototypeOf(E);return L===null?void 0:x(L,I,A)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(A)}},u=i(0),f=v(u),h=i(4),d=v(h),p=i(25),c=v(p);function v(x){return x&&x.__esModule?x:{default:x}}function m(x,E,I){return E in x?Object.defineProperty(x,E,{value:I,enumerable:!0,configurable:!0,writable:!0}):x[E]=I,x}function _(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function b(x,E){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:x}function y(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);x.prototype=Object.create(E&&E.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(x,E):x.__proto__=E)}var w=function(x){y(E,x);function E(){return _(this,E),b(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return o(E,[{key:"format",value:function(A,O){A===T.blotName&&!O?this.replaceWith(f.default.create(this.statics.scope)):l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,A,O)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(A,O){return this.parent.isolate(this.offset(this.parent),this.length()),A===this.parent.statics.blotName?(this.parent.replaceWith(A,O),this):(this.parent.unwrap(),l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,A,O))}}],[{key:"formats",value:function(A){return A.tagName===this.tagName?void 0:l(E.__proto__||Object.getPrototypeOf(E),"formats",this).call(this,A)}}]),E}(d.default);w.blotName="list-item",w.tagName="LI";var T=function(x){y(E,x),o(E,null,[{key:"create",value:function(A){var O=A==="ordered"?"OL":"UL",L=l(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,O);return(A==="checked"||A==="unchecked")&&L.setAttribute("data-checked",A==="checked"),L}},{key:"formats",value:function(A){if(A.tagName==="OL")return"ordered";if(A.tagName==="UL")return A.hasAttribute("data-checked")?A.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function E(I){_(this,E);var A=b(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,I)),O=function(R){if(R.target.parentNode===I){var C=A.statics.formats(I),P=f.default.find(R.target);C==="checked"?P.format("list","unchecked"):C==="unchecked"&&P.format("list","checked")}};return I.addEventListener("touchstart",O),I.addEventListener("mousedown",O),A}return o(E,[{key:"format",value:function(A,O){this.children.length>0&&this.children.tail.format(A,O)}},{key:"formats",value:function(){return m({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(A,O){if(A instanceof w)l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,A,O);else{var L=O==null?this.length():O.offset(this),R=this.split(L);R.parent.insertBefore(A,R)}}},{key:"optimize",value:function(A){l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,A);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(A){if(A.statics.blotName!==this.statics.blotName){var O=f.default.create(this.statics.defaultChild);A.moveChildren(O),this.appendChild(O)}l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replace",this).call(this,A)}}]),E}(c.default);T.blotName="list",T.scope=f.default.Scope.BLOCK_BLOT,T.tagName=["OL","UL"],T.defaultChild="list-item",T.allowedChildren=[w],n.ListItem=w,n.default=T},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(56),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="italic",p.tagName=["EM","I"],n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,b){for(var y=0;y<b.length;y++){var w=b[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,b,y){return b&&m(_.prototype,b),y&&m(_,y),_}}(),l=function m(_,b,y){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,b);if(w===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:m(T,b,y)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(y)}},u=i(6),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function p(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var v=function(m){c(_,m);function _(){return d(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),_}(f.default);v.blotName="script",v.tagName=["SUB","SUP"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="strike",p.tagName="S",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="underline",p.tagName="U",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function b(y,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,w,T){return w&&b(y.prototype,w),T&&b(y,T),y}}(),l=function b(y,w,T){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,w);if(x===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:b(E,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(0),f=d(u),h=i(27);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function c(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function v(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var m=["alt","height","width"],_=function(b){v(y,b);function y(){return p(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"format",value:function(T,x){m.indexOf(T)>-1?x?this.domNode.setAttribute(T,x):this.domNode.removeAttribute(T):l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,T,x)}}],[{key:"create",value:function(T){var x=l(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,T);return typeof T=="string"&&x.setAttribute("src",this.sanitize(T)),x}},{key:"formats",value:function(T){return m.reduce(function(x,E){return T.hasAttribute(E)&&(x[E]=T.getAttribute(E)),x},{})}},{key:"match",value:function(T){return/\.(jpe?g|gif|png)$/.test(T)||/^data:image\/.+;base64/.test(T)}},{key:"sanitize",value:function(T){return(0,h.sanitize)(T,["http","https","data"])?T:"//:0"}},{key:"value",value:function(T){return T.getAttribute("src")}}]),y}(f.default.Embed);_.blotName="image",_.tagName="IMG",n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function b(y,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,w,T){return w&&b(y.prototype,w),T&&b(y,T),y}}(),l=function b(y,w,T){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,w);if(x===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:b(E,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(4),f=i(27),h=d(f);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function c(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function v(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var m=["height","width"],_=function(b){v(y,b);function y(){return p(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"format",value:function(T,x){m.indexOf(T)>-1?x?this.domNode.setAttribute(T,x):this.domNode.removeAttribute(T):l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,T,x)}}],[{key:"create",value:function(T){var x=l(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,T);return x.setAttribute("frameborder","0"),x.setAttribute("allowfullscreen",!0),x.setAttribute("src",this.sanitize(T)),x}},{key:"formats",value:function(T){return m.reduce(function(x,E){return T.hasAttribute(E)&&(x[E]=T.getAttribute(E)),x},{})}},{key:"sanitize",value:function(T){return h.default.sanitize(T)}},{key:"value",value:function(T){return T.getAttribute("src")}}]),y}(u.BlockEmbed);_.blotName="video",_.className="ql-video",_.tagName="IFRAME",n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var o=function(){function T(x,E){for(var I=0;I<E.length;I++){var A=E[I];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(x,A.key,A)}}return function(x,E,I){return E&&T(x.prototype,E),I&&T(x,I),x}}(),l=function T(x,E,I){x===null&&(x=Function.prototype);var A=Object.getOwnPropertyDescriptor(x,E);if(A===void 0){var O=Object.getPrototypeOf(x);return O===null?void 0:T(O,E,I)}else{if("value"in A)return A.value;var L=A.get;return L===void 0?void 0:L.call(I)}},u=i(35),f=v(u),h=i(5),d=v(h),p=i(9),c=v(p);function v(T){return T&&T.__esModule?T:{default:T}}function m(T,x){if(!(T instanceof x))throw new TypeError("Cannot call a class as a function")}function _(T,x){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:T}function b(T,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);T.prototype=Object.create(x&&x.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(T,x):T.__proto__=x)}var y=function(T){b(x,T);function x(){return m(this,x),_(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,null,[{key:"create",value:function(I){var A=l(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,I);return typeof I=="string"&&(window.katex.render(I,A,{throwOnError:!1,errorColor:"#f00"}),A.setAttribute("data-value",I)),A}},{key:"value",value:function(I){return I.getAttribute("data-value")}}]),x}(f.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var w=function(T){b(x,T),o(x,null,[{key:"register",value:function(){d.default.register(y,!0)}}]);function x(){m(this,x);var E=_(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return E}return x}(c.default);n.FormulaBlot=y,n.default=w},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var o=function(){function I(A,O){for(var L=0;L<O.length;L++){var R=O[L];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(A,R.key,R)}}return function(A,O,L){return O&&I(A.prototype,O),L&&I(A,L),A}}(),l=function I(A,O,L){A===null&&(A=Function.prototype);var R=Object.getOwnPropertyDescriptor(A,O);if(R===void 0){var C=Object.getPrototypeOf(A);return C===null?void 0:I(C,O,L)}else{if("value"in R)return R.value;var P=R.get;return P===void 0?void 0:P.call(L)}},u=i(0),f=_(u),h=i(5),d=_(h),p=i(9),c=_(p),v=i(13),m=_(v);function _(I){return I&&I.__esModule?I:{default:I}}function b(I,A){if(!(I instanceof A))throw new TypeError("Cannot call a class as a function")}function y(I,A){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:I}function w(I,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);I.prototype=Object.create(A&&A.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(I,A):I.__proto__=A)}var T=function(I){w(A,I);function A(){return b(this,A),y(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return o(A,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var R=this.domNode.textContent;this.cachedText!==R&&((R.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(R),this.domNode.normalize(),this.attach()),this.cachedText=R)}}]),A}(m.default);T.className="ql-syntax";var x=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),E=function(I){w(A,I),o(A,null,[{key:"register",value:function(){d.default.register(x,!0),d.default.register(T,!0)}}]);function A(O,L){b(this,A);var R=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,O,L));if(typeof R.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return R.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){R.highlight(),C=null},R.options.interval)}),R.highlight(),R}return o(A,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var R=this.quill.getSelection();this.quill.scroll.descendants(T).forEach(function(C){C.highlight(L.options.highlight)}),this.quill.update(d.default.sources.SILENT),R!=null&&this.quill.setSelection(R,d.default.sources.SILENT)}}}]),A}(c.default);E.DEFAULTS={highlight:function(){return window.hljs==null?null:function(I){var A=window.hljs.highlightAuto(I);return A.value}}(),interval:1e3},n.CodeBlock=T,n.CodeToken=x,n.default=E},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var o=function A(O,L,R){O===null&&(O=Function.prototype);var C=Object.getOwnPropertyDescriptor(O,L);if(C===void 0){var P=Object.getPrototypeOf(O);return P===null?void 0:A(P,L,R)}else{if("value"in C)return C.value;var M=C.get;return M===void 0?void 0:M.call(R)}},l=function(){function A(O,L){for(var R=0;R<L.length;R++){var C=L[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(O,C.key,C)}}return function(O,L,R){return L&&A(O.prototype,L),R&&A(O,R),O}}(),u=i(3),f=b(u),h=i(8),d=b(h),p=i(43),c=b(p),v=i(15),m=i(41),_=b(m);function b(A){return A&&A.__esModule?A:{default:A}}function y(A,O){if(!(A instanceof O))throw new TypeError("Cannot call a class as a function")}function w(A,O){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:A}function T(A,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);A.prototype=Object.create(O&&O.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(A,O):A.__proto__=O)}var x=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],E=function(A){T(O,A);function O(L,R){y(this,O),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=x);var C=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return C.quill.container.classList.add("ql-bubble"),C}return l(O,[{key:"extendToolbar",value:function(R){this.tooltip=new I(this.quill,this.options.bounds),this.tooltip.root.appendChild(R.container),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),_.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),_.default)}}]),O}(c.default);E.DEFAULTS=(0,f.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var I=function(A){T(O,A);function O(L,R){y(this,O);var C=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return C.quill.on(d.default.events.EDITOR_CHANGE,function(P,M,F,q){if(P===d.default.events.SELECTION_CHANGE)if(M!=null&&M.length>0&&q===d.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var K=C.quill.getLines(M.index,M.length);if(K.length===1)C.position(C.quill.getBounds(M));else{var z=K[K.length-1],it=C.quill.getIndex(z),W=Math.min(z.length()-1,M.index+M.length-it),U=C.quill.getBounds(new v.Range(it,W));C.position(U)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return l(O,[{key:"listen",value:function(){var R=this;o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){R.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!R.root.classList.contains("ql-hidden")){var C=R.quill.getSelection();C!=null&&R.position(R.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(R){var C=o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,R),P=this.root.querySelector(".ql-tooltip-arrow");if(P.style.marginLeft="",C===0)return C;P.style.marginLeft=-1*C-P.offsetWidth/2+"px"}}]),O}(p.BaseTooltip);I.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=I,n.default=E},function(r,n,i){r.exports=i(63)}]).default})})(Ev);var yN=Ev.exports;const _N=En(yN),sB="",bN=Et.forwardRef((e,t)=>{const[r,n]=_t.useState(!1),i=300,o=_t.useRef(null),l=_t.useRef(0),u=_t.useRef(null),f=_t.useRef(null),h=_t.useRef(null),d=_t.useRef(16),p=_t.useRef(null),c=_t.useRef(null),{uniqueId:v,text:m,disabled:_,transformation:b,onTextUpdate:y,pointerdown:w,onExitQuillEditor:T}=e,{x,y:E,fontFamily:I="Arial",fontWeight:A="normal",fontStyle:O="normal",fontSize:L=16,fontVariant:R="normal",fill:C="black",stroke:P,strokeThickness:M=0,blurRadius:F=0,blurEnabled:q=!1,dropShadowColor:K=null,dropShadow:z=!1,dropShadowBlur:it=0,wordWrapWidth:W=5e7,leading:U=0,letterSpacing:k,colorCorrection:D={}}=b,{temperatureFilter:j,sharpnessFilter:Z,hueFilter:Y,blurFilter:G,adjustmentFilter:V}=ys(D),{blurRadius:rt=0}=D;Et.useEffect(()=>{d.current=Number(L)},[L]);const Q=["italic","oblique"].includes(O)?O:void 0,et=["small-caps"].includes(R),ot=["bold","bolder","lighter","100","200","300"].includes(A)?A:void 0,pt=Number(k)>0?k:void 0,mt=Et.useMemo(()=>new zr.TextStyle({fontFamily:I,fontSize:L,fill:C||"white",...P&&M>0&&{stroke:P,strokeThickness:M},...Q&&{fontStyle:Q},...et&&{fontVariant:et},...ot&&{fontWeight:ot},...pt&&{letterSpacing:pt},...q&&{dropShadow:!0,dropShadowBlur:Number(F),dropShadowColor:(K==null?void 0:K.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},...z&&{dropShadow:!0,dropShadowBlur:Number(it),dropShadowColor:(K==null?void 0:K.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},wordWrap:!0,breakWords:!0,wordWrapWidth:W||500,leading:U||0}),[q,F,C,I,L,O,U,Q,ot,et,pt,K,P,M,W,z,it]);Et.useEffect(()=>{p.current={...b}},[b]);const xt=()=>{console.log("double click triggered"),n(!0)},At=()=>{const nt=new Date().getTime();nt-l.current<i?xt():w&&w(),l.current=nt},oe=nt=>{y&&y({text:nt,uniqueId:v})},qt=()=>{n(!1),T&&T()};return Et.useEffect(()=>{if(r&&f.current){let nt=document.getElementById("note-editor");if(nt){nt.style.position="absolute",nt.style.display="block",nt.style.zIndex="10",nt.style.left=x+"px",nt.style.top=E+"px",nt.style.backgroundColor="var(--chakra-color-darkShark)",nt.style.transform="scale(1.5)",nt.style.width="300px",nt.style.height="100px",nt.style.color="#fff",nt.style.fontSize="20px",nt.style.border="1px solid #CBCEE0";const lt={esc:{key:27,handler:function(){qt()}},enter:{key:13,handler:function(){qt()}}};if(c.current=new _N("#note-editor",{modules:{toolbar:!1,keyboard:{bindings:{...lt}}},placeholder:"Compose your text here...",theme:"snow"}),c.current){c.current.on("text-change",function(){c.current&&oe(c.current.root.innerText)}),c.current.setText(m),c.current.focus(),c.current.off("text-change",()=>{console.log("removed")}),c.current.hasFocus()||(nt.style.display="none");const dt=document.createElement("button");dt.innerHTML="&#10006;",dt.style.position="absolute",dt.style.bottom="-14px",dt.style.left="-3px",dt.style.cursor="pointer",dt.addEventListener("click",()=>{qt()}),dt.style.border="none",dt.style.borderRadius="50%",dt.style.width="15px",dt.style.height="15px",dt.style.backgroundColor="#f8f8f8",dt.style.color="#333",dt.style.fontSize="10px",nt.appendChild(dt)}}}else if(c.current){let nt=document.getElementById("note-editor");nt&&nt.hasChildNodes()&&(nt.removeChild(nt.firstChild),nt.removeAttribute("class"),nt.removeAttribute("style")),c.current.off("text-change",()=>{console.log("removed")})}return()=>{c.current&&c.current.off("text-change",()=>{})}},[x,E,r]),Et.useEffect(()=>{if(!r){const nt=document.getElementById("note-editor");nt&&(nt.style.display="none")}},[r]),Yt.jsx(ni,{...e,ref:t,isText:!0,onDoubleClick:xt,isTextEditMode:r,children:Yt.jsxs(me.Container,{ref:o,children:[r&&Yt.jsx(me.Container,{ref:f}),Yt.jsx(me.Container,{alpha:r?0:1,ref:h,children:Yt.jsx(me.Text,{style:mt,x,y:E,anchor:.5,text:m,...!r&&!_&&{interactive:!0,buttonMode:!0,pointerdown:At},ref:u,filters:[j,Z,Y,V,...rt>0?[G]:[]]})})]})})}),xN={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,isStalled:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},Sv=Et.forwardRef((e,t)=>{const[,r]=Et.useState(!1),[n,i]=Et.useState(),o=_t.useRef(null),l=_t.useRef(null),u=_t.useRef(null),f=_t.useRef(xN),h=_t.useRef(),{tl:d,isDragging:p}=_t.useContext(ti),{uniqueId:c,mute:v=!1,src:m,startAt:_,endAt:b,frameStartAt:y,frameEndAt:w,transformation:{x:T,y:x,width:E,height:I,animation:A,colorCorrection:O={}},pointerdown:L}=e,{blurRadius:R=0}=O,{temperatureFilter:C,sharpnessFilter:P,hueFilter:M,blurFilter:F,adjustmentFilter:q}=ys(O),K=m||"",z=Et.useMemo(()=>{const D=document.createElement("video");return D.src=m,D.crossOrigin="Anonymus",D.autoplay=!1,D.currentTime=y===0?.001:y,D},[m,y]);mr(ke.PAUSE,()=>{if(u.current){const D=u.current;D.currentTime>0&&!D.paused&&!D.ended&&D.readyState>D.HAVE_CURRENT_DATA&&u.current.pause(),f.current.isPlaying=!1}}),Et.useEffect(()=>{u.current&&(p?(u.current.pause(),f.current.isPlaying=!1,f.current.isDragging=!0):f.current.isDragging=!1,u.current.muted=v)},[v,p]);const it=D=>{u.current&&(u.current.currentTime=Number(D),p||(u.current.currentTime=Number(D),u.current.play(),f.current.isPlaying=!0))},W=()=>{if(u.current){const D=u.current;D.currentTime>0&&!D.paused&&!D.ended&&D.readyState>D.HAVE_CURRENT_DATA&&u.current.pause(),f.current.isPlaying=!1}},U=()=>{},k=()=>{var D;if(u.current&&h.current){const j=y+((D=h.current)==null?void 0:D.time());Math.abs(u.current.currentTime-j);const Z=u.current,Y=Z.currentTime>0&&!Z.paused&&!Z.ended&&Z.readyState>Z.HAVE_CURRENT_DATA;f.current.isDragging?(u.current.currentTime=j,u.current.play(),setTimeout(()=>{f.current.isPlaying=!1,u.current&&u.current.pause()},300),f.current.isPlaying=!1):f.current.isPlaying||(Y||u.current.play(),f.current.isPlaying=!0)}};return _t.useEffect(()=>{let D=Te.context(()=>{});if(l.current&&d.current){const j={duration:Number(w)-Number(y),onStart:it,onComplete:W,onStartParams:[y,w],onCompleteParams:[],onInterrupt:U,onUpdate:k,onUpdateParams:[y,w]};h.current&&h.current.kill(),D=Te.context(()=>{h.current=Te.from(l.current,j,y),d.current.add(h.current,_)})}return()=>{h.current&&(h.current.kill(),Te.killTweensOf(h.current)),D.revert()}},[A,_,b,y,w]),Et.useEffect(()=>{l.current&&r(!0)},[]),Et.useEffect(()=>{u.current&&(u.current.muted=v)},[v]),Et.useEffect(()=>{if(u.current){const D=u.current;D.currentTime>0&&!D.paused&&!D.ended&&D.readyState>D.HAVE_CURRENT_DATA&&p&&(u.current.pause(),f.current.isPlaying=!1)}},[p]),Et.useEffect(()=>{const D=Math.round((Number(y)+Number.EPSILON)*100)/100,j=function(){u.current&&(u.current.currentTime=D)},Z=function(){if(u.current){const ot=u.current;ot.currentTime>0&&!ot.paused&&!ot.ended&&ot.readyState>ot.HAVE_CURRENT_DATA&&u.current.pause()}f.current.isWaiting=!1,f.current.isStalled=!1},Y=function(){u.current&&u.current.pause(),f.current.isWaiting=!0,f.current.isStalled=!1},G=function(){f.current.isWaiting=!1,f.current.isStalled=!1},V=function(){f.current.isWaiting=!1,f.current.isStalled=!0},rt=Math.round((Number(y)+Number.EPSILON)*100)/100,Q=Math.round((Number(w)+Number.EPSILON)*100)/100,et=`${K}#t=${rt},${Q}`;return console.log("urlTimestap",et),zr.Texture.fromLoader(z,et,c,{pixiIdPrefix:c,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:30}}).then(ot=>{ot&&(i(ot),u.current=ot.baseTexture.resource.source,u.current.id=c,u.current.addEventListener("loadedmetadata",j),u.current.addEventListener("ended",Z),u.current.addEventListener("loadstart",Y),u.current.addEventListener("canplaythrough",G),u.current.addEventListener("stalled",V))}),()=>{console.log("unmounting video sprite",c,u.current),console.log("spriteref",o.current),u.current&&(u.current.pause(),u.current.removeEventListener("loadedmetadata",j),u.current.removeEventListener("ended",Z),u.current.removeEventListener("loadstart",Y),u.current.removeEventListener("canplaythrough",G),u.current.removeEventListener("stalled",V))}},[K,c,y,w,z]),Yt.jsx(ni,{...e,ref:t,ignoreTlForVideo:!0,children:Yt.jsx(me.Container,{ref:l,children:n&&Yt.jsx(me.Sprite,{texture:n,width:E,height:I,anchor:.5,x:T,y:x,ref:o,pointerdown:L,filters:[C,P,M,q,...R>0?[F]:[]]})})})});Sv.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiVideoSprite"};var Av=(e=>(e.FADE_IN="FADE_IN",e.FADE_OUT="FADE_OUT",e.FADE_IN_OUT="FADE_IN_OUT",e.SLIDE_IN_LEFT="SLIDE_IN_LEFT",e.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",e.SLIDE_IN_TOP="SLIDE_IN_TOP",e.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",e.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",e.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",e.SLIDE_OUT_TOP="SLIDE_OUT_TOP",e.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.ZOOM_IN_OUT="ZOOM_IN_OUT",e.BOUNCE_IN="BOUNCE_IN",e.BOUNCE_OUT="BOUNCE_OUT",e.BOUNCE_IN_OUT="BOUNCE_IN_OUT",e.ELASTIC_IN="ELASTIC_IN",e.ELASTIC_OUT="ELASTIC_OUT",e.ELASTIC_IN_OUT="ELASTIC_IN_OUT",e.BACK_IN="BACK_IN",e.BACK_OUT="BACK_OUT",e.BACK_IN_OUT="BACK_IN_OUT",e.CIRCULAR_IN="CIRCULAR_IN",e.CIRCULAR_OUT="CIRCULAR_OUT",e.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",e.EXPO_IN="EXPO_IN",e.EXPO_OUT="EXPO_OUT",e.EXPO_IN_OUT="EXPO_IN_OUT",e.SINE_IN="SINE_IN",e.SINE_OUT="SINE_OUT",e.SINE_IN_OUT="SINE_IN_OUT",e.BOUNCE="BOUNCE",e.ELASTIC="ELASTIC",e.BACK="BACK",e.CIRCULAR="CIRCULAR",e.EXPO="EXPO",e.SINE="SINE",e))(Av||{}),Ov=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e))(Ov||{});ie.Animations=Av,ie.BlendModes=Ov,ie.Events=ke,ie.GsapPixieContext=ti,ie.GsapPixieContextProvider=my,ie.PixiAnimatedSprite=xv,ie.PixiAudioSprite=FS,ie.PixiGifSprite=Tv,ie.PixiImageSprite=vp,ie.PixiSvgPathSprite=aS,ie.PixiTextSprite=bN,ie.PixiVideoSprite=Sv,ie.emitCustomEvent=Jn,ie.newCustomEventEmitter=gy,ie.useCustomEventListener=mr,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});
2000
+ `)}return lt}function oe(nt,lt){var dt={},vt=nt.style||{};return vt.fontStyle&&Z(nt).fontStyle==="italic"&&(dt.italic=!0),vt.fontWeight&&(Z(nt).fontWeight.startsWith("bold")||parseInt(Z(nt).fontWeight)>=700)&&(dt.bold=!0),Object.keys(dt).length>0&&(lt=j(lt,dt)),parseFloat(vt.textIndent||0)>0&&(lt=new p.default().insert(" ").concat(lt)),lt}function qt(nt,lt){var dt=nt.data;if(nt.parentNode.tagName==="O:P")return lt.insert(dt.trim());if(dt.trim().length===0&&nt.parentNode.classList.contains("ql-clipboard"))return lt;if(!Z(nt.parentNode).whiteSpace.startsWith("pre")){var vt=function(Pt,Lt){return Lt=Lt.replace(/[^\u00a0]/g,""),Lt.length<1&&Pt?" ":Lt};dt=dt.replace(/\r\n/g," ").replace(/\n/g," "),dt=dt.replace(/\s\s+/g,vt.bind(vt,!0)),(nt.previousSibling==null&&G(nt.parentNode)||nt.previousSibling!=null&&G(nt.previousSibling))&&(dt=dt.replace(/^\s+/,vt.bind(vt,!1))),(nt.nextSibling==null&&G(nt.parentNode)||nt.nextSibling!=null&&G(nt.nextSibling))&&(dt=dt.replace(/\s+$/,vt.bind(vt,!1)))}return lt.insert(dt)}n.default=D,n.matchAttributor=Q,n.matchBlot=rt,n.matchNewline=xt,n.matchSpacing=At,n.matchText=qt},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,b){for(var y=0;y<b.length;y++){var w=b[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,b,y){return b&&m(_.prototype,b),y&&m(_,y),_}}(),l=function m(_,b,y){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,b);if(w===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:m(T,b,y)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(y)}},u=i(6),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function p(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var v=function(m){c(_,m);function _(){return d(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,[{key:"optimize",value:function(y){l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"optimize",this).call(this,y),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),_}(f.default);v.blotName="bold",v.tagName=["STRONG","B"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.addControls=n.default=void 0;var o=function(){function C(P,M){var F=[],q=!0,Y=!1,z=void 0;try{for(var it=P[Symbol.iterator](),W;!(q=(W=it.next()).done)&&(F.push(W.value),!(M&&F.length===M));q=!0);}catch(U){Y=!0,z=U}finally{try{!q&&it.return&&it.return()}finally{if(Y)throw z}}return F}return function(P,M){if(Array.isArray(P))return P;if(Symbol.iterator in Object(P))return C(P,M);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function(){function C(P,M){for(var F=0;F<M.length;F++){var q=M[F];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(P,q.key,q)}}return function(P,M,F){return M&&C(P.prototype,M),F&&C(P,F),P}}(),u=i(2),f=y(u),h=i(0),d=y(h),p=i(5),c=y(p),v=i(10),m=y(v),_=i(9),b=y(_);function y(C){return C&&C.__esModule?C:{default:C}}function w(C,P,M){return P in C?Object.defineProperty(C,P,{value:M,enumerable:!0,configurable:!0,writable:!0}):C[P]=M,C}function T(C,P){if(!(C instanceof P))throw new TypeError("Cannot call a class as a function")}function x(C,P){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P&&(typeof P=="object"||typeof P=="function")?P:C}function E(C,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof P);C.prototype=Object.create(P&&P.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),P&&(Object.setPrototypeOf?Object.setPrototypeOf(C,P):C.__proto__=P)}var I=(0,m.default)("quill:toolbar"),A=function(C){E(P,C);function P(M,F){T(this,P);var q=x(this,(P.__proto__||Object.getPrototypeOf(P)).call(this,M,F));if(Array.isArray(q.options.container)){var Y=document.createElement("div");L(Y,q.options.container),M.container.parentNode.insertBefore(Y,M.container),q.container=Y}else typeof q.options.container=="string"?q.container=document.querySelector(q.options.container):q.container=q.options.container;if(!(q.container instanceof HTMLElement)){var z;return z=I.error("Container required for toolbar",q.options),x(q,z)}return q.container.classList.add("ql-toolbar"),q.controls=[],q.handlers={},Object.keys(q.options.handlers).forEach(function(it){q.addHandler(it,q.options.handlers[it])}),[].forEach.call(q.container.querySelectorAll("button, select"),function(it){q.attach(it)}),q.quill.on(c.default.events.EDITOR_CHANGE,function(it,W){it===c.default.events.SELECTION_CHANGE&&q.update(W)}),q.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){var it=q.quill.selection.getRange(),W=o(it,1),U=W[0];q.update(U)}),q}return l(P,[{key:"addHandler",value:function(F,q){this.handlers[F]=q}},{key:"attach",value:function(F){var q=this,Y=[].find.call(F.classList,function(it){return it.indexOf("ql-")===0});if(Y){if(Y=Y.slice(3),F.tagName==="BUTTON"&&F.setAttribute("type","button"),this.handlers[Y]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[Y]==null){I.warn("ignoring attaching to disabled format",Y,F);return}if(d.default.query(Y)==null){I.warn("ignoring attaching to nonexistent format",Y,F);return}}var z=F.tagName==="SELECT"?"change":"click";F.addEventListener(z,function(it){var W=void 0;if(F.tagName==="SELECT"){if(F.selectedIndex<0)return;var U=F.options[F.selectedIndex];U.hasAttribute("selected")?W=!1:W=U.value||!1}else F.classList.contains("ql-active")?W=!1:W=F.value||!F.hasAttribute("value"),it.preventDefault();q.quill.focus();var k=q.quill.selection.getRange(),D=o(k,1),j=D[0];if(q.handlers[Y]!=null)q.handlers[Y].call(q,W);else if(d.default.query(Y).prototype instanceof d.default.Embed){if(W=prompt("Enter "+Y),!W)return;q.quill.updateContents(new f.default().retain(j.index).delete(j.length).insert(w({},Y,W)),c.default.sources.USER)}else q.quill.format(Y,W,c.default.sources.USER);q.update(j)}),this.controls.push([Y,F])}}},{key:"update",value:function(F){var q=F==null?{}:this.quill.getFormat(F);this.controls.forEach(function(Y){var z=o(Y,2),it=z[0],W=z[1];if(W.tagName==="SELECT"){var U=void 0;if(F==null)U=null;else if(q[it]==null)U=W.querySelector("option[selected]");else if(!Array.isArray(q[it])){var k=q[it];typeof k=="string"&&(k=k.replace(/\"/g,'\\"')),U=W.querySelector('option[value="'+k+'"]')}U==null?(W.value="",W.selectedIndex=-1):U.selected=!0}else if(F==null)W.classList.remove("ql-active");else if(W.hasAttribute("value")){var D=q[it]===W.getAttribute("value")||q[it]!=null&&q[it].toString()===W.getAttribute("value")||q[it]==null&&!W.getAttribute("value");W.classList.toggle("ql-active",D)}else W.classList.toggle("ql-active",q[it]!=null)})}}]),P}(b.default);A.DEFAULTS={};function O(C,P,M){var F=document.createElement("button");F.setAttribute("type","button"),F.classList.add("ql-"+P),M!=null&&(F.value=M),C.appendChild(F)}function L(C,P){Array.isArray(P[0])||(P=[P]),P.forEach(function(M){var F=document.createElement("span");F.classList.add("ql-formats"),M.forEach(function(q){if(typeof q=="string")O(F,q);else{var Y=Object.keys(q)[0],z=q[Y];Array.isArray(z)?R(F,Y,z):O(F,Y,z)}}),C.appendChild(F)})}function R(C,P,M){var F=document.createElement("select");F.classList.add("ql-"+P),M.forEach(function(q){var Y=document.createElement("option");q!==!1?Y.setAttribute("value",q):Y.setAttribute("selected","selected"),F.appendChild(Y)}),C.appendChild(F)}A.DEFAULTS={container:null,handlers:{clean:function(){var P=this,M=this.quill.getSelection();if(M!=null)if(M.length==0){var F=this.quill.getFormat();Object.keys(F).forEach(function(q){d.default.query(q,d.default.Scope.INLINE)!=null&&P.quill.format(q,!1)})}else this.quill.removeFormat(M,c.default.sources.USER)},direction:function(P){var M=this.quill.getFormat().align;P==="rtl"&&M==null?this.quill.format("align","right",c.default.sources.USER):!P&&M==="right"&&this.quill.format("align",!1,c.default.sources.USER),this.quill.format("direction",P,c.default.sources.USER)},indent:function(P){var M=this.quill.getSelection(),F=this.quill.getFormat(M),q=parseInt(F.indent||0);if(P==="+1"||P==="-1"){var Y=P==="+1"?1:-1;F.direction==="rtl"&&(Y*=-1),this.quill.format("indent",q+Y,c.default.sources.USER)}},link:function(P){P===!0&&(P=prompt("Enter link URL:")),this.quill.format("link",P,c.default.sources.USER)},list:function(P){var M=this.quill.getSelection(),F=this.quill.getFormat(M);P==="check"?F.list==="checked"||F.list==="unchecked"?this.quill.format("list",!1,c.default.sources.USER):this.quill.format("list","unchecked",c.default.sources.USER):this.quill.format("list",P,c.default.sources.USER)}}},n.default=A,n.addControls=L},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,b){for(var y=0;y<b.length;y++){var w=b[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,b,y){return b&&m(_.prototype,b),y&&m(_,y),_}}(),l=function m(_,b,y){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,b);if(w===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:m(T,b,y)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(y)}},u=i(28),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function p(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var v=function(m){c(_,m);function _(b,y){d(this,_);var w=p(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,b));return w.label.innerHTML=y,w.container.classList.add("ql-color-picker"),[].slice.call(w.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(T){T.classList.add("ql-primary")}),w}return o(_,[{key:"buildItem",value:function(y){var w=l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"buildItem",this).call(this,y);return w.style.backgroundColor=y.getAttribute("value")||"",w}},{key:"selectItem",value:function(y,w){l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"selectItem",this).call(this,y,w);var T=this.label.querySelector(".ql-color-label"),x=y&&y.getAttribute("data-value")||"";T&&(T.tagName==="line"?T.style.stroke=x:T.style.fill=x)}}]),_}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,b){for(var y=0;y<b.length;y++){var w=b[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,b,y){return b&&m(_.prototype,b),y&&m(_,y),_}}(),l=function m(_,b,y){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,b);if(w===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:m(T,b,y)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(y)}},u=i(28),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function p(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var v=function(m){c(_,m);function _(b,y){d(this,_);var w=p(this,(_.__proto__||Object.getPrototypeOf(_)).call(this,b));return w.container.classList.add("ql-icon-picker"),[].forEach.call(w.container.querySelectorAll(".ql-picker-item"),function(T){T.innerHTML=y[T.getAttribute("data-value")||""]}),w.defaultItem=w.container.querySelector(".ql-selected"),w.selectItem(w.defaultItem),w}return o(_,[{key:"selectItem",value:function(y,w){l(_.prototype.__proto__||Object.getPrototypeOf(_.prototype),"selectItem",this).call(this,y,w),y=y||this.defaultItem,this.label.innerHTML=y.innerHTML}}]),_}(f.default);n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function f(h,d){for(var p=0;p<d.length;p++){var c=d[p];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(h,c.key,c)}}return function(h,d,p){return d&&f(h.prototype,d),p&&f(h,p),h}}();function l(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var u=function(){function f(h,d){var p=this;l(this,f),this.quill=h,this.boundsContainer=d||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){p.root.style.marginTop=-1*p.quill.root.scrollTop+"px"}),this.hide()}return o(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(d){var p=d.left+d.width/2-this.root.offsetWidth/2,c=d.bottom+this.quill.root.scrollTop;this.root.style.left=p+"px",this.root.style.top=c+"px",this.root.classList.remove("ql-flip");var v=this.boundsContainer.getBoundingClientRect(),m=this.root.getBoundingClientRect(),_=0;if(m.right>v.right&&(_=v.right-m.right,this.root.style.left=p+_+"px"),m.left<v.left&&(_=v.left-m.left,this.root.style.left=p+_+"px"),m.bottom>v.bottom){var b=m.bottom-m.top,y=d.bottom-d.top+b;this.root.style.top=c-y+"px",this.root.classList.add("ql-flip")}return _}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();n.default=u},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function R(C,P){var M=[],F=!0,q=!1,Y=void 0;try{for(var z=C[Symbol.iterator](),it;!(F=(it=z.next()).done)&&(M.push(it.value),!(P&&M.length===P));F=!0);}catch(W){q=!0,Y=W}finally{try{!F&&z.return&&z.return()}finally{if(q)throw Y}}return M}return function(C,P){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return R(C,P);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),l=function R(C,P,M){C===null&&(C=Function.prototype);var F=Object.getOwnPropertyDescriptor(C,P);if(F===void 0){var q=Object.getPrototypeOf(C);return q===null?void 0:R(q,P,M)}else{if("value"in F)return F.value;var Y=F.get;return Y===void 0?void 0:Y.call(M)}},u=function(){function R(C,P){for(var M=0;M<P.length;M++){var F=P[M];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(C,F.key,F)}}return function(C,P,M){return P&&R(C.prototype,P),M&&R(C,M),C}}(),f=i(3),h=T(f),d=i(8),p=T(d),c=i(43),v=T(c),m=i(27),_=T(m),b=i(15),y=i(41),w=T(y);function T(R){return R&&R.__esModule?R:{default:R}}function x(R,C){if(!(R instanceof C))throw new TypeError("Cannot call a class as a function")}function E(R,C){if(!R)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:R}function I(R,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);R.prototype=Object.create(C&&C.prototype,{constructor:{value:R,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(R,C):R.__proto__=C)}var A=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],O=function(R){I(C,R);function C(P,M){x(this,C),M.modules.toolbar!=null&&M.modules.toolbar.container==null&&(M.modules.toolbar.container=A);var F=E(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P,M));return F.quill.container.classList.add("ql-snow"),F}return u(C,[{key:"extendToolbar",value:function(M){M.container.classList.add("ql-snow"),this.buildButtons([].slice.call(M.container.querySelectorAll("button")),w.default),this.buildPickers([].slice.call(M.container.querySelectorAll("select")),w.default),this.tooltip=new L(this.quill,this.options.bounds),M.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(F,q){M.handlers.link.call(M,!q.format.link)})}}]),C}(v.default);O.DEFAULTS=(0,h.default)(!0,{},v.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(C){if(C){var P=this.quill.getSelection();if(P==null||P.length==0)return;var M=this.quill.getText(P);/^\S+@\S+\.\S+$/.test(M)&&M.indexOf("mailto:")!==0&&(M="mailto:"+M);var F=this.quill.theme.tooltip;F.edit("link",M)}else this.quill.format("link",!1)}}}}});var L=function(R){I(C,R);function C(P,M){x(this,C);var F=E(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,P,M));return F.preview=F.root.querySelector("a.ql-preview"),F}return u(C,[{key:"listen",value:function(){var M=this;l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(F){M.root.classList.contains("ql-editing")?M.save():M.edit("link",M.preview.textContent),F.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(F){if(M.linkRange!=null){var q=M.linkRange;M.restoreFocus(),M.quill.formatText(q,"link",!1,p.default.sources.USER),delete M.linkRange}F.preventDefault(),M.hide()}),this.quill.on(p.default.events.SELECTION_CHANGE,function(F,q,Y){if(F!=null){if(F.length===0&&Y===p.default.sources.USER){var z=M.quill.scroll.descendant(_.default,F.index),it=o(z,2),W=it[0],U=it[1];if(W!=null){M.linkRange=new b.Range(F.index-U,W.length());var k=_.default.formats(W.domNode);M.preview.textContent=k,M.preview.setAttribute("href",k),M.show(),M.position(M.quill.getBounds(M.linkRange));return}}else delete M.linkRange;M.hide()}})}},{key:"show",value:function(){l(C.prototype.__proto__||Object.getPrototypeOf(C.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),C}(c.BaseTooltip);L.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),n.default=O},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(29),l=ct(o),u=i(36),f=i(38),h=i(64),d=i(65),p=ct(d),c=i(66),v=ct(c),m=i(67),_=ct(m),b=i(37),y=i(26),w=i(39),T=i(40),x=i(56),E=ct(x),I=i(68),A=ct(I),O=i(27),L=ct(O),R=i(69),C=ct(R),P=i(70),M=ct(P),F=i(71),q=ct(F),Y=i(72),z=ct(Y),it=i(73),W=ct(it),U=i(13),k=ct(U),D=i(74),j=ct(D),Z=i(75),X=ct(Z),G=i(57),V=ct(G),et=i(41),Q=ct(et),rt=i(28),ot=ct(rt),pt=i(59),mt=ct(pt),xt=i(60),At=ct(xt),oe=i(61),qt=ct(oe),nt=i(108),lt=ct(nt),dt=i(62),vt=ct(dt);function ct(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}}l.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":u.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":w.FontClass,"attributors/class/size":T.SizeClass,"attributors/style/align":u.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":w.FontStyle,"attributors/style/size":T.SizeStyle},!0),l.default.register({"formats/align":u.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":w.FontClass,"formats/size":T.SizeClass,"formats/blockquote":p.default,"formats/code-block":k.default,"formats/header":v.default,"formats/list":_.default,"formats/bold":E.default,"formats/code":U.Code,"formats/italic":A.default,"formats/link":L.default,"formats/script":C.default,"formats/strike":M.default,"formats/underline":q.default,"formats/image":z.default,"formats/video":W.default,"formats/list/item":m.ListItem,"modules/formula":j.default,"modules/syntax":X.default,"modules/toolbar":V.default,"themes/bubble":lt.default,"themes/snow":vt.default,"ui/icons":Q.default,"ui/picker":ot.default,"ui/icon-picker":At.default,"ui/color-picker":mt.default,"ui/tooltip":qt.default},!0),n.default=l.default},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.IndentClass=void 0;var o=function(){function _(b,y){for(var w=0;w<y.length;w++){var T=y[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(b,T.key,T)}}return function(b,y,w){return y&&_(b.prototype,y),w&&_(b,w),b}}(),l=function _(b,y,w){b===null&&(b=Function.prototype);var T=Object.getOwnPropertyDescriptor(b,y);if(T===void 0){var x=Object.getPrototypeOf(b);return x===null?void 0:_(x,y,w)}else{if("value"in T)return T.value;var E=T.get;return E===void 0?void 0:E.call(w)}},u=i(0),f=h(u);function h(_){return _&&_.__esModule?_:{default:_}}function d(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}function p(_,b){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:_}function c(_,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);_.prototype=Object.create(b&&b.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(_,b):_.__proto__=b)}var v=function(_){c(b,_);function b(){return d(this,b),p(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return o(b,[{key:"add",value:function(w,T){if(T==="+1"||T==="-1"){var x=this.value(w)||0;T=T==="+1"?x+1:x-1}return T===0?(this.remove(w),!0):l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,w,T)}},{key:"canAdd",value:function(w,T){return l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,w,T)||l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,w,parseInt(T))}},{key:"value",value:function(w){return parseInt(l(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,w))||void 0}}]),b}(f.default.Attributor.Class),m=new v("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});n.IndentClass=m},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(4),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="blockquote",p.tagName="blockquote",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function v(m,_){for(var b=0;b<_.length;b++){var y=_[b];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(m,y.key,y)}}return function(m,_,b){return _&&v(m.prototype,_),b&&v(m,b),m}}(),l=i(4),u=f(l);function f(v){return v&&v.__esModule?v:{default:v}}function h(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}function d(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:v}function p(v,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}var c=function(v){p(m,v);function m(){return h(this,m),d(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return o(m,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),m}(u.default);c.blotName="header",c.tagName=["H1","H2","H3","H4","H5","H6"],n.default=c},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.ListItem=void 0;var o=function(){function x(E,I){for(var A=0;A<I.length;A++){var O=I[A];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(E,O.key,O)}}return function(E,I,A){return I&&x(E.prototype,I),A&&x(E,A),E}}(),l=function x(E,I,A){E===null&&(E=Function.prototype);var O=Object.getOwnPropertyDescriptor(E,I);if(O===void 0){var L=Object.getPrototypeOf(E);return L===null?void 0:x(L,I,A)}else{if("value"in O)return O.value;var R=O.get;return R===void 0?void 0:R.call(A)}},u=i(0),f=v(u),h=i(4),d=v(h),p=i(25),c=v(p);function v(x){return x&&x.__esModule?x:{default:x}}function m(x,E,I){return E in x?Object.defineProperty(x,E,{value:I,enumerable:!0,configurable:!0,writable:!0}):x[E]=I,x}function _(x,E){if(!(x instanceof E))throw new TypeError("Cannot call a class as a function")}function b(x,E){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:x}function y(x,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);x.prototype=Object.create(E&&E.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(x,E):x.__proto__=E)}var w=function(x){y(E,x);function E(){return _(this,E),b(this,(E.__proto__||Object.getPrototypeOf(E)).apply(this,arguments))}return o(E,[{key:"format",value:function(A,O){A===T.blotName&&!O?this.replaceWith(f.default.create(this.statics.scope)):l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"format",this).call(this,A,O)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(A,O){return this.parent.isolate(this.offset(this.parent),this.length()),A===this.parent.statics.blotName?(this.parent.replaceWith(A,O),this):(this.parent.unwrap(),l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replaceWith",this).call(this,A,O))}}],[{key:"formats",value:function(A){return A.tagName===this.tagName?void 0:l(E.__proto__||Object.getPrototypeOf(E),"formats",this).call(this,A)}}]),E}(d.default);w.blotName="list-item",w.tagName="LI";var T=function(x){y(E,x),o(E,null,[{key:"create",value:function(A){var O=A==="ordered"?"OL":"UL",L=l(E.__proto__||Object.getPrototypeOf(E),"create",this).call(this,O);return(A==="checked"||A==="unchecked")&&L.setAttribute("data-checked",A==="checked"),L}},{key:"formats",value:function(A){if(A.tagName==="OL")return"ordered";if(A.tagName==="UL")return A.hasAttribute("data-checked")?A.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function E(I){_(this,E);var A=b(this,(E.__proto__||Object.getPrototypeOf(E)).call(this,I)),O=function(R){if(R.target.parentNode===I){var C=A.statics.formats(I),P=f.default.find(R.target);C==="checked"?P.format("list","unchecked"):C==="unchecked"&&P.format("list","checked")}};return I.addEventListener("touchstart",O),I.addEventListener("mousedown",O),A}return o(E,[{key:"format",value:function(A,O){this.children.length>0&&this.children.tail.format(A,O)}},{key:"formats",value:function(){return m({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(A,O){if(A instanceof w)l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"insertBefore",this).call(this,A,O);else{var L=O==null?this.length():O.offset(this),R=this.split(L);R.parent.insertBefore(A,R)}}},{key:"optimize",value:function(A){l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"optimize",this).call(this,A);var O=this.next;O!=null&&O.prev===this&&O.statics.blotName===this.statics.blotName&&O.domNode.tagName===this.domNode.tagName&&O.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(O.moveChildren(this),O.remove())}},{key:"replace",value:function(A){if(A.statics.blotName!==this.statics.blotName){var O=f.default.create(this.statics.defaultChild);A.moveChildren(O),this.appendChild(O)}l(E.prototype.__proto__||Object.getPrototypeOf(E.prototype),"replace",this).call(this,A)}}]),E}(c.default);T.blotName="list",T.scope=f.default.Scope.BLOCK_BLOT,T.tagName=["OL","UL"],T.defaultChild="list-item",T.allowedChildren=[w],n.ListItem=w,n.default=T},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(56),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="italic",p.tagName=["EM","I"],n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function m(_,b){for(var y=0;y<b.length;y++){var w=b[y];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(_,w.key,w)}}return function(_,b,y){return b&&m(_.prototype,b),y&&m(_,y),_}}(),l=function m(_,b,y){_===null&&(_=Function.prototype);var w=Object.getOwnPropertyDescriptor(_,b);if(w===void 0){var T=Object.getPrototypeOf(_);return T===null?void 0:m(T,b,y)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(y)}},u=i(6),f=h(u);function h(m){return m&&m.__esModule?m:{default:m}}function d(m,_){if(!(m instanceof _))throw new TypeError("Cannot call a class as a function")}function p(m,_){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:m}function c(m,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);m.prototype=Object.create(_&&_.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(m,_):m.__proto__=_)}var v=function(m){c(_,m);function _(){return d(this,_),p(this,(_.__proto__||Object.getPrototypeOf(_)).apply(this,arguments))}return o(_,null,[{key:"create",value:function(y){return y==="super"?document.createElement("sup"):y==="sub"?document.createElement("sub"):l(_.__proto__||Object.getPrototypeOf(_),"create",this).call(this,y)}},{key:"formats",value:function(y){if(y.tagName==="SUB")return"sub";if(y.tagName==="SUP")return"super"}}]),_}(f.default);v.blotName="script",v.tagName=["SUB","SUP"],n.default=v},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="strike",p.tagName="S",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=i(6),l=u(o);function u(c){return c&&c.__esModule?c:{default:c}}function f(c,v){if(!(c instanceof v))throw new TypeError("Cannot call a class as a function")}function h(c,v){if(!c)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:c}function d(c,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);c.prototype=Object.create(v&&v.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(c,v):c.__proto__=v)}var p=function(c){d(v,c);function v(){return f(this,v),h(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return v}(l.default);p.blotName="underline",p.tagName="U",n.default=p},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function b(y,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,w,T){return w&&b(y.prototype,w),T&&b(y,T),y}}(),l=function b(y,w,T){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,w);if(x===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:b(E,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(0),f=d(u),h=i(27);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function c(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function v(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var m=["alt","height","width"],_=function(b){v(y,b);function y(){return p(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"format",value:function(T,x){m.indexOf(T)>-1?x?this.domNode.setAttribute(T,x):this.domNode.removeAttribute(T):l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,T,x)}}],[{key:"create",value:function(T){var x=l(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,T);return typeof T=="string"&&x.setAttribute("src",this.sanitize(T)),x}},{key:"formats",value:function(T){return m.reduce(function(x,E){return T.hasAttribute(E)&&(x[E]=T.getAttribute(E)),x},{})}},{key:"match",value:function(T){return/\.(jpe?g|gif|png)$/.test(T)||/^data:image\/.+;base64/.test(T)}},{key:"sanitize",value:function(T){return(0,h.sanitize)(T,["http","https","data"])?T:"//:0"}},{key:"value",value:function(T){return T.getAttribute("src")}}]),y}(f.default.Embed);_.blotName="image",_.tagName="IMG",n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function b(y,w){for(var T=0;T<w.length;T++){var x=w[T];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(y,x.key,x)}}return function(y,w,T){return w&&b(y.prototype,w),T&&b(y,T),y}}(),l=function b(y,w,T){y===null&&(y=Function.prototype);var x=Object.getOwnPropertyDescriptor(y,w);if(x===void 0){var E=Object.getPrototypeOf(y);return E===null?void 0:b(E,w,T)}else{if("value"in x)return x.value;var I=x.get;return I===void 0?void 0:I.call(T)}},u=i(4),f=i(27),h=d(f);function d(b){return b&&b.__esModule?b:{default:b}}function p(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function c(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function v(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var m=["height","width"],_=function(b){v(y,b);function y(){return p(this,y),c(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}return o(y,[{key:"format",value:function(T,x){m.indexOf(T)>-1?x?this.domNode.setAttribute(T,x):this.domNode.removeAttribute(T):l(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"format",this).call(this,T,x)}}],[{key:"create",value:function(T){var x=l(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,T);return x.setAttribute("frameborder","0"),x.setAttribute("allowfullscreen",!0),x.setAttribute("src",this.sanitize(T)),x}},{key:"formats",value:function(T){return m.reduce(function(x,E){return T.hasAttribute(E)&&(x[E]=T.getAttribute(E)),x},{})}},{key:"sanitize",value:function(T){return h.default.sanitize(T)}},{key:"value",value:function(T){return T.getAttribute("src")}}]),y}(u.BlockEmbed);_.blotName="video",_.className="ql-video",_.tagName="IFRAME",n.default=_},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.FormulaBlot=void 0;var o=function(){function T(x,E){for(var I=0;I<E.length;I++){var A=E[I];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(x,A.key,A)}}return function(x,E,I){return E&&T(x.prototype,E),I&&T(x,I),x}}(),l=function T(x,E,I){x===null&&(x=Function.prototype);var A=Object.getOwnPropertyDescriptor(x,E);if(A===void 0){var O=Object.getPrototypeOf(x);return O===null?void 0:T(O,E,I)}else{if("value"in A)return A.value;var L=A.get;return L===void 0?void 0:L.call(I)}},u=i(35),f=v(u),h=i(5),d=v(h),p=i(9),c=v(p);function v(T){return T&&T.__esModule?T:{default:T}}function m(T,x){if(!(T instanceof x))throw new TypeError("Cannot call a class as a function")}function _(T,x){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:T}function b(T,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);T.prototype=Object.create(x&&x.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(T,x):T.__proto__=x)}var y=function(T){b(x,T);function x(){return m(this,x),_(this,(x.__proto__||Object.getPrototypeOf(x)).apply(this,arguments))}return o(x,null,[{key:"create",value:function(I){var A=l(x.__proto__||Object.getPrototypeOf(x),"create",this).call(this,I);return typeof I=="string"&&(window.katex.render(I,A,{throwOnError:!1,errorColor:"#f00"}),A.setAttribute("data-value",I)),A}},{key:"value",value:function(I){return I.getAttribute("data-value")}}]),x}(f.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var w=function(T){b(x,T),o(x,null,[{key:"register",value:function(){d.default.register(y,!0)}}]);function x(){m(this,x);var E=_(this,(x.__proto__||Object.getPrototypeOf(x)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return E}return x}(c.default);n.FormulaBlot=y,n.default=w},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.CodeToken=n.CodeBlock=void 0;var o=function(){function I(A,O){for(var L=0;L<O.length;L++){var R=O[L];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(A,R.key,R)}}return function(A,O,L){return O&&I(A.prototype,O),L&&I(A,L),A}}(),l=function I(A,O,L){A===null&&(A=Function.prototype);var R=Object.getOwnPropertyDescriptor(A,O);if(R===void 0){var C=Object.getPrototypeOf(A);return C===null?void 0:I(C,O,L)}else{if("value"in R)return R.value;var P=R.get;return P===void 0?void 0:P.call(L)}},u=i(0),f=_(u),h=i(5),d=_(h),p=i(9),c=_(p),v=i(13),m=_(v);function _(I){return I&&I.__esModule?I:{default:I}}function b(I,A){if(!(I instanceof A))throw new TypeError("Cannot call a class as a function")}function y(I,A){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:I}function w(I,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);I.prototype=Object.create(A&&A.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(I,A):I.__proto__=A)}var T=function(I){w(A,I);function A(){return b(this,A),y(this,(A.__proto__||Object.getPrototypeOf(A)).apply(this,arguments))}return o(A,[{key:"replaceWith",value:function(L){this.domNode.textContent=this.domNode.textContent,this.attach(),l(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"replaceWith",this).call(this,L)}},{key:"highlight",value:function(L){var R=this.domNode.textContent;this.cachedText!==R&&((R.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=L(R),this.domNode.normalize(),this.attach()),this.cachedText=R)}}]),A}(m.default);T.className="ql-syntax";var x=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),E=function(I){w(A,I),o(A,null,[{key:"register",value:function(){d.default.register(x,!0),d.default.register(T,!0)}}]);function A(O,L){b(this,A);var R=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,O,L));if(typeof R.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var C=null;return R.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(C),C=setTimeout(function(){R.highlight(),C=null},R.options.interval)}),R.highlight(),R}return o(A,[{key:"highlight",value:function(){var L=this;if(!this.quill.selection.composing){this.quill.update(d.default.sources.USER);var R=this.quill.getSelection();this.quill.scroll.descendants(T).forEach(function(C){C.highlight(L.options.highlight)}),this.quill.update(d.default.sources.SILENT),R!=null&&this.quill.setSelection(R,d.default.sources.SILENT)}}}]),A}(c.default);E.DEFAULTS={highlight:function(){return window.hljs==null?null:function(I){var A=window.hljs.highlightAuto(I);return A.value}}(),interval:1e3},n.CodeBlock=T,n.CodeToken=x,n.default=E},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(r,n){r.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(r,n){r.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(r,n){r.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(r,n,i){Object.defineProperty(n,"__esModule",{value:!0}),n.default=n.BubbleTooltip=void 0;var o=function A(O,L,R){O===null&&(O=Function.prototype);var C=Object.getOwnPropertyDescriptor(O,L);if(C===void 0){var P=Object.getPrototypeOf(O);return P===null?void 0:A(P,L,R)}else{if("value"in C)return C.value;var M=C.get;return M===void 0?void 0:M.call(R)}},l=function(){function A(O,L){for(var R=0;R<L.length;R++){var C=L[R];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(O,C.key,C)}}return function(O,L,R){return L&&A(O.prototype,L),R&&A(O,R),O}}(),u=i(3),f=b(u),h=i(8),d=b(h),p=i(43),c=b(p),v=i(15),m=i(41),_=b(m);function b(A){return A&&A.__esModule?A:{default:A}}function y(A,O){if(!(A instanceof O))throw new TypeError("Cannot call a class as a function")}function w(A,O){if(!A)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:A}function T(A,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);A.prototype=Object.create(O&&O.prototype,{constructor:{value:A,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(A,O):A.__proto__=O)}var x=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],E=function(A){T(O,A);function O(L,R){y(this,O),R.modules.toolbar!=null&&R.modules.toolbar.container==null&&(R.modules.toolbar.container=x);var C=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return C.quill.container.classList.add("ql-bubble"),C}return l(O,[{key:"extendToolbar",value:function(R){this.tooltip=new I(this.quill,this.options.bounds),this.tooltip.root.appendChild(R.container),this.buildButtons([].slice.call(R.container.querySelectorAll("button")),_.default),this.buildPickers([].slice.call(R.container.querySelectorAll("select")),_.default)}}]),O}(c.default);E.DEFAULTS=(0,f.default)(!0,{},c.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(O){O?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var I=function(A){T(O,A);function O(L,R){y(this,O);var C=w(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,L,R));return C.quill.on(d.default.events.EDITOR_CHANGE,function(P,M,F,q){if(P===d.default.events.SELECTION_CHANGE)if(M!=null&&M.length>0&&q===d.default.sources.USER){C.show(),C.root.style.left="0px",C.root.style.width="",C.root.style.width=C.root.offsetWidth+"px";var Y=C.quill.getLines(M.index,M.length);if(Y.length===1)C.position(C.quill.getBounds(M));else{var z=Y[Y.length-1],it=C.quill.getIndex(z),W=Math.min(z.length()-1,M.index+M.length-it),U=C.quill.getBounds(new v.Range(it,W));C.position(U)}}else document.activeElement!==C.textbox&&C.quill.hasFocus()&&C.hide()}),C}return l(O,[{key:"listen",value:function(){var R=this;o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){R.root.classList.remove("ql-editing")}),this.quill.on(d.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!R.root.classList.contains("ql-hidden")){var C=R.quill.getSelection();C!=null&&R.position(R.quill.getBounds(C))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(R){var C=o(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"position",this).call(this,R),P=this.root.querySelector(".ql-tooltip-arrow");if(P.style.marginLeft="",C===0)return C;P.style.marginLeft=-1*C-P.offsetWidth/2+"px"}}]),O}(p.BaseTooltip);I.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),n.BubbleTooltip=I,n.default=E},function(r,n,i){r.exports=i(63)}]).default})})(Ev);var yN=Ev.exports;const _N=En(yN),sB="",bN=Et.forwardRef((e,t)=>{const[r,n]=_t.useState(!1),i=300,o=_t.useRef(null),l=_t.useRef(0),u=_t.useRef(null),f=_t.useRef(null),h=_t.useRef(null),d=_t.useRef(16),p=_t.useRef(null),c=_t.useRef(null),{uniqueId:v,text:m,disabled:_,transformation:b,onTextUpdate:y,pointerdown:w,onExitQuillEditor:T}=e,{x,y:E,fontFamily:I="Arial",fontWeight:A="normal",fontStyle:O="normal",fontSize:L=16,fontVariant:R="normal",fill:C="black",stroke:P,strokeThickness:M=0,blurRadius:F=0,blurEnabled:q=!1,dropShadowColor:Y=null,dropShadow:z=!1,dropShadowBlur:it=0,wordWrapWidth:W=5e7,leading:U=0,letterSpacing:k,colorCorrection:D={}}=b,{temperatureFilter:j,sharpnessFilter:Z,hueFilter:X,blurFilter:G,adjustmentFilter:V}=ys(D),{blurRadius:et=0}=D;Et.useEffect(()=>{d.current=Number(L)},[L]);const Q=["italic","oblique"].includes(O)?O:void 0,rt=["small-caps"].includes(R),ot=["bold","bolder","lighter","100","200","300"].includes(A)?A:void 0,pt=Number(k)>0?k:void 0,mt=Et.useMemo(()=>new zr.TextStyle({fontFamily:I,fontSize:L,fill:C||"white",...P&&M>0&&{stroke:P,strokeThickness:M},...Q&&{fontStyle:Q},...rt&&{fontVariant:rt},...ot&&{fontWeight:ot},...pt&&{letterSpacing:pt},...q&&{dropShadow:!0,dropShadowBlur:Number(F),dropShadowColor:(Y==null?void 0:Y.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},...z&&{dropShadow:!0,dropShadowBlur:Number(it),dropShadowColor:(Y==null?void 0:Y.toString())||"black",dropShadowAngle:.5235987755982988,dropShadowDistance:5},wordWrap:!0,breakWords:!0,wordWrapWidth:W||500,leading:U||0}),[q,F,C,I,L,O,U,Q,ot,rt,pt,Y,P,M,W,z,it]);Et.useEffect(()=>{p.current={...b}},[b]);const xt=()=>{n(!0)},At=()=>{const nt=new Date().getTime();nt-l.current<i?xt():w&&w(),l.current=nt},oe=nt=>{y&&y({text:nt,uniqueId:v})},qt=()=>{n(!1),T&&T()};return Et.useEffect(()=>{if(r&&f.current){let nt=document.getElementById("note-editor");if(nt){nt.style.position="absolute",nt.style.display="block",nt.style.zIndex="10",nt.style.left=x+"px",nt.style.top=E+"px",nt.style.backgroundColor="var(--chakra-color-darkShark)",nt.style.transform="scale(1.5)",nt.style.width="300px",nt.style.height="100px",nt.style.color="#fff",nt.style.fontSize="20px",nt.style.border="1px solid #CBCEE0";const lt={esc:{key:27,handler:function(){qt()}},enter:{key:13,handler:function(){qt()}}};if(c.current=new _N("#note-editor",{modules:{toolbar:!1,keyboard:{bindings:{...lt}}},placeholder:"Compose your text here...",theme:"snow"}),c.current){c.current.on("text-change",function(){c.current&&oe(c.current.root.innerText)}),c.current.setText(m),c.current.focus(),c.current.off("text-change",()=>{}),c.current.hasFocus()||(nt.style.display="none");const dt=document.createElement("button");dt.innerHTML="&#10006;",dt.style.position="absolute",dt.style.bottom="-14px",dt.style.left="-3px",dt.style.cursor="pointer",dt.addEventListener("click",()=>{qt()}),dt.style.border="none",dt.style.borderRadius="50%",dt.style.width="15px",dt.style.height="15px",dt.style.backgroundColor="#f8f8f8",dt.style.color="#333",dt.style.fontSize="10px",nt.appendChild(dt)}}}else if(c.current){let nt=document.getElementById("note-editor");nt&&nt.hasChildNodes()&&(nt.removeChild(nt.firstChild),nt.removeAttribute("class"),nt.removeAttribute("style")),c.current.off("text-change",()=>{})}return()=>{c.current&&c.current.off("text-change",()=>{})}},[x,E,r]),Et.useEffect(()=>{if(!r){const nt=document.getElementById("note-editor");nt&&(nt.style.display="none")}},[r]),Yt.jsx(ni,{...e,ref:t,isText:!0,onDoubleClick:xt,isTextEditMode:r,children:Yt.jsxs(me.Container,{ref:o,children:[r&&Yt.jsx(me.Container,{ref:f}),Yt.jsx(me.Container,{alpha:r?0:1,ref:h,children:Yt.jsx(me.Text,{style:mt,x,y:E,anchor:.5,text:m,...!r&&!_&&{interactive:!0,buttonMode:!0,pointerdown:At},ref:u,filters:[j,Z,X,V,...et>0?[G]:[]]})})]})})}),xN={isPlaying:!1,progress:0,speed:1,isMuted:!1,isWaiting:!1,isStalled:!1,loaded:!1,size:{width:50,height:50},isDragging:!1,timeDiff:0},Sv=Et.forwardRef((e,t)=>{const[,r]=Et.useState(!1),[n,i]=Et.useState(),o=_t.useRef(null),l=_t.useRef(null),u=_t.useRef(null),f=_t.useRef(xN),h=_t.useRef(),{tl:d,isDragging:p}=_t.useContext(ti),{uniqueId:c,mute:v=!1,src:m,startAt:_,endAt:b,frameStartAt:y,frameEndAt:w,transformation:{x:T,y:x,width:E,height:I,animation:A,colorCorrection:O={}},pointerdown:L}=e,{blurRadius:R=0}=O,{temperatureFilter:C,sharpnessFilter:P,hueFilter:M,blurFilter:F,adjustmentFilter:q}=ys(O),Y=m||"",z=Et.useMemo(()=>{const D=document.createElement("video");return D.src=m,D.crossOrigin="Anonymus",D.autoplay=!1,D.currentTime=y===0?.001:y,D},[m,y]);mr(ke.PAUSE,()=>{if(u.current){const D=u.current;D.currentTime>0&&!D.paused&&!D.ended&&D.readyState>D.HAVE_CURRENT_DATA&&u.current.pause(),f.current.isPlaying=!1}}),Et.useEffect(()=>{u.current&&(p?(u.current.pause(),f.current.isPlaying=!1,f.current.isDragging=!0):f.current.isDragging=!1,u.current.muted=v)},[v,p]);const it=D=>{u.current&&(u.current.currentTime=Number(D),p||(u.current.currentTime=Number(D),u.current.play(),f.current.isPlaying=!0))},W=()=>{if(u.current){const D=u.current;D.currentTime>0&&!D.paused&&!D.ended&&D.readyState>D.HAVE_CURRENT_DATA&&u.current.pause(),f.current.isPlaying=!1}},U=()=>{},k=()=>{var D,j;if(u.current&&h.current){const Z=y+((D=h.current)==null?void 0:D.time());Math.abs(u.current.currentTime-Z);const X=u.current,G=X.currentTime>0&&!X.paused&&!X.ended&&X.readyState>X.HAVE_CURRENT_DATA;f.current.isDragging?(u.current.currentTime=Z,u.current.play(),setTimeout(()=>{f.current.isPlaying=!1,u.current&&u.current.pause()},300),f.current.isPlaying=!1):f.current.isPlaying||(j=d.current)!=null&&j.isActive()&&h.current&&h.current.isActive()&&(G||u.current.play(),f.current.isPlaying=!0)}};return _t.useEffect(()=>{let D=Te.context(()=>{});if(l.current&&d.current){const j={duration:Number(w)-Number(y),onStart:it,onComplete:W,onStartParams:[y,w],onCompleteParams:[],onInterrupt:U,onUpdate:k,onUpdateParams:[y,w]};h.current&&h.current.kill(),D=Te.context(()=>{h.current=Te.from(l.current,j,y),d.current.add(h.current,_)})}return()=>{h.current&&(h.current.kill(),Te.killTweensOf(h.current)),D.revert()}},[A,_,b,y,w]),Et.useEffect(()=>{l.current&&r(!0)},[]),Et.useEffect(()=>{u.current&&(u.current.muted=v)},[v]),Et.useEffect(()=>{if(u.current){const D=u.current;D.currentTime>0&&!D.paused&&!D.ended&&D.readyState>D.HAVE_CURRENT_DATA&&p&&(u.current.pause(),f.current.isPlaying=!1)}},[p]),Et.useEffect(()=>{const D=Math.round((Number(y)+Number.EPSILON)*100)/100,j=function(){u.current&&(u.current.currentTime=D)},Z=function(){if(u.current){const ot=u.current;ot.currentTime>0&&!ot.paused&&!ot.ended&&ot.readyState>ot.HAVE_CURRENT_DATA&&u.current.pause()}f.current.isWaiting=!1,f.current.isStalled=!1},X=function(){u.current&&u.current.pause(),f.current.isWaiting=!0,f.current.isStalled=!1},G=function(){f.current.isWaiting=!1,f.current.isStalled=!1},V=function(){f.current.isWaiting=!1,f.current.isStalled=!0},et=Math.round((Number(y)+Number.EPSILON)*100)/100,Q=Math.round((Number(w)+Number.EPSILON)*100)/100,rt=`${Y}#t=${et},${Q}`;return console.log("urlTimestap",rt),zr.Texture.fromLoader(z,rt,c,{pixiIdPrefix:c,resourceOptions:{autoPlay:!1,crossorigin:"Anonymus",updateFPS:30}}).then(ot=>{ot&&(i(ot),u.current=ot.baseTexture.resource.source,u.current.id=c,u.current.addEventListener("loadedmetadata",j),u.current.addEventListener("ended",Z),u.current.addEventListener("loadstart",X),u.current.addEventListener("canplaythrough",G),u.current.addEventListener("stalled",V))}),()=>{console.log("unmounting video sprite",c,u.current),console.log("spriteref",o.current),u.current&&(u.current.pause(),u.current.removeEventListener("loadedmetadata",j),u.current.removeEventListener("ended",Z),u.current.removeEventListener("loadstart",X),u.current.removeEventListener("canplaythrough",G),u.current.removeEventListener("stalled",V))}},[Y,c,y,w,z]),Yt.jsx(ni,{...e,ref:t,ignoreTlForVideo:!0,children:Yt.jsx(me.Container,{ref:l,children:n&&Yt.jsx(me.Sprite,{texture:n,width:E,height:I,anchor:.5,x:T,y:x,ref:o,pointerdown:L,filters:[C,P,M,q,...R>0?[F]:[]]})})})});Sv.whyDidYouRender={logOnDifferentValues:!0,customName:"PixiVideoSprite"};var Av=(e=>(e.FADE_IN="FADE_IN",e.FADE_OUT="FADE_OUT",e.FADE_IN_OUT="FADE_IN_OUT",e.SLIDE_IN_LEFT="SLIDE_IN_LEFT",e.SLIDE_IN_RIGHT="SLIDE_IN_RIGHT",e.SLIDE_IN_TOP="SLIDE_IN_TOP",e.SLIDE_IN_BOTTOM="SLIDE_IN_BOTTOM",e.SLIDE_OUT_LEFT="SLIDE_OUT_LEFT",e.SLIDE_OUT_RIGHT="SLIDE_OUT_RIGHT",e.SLIDE_OUT_TOP="SLIDE_OUT_TOP",e.SLIDE_OUT_BOTTOM="SLIDE_OUT_BOTTOM",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.ZOOM_IN_OUT="ZOOM_IN_OUT",e.BOUNCE_IN="BOUNCE_IN",e.BOUNCE_OUT="BOUNCE_OUT",e.BOUNCE_IN_OUT="BOUNCE_IN_OUT",e.ELASTIC_IN="ELASTIC_IN",e.ELASTIC_OUT="ELASTIC_OUT",e.ELASTIC_IN_OUT="ELASTIC_IN_OUT",e.BACK_IN="BACK_IN",e.BACK_OUT="BACK_OUT",e.BACK_IN_OUT="BACK_IN_OUT",e.CIRCULAR_IN="CIRCULAR_IN",e.CIRCULAR_OUT="CIRCULAR_OUT",e.CIRCULAR_IN_OUT="CIRCULAR_IN_OUT",e.EXPO_IN="EXPO_IN",e.EXPO_OUT="EXPO_OUT",e.EXPO_IN_OUT="EXPO_IN_OUT",e.SINE_IN="SINE_IN",e.SINE_OUT="SINE_OUT",e.SINE_IN_OUT="SINE_IN_OUT",e.BOUNCE="BOUNCE",e.ELASTIC="ELASTIC",e.BACK="BACK",e.CIRCULAR="CIRCULAR",e.EXPO="EXPO",e.SINE="SINE",e))(Av||{}),Ov=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e))(Ov||{});ie.Animations=Av,ie.BlendModes=Ov,ie.Events=ke,ie.GsapPixieContext=ti,ie.GsapPixieContextProvider=my,ie.PixiAnimatedSprite=xv,ie.PixiAudioSprite=FS,ie.PixiGifSprite=Tv,ie.PixiImageSprite=vp,ie.PixiSvgPathSprite=aS,ie.PixiTextSprite=bN,ie.PixiVideoSprite=Sv,ie.emitCustomEvent=Jn,ie.newCustomEventEmitter=gy,ie.useCustomEventListener=mr,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})});