@pdfme/ui 3.1.2-dev.3 → 3.1.2-dev.5
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.js +1 -1
- package/package.json +1 -1
- package/src/components/Renderer.tsx +1 -0
- package/vite.config.ts +1 -1
package/dist/index.js
CHANGED
@@ -797,7 +797,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
797
797
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xTt(e,t){if(e){if(typeof e=="string")return B6e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return B6e(e,t)}}function B6e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ETt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function CTt(e){if(Array.isArray(e))return e}function IX(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=r||{},o=c5(e)||{},a=t||"#";o.$id||(o.$id=a);var s=[];return OD(o)&&($E(Object.entries(o.properties)).forEach(function(l){var c=k6e(l,2),u=c[0],d=c[1],h=DD(d)?u+"[]":u,f=a==="#"?h:a+"."+h;s.push(f),IX(d,f,a,i)}),o.properties={}),DD(o)&&($E(Object.entries(o.items.properties)).forEach(function(l){var c=k6e(l,2),u=c[0],d=c[1],h=DD(d)?u+"[]":u,f=a==="#"?h:a+"."+h;s.push(f),IX(d,f,a,i)}),o.items.properties={}),o.type&&(i[a]={parent:n,schema:o,children:s}),i}function STt(e,t){return ITt(e)||MTt(e,t)||BTt(e,t)||kTt()}function kTt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
798
798
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BTt(e,t){if(e){if(typeof e=="string")return M6e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M6e(e,t)}}function M6e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MTt(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,a,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}function ITt(e){if(Array.isArray(e))return e}var I6e=function(e,t,n){var r=I3e(e,n),i=lA(n,r,{}),o=pl(t)?t(i):t,a=Object.assign(Object.assign({},i),o);o.props&&(a.props=Object.assign(Object.assign({},i==null?void 0:i.props),o.props)),gV(n,r,a)},cu=function(e){if(e){if(typeof e=="boolean")return e;var t=[];return Ms(e)&&(t=e.map(function(n){return n.split(".").map(function(r){return isNaN(Number(r))?r:r*1})})),t=e.split(".").map(function(n){return isNaN(Number(n))?n:n*1}),t=t.map(function(n){return typeof n=="string"&&(n==null?void 0:n.indexOf("["))===0&&(n==null?void 0:n.indexOf("]"))===(n==null?void 0:n.length)-1?Number(n.substring(1,n.length-1)):n}),t}},R6e=function(){var e=Mc.useForm(),t=STt(e,1),n=t[0],r=v.useRef({}),i=v.useRef(),o=v.useRef({}),a=v.useRef({});n.getFieldError;var s=n.getFieldsError,l=n.getFieldInstance,c=n.setFieldsValue,u=n.setFields,d=n.scrollToField,h=n.isFieldsTouched,f=n.isFieldTouched,p=n.isFieldValidating,g=n.resetFields,m=n.validateFields,b=ko(n,["getFieldError","getFieldsError","getFieldInstance","setFieldsValue","setFields","scrollToField","isFieldsTouched","isFieldTouched","isFieldValidating","resetFields","validateFields"]),w=b,x=function(E){var S=i.current.setState;S||setTimeout(function(){S({schema:o.current,flattenSchema:r.current})},0),S(E)},C=function(E){r.current=IX(E)||{},o.current=E,x({schema:E,flattenSchema:r.current})};return w.setSchema=function(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Bs(E)){if(S){C(E);return}var B=sA(o.current);Object.keys(E||{}).forEach(function(M){I6e(M,E[M],B)}),C(B)}},w.setSchemaByPath=function(E,S){if(!(!p7t(S)&&u7t(S,w.getSchemaByPath(E)))){var B=sA(o.current);I6e(E,S,B),C(B)}},w.setValues=function(E){var S=x7t(E,r.current);c(S)},w.getValues=function(E,S){var B,M=sA(n.getFieldsValue(cu(E),S)),O=((B=i.current)===null||B===void 0?void 0:B.getState())||{},D=O.removeHiddenData;return D&&(M=S3e(M,r.current)),M=vV(M),C3e(M,r.current)},w.getValueByPath=function(E){var S=cu(E);return n.getFieldValue(S)},w.setValueByPath=function(E,S){if(!n.setFieldValue){var B=n.getFieldsValue();gV(B,E,S),w.setValues(B);return}var M=cu(E);n.setFieldValue(M,S);try{JSON.stringify(n.getFieldValue(M))!==JSON.stringify(S)&&n.setFieldValue(M,S)}catch{}},w.getSchemaByPath=function(E){typeof E!="string"&&console.warn("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8DEF\u5F84");var S=I3e(E,o.current);return lA(o.current,S)},w.getSchema=function(){return o.current},w.setErrorFields=function(E){var S=M3e(E,cu);S&&u(S)},w.removeErrorField=function(E){u([{name:cu(E),errors:[]}])},w.getFieldError=function(E){var S=cu(E);return n.getFieldError(S)},w.getFieldsError=function(E){var S=cu(E);return s(S)},w.getFieldInstance=function(E){var S=cu(E);return l(S)},w.getHiddenValues=function(){var E=w.getValues(),S=w.getValues(!0),B={},M=function O(D,P,j){Object.keys(D).forEach(function(z){var H=D[z],Q=j?"".concat(j,".").concat(z):z;if(!P.hasOwnProperty(z)){gV(B,Q,H);return}Bs(H)&&O(H,P[z],Q),Ms(H)&&H.map(function(F,N){O(F,lA(P,"".concat(z,"[").concat(N,"]"),[]),"".concat(Q,"[").concat(N,"]"))})})};return M(S,E,null),B},w.setFields=function(E){var S=M3e(E,cu);S&&u(S)},w.__initStore=function(E){i.current=E},w.scrollToPath=function(E){for(var S=cu(E),B=arguments.length,M=new Array(B>1?B-1:0),O=1;O<B;O++)M[O-1]=arguments[O];d.apply(void 0,[S].concat(M))},w.isFieldsTouched=function(E,S){var B=(E||[]).map(function(M){return cu(M)});return h(B,S)},w.isFieldTouched=function(E){var S=cu(E);return f(S)},w.isFieldValidating=function(E){var S=cu(E);return p(S)},w.resetFields=function(E){var S=(E||[]).map(function(B){return cu(B)});S.length>0?g(S):g()},w.validateFields=function(E){var S=(E||[]).map(function(B){return cu(B)});return S.length>0?m(S):m()},w.getFlattenSchema=function(E){var S;return E?(S=r.current)===null||S===void 0?void 0:S[E]:r.current},w.onItemChange=w.setValueByPath,w.setFieldRef=function(E,S){E&&(a.current[E]=S)},w.getFieldRef=function(E){return a.current[E]},w};const O6e=BBt(Xkt,yTt),RTt={style:{width:"90%",height:"90%"},xmlns:"http://www.w3.org/2000/svg",enableBackground:"new 0 0 24 24",height:"24px",viewBox:"0 0 24 24",width:"24px",fill:"#000000"},OTt=e=>qt.jsxs("svg",{...RTt,children:[qt.jsx("rect",{fill:"none",height:"24",width:"24"}),e]}),vA=(e,t,n)=>({id:e,icon:OTt(t),onClick:n}),DTt=e=>{const{activeElements:t,changeSchemas:n,schemas:r,pageSize:i,schema:o}=e,a=c=>{const u=t.map(E=>E.id),d=r.filter(E=>u.includes(E.id)),h=["left","center","right"].includes(c),f=h?"x":"y",p=h?"width":"height",g=d.length===1,m=i[p],b=g?0:Math.min(...d.map(E=>E.position[f])),w=g?m:Math.max(...d.map(E=>E.position[f]+E[p]));let x=b,C=E=>0;["center","middle"].includes(c)?(x=(b+w)/2,C=E=>E/2):["right","bottom"].includes(c)&&(x=w,C=E=>E),n(d.map(E=>({key:`position.${f}`,value:f1(x-C(E[p]),2),schemaId:E.id})))},s=c=>{const u=t.map(S=>S.id),d=r.filter(S=>u.includes(S.id)),h=c==="vertical",f=h?"y":"x",p=h?"height":"width",g=Math.min(...d.map(S=>S.position[f])),m=Math.max(...d.map(S=>S.position[f]+S[p]));if(d.length<3)return;const b=g,w=m-g,x=d.reduce((S,B)=>S+B[p],0),C=(w-x)/(d.length-1);let E=0;n(d.map((S,B)=>{E+=B===0?0:d[B-1][p]+C;const M=f1(b+E,2);return{key:`position.${f}`,value:M,schemaId:S.id}}))},l=[vA("left",qt.jsx("path",{d:"M4,22H2V2h2V22z M22,7H6v3h16V7z M16,14H6v3h10V14z"}),()=>a("left")),vA("center",qt.jsx("polygon",{points:"11,2 13,2 13,7 21,7 21,10 13,10 13,14 18,14 18,17 13,17 13,22 11,22 11,17 6,17 6,14 11,14 11,10 3,10 3,7 11,7"}),()=>a("center")),vA("right",qt.jsx("path",{d:"M20,2h2v20h-2V2z M2,10h16V7H2V10z M8,17h10v-3H8V17z"}),()=>a("right")),vA("top",qt.jsx("path",{d:"M22,2v2H2V2H22z M7,22h3V6H7V22z M14,16h3V6h-3V16z"}),()=>a("top")),vA("middle",qt.jsx("polygon",{points:"22,11 17,11 17,6 14,6 14,11 10,11 10,3 7,3 7,11 1.84,11 1.84,13 7,13 7,21 10,21 10,13 14,13 14,18 17,18 17,13 22,13"}),()=>a("middle")),vA("bottom",qt.jsx("path",{d:"M22,22H2v-2h20V22z M10,2H7v16h3V2z M17,8h-3v10h3V8z"}),()=>a("bottom")),vA("vertical",qt.jsx("path",{d:"M22,2v2H2V2H22z M7,10.5v3h10v-3H7z M2,20v2h20v-2H2z"}),()=>s("vertical")),vA("horizontal",qt.jsx("path",{d:"M4,22H2V2h2V22z M22,2h-2v20h2V2z M13.5,7h-3v10h3V7z"}),()=>s("horizontal"))];return qt.jsx(Mc.Item,{label:o.title,children:qt.jsx(to.Group,{children:l.map(c=>qt.jsx(to,{style:{padding:7},disabled:t.length<=2&&["vertical","horizontal"].includes(c.id),...c},c.id))})})},PTt=DTt,FTt=e=>{const{widget:t,...n}=e,r=v.useRef(null);return v.useEffect(()=>(r.current&&(r.current.innerHTML="",t({...n,rootElement:r.current})),()=>{r.current&&(r.current.innerHTML="")}),[e.activeSchema]),qt.jsx("div",{ref:r})},NTt=FTt,{Text:TTt}=yE,LTt=e=>{const{token:t}=au.useToken(),{size:n,changeSchemas:r,deselectSchema:i,activeSchema:o,activeElements:a}=e,s=R6e(),l=v.useContext(K1),c=v.useContext(xE),u=v.useContext(BU),[d,h]=v.useState({});v.useEffect(()=>{const x={AlignWidget:C=>qt.jsx(PTt,{...C,...e,options:u}),Divider:()=>qt.jsx(eA,{style:{marginTop:t.marginXS,marginBottom:t.marginXS}})};for(const C of Object.values(c)){const E=(C==null?void 0:C.propPanel.widgets)||{};Object.entries(E).forEach(([S,B])=>{x[S]=M=>qt.jsx(NTt,{...M,...e,options:u,theme:t,i18n:l,widget:B})})}h(x)},[o,a,c,JSON.stringify(u)]),v.useEffect(()=>{const x={...o};x.x=x.position.x,x.y=x.position.y,delete x.position,x.key!==(s.getValues()||{}).key&&s.resetFields(),s.setValues(x)},[s,o]);const f=x=>{const C=[];for(let E in x)if(!["id","data"].includes(E)&&x[E]!==o[E]){const S=x[E]||void 0;E==="x"&&(E="position.x"),E==="y"&&(E="position.y"),C.push({key:E,value:S,schemaId:o.id})}C.length&&r(C)},p=Object.values(c).find(x=>(x==null?void 0:x.propPanel.defaultSchema.type)===o.type),g=p==null?void 0:p.propPanel.schema;g||console.error(`[@pdfme/ui] No propPanel.schema for ${o.type}.
|
799
799
|
Check this document: https://pdfme.com/docs/custom-schemas`);const m=Object.entries(c).map(([x,C])=>({label:x,value:C==null?void 0:C.propPanel.defaultSchema.type})),b=p.propPanel.defaultSchema,w={type:"object",column:2,properties:{type:{title:l("type"),type:"string",widget:"select",props:{options:m},required:!0,span:10},key:{title:l("fieldName"),type:"string",required:!0,span:14},"-":{type:"void",widget:"Divider"},align:{title:l("align"),type:"void",widget:"AlignWidget"},x:{title:"X",type:"number",widget:"inputNumber",required:!0,span:8},y:{title:"Y",type:"number",widget:"inputNumber",required:!0,span:8},rotate:{title:l("rotate"),type:"number",widget:"inputNumber",disabled:(b==null?void 0:b.rotate)===void 0,max:360,min:0,span:8},width:{title:l("width"),type:"number",widget:"inputNumber",required:!0,span:8},height:{title:l("height"),type:"number",widget:"inputNumber",required:!0,span:8},opacity:{title:l("opacity"),type:"number",widget:"inputNumber",disabled:(b==null?void 0:b.opacity)===void 0,props:{step:.1},max:1,min:0,span:8}}};if(typeof g=="function"){const x=g({...e,options:u,theme:t,i18n:l})||{};w.properties={...w.properties,...Object.keys(x).length===0?{}:{"--":{type:"void",widget:"Divider"}},...x}}else{const x=g||{};w.properties={...w.properties,...Object.keys(x).length===0?{}:{"--":{type:"void",widget:"Divider"}},...x}}return qt.jsxs("div",{children:[qt.jsxs("div",{style:{height:40,display:"flex",alignItems:"center"},children:[qt.jsx(to,{style:{position:"absolute",zIndex:100,display:"flex",alignItems:"center",justifyContent:"center"},onClick:i,icon:qt.jsx(y5t,{})}),qt.jsx(TTt,{strong:!0,style:{textAlign:"center",width:"100%"},children:l("editField")})]}),qt.jsx(eA,{style:{marginTop:t.marginXS,marginBottom:t.marginXS}}),qt.jsx("div",{style:{height:Tae(n.height),overflowY:"auto",overflowX:"hidden",borderBottom:`1px solid ${t.colorSplit}`},children:qt.jsx(O6e,{form:s,schema:w,widgets:d,watch:{"#":f},locale:"en-US"})})]})},jTt=LTt,QTt=e=>{const{sidebarOpen:t,setSidebarOpen:n,activeElements:r,schemas:i,addSchema:o}=e,{token:a}=au.useToken(),s=v.useContext(K1),l=()=>i.filter(u=>r.map(d=>d.id).includes(u.id)),c=()=>{const u=l();return u[u.length-1]};return qt.jsx("div",{style:{position:"absolute",right:0,zIndex:1,height:"100%",width:t?Zx:0},children:qt.jsxs("div",{children:[qt.jsx(to,{style:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",top:"1rem",right:"1rem",zIndex:100},icon:t?qt.jsx(p5t,{}):qt.jsx(d5t,{}),onClick:()=>n(!t)}),qt.jsxs("div",{style:{width:Zx,height:"100%",display:t?"block":"none",top:0,right:0,position:"absolute",padding:"0.7rem 1rem",overflowY:"auto",fontFamily:"'Open Sans', sans-serif",boxSizing:"border-box",background:a.colorBgLayout},children:[qt.jsx("div",{children:l().length===0?qt.jsx(Oxt,{...e}):qt.jsx(jTt,{...e,activeSchema:c()})}),qt.jsx("div",{style:{position:"absolute",bottom:"1.5rem",marginTop:"1rem",left:"50%",transform:"translateX(-50%)"},children:qt.jsx(to,{type:"primary",style:{fontWeight:600},onClick:o,children:s("addNewField")})})]})]})})},zTt=QTt,WTt=e=>{const{paperRefs:t,scale:n,size:r,schemasList:i,pageSizes:o,backgrounds:a,renderPaper:s,renderSchema:l,hasRulers:c}=e,u=v.useContext(kU),d=c?rl:0;return o.length!==a.length||o.length!==i.length?null:qt.jsx("div",{style:{transform:`scale(${n})`,transformOrigin:"top left",height:n,width:n},children:a.map((h,f)=>{const p=o[f],g={width:p.width*Yc,height:p.height*Yc},m=g.width*n+d<r.width?`${(r.width/n-g.width)/2}px`:`${d}px`;let b=f>0?(d+Fne)*(f+1):d;return c||(b+=Fne*2),qt.jsxs("div",{id:`@pdfme/ui-paper${f}`,ref:w=>{w&&(t.current[f]=w)},onClick:w=>{w.currentTarget===w.target&&document&&document.hasFocus()&&document.activeElement instanceof HTMLElement&&document.activeElement.blur()},style:{fontFamily:`'${Xx(u)}'`,top:`${b}px`,left:m,position:"relative",backgroundImage:`url(${h})`,backgroundSize:`${g.width}px ${g.height}px`,...g},children:[s&&s({paperSize:g,index:f}),i[f].map((w,x)=>qt.jsx("div",{children:l({schema:w,index:f===0?x:x+i[f-1].length})},w.id))]},f+JSON.stringify(g))})})},D6e=WTt,HTt=({children:e,outline:t,onChangeHoveringSchemaId:n,schema:r})=>qt.jsx("div",{title:r.key,onMouseEnter:()=>n&&n(r.id),onMouseLeave:()=>n&&n(null),className:Pne,id:r.id,style:{position:"absolute",cursor:"pointer",height:r.height*Yc,width:r.width*Yc,top:r.position.y*Yc,left:r.position.x*Yc,transform:`rotate(${r.rotate??0}deg)`,outline:t},children:e}),_Tt=e=>{const t=v.useContext(xE),n=v.useContext(BU),r=v.useContext(K1),{token:i}=au.useToken(),{schema:o,mode:a,onChange:s,stopEditing:l,tabIndex:c,placeholder:u,scale:d}=e,h=v.useRef(null);return v.useEffect(()=>{var f;if(h.current&&o.type){const p=(f=Object.values(t).find(m=>(m==null?void 0:m.propPanel.defaultSchema.type)===o.type))==null?void 0:f.ui;if(!p){console.error(`[@pdfme/ui] Renderer for type ${o.type} not found.
|
800
|
-
Check this document: https://pdfme.com/docs/custom-schemas`);return}h.current.innerHTML="";const g=a==="form"||a==="designer";p({value:o.data,schema:o,rootElement:h.current,mode:a,onChange:g?s:void 0,stopEditing:g?l:void 0,tabIndex:c,placeholder:u,options:n,theme:i,i18n:r})}return()=>{h.current&&(h.current.innerHTML="")}},[JSON.stringify(o),JSON.stringify(n),a,d]),qt.jsx(HTt,{...e,children:qt.jsx("div",{style:{height:"100%",width:"100%"},ref:h})})},P6e=_Tt;var GTt="function",YTt="object",UTt="string",F6e="undefined",VTt=typeof document!==F6e&&document,KTt=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],oc=1e-7,JP={cm:function(e){return e*96/2.54},mm:function(e){return e*96/254},in:function(e){return e*96},pt:function(e){return e*96/72},pc:function(e){return e*96/6},"%":function(e,t){return e*t/100},vw:function(e,t){return t===void 0&&(t=window.innerWidth),e/100*t},vh:function(e,t){return t===void 0&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return t===void 0&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return t===void 0&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function qTt(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function XTt(e,t,n,r){return(e*r+t*n)/(n+r)}function eF(e){return typeof e===F6e}function Vf(e){return e&&typeof e===YTt}function bA(e){return Array.isArray(e)}function cp(e){return typeof e===UTt}function tF(e){return typeof e===GTt}function $Tt(e,t){var n=e===""||e==" ",r=t===""||t==" ";return r&&n||e===t}function N6e(e,t,n,r,i){var o=RX(e,t,n);return o?n:ZTt(e,t,n+1,r,i)}function RX(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function ZTt(e,t,n,r,i){for(var o=function(c){var u=t[c].trim();if(u===e.close&&!RX(e,t,c))return{value:c};var d=c,h=BC(i,function(f){var p=f.open;return p===u});if(h&&(d=N6e(h,t,c,r,i)),d===-1)return a=c,"break";c=d,a=c},a,s=n;s<r;++s){var l=o(s);if(s=a,typeof l=="object")return l.value;if(l==="break")break}return-1}function OX(e,t){var n=cp(t)?{separator:t}:t,r=n.separator,i=r===void 0?",":r,o=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,l=s===void 0?a:s,c=n.openCloseCharacters,u=c===void 0?KTt:c,d=u.map(function(B){var M=B.open,O=B.close;return M===O?M:M+"|"+O}).join("|"),h="(\\s*"+i+"\\s*|"+d+"|\\s+)",f=new RegExp(h,"g"),p=e.split(f).filter(function(B){return B&&B!=="undefined"}),g=p.length,m=[],b=[];function w(){return b.length?(m.push(b.join("")),b=[],!0):!1}for(var x=function(B){var M=p[B].trim(),O=B,D=BC(u,function(z){var H=z.open;return H===M}),P=BC(u,function(z){var H=z.close;return H===M});if(D){if(O=N6e(D,p,B,g,u),O!==-1&&l)return w()&&o||(m.push(p.slice(B,O+1).join("")),B=O,o)?(C=B,"break"):(C=B,"continue")}else if(P&&!RX(P,p,B)){var j=qTt(u);return j.splice(u.indexOf(P),1),{value:OX(e,{separator:i,isSeparateFirst:o,isSeparateOnlyOpenClose:a,isSeparateOpenClose:l,openCloseCharacters:j})}}else if($Tt(M,i)&&!a)return w(),o?(C=B,"break"):(C=B,"continue");O===-1&&(O=g-1),b.push(p.slice(B,O+1).join("")),B=O,C=B},C,E=0;E<g;++E){var S=x(E);if(E=C,typeof S=="object")return S.value;if(S==="break")break}return b.length&&m.push(b.join("")),m}function yA(e){return OX(e,"")}function d2(e){return OX(e,",")}function DX(e){var t=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(e);return!t||t.length<4?{}:{prefix:t[1],value:t[2],suffix:t[3]}}function D5(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],r=t[2],i=t[3];return{prefix:n,unit:i,value:parseFloat(r)}}function PX(e){return e.replace(/[\s-_]+([^\s-_])/g,function(t,n){return n.toUpperCase()})}function FX(){return Date.now?Date.now():new Date().getTime()}function wA(e,t,n){n===void 0&&(n=-1);for(var r=e.length,i=0;i<r;++i)if(t(e[i],i,e))return i;return n}function BC(e,t,n){var r=wA(e,t);return r>-1?e[r]:n}function T6e(e){return Object.keys(e)}function bs(e,t){var n=D5(e),r=n.value,i=n.unit;if(Vf(t)){var o=t[i];if(o){if(tF(o))return o(r);if(JP[i])return JP[i](r,o)}}else if(i==="%")return r*t/100;return JP[i]?JP[i](r):r}function L6e(e,t,n){return Math.max(t,Math.min(e,n))}function j6e(e,t,n,r){return r===void 0&&(r=e[0]/e[1]),[[io(t[0],oc),io(t[0]/r,oc)],[io(t[1]*r,oc),io(t[1],oc)]].filter(function(i){return i.every(function(o,a){var s=t[a],l=io(s,oc);return n?o<=s||o<=l:o>=s||o>=l})})[0]||e}function Q6e(e,t,n,r){if(!r)return e.map(function(f,p){return L6e(f,t[p],n[p])});var i=e[0],o=e[1],a=r===!0?i/o:r,s=j6e(e,t,!1,a),l=s[0],c=s[1],u=j6e(e,n,!0,a),d=u[0],h=u[1];return i<l||o<c?(i=l,o=c):(i>d||o>h)&&(i=d,o=h),[i,o]}function JTt(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return n}function MC(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function Ha(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=Math.atan2(r,n);return i>=0?i:i+Math.PI*2}function eLt(e){return[0,1].map(function(t){return MC(e.map(function(n){return n[t]}))})}function NX(e){var t=eLt(e),n=Ha(t,e[0]),r=Ha(t,e[1]);return n<r&&r-n<Math.PI||n>r&&r-n<-Math.PI?1:-1}function up(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function io(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function z6e(e,t){return e.forEach(function(n,r){e[r]=io(e[r],t)}),e}function Qd(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function TX(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function W6e(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function Rs(e,t,n,r){e.addEventListener(t,n,r)}function as(e,t,n,r){e.removeEventListener(t,n,r)}function tg(e){return(e==null?void 0:e.ownerDocument)||VTt}function h2(e){var t;return((t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}function tLt(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function H6e(e){return Vf(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}var LX=function(){return LX=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},LX.apply(this,arguments)};function nLt(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var rLt=function(){function e(){this._events={}}var t=e.prototype;return t.on=function(n,r){if(Vf(n))for(var i in n)this.on(i,n[i]);else this._addEvent(n,r,{});return this},t.off=function(n,r){if(!n)this._events={};else if(Vf(n))for(var i in n)this.off(i);else if(!r)this._events[n]=[];else{var o=this._events[n];if(o){var a=wA(o,function(s){return s.listener===r});a>-1&&o.splice(a,1)}}return this},t.once=function(n,r){var i=this;return r&&this._addEvent(n,r,{once:!0}),new Promise(function(o){i._addEvent(n,o,{once:!0})})},t.emit=function(n,r){var i=this;r===void 0&&(r={});var o=this._events[n];if(!n||!o)return!0;var a=!1;return r.eventType=n,r.stop=function(){a=!0},r.currentTarget=this,nLt(o).forEach(function(s){s.listener(r),s.once&&i.off(n,s.listener)}),!a},t.trigger=function(n,r){return r===void 0&&(r={}),this.emit(n,r)},t._addEvent=function(n,r,i){var o=this._events;o[n]=o[n]||[];var a=o[n];a.push(LX({listener:r},i))},e}();const nF=rLt;var jX=function(e,t){return jX=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},jX(e,t)};function iLt(e,t){jX(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ks=function(){return Ks=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ks.apply(this,arguments)};function oLt(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=Math.atan2(r,n);return i>=0?i:i+Math.PI*2}function QX(e){return oLt([e[0].clientX,e[0].clientY],[e[1].clientX,e[1].clientY])/Math.PI*180}function aLt(e){return e.touches&&e.touches.length>=2}function rF(e){return e?e.touches?lLt(e.touches):[G6e(e)]:[]}function sLt(e){return e&&(e.type.indexOf("mouse")>-1||"button"in e)}function _6e(e,t,n){var r=n.length,i=IC(e,r),o=i.clientX,a=i.clientY,s=i.originalClientX,l=i.originalClientY,c=IC(t,r),u=c.clientX,d=c.clientY,h=IC(n,r),f=h.clientX,p=h.clientY,g=o-u,m=a-d,b=o-f,w=a-p;return{clientX:s,clientY:l,deltaX:g,deltaY:m,distX:b,distY:w}}function zX(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function lLt(e){for(var t=Math.min(e.length,2),n=[],r=0;r<t;++r)n.push(G6e(e[r]));return n}function G6e(e){return{clientX:e.clientX,clientY:e.clientY}}function IC(e,t){t===void 0&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,t),i=0;i<r;++i){var o=e[i];n.originalClientX+="originalClientX"in o?o.originalClientX:o.clientX,n.originalClientY+="originalClientY"in o?o.originalClientY:o.clientY,n.clientX+=o.clientX,n.clientY+=o.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var WX=function(){function e(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return e.prototype.getAngle=function(t){return t===void 0&&(t=this.prevClients),QX(t)},e.prototype.getRotation=function(t){return t===void 0&&(t=this.prevClients),QX(t)-QX(this.startClients)},e.prototype.getPosition=function(t,n){t===void 0&&(t=this.prevClients);var r=_6e(t||this.prevClients,this.prevClients,this.startClients),i=r.deltaX,o=r.deltaY;return this.movement+=Math.sqrt(i*i+o*o),this.prevClients=t,r},e.prototype.getPositions=function(t){t===void 0&&(t=this.prevClients);for(var n=this.prevClients,r=this.startClients,i=Math.min(this.length,n.length),o=[],a=0;a<i;++a)o[a]=_6e([t[a]],[n[a]],[r[a]]);return o},e.prototype.getMovement=function(t){var n=this.movement;if(!t)return n;var r=IC(t,this.length),i=IC(this.prevClients,this.length),o=r.clientX-i.clientX,a=r.clientY-i.clientY;return Math.sqrt(o*o+a*a)+n},e.prototype.getDistance=function(t){return t===void 0&&(t=this.prevClients),zX(t)},e.prototype.getScale=function(t){return t===void 0&&(t=this.prevClients),zX(t)/zX(this.startClients)},e.prototype.move=function(t,n){this.startClients.forEach(function(r){r.clientX-=t,r.clientY-=n}),this.prevClients.forEach(function(r){r.clientX-=t,r.clientY-=n})},e}(),Y6e=["textarea","input"],HX=function(e){iLt(t,e);function t(n,r){r===void 0&&(r={});var i=e.call(this)||this;i.options={},i.flag=!1,i.pinchFlag=!1,i.data={},i.isDrag=!1,i.isPinch=!1,i.clientStores=[],i.targets=[],i.prevTime=0,i.doubleFlag=!1,i._useMouse=!1,i._useTouch=!1,i._useDrag=!1,i._dragFlag=!1,i._isTrusted=!1,i._isMouseEvent=!1,i._isSecondaryButton=!1,i._preventMouseEvent=!1,i._prevInputEvent=null,i._isDragAPI=!1,i._isIdle=!0,i._window=window,i.onDragStart=function(h,f){if(f===void 0&&(f=!0),!(!i.flag&&h.cancelable===!1)){var p=h.type.indexOf("drag")>=-1;if(!(i.flag&&p)){i._isDragAPI=!0;var g=i.options,m=g.container,b=g.pinchOutside,w=g.preventWheelClick,x=g.preventRightClick,C=g.preventDefault,E=g.checkInput,S=g.dragFocusedInput,B=g.preventClickEventOnDragStart,M=g.preventClickEventOnDrag,O=g.preventClickEventByCondition,D=i._useTouch,P=!i.flag;if(i._isSecondaryButton=h.which===3||h.button===2,w&&(h.which===2||h.button===1)||x&&(h.which===3||h.button===2))return i.stop(),!1;if(P){var j=i._window.document.activeElement,z=h.target;if(z){var H=z.tagName.toLowerCase(),Q=Y6e.indexOf(H)>-1,F=z.isContentEditable;if(Q||F){if(E||!S&&j===z)return!1;if(j&&(j===z||F&&j.isContentEditable&&j.contains(z)))if(S)z.blur();else return!1}else if((C||h.type==="touchstart")&&j){var N=j.tagName.toLowerCase();(j.isContentEditable||Y6e.indexOf(N)>-1)&&j.blur()}(B||M||O)&&Rs(i._window,"click",i._onClick,!0)}i.clientStores=[new WX(rF(h))],i._isIdle=!1,i.flag=!0,i.isDrag=!1,i._isTrusted=f,i._dragFlag=!0,i._prevInputEvent=h,i.data={},i.doubleFlag=FX()-i.prevTime<200,i._isMouseEvent=sLt(h),!i._isMouseEvent&&i._preventMouseEvent&&(i._preventMouseEvent=!1);var W=i._preventMouseEvent||i.emit("dragStart",Ks(Ks({data:i.data,datas:i.data,inputEvent:h,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,isTrusted:f,isDouble:i.doubleFlag},i.getCurrentStore().getPosition()),{preventDefault:function(){h.preventDefault()},preventDrag:function(){i._dragFlag=!1}}));W===!1&&i.stop(),i._isMouseEvent&&i.flag&&C&&h.preventDefault()}if(!i.flag)return!1;var X=0;if(P?(i._attchDragEvent(),D&&b&&(X=setTimeout(function(){Rs(m,"touchstart",i.onDragStart,{passive:!1})}))):D&&b&&as(m,"touchstart",i.onDragStart),i.flag&&aLt(h)){if(clearTimeout(X),P&&h.touches.length!==h.changedTouches.length)return;i.pinchFlag||i.onPinchStart(h)}}}},i.onDrag=function(h,f){if(i.flag){var p=i.options.preventDefault;!i._isMouseEvent&&p&&h.preventDefault(),i._prevInputEvent=h;var g=rF(h),m=i.moveClients(g,h,!1);if(i._dragFlag){if(i.pinchFlag||m.deltaX||m.deltaY){var b=i._preventMouseEvent||i.emit("drag",Ks(Ks({},m),{isScroll:!!f,inputEvent:h}));if(b===!1){i.stop();return}}i.pinchFlag&&i.onPinch(h,g)}i.getCurrentStore().getPosition(g,!0)}},i.onDragEnd=function(h){if(i.flag){var f=i.options,p=f.pinchOutside,g=f.container,m=f.preventClickEventOnDrag,b=f.preventClickEventOnDragStart,w=f.preventClickEventByCondition,x=i.isDrag;(m||b||w)&&requestAnimationFrame(function(){i._allowClickEvent()}),!w&&!b&&m&&!x&&i._allowClickEvent(),i._useTouch&&p&&as(g,"touchstart",i.onDragStart),i.pinchFlag&&i.onPinchEnd(h);var C=h!=null&&h.touches?rF(h):[],E=C.length;E===0||!i.options.keepDragging?i.flag=!1:i._addStore(new WX(C));var S=i._getPosition(),B=FX(),M=!x&&i.doubleFlag;i._prevInputEvent=null,i.prevTime=x||M?0:B,i.flag||(i._dettachDragEvent(),i._preventMouseEvent||i.emit("dragEnd",Ks({data:i.data,datas:i.data,isDouble:M,isDrag:x,isClick:!x,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,inputEvent:h,isTrusted:i._isTrusted},S)),i.clientStores=[],i._isMouseEvent||(i._preventMouseEvent=!0,requestAnimationFrame(function(){requestAnimationFrame(function(){i._preventMouseEvent=!1})})),i._isIdle=!0)}},i.onBlur=function(){i.onDragEnd()},i._allowClickEvent=function(){as(i._window,"click",i._onClick,!0)},i._onClick=function(h){i._allowClickEvent(),i._preventMouseEvent=!1;var f=i.options.preventClickEventByCondition;f!=null&&f(h)||(h.stopPropagation(),h.preventDefault())},i._onContextMenu=function(h){var f=i.options;f.preventRightClick?i.onDragEnd(h):h.preventDefault()},i._passCallback=function(){};var o=[].concat(n),a=o[0];i._window=tLt(a)?a:h2(a),i.options=Ks({checkInput:!1,container:a&&!("document"in a)?h2(a):a,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var s=i.options,l=s.container,c=s.events,u=s.checkWindowBlur;if(i._useDrag=c.indexOf("drag")>-1,i._useTouch=c.indexOf("touch")>-1,i._useMouse=c.indexOf("mouse")>-1,i.targets=o,i._useDrag&&o.forEach(function(h){Rs(h,"dragstart",i.onDragStart)}),i._useMouse&&(o.forEach(function(h){Rs(h,"mousedown",i.onDragStart),Rs(h,"mousemove",i._passCallback)}),Rs(l,"contextmenu",i._onContextMenu)),u&&Rs(h2(),"blur",i.onBlur),i._useTouch){var d={passive:!1};o.forEach(function(h){Rs(h,"touchstart",i.onDragStart,d),Rs(h,"touchmove",i._passCallback,d)})}return i}return t.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},t.prototype.getMovement=function(n){return this.getCurrentStore().getMovement(n)+this.clientStores.slice(1).reduce(function(r,i){return r+i.movement},0)},t.prototype.isDragging=function(){return this.isDrag},t.prototype.isIdle=function(){return this._isIdle},t.prototype.isFlag=function(){return this.flag},t.prototype.isPinchFlag=function(){return this.pinchFlag},t.prototype.isDoubleFlag=function(){return this.doubleFlag},t.prototype.isPinching=function(){return this.isPinch},t.prototype.scrollBy=function(n,r,i,o){o===void 0&&(o=!0),this.flag&&(this.clientStores[0].move(n,r),o&&this.onDrag(i,!0))},t.prototype.move=function(n,r){var i=n[0],o=n[1],a=this.getCurrentStore(),s=a.prevClients;return this.moveClients(s.map(function(l){var c=l.clientX,u=l.clientY;return{clientX:c+i,clientY:u+o,originalClientX:c,originalClientY:u}}),r,!0)},t.prototype.triggerDragStart=function(n){this.onDragStart(n,!1)},t.prototype.setEventData=function(n){var r=this.data;for(var i in n)r[i]=n[i];return this},t.prototype.setEventDatas=function(n){return this.setEventData(n)},t.prototype.getCurrentEvent=function(n){return n===void 0&&(n=this._prevInputEvent),Ks(Ks({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:n})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var n=this,r=this.targets,i=this.options.container;this.off(),as(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(o){as(o,"dragstart",n.onDragStart)}),this._useMouse&&(r.forEach(function(o){as(o,"mousedown",n.onDragStart)}),as(i,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(o){as(o,"touchstart",n.onDragStart)}),as(i,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(n){var r=this,i=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>i)){var o=new WX(rF(n));this.pinchFlag=!0,this._addStore(o);var a=this.emit("pinchStart",Ks(Ks({data:this.data,datas:this.data,angle:o.getAngle(),touches:this.getCurrentStore().getPositions()},o.getPosition()),{inputEvent:n,isTrusted:this._isTrusted,preventDefault:function(){n.preventDefault()},preventDrag:function(){r._dragFlag=!1}}));a===!1&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(n,r){if(!(!this.flag||!this.pinchFlag||r.length<2)){var i=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",Ks(Ks({data:this.data,datas:this.data,movement:this.getMovement(r),angle:i.getAngle(r),rotation:i.getRotation(r),touches:i.getPositions(r),scale:i.getScale(r),distance:i.getDistance(r)},i.getPosition(r)),{inputEvent:n,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(n){if(this.pinchFlag){var r=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var i=this.getCurrentStore();this.emit("pinchEnd",Ks(Ks({data:this.data,datas:this.data,isPinch:r,touches:i.getPositions()},i.getPosition()),{inputEvent:n}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(n,r,i){var o=this._getPosition(n,i),a=this.isDrag;(o.deltaX||o.deltaY)&&(this.isDrag=!0);var s=!1;return!a&&this.isDrag&&(s=!0),Ks(Ks({data:this.data,datas:this.data},o),{movement:this.getMovement(n),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:r,isTrusted:this._isTrusted,isFirstDrag:s})},t.prototype._addStore=function(n){this.clientStores.splice(0,0,n)},t.prototype._getPosition=function(n,r){var i=this.getCurrentStore(),o=i.getPosition(n,r),a=this.clientStores.slice(1).reduce(function(c,u){var d=u.getPosition();return c.distX+=d.distX,c.distY+=d.distY,c},o),s=a.distX,l=a.distY;return Ks(Ks({},o),{distX:s,distY:l})},t.prototype._attchDragEvent=function(){var n=this._window,r=this.options.container,i={passive:!1};this._isDragAPI&&(Rs(r,"dragover",this.onDrag,i),Rs(n,"dragend",this.onDragEnd)),this._useMouse&&(Rs(r,"mousemove",this.onDrag),Rs(n,"mouseup",this.onDragEnd)),this._useTouch&&(Rs(r,"touchmove",this.onDrag,i),Rs(n,"touchend",this.onDragEnd,i),Rs(n,"touchcancel",this.onDragEnd,i))},t.prototype._dettachDragEvent=function(){var n=this._window,r=this.options.container;this._isDragAPI&&(as(r,"dragover",this.onDrag),as(n,"dragend",this.onDragEnd)),this._useMouse&&(as(r,"mousemove",this.onDrag),as(n,"mouseup",this.onDragEnd)),this._useTouch&&(as(r,"touchstart",this.onDragStart),as(r,"touchmove",this.onDrag),as(n,"touchend",this.onDragEnd),as(n,"touchcancel",this.onDragEnd))},t}(nF);function U6e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map(function(r){return r.split(" ").map(function(i){return i?""+e+i:""}).join(" ")}).join(" ")}function V6e(e,t){return t.replace(/([^}{]*){/gm,function(n,r){return r.replace(/\.([^{,\s\d.]+)/g,"."+e+"$1")+"{"})}function Fc(e,t){return function(n){n&&(e[t]=n)}}function _X(e,t,n){return function(r){r&&(e[t][n]=r)}}function cLt(e,t){return function(n){var r=n.prototype;e.forEach(function(i){t(r,i)})}}function K6e(e,t){return t===void 0&&(t={}),function(n,r){e.forEach(function(i){var o=t[i]||i;o in n||(n[o]=function(){for(var a,s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];var c=(a=this[r])[i].apply(a,s);return c===this[r]?this:c})})}}var uLt=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(n){return this.values[this.keys.indexOf(n)]},t.set=function(n,r){var i=this.keys,o=this.values,a=i.indexOf(n),s=a===-1?i.length:a;i[s]=n,o[s]=r},e}(),dLt=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(n){return this.object[n]},t.set=function(n,r){this.object[n]=r},e}(),hLt=typeof Map=="function",fLt=function(){function e(){}var t=e.prototype;return t.connect=function(n,r){this.prev=n,this.next=r,n&&(n.next=this),r&&(r.prev=this)},t.disconnect=function(){var n=this.prev,r=this.next;n&&(n.next=r),r&&(r.prev=n)},t.getIndex=function(){for(var n=this,r=-1;n;)n=n.prev,++r;return r},e}();function pLt(e,t){var n=[],r=[];return e.forEach(function(i){var o=i[0],a=i[1],s=new fLt;n[o]=s,r[a]=s}),n.forEach(function(i,o){i.connect(n[o-1])}),e.filter(function(i,o){return!t[o]}).map(function(i,o){var a=i[0],s=i[1];if(a===s)return[0,0];var l=n[a],c=r[s-1],u=l.getIndex();l.disconnect(),c?l.connect(c,c.next):l.connect(void 0,n[0]);var d=l.getIndex();return[u,d]})}var gLt=function(){function e(n,r,i,o,a,s,l,c){this.prevList=n,this.list=r,this.added=i,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=l,this.fixed=c}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var n=pLt(this.changedBeforeAdded,this.fixed),r=this.changed,i=[];this.cacheOrdered=n.filter(function(o,a){var s=o[0],l=o[1],c=r[a],u=c[0],d=c[1];if(s!==l)return i.push([u,d]),!0}),this.cachePureChanged=i},e}();function q6e(e,t,n){var r=hLt?Map:n?dLt:uLt,i=n||function(w){return w},o=[],a=[],s=[],l=e.map(i),c=t.map(i),u=new r,d=new r,h=[],f=[],p={},g=[],m=0,b=0;return l.forEach(function(w,x){u.set(w,x)}),c.forEach(function(w,x){d.set(w,x)}),l.forEach(function(w,x){var C=d.get(w);typeof C>"u"?(++b,a.push(x)):p[C]=b}),c.forEach(function(w,x){var C=u.get(w);typeof C>"u"?(o.push(x),++m):(s.push([C,x]),b=p[x]||0,h.push([C-b,x-m]),f.push(x===C),C!==x&&g.push([C,x]))}),a.reverse(),new gLt(e,t,o,a,g,s,h,f)}var mLt=function(){function e(n,r){n===void 0&&(n=[]),this.findKeyCallback=r,this.list=[].slice.call(n)}var t=e.prototype;return t.update=function(n){var r=[].slice.call(n),i=q6e(this.list,r,this.findKeyCallback);return this.list=r,i},e}(),GX=function(e,t){return GX=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},GX(e,t)};function ALt(e,t){GX(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var X6e=typeof Map=="function"?void 0:function(){var e=0;return function(t){return t.__DIFF_KEY__||(t.__DIFF_KEY__=++e)}}(),vLt=function(e){ALt(t,e);function t(n){return n===void 0&&(n=[]),e.call(this,n,X6e)||this}return t}(mLt);function P5(e,t){return q6e(e,t,X6e)}const bLt=vLt;var YX=function(e,t){return YX=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},YX(e,t)};function yLt(e,t){YX(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var F5=function(){return F5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},F5.apply(this,arguments)};function wLt(e){var t=e.container;return t===document.body?[t.scrollLeft||document.documentElement.scrollLeft,t.scrollTop||document.documentElement.scrollTop]:[t.scrollLeft,t.scrollTop]}function $6e(e,t){return e.addEventListener("scroll",t),function(){e.removeEventListener("scroll",t)}}function iF(e){if(e){if(cp(e))return document.querySelector(e)}else return null;if(tF(e))return e();if(e instanceof Element)return e;if("current"in e)return e.current;if("value"in e)return e.value}var xLt=function(e){yLt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._startRect=null,r._startPos=[],r._prevTime=0,r._timer=0,r._prevScrollPos=[0,0],r._isWait=!1,r._flag=!1,r._currentOptions=null,r._lock=!1,r._unregister=null,r._onScroll=function(){var i=r._currentOptions;r._lock||!i||r.emit("scrollDrag",{next:function(o){r.checkScroll({container:i.container,inputEvent:o})}})},r}var n=t.prototype;return n.dragStart=function(r,i){var o=iF(i.container);if(!o){this._flag=!1;return}var a=0,s=0,l=0,c=0;if(o===document.body)l=window.innerWidth,c=window.innerHeight;else{var u=o.getBoundingClientRect();a=u.top,s=u.left,l=u.width,c=u.height}this._flag=!0,this._startPos=[r.clientX,r.clientY],this._startRect={top:a,left:s,width:l,height:c},this._prevScrollPos=this._getScrollPosition([0,0],i),this._currentOptions=i,this._registerScrollEvent(i)},n.drag=function(r,i){if(clearTimeout(this._timer),!!this._flag){var o=r.clientX,a=r.clientY,s=i.threshold,l=s===void 0?0:s,c=this,u=c._startRect,d=c._startPos;this._currentOptions=i;var h=[0,0];return u.top>a-l?(d[1]>u.top||a<d[1])&&(h[1]=-1):u.top+u.height<a+l&&(d[1]<u.top+u.height||a>d[1])&&(h[1]=1),u.left>o-l?(d[0]>u.left||o<d[0])&&(h[0]=-1):u.left+u.width<o+l&&(d[0]<u.left+u.width||o>d[0])&&(h[0]=1),!h[0]&&!h[1]?!1:this._continueDrag(F5(F5({},i),{direction:h,inputEvent:r,isDrag:!0}))}},n.checkScroll=function(r){var i=this;if(this._isWait)return!1;var o=r.prevScrollPos,a=o===void 0?this._prevScrollPos:o,s=r.direction,l=r.throttleTime,c=l===void 0?0:l,u=r.inputEvent,d=r.isDrag,h=this._getScrollPosition(s||[0,0],r),f=h[0]-a[0],p=h[1]-a[1],g=s||[f?Math.abs(f)/f:0,p?Math.abs(p)/p:0];return this._prevScrollPos=h,this._lock=!1,!f&&!p?!1:(this.emit("move",{offsetX:g[0]?f:0,offsetY:g[1]?p:0,inputEvent:u}),c&&d&&(clearTimeout(this._timer),this._timer=window.setTimeout(function(){i._continueDrag(r)},c)),!0)},n.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},n._getScrollPosition=function(r,i){var o=i.container,a=i.getScrollPosition,s=a===void 0?wLt:a;return s({container:iF(o),direction:r})},n._continueDrag=function(r){var i=this,o,a=r.container,s=r.direction,l=r.throttleTime,c=r.useScroll,u=r.isDrag,d=r.inputEvent;if(!(!this._flag||u&&this._isWait)){var h=FX(),f=Math.max(l+this._prevTime-h,0);if(f>0)return clearTimeout(this._timer),this._timer=window.setTimeout(function(){i._continueDrag(r)},f),!1;this._prevTime=h;var p=this._getScrollPosition(s,r);this._prevScrollPos=p,u&&(this._isWait=!0),c||(this._lock=!0);var g={container:iF(a),direction:s,inputEvent:d};return(o=r.requestScroll)===null||o===void 0||o.call(r,g),this.emit("scroll",g),this._isWait=!1,c||this.checkScroll(F5(F5({},r),{prevScrollPos:p,direction:s,inputEvent:d}))}},n._registerScrollEvent=function(r){this._unregisterScrollEvent();var i=r.checkScrollEvent;if(i){var o=i===!0?$6e:i,a=iF(r.container);i===!0&&(a===document.body||a===document.documentElement)?this._unregister=$6e(window,this._onScroll):this._unregister=o(a,this._onScroll)}},n._unregisterScrollEvent=function(){var r;(r=this._unregister)===null||r===void 0||r.call(this),this._unregister=null},t}(nF);const Z6e=xLt;var UX=function(e,t){return UX=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},UX(e,t)};function ELt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");UX(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function CLt(e,t){return t={exports:{}},e(t,t.exports),t.exports}var RC=CLt(function(e,t){function n(l){if(l&&typeof l=="object"){var c=l.which||l.keyCode||l.charCode;c&&(l=c)}if(typeof l=="number")return a[l];var u=String(l),d=r[u.toLowerCase()];if(d)return d;var d=i[u.toLowerCase()];if(d)return d;if(u.length===1)return u.charCodeAt(0)}n.isEventKey=function(l,c){if(l&&typeof l=="object"){var u=l.which||l.keyCode||l.charCode;if(u==null)return!1;if(typeof c=="string"){var d=r[c.toLowerCase()];if(d)return d===u;var d=i[c.toLowerCase()];if(d)return d===u}else if(typeof c=="number")return c===u;return!1}},t=e.exports=n;var r=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"\u21E7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(o=97;o<123;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)r[o-48]=o;for(o=1;o<13;o++)r["f"+o]=o+111;for(o=0;o<10;o++)r["numpad "+o]=o+96;var a=t.names=t.title={};for(o in r)a[r[o]]=o;for(var s in i)r[s]=i[s]});RC.code,RC.codes,RC.aliases;var SLt=RC.names;RC.title;var J6e={"+":"plus","left command":"meta","right command":"meta"},eEe={shift:1,ctrl:2,alt:3,meta:4};function tEe(e,t){var n=(SLt[e]||t||"").toLowerCase();for(var r in J6e)n=n.replace(r,J6e[r]);return n.replace(/\s/g,"")}function nEe(e,t){t===void 0&&(t=tEe(e.keyCode,e.key));var n=kLt(e);return n.indexOf(t)===-1&&n.push(t),n.filter(Boolean)}function kLt(e){var t=[e.shiftKey&&"shift",e.ctrlKey&&"ctrl",e.altKey&&"alt",e.metaKey&&"meta"];return t.filter(Boolean)}function rEe(e){var t=e.slice();return t.sort(function(n,r){var i=eEe[n]||5,o=eEe[r]||5;return i-o}),t}var iEe,BLt=function(e){ELt(t,e);function t(r){r===void 0&&(r=window);var i=e.call(this)||this;return i.container=r,i.ctrlKey=!1,i.altKey=!1,i.shiftKey=!1,i.metaKey=!1,i.clear=function(){return i.ctrlKey=!1,i.altKey=!1,i.shiftKey=!1,i.metaKey=!1,i},i.keydownEvent=function(o){i.triggerEvent("keydown",o)},i.keyupEvent=function(o){i.triggerEvent("keyup",o)},i.blur=function(){i.clear(),i.trigger("blur")},Rs(r,"blur",i.blur),Rs(r,"keydown",i.keydownEvent),Rs(r,"keyup",i.keyupEvent),i}var n=t.prototype;return Object.defineProperty(t,"global",{get:function(){return iEe||(iEe=new t)},enumerable:!1,configurable:!0}),t.setGlobal=function(){return this.global},n.destroy=function(){var r=this.container;this.clear(),this.off(),as(r,"blur",this.blur),as(r,"keydown",this.keydownEvent),as(r,"keyup",this.keyupEvent)},n.keydown=function(r,i){return this.addEvent("keydown",r,i)},n.offKeydown=function(r,i){return this.removeEvent("keydown",r,i)},n.offKeyup=function(r,i){return this.removeEvent("keyup",r,i)},n.keyup=function(r,i){return this.addEvent("keyup",r,i)},n.addEvent=function(r,i,o){return bA(i)?this.on("".concat(r,".").concat(rEe(i).join(".")),o):cp(i)?this.on("".concat(r,".").concat(i),o):this.on(r,i),this},n.removeEvent=function(r,i,o){return bA(i)?this.off("".concat(r,".").concat(rEe(i).join(".")),o):cp(i)?this.off("".concat(r,".").concat(i),o):this.off(r,i),this},n.triggerEvent=function(r,i){this.ctrlKey=i.ctrlKey,this.shiftKey=i.shiftKey,this.altKey=i.altKey,this.metaKey=i.metaKey;var o=tEe(i.keyCode,i.key),a=o==="ctrl"||o==="shift"||o==="meta"||o==="alt",s={key:o,isToggle:a,inputEvent:i,keyCode:i.keyCode,ctrlKey:i.ctrlKey,altKey:i.altKey,shiftKey:i.shiftKey,metaKey:i.metaKey};this.trigger(r,s),this.trigger("".concat(r,".").concat(o),s);var l=nEe(i,o);l.length>1&&this.trigger("".concat(r,".").concat(l.join(".")),s)},t}(nF);const MLt=BLt;function ILt(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function Xu(e){return io(e,oc)}function RLt(e,t){return e.every(function(n,r){return Xu(n-t[r])===0})}function OLt(e,t){return!Xu(e[0]-t[0])&&!Xu(e[1]-t[1])}function OC(e){return e.length<3?0:Math.abs(JTt(e.map(function(t,n){var r=e[n+1]||e[0];return t[0]*r[1]-r[0]*t[1]})))/2}function VX(e,t){var n=t.width,r=t.height,i=t.left,o=t.top,a=oF(e),s=a.minX,l=a.minY,c=a.maxX,u=a.maxY,d=n/(c-s),h=r/(u-l);return e.map(function(f){return[i+(f[0]-s)*d,o+(f[1]-l)*h]})}function oF(e){var t=e.map(function(r){return r[0]}),n=e.map(function(r){return r[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function aF(e,t,n){var r=e[0],i=e[1],o=oF(t),a=o.minX,s=o.maxX,l=[[a,i],[s,i]],c=sF(l[0],l[1]),u=KX(t),d=[];if(u.forEach(function(p){var g=sF(p[0],p[1]),m=p[0];if(RLt(c,g))d.push({pos:e,line:p,type:"line"});else{var b=aEe(oEe(c,g),[l,p]);b.forEach(function(w){p.some(function(x){return OLt(x,w)})?d.push({pos:w,line:p,type:"point"}):Xu(m[1]-i)!==0&&d.push({pos:w,line:p,type:"intersection"})})}}),!n&&BC(d,function(p){return p[0]===r}))return!0;var h=0,f={};return d.forEach(function(p){var g=p.pos,m=p.type,b=p.line;if(!(g[0]>r))if(m==="intersection")++h;else{if(m==="line")return;if(m==="point"){var w=BC(b,function(E){return E[1]!==i}),x=f[g[0]],C=w[1]>i?1:-1;x?x!==C&&++h:f[g[0]]=C}}}),h%2===1}function sF(e,t){var n=e[0],r=e[1],i=t[0],o=t[1],a=i-n,s=o-r;Math.abs(a)<oc&&(a=0),Math.abs(s)<oc&&(s=0);var l=0,c=0,u=0;return a?s?(l=-s/a,c=1,u=-l*n-r):(c=1,u=-r):s&&(l=-1,u=n),[l,c,u]}function oEe(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],l=n===0&&o===0,c=r===0&&a===0,u=[];if(l&&c)return[];if(l){var d=-i/r,h=-s/a;return d!==h?[]:[[-1/0,d],[1/0,d]]}else if(c){var f=-i/n,p=-s/o;return f!==p?[]:[[f,-1/0],[f,1/0]]}else if(n===0){var g=-i/r,m=-(a*g+s)/o;u=[[m,g]]}else if(o===0){var g=-s/a,m=-(r*g+i)/n;u=[[m,g]]}else if(r===0){var m=-i/n,g=-(o*m+s)/a;u=[[m,g]]}else if(a===0){var m=-s/o,g=-(n*m+i)/r;u=[[m,g]]}else{var m=(r*s-a*i)/(a*n-r*o),g=-(n*m+i)/r;u=[[m,g]]}return u.map(function(b){return[b[0],b[1]]})}function aEe(e,t){var n=t.map(function(d){return[0,1].map(function(h){return[Math.min(d[0][h],d[1][h]),Math.max(d[0][h],d[1][h])]})}),r=[];if(e.length===2){var i=e[0],o=i[0],a=i[1];if(Xu(o-e[1][0])){if(!Xu(a-e[1][1])){var s=Math.max.apply(Math,n.map(function(d){return d[0][0]})),l=Math.min.apply(Math,n.map(function(d){return d[0][1]}));if(Xu(s-l)>0)return[];r=[[s,a],[l,a]]}}else{var c=Math.max.apply(Math,n.map(function(d){return d[1][0]})),u=Math.min.apply(Math,n.map(function(d){return d[1][1]}));if(Xu(c-u)>0)return[];r=[[o,c],[o,u]]}}return r.length||(r=e.filter(function(d){var h=d[0],f=d[1];return n.every(function(p){return 0<=Xu(h-p[0][0])&&0<=Xu(p[0][1]-h)&&0<=Xu(f-p[1][0])&&0<=Xu(p[1][1]-f)})})),r.map(function(d){return[Xu(d[0]),Xu(d[1])]})}function KX(e){return ILt(e.slice(1),[e[0]]).map(function(t,n){return[e[n],t]})}function DLt(e,t){var n=e.slice(),r=t.slice();NX(n)===-1&&n.reverse(),NX(r)===-1&&r.reverse();var i=KX(n),o=KX(r),a=i.map(function(u){return sF(u[0],u[1])}),s=o.map(function(u){return sF(u[0],u[1])}),l=[];a.forEach(function(u,d){var h=i[d],f=[];s.forEach(function(p,g){var m=oEe(u,p),b=aEe(m,[h,o[g]]);f.push.apply(f,b.map(function(w){return{index1:d,index2:g,pos:w,type:"intersection"}}))}),f.sort(function(p,g){return up(h[0],p.pos)-up(h[0],g.pos)}),l.push.apply(l,f),aF(h[1],r)&&l.push({index1:d,index2:-1,pos:h[1],type:"inside"})}),o.forEach(function(u,d){if(aF(u[1],n)){var h=!1,f=wA(l,function(p){var g=p.index2;return g===d?(h=!0,!1):!!h});f===-1&&(h=!1,f=wA(l,function(p){var g=p.index1,m=p.index2;return g===-1&&m+1===d?(h=!0,!1):!!h})),f===-1?l.push({index1:-1,index2:d,pos:u[1],type:"inside"}):l.splice(f,0,{index1:-1,index2:d,pos:u[1],type:"inside"})}});var c={};return l.filter(function(u){var d=u.pos,h=d[0]+"x"+d[1];return c[h]?!1:(c[h]=!0,!0)})}function qX(e,t){var n=DLt(e,t);return n.map(function(r){var i=r.pos;return i})}function PLt(e,t){var n=qX(e,t);return OC(n)}function FLt(e,t,n,r,i,o){for(var a=0;a<i;++a){var s=n+a*i,l=r+a*i;e[s]+=e[l]*o,t[s]+=t[l]*o}}function NLt(e,t,n,r,i){for(var o=0;o<i;++o){var a=n+o*i,s=r+o*i,l=e[a],c=t[a];e[a]=e[s],e[s]=l,t[a]=t[s],t[s]=c}}function TLt(e,t,n,r,i){for(var o=0;o<r;++o){var a=n+o*r;e[a]/=i,t[a]/=i}}function sEe(e,t,n){n===void 0&&(n=Math.sqrt(e.length));for(var r=e.slice(),i=0;i<n;++i)r[i*n+t-1]=0,r[(t-1)*n+i]=0;return r[(t-1)*(n+1)]=1,r}function Kf(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=e.slice(),r=Os(t),i=0;i<t;++i){var o=t*i+i;if(!io(n[o],oc)){for(var a=i+1;a<t;++a)if(n[t*i+a]){NLt(n,r,i,a,t);break}}if(!io(n[o],oc))return[];TLt(n,r,i,t,n[o]);for(var a=0;a<t;++a){var s=a,l=a+i*t,c=n[l];!io(c,oc)||i===a||FLt(n,r,s,i,t,-c)}}return r}function LLt(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=[],r=0;r<t;++r)for(var i=0;i<t;++i)n[i*t+r]=e[t*r+i];return n}function jLt(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=[],r=e[t*t-1],i=0;i<t-1;++i)n[i]=e[t*(t-1)+i]/r;return n[t-1]=0,n}function QLt(e,t){for(var n=Os(t),r=0;r<t-1;++r)n[t*(t-1)+r]=e[r]||0;return n}function DC(e,t){for(var n=e.slice(),r=e.length;r<t-1;++r)n[r]=0;return n[t-1]=1,n}function ng(e,t,n){if(t===void 0&&(t=Math.sqrt(e.length)),t===n)return e;for(var r=Os(n),i=Math.min(t,n),o=0;o<i-1;++o){for(var a=0;a<i-1;++a)r[o*n+a]=e[o*t+a];r[(o+1)*n-1]=e[(o+1)*t-1],r[(n-1)*n+o]=e[(t-1)*t+o]}return r[n*n-1]=e[t*t-1],r}function XX(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Os(e);return t.forEach(function(i){r=_a(r,i,e)}),r}function _a(e,t,n){n===void 0&&(n=Math.sqrt(e.length));var r=[],i=e.length/n,o=t.length/i;if(i){if(!o)return e}else return t;for(var a=0;a<n;++a)for(var s=0;s<o;++s){r[s*n+a]=0;for(var l=0;l<i;++l)r[s*n+a]+=e[l*n+a]*t[s*i+l]}return r}function fo(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),i=0;i<n;++i)r[i]=r[i]+t[i];return r}function Pi(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),i=0;i<n;++i)r[i]=r[i]-t[i];return r}function zLt(e,t){return t===void 0&&(t=e.length===6),t?[e[0],e[1],0,e[2],e[3],0,e[4],e[5],1]:e}function lEe(e,t){return t===void 0&&(t=e.length===9),t?[e[0],e[1],e[3],e[4],e[6],e[7]]:e}function uu(e,t,n){n===void 0&&(n=t.length);var r=_a(e,t,n),i=r[n-1];return r.map(function(o){return o/i})}function WLt(e,t){return _a(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function HLt(e,t){return _a(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function _Lt(e,t){return _a(e,N5(t,4))}function lF(e,t){var n=t[0],r=n===void 0?1:n,i=t[1],o=i===void 0?1:i,a=t[2],s=a===void 0?1:a;return _a(e,[r,0,0,0,0,o,0,0,0,0,s,0,0,0,0,1],4)}function xA(e,t){return uu(N5(t,3),DC(e,3))}function $X(e,t){var n=t[0],r=n===void 0?0:n,i=t[1],o=i===void 0?0:i,a=t[2],s=a===void 0?0:a;return _a(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,o,s,1],4)}function ZX(e,t){return _a(e,t,4)}function N5(e,t){var n=Math.cos(e),r=Math.sin(e),i=Os(t);return i[0]=n,i[1]=r,i[t]=-r,i[t+1]=n,i}function Os(e){for(var t=e*e,n=[],r=0;r<t;++r)n[r]=r%(e+1)?0:1;return n}function cEe(e,t){for(var n=Os(t),r=Math.min(e.length,t-1),i=0;i<r;++i)n[(t+1)*i]=e[i];return n}function PC(e,t){for(var n=Os(t),r=Math.min(e.length,t-1),i=0;i<r;++i)n[t*(t-1)+i]=e[i];return n}function JX(e,t,n,r,i,o,a,s){var l=e[0],c=e[1],u=t[0],d=t[1],h=n[0],f=n[1],p=r[0],g=r[1],m=i[0],b=i[1],w=o[0],x=o[1],C=a[0],E=a[1],S=s[0],B=s[1],M=[l,0,u,0,h,0,p,0,c,0,d,0,f,0,g,0,1,0,1,0,1,0,1,0,0,l,0,u,0,h,0,p,0,c,0,d,0,f,0,g,0,1,0,1,0,1,0,1,-m*l,-b*l,-w*u,-x*u,-C*h,-E*h,-S*p,-B*p,-m*c,-b*c,-w*d,-x*d,-C*f,-E*f,-S*g,-B*g],O=Kf(M,8);if(!O.length)return[];var D=_a(O,[m,b,w,x,C,E,S,B],8);return D[8]=1,ng(LLt(D),3,4)}var FC=function(){return FC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},FC.apply(this,arguments)};function e$(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function uEe(e,t){return t===void 0&&(t=0),L5(f2(e,t))}function T5(e,t){var n=uu(e,[t[0],t[1]||0,t[2]||0,1],4),r=n[3]||1;return[n[0]/r,n[1]/r,n[2]/r]}function dEe(e,t){t===void 0&&(t=document.body);for(var n=e,r=e$();n;){var i=getComputedStyle(n).transform;if(r=ZX(uEe(i),r),n===t)break;n=n.parentElement}return r=Kf(r,4),r[12]=0,r[13]=0,r[14]=0,r}function L5(e){var t=e$();return e.forEach(function(n){var r=n.matrixFunction,i=n.functionValue;r&&(t=r(t,i))}),t}function f2(e,t){t===void 0&&(t=0);var n=bA(e)?e:yA(e);return n.map(function(r){var i=DX(r),o=i.prefix,a=i.value,s=null,l=o,c="";if(o==="translate"||o==="translateX"||o==="translate3d"){var u=Vf(t)?FC(FC({},t),{"o%":t["%"]}):{"%":t,"o%":t},d=d2(a).map(function(z,H){return H===0&&"x%"in u?u["%"]=t["x%"]:H===1&&"y%"in u?u["%"]=t["y%"]:u["%"]=t["o%"],bs(z,u)}),h=d[0],f=d[1],p=f===void 0?0:f,g=d[2],m=g===void 0?0:g;s=$X,c=[h,p,m]}else if(o==="translateY"){var b=Vf(t)?FC({"%":t["y%"]},t):{"%":t},p=bs(a,b);s=$X,c=[0,p,0]}else if(o==="translateZ"){var m=parseFloat(a);s=$X,c=[0,0,m]}else if(o==="scale"||o==="scale3d"){var w=d2(a).map(function(z){return parseFloat(z)}),x=w[0],C=w[1],E=C===void 0?x:C,S=w[2],B=S===void 0?1:S;s=lF,c=[x,E,B]}else if(o==="scaleX"){var x=parseFloat(a);s=lF,c=[x,1,1]}else if(o==="scaleY"){var E=parseFloat(a);s=lF,c=[1,E,1]}else if(o==="scaleZ"){var B=parseFloat(a);s=lF,c=[1,1,B]}else if(o==="rotate"||o==="rotateZ"||o==="rotateX"||o==="rotateY"){var M=D5(a),O=M.unit,D=M.value,P=O==="rad"?D:D*Math.PI/180;o==="rotate"||o==="rotateZ"?(l="rotateZ",s=_Lt):o==="rotateX"?s=WLt:o==="rotateY"&&(s=HLt),c=P}else if(o==="matrix3d")s=ZX,c=d2(a).map(function(z){return parseFloat(z)});else if(o==="matrix"){var j=d2(a).map(function(z){return parseFloat(z)});s=ZX,c=[j[0],j[1],0,0,j[2],j[3],0,0,0,0,1,0,j[4],j[5],0,1]}else l="";return{name:o,functionName:l,value:a,matrixFunction:s,functionValue:c}})}function GLt(e){for(var t=5381,n=e.length;n;)t=t*33^e.charCodeAt(--n);return t>>>0}var YLt=GLt;function ULt(e){return YLt(e).toString(36)}function VLt(e){if(e&&e.getRootNode){var t=e.getRootNode();if(t.nodeType===11)return t}}function KLt(e,t,n){return n.original?t:t.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(r,i){var o=i.trim();return(o?d2(o):[""]).map(function(a){var s=a.trim();return s.indexOf("@")===0?s:s.indexOf(":global")>-1?s.replace(/\:global/g,""):s.indexOf(":host")>-1?"".concat(s.replace(/\:host/g,".".concat(e))):s?".".concat(e," ").concat(s):".".concat(e)}).join(", ")+" {"})}function qLt(e,t,n,r,i){var o=tg(r),a=o.createElement("style");return a.setAttribute("type","text/css"),a.setAttribute("data-styled-id",e),a.setAttribute("data-styled-count","1"),n.nonce&&a.setAttribute("nonce",n.nonce),a.innerHTML=KLt(e,t,n),(i||o.head||o.body).appendChild(a),a}function hEe(e){var t="rCS"+ULt(e);return{className:t,inject:function(n,r){r===void 0&&(r={});var i=VLt(n),o=(i||n.ownerDocument||document).querySelector('style[data-styled-id="'.concat(t,'"]'));if(!o)o=qLt(t,e,r,n,i);else{var a=parseFloat(o.getAttribute("data-styled-count"))||0;o.setAttribute("data-styled-count","".concat(a+1))}return{destroy:function(){var s,l=parseFloat(o.getAttribute("data-styled-count"))||0;l<=1?(o.remove?o.remove():(s=o.parentNode)===null||s===void 0||s.removeChild(o),o=null):o.setAttribute("data-styled-count","".concat(l-1))}}}}}var t$=function(e,t){return t$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},t$(e,t)};function fEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");t$(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var qs=function(){return qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},qs.apply(this,arguments)};function XLt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function $Lt(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function NC(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function ZLt(e){if("touches"in e){var t=e.touches[0]||e.changedTouches[0];return{clientX:t.clientX,clientY:t.clientY}}else return{clientX:e.clientX,clientY:e.clientY}}function JLt(e){if(typeof Map>"u")return e.filter(function(n,r){return e.indexOf(n)===r});var t=new Map;return e.filter(function(n){return t.has(n)?!1:(t.set(n,!0),!0)})}function ejt(e,t,n){var r=tg(e);return r.elementFromPoint&&r.elementFromPoint(t,n)||null}function pEe(e,t,n){var r=e.tag,i=e.children,o=e.attributes,a=e.className,s=e.style,l=t||tg(n).createElement(r);for(var c in o)l.setAttribute(c,o[c]);var u=l.children;if(i.forEach(function(h,f){pEe(h,u[f],l)}),a&&a.split(/\s+/g).forEach(function(h){h&&!Qd(l,h)&&TX(l,h)}),s){var d=l.style;for(var c in s)d[c]=s[c]}return!t&&n&&n.appendChild(l),l}function tjt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=t||{},o=i.className,a=o===void 0?"":o,s=i.style,l=s===void 0?{}:s,c=XLt(i,["className","style"]);return{tag:e,className:a,style:l,attributes:c,children:n}}function n$(e,t,n){e!==t&&n(e,t)}function gEe(e,t,n){var r;n===void 0&&(n=e.data.boundArea);var i=e.distX,o=i===void 0?0:i,a=e.distY,s=a===void 0?0:a,l=e.data,c=l.startX,u=l.startY;if(t>0){var d=Math.sqrt((o*o+s*s)/(1+t*t)),h=t*d;o=(o>=0?1:-1)*h,s=(s>=0?1:-1)*d}var f=Math.abs(o),p=Math.abs(s),g=o<0?c-n.left:n.right-c,m=s<0?u-n.top:n.bottom-u;r=Q6e([f,p],[0,0],[g,m],!!t),f=r[0],p=r[1],o=(o>=0?1:-1)*f,s=(s>=0?1:-1)*p;var b=Math.min(0,o),w=Math.min(0,s),x=c+b,C=u+w;return{left:x,top:C,right:x+f,bottom:C+p,width:f,height:p}}function cF(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top,i=t.width,o=t.height;return{pos1:[n,r],pos2:[n+i,r],pos3:[n,r+o],pos4:[n+i,r+o]}}function mEe(e,t,n){var r=P5(e,t),i=r.list,o=r.prevList,a=r.added,s=r.removed,l=r.maintained;return NC(NC(NC([],a.map(function(c){return i[c]}),!0),s.map(function(c){return o[c]}),!0),n?l.map(function(c){var u=c[1];return i[u]}):[],!0)}function AEe(e){for(var t=0,n=e.length,r=1;r<n;++r)t=Math.max(up(e[r],e[r-1]),t);return t}var vEe=hEe(`
|
800
|
+
Check this document: https://pdfme.com/docs/custom-schemas`);return}h.current.innerHTML="";const g=a==="form"||a==="designer";p({key:o.key,value:o.data,schema:o,rootElement:h.current,mode:a,onChange:g?s:void 0,stopEditing:g?l:void 0,tabIndex:c,placeholder:u,options:n,theme:i,i18n:r})}return()=>{h.current&&(h.current.innerHTML="")}},[JSON.stringify(o),JSON.stringify(n),a,d]),qt.jsx(HTt,{...e,children:qt.jsx("div",{style:{height:"100%",width:"100%"},ref:h})})},P6e=_Tt;var GTt="function",YTt="object",UTt="string",F6e="undefined",VTt=typeof document!==F6e&&document,KTt=[{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:'\\"',close:'\\"'},{open:"\\'",close:"\\'"}],oc=1e-7,JP={cm:function(e){return e*96/2.54},mm:function(e){return e*96/254},in:function(e){return e*96},pt:function(e){return e*96/72},pc:function(e){return e*96/6},"%":function(e,t){return e*t/100},vw:function(e,t){return t===void 0&&(t=window.innerWidth),e/100*t},vh:function(e,t){return t===void 0&&(t=window.innerHeight),e/100*t},vmax:function(e,t){return t===void 0&&(t=Math.max(window.innerWidth,window.innerHeight)),e/100*t},vmin:function(e,t){return t===void 0&&(t=Math.min(window.innerWidth,window.innerHeight)),e/100*t}};function qTt(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function XTt(e,t,n,r){return(e*r+t*n)/(n+r)}function eF(e){return typeof e===F6e}function Vf(e){return e&&typeof e===YTt}function bA(e){return Array.isArray(e)}function cp(e){return typeof e===UTt}function tF(e){return typeof e===GTt}function $Tt(e,t){var n=e===""||e==" ",r=t===""||t==" ";return r&&n||e===t}function N6e(e,t,n,r,i){var o=RX(e,t,n);return o?n:ZTt(e,t,n+1,r,i)}function RX(e,t,n){if(!e.ignore)return null;var r=t.slice(Math.max(n-3,0),n+3).join("");return new RegExp(e.ignore).exec(r)}function ZTt(e,t,n,r,i){for(var o=function(c){var u=t[c].trim();if(u===e.close&&!RX(e,t,c))return{value:c};var d=c,h=BC(i,function(f){var p=f.open;return p===u});if(h&&(d=N6e(h,t,c,r,i)),d===-1)return a=c,"break";c=d,a=c},a,s=n;s<r;++s){var l=o(s);if(s=a,typeof l=="object")return l.value;if(l==="break")break}return-1}function OX(e,t){var n=cp(t)?{separator:t}:t,r=n.separator,i=r===void 0?",":r,o=n.isSeparateFirst,a=n.isSeparateOnlyOpenClose,s=n.isSeparateOpenClose,l=s===void 0?a:s,c=n.openCloseCharacters,u=c===void 0?KTt:c,d=u.map(function(B){var M=B.open,O=B.close;return M===O?M:M+"|"+O}).join("|"),h="(\\s*"+i+"\\s*|"+d+"|\\s+)",f=new RegExp(h,"g"),p=e.split(f).filter(function(B){return B&&B!=="undefined"}),g=p.length,m=[],b=[];function w(){return b.length?(m.push(b.join("")),b=[],!0):!1}for(var x=function(B){var M=p[B].trim(),O=B,D=BC(u,function(z){var H=z.open;return H===M}),P=BC(u,function(z){var H=z.close;return H===M});if(D){if(O=N6e(D,p,B,g,u),O!==-1&&l)return w()&&o||(m.push(p.slice(B,O+1).join("")),B=O,o)?(C=B,"break"):(C=B,"continue")}else if(P&&!RX(P,p,B)){var j=qTt(u);return j.splice(u.indexOf(P),1),{value:OX(e,{separator:i,isSeparateFirst:o,isSeparateOnlyOpenClose:a,isSeparateOpenClose:l,openCloseCharacters:j})}}else if($Tt(M,i)&&!a)return w(),o?(C=B,"break"):(C=B,"continue");O===-1&&(O=g-1),b.push(p.slice(B,O+1).join("")),B=O,C=B},C,E=0;E<g;++E){var S=x(E);if(E=C,typeof S=="object")return S.value;if(S==="break")break}return b.length&&m.push(b.join("")),m}function yA(e){return OX(e,"")}function d2(e){return OX(e,",")}function DX(e){var t=/([^(]*)\(([\s\S]*)\)([\s\S]*)/g.exec(e);return!t||t.length<4?{}:{prefix:t[1],value:t[2],suffix:t[3]}}function D5(e){var t=/^([^\d|e|\-|\+]*)((?:\d|\.|-|e-|e\+)+)(\S*)$/g.exec(e);if(!t)return{prefix:"",unit:"",value:NaN};var n=t[1],r=t[2],i=t[3];return{prefix:n,unit:i,value:parseFloat(r)}}function PX(e){return e.replace(/[\s-_]+([^\s-_])/g,function(t,n){return n.toUpperCase()})}function FX(){return Date.now?Date.now():new Date().getTime()}function wA(e,t,n){n===void 0&&(n=-1);for(var r=e.length,i=0;i<r;++i)if(t(e[i],i,e))return i;return n}function BC(e,t,n){var r=wA(e,t);return r>-1?e[r]:n}function T6e(e){return Object.keys(e)}function bs(e,t){var n=D5(e),r=n.value,i=n.unit;if(Vf(t)){var o=t[i];if(o){if(tF(o))return o(r);if(JP[i])return JP[i](r,o)}}else if(i==="%")return r*t/100;return JP[i]?JP[i](r):r}function L6e(e,t,n){return Math.max(t,Math.min(e,n))}function j6e(e,t,n,r){return r===void 0&&(r=e[0]/e[1]),[[io(t[0],oc),io(t[0]/r,oc)],[io(t[1]*r,oc),io(t[1],oc)]].filter(function(i){return i.every(function(o,a){var s=t[a],l=io(s,oc);return n?o<=s||o<=l:o>=s||o>=l})})[0]||e}function Q6e(e,t,n,r){if(!r)return e.map(function(f,p){return L6e(f,t[p],n[p])});var i=e[0],o=e[1],a=r===!0?i/o:r,s=j6e(e,t,!1,a),l=s[0],c=s[1],u=j6e(e,n,!0,a),d=u[0],h=u[1];return i<l||o<c?(i=l,o=c):(i>d||o>h)&&(i=d,o=h),[i,o]}function JTt(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return n}function MC(e){for(var t=e.length,n=0,r=t-1;r>=0;--r)n+=e[r];return t?n/t:0}function Ha(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=Math.atan2(r,n);return i>=0?i:i+Math.PI*2}function eLt(e){return[0,1].map(function(t){return MC(e.map(function(n){return n[t]}))})}function NX(e){var t=eLt(e),n=Ha(t,e[0]),r=Ha(t,e[1]);return n<r&&r-n<Math.PI||n>r&&r-n<-Math.PI?1:-1}function up(e,t){return Math.sqrt(Math.pow((t?t[0]:0)-e[0],2)+Math.pow((t?t[1]:0)-e[1],2))}function io(e,t){if(!t)return e;var n=1/t;return Math.round(e/t)/n}function z6e(e,t){return e.forEach(function(n,r){e[r]=io(e[r],t)}),e}function Qd(e,t){return e.classList?e.classList.contains(t):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function TX(e,t){e.classList?e.classList.add(t):e.className+=" "+t}function W6e(e,t){if(e.classList)e.classList.remove(t);else{var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}}function Rs(e,t,n,r){e.addEventListener(t,n,r)}function as(e,t,n,r){e.removeEventListener(t,n,r)}function tg(e){return(e==null?void 0:e.ownerDocument)||VTt}function h2(e){var t;return((t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView)||window}function tLt(e){return e&&"postMessage"in e&&"blur"in e&&"self"in e}function H6e(e){return Vf(e)&&e.nodeName&&e.nodeType&&"ownerDocument"in e}var LX=function(){return LX=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},LX.apply(this,arguments)};function nLt(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}var rLt=function(){function e(){this._events={}}var t=e.prototype;return t.on=function(n,r){if(Vf(n))for(var i in n)this.on(i,n[i]);else this._addEvent(n,r,{});return this},t.off=function(n,r){if(!n)this._events={};else if(Vf(n))for(var i in n)this.off(i);else if(!r)this._events[n]=[];else{var o=this._events[n];if(o){var a=wA(o,function(s){return s.listener===r});a>-1&&o.splice(a,1)}}return this},t.once=function(n,r){var i=this;return r&&this._addEvent(n,r,{once:!0}),new Promise(function(o){i._addEvent(n,o,{once:!0})})},t.emit=function(n,r){var i=this;r===void 0&&(r={});var o=this._events[n];if(!n||!o)return!0;var a=!1;return r.eventType=n,r.stop=function(){a=!0},r.currentTarget=this,nLt(o).forEach(function(s){s.listener(r),s.once&&i.off(n,s.listener)}),!a},t.trigger=function(n,r){return r===void 0&&(r={}),this.emit(n,r)},t._addEvent=function(n,r,i){var o=this._events;o[n]=o[n]||[];var a=o[n];a.push(LX({listener:r},i))},e}();const nF=rLt;var jX=function(e,t){return jX=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},jX(e,t)};function iLt(e,t){jX(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Ks=function(){return Ks=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ks.apply(this,arguments)};function oLt(e,t){var n=t[0]-e[0],r=t[1]-e[1],i=Math.atan2(r,n);return i>=0?i:i+Math.PI*2}function QX(e){return oLt([e[0].clientX,e[0].clientY],[e[1].clientX,e[1].clientY])/Math.PI*180}function aLt(e){return e.touches&&e.touches.length>=2}function rF(e){return e?e.touches?lLt(e.touches):[G6e(e)]:[]}function sLt(e){return e&&(e.type.indexOf("mouse")>-1||"button"in e)}function _6e(e,t,n){var r=n.length,i=IC(e,r),o=i.clientX,a=i.clientY,s=i.originalClientX,l=i.originalClientY,c=IC(t,r),u=c.clientX,d=c.clientY,h=IC(n,r),f=h.clientX,p=h.clientY,g=o-u,m=a-d,b=o-f,w=a-p;return{clientX:s,clientY:l,deltaX:g,deltaY:m,distX:b,distY:w}}function zX(e){return Math.sqrt(Math.pow(e[0].clientX-e[1].clientX,2)+Math.pow(e[0].clientY-e[1].clientY,2))}function lLt(e){for(var t=Math.min(e.length,2),n=[],r=0;r<t;++r)n.push(G6e(e[r]));return n}function G6e(e){return{clientX:e.clientX,clientY:e.clientY}}function IC(e,t){t===void 0&&(t=e.length);for(var n={clientX:0,clientY:0,originalClientX:0,originalClientY:0},r=Math.min(e.length,t),i=0;i<r;++i){var o=e[i];n.originalClientX+="originalClientX"in o?o.originalClientX:o.clientX,n.originalClientY+="originalClientY"in o?o.originalClientY:o.clientY,n.clientX+=o.clientX,n.clientY+=o.clientY}return t?{clientX:n.clientX/t,clientY:n.clientY/t,originalClientX:n.originalClientX/t,originalClientY:n.originalClientY/t}:n}var WX=function(){function e(t){this.prevClients=[],this.startClients=[],this.movement=0,this.length=0,this.startClients=t,this.prevClients=t,this.length=t.length}return e.prototype.getAngle=function(t){return t===void 0&&(t=this.prevClients),QX(t)},e.prototype.getRotation=function(t){return t===void 0&&(t=this.prevClients),QX(t)-QX(this.startClients)},e.prototype.getPosition=function(t,n){t===void 0&&(t=this.prevClients);var r=_6e(t||this.prevClients,this.prevClients,this.startClients),i=r.deltaX,o=r.deltaY;return this.movement+=Math.sqrt(i*i+o*o),this.prevClients=t,r},e.prototype.getPositions=function(t){t===void 0&&(t=this.prevClients);for(var n=this.prevClients,r=this.startClients,i=Math.min(this.length,n.length),o=[],a=0;a<i;++a)o[a]=_6e([t[a]],[n[a]],[r[a]]);return o},e.prototype.getMovement=function(t){var n=this.movement;if(!t)return n;var r=IC(t,this.length),i=IC(this.prevClients,this.length),o=r.clientX-i.clientX,a=r.clientY-i.clientY;return Math.sqrt(o*o+a*a)+n},e.prototype.getDistance=function(t){return t===void 0&&(t=this.prevClients),zX(t)},e.prototype.getScale=function(t){return t===void 0&&(t=this.prevClients),zX(t)/zX(this.startClients)},e.prototype.move=function(t,n){this.startClients.forEach(function(r){r.clientX-=t,r.clientY-=n}),this.prevClients.forEach(function(r){r.clientX-=t,r.clientY-=n})},e}(),Y6e=["textarea","input"],HX=function(e){iLt(t,e);function t(n,r){r===void 0&&(r={});var i=e.call(this)||this;i.options={},i.flag=!1,i.pinchFlag=!1,i.data={},i.isDrag=!1,i.isPinch=!1,i.clientStores=[],i.targets=[],i.prevTime=0,i.doubleFlag=!1,i._useMouse=!1,i._useTouch=!1,i._useDrag=!1,i._dragFlag=!1,i._isTrusted=!1,i._isMouseEvent=!1,i._isSecondaryButton=!1,i._preventMouseEvent=!1,i._prevInputEvent=null,i._isDragAPI=!1,i._isIdle=!0,i._window=window,i.onDragStart=function(h,f){if(f===void 0&&(f=!0),!(!i.flag&&h.cancelable===!1)){var p=h.type.indexOf("drag")>=-1;if(!(i.flag&&p)){i._isDragAPI=!0;var g=i.options,m=g.container,b=g.pinchOutside,w=g.preventWheelClick,x=g.preventRightClick,C=g.preventDefault,E=g.checkInput,S=g.dragFocusedInput,B=g.preventClickEventOnDragStart,M=g.preventClickEventOnDrag,O=g.preventClickEventByCondition,D=i._useTouch,P=!i.flag;if(i._isSecondaryButton=h.which===3||h.button===2,w&&(h.which===2||h.button===1)||x&&(h.which===3||h.button===2))return i.stop(),!1;if(P){var j=i._window.document.activeElement,z=h.target;if(z){var H=z.tagName.toLowerCase(),Q=Y6e.indexOf(H)>-1,F=z.isContentEditable;if(Q||F){if(E||!S&&j===z)return!1;if(j&&(j===z||F&&j.isContentEditable&&j.contains(z)))if(S)z.blur();else return!1}else if((C||h.type==="touchstart")&&j){var N=j.tagName.toLowerCase();(j.isContentEditable||Y6e.indexOf(N)>-1)&&j.blur()}(B||M||O)&&Rs(i._window,"click",i._onClick,!0)}i.clientStores=[new WX(rF(h))],i._isIdle=!1,i.flag=!0,i.isDrag=!1,i._isTrusted=f,i._dragFlag=!0,i._prevInputEvent=h,i.data={},i.doubleFlag=FX()-i.prevTime<200,i._isMouseEvent=sLt(h),!i._isMouseEvent&&i._preventMouseEvent&&(i._preventMouseEvent=!1);var W=i._preventMouseEvent||i.emit("dragStart",Ks(Ks({data:i.data,datas:i.data,inputEvent:h,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,isTrusted:f,isDouble:i.doubleFlag},i.getCurrentStore().getPosition()),{preventDefault:function(){h.preventDefault()},preventDrag:function(){i._dragFlag=!1}}));W===!1&&i.stop(),i._isMouseEvent&&i.flag&&C&&h.preventDefault()}if(!i.flag)return!1;var X=0;if(P?(i._attchDragEvent(),D&&b&&(X=setTimeout(function(){Rs(m,"touchstart",i.onDragStart,{passive:!1})}))):D&&b&&as(m,"touchstart",i.onDragStart),i.flag&&aLt(h)){if(clearTimeout(X),P&&h.touches.length!==h.changedTouches.length)return;i.pinchFlag||i.onPinchStart(h)}}}},i.onDrag=function(h,f){if(i.flag){var p=i.options.preventDefault;!i._isMouseEvent&&p&&h.preventDefault(),i._prevInputEvent=h;var g=rF(h),m=i.moveClients(g,h,!1);if(i._dragFlag){if(i.pinchFlag||m.deltaX||m.deltaY){var b=i._preventMouseEvent||i.emit("drag",Ks(Ks({},m),{isScroll:!!f,inputEvent:h}));if(b===!1){i.stop();return}}i.pinchFlag&&i.onPinch(h,g)}i.getCurrentStore().getPosition(g,!0)}},i.onDragEnd=function(h){if(i.flag){var f=i.options,p=f.pinchOutside,g=f.container,m=f.preventClickEventOnDrag,b=f.preventClickEventOnDragStart,w=f.preventClickEventByCondition,x=i.isDrag;(m||b||w)&&requestAnimationFrame(function(){i._allowClickEvent()}),!w&&!b&&m&&!x&&i._allowClickEvent(),i._useTouch&&p&&as(g,"touchstart",i.onDragStart),i.pinchFlag&&i.onPinchEnd(h);var C=h!=null&&h.touches?rF(h):[],E=C.length;E===0||!i.options.keepDragging?i.flag=!1:i._addStore(new WX(C));var S=i._getPosition(),B=FX(),M=!x&&i.doubleFlag;i._prevInputEvent=null,i.prevTime=x||M?0:B,i.flag||(i._dettachDragEvent(),i._preventMouseEvent||i.emit("dragEnd",Ks({data:i.data,datas:i.data,isDouble:M,isDrag:x,isClick:!x,isMouseEvent:i._isMouseEvent,isSecondaryButton:i._isSecondaryButton,inputEvent:h,isTrusted:i._isTrusted},S)),i.clientStores=[],i._isMouseEvent||(i._preventMouseEvent=!0,requestAnimationFrame(function(){requestAnimationFrame(function(){i._preventMouseEvent=!1})})),i._isIdle=!0)}},i.onBlur=function(){i.onDragEnd()},i._allowClickEvent=function(){as(i._window,"click",i._onClick,!0)},i._onClick=function(h){i._allowClickEvent(),i._preventMouseEvent=!1;var f=i.options.preventClickEventByCondition;f!=null&&f(h)||(h.stopPropagation(),h.preventDefault())},i._onContextMenu=function(h){var f=i.options;f.preventRightClick?i.onDragEnd(h):h.preventDefault()},i._passCallback=function(){};var o=[].concat(n),a=o[0];i._window=tLt(a)?a:h2(a),i.options=Ks({checkInput:!1,container:a&&!("document"in a)?h2(a):a,preventRightClick:!0,preventWheelClick:!0,preventClickEventOnDragStart:!1,preventClickEventOnDrag:!1,preventClickEventByCondition:null,preventDefault:!0,checkWindowBlur:!1,keepDragging:!1,pinchThreshold:0,events:["touch","mouse"]},r);var s=i.options,l=s.container,c=s.events,u=s.checkWindowBlur;if(i._useDrag=c.indexOf("drag")>-1,i._useTouch=c.indexOf("touch")>-1,i._useMouse=c.indexOf("mouse")>-1,i.targets=o,i._useDrag&&o.forEach(function(h){Rs(h,"dragstart",i.onDragStart)}),i._useMouse&&(o.forEach(function(h){Rs(h,"mousedown",i.onDragStart),Rs(h,"mousemove",i._passCallback)}),Rs(l,"contextmenu",i._onContextMenu)),u&&Rs(h2(),"blur",i.onBlur),i._useTouch){var d={passive:!1};o.forEach(function(h){Rs(h,"touchstart",i.onDragStart,d),Rs(h,"touchmove",i._passCallback,d)})}return i}return t.prototype.stop=function(){this.isDrag=!1,this.data={},this.clientStores=[],this.pinchFlag=!1,this.doubleFlag=!1,this.prevTime=0,this.flag=!1,this._isIdle=!0,this._allowClickEvent(),this._dettachDragEvent(),this._isDragAPI=!1},t.prototype.getMovement=function(n){return this.getCurrentStore().getMovement(n)+this.clientStores.slice(1).reduce(function(r,i){return r+i.movement},0)},t.prototype.isDragging=function(){return this.isDrag},t.prototype.isIdle=function(){return this._isIdle},t.prototype.isFlag=function(){return this.flag},t.prototype.isPinchFlag=function(){return this.pinchFlag},t.prototype.isDoubleFlag=function(){return this.doubleFlag},t.prototype.isPinching=function(){return this.isPinch},t.prototype.scrollBy=function(n,r,i,o){o===void 0&&(o=!0),this.flag&&(this.clientStores[0].move(n,r),o&&this.onDrag(i,!0))},t.prototype.move=function(n,r){var i=n[0],o=n[1],a=this.getCurrentStore(),s=a.prevClients;return this.moveClients(s.map(function(l){var c=l.clientX,u=l.clientY;return{clientX:c+i,clientY:u+o,originalClientX:c,originalClientY:u}}),r,!0)},t.prototype.triggerDragStart=function(n){this.onDragStart(n,!1)},t.prototype.setEventData=function(n){var r=this.data;for(var i in n)r[i]=n[i];return this},t.prototype.setEventDatas=function(n){return this.setEventData(n)},t.prototype.getCurrentEvent=function(n){return n===void 0&&(n=this._prevInputEvent),Ks(Ks({data:this.data,datas:this.data},this._getPosition()),{movement:this.getMovement(),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,inputEvent:n})},t.prototype.getEventData=function(){return this.data},t.prototype.getEventDatas=function(){return this.data},t.prototype.unset=function(){var n=this,r=this.targets,i=this.options.container;this.off(),as(this._window,"blur",this.onBlur),this._useDrag&&r.forEach(function(o){as(o,"dragstart",n.onDragStart)}),this._useMouse&&(r.forEach(function(o){as(o,"mousedown",n.onDragStart)}),as(i,"contextmenu",this._onContextMenu)),this._useTouch&&(r.forEach(function(o){as(o,"touchstart",n.onDragStart)}),as(i,"touchstart",this.onDragStart)),this._prevInputEvent=null,this._allowClickEvent(),this._dettachDragEvent()},t.prototype.onPinchStart=function(n){var r=this,i=this.options.pinchThreshold;if(!(this.isDrag&&this.getMovement()>i)){var o=new WX(rF(n));this.pinchFlag=!0,this._addStore(o);var a=this.emit("pinchStart",Ks(Ks({data:this.data,datas:this.data,angle:o.getAngle(),touches:this.getCurrentStore().getPositions()},o.getPosition()),{inputEvent:n,isTrusted:this._isTrusted,preventDefault:function(){n.preventDefault()},preventDrag:function(){r._dragFlag=!1}}));a===!1&&(this.pinchFlag=!1)}},t.prototype.onPinch=function(n,r){if(!(!this.flag||!this.pinchFlag||r.length<2)){var i=this.getCurrentStore();this.isPinch=!0,this.emit("pinch",Ks(Ks({data:this.data,datas:this.data,movement:this.getMovement(r),angle:i.getAngle(r),rotation:i.getRotation(r),touches:i.getPositions(r),scale:i.getScale(r),distance:i.getDistance(r)},i.getPosition(r)),{inputEvent:n,isTrusted:this._isTrusted}))}},t.prototype.onPinchEnd=function(n){if(this.pinchFlag){var r=this.isPinch;this.isPinch=!1,this.pinchFlag=!1;var i=this.getCurrentStore();this.emit("pinchEnd",Ks(Ks({data:this.data,datas:this.data,isPinch:r,touches:i.getPositions()},i.getPosition()),{inputEvent:n}))}},t.prototype.getCurrentStore=function(){return this.clientStores[0]},t.prototype.moveClients=function(n,r,i){var o=this._getPosition(n,i),a=this.isDrag;(o.deltaX||o.deltaY)&&(this.isDrag=!0);var s=!1;return!a&&this.isDrag&&(s=!0),Ks(Ks({data:this.data,datas:this.data},o),{movement:this.getMovement(n),isDrag:this.isDrag,isPinch:this.isPinch,isScroll:!1,isMouseEvent:this._isMouseEvent,isSecondaryButton:this._isSecondaryButton,inputEvent:r,isTrusted:this._isTrusted,isFirstDrag:s})},t.prototype._addStore=function(n){this.clientStores.splice(0,0,n)},t.prototype._getPosition=function(n,r){var i=this.getCurrentStore(),o=i.getPosition(n,r),a=this.clientStores.slice(1).reduce(function(c,u){var d=u.getPosition();return c.distX+=d.distX,c.distY+=d.distY,c},o),s=a.distX,l=a.distY;return Ks(Ks({},o),{distX:s,distY:l})},t.prototype._attchDragEvent=function(){var n=this._window,r=this.options.container,i={passive:!1};this._isDragAPI&&(Rs(r,"dragover",this.onDrag,i),Rs(n,"dragend",this.onDragEnd)),this._useMouse&&(Rs(r,"mousemove",this.onDrag),Rs(n,"mouseup",this.onDragEnd)),this._useTouch&&(Rs(r,"touchmove",this.onDrag,i),Rs(n,"touchend",this.onDragEnd,i),Rs(n,"touchcancel",this.onDragEnd,i))},t.prototype._dettachDragEvent=function(){var n=this._window,r=this.options.container;this._isDragAPI&&(as(r,"dragover",this.onDrag),as(n,"dragend",this.onDragEnd)),this._useMouse&&(as(r,"mousemove",this.onDrag),as(n,"mouseup",this.onDragEnd)),this._useTouch&&(as(r,"touchstart",this.onDragStart),as(r,"touchmove",this.onDrag),as(n,"touchend",this.onDragEnd),as(n,"touchcancel",this.onDragEnd))},t}(nF);function U6e(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.map(function(r){return r.split(" ").map(function(i){return i?""+e+i:""}).join(" ")}).join(" ")}function V6e(e,t){return t.replace(/([^}{]*){/gm,function(n,r){return r.replace(/\.([^{,\s\d.]+)/g,"."+e+"$1")+"{"})}function Fc(e,t){return function(n){n&&(e[t]=n)}}function _X(e,t,n){return function(r){r&&(e[t][n]=r)}}function cLt(e,t){return function(n){var r=n.prototype;e.forEach(function(i){t(r,i)})}}function K6e(e,t){return t===void 0&&(t={}),function(n,r){e.forEach(function(i){var o=t[i]||i;o in n||(n[o]=function(){for(var a,s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];var c=(a=this[r])[i].apply(a,s);return c===this[r]?this:c})})}}var uLt=function(){function e(){this.keys=[],this.values=[]}var t=e.prototype;return t.get=function(n){return this.values[this.keys.indexOf(n)]},t.set=function(n,r){var i=this.keys,o=this.values,a=i.indexOf(n),s=a===-1?i.length:a;i[s]=n,o[s]=r},e}(),dLt=function(){function e(){this.object={}}var t=e.prototype;return t.get=function(n){return this.object[n]},t.set=function(n,r){this.object[n]=r},e}(),hLt=typeof Map=="function",fLt=function(){function e(){}var t=e.prototype;return t.connect=function(n,r){this.prev=n,this.next=r,n&&(n.next=this),r&&(r.prev=this)},t.disconnect=function(){var n=this.prev,r=this.next;n&&(n.next=r),r&&(r.prev=n)},t.getIndex=function(){for(var n=this,r=-1;n;)n=n.prev,++r;return r},e}();function pLt(e,t){var n=[],r=[];return e.forEach(function(i){var o=i[0],a=i[1],s=new fLt;n[o]=s,r[a]=s}),n.forEach(function(i,o){i.connect(n[o-1])}),e.filter(function(i,o){return!t[o]}).map(function(i,o){var a=i[0],s=i[1];if(a===s)return[0,0];var l=n[a],c=r[s-1],u=l.getIndex();l.disconnect(),c?l.connect(c,c.next):l.connect(void 0,n[0]);var d=l.getIndex();return[u,d]})}var gLt=function(){function e(n,r,i,o,a,s,l,c){this.prevList=n,this.list=r,this.added=i,this.removed=o,this.changed=a,this.maintained=s,this.changedBeforeAdded=l,this.fixed=c}var t=e.prototype;return Object.defineProperty(t,"ordered",{get:function(){return this.cacheOrdered||this.caculateOrdered(),this.cacheOrdered},enumerable:!0,configurable:!0}),Object.defineProperty(t,"pureChanged",{get:function(){return this.cachePureChanged||this.caculateOrdered(),this.cachePureChanged},enumerable:!0,configurable:!0}),t.caculateOrdered=function(){var n=pLt(this.changedBeforeAdded,this.fixed),r=this.changed,i=[];this.cacheOrdered=n.filter(function(o,a){var s=o[0],l=o[1],c=r[a],u=c[0],d=c[1];if(s!==l)return i.push([u,d]),!0}),this.cachePureChanged=i},e}();function q6e(e,t,n){var r=hLt?Map:n?dLt:uLt,i=n||function(w){return w},o=[],a=[],s=[],l=e.map(i),c=t.map(i),u=new r,d=new r,h=[],f=[],p={},g=[],m=0,b=0;return l.forEach(function(w,x){u.set(w,x)}),c.forEach(function(w,x){d.set(w,x)}),l.forEach(function(w,x){var C=d.get(w);typeof C>"u"?(++b,a.push(x)):p[C]=b}),c.forEach(function(w,x){var C=u.get(w);typeof C>"u"?(o.push(x),++m):(s.push([C,x]),b=p[x]||0,h.push([C-b,x-m]),f.push(x===C),C!==x&&g.push([C,x]))}),a.reverse(),new gLt(e,t,o,a,g,s,h,f)}var mLt=function(){function e(n,r){n===void 0&&(n=[]),this.findKeyCallback=r,this.list=[].slice.call(n)}var t=e.prototype;return t.update=function(n){var r=[].slice.call(n),i=q6e(this.list,r,this.findKeyCallback);return this.list=r,i},e}(),GX=function(e,t){return GX=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},GX(e,t)};function ALt(e,t){GX(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var X6e=typeof Map=="function"?void 0:function(){var e=0;return function(t){return t.__DIFF_KEY__||(t.__DIFF_KEY__=++e)}}(),vLt=function(e){ALt(t,e);function t(n){return n===void 0&&(n=[]),e.call(this,n,X6e)||this}return t}(mLt);function P5(e,t){return q6e(e,t,X6e)}const bLt=vLt;var YX=function(e,t){return YX=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i])},YX(e,t)};function yLt(e,t){YX(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var F5=function(){return F5=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},F5.apply(this,arguments)};function wLt(e){var t=e.container;return t===document.body?[t.scrollLeft||document.documentElement.scrollLeft,t.scrollTop||document.documentElement.scrollTop]:[t.scrollLeft,t.scrollTop]}function $6e(e,t){return e.addEventListener("scroll",t),function(){e.removeEventListener("scroll",t)}}function iF(e){if(e){if(cp(e))return document.querySelector(e)}else return null;if(tF(e))return e();if(e instanceof Element)return e;if("current"in e)return e.current;if("value"in e)return e.value}var xLt=function(e){yLt(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._startRect=null,r._startPos=[],r._prevTime=0,r._timer=0,r._prevScrollPos=[0,0],r._isWait=!1,r._flag=!1,r._currentOptions=null,r._lock=!1,r._unregister=null,r._onScroll=function(){var i=r._currentOptions;r._lock||!i||r.emit("scrollDrag",{next:function(o){r.checkScroll({container:i.container,inputEvent:o})}})},r}var n=t.prototype;return n.dragStart=function(r,i){var o=iF(i.container);if(!o){this._flag=!1;return}var a=0,s=0,l=0,c=0;if(o===document.body)l=window.innerWidth,c=window.innerHeight;else{var u=o.getBoundingClientRect();a=u.top,s=u.left,l=u.width,c=u.height}this._flag=!0,this._startPos=[r.clientX,r.clientY],this._startRect={top:a,left:s,width:l,height:c},this._prevScrollPos=this._getScrollPosition([0,0],i),this._currentOptions=i,this._registerScrollEvent(i)},n.drag=function(r,i){if(clearTimeout(this._timer),!!this._flag){var o=r.clientX,a=r.clientY,s=i.threshold,l=s===void 0?0:s,c=this,u=c._startRect,d=c._startPos;this._currentOptions=i;var h=[0,0];return u.top>a-l?(d[1]>u.top||a<d[1])&&(h[1]=-1):u.top+u.height<a+l&&(d[1]<u.top+u.height||a>d[1])&&(h[1]=1),u.left>o-l?(d[0]>u.left||o<d[0])&&(h[0]=-1):u.left+u.width<o+l&&(d[0]<u.left+u.width||o>d[0])&&(h[0]=1),!h[0]&&!h[1]?!1:this._continueDrag(F5(F5({},i),{direction:h,inputEvent:r,isDrag:!0}))}},n.checkScroll=function(r){var i=this;if(this._isWait)return!1;var o=r.prevScrollPos,a=o===void 0?this._prevScrollPos:o,s=r.direction,l=r.throttleTime,c=l===void 0?0:l,u=r.inputEvent,d=r.isDrag,h=this._getScrollPosition(s||[0,0],r),f=h[0]-a[0],p=h[1]-a[1],g=s||[f?Math.abs(f)/f:0,p?Math.abs(p)/p:0];return this._prevScrollPos=h,this._lock=!1,!f&&!p?!1:(this.emit("move",{offsetX:g[0]?f:0,offsetY:g[1]?p:0,inputEvent:u}),c&&d&&(clearTimeout(this._timer),this._timer=window.setTimeout(function(){i._continueDrag(r)},c)),!0)},n.dragEnd=function(){this._flag=!1,this._lock=!1,clearTimeout(this._timer),this._unregisterScrollEvent()},n._getScrollPosition=function(r,i){var o=i.container,a=i.getScrollPosition,s=a===void 0?wLt:a;return s({container:iF(o),direction:r})},n._continueDrag=function(r){var i=this,o,a=r.container,s=r.direction,l=r.throttleTime,c=r.useScroll,u=r.isDrag,d=r.inputEvent;if(!(!this._flag||u&&this._isWait)){var h=FX(),f=Math.max(l+this._prevTime-h,0);if(f>0)return clearTimeout(this._timer),this._timer=window.setTimeout(function(){i._continueDrag(r)},f),!1;this._prevTime=h;var p=this._getScrollPosition(s,r);this._prevScrollPos=p,u&&(this._isWait=!0),c||(this._lock=!0);var g={container:iF(a),direction:s,inputEvent:d};return(o=r.requestScroll)===null||o===void 0||o.call(r,g),this.emit("scroll",g),this._isWait=!1,c||this.checkScroll(F5(F5({},r),{prevScrollPos:p,direction:s,inputEvent:d}))}},n._registerScrollEvent=function(r){this._unregisterScrollEvent();var i=r.checkScrollEvent;if(i){var o=i===!0?$6e:i,a=iF(r.container);i===!0&&(a===document.body||a===document.documentElement)?this._unregister=$6e(window,this._onScroll):this._unregister=o(a,this._onScroll)}},n._unregisterScrollEvent=function(){var r;(r=this._unregister)===null||r===void 0||r.call(this),this._unregister=null},t}(nF);const Z6e=xLt;var UX=function(e,t){return UX=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},UX(e,t)};function ELt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");UX(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function CLt(e,t){return t={exports:{}},e(t,t.exports),t.exports}var RC=CLt(function(e,t){function n(l){if(l&&typeof l=="object"){var c=l.which||l.keyCode||l.charCode;c&&(l=c)}if(typeof l=="number")return a[l];var u=String(l),d=r[u.toLowerCase()];if(d)return d;var d=i[u.toLowerCase()];if(d)return d;if(u.length===1)return u.charCodeAt(0)}n.isEventKey=function(l,c){if(l&&typeof l=="object"){var u=l.which||l.keyCode||l.charCode;if(u==null)return!1;if(typeof c=="string"){var d=r[c.toLowerCase()];if(d)return d===u;var d=i[c.toLowerCase()];if(d)return d===u}else if(typeof c=="number")return c===u;return!1}},t=e.exports=n;var r=t.code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"\u21E7":16,"\u2325":18,"\u2303":17,"\u2318":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(o=97;o<123;o++)r[String.fromCharCode(o)]=o-32;for(var o=48;o<58;o++)r[o-48]=o;for(o=1;o<13;o++)r["f"+o]=o+111;for(o=0;o<10;o++)r["numpad "+o]=o+96;var a=t.names=t.title={};for(o in r)a[r[o]]=o;for(var s in i)r[s]=i[s]});RC.code,RC.codes,RC.aliases;var SLt=RC.names;RC.title;var J6e={"+":"plus","left command":"meta","right command":"meta"},eEe={shift:1,ctrl:2,alt:3,meta:4};function tEe(e,t){var n=(SLt[e]||t||"").toLowerCase();for(var r in J6e)n=n.replace(r,J6e[r]);return n.replace(/\s/g,"")}function nEe(e,t){t===void 0&&(t=tEe(e.keyCode,e.key));var n=kLt(e);return n.indexOf(t)===-1&&n.push(t),n.filter(Boolean)}function kLt(e){var t=[e.shiftKey&&"shift",e.ctrlKey&&"ctrl",e.altKey&&"alt",e.metaKey&&"meta"];return t.filter(Boolean)}function rEe(e){var t=e.slice();return t.sort(function(n,r){var i=eEe[n]||5,o=eEe[r]||5;return i-o}),t}var iEe,BLt=function(e){ELt(t,e);function t(r){r===void 0&&(r=window);var i=e.call(this)||this;return i.container=r,i.ctrlKey=!1,i.altKey=!1,i.shiftKey=!1,i.metaKey=!1,i.clear=function(){return i.ctrlKey=!1,i.altKey=!1,i.shiftKey=!1,i.metaKey=!1,i},i.keydownEvent=function(o){i.triggerEvent("keydown",o)},i.keyupEvent=function(o){i.triggerEvent("keyup",o)},i.blur=function(){i.clear(),i.trigger("blur")},Rs(r,"blur",i.blur),Rs(r,"keydown",i.keydownEvent),Rs(r,"keyup",i.keyupEvent),i}var n=t.prototype;return Object.defineProperty(t,"global",{get:function(){return iEe||(iEe=new t)},enumerable:!1,configurable:!0}),t.setGlobal=function(){return this.global},n.destroy=function(){var r=this.container;this.clear(),this.off(),as(r,"blur",this.blur),as(r,"keydown",this.keydownEvent),as(r,"keyup",this.keyupEvent)},n.keydown=function(r,i){return this.addEvent("keydown",r,i)},n.offKeydown=function(r,i){return this.removeEvent("keydown",r,i)},n.offKeyup=function(r,i){return this.removeEvent("keyup",r,i)},n.keyup=function(r,i){return this.addEvent("keyup",r,i)},n.addEvent=function(r,i,o){return bA(i)?this.on("".concat(r,".").concat(rEe(i).join(".")),o):cp(i)?this.on("".concat(r,".").concat(i),o):this.on(r,i),this},n.removeEvent=function(r,i,o){return bA(i)?this.off("".concat(r,".").concat(rEe(i).join(".")),o):cp(i)?this.off("".concat(r,".").concat(i),o):this.off(r,i),this},n.triggerEvent=function(r,i){this.ctrlKey=i.ctrlKey,this.shiftKey=i.shiftKey,this.altKey=i.altKey,this.metaKey=i.metaKey;var o=tEe(i.keyCode,i.key),a=o==="ctrl"||o==="shift"||o==="meta"||o==="alt",s={key:o,isToggle:a,inputEvent:i,keyCode:i.keyCode,ctrlKey:i.ctrlKey,altKey:i.altKey,shiftKey:i.shiftKey,metaKey:i.metaKey};this.trigger(r,s),this.trigger("".concat(r,".").concat(o),s);var l=nEe(i,o);l.length>1&&this.trigger("".concat(r,".").concat(l.join(".")),s)},t}(nF);const MLt=BLt;function ILt(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}function Xu(e){return io(e,oc)}function RLt(e,t){return e.every(function(n,r){return Xu(n-t[r])===0})}function OLt(e,t){return!Xu(e[0]-t[0])&&!Xu(e[1]-t[1])}function OC(e){return e.length<3?0:Math.abs(JTt(e.map(function(t,n){var r=e[n+1]||e[0];return t[0]*r[1]-r[0]*t[1]})))/2}function VX(e,t){var n=t.width,r=t.height,i=t.left,o=t.top,a=oF(e),s=a.minX,l=a.minY,c=a.maxX,u=a.maxY,d=n/(c-s),h=r/(u-l);return e.map(function(f){return[i+(f[0]-s)*d,o+(f[1]-l)*h]})}function oF(e){var t=e.map(function(r){return r[0]}),n=e.map(function(r){return r[1]});return{minX:Math.min.apply(Math,t),minY:Math.min.apply(Math,n),maxX:Math.max.apply(Math,t),maxY:Math.max.apply(Math,n)}}function aF(e,t,n){var r=e[0],i=e[1],o=oF(t),a=o.minX,s=o.maxX,l=[[a,i],[s,i]],c=sF(l[0],l[1]),u=KX(t),d=[];if(u.forEach(function(p){var g=sF(p[0],p[1]),m=p[0];if(RLt(c,g))d.push({pos:e,line:p,type:"line"});else{var b=aEe(oEe(c,g),[l,p]);b.forEach(function(w){p.some(function(x){return OLt(x,w)})?d.push({pos:w,line:p,type:"point"}):Xu(m[1]-i)!==0&&d.push({pos:w,line:p,type:"intersection"})})}}),!n&&BC(d,function(p){return p[0]===r}))return!0;var h=0,f={};return d.forEach(function(p){var g=p.pos,m=p.type,b=p.line;if(!(g[0]>r))if(m==="intersection")++h;else{if(m==="line")return;if(m==="point"){var w=BC(b,function(E){return E[1]!==i}),x=f[g[0]],C=w[1]>i?1:-1;x?x!==C&&++h:f[g[0]]=C}}}),h%2===1}function sF(e,t){var n=e[0],r=e[1],i=t[0],o=t[1],a=i-n,s=o-r;Math.abs(a)<oc&&(a=0),Math.abs(s)<oc&&(s=0);var l=0,c=0,u=0;return a?s?(l=-s/a,c=1,u=-l*n-r):(c=1,u=-r):s&&(l=-1,u=n),[l,c,u]}function oEe(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],l=n===0&&o===0,c=r===0&&a===0,u=[];if(l&&c)return[];if(l){var d=-i/r,h=-s/a;return d!==h?[]:[[-1/0,d],[1/0,d]]}else if(c){var f=-i/n,p=-s/o;return f!==p?[]:[[f,-1/0],[f,1/0]]}else if(n===0){var g=-i/r,m=-(a*g+s)/o;u=[[m,g]]}else if(o===0){var g=-s/a,m=-(r*g+i)/n;u=[[m,g]]}else if(r===0){var m=-i/n,g=-(o*m+s)/a;u=[[m,g]]}else if(a===0){var m=-s/o,g=-(n*m+i)/r;u=[[m,g]]}else{var m=(r*s-a*i)/(a*n-r*o),g=-(n*m+i)/r;u=[[m,g]]}return u.map(function(b){return[b[0],b[1]]})}function aEe(e,t){var n=t.map(function(d){return[0,1].map(function(h){return[Math.min(d[0][h],d[1][h]),Math.max(d[0][h],d[1][h])]})}),r=[];if(e.length===2){var i=e[0],o=i[0],a=i[1];if(Xu(o-e[1][0])){if(!Xu(a-e[1][1])){var s=Math.max.apply(Math,n.map(function(d){return d[0][0]})),l=Math.min.apply(Math,n.map(function(d){return d[0][1]}));if(Xu(s-l)>0)return[];r=[[s,a],[l,a]]}}else{var c=Math.max.apply(Math,n.map(function(d){return d[1][0]})),u=Math.min.apply(Math,n.map(function(d){return d[1][1]}));if(Xu(c-u)>0)return[];r=[[o,c],[o,u]]}}return r.length||(r=e.filter(function(d){var h=d[0],f=d[1];return n.every(function(p){return 0<=Xu(h-p[0][0])&&0<=Xu(p[0][1]-h)&&0<=Xu(f-p[1][0])&&0<=Xu(p[1][1]-f)})})),r.map(function(d){return[Xu(d[0]),Xu(d[1])]})}function KX(e){return ILt(e.slice(1),[e[0]]).map(function(t,n){return[e[n],t]})}function DLt(e,t){var n=e.slice(),r=t.slice();NX(n)===-1&&n.reverse(),NX(r)===-1&&r.reverse();var i=KX(n),o=KX(r),a=i.map(function(u){return sF(u[0],u[1])}),s=o.map(function(u){return sF(u[0],u[1])}),l=[];a.forEach(function(u,d){var h=i[d],f=[];s.forEach(function(p,g){var m=oEe(u,p),b=aEe(m,[h,o[g]]);f.push.apply(f,b.map(function(w){return{index1:d,index2:g,pos:w,type:"intersection"}}))}),f.sort(function(p,g){return up(h[0],p.pos)-up(h[0],g.pos)}),l.push.apply(l,f),aF(h[1],r)&&l.push({index1:d,index2:-1,pos:h[1],type:"inside"})}),o.forEach(function(u,d){if(aF(u[1],n)){var h=!1,f=wA(l,function(p){var g=p.index2;return g===d?(h=!0,!1):!!h});f===-1&&(h=!1,f=wA(l,function(p){var g=p.index1,m=p.index2;return g===-1&&m+1===d?(h=!0,!1):!!h})),f===-1?l.push({index1:-1,index2:d,pos:u[1],type:"inside"}):l.splice(f,0,{index1:-1,index2:d,pos:u[1],type:"inside"})}});var c={};return l.filter(function(u){var d=u.pos,h=d[0]+"x"+d[1];return c[h]?!1:(c[h]=!0,!0)})}function qX(e,t){var n=DLt(e,t);return n.map(function(r){var i=r.pos;return i})}function PLt(e,t){var n=qX(e,t);return OC(n)}function FLt(e,t,n,r,i,o){for(var a=0;a<i;++a){var s=n+a*i,l=r+a*i;e[s]+=e[l]*o,t[s]+=t[l]*o}}function NLt(e,t,n,r,i){for(var o=0;o<i;++o){var a=n+o*i,s=r+o*i,l=e[a],c=t[a];e[a]=e[s],e[s]=l,t[a]=t[s],t[s]=c}}function TLt(e,t,n,r,i){for(var o=0;o<r;++o){var a=n+o*r;e[a]/=i,t[a]/=i}}function sEe(e,t,n){n===void 0&&(n=Math.sqrt(e.length));for(var r=e.slice(),i=0;i<n;++i)r[i*n+t-1]=0,r[(t-1)*n+i]=0;return r[(t-1)*(n+1)]=1,r}function Kf(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=e.slice(),r=Os(t),i=0;i<t;++i){var o=t*i+i;if(!io(n[o],oc)){for(var a=i+1;a<t;++a)if(n[t*i+a]){NLt(n,r,i,a,t);break}}if(!io(n[o],oc))return[];TLt(n,r,i,t,n[o]);for(var a=0;a<t;++a){var s=a,l=a+i*t,c=n[l];!io(c,oc)||i===a||FLt(n,r,s,i,t,-c)}}return r}function LLt(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=[],r=0;r<t;++r)for(var i=0;i<t;++i)n[i*t+r]=e[t*r+i];return n}function jLt(e,t){t===void 0&&(t=Math.sqrt(e.length));for(var n=[],r=e[t*t-1],i=0;i<t-1;++i)n[i]=e[t*(t-1)+i]/r;return n[t-1]=0,n}function QLt(e,t){for(var n=Os(t),r=0;r<t-1;++r)n[t*(t-1)+r]=e[r]||0;return n}function DC(e,t){for(var n=e.slice(),r=e.length;r<t-1;++r)n[r]=0;return n[t-1]=1,n}function ng(e,t,n){if(t===void 0&&(t=Math.sqrt(e.length)),t===n)return e;for(var r=Os(n),i=Math.min(t,n),o=0;o<i-1;++o){for(var a=0;a<i-1;++a)r[o*n+a]=e[o*t+a];r[(o+1)*n-1]=e[(o+1)*t-1],r[(n-1)*n+o]=e[(t-1)*t+o]}return r[n*n-1]=e[t*t-1],r}function XX(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Os(e);return t.forEach(function(i){r=_a(r,i,e)}),r}function _a(e,t,n){n===void 0&&(n=Math.sqrt(e.length));var r=[],i=e.length/n,o=t.length/i;if(i){if(!o)return e}else return t;for(var a=0;a<n;++a)for(var s=0;s<o;++s){r[s*n+a]=0;for(var l=0;l<i;++l)r[s*n+a]+=e[l*n+a]*t[s*i+l]}return r}function fo(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),i=0;i<n;++i)r[i]=r[i]+t[i];return r}function Pi(e,t){for(var n=Math.min(e.length,t.length),r=e.slice(),i=0;i<n;++i)r[i]=r[i]-t[i];return r}function zLt(e,t){return t===void 0&&(t=e.length===6),t?[e[0],e[1],0,e[2],e[3],0,e[4],e[5],1]:e}function lEe(e,t){return t===void 0&&(t=e.length===9),t?[e[0],e[1],e[3],e[4],e[6],e[7]]:e}function uu(e,t,n){n===void 0&&(n=t.length);var r=_a(e,t,n),i=r[n-1];return r.map(function(o){return o/i})}function WLt(e,t){return _a(e,[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1],4)}function HLt(e,t){return _a(e,[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1],4)}function _Lt(e,t){return _a(e,N5(t,4))}function lF(e,t){var n=t[0],r=n===void 0?1:n,i=t[1],o=i===void 0?1:i,a=t[2],s=a===void 0?1:a;return _a(e,[r,0,0,0,0,o,0,0,0,0,s,0,0,0,0,1],4)}function xA(e,t){return uu(N5(t,3),DC(e,3))}function $X(e,t){var n=t[0],r=n===void 0?0:n,i=t[1],o=i===void 0?0:i,a=t[2],s=a===void 0?0:a;return _a(e,[1,0,0,0,0,1,0,0,0,0,1,0,r,o,s,1],4)}function ZX(e,t){return _a(e,t,4)}function N5(e,t){var n=Math.cos(e),r=Math.sin(e),i=Os(t);return i[0]=n,i[1]=r,i[t]=-r,i[t+1]=n,i}function Os(e){for(var t=e*e,n=[],r=0;r<t;++r)n[r]=r%(e+1)?0:1;return n}function cEe(e,t){for(var n=Os(t),r=Math.min(e.length,t-1),i=0;i<r;++i)n[(t+1)*i]=e[i];return n}function PC(e,t){for(var n=Os(t),r=Math.min(e.length,t-1),i=0;i<r;++i)n[t*(t-1)+i]=e[i];return n}function JX(e,t,n,r,i,o,a,s){var l=e[0],c=e[1],u=t[0],d=t[1],h=n[0],f=n[1],p=r[0],g=r[1],m=i[0],b=i[1],w=o[0],x=o[1],C=a[0],E=a[1],S=s[0],B=s[1],M=[l,0,u,0,h,0,p,0,c,0,d,0,f,0,g,0,1,0,1,0,1,0,1,0,0,l,0,u,0,h,0,p,0,c,0,d,0,f,0,g,0,1,0,1,0,1,0,1,-m*l,-b*l,-w*u,-x*u,-C*h,-E*h,-S*p,-B*p,-m*c,-b*c,-w*d,-x*d,-C*f,-E*f,-S*g,-B*g],O=Kf(M,8);if(!O.length)return[];var D=_a(O,[m,b,w,x,C,E,S,B],8);return D[8]=1,ng(LLt(D),3,4)}var FC=function(){return FC=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},FC.apply(this,arguments)};function e$(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function uEe(e,t){return t===void 0&&(t=0),L5(f2(e,t))}function T5(e,t){var n=uu(e,[t[0],t[1]||0,t[2]||0,1],4),r=n[3]||1;return[n[0]/r,n[1]/r,n[2]/r]}function dEe(e,t){t===void 0&&(t=document.body);for(var n=e,r=e$();n;){var i=getComputedStyle(n).transform;if(r=ZX(uEe(i),r),n===t)break;n=n.parentElement}return r=Kf(r,4),r[12]=0,r[13]=0,r[14]=0,r}function L5(e){var t=e$();return e.forEach(function(n){var r=n.matrixFunction,i=n.functionValue;r&&(t=r(t,i))}),t}function f2(e,t){t===void 0&&(t=0);var n=bA(e)?e:yA(e);return n.map(function(r){var i=DX(r),o=i.prefix,a=i.value,s=null,l=o,c="";if(o==="translate"||o==="translateX"||o==="translate3d"){var u=Vf(t)?FC(FC({},t),{"o%":t["%"]}):{"%":t,"o%":t},d=d2(a).map(function(z,H){return H===0&&"x%"in u?u["%"]=t["x%"]:H===1&&"y%"in u?u["%"]=t["y%"]:u["%"]=t["o%"],bs(z,u)}),h=d[0],f=d[1],p=f===void 0?0:f,g=d[2],m=g===void 0?0:g;s=$X,c=[h,p,m]}else if(o==="translateY"){var b=Vf(t)?FC({"%":t["y%"]},t):{"%":t},p=bs(a,b);s=$X,c=[0,p,0]}else if(o==="translateZ"){var m=parseFloat(a);s=$X,c=[0,0,m]}else if(o==="scale"||o==="scale3d"){var w=d2(a).map(function(z){return parseFloat(z)}),x=w[0],C=w[1],E=C===void 0?x:C,S=w[2],B=S===void 0?1:S;s=lF,c=[x,E,B]}else if(o==="scaleX"){var x=parseFloat(a);s=lF,c=[x,1,1]}else if(o==="scaleY"){var E=parseFloat(a);s=lF,c=[1,E,1]}else if(o==="scaleZ"){var B=parseFloat(a);s=lF,c=[1,1,B]}else if(o==="rotate"||o==="rotateZ"||o==="rotateX"||o==="rotateY"){var M=D5(a),O=M.unit,D=M.value,P=O==="rad"?D:D*Math.PI/180;o==="rotate"||o==="rotateZ"?(l="rotateZ",s=_Lt):o==="rotateX"?s=WLt:o==="rotateY"&&(s=HLt),c=P}else if(o==="matrix3d")s=ZX,c=d2(a).map(function(z){return parseFloat(z)});else if(o==="matrix"){var j=d2(a).map(function(z){return parseFloat(z)});s=ZX,c=[j[0],j[1],0,0,j[2],j[3],0,0,0,0,1,0,j[4],j[5],0,1]}else l="";return{name:o,functionName:l,value:a,matrixFunction:s,functionValue:c}})}function GLt(e){for(var t=5381,n=e.length;n;)t=t*33^e.charCodeAt(--n);return t>>>0}var YLt=GLt;function ULt(e){return YLt(e).toString(36)}function VLt(e){if(e&&e.getRootNode){var t=e.getRootNode();if(t.nodeType===11)return t}}function KLt(e,t,n){return n.original?t:t.replace(/([^};{\s}][^};{]*|^\s*){/mg,function(r,i){var o=i.trim();return(o?d2(o):[""]).map(function(a){var s=a.trim();return s.indexOf("@")===0?s:s.indexOf(":global")>-1?s.replace(/\:global/g,""):s.indexOf(":host")>-1?"".concat(s.replace(/\:host/g,".".concat(e))):s?".".concat(e," ").concat(s):".".concat(e)}).join(", ")+" {"})}function qLt(e,t,n,r,i){var o=tg(r),a=o.createElement("style");return a.setAttribute("type","text/css"),a.setAttribute("data-styled-id",e),a.setAttribute("data-styled-count","1"),n.nonce&&a.setAttribute("nonce",n.nonce),a.innerHTML=KLt(e,t,n),(i||o.head||o.body).appendChild(a),a}function hEe(e){var t="rCS"+ULt(e);return{className:t,inject:function(n,r){r===void 0&&(r={});var i=VLt(n),o=(i||n.ownerDocument||document).querySelector('style[data-styled-id="'.concat(t,'"]'));if(!o)o=qLt(t,e,r,n,i);else{var a=parseFloat(o.getAttribute("data-styled-count"))||0;o.setAttribute("data-styled-count","".concat(a+1))}return{destroy:function(){var s,l=parseFloat(o.getAttribute("data-styled-count"))||0;l<=1?(o.remove?o.remove():(s=o.parentNode)===null||s===void 0||s.removeChild(o),o=null):o.setAttribute("data-styled-count","".concat(l-1))}}}}}var t$=function(e,t){return t$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},t$(e,t)};function fEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");t$(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var qs=function(){return qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},qs.apply(this,arguments)};function XLt(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function $Lt(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function NC(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function ZLt(e){if("touches"in e){var t=e.touches[0]||e.changedTouches[0];return{clientX:t.clientX,clientY:t.clientY}}else return{clientX:e.clientX,clientY:e.clientY}}function JLt(e){if(typeof Map>"u")return e.filter(function(n,r){return e.indexOf(n)===r});var t=new Map;return e.filter(function(n){return t.has(n)?!1:(t.set(n,!0),!0)})}function ejt(e,t,n){var r=tg(e);return r.elementFromPoint&&r.elementFromPoint(t,n)||null}function pEe(e,t,n){var r=e.tag,i=e.children,o=e.attributes,a=e.className,s=e.style,l=t||tg(n).createElement(r);for(var c in o)l.setAttribute(c,o[c]);var u=l.children;if(i.forEach(function(h,f){pEe(h,u[f],l)}),a&&a.split(/\s+/g).forEach(function(h){h&&!Qd(l,h)&&TX(l,h)}),s){var d=l.style;for(var c in s)d[c]=s[c]}return!t&&n&&n.appendChild(l),l}function tjt(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=t||{},o=i.className,a=o===void 0?"":o,s=i.style,l=s===void 0?{}:s,c=XLt(i,["className","style"]);return{tag:e,className:a,style:l,attributes:c,children:n}}function n$(e,t,n){e!==t&&n(e,t)}function gEe(e,t,n){var r;n===void 0&&(n=e.data.boundArea);var i=e.distX,o=i===void 0?0:i,a=e.distY,s=a===void 0?0:a,l=e.data,c=l.startX,u=l.startY;if(t>0){var d=Math.sqrt((o*o+s*s)/(1+t*t)),h=t*d;o=(o>=0?1:-1)*h,s=(s>=0?1:-1)*d}var f=Math.abs(o),p=Math.abs(s),g=o<0?c-n.left:n.right-c,m=s<0?u-n.top:n.bottom-u;r=Q6e([f,p],[0,0],[g,m],!!t),f=r[0],p=r[1],o=(o>=0?1:-1)*f,s=(s>=0?1:-1)*p;var b=Math.min(0,o),w=Math.min(0,s),x=c+b,C=u+w;return{left:x,top:C,right:x+f,bottom:C+p,width:f,height:p}}function cF(e){var t=e.getBoundingClientRect(),n=t.left,r=t.top,i=t.width,o=t.height;return{pos1:[n,r],pos2:[n+i,r],pos3:[n,r+o],pos4:[n+i,r+o]}}function mEe(e,t,n){var r=P5(e,t),i=r.list,o=r.prevList,a=r.added,s=r.removed,l=r.maintained;return NC(NC(NC([],a.map(function(c){return i[c]}),!0),s.map(function(c){return o[c]}),!0),n?l.map(function(c){var u=c[1];return i[u]}):[],!0)}function AEe(e){for(var t=0,n=e.length,r=1;r<n;++r)t=Math.max(up(e[r],e[r-1]),t);return t}var vEe=hEe(`
|
801
801
|
:host {
|
802
802
|
position: fixed;
|
803
803
|
display: none;
|
package/package.json
CHANGED
package/vite.config.ts
CHANGED